Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CafeOBJ 1.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='CafeOBJ'
579 PACKAGE_TARNAME='cafeobj'
580 PACKAGE_VERSION='1.6'
581 PACKAGE_STRING='CafeOBJ 1.6'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL='http://www.cafeobj.org/'
584
585 ac_unique_file="make-cafeobj.lisp.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 enable_distribution
625 enable_windows
626 enable_traditional_layout
627 enable_rebuild_doc
628 pdflatex_avail
629 pandoc_avail
630 bibtex_avail
631 xelatex_avail
632 OSBIT
633 EGREP
634 GREP
635 CPP
636 OBJEXT
637 EXEEXT
638 ac_ct_CC
639 CPPFLAGS
640 LDFLAGS
641 CFLAGS
642 CC
643 gcl_dump
644 ccl64_dump
645 ccl32_dump
646 cmu_dump
647 clisp_dump
648 sbcl_dump
649 acl_standalone_dump
650 acl_dump
651 gcl_interp
652 ccl64_interp
653 ccl32_interp
654 cmu_interp
655 clisp_interp
656 sbcl_interp
657 acl_interp
658 firstchoice
659 lisp
660 lispdir
661 EMACSLOADPATH
662 EMACS
663 MKDIR_P
664 SET_MAKE
665 ccl64_path
666 ccl32_path
667 clisp_path
668 acl_path
669 sbcl_path
670 cmu_path
671 gcl_path
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 PATCHLEVEL
676 VMEMO
677 VMINOR
678 target_alias
679 host_alias
680 build_alias
681 LIBS
682 ECHO_T
683 ECHO_N
684 ECHO_C
685 DEFS
686 mandir
687 localedir
688 libdir
689 psdir
690 pdfdir
691 dvidir
692 htmldir
693 infodir
694 docdir
695 oldincludedir
696 includedir
697 localstatedir
698 sharedstatedir
699 sysconfdir
700 datadir
701 datarootdir
702 libexecdir
703 sbindir
704 bindir
705 program_transform_name
706 prefix
707 exec_prefix
708 PACKAGE_URL
709 PACKAGE_BUGREPORT
710 PACKAGE_STRING
711 PACKAGE_VERSION
712 PACKAGE_TARNAME
713 PACKAGE_NAME
714 PATH_SEPARATOR
715 SHELL'
716 ac_subst_files=''
717 ac_user_opts='
718 enable_option_checking
719 with_sbcl
720 with_acl
721 with_clisp
722 with_lisp
723 with_lispdir
724 enable_rebuild_doc
725 enable_traditional_layout
726 enable_windows
727 enable_distribution
728 '
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 EMACS
733 EMACSLOADPATH
734 CC
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS
739 CPP'
740
741
742 # Initialize some variables set by options.
743 ac_init_help=
744 ac_init_version=false
745 ac_unrecognized_opts=
746 ac_unrecognized_sep=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
789
790 ac_prev=
791 ac_dashdash=
792 for ac_option
793 do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
799 fi
800
801 case $ac_option in
802 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *=) ac_optarg= ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
853 *"
854 "enable_$ac_useropt"
855 "*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=no ;;
860
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
865
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
870
871 -enable-* | --enable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=\$ac_optarg ;;
886
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
895
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
899
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
906
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
911
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
917
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
924
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
929
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
934
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
941
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
946
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
953
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
958
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
962
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
966
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
970
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
979
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
984
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
991
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
998
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1015
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1020
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1025
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1029
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1035
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1046
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1051
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1056
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1063
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1068
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1071
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1074
1075 -with-* | --with-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "with_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=\$ac_optarg ;;
1090
1091 -without-* | --without-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=no ;;
1106
1107 --x)
1108 # Obsolete; use --with-x.
1109 with_x=yes ;;
1110
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1117
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1124
1125 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1127 ;;
1128
1129 *=*)
1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
1134 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1135 esac
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1138
1139 *)
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1145 ;;
1146
1147 esac
1148 done
1149
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $? "missing argument to $ac_option"
1153 fi
1154
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1157 no) ;;
1158 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 esac
1161 fi
1162
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1168 do
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1171 case $ac_val in
1172 */ )
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1175 esac
1176 # Be sure to have absolute directory names.
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1182 done
1183
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1190
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 elif test "x$build_alias" != "x$host_alias"; then
1196 cross_compiling=yes
1197 fi
1198 fi
1199
1200 ac_tool_prefix=
1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202
1203 test "$silent" = yes && exec 6>/dev/null
1204
1205
1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di=`ls -di .` &&
1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209 as_fn_error $? "working directory cannot be determined"
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 as_fn_error $? "pwd does not report name of working directory"
1212
1213
1214 # Find the source files, if location was not specified.
1215 if test -z "$srcdir"; then
1216 ac_srcdir_defaulted=yes
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir=`$as_dirname -- "$as_myself" ||
1219 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220 X"$as_myself" : 'X\(//\)[^/]' \| \
1221 X"$as_myself" : 'X\(//\)$' \| \
1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223 $as_echo X"$as_myself" |
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)[^/].*/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\/\)$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\).*/{
1237 s//\1/
1238 q
1239 }
1240 s/.*/./; q'`
1241 srcdir=$ac_confdir
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 srcdir=..
1244 fi
1245 else
1246 ac_srcdir_defaulted=no
1247 fi
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1251 fi
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 pwd)`
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1259 fi
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1263 case $srcdir in
1264 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 esac
1266 for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271 done
1272
1273 #
1274 # Report the --help message.
1275 #
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1279 cat <<_ACEOF
1280 \`configure' configures CafeOBJ 1.6 to adapt to many kinds of systems.
1281
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1286
1287 Defaults for the options are specified in brackets.
1288
1289 Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking ...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 [PREFIX]
1305
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1310
1311 For better control, use the options below.
1312
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/cafeobj]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1333 _ACEOF
1334
1335 cat <<\_ACEOF
1336
1337 Program names:
1338 --program-prefix=PREFIX prepend PREFIX to installed program names
1339 --program-suffix=SUFFIX append SUFFIX to installed program names
1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1341 _ACEOF
1342 fi
1343
1344 if test -n "$ac_init_help"; then
1345 case $ac_init_help in
1346 short | recursive ) echo "Configuration of CafeOBJ 1.6:";;
1347 esac
1348 cat <<\_ACEOF
1349
1350 Optional Features:
1351 --disable-option-checking ignore unrecognized --enable/--with options
1352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1354 --enable-rebuild-doc Enable the rebuilding of documentation (not
1355 implemented) [default=no]
1356 --enable-traditional-layout
1357 Enable traditional layout [default=no]
1358 --enable-windows Prepare for Windows building
1359 --enable-distribution Configure for binary distribution
1360
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-sbcl=<cmd> specify the SBCL interpreter [default: sbcl]
1365 --with-acl=<cmd> specify the ACL interpreter [default: alisp]
1366 --with-clisp=<cmd> specify the CLISP interpreter [default: clisp]
1367 --with-lisp=all|<interp>[,<interp>]
1368 specify a list of lisp interpreters from "acl",
1369 "sbcl", or "clisp". Alternatively "all" can be
1370 specified to select all available.
1371 --with-lispdir override the default lisp directory
1372
1373 Some influential environment variables:
1374 EMACS the Emacs editor command
1375 EMACSLOADPATH
1376 the Emacs library search path
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1385
1386 Use these variables to override the choices made by `configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1388
1389 Report bugs to the package provider.
1390 CafeOBJ home page: <http://www.cafeobj.org/>.
1391 _ACEOF
1392 ac_status=$?
1393 fi
1394
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" ||
1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1400 continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 CafeOBJ configure 1.6
1454 generated by GNU Autoconf 2.69
1455
1456 Copyright (C) 2012 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1461 fi
1462
1463 ## ------------------------ ##
1464 ## Autoconf initialization. ##
1465 ## ------------------------ ##
1466
1467 # ac_fn_c_try_compile LINENO
1468 # --------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_compile ()
1471 {
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1487 fi
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1493 ac_retval=0
1494 else
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1497
1498 ac_retval=1
1499 fi
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1502
1503 } # ac_fn_c_try_compile
1504
1505 # ac_fn_c_try_run LINENO
1506 # ----------------------
1507 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1508 # that executables *can* be run.
1509 ac_fn_c_try_run ()
1510 {
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_link"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_link") 2>&5
1520 ac_status=$?
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1523 { { case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_try") 2>&5
1530 ac_status=$?
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; }; }; then :
1533 ac_retval=0
1534 else
1535 $as_echo "$as_me: program exited with status $ac_status" >&5
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=$ac_status
1540 fi
1541 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_run
1546
1547 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1548 # --------------------------------------------
1549 # Tries to find the compile-time value of EXPR in a program that includes
1550 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1551 # computed
1552 ac_fn_c_compute_int ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if test "$cross_compiling" = yes; then
1556 # Depending upon the size, compute the lo and hi bounds.
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1559 $4
1560 int
1561 main ()
1562 {
1563 static int test_array [1 - 2 * !(($2) >= 0)];
1564 test_array [0] = 0;
1565 return test_array [0];
1566
1567 ;
1568 return 0;
1569 }
1570 _ACEOF
1571 if ac_fn_c_try_compile "$LINENO"; then :
1572 ac_lo=0 ac_mid=0
1573 while :; do
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1576 $4
1577 int
1578 main ()
1579 {
1580 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1581 test_array [0] = 0;
1582 return test_array [0];
1583
1584 ;
1585 return 0;
1586 }
1587 _ACEOF
1588 if ac_fn_c_try_compile "$LINENO"; then :
1589 ac_hi=$ac_mid; break
1590 else
1591 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1592 if test $ac_lo -le $ac_mid; then
1593 ac_lo= ac_hi=
1594 break
1595 fi
1596 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1597 fi
1598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1599 done
1600 else
1601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1603 $4
1604 int
1605 main ()
1606 {
1607 static int test_array [1 - 2 * !(($2) < 0)];
1608 test_array [0] = 0;
1609 return test_array [0];
1610
1611 ;
1612 return 0;
1613 }
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_hi=-1 ac_mid=-1
1617 while :; do
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1620 $4
1621 int
1622 main ()
1623 {
1624 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1625 test_array [0] = 0;
1626 return test_array [0];
1627
1628 ;
1629 return 0;
1630 }
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633 ac_lo=$ac_mid; break
1634 else
1635 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1636 if test $ac_mid -le $ac_hi; then
1637 ac_lo= ac_hi=
1638 break
1639 fi
1640 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 done
1644 else
1645 ac_lo= ac_hi=
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 # Binary search between lo and hi bounds.
1651 while test "x$ac_lo" != "x$ac_hi"; do
1652 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 int
1657 main ()
1658 {
1659 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1660 test_array [0] = 0;
1661 return test_array [0];
1662
1663 ;
1664 return 0;
1665 }
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 ac_hi=$ac_mid
1669 else
1670 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1671 fi
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 done
1674 case $ac_lo in #((
1675 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1676 '') ac_retval=1 ;;
1677 esac
1678 else
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 static long int longval () { return $2; }
1683 static unsigned long int ulongval () { return $2; }
1684 #include <stdio.h>
1685 #include <stdlib.h>
1686 int
1687 main ()
1688 {
1689
1690 FILE *f = fopen ("conftest.val", "w");
1691 if (! f)
1692 return 1;
1693 if (($2) < 0)
1694 {
1695 long int i = longval ();
1696 if (i != ($2))
1697 return 1;
1698 fprintf (f, "%ld", i);
1699 }
1700 else
1701 {
1702 unsigned long int i = ulongval ();
1703 if (i != ($2))
1704 return 1;
1705 fprintf (f, "%lu", i);
1706 }
1707 /* Do not output a trailing newline, as this causes \r\n confusion
1708 on some platforms. */
1709 return ferror (f) || fclose (f) != 0;
1710
1711 ;
1712 return 0;
1713 }
1714 _ACEOF
1715 if ac_fn_c_try_run "$LINENO"; then :
1716 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1717 else
1718 ac_retval=1
1719 fi
1720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1721 conftest.$ac_objext conftest.beam conftest.$ac_ext
1722 rm -f conftest.val
1723
1724 fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_compute_int
1729
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } > conftest.i && {
1752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_cpp
1766
1767 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists and can be compiled using the include files in
1770 # INCLUDES, setting the cache variable VAR accordingly.
1771 ac_fn_c_check_header_compile ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 $4
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786 else
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_compile
1797 cat >config.log <<_ACEOF
1798 This file contains any messages produced by compilers while
1799 running configure, to aid debugging if configure makes a mistake.
1800
1801 It was created by CafeOBJ $as_me 1.6, which was
1802 generated by GNU Autoconf 2.69. Invocation command line was
1803
1804 $ $0 $@
1805
1806 _ACEOF
1807 exec 5>>config.log
1808 {
1809 cat <<_ASUNAME
1810 ## --------- ##
1811 ## Platform. ##
1812 ## --------- ##
1813
1814 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1815 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1816 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1817 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1818 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1819
1820 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1821 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1822
1823 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1824 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1825 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1826 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1827 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1828 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1829 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830
1831 _ASUNAME
1832
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 for as_dir in $PATH
1835 do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
1838 $as_echo "PATH: $as_dir"
1839 done
1840 IFS=$as_save_IFS
1841
1842 } >&5
1843
1844 cat >&5 <<_ACEOF
1845
1846
1847 ## ----------- ##
1848 ## Core tests. ##
1849 ## ----------- ##
1850
1851 _ACEOF
1852
1853
1854 # Keep a trace of the command line.
1855 # Strip out --no-create and --no-recursion so they do not pile up.
1856 # Strip out --silent because we don't want to record it for future runs.
1857 # Also quote any args containing shell meta-characters.
1858 # Make two passes to allow for proper duplicate-argument suppression.
1859 ac_configure_args=
1860 ac_configure_args0=
1861 ac_configure_args1=
1862 ac_must_keep_next=false
1863 for ac_pass in 1 2
1864 do
1865 for ac_arg
1866 do
1867 case $ac_arg in
1868 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1870 | -silent | --silent | --silen | --sile | --sil)
1871 continue ;;
1872 *\'*)
1873 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 esac
1875 case $ac_pass in
1876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1877 2)
1878 as_fn_append ac_configure_args1 " '$ac_arg'"
1879 if test $ac_must_keep_next = true; then
1880 ac_must_keep_next=false # Got value, back to normal.
1881 else
1882 case $ac_arg in
1883 *=* | --config-cache | -C | -disable-* | --disable-* \
1884 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1885 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1886 | -with-* | --with-* | -without-* | --without-* | --x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1889 esac
1890 ;;
1891 -* ) ac_must_keep_next=true ;;
1892 esac
1893 fi
1894 as_fn_append ac_configure_args " '$ac_arg'"
1895 ;;
1896 esac
1897 done
1898 done
1899 { ac_configure_args0=; unset ac_configure_args0;}
1900 { ac_configure_args1=; unset ac_configure_args1;}
1901
1902 # When interrupted or exit'd, cleanup temporary files, and complete
1903 # config.log. We remove comments because anyway the quotes in there
1904 # would cause problems or look ugly.
1905 # WARNING: Use '\'' to represent an apostrophe within the trap.
1906 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1907 trap 'exit_status=$?
1908 # Save into config.log some information that might help in debugging.
1909 {
1910 echo
1911
1912 $as_echo "## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##"
1915 echo
1916 # The following way of writing the cache mishandles newlines in values,
1917 (
1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in #(
1921 *${as_nl}*)
1922 case $ac_var in #(
1923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1926 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1930 esac ;;
1931 esac
1932 done
1933 (set) 2>&1 |
1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space=\ *)
1936 sed -n \
1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939 ;; #(
1940 *)
1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 ;;
1943 esac |
1944 sort
1945 )
1946 echo
1947
1948 $as_echo "## ----------------- ##
1949 ## Output variables. ##
1950 ## ----------------- ##"
1951 echo
1952 for ac_var in $ac_subst_vars
1953 do
1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 $as_echo "$ac_var='\''$ac_val'\''"
1959 done | sort
1960 echo
1961
1962 if test -n "$ac_subst_files"; then
1963 $as_echo "## ------------------- ##
1964 ## File substitutions. ##
1965 ## ------------------- ##"
1966 echo
1967 for ac_var in $ac_subst_files
1968 do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1976 fi
1977
1978 if test -s confdefs.h; then
1979 $as_echo "## ----------- ##
1980 ## confdefs.h. ##
1981 ## ----------- ##"
1982 echo
1983 cat confdefs.h
1984 echo
1985 fi
1986 test "$ac_signal" != 0 &&
1987 $as_echo "$as_me: caught signal $ac_signal"
1988 $as_echo "$as_me: exit $exit_status"
1989 } >&5
1990 rm -f core *.core core.conftest.* &&
1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1992 exit $exit_status
1993 ' 0
1994 for ac_signal in 1 2 13 15; do
1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1996 done
1997 ac_signal=0
1998
1999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2000 rm -f -r conftest* confdefs.h
2001
2002 $as_echo "/* confdefs.h */" > confdefs.h
2003
2004 # Predefined preprocessor variables.
2005
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_NAME "$PACKAGE_NAME"
2008 _ACEOF
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2012 _ACEOF
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2016 _ACEOF
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_STRING "$PACKAGE_STRING"
2020 _ACEOF
2021
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2024 _ACEOF
2025
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_URL "$PACKAGE_URL"
2028 _ACEOF
2029
2030
2031 # Let the site file select an alternate cache file if it wants to.
2032 # Prefer an explicitly selected file to automatically selected ones.
2033 ac_site_file1=NONE
2034 ac_site_file2=NONE
2035 if test -n "$CONFIG_SITE"; then
2036 # We do not want a PATH search for config.site.
2037 case $CONFIG_SITE in #((
2038 -*) ac_site_file1=./$CONFIG_SITE;;
2039 */*) ac_site_file1=$CONFIG_SITE;;
2040 *) ac_site_file1=./$CONFIG_SITE;;
2041 esac
2042 elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045 else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
2048 fi
2049 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050 do
2051 test "x$ac_site_file" = xNONE && continue
2052 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2055 sed 's/^/| /' "$ac_site_file" >&5
2056 . "$ac_site_file" \
2057 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2059 as_fn_error $? "failed to load site script $ac_site_file
2060 See \`config.log' for more details" "$LINENO" 5; }
2061 fi
2062 done
2063
2064 if test -r "$cache_file"; then
2065 # Some versions of bash will fail to source /dev/null (special files
2066 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2067 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2069 $as_echo "$as_me: loading cache $cache_file" >&6;}
2070 case $cache_file in
2071 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2072 *) . "./$cache_file";;
2073 esac
2074 fi
2075 else
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2077 $as_echo "$as_me: creating cache $cache_file" >&6;}
2078 >$cache_file
2079 fi
2080
2081 # Check that the precious variables saved in the cache have kept the same
2082 # value.
2083 ac_cache_corrupted=false
2084 for ac_var in $ac_precious_vars; do
2085 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2086 eval ac_new_set=\$ac_env_${ac_var}_set
2087 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2088 eval ac_new_val=\$ac_env_${ac_var}_value
2089 case $ac_old_set,$ac_new_set in
2090 set,)
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2092 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2093 ac_cache_corrupted=: ;;
2094 ,set)
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2098 ,);;
2099 *)
2100 if test "x$ac_old_val" != "x$ac_new_val"; then
2101 # differences in whitespace do not lead to failure.
2102 ac_old_val_w=`echo x $ac_old_val`
2103 ac_new_val_w=`echo x $ac_new_val`
2104 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2106 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2107 ac_cache_corrupted=:
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2110 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2111 eval $ac_var=\$ac_old_val
2112 fi
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2114 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2116 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2117 fi;;
2118 esac
2119 # Pass precious variables to config.status.
2120 if test "$ac_new_set" = set; then
2121 case $ac_new_val in
2122 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2123 *) ac_arg=$ac_var=$ac_new_val ;;
2124 esac
2125 case " $ac_configure_args " in
2126 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2127 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2128 esac
2129 fi
2130 done
2131 if $ac_cache_corrupted; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2135 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2136 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2137 fi
2138 ## -------------------- ##
2139 ## Main body of script. ##
2140 ## -------------------- ##
2141
2142 ac_ext=c
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
2148
2149
2150
2151 VMINOR=.0
2152 VMEMO=PigNose0.99
2153 PATCHLEVEL=
2154
2155
2156
2157 test "$program_prefix" != NONE &&
2158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2159 # Use a double $ so make ignores it.
2160 test "$program_suffix" != NONE &&
2161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2162 # Double any \ or $.
2163 # By default was `s,x,x', remove it if useless.
2164 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2165 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2166
2167 ac_aux_dir=
2168 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2169 if test -f "$ac_dir/install-sh"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/install-sh -c"
2172 break
2173 elif test -f "$ac_dir/install.sh"; then
2174 ac_aux_dir=$ac_dir
2175 ac_install_sh="$ac_aux_dir/install.sh -c"
2176 break
2177 elif test -f "$ac_dir/shtool"; then
2178 ac_aux_dir=$ac_dir
2179 ac_install_sh="$ac_aux_dir/shtool install -c"
2180 break
2181 fi
2182 done
2183 if test -z "$ac_aux_dir"; then
2184 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2185 fi
2186
2187 # These three variables are undocumented and unsupported,
2188 # and are intended to be withdrawn in a future Autoconf release.
2189 # They can cause serious problems if a builder's source tree is in a directory
2190 # whose full name contains unusual characters.
2191 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2192 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2193 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2194
2195
2196 # Find a good install program. We prefer a C program (faster),
2197 # so one script is as good as another. But avoid the broken or
2198 # incompatible versions:
2199 # SysV /etc/install, /usr/sbin/install
2200 # SunOS /usr/etc/install
2201 # IRIX /sbin/install
2202 # AIX /bin/install
2203 # AmigaOS /C/install, which installs bootblocks on floppy discs
2204 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2205 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2206 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2207 # OS/2's system install, which has a completely different semantic
2208 # ./install, which can be erroneously created by make from ./install.sh.
2209 # Reject install programs that cannot install multiple files.
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2211 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2212 if test -z "$INSTALL"; then
2213 if ${ac_cv_path_install+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 # Account for people who put trailing slashes in PATH elements.
2222 case $as_dir/ in #((
2223 ./ | .// | /[cC]/* | \
2224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2225 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2226 /usr/ucb/* ) ;;
2227 *)
2228 # OSF1 and SCO ODT 3.0 have their own names for install.
2229 # Don't use installbsd from OSF since it installs stuff as root
2230 # by default.
2231 for ac_prog in ginstall scoinst install; do
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2234 if test $ac_prog = install &&
2235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2236 # AIX install. It has an incompatible calling convention.
2237 :
2238 elif test $ac_prog = install &&
2239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2240 # program-specific install script used by HP pwplus--don't use.
2241 :
2242 else
2243 rm -rf conftest.one conftest.two conftest.dir
2244 echo one > conftest.one
2245 echo two > conftest.two
2246 mkdir conftest.dir
2247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2248 test -s conftest.one && test -s conftest.two &&
2249 test -s conftest.dir/conftest.one &&
2250 test -s conftest.dir/conftest.two
2251 then
2252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2253 break 3
2254 fi
2255 fi
2256 fi
2257 done
2258 done
2259 ;;
2260 esac
2261
2262 done
2263 IFS=$as_save_IFS
2264
2265 rm -rf conftest.one conftest.two conftest.dir
2266
2267 fi
2268 if test "${ac_cv_path_install+set}" = set; then
2269 INSTALL=$ac_cv_path_install
2270 else
2271 # As a last resort, use the slow shell script. Don't cache a
2272 # value for INSTALL within a source directory, because that will
2273 # break other packages using the cache if that directory is
2274 # removed, or if the value is a relative name.
2275 INSTALL=$ac_install_sh
2276 fi
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2279 $as_echo "$INSTALL" >&6; }
2280
2281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2282 # It thinks the first close brace ends the variable substitution.
2283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2284
2285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2286
2287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2288
2289
2290
2291
2292
2293 # Check whether --with-sbcl was given.
2294 if test "${with_sbcl+set}" = set; then :
2295 withval=$with_sbcl; sbcl_interp=$withval
2296 else
2297 sbcl_interp=sbcl
2298 fi
2299
2300 sbcl_dump=cafeobj.sbcl
2301
2302
2303 # Check whether --with-acl was given.
2304 if test "${with_acl+set}" = set; then :
2305 withval=$with_acl; acl_interp=$withval
2306 else
2307 acl_interp=alisp
2308 fi
2309
2310 acl_dump=cafeobj.acl
2311 acl_standalone_dump=CafeOBJ
2312
2313
2314 # Check whether --with-clisp was given.
2315 if test "${with_clisp+set}" = set; then :
2316 withval=$with_clisp; clisp_interp=$withval
2317 else
2318 clisp_interp=clisp
2319 fi
2320
2321 clisp_dump=cafeobj.mem
2322
2323 ccl32_interp=ccl
2324 ccl32_dump=cafeobj.img
2325
2326 ccl64_interp=ccl64
2327 ccl64_dump=cafeobj.img
2328
2329 gcl_interp=gcl
2330 gcl_dump=cafeobj.exe
2331
2332 cmu_interp=lisp
2333 cmu_dump=cafeobj.core
2334
2335
2336 # Extract the first word of "gcl", so it can be a program name with args.
2337 set dummy gcl; ac_word=$2
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339 $as_echo_n "checking for $ac_word... " >&6; }
2340 if ${ac_cv_path_gcl_path+:} false; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 case $gcl_path in
2344 [\\/]* | ?:[\\/]*)
2345 ac_cv_path_gcl_path="$gcl_path" # Let the user override the test with a path.
2346 ;;
2347 *)
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2350 do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_path_gcl_path="$as_dir/$ac_word$ac_exec_ext"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2358 fi
2359 done
2360 done
2361 IFS=$as_save_IFS
2362
2363 ;;
2364 esac
2365 fi
2366 gcl_path=$ac_cv_path_gcl_path
2367 if test -n "$gcl_path"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcl_path" >&5
2369 $as_echo "$gcl_path" >&6; }
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372 $as_echo "no" >&6; }
2373 fi
2374
2375
2376 # Extract the first word of "$cmu_interp", so it can be a program name with args.
2377 set dummy $cmu_interp; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_path_cmu_path+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 case $cmu_path in
2384 [\\/]* | ?:[\\/]*)
2385 ac_cv_path_cmu_path="$cmu_path" # Let the user override the test with a path.
2386 ;;
2387 *)
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_path_cmu_path="$as_dir/$ac_word$ac_exec_ext"
2396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399 done
2400 done
2401 IFS=$as_save_IFS
2402
2403 ;;
2404 esac
2405 fi
2406 cmu_path=$ac_cv_path_cmu_path
2407 if test -n "$cmu_path"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_path" >&5
2409 $as_echo "$cmu_path" >&6; }
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2412 $as_echo "no" >&6; }
2413 fi
2414
2415
2416 # Extract the first word of "$sbcl_interp", so it can be a program name with args.
2417 set dummy $sbcl_interp; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_path_sbcl_path+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 case $sbcl_path in
2424 [\\/]* | ?:[\\/]*)
2425 ac_cv_path_sbcl_path="$sbcl_path" # Let the user override the test with a path.
2426 ;;
2427 *)
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_path_sbcl_path="$as_dir/$ac_word$ac_exec_ext"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 ;;
2444 esac
2445 fi
2446 sbcl_path=$ac_cv_path_sbcl_path
2447 if test -n "$sbcl_path"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sbcl_path" >&5
2449 $as_echo "$sbcl_path" >&6; }
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2453 fi
2454
2455
2456 # Extract the first word of "$acl_interp", so it can be a program name with args.
2457 set dummy $acl_interp; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_path_acl_path+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 case $acl_path in
2464 [\\/]* | ?:[\\/]*)
2465 ac_cv_path_acl_path="$acl_path" # Let the user override the test with a path.
2466 ;;
2467 *)
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475 ac_cv_path_acl_path="$as_dir/$ac_word$ac_exec_ext"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 ;;
2484 esac
2485 fi
2486 acl_path=$ac_cv_path_acl_path
2487 if test -n "$acl_path"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_path" >&5
2489 $as_echo "$acl_path" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 # Extract the first word of "$clisp_interp", so it can be a program name with args.
2497 set dummy $clisp_interp; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_path_clisp_path+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 case $clisp_path in
2504 [\\/]* | ?:[\\/]*)
2505 ac_cv_path_clisp_path="$clisp_path" # Let the user override the test with a path.
2506 ;;
2507 *)
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_path_clisp_path="$as_dir/$ac_word$ac_exec_ext"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 ;;
2524 esac
2525 fi
2526 clisp_path=$ac_cv_path_clisp_path
2527 if test -n "$clisp_path"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clisp_path" >&5
2529 $as_echo "$clisp_path" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2534
2535
2536 # Extract the first word of "$ccl32_interp", so it can be a program name with args.
2537 set dummy $ccl32_interp; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_path_ccl32_path+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 case $ccl32_path in
2544 [\\/]* | ?:[\\/]*)
2545 ac_cv_path_ccl32_path="$ccl32_path" # Let the user override the test with a path.
2546 ;;
2547 *)
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_path_ccl32_path="$as_dir/$ac_word$ac_exec_ext"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 ;;
2564 esac
2565 fi
2566 ccl32_path=$ac_cv_path_ccl32_path
2567 if test -n "$ccl32_path"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccl32_path" >&5
2569 $as_echo "$ccl32_path" >&6; }
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2573 fi
2574
2575
2576 # Extract the first word of "$ccl64_interp", so it can be a program name with args.
2577 set dummy $ccl64_interp; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_path_ccl64_path+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 case $ccl64_path in
2584 [\\/]* | ?:[\\/]*)
2585 ac_cv_path_ccl64_path="$ccl64_path" # Let the user override the test with a path.
2586 ;;
2587 *)
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_path_ccl64_path="$as_dir/$ac_word$ac_exec_ext"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 ;;
2604 esac
2605 fi
2606 ccl64_path=$ac_cv_path_ccl64_path
2607 if test -n "$ccl64_path"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccl64_path" >&5
2609 $as_echo "$ccl64_path" >&6; }
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2619 set x ${MAKE-make}
2620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2621 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 cat >conftest.make <<\_ACEOF
2625 SHELL = /bin/sh
2626 all:
2627 @echo '@@@%%%=$(MAKE)=@@@%%%'
2628 _ACEOF
2629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2631 *@@@%%%=?*=@@@%%%*)
2632 eval ac_cv_prog_make_${ac_make}_set=yes;;
2633 *)
2634 eval ac_cv_prog_make_${ac_make}_set=no;;
2635 esac
2636 rm -f conftest.make
2637 fi
2638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641 SET_MAKE=
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 SET_MAKE="MAKE=${MAKE-make}"
2646 fi
2647
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650 if test -z "$MKDIR_P"; then
2651 if ${ac_cv_path_mkdir+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_prog in mkdir gmkdir; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663 'mkdir (GNU coreutils) '* | \
2664 'mkdir (coreutils) '* | \
2665 'mkdir (fileutils) '4.1*)
2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667 break 3;;
2668 esac
2669 done
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675
2676 test -d ./--version && rmdir ./--version
2677 if test "${ac_cv_path_mkdir+set}" = set; then
2678 MKDIR_P="$ac_cv_path_mkdir -p"
2679 else
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for MKDIR_P within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 MKDIR_P="$ac_install_sh -d"
2685 fi
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688 $as_echo "$MKDIR_P" >&6; }
2689
2690
2691 # Check whether --with-lisp was given.
2692 if test "${with_lisp+set}" = set; then :
2693 withval=$with_lisp; lisp=$withval
2694 fi
2695
2696
2697
2698 if test "x$lisp" = "x"
2699 then
2700 # no lisp specified, select one by default
2701 # we disable the currently not building ones!!!
2702 if test -n "$acl_path" ; then lisp=acl ;
2703 elif test -n "$sbcl_path" ; then lisp=sbcl ;
2704 elif test -n "$clisp_path" ; then lisp=clisp ;
2705 # elif test -n "$gcl_path" ; then lisp=gcl ;
2706 # elif test -n "$cmu_path" ; then lisp=cmu ;
2707 # elif test -n "$ccl32_path" ; then lisp=ccl ;
2708 # elif test -n "$ccl64_path" ; then lisp=ccl64 ;
2709 else
2710 as_fn_error $? "no supported lisp interpreter found" "$LINENO" 5
2711 fi
2712 fi
2713
2714
2715 do_all=0
2716 if test "x$lisp" = "xall"
2717 then
2718 do_all=1
2719 # this is the preferred order of interpreters!!
2720 # if nothing is specified, the first one found will be used!
2721 #lisp=acl,sbcl,clisp,gcl,cmu,ccl,ccl64
2722 # use only currently supported ones
2723 lisp=acl-standalone,acl,sbcl,clisp
2724 fi
2725
2726 lisp=$(echo $lisp | sed -e 's/,/ /g')
2727
2728 goodlisp=
2729 firstchoice=
2730 for i in $lisp
2731 do
2732 case "x$i" in
2733 xcmu|xcmu-pc)
2734 if test -z "$cmu_path"
2735 then
2736 test $do_all = 1 || \
2737 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2738 else
2739 goodlisp="$goodlisp $i"
2740 if test "x$firstchoice" = x
2741 then
2742 firstchoice=$i
2743 fi
2744 fi
2745 ;;
2746 xsbcl)
2747 if test -z "$sbcl_path"
2748 then
2749 test $do_all = 1 || \
2750 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2751 else
2752 goodlisp="$goodlisp $i"
2753 if test "x$firstchoice" = x
2754 then
2755 firstchoice=$i
2756 fi
2757 fi
2758 ;;
2759 xacl|xacl-standalone)
2760 if test -z "$acl_path"
2761 then
2762 test $do_all = 1 || \
2763 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2764 else
2765 goodlisp="$goodlisp $i"
2766 if test "x$firstchoice" = x
2767 then
2768 firstchoice=$i
2769 fi
2770 fi
2771 ;;
2772 xclisp)
2773 if test -z "$clisp_path"
2774 then
2775 test $do_all = 1 || \
2776 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2777 else
2778 goodlisp="$goodlisp $i"
2779 if test "x$firstchoice" = x
2780 then
2781 firstchoice=$i
2782 fi
2783 fi
2784 ;;
2785 xccl)
2786 if test -z "$ccl32_path"
2787 then
2788 test $do_all = 1 || \
2789 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2790 else
2791 goodlisp="$goodlisp $i"
2792 if test "x$firstchoice" = x
2793 then
2794 firstchoice=$i
2795 fi
2796 fi
2797 ;;
2798 xccl64)
2799 if test -z "$ccl64_path"
2800 then
2801 test $do_all = 1 || \
2802 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2803 else
2804 goodlisp="$goodlisp $i"
2805 if test "x$firstchoice" = x
2806 then
2807 firstchoice=$i
2808 fi
2809 fi
2810 ;;
2811 xgcl)
2812 if test -z "$gcl_path"
2813 then
2814 test $do_all = 1 || \
2815 as_fn_error $? "selected lisp interpreter $i is not available" "$LINENO" 5
2816 else
2817 goodlisp="$goodlisp $i"
2818 if test "x$firstchoice" = x
2819 then
2820 firstchoice=$i
2821 fi
2822 fi
2823 ;;
2824 *)
2825 as_fn_error $? "unknown lisp interpreter $i" "$LINENO" 5
2826 ;;
2827 esac
2828 done
2829
2830 lisp="$goodlisp"
2831
2832 if test -z "$lisp"
2833 then
2834 as_fn_error $? "no usable lisp interpreter" "$LINENO" 5
2835 fi
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: Building for the following lisp interpreters: $lisp" >&5
2838 $as_echo "$as_me: Building for the following lisp interpreters: $lisp" >&6;}
2839
2840 # If set to t, that means we are running in a shell under Emacs.
2841 # If you have an Emacs named "t", then use the full path.
2842 test x"$EMACS" = xt && EMACS=
2843 for ac_prog in emacs xemacs
2844 do
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_EMACS+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$EMACS"; then
2853 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_EMACS="$ac_prog"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 EMACS=$ac_cv_prog_EMACS
2873 if test -n "$EMACS"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
2875 $as_echo "$EMACS" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 test -n "$EMACS" && break
2883 done
2884 test -n "$EMACS" || EMACS="no"
2885
2886
2887
2888
2889 # Check whether --with-lispdir was given.
2890 if test "${with_lispdir+set}" = set; then :
2891 withval=$with_lispdir; lispdir="$withval"
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
2893 $as_echo_n "checking where .elc files should go... " >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
2895 $as_echo "$lispdir" >&6; }
2896 else
2897
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
2899 $as_echo_n "checking where .elc files should go... " >&6; }
2900 if ${am_cv_lispdir+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903
2904 if test $EMACS != "no"; then
2905 if test x${lispdir+set} != xset; then
2906 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
2907 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
2908 # which is non-obvious for non-emacs users.
2909 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
2910 # emacsen earlier and avoid running this altogether.
2911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
2912 ($EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
2913 ac_status=$?
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }
2916 am_cv_lispdir=`sed -n \
2917 -e 's,/$,,' \
2918 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
2919 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
2920 conftest.out`
2921 rm conftest.out
2922 fi
2923 fi
2924 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
2925
2926 fi
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
2928 $as_echo "$am_cv_lispdir" >&6; }
2929 lispdir="$am_cv_lispdir"
2930
2931 fi
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955 # test for 64/32 bit
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 if test -z "$ac_cv_prog_CC"; then
3001 ac_ct_CC=$CC
3002 # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3048 fi
3049 else
3050 CC="$ac_cv_prog_CC"
3051 fi
3052
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_CC="${ac_tool_prefix}cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076 done
3077 done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092 fi
3093 fi
3094 if test -z "$CC"; then
3095 # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 ac_prog_rejected=no
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114 ac_prog_rejected=yes
3115 continue
3116 fi
3117 ac_cv_prog_CC="cc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 if test $ac_prog_rejected = yes; then
3126 # We found a bogon in the path, so make sure we never use it.
3127 set dummy $ac_cv_prog_CC
3128 shift
3129 if test $# != 0; then
3130 # We chose a different compiler from the bogus one.
3131 # However, it has the same basename, so the bogon will be chosen
3132 # first if we set CC to just the basename; use the full file name.
3133 shift
3134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3135 fi
3136 fi
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 for ac_prog in cl.exe
3153 do
3154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 test -n "$CC" && break
3192 done
3193 fi
3194 if test -z "$CC"; then
3195 ac_ct_CC=$CC
3196 for ac_prog in cl.exe
3197 do
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_CC="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219 done
3220 done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235 test -n "$ac_ct_CC" && break
3236 done
3237
3238 if test "x$ac_ct_CC" = x; then
3239 CC=""
3240 else
3241 case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247 CC=$ac_ct_CC
3248 fi
3249 fi
3250
3251 fi
3252
3253
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details" "$LINENO" 5; }
3258
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261 set X $ac_compile
3262 ac_compiler=$2
3263 for ac_option in --version -v -V -qversion; do
3264 { { ac_try="$ac_compiler $ac_option >&5"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272 ac_status=$?
3273 if test -s conftest.err; then
3274 sed '10a\
3275 ... rest of stderr output deleted ...
3276 10q' conftest.err >conftest.er1
3277 cat conftest.er1 >&5
3278 fi
3279 rm -f conftest.er1 conftest.err
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 done
3283
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286
3287 int
3288 main ()
3289 {
3290
3291 ;
3292 return 0;
3293 }
3294 _ACEOF
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3299 # of exeext.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301 $as_echo_n "checking whether the C compiler works... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306
3307 ac_rmfiles=
3308 for ac_file in $ac_files
3309 do
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313 esac
3314 done
3315 rm -f $ac_rmfiles
3316
3317 if { { ac_try="$ac_link_default"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link_default") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3332 # Autoconf.
3333 for ac_file in $ac_files ''
3334 do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338 ;;
3339 [ab].out )
3340 # We found the default executable, but exeext='' is most
3341 # certainly right.
3342 break;;
3343 *.* )
3344 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345 then :; else
3346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 fi
3348 # We set ac_cv_exeext here because the later test for it is not
3349 # safe: cross compilers may not add the suffix if given an `-o'
3350 # argument, so we may need to know it at that point already.
3351 # Even if this section looks crufty: it has the advantage of
3352 # actually working.
3353 break;;
3354 * )
3355 break;;
3356 esac
3357 done
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359
3360 else
3361 ac_file=''
3362 fi
3363 if test -z "$ac_file"; then :
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error 77 "C compiler cannot create executables
3372 See \`config.log' for more details" "$LINENO" 5; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375 $as_echo "yes" >&6; }
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378 $as_echo_n "checking for C compiler default output file name... " >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380 $as_echo "$ac_file" >&6; }
3381 ac_exeext=$ac_cv_exeext
3382
3383 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384 ac_clean_files=$ac_clean_files_save
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386 $as_echo_n "checking for suffix of executables... " >&6; }
3387 if { { ac_try="$ac_link"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3400 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 # `rm'.
3402 for ac_file in conftest.exe conftest conftest.*; do
3403 test -f "$ac_file" || continue
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 break;;
3408 * ) break;;
3409 esac
3410 done
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 fi
3417 rm -f conftest conftest$ac_cv_exeext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419 $as_echo "$ac_cv_exeext" >&6; }
3420
3421 rm -f conftest.$ac_ext
3422 EXEEXT=$ac_cv_exeext
3423 ac_exeext=$EXEEXT
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426 #include <stdio.h>
3427 int
3428 main ()
3429 {
3430 FILE *f = fopen ("conftest.out", "w");
3431 return ferror (f) || fclose (f) != 0;
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 ac_clean_files="$ac_clean_files conftest.out"
3438 # Check that the compiler produces executables we can run. If not, either
3439 # the compiler is broken, or we cross compile.
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441 $as_echo_n "checking whether we are cross compiling... " >&6; }
3442 if test "$cross_compiling" != yes; then
3443 { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3454 if { ac_try='./conftest$ac_cv_exeext'
3455 { { case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_try") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; }; then
3465 cross_compiling=no
3466 else
3467 if test "$cross_compiling" = maybe; then
3468 cross_compiling=yes
3469 else
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot run C compiled programs.
3473 If you meant to cross compile, use \`--host'.
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 fi
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479 $as_echo "$cross_compiling" >&6; }
3480
3481 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482 ac_clean_files=$ac_clean_files_save
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484 $as_echo_n "checking for suffix of object files... " >&6; }
3485 if ${ac_cv_objext+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 rm -f conftest.o conftest.obj
3500 if { { ac_try="$ac_compile"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_compile") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 for ac_file in conftest.o conftest.obj conftest.*; do
3512 test -f "$ac_file" || continue;
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516 break;;
3517 esac
3518 done
3519 else
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "cannot compute suffix of object files: cannot compile
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 fi
3528 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531 $as_echo "$ac_cv_objext" >&6; }
3532 OBJEXT=$ac_cv_objext
3533 ac_objext=$OBJEXT
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536 if ${ac_cv_c_compiler_gnu+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541
3542 int
3543 main ()
3544 {
3545 #ifndef __GNUC__
3546 choke me
3547 #endif
3548
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_compiler_gnu=yes
3555 else
3556 ac_compiler_gnu=no
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3560
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564 if test $ac_compiler_gnu = yes; then
3565 GCC=yes
3566 else
3567 GCC=
3568 fi
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3573 if ${ac_cv_prog_cc_g+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_save_c_werror_flag=$ac_c_werror_flag
3577 ac_c_werror_flag=yes
3578 ac_cv_prog_cc_g=no
3579 CFLAGS="-g"
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582
3583 int
3584 main ()
3585 {
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_cv_prog_cc_g=yes
3593 else
3594 CFLAGS=""
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597
3598 int
3599 main ()
3600 {
3601
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607
3608 else
3609 ac_c_werror_flag=$ac_save_c_werror_flag
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633 $as_echo "$ac_cv_prog_cc_g" >&6; }
3634 if test "$ac_test_CFLAGS" = set; then
3635 CFLAGS=$ac_save_CFLAGS
3636 elif test $ac_cv_prog_cc_g = yes; then
3637 if test "$GCC" = yes; then
3638 CFLAGS="-g -O2"
3639 else
3640 CFLAGS="-g"
3641 fi
3642 else
3643 if test "$GCC" = yes; then
3644 CFLAGS="-O2"
3645 else
3646 CFLAGS=
3647 fi
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651 if ${ac_cv_prog_cc_c89+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 ac_cv_prog_cc_c89=no
3655 ac_save_CC=$CC
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658 #include <stdarg.h>
3659 #include <stdio.h>
3660 struct stat;
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3665 char **p;
3666 int i;
3667 {
3668 return p[i];
3669 }
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3671 {
3672 char *s;
3673 va_list v;
3674 va_start (v,p);
3675 s = g (p, va_arg (v,int));
3676 va_end (v);
3677 return s;
3678 }
3679
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3691 #define FOO(x) 'x'
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 int argc;
3699 char **argv;
3700 int
3701 main ()
3702 {
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 do
3711 CC="$ac_save_CC $ac_arg"
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_cv_prog_cc_c89=$ac_arg
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext
3716 test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 done
3718 rm -f conftest.$ac_ext
3719 CC=$ac_save_CC
3720
3721 fi
3722 # AC_CACHE_VAL
3723 case "x$ac_cv_prog_cc_c89" in
3724 x)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3726 $as_echo "none needed" >&6; } ;;
3727 xno)
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 $as_echo "unsupported" >&6; } ;;
3730 *)
3731 CC="$CC $ac_cv_prog_cc_c89"
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3733 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3734 esac
3735 if test "x$ac_cv_prog_cc_c89" != xno; then :
3736
3737 fi
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3756 fi
3757 if test -z "$CPP"; then
3758 if ${ac_cv_prog_CPP+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763 do
3764 ac_preproc_ok=false
3765 for ac_c_preproc_warn_flag in '' yes
3766 do
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780 Syntax error
3781 _ACEOF
3782 if ac_fn_c_try_cpp "$LINENO"; then :
3783
3784 else
3785 # Broken: fails on valid input.
3786 continue
3787 fi
3788 rm -f conftest.err conftest.i conftest.$ac_ext
3789
3790 # OK, works on sane cases. Now check whether nonexistent headers
3791 # can be detected and how.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <ac_nonexistent.h>
3795 _ACEOF
3796 if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: success on invalid input.
3798 continue
3799 else
3800 # Passes both tests.
3801 ac_preproc_ok=:
3802 break
3803 fi
3804 rm -f conftest.err conftest.i conftest.$ac_ext
3805
3806 done
3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808 rm -f conftest.i conftest.err conftest.$ac_ext
3809 if $ac_preproc_ok; then :
3810 break
3811 fi
3812
3813 done
3814 ac_cv_prog_CPP=$CPP
3815
3816 fi
3817 CPP=$ac_cv_prog_CPP
3818 else
3819 ac_cv_prog_CPP=$CPP
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822 $as_echo "$CPP" >&6; }
3823 ac_preproc_ok=false
3824 for ac_c_preproc_warn_flag in '' yes
3825 do
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #ifdef __STDC__
3835 # include <limits.h>
3836 #else
3837 # include <assert.h>
3838 #endif
3839 Syntax error
3840 _ACEOF
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3842
3843 else
3844 # Broken: fails on valid input.
3845 continue
3846 fi
3847 rm -f conftest.err conftest.i conftest.$ac_ext
3848
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856 # Broken: success on invalid input.
3857 continue
3858 else
3859 # Passes both tests.
3860 ac_preproc_ok=:
3861 break
3862 fi
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3864
3865 done
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.i conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then :
3869
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874 See \`config.log' for more details" "$LINENO" 5; }
3875 fi
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3885 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886 if ${ac_cv_path_GREP+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 as_fn_executable_p "$ac_path_GREP" || continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3904 *GNU*)
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 *)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3928
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3932 done
3933 IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_GREP"; then
3935 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3936 fi
3937 else
3938 ac_cv_path_GREP=$GREP
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3943 $as_echo "$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
3945
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3948 $as_echo_n "checking for egrep... " >&6; }
3949 if ${ac_cv_path_EGREP+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953 then ac_cv_path_EGREP="$GREP -E"
3954 else
3955 if test -z "$EGREP"; then
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 as_fn_executable_p "$ac_path_EGREP" || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972 *)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995 $ac_path_EGREP_found && break 3
3996 done
3997 done
3998 done
3999 IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_EGREP"; then
4001 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002 fi
4003 else
4004 ac_cv_path_EGREP=$EGREP
4005 fi
4006
4007 fi
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4010 $as_echo "$ac_cv_path_EGREP" >&6; }
4011 EGREP="$ac_cv_path_EGREP"
4012
4013
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4015 $as_echo_n "checking for ANSI C header files... " >&6; }
4016 if ${ac_cv_header_stdc+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <stdlib.h>
4022 #include <stdarg.h>
4023 #include <string.h>
4024 #include <float.h>
4025
4026 int
4027 main ()
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035 ac_cv_header_stdc=yes
4036 else
4037 ac_cv_header_stdc=no
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040
4041 if test $ac_cv_header_stdc = yes; then
4042 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <string.h>
4046
4047 _ACEOF
4048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4049 $EGREP "memchr" >/dev/null 2>&1; then :
4050
4051 else
4052 ac_cv_header_stdc=no
4053 fi
4054 rm -f conftest*
4055
4056 fi
4057
4058 if test $ac_cv_header_stdc = yes; then
4059 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #include <stdlib.h>
4063
4064 _ACEOF
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 $EGREP "free" >/dev/null 2>&1; then :
4067
4068 else
4069 ac_cv_header_stdc=no
4070 fi
4071 rm -f conftest*
4072
4073 fi
4074
4075 if test $ac_cv_header_stdc = yes; then
4076 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4077 if test "$cross_compiling" = yes; then :
4078 :
4079 else
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <ctype.h>
4083 #include <stdlib.h>
4084 #if ((' ' & 0x0FF) == 0x020)
4085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4087 #else
4088 # define ISLOWER(c) \
4089 (('a' <= (c) && (c) <= 'i') \
4090 || ('j' <= (c) && (c) <= 'r') \
4091 || ('s' <= (c) && (c) <= 'z'))
4092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4093 #endif
4094
4095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4096 int
4097 main ()
4098 {
4099 int i;
4100 for (i = 0; i < 256; i++)
4101 if (XOR (islower (i), ISLOWER (i))
4102 || toupper (i) != TOUPPER (i))
4103 return 2;
4104 return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_run "$LINENO"; then :
4108
4109 else
4110 ac_cv_header_stdc=no
4111 fi
4112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4113 conftest.$ac_objext conftest.beam conftest.$ac_ext
4114 fi
4115
4116 fi
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4119 $as_echo "$ac_cv_header_stdc" >&6; }
4120 if test $ac_cv_header_stdc = yes; then
4121
4122 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4123
4124 fi
4125
4126 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4128 inttypes.h stdint.h unistd.h
4129 do :
4130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4131 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4132 "
4133 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4134 cat >>confdefs.h <<_ACEOF
4135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136 _ACEOF
4137
4138 fi
4139
4140 done
4141
4142
4143 # The cast to long int works around a bug in the HP C Compiler
4144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4146 # This bug is HP SR number 8606223364.
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4148 $as_echo_n "checking size of long... " >&6; }
4149 if ${ac_cv_sizeof_long+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4153
4154 else
4155 if test "$ac_cv_type_long" = yes; then
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error 77 "cannot compute sizeof (long)
4159 See \`config.log' for more details" "$LINENO" 5; }
4160 else
4161 ac_cv_sizeof_long=0
4162 fi
4163 fi
4164
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4167 $as_echo "$ac_cv_sizeof_long" >&6; }
4168
4169
4170
4171 cat >>confdefs.h <<_ACEOF
4172 #define SIZEOF_LONG $ac_cv_sizeof_long
4173 _ACEOF
4174
4175
4176 if test "$ac_cv_sizeof_long" -eq 8; then :
4177 OSBIT=64
4178
4179 else
4180 OSBIT=32
4181
4182 fi
4183
4184 # Check whether --enable-rebuild_doc was given.
4185 if test "${enable_rebuild_doc+set}" = set; then :
4186 enableval=$enable_rebuild_doc; enable_rebuild_doc="${enableval}"
4187 else
4188 enable_rebuild_doc=no
4189 fi
4190
4191 if test x"$enable_rebuild_doc" = x"yes"
4192 then
4193 # Extract the first word of "xelatex", so it can be a program name with args.
4194 set dummy xelatex; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_xelatex_avail+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$xelatex_avail"; then
4201 ac_cv_prog_xelatex_avail="$xelatex_avail" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_xelatex_avail="yes"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216 IFS=$as_save_IFS
4217
4218 test -z "$ac_cv_prog_xelatex_avail" && ac_cv_prog_xelatex_avail="no"
4219 fi
4220 fi
4221 xelatex_avail=$ac_cv_prog_xelatex_avail
4222 if test -n "$xelatex_avail"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xelatex_avail" >&5
4224 $as_echo "$xelatex_avail" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231 # Extract the first word of "bibtex", so it can be a program name with args.
4232 set dummy bibtex; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_bibtex_avail+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$bibtex_avail"; then
4239 ac_cv_prog_bibtex_avail="$bibtex_avail" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_bibtex_avail="yes"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256 test -z "$ac_cv_prog_bibtex_avail" && ac_cv_prog_bibtex_avail="no"
4257 fi
4258 fi
4259 bibtex_avail=$ac_cv_prog_bibtex_avail
4260 if test -n "$bibtex_avail"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bibtex_avail" >&5
4262 $as_echo "$bibtex_avail" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269 # Extract the first word of "pandoc", so it can be a program name with args.
4270 set dummy pandoc; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if ${ac_cv_prog_pandoc_avail+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 if test -n "$pandoc_avail"; then
4277 ac_cv_prog_pandoc_avail="$pandoc_avail" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_pandoc_avail="yes"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 test -z "$ac_cv_prog_pandoc_avail" && ac_cv_prog_pandoc_avail="no"
4295 fi
4296 fi
4297 pandoc_avail=$ac_cv_prog_pandoc_avail
4298 if test -n "$pandoc_avail"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pandoc_avail" >&5
4300 $as_echo "$pandoc_avail" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307 # Extract the first word of "pdflatex", so it can be a program name with args.
4308 set dummy pdflatex; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_pdflatex_avail+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$pdflatex_avail"; then
4315 ac_cv_prog_pdflatex_avail="$pdflatex_avail" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_pdflatex_avail="yes"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 test -z "$ac_cv_prog_pdflatex_avail" && ac_cv_prog_pdflatex_avail="no"
4333 fi
4334 fi
4335 pdflatex_avail=$ac_cv_prog_pdflatex_avail
4336 if test -n "$pdflatex_avail"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdflatex_avail" >&5
4338 $as_echo "$pdflatex_avail" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345 if test $xelatex_avail = no \
4346 -o $bibtex_avail = no \
4347 -o $pandoc_avail = no \
4348 -o $pdflatex_avail = no
4349 then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: Not all TeX related programs are found, disabling rebuild of documentation." >&5
4351 $as_echo "$as_me: Not all TeX related programs are found, disabling rebuild of documentation." >&6;}
4352 enable_rebuild_doc=no
4353 fi
4354 fi
4355
4356
4357
4358 # Check whether --enable-traditional_layout was given.
4359 if test "${enable_traditional_layout+set}" = set; then :
4360 enableval=$enable_traditional_layout; enable_traditional_layout="${enableval}"
4361 else
4362 enable_traditional_layout=no
4363 fi
4364
4365
4366
4367 # Check whether --enable-windows was given.
4368 if test "${enable_windows+set}" = set; then :
4369 enableval=$enable_windows; enable_windows="${enableval}"
4370 else
4371 enable_windows=no
4372 fi
4373
4374
4375
4376 # Check whether --enable-distribution was given.
4377 if test "${enable_distribution+set}" = set; then :
4378 enableval=$enable_distribution; enable_distribution="${enableval}"
4379 else
4380 enable_distribution=no
4381 fi
4382
4383
4384
4385 ac_config_files="$ac_config_files Makefile make-cafeobj.lisp version.lisp xbin/cafeobj.in doc/refman/Makefile doc/manual/Makefile doc/RefCard/Makefile doc/PigNose/Makefile doc/citp-manual/Makefile doc/namespace/Makefile doc/etc/Makefile doc/search/Makefile"
4386
4387 cat >confcache <<\_ACEOF
4388 # This file is a shell script that caches the results of configure
4389 # tests run on this system so they can be shared between configure
4390 # scripts and configure runs, see configure's option --config-cache.
4391 # It is not useful on other systems. If it contains results you don't
4392 # want to keep, you may remove or edit it.
4393 #
4394 # config.status only pays attention to the cache file if you give it
4395 # the --recheck option to rerun configure.
4396 #
4397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4399 # following values.
4400
4401 _ACEOF
4402
4403 # The following way of writing the cache mishandles newlines in values,
4404 # but we know of no workaround that is simple, portable, and efficient.
4405 # So, we kill variables containing newlines.
4406 # Ultrix sh set writes to stderr and can't be redirected directly,
4407 # and sets the high bit in the cache file unless we assign to the vars.
4408 (
4409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4410 eval ac_val=\$$ac_var
4411 case $ac_val in #(
4412 *${as_nl}*)
4413 case $ac_var in #(
4414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4416 esac
4417 case $ac_var in #(
4418 _ | IFS | as_nl) ;; #(
4419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4420 *) { eval $ac_var=; unset $ac_var;} ;;
4421 esac ;;
4422 esac
4423 done
4424
4425 (set) 2>&1 |
4426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4427 *${as_nl}ac_space=\ *)
4428 # `set' does not quote correctly, so add quotes: double-quote
4429 # substitution turns \\\\ into \\, and sed turns \\ into \.
4430 sed -n \
4431 "s/'/'\\\\''/g;
4432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4433 ;; #(
4434 *)
4435 # `set' quotes correctly as required by POSIX, so do not add quotes.
4436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4437 ;;
4438 esac |
4439 sort
4440 ) |
4441 sed '
4442 /^ac_cv_env_/b end
4443 t clear
4444 :clear
4445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4446 t end
4447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4448 :end' >>confcache
4449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4450 if test -w "$cache_file"; then
4451 if test "x$cache_file" != "x/dev/null"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4453 $as_echo "$as_me: updating cache $cache_file" >&6;}
4454 if test ! -f "$cache_file" || test -h "$cache_file"; then
4455 cat confcache >"$cache_file"
4456 else
4457 case $cache_file in #(
4458 */* | ?:*)
4459 mv -f confcache "$cache_file"$$ &&
4460 mv -f "$cache_file"$$ "$cache_file" ;; #(
4461 *)
4462 mv -f confcache "$cache_file" ;;
4463 esac
4464 fi
4465 fi
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4469 fi
4470 fi
4471 rm -f confcache
4472
4473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4474 # Let make expand exec_prefix.
4475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4476
4477 # Transform confdefs.h into DEFS.
4478 # Protect against shell expansion while executing Makefile rules.
4479 # Protect against Makefile macro expansion.
4480 #
4481 # If the first sed substitution is executed (which looks for macros that
4482 # take arguments), then branch to the quote section. Otherwise,
4483 # look for a macro that doesn't take arguments.
4484 ac_script='
4485 :mline
4486 /\\$/{
4487 N
4488 s,\\\n,,
4489 b mline
4490 }
4491 t clear
4492 :clear
4493 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4494 t quote
4495 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4496 t quote
4497 b any
4498 :quote
4499 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4500 s/\[/\\&/g
4501 s/\]/\\&/g
4502 s/\$/$$/g
4503 H
4504 :any
4505 ${
4506 g
4507 s/^\n//
4508 s/\n/ /g
4509 p
4510 }
4511 '
4512 DEFS=`sed -n "$ac_script" confdefs.h`
4513
4514
4515 ac_libobjs=
4516 ac_ltlibobjs=
4517 U=
4518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4519 # 1. Remove the extension, and $U if already installed.
4520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4521 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4523 # will be set to the directory where LIBOBJS objects are built.
4524 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4525 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4526 done
4527 LIBOBJS=$ac_libobjs
4528
4529 LTLIBOBJS=$ac_ltlibobjs
4530
4531
4532
4533 : "${CONFIG_STATUS=./config.status}"
4534 ac_write_fail=0
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4538 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4539 as_write_fail=0
4540 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4541 #! $SHELL
4542 # Generated by $as_me.
4543 # Run this file to recreate the current configuration.
4544 # Compiler output produced by configure, useful for debugging
4545 # configure, is in config.log if it exists.
4546
4547 debug=false
4548 ac_cs_recheck=false
4549 ac_cs_silent=false
4550
4551 SHELL=\${CONFIG_SHELL-$SHELL}
4552 export SHELL
4553 _ASEOF
4554 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4555 ## -------------------- ##
4556 ## M4sh Initialization. ##
4557 ## -------------------- ##
4558
4559 # Be more Bourne compatible
4560 DUALCASE=1; export DUALCASE # for MKS sh
4561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4562 emulate sh
4563 NULLCMD=:
4564 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4565 # is contrary to our usage. Disable this feature.
4566 alias -g '${1+"$@"}'='"$@"'
4567 setopt NO_GLOB_SUBST
4568 else
4569 case `(set -o) 2>/dev/null` in #(
4570 *posix*) :
4571 set -o posix ;; #(
4572 *) :
4573 ;;
4574 esac
4575 fi
4576
4577
4578 as_nl='
4579 '
4580 export as_nl
4581 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4582 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4583 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4585 # Prefer a ksh shell builtin over an external printf program on Solaris,
4586 # but without wasting forks for bash or zsh.
4587 if test -z "$BASH_VERSION$ZSH_VERSION" \
4588 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4589 as_echo='print -r --'
4590 as_echo_n='print -rn --'
4591 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4592 as_echo='printf %s\n'
4593 as_echo_n='printf %s'
4594 else
4595 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4596 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4597 as_echo_n='/usr/ucb/echo -n'
4598 else
4599 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4600 as_echo_n_body='eval
4601 arg=$1;
4602 case $arg in #(
4603 *"$as_nl"*)
4604 expr "X$arg" : "X\\(.*\\)$as_nl";
4605 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4606 esac;
4607 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4608 '
4609 export as_echo_n_body
4610 as_echo_n='sh -c $as_echo_n_body as_echo'
4611 fi
4612 export as_echo_body
4613 as_echo='sh -c $as_echo_body as_echo'
4614 fi
4615
4616 # The user is always right.
4617 if test "${PATH_SEPARATOR+set}" != set; then
4618 PATH_SEPARATOR=:
4619 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4620 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4621 PATH_SEPARATOR=';'
4622 }
4623 fi
4624
4625
4626 # IFS
4627 # We need space, tab and new line, in precisely that order. Quoting is
4628 # there to prevent editors from complaining about space-tab.
4629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4630 # splitting by setting IFS to empty value.)
4631 IFS=" "" $as_nl"
4632
4633 # Find who we are. Look in the path if we contain no directory separator.
4634 as_myself=
4635 case $0 in #((
4636 *[\\/]* ) as_myself=$0 ;;
4637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4643 done
4644 IFS=$as_save_IFS
4645
4646 ;;
4647 esac
4648 # We did not find ourselves, most probably we were run as `sh COMMAND'
4649 # in which case we are not to be found in the path.
4650 if test "x$as_myself" = x; then
4651 as_myself=$0
4652 fi
4653 if test ! -f "$as_myself"; then
4654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4655 exit 1
4656 fi
4657
4658 # Unset variables that we do not need and which cause bugs (e.g. in
4659 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4660 # suppresses any "Segmentation fault" message there. '((' could
4661 # trigger a bug in pdksh 5.2.14.
4662 for as_var in BASH_ENV ENV MAIL MAILPATH
4663 do eval test x\${$as_var+set} = xset \
4664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4665 done
4666 PS1='$ '
4667 PS2='> '
4668 PS4='+ '
4669
4670 # NLS nuisances.
4671 LC_ALL=C
4672 export LC_ALL
4673 LANGUAGE=C
4674 export LANGUAGE
4675
4676 # CDPATH.
4677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4678
4679
4680 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4681 # ----------------------------------------
4682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4684 # script with STATUS, using 1 if that was 0.
4685 as_fn_error ()
4686 {
4687 as_status=$1; test $as_status -eq 0 && as_status=1
4688 if test "$4"; then
4689 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4691 fi
4692 $as_echo "$as_me: error: $2" >&2
4693 as_fn_exit $as_status
4694 } # as_fn_error
4695
4696
4697 # as_fn_set_status STATUS
4698 # -----------------------
4699 # Set $? to STATUS, without forking.
4700 as_fn_set_status ()
4701 {
4702 return $1
4703 } # as_fn_set_status
4704
4705 # as_fn_exit STATUS
4706 # -----------------
4707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4708 as_fn_exit ()
4709 {
4710 set +e
4711 as_fn_set_status $1
4712 exit $1
4713 } # as_fn_exit
4714
4715 # as_fn_unset VAR
4716 # ---------------
4717 # Portably unset VAR.
4718 as_fn_unset ()
4719 {
4720 { eval $1=; unset $1;}
4721 }
4722 as_unset=as_fn_unset
4723 # as_fn_append VAR VALUE
4724 # ----------------------
4725 # Append the text in VALUE to the end of the definition contained in VAR. Take
4726 # advantage of any shell optimizations that allow amortized linear growth over
4727 # repeated appends, instead of the typical quadratic growth present in naive
4728 # implementations.
4729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4730 eval 'as_fn_append ()
4731 {
4732 eval $1+=\$2
4733 }'
4734 else
4735 as_fn_append ()
4736 {
4737 eval $1=\$$1\$2
4738 }
4739 fi # as_fn_append
4740
4741 # as_fn_arith ARG...
4742 # ------------------
4743 # Perform arithmetic evaluation on the ARGs, and store the result in the
4744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4745 # must be portable across $(()) and expr.
4746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4747 eval 'as_fn_arith ()
4748 {
4749 as_val=$(( $* ))
4750 }'
4751 else
4752 as_fn_arith ()
4753 {
4754 as_val=`expr "$@" || test $? -eq 1`
4755 }
4756 fi # as_fn_arith
4757
4758
4759 if expr a : '\(a\)' >/dev/null 2>&1 &&
4760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4761 as_expr=expr
4762 else
4763 as_expr=false
4764 fi
4765
4766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4767 as_basename=basename
4768 else
4769 as_basename=false
4770 fi
4771
4772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4773 as_dirname=dirname
4774 else
4775 as_dirname=false
4776 fi
4777
4778 as_me=`$as_basename -- "$0" ||
4779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4780 X"$0" : 'X\(//\)$' \| \
4781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4782 $as_echo X/"$0" |
4783 sed '/^.*\/\([^/][^/]*\)\/*$/{
4784 s//\1/
4785 q
4786 }
4787 /^X\/\(\/\/\)$/{
4788 s//\1/
4789 q
4790 }
4791 /^X\/\(\/\).*/{
4792 s//\1/
4793 q
4794 }
4795 s/.*/./; q'`
4796
4797 # Avoid depending upon Character Ranges.
4798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4801 as_cr_digits='0123456789'
4802 as_cr_alnum=$as_cr_Letters$as_cr_digits
4803
4804 ECHO_C= ECHO_N= ECHO_T=
4805 case `echo -n x` in #(((((
4806 -n*)
4807 case `echo 'xy\c'` in
4808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4809 xy) ECHO_C='\c';;
4810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4811 ECHO_T=' ';;
4812 esac;;
4813 *)
4814 ECHO_N='-n';;
4815 esac
4816
4817 rm -f conf$$ conf$$.exe conf$$.file
4818 if test -d conf$$.dir; then
4819 rm -f conf$$.dir/conf$$.file
4820 else
4821 rm -f conf$$.dir
4822 mkdir conf$$.dir 2>/dev/null
4823 fi
4824 if (echo >conf$$.file) 2>/dev/null; then
4825 if ln -s conf$$.file conf$$ 2>/dev/null; then
4826 as_ln_s='ln -s'
4827 # ... but there are two gotchas:
4828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4830 # In both cases, we have to default to `cp -pR'.
4831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4832 as_ln_s='cp -pR'
4833 elif ln conf$$.file conf$$ 2>/dev/null; then
4834 as_ln_s=ln
4835 else
4836 as_ln_s='cp -pR'
4837 fi
4838 else
4839 as_ln_s='cp -pR'
4840 fi
4841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4842 rmdir conf$$.dir 2>/dev/null
4843
4844
4845 # as_fn_mkdir_p
4846 # -------------
4847 # Create "$as_dir" as a directory, including parents if necessary.
4848 as_fn_mkdir_p ()
4849 {
4850
4851 case $as_dir in #(
4852 -*) as_dir=./$as_dir;;
4853 esac
4854 test -d "$as_dir" || eval $as_mkdir_p || {
4855 as_dirs=
4856 while :; do
4857 case $as_dir in #(
4858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4859 *) as_qdir=$as_dir;;
4860 esac
4861 as_dirs="'$as_qdir' $as_dirs"
4862 as_dir=`$as_dirname -- "$as_dir" ||
4863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4864 X"$as_dir" : 'X\(//\)[^/]' \| \
4865 X"$as_dir" : 'X\(//\)$' \| \
4866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4867 $as_echo X"$as_dir" |
4868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4869 s//\1/
4870 q
4871 }
4872 /^X\(\/\/\)[^/].*/{
4873 s//\1/
4874 q
4875 }
4876 /^X\(\/\/\)$/{
4877 s//\1/
4878 q
4879 }
4880 /^X\(\/\).*/{
4881 s//\1/
4882 q
4883 }
4884 s/.*/./; q'`
4885 test -d "$as_dir" && break
4886 done
4887 test -z "$as_dirs" || eval "mkdir $as_dirs"
4888 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4889
4890
4891 } # as_fn_mkdir_p
4892 if mkdir -p . 2>/dev/null; then
4893 as_mkdir_p='mkdir -p "$as_dir"'
4894 else
4895 test -d ./-p && rmdir ./-p
4896 as_mkdir_p=false
4897 fi
4898
4899
4900 # as_fn_executable_p FILE
4901 # -----------------------
4902 # Test if FILE is an executable regular file.
4903 as_fn_executable_p ()
4904 {
4905 test -f "$1" && test -x "$1"
4906 } # as_fn_executable_p
4907 as_test_x='test -x'
4908 as_executable_p=as_fn_executable_p
4909
4910 # Sed expression to map a string onto a valid CPP name.
4911 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4912
4913 # Sed expression to map a string onto a valid variable name.
4914 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4915
4916
4917 exec 6>&1
4918 ## ----------------------------------- ##
4919 ## Main body of $CONFIG_STATUS script. ##
4920 ## ----------------------------------- ##
4921 _ASEOF
4922 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4923
4924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4925 # Save the log message, to keep $0 and so on meaningful, and to
4926 # report actual input values of CONFIG_FILES etc. instead of their
4927 # values after options handling.
4928 ac_log="
4929 This file was extended by CafeOBJ $as_me 1.6, which was
4930 generated by GNU Autoconf 2.69. Invocation command line was
4931
4932 CONFIG_FILES = $CONFIG_FILES
4933 CONFIG_HEADERS = $CONFIG_HEADERS
4934 CONFIG_LINKS = $CONFIG_LINKS
4935 CONFIG_COMMANDS = $CONFIG_COMMANDS
4936 $ $0 $@
4937
4938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4939 "
4940
4941 _ACEOF
4942
4943 case $ac_config_files in *"
4944 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4945 esac
4946
4947
4948
4949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4950 # Files that config.status was made for.
4951 config_files="$ac_config_files"
4952
4953 _ACEOF
4954
4955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4956 ac_cs_usage="\
4957 \`$as_me' instantiates files and other configuration actions
4958 from templates according to the current configuration. Unless the files
4959 and actions are specified as TAGs, all are instantiated by default.
4960
4961 Usage: $0 [OPTION]... [TAG]...
4962
4963 -h, --help print this help, then exit
4964 -V, --version print version number and configuration settings, then exit
4965 --config print configuration, then exit
4966 -q, --quiet, --silent
4967 do not print progress messages
4968 -d, --debug don't remove temporary files
4969 --recheck update $as_me by reconfiguring in the same conditions
4970 --file=FILE[:TEMPLATE]
4971 instantiate the configuration file FILE
4972
4973 Configuration files:
4974 $config_files
4975
4976 Report bugs to the package provider.
4977 CafeOBJ home page: <http://www.cafeobj.org/>."
4978
4979 _ACEOF
4980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4981 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4982 ac_cs_version="\\
4983 CafeOBJ config.status 1.6
4984 configured by $0, generated by GNU Autoconf 2.69,
4985 with options \\"\$ac_cs_config\\"
4986
4987 Copyright (C) 2012 Free Software Foundation, Inc.
4988 This config.status script is free software; the Free Software Foundation
4989 gives unlimited permission to copy, distribute and modify it."
4990
4991 ac_pwd='$ac_pwd'
4992 srcdir='$srcdir'
4993 INSTALL='$INSTALL'
4994 MKDIR_P='$MKDIR_P'
4995 test -n "\$AWK" || AWK=awk
4996 _ACEOF
4997
4998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4999 # The default lists apply if the user does not specify any file.
5000 ac_need_defaults=:
5001 while test $# != 0
5002 do
5003 case $1 in
5004 --*=?*)
5005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5007 ac_shift=:
5008 ;;
5009 --*=)
5010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5011 ac_optarg=
5012 ac_shift=:
5013 ;;
5014 *)
5015 ac_option=$1
5016 ac_optarg=$2
5017 ac_shift=shift
5018 ;;
5019 esac
5020
5021 case $ac_option in
5022 # Handling of the options.
5023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5024 ac_cs_recheck=: ;;
5025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5026 $as_echo "$ac_cs_version"; exit ;;
5027 --config | --confi | --conf | --con | --co | --c )
5028 $as_echo "$ac_cs_config"; exit ;;
5029 --debug | --debu | --deb | --de | --d | -d )
5030 debug=: ;;
5031 --file | --fil | --fi | --f )
5032 $ac_shift
5033 case $ac_optarg in
5034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5035 '') as_fn_error $? "missing file argument" ;;
5036 esac
5037 as_fn_append CONFIG_FILES " '$ac_optarg'"
5038 ac_need_defaults=false;;
5039 --he | --h | --help | --hel | -h )
5040 $as_echo "$ac_cs_usage"; exit ;;
5041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5042 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5043 ac_cs_silent=: ;;
5044
5045 # This is an error.
5046 -*) as_fn_error $? "unrecognized option: \`$1'
5047 Try \`$0 --help' for more information." ;;
5048
5049 *) as_fn_append ac_config_targets " $1"
5050 ac_need_defaults=false ;;
5051
5052 esac
5053 shift
5054 done
5055
5056 ac_configure_extra_args=
5057
5058 if $ac_cs_silent; then
5059 exec 6>/dev/null
5060 ac_configure_extra_args="$ac_configure_extra_args --silent"
5061 fi
5062
5063 _ACEOF
5064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5065 if \$ac_cs_recheck; then
5066 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5067 shift
5068 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5069 CONFIG_SHELL='$SHELL'
5070 export CONFIG_SHELL
5071 exec "\$@"
5072 fi
5073
5074 _ACEOF
5075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5076 exec 5>>config.log
5077 {
5078 echo
5079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5080 ## Running $as_me. ##
5081 _ASBOX
5082 $as_echo "$ac_log"
5083 } >&5
5084
5085 _ACEOF
5086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5087 _ACEOF
5088
5089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5090
5091 # Handling of arguments.
5092 for ac_config_target in $ac_config_targets
5093 do
5094 case $ac_config_target in
5095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5096 "make-cafeobj.lisp") CONFIG_FILES="$CONFIG_FILES make-cafeobj.lisp" ;;
5097 "version.lisp") CONFIG_FILES="$CONFIG_FILES version.lisp" ;;
5098 "xbin/cafeobj.in") CONFIG_FILES="$CONFIG_FILES xbin/cafeobj.in" ;;
5099 "doc/refman/Makefile") CONFIG_FILES="$CONFIG_FILES doc/refman/Makefile" ;;
5100 "doc/manual/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manual/Makefile" ;;
5101 "doc/RefCard/Makefile") CONFIG_FILES="$CONFIG_FILES doc/RefCard/Makefile" ;;
5102 "doc/PigNose/Makefile") CONFIG_FILES="$CONFIG_FILES doc/PigNose/Makefile" ;;
5103 "doc/citp-manual/Makefile") CONFIG_FILES="$CONFIG_FILES doc/citp-manual/Makefile" ;;
5104 "doc/namespace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/namespace/Makefile" ;;
5105 "doc/etc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/etc/Makefile" ;;
5106 "doc/search/Makefile") CONFIG_FILES="$CONFIG_FILES doc/search/Makefile" ;;
5107
5108 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5109 esac
5110 done
5111
5112
5113 # If the user did not use the arguments to specify the items to instantiate,
5114 # then the envvar interface is used. Set only those that are not.
5115 # We use the long form for the default assignment because of an extremely
5116 # bizarre bug on SunOS 4.1.3.
5117 if $ac_need_defaults; then
5118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5119 fi
5120
5121 # Have a temporary directory for convenience. Make it in the build tree
5122 # simply because there is no reason against having it here, and in addition,
5123 # creating and moving files from /tmp can sometimes cause problems.
5124 # Hook for its removal unless debugging.
5125 # Note that there is a small window in which the directory will not be cleaned:
5126 # after its creation but before its name has been assigned to `$tmp'.
5127 $debug ||
5128 {
5129 tmp= ac_tmp=
5130 trap 'exit_status=$?
5131 : "${ac_tmp:=$tmp}"
5132 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5133 ' 0
5134 trap 'as_fn_exit 1' 1 2 13 15
5135 }
5136 # Create a (secure) tmp directory for tmp files.
5137
5138 {
5139 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5140 test -d "$tmp"
5141 } ||
5142 {
5143 tmp=./conf$$-$RANDOM
5144 (umask 077 && mkdir "$tmp")
5145 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5146 ac_tmp=$tmp
5147
5148 # Set up the scripts for CONFIG_FILES section.
5149 # No need to generate them if there are no CONFIG_FILES.
5150 # This happens for instance with `./config.status config.h'.
5151 if test -n "$CONFIG_FILES"; then
5152
5153
5154 ac_cr=`echo X | tr X '\015'`
5155 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5156 # But we know of no other shell where ac_cr would be empty at this
5157 # point, so we can use a bashism as a fallback.
5158 if test "x$ac_cr" = x; then
5159 eval ac_cr=\$\'\\r\'
5160 fi
5161 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5162 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5163 ac_cs_awk_cr='\\r'
5164 else
5165 ac_cs_awk_cr=$ac_cr
5166 fi
5167
5168 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5169 _ACEOF
5170
5171
5172 {
5173 echo "cat >conf$$subs.awk <<_ACEOF" &&
5174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5175 echo "_ACEOF"
5176 } >conf$$subs.sh ||
5177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5179 ac_delim='%!_!# '
5180 for ac_last_try in false false false false false :; do
5181 . ./conf$$subs.sh ||
5182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5183
5184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5185 if test $ac_delim_n = $ac_delim_num; then
5186 break
5187 elif $ac_last_try; then
5188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5189 else
5190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5191 fi
5192 done
5193 rm -f conf$$subs.sh
5194
5195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5196 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5197 _ACEOF
5198 sed -n '
5199 h
5200 s/^/S["/; s/!.*/"]=/
5201 p
5202 g
5203 s/^[^!]*!//
5204 :repl
5205 t repl
5206 s/'"$ac_delim"'$//
5207 t delim
5208 :nl
5209 h
5210 s/\(.\{148\}\)..*/\1/
5211 t more1
5212 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5213 p
5214 n
5215 b repl
5216 :more1
5217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5218 p
5219 g
5220 s/.\{148\}//
5221 t nl
5222 :delim
5223 h
5224 s/\(.\{148\}\)..*/\1/
5225 t more2
5226 s/["\\]/\\&/g; s/^/"/; s/$/"/
5227 p
5228 b
5229 :more2
5230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5231 p
5232 g
5233 s/.\{148\}//
5234 t delim
5235 ' <conf$$subs.awk | sed '
5236 /^[^""]/{
5237 N
5238 s/\n//
5239 }
5240 ' >>$CONFIG_STATUS || ac_write_fail=1
5241 rm -f conf$$subs.awk
5242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5243 _ACAWK
5244 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5245 for (key in S) S_is_set[key] = 1
5246 FS = ""
5247
5248 }
5249 {
5250 line = $ 0
5251 nfields = split(line, field, "@")
5252 substed = 0
5253 len = length(field[1])
5254 for (i = 2; i < nfields; i++) {
5255 key = field[i]
5256 keylen = length(key)
5257 if (S_is_set[key]) {
5258 value = S[key]
5259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5260 len += length(value) + length(field[++i])
5261 substed = 1
5262 } else
5263 len += 1 + keylen
5264 }
5265
5266 print line
5267 }
5268
5269 _ACAWK
5270 _ACEOF
5271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5272 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5273 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5274 else
5275 cat
5276 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5277 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5278 _ACEOF
5279
5280 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5281 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5282 # trailing colons and then remove the whole line if VPATH becomes empty
5283 # (actually we leave an empty line to preserve line numbers).
5284 if test "x$srcdir" = x.; then
5285 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5286 h
5287 s///
5288 s/^/:/
5289 s/[ ]*$/:/
5290 s/:\$(srcdir):/:/g
5291 s/:\${srcdir}:/:/g
5292 s/:@srcdir@:/:/g
5293 s/^:*//
5294 s/:*$//
5295 x
5296 s/\(=[ ]*\).*/\1/
5297 G
5298 s/\n//
5299 s/^[^=]*=[ ]*$//
5300 }'
5301 fi
5302
5303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5304 fi # test -n "$CONFIG_FILES"
5305
5306
5307 eval set X " :F $CONFIG_FILES "
5308 shift
5309 for ac_tag
5310 do
5311 case $ac_tag in
5312 :[FHLC]) ac_mode=$ac_tag; continue;;
5313 esac
5314 case $ac_mode$ac_tag in
5315 :[FHL]*:*);;
5316 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5317 :[FH]-) ac_tag=-:-;;
5318 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5319 esac
5320 ac_save_IFS=$IFS
5321 IFS=:
5322 set x $ac_tag
5323 IFS=$ac_save_IFS
5324 shift
5325 ac_file=$1
5326 shift
5327
5328 case $ac_mode in
5329 :L) ac_source=$1;;
5330 :[FH])
5331 ac_file_inputs=
5332 for ac_f
5333 do
5334 case $ac_f in
5335 -) ac_f="$ac_tmp/stdin";;
5336 *) # Look for the file first in the build tree, then in the source tree
5337 # (if the path is not absolute). The absolute path cannot be DOS-style,
5338 # because $ac_f cannot contain `:'.
5339 test -f "$ac_f" ||
5340 case $ac_f in
5341 [\\/$]*) false;;
5342 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5343 esac ||
5344 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5345 esac
5346 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5347 as_fn_append ac_file_inputs " '$ac_f'"
5348 done
5349
5350 # Let's still pretend it is `configure' which instantiates (i.e., don't
5351 # use $as_me), people would be surprised to read:
5352 # /* config.h. Generated by config.status. */
5353 configure_input='Generated from '`
5354 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5355 `' by configure.'
5356 if test x"$ac_file" != x-; then
5357 configure_input="$ac_file. $configure_input"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5359 $as_echo "$as_me: creating $ac_file" >&6;}
5360 fi
5361 # Neutralize special characters interpreted by sed in replacement strings.
5362 case $configure_input in #(
5363 *\&* | *\|* | *\\* )
5364 ac_sed_conf_input=`$as_echo "$configure_input" |
5365 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5366 *) ac_sed_conf_input=$configure_input;;
5367 esac
5368
5369 case $ac_tag in
5370 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5372 esac
5373 ;;
5374 esac
5375
5376 ac_dir=`$as_dirname -- "$ac_file" ||
5377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5378 X"$ac_file" : 'X\(//\)[^/]' \| \
5379 X"$ac_file" : 'X\(//\)$' \| \
5380 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5381 $as_echo X"$ac_file" |
5382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5383 s//\1/
5384 q
5385 }
5386 /^X\(\/\/\)[^/].*/{
5387 s//\1/
5388 q
5389 }
5390 /^X\(\/\/\)$/{
5391 s//\1/
5392 q
5393 }
5394 /^X\(\/\).*/{
5395 s//\1/
5396 q
5397 }
5398 s/.*/./; q'`
5399 as_dir="$ac_dir"; as_fn_mkdir_p
5400 ac_builddir=.
5401
5402 case "$ac_dir" in
5403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5404 *)
5405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5406 # A ".." for each directory in $ac_dir_suffix.
5407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5408 case $ac_top_builddir_sub in
5409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5411 esac ;;
5412 esac
5413 ac_abs_top_builddir=$ac_pwd
5414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5415 # for backward compatibility:
5416 ac_top_builddir=$ac_top_build_prefix
5417
5418 case $srcdir in
5419 .) # We are building in place.
5420 ac_srcdir=.
5421 ac_top_srcdir=$ac_top_builddir_sub
5422 ac_abs_top_srcdir=$ac_pwd ;;
5423 [\\/]* | ?:[\\/]* ) # Absolute name.
5424 ac_srcdir=$srcdir$ac_dir_suffix;
5425 ac_top_srcdir=$srcdir
5426 ac_abs_top_srcdir=$srcdir ;;
5427 *) # Relative name.
5428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5429 ac_top_srcdir=$ac_top_build_prefix$srcdir
5430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5431 esac
5432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5433
5434
5435 case $ac_mode in
5436 :F)
5437 #
5438 # CONFIG_FILE
5439 #
5440
5441 case $INSTALL in
5442 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5443 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5444 esac
5445 ac_MKDIR_P=$MKDIR_P
5446 case $MKDIR_P in
5447 [\\/$]* | ?:[\\/]* ) ;;
5448 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5449 esac
5450 _ACEOF
5451
5452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5453 # If the template does not know about datarootdir, expand it.
5454 # FIXME: This hack should be removed a few years after 2.60.
5455 ac_datarootdir_hack=; ac_datarootdir_seen=
5456 ac_sed_dataroot='
5457 /datarootdir/ {
5458 p
5459 q
5460 }
5461 /@datadir@/p
5462 /@docdir@/p
5463 /@infodir@/p
5464 /@localedir@/p
5465 /@mandir@/p'
5466 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5467 *datarootdir*) ac_datarootdir_seen=yes;;
5468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5470 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5471 _ACEOF
5472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5473 ac_datarootdir_hack='
5474 s&@datadir@&$datadir&g
5475 s&@docdir@&$docdir&g
5476 s&@infodir@&$infodir&g
5477 s&@localedir@&$localedir&g
5478 s&@mandir@&$mandir&g
5479 s&\\\${datarootdir}&$datarootdir&g' ;;
5480 esac
5481 _ACEOF
5482
5483 # Neutralize VPATH when `$srcdir' = `.'.
5484 # Shell code in configure.ac might set extrasub.
5485 # FIXME: do we really want to maintain this feature?
5486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5487 ac_sed_extra="$ac_vpsub
5488 $extrasub
5489 _ACEOF
5490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5491 :t
5492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5493 s|@configure_input@|$ac_sed_conf_input|;t t
5494 s&@top_builddir@&$ac_top_builddir_sub&;t t
5495 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5496 s&@srcdir@&$ac_srcdir&;t t
5497 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5498 s&@top_srcdir@&$ac_top_srcdir&;t t
5499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5500 s&@builddir@&$ac_builddir&;t t
5501 s&@abs_builddir@&$ac_abs_builddir&;t t
5502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5503 s&@INSTALL@&$ac_INSTALL&;t t
5504 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5505 $ac_datarootdir_hack
5506 "
5507 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5508 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5509
5510 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5511 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5513 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5515 which seems to be undefined. Please make sure it is defined" >&5
5516 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5517 which seems to be undefined. Please make sure it is defined" >&2;}
5518
5519 rm -f "$ac_tmp/stdin"
5520 case $ac_file in
5521 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5522 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5523 esac \
5524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5525 ;;
5526
5527
5528
5529 esac
5530
5531 done # for ac_tag
5532
5533
5534 as_fn_exit 0
5535 _ACEOF
5536 ac_clean_files=$ac_clean_files_save
5537
5538 test $ac_write_fail = 0 ||
5539 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5540
5541
5542 # configure is writing to config.log, and then calls config.status.
5543 # config.status does its own redirection, appending to config.log.
5544 # Unfortunately, on DOS this fails, as config.log is still kept open
5545 # by configure, so config.status won't be able to write to it; its
5546 # output is simply discarded. So we exec the FD to /dev/null,
5547 # effectively closing config.log, so it can be properly (re)opened and
5548 # appended to by config.status. When coming back to configure, we
5549 # need to make the FD available again.
5550 if test "$no_create" != yes; then
5551 ac_cs_success=:
5552 ac_config_status_args=
5553 test "$silent" = yes &&
5554 ac_config_status_args="$ac_config_status_args --quiet"
5555 exec 5>/dev/null
5556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5557 exec 5>>config.log
5558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5559 # would make configure fail if this is the last instruction.
5560 $ac_cs_success || as_fn_exit 1
5561 fi
5562 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5564 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5565 fi
5566