Debian Codegraph @

src/configure

raw symbols SCIP
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for ecl 24.5.10.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else $as_nop
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
47 '
48 export as_nl
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed `exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
138 fi
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else \$as_nop
152 case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac
158 fi
159 "
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
165
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
175 exitcode=1; echo positional parameters were not saved.
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi
235 fi
236
237
238 if test "x$CONFIG_SHELL" != x
239 then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell [email protected] about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314 # as_fn_nop
315 # ---------
316 # Do nothing but, unlike ":", preserve the value of $?.
317 as_fn_nop ()
318 {
319 return $?
320 }
321 as_nop=as_fn_nop
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 printf "%s\n" X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else $as_nop
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else $as_nop
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415 # as_fn_nop
416 # ---------
417 # Do nothing but, unlike ":", preserve the value of $?.
418 as_fn_nop ()
419 {
420 return $?
421 }
422 as_nop=as_fn_nop
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 s/[$]LINENO.*/&-/
497 t lineno
498 b
499 :lineno
500 N
501 :loop
502 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
503 t loop
504 s/-\n.*//
505 ' >$as_me.lineno &&
506 chmod +x "$as_me.lineno" ||
507 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508
509 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
510 # already done that, so ensure we don't try to do so again and fall
511 # in an infinite loop. This has already happened in practice.
512 _as_can_reexec=no; export _as_can_reexec
513 # Don't try to exec as it changes $[0], causing all sort of problems
514 # (the dirname of $[0] is not the place where we might find the
515 # original and so on. Autoconf is especially sensitive to this).
516 . "./$as_me.lineno"
517 # Exit status is that of the last command.
518 exit
519 }
520
521
522 # Determine whether it's possible to make 'echo' print without a newline.
523 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
524 # for compatibility with existing Makefiles.
525 ECHO_C= ECHO_N= ECHO_T=
526 case `echo -n x` in #(((((
527 -n*)
528 case `echo 'xy\c'` in
529 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
530 xy) ECHO_C='\c';;
531 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
532 ECHO_T=' ';;
533 esac;;
534 *)
535 ECHO_N='-n';;
536 esac
537
538 # For backward compatibility with old third-party macros, we provide
539 # the shell variables $as_echo and $as_echo_n. New code should use
540 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
541 as_echo='printf %s\n'
542 as_echo_n='printf %s'
543
544
545 rm -f conf$$ conf$$.exe conf$$.file
546 if test -d conf$$.dir; then
547 rm -f conf$$.dir/conf$$.file
548 else
549 rm -f conf$$.dir
550 mkdir conf$$.dir 2>/dev/null
551 fi
552 if (echo >conf$$.file) 2>/dev/null; then
553 if ln -s conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s='ln -s'
555 # ... but there are two gotchas:
556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
558 # In both cases, we have to default to `cp -pR'.
559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
560 as_ln_s='cp -pR'
561 elif ln conf$$.file conf$$ 2>/dev/null; then
562 as_ln_s=ln
563 else
564 as_ln_s='cp -pR'
565 fi
566 else
567 as_ln_s='cp -pR'
568 fi
569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
570 rmdir conf$$.dir 2>/dev/null
571
572 if mkdir -p . 2>/dev/null; then
573 as_mkdir_p='mkdir -p "$as_dir"'
574 else
575 test -d ./-p && rmdir ./-p
576 as_mkdir_p=false
577 fi
578
579 as_test_x='test -x'
580 as_executable_p=as_fn_executable_p
581
582 # Sed expression to map a string onto a valid CPP name.
583 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584
585 # Sed expression to map a string onto a valid variable name.
586 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
587
588
589 test -n "$DJDIR" || exec 7<&0 </dev/null
590 exec 6>&1
591
592 # Name of the host.
593 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
594 # so uname gets run too.
595 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
596
597 #
598 # Initializations.
599 #
600 ac_default_prefix=/usr/local
601 ac_clean_files=
602 ac_config_libobj_dir=.
603 LIBOBJS=
604 cross_compiling=no
605 subdirs=
606 MFLAGS=
607 MAKEFLAGS=
608
609 # Identity of this package.
610 PACKAGE_NAME='ecl'
611 PACKAGE_TARNAME='ecl'
612 PACKAGE_VERSION='24.5.10'
613 PACKAGE_STRING='ecl 24.5.10'
614 PACKAGE_BUGREPORT=''
615 PACKAGE_URL=''
616
617 ac_unique_file="bare.lsp.in"
618 # Factoring default headers for most tests.
619 ac_includes_default="\
620 #include <stddef.h>
621 #ifdef HAVE_STDIO_H
622 # include <stdio.h>
623 #endif
624 #ifdef HAVE_STDLIB_H
625 # include <stdlib.h>
626 #endif
627 #ifdef HAVE_STRING_H
628 # include <string.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
638 #endif
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
641 #endif
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
644 #endif
645 #ifdef HAVE_UNISTD_H
646 # include <unistd.h>
647 #endif"
648
649 ac_header_c_list=
650 ac_func_c_list=
651 ac_subst_vars='LTLIBOBJS
652 ECL_INIT_FORM
653 ECL_EXTRA_LISP_FILES
654 CHAR_CODE_LIMIT
655 ECL_CHARACTER
656 ECL_CC
657 POW_LIB
658 LIBOBJS
659 ECL_FPE_CODE
660 ECL_FILE_CNT
661 ECL_LONGJMP
662 ECL_SETJMP
663 ECL_STDINT_HEADER
664 CL_LONG_BITS
665 CL_INT_BITS
666 CL_SHORT_BITS
667 CL_FIXNUM_MIN
668 CL_FIXNUM_MAX
669 CL_FIXNUM_BITS
670 CL_FIXNUM_TYPE
671 ECL_LONG_LONG_BITS
672 EGREP
673 GREP
674 XMKMF
675 ECL_VERSION_NUMBER
676 SONAME_LDFLAGS
677 SONAME
678 SONAME1
679 SONAME2
680 SONAME3
681 ECL_LIBFFI_HEADER
682 ECL_BOEHM_GC_HEADER
683 ECL_CMPDIR
684 ECL_GMP_HEADER
685 MANUAL_UNINSTALL_TARGET
686 MANUAL_INSTALL_TARGET
687 MANUAL_MAKE_TARGET
688 MAKEINFO
689 INSTALL_INFO
690 ECL_MIN
691 ECL_DEFAULT_C_STACK_SIZE
692 ECL_GC_DIR
693 thehost
694 INSTALL_TARGET
695 SHAREDPREFIX
696 SHAREDEXT
697 LIBEXT
698 LIBPREFIX
699 ECL_LDRPATH
700 MACHINE_VERSION
701 SOFTWARE_VERSION
702 SOFTWARE_TYPE
703 ARCHITECTURE
704 EXE_SUFFIX
705 MV
706 RM
707 CP
708 true_builddir
709 true_srcdir
710 ETAGS
711 CTAGS
712 AR
713 SET_MAKE
714 LN_S
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 RANLIB
719 CPP
720 ac_ct_CXX
721 CXXFLAGS
722 CXX
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 LSP_FEATURES
739 COMPILATION_FEATURES
740 LSP_LIBRARIES
741 LIBRARIES
742 SUBDIRS
743 TARGETS
744 EXTRA_OBJS
745 PROGRAM_LDFLAGS
746 BUNDLE_LDFLAGS
747 SHARED_LDFLAGS
748 CORE_LIBS
749 FASL_LIBS
750 LIBFFI_LDFLAGS
751 GMP_LDFLAGS
752 GMP_CPPFLAGS
753 DEBUG_CFLAGS
754 ECL_CFLAGS
755 buildir
756 ecldir
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 runstatedir
777 localstatedir
778 sharedstatedir
779 sysconfdir
780 datadir
781 datarootdir
782 libexecdir
783 sbindir
784 bindir
785 program_transform_name
786 prefix
787 exec_prefix
788 PACKAGE_URL
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 with_cross_config
800 enable_shared
801 enable_rpath
802 enable_threads
803 enable_boehm
804 enable_libatomic
805 enable_soname
806 enable_gmp
807 with_C_gmp
808 with_system_gmp
809 with_gmp
810 with_gmp_args
811 with_gmp_prefix
812 with_gmp_incdir
813 with_gmp_libdir
814 with_libffi_prefix
815 with_libffi_incdir
816 with_libffi_libdir
817 with_libgc_prefix
818 with_libgc_incdir
819 with_libgc_libdir
820 with_cxx
821 with_tcp
822 with_serve_event
823 with_clos_streams
824 with_cmuformat
825 with_asdf
826 with_defsystem
827 with_cmp
828 with_bytecmp
829 with_rt
830 with_profile
831 with_dffi
832 with_fpe
833 with_signed_zero
834 with_ieee_fp
835 with_sse
836 enable_unicode
837 enable_c99complex
838 enable_smallcons
839 enable_gengc
840 enable_precisegc
841 enable_serialization
842 enable_debug
843 with_debug_cflags
844 with_profile_cflags
845 with_extra_files
846 with_init_form
847 enable_manual
848 with_x
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 ecldir
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CXX
860 CXXFLAGS
861 CCC
862 CPP
863 XMKMF'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 runstatedir='${localstatedir}/run'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 case $ac_dashdash$ac_option in
933 --)
934 ac_dashdash=yes ;;
935
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
940
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
945
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
952
953 --config-cache | -C)
954 cache_file=config.cache ;;
955
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
960
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
967
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: \`$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
983
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
988
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
993
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: \`$ac_useropt'"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1029
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1034
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1064
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1081
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1102
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1138
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
1153 -runstatedir | --runstatedir | --runstatedi | --runstated \
1154 | --runstate | --runstat | --runsta | --runst | --runs \
1155 | --run | --ru | --r)
1156 ac_prev=runstatedir ;;
1157 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1158 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1159 | --run=* | --ru=* | --r=*)
1160 runstatedir=$ac_optarg ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: \`$ac_useropt'"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: \`$ac_useropt'"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267 esac
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 ;;
1278
1279 esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir runstatedir
1300 do
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
1309 case $ac_val in
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 esac
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 printf "%s\n" X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures ecl 24.5.10 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/ecl]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1467
1468 cat <<\_ACEOF
1469
1470 X features:
1471 --x-includes=DIR X include files are in DIR
1472 --x-libraries=DIR X library files are in DIR
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1478 fi
1479
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of ecl 24.5.10:";;
1483 esac
1484 cat <<\_ACEOF
1485
1486 Optional Features:
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-shared enable loading compiled files (default=YES)
1491 --enable-rpath hard-code the location of the ECL shared library.
1492 (no|yes, default=NO)
1493 --enable-threads support for native threads (yes|no|auto,
1494 default=auto).
1495 --enable-boehm use the Boehm-Weiser garbage collector
1496 (no|included|system|auto, default=auto)
1497 --enable-libatomic version of the libatomic-ops library
1498 (auto|included|system, default=auto)
1499 --enable-soname link and install the library using version numbers
1500 (no|yes, default=yes)
1501 --enable-gmp version of the GMP library
1502 (portable|included|system|auto, default=auto)
1503 --enable-unicode={32|16|no}
1504 enable support for unicode (default=32)
1505 --enable-c99complex include support for c99 complex floats
1506 (default=auto)
1507 --enable-smallcons use small (2 words) cons types. Requires
1508 Boehm-Weiser gc. (default=YES)
1509 --enable-gengc use generational garbage collection. Requires
1510 Boehm-Weiser gc. (no|yes, default=NO)
1511 --enable-precisegc use type information during garbage collection.
1512 Requires Boehm-Weiser gc (EXPERIMENTAL). (no|yes,
1513 default=NO)
1514 --enable-serialization use serialization framework instead of the reader to
1515 save externalizable objects in compiled files
1516 (EXPERIMENTAL). (no|yes, default=NO)
1517 --enable-debug enable various debugging features (default=NO)
1518 --enable-manual={auto|html|info|no}
1519 Enable building of the manual (default=AUTO)
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-cross-config=f supply configuration for a cross compiler
1525 --with-C-gmp Deprecated! See --enable-gmp
1526 --with-system-gmp Deprecated! See --enable-gmp
1527 --with-gmp=args Deprecated! See --with-gmp-args
1528 --with-gmp-args=args supply arguments for configuring GMP library
1529 --with-gmp-prefix=path prefix for system GMP includes and libraries
1530 --with-gmp-incdir=path path to system GMP includes (overrides prefix)
1531 --with-gmp-libdir=path path to system GMP libraries (overrides prefix)
1532 --with-libffi-prefix=path
1533 prefix for system LIBFFI includes and libraries
1534 --with-libffi-incdir=path
1535 path to system LIBFFI includes (overrides prefix)
1536 --with-libffi-libdir=path
1537 path to system LIBFFI libraries (overrides prefix)
1538 --with-libgc-prefix=path
1539 prefix for system LIBGC includes and libraries
1540 --with-libgc-incdir=path
1541 path to system LIBGC includes (overrides prefix)
1542 --with-libgc-libdir=path
1543 path to system LIBGC libraries (overrides prefix)
1544 --with-cxx build ECL using C++ compiler (default=NO)
1545 --with-tcp include socket interface (yes|builtin|no,
1546 default=YES)
1547 --with-serve-event include serve-event module (yes|builtin|no,
1548 default=YES)
1549 --with-clos-streams user defined stream objects (yes|builtin|no,
1550 default=YES)
1551 --with-cmuformat use CMUCL's FORMAT routine (default=YES)
1552 --with-asdf include ASDF building facility (yes|builtin|no,
1553 default=YES)
1554 --with-defsystem include DEFSYSTEM building facility (yes|builtin|no,
1555 default=NO)
1556 --with-cmp build the compiler (yes|builtin|no, default=YES)
1557 --with-bytecmp build the bytecodes compiler (yes|builtin|no,
1558 default=YES)
1559 --with-rt Deprecated! include MIT-RT testing environment
1560 (yes|builtin|no, default=NO)
1561 --with-profile Deprecated! include CMUCL's simple profiler
1562 (yes|builtin|no, default=NO)
1563 --with-dffi dynamic foreign function interface
1564 (system|included|auto|no, default=AUTO if libffi
1565 available)
1566 --with-fpe detect floating point exceptions (default=YES)
1567 --with-signed-zero={yes|no}
1568 allow for IEEE signed zeros (default=YES).
1569 --with-ieee-fp={yes|no} full IEEE floating point system, including denormals
1570 (default=YES). Implies signed-zero
1571 --with-sse={yes|no|auto}
1572 implement SSE intrinsics in ECL (default=NO). Only
1573 works when supported by the compiler
1574 --with-debug-cflags add debug flags to the compiler invocation
1575 (yes,no,actual flags,default=YES)
1576 --with-profile-cflags add profiling flags to the compiler invocation
1577 (yes,no,actual flags,default=NO)
1578 --with-extra-files list of additional source files (default="")
1579 --with-init-form lisp forms to execute at startup
1580 (default="(si::top-level t)")
1581 --with-x use the X Window System
1582
1583 Some influential environment variables:
1584 ecldir the directory where *.fas files are installed
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
1594 CPP C preprocessor
1595 XMKMF Path to xmkmf, Makefile generator for X Window System
1596
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1599
1600 Report bugs to the package provider.
1601 _ACEOF
1602 ac_status=$?
1603 fi
1604
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
1611 ac_builddir=.
1612
1613 case "$ac_dir" in
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *)
1616 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623 esac
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1628
1629 case $srcdir in
1630 .) # We are building in place.
1631 ac_srcdir=.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1642 esac
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1644
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for configure.gnu first; this name is used for a wrapper for
1647 # Metaconfig's "Configure" on case-insensitive file systems.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 ecl configure 24.5.10
1665 generated by GNU Autoconf 2.71
1666
1667 Copyright (C) 2021 Free Software Foundation, Inc.
1668 This configure script is free software; the Free Software Foundation
1669 gives unlimited permission to copy, distribute and modify it.
1670 _ACEOF
1671 exit
1672 fi
1673
1674 ## ------------------------ ##
1675 ## Autoconf initialization. ##
1676 ## ------------------------ ##
1677
1678 # ac_fn_c_try_compile LINENO
1679 # --------------------------
1680 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest.beam
1685 if { { ac_try="$ac_compile"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext
1704 then :
1705 ac_retval=0
1706 else $as_nop
1707 printf "%s\n" "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_compile
1716
1717 # ac_fn_cxx_try_compile LINENO
1718 # ----------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_cxx_try_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest.beam
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_cxx_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext
1743 then :
1744 ac_retval=0
1745 else $as_nop
1746 printf "%s\n" "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_cxx_try_compile
1755
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_cpp ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 printf "%s\n" "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }
1781 then :
1782 ac_retval=0
1783 else $as_nop
1784 printf "%s\n" "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787 ac_retval=1
1788 fi
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 printf "%s\n" "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1822 }
1823 then :
1824 ac_retval=0
1825 else $as_nop
1826 printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 ac_retval=1
1830 fi
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_link
1840
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 printf %s "checking for $2... " >&6; }
1850 if eval test \${$3+y}
1851 then :
1852 printf %s "(cached) " >&6
1853 else $as_nop
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 $4
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"
1860 then :
1861 eval "$3=yes"
1862 else $as_nop
1863 eval "$3=no"
1864 fi
1865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 printf "%s\n" "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_compile
1873
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 printf %s "checking for $2... " >&6; }
1882 if eval test \${$3+y}
1883 then :
1884 printf %s "(cached) " >&6
1885 else $as_nop
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1891
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below. */
1894
1895 #include <limits.h>
1896 #undef $2
1897
1898 /* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901 #ifdef __cplusplus
1902 extern "C"
1903 #endif
1904 char $2 ();
1905 /* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908 #if defined __stub_$2 || defined __stub___$2
1909 choke me
1910 #endif
1911
1912 int
1913 main (void)
1914 {
1915 return $2 ();
1916 ;
1917 return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_link "$LINENO"
1921 then :
1922 eval "$3=yes"
1923 else $as_nop
1924 eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1927 conftest$ac_exeext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 printf "%s\n" "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_c_check_func
1935
1936 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1937 # -------------------------------------------
1938 # Tests whether TYPE exists after having included INCLUDES, setting cache
1939 # variable VAR accordingly.
1940 ac_fn_c_check_type ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 printf %s "checking for $2... " >&6; }
1945 if eval test \${$3+y}
1946 then :
1947 printf %s "(cached) " >&6
1948 else $as_nop
1949 eval "$3=no"
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 int
1954 main (void)
1955 {
1956 if (sizeof ($2))
1957 return 0;
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"
1963 then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main (void)
1969 {
1970 if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"
1977 then :
1978
1979 else $as_nop
1980 eval "$3=yes"
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1985 fi
1986 eval ac_res=\$$3
1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 printf "%s\n" "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991 } # ac_fn_c_check_type
1992
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1996 # executables *can* be run.
1997 ac_fn_c_try_run ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 printf "%s\n" "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2008 ac_status=$?
2009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 printf "%s\n" "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2018 ac_status=$?
2019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }
2021 then :
2022 ac_retval=0
2023 else $as_nop
2024 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2025 printf "%s\n" "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 ac_retval=$ac_status
2029 fi
2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 as_fn_set_status $ac_retval
2033
2034 } # ac_fn_c_try_run
2035
2036 # ac_fn_c_find_intX_t LINENO BITS VAR
2037 # -----------------------------------
2038 # Finds a signed integer type with width BITS, setting cache variable VAR
2039 # accordingly.
2040 ac_fn_c_find_intX_t ()
2041 {
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2044 printf %s "checking for int$2_t... " >&6; }
2045 if eval test \${$3+y}
2046 then :
2047 printf %s "(cached) " >&6
2048 else $as_nop
2049 eval "$3=no"
2050 # Order is important - never check a type that is potentially smaller
2051 # than half of the expected target width.
2052 for ac_type in int$2_t 'int' 'long int' \
2053 'long long int' 'short int' 'signed char'; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $ac_includes_default
2057 enum { N = $2 / 2 - 1 };
2058 int
2059 main (void)
2060 {
2061 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2062 test_array [0] = 0;
2063 return test_array [0];
2064
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"
2070 then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $ac_includes_default
2074 enum { N = $2 / 2 - 1 };
2075 int
2076 main (void)
2077 {
2078 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2079 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2080 test_array [0] = 0;
2081 return test_array [0];
2082
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"
2088 then :
2089
2090 else $as_nop
2091 case $ac_type in #(
2092 int$2_t) :
2093 eval "$3=yes" ;; #(
2094 *) :
2095 eval "$3=\$ac_type" ;;
2096 esac
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2101 if eval test \"x\$"$3"\" = x"no"
2102 then :
2103
2104 else $as_nop
2105 break
2106 fi
2107 done
2108 fi
2109 eval ac_res=\$$3
2110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 printf "%s\n" "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_find_intX_t
2115
2116 # ac_fn_c_find_uintX_t LINENO BITS VAR
2117 # ------------------------------------
2118 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2119 # accordingly.
2120 ac_fn_c_find_uintX_t ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2124 printf %s "checking for uint$2_t... " >&6; }
2125 if eval test \${$3+y}
2126 then :
2127 printf %s "(cached) " >&6
2128 else $as_nop
2129 eval "$3=no"
2130 # Order is important - never check a type that is potentially smaller
2131 # than half of the expected target width.
2132 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2133 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $ac_includes_default
2137 int
2138 main (void)
2139 {
2140 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2141 test_array [0] = 0;
2142 return test_array [0];
2143
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"
2149 then :
2150 case $ac_type in #(
2151 uint$2_t) :
2152 eval "$3=yes" ;; #(
2153 *) :
2154 eval "$3=\$ac_type" ;;
2155 esac
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2158 if eval test \"x\$"$3"\" = x"no"
2159 then :
2160
2161 else $as_nop
2162 break
2163 fi
2164 done
2165 fi
2166 eval ac_res=\$$3
2167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 printf "%s\n" "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170
2171 } # ac_fn_c_find_uintX_t
2172
2173 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2174 # ------------------------------------------------------------------
2175 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2176 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2177 ac_fn_check_decl ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 as_decl_name=`echo $2|sed 's/ *(.*//'`
2181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2182 printf %s "checking whether $as_decl_name is declared... " >&6; }
2183 if eval test \${$3+y}
2184 then :
2185 printf %s "(cached) " >&6
2186 else $as_nop
2187 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2188 eval ac_save_FLAGS=\$$6
2189 as_fn_append $6 " $5"
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 $4
2193 int
2194 main (void)
2195 {
2196 #ifndef $as_decl_name
2197 #ifdef __cplusplus
2198 (void) $as_decl_use;
2199 #else
2200 (void) $as_decl_name;
2201 #endif
2202 #endif
2203
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"
2209 then :
2210 eval "$3=yes"
2211 else $as_nop
2212 eval "$3=no"
2213 fi
2214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2215 eval $6=\$ac_save_FLAGS
2216
2217 fi
2218 eval ac_res=\$$3
2219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220 printf "%s\n" "$ac_res" >&6; }
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222
2223 } # ac_fn_check_decl
2224 ac_configure_args_raw=
2225 for ac_arg
2226 do
2227 case $ac_arg in
2228 *\'*)
2229 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 as_fn_append ac_configure_args_raw " '$ac_arg'"
2232 done
2233
2234 case $ac_configure_args_raw in
2235 *$as_nl*)
2236 ac_safe_unquote= ;;
2237 *)
2238 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2239 ac_unsafe_a="$ac_unsafe_z#~"
2240 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2241 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2242 esac
2243
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2247
2248 It was created by ecl $as_me 24.5.10, which was
2249 generated by GNU Autoconf 2.71. Invocation command line was
2250
2251 $ $0$ac_configure_args_raw
2252
2253 _ACEOF
2254 exec 5>>config.log
2255 {
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2260
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277
2278 _ASUNAME
2279
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 case $as_dir in #(((
2285 '') as_dir=./ ;;
2286 */) ;;
2287 *) as_dir=$as_dir/ ;;
2288 esac
2289 printf "%s\n" "PATH: $as_dir"
2290 done
2291 IFS=$as_save_IFS
2292
2293 } >&5
2294
2295 cat >&5 <<_ACEOF
2296
2297
2298 ## ----------- ##
2299 ## Core tests. ##
2300 ## ----------- ##
2301
2302 _ACEOF
2303
2304
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_configure_args=
2311 ac_configure_args0=
2312 ac_configure_args1=
2313 ac_must_keep_next=false
2314 for ac_pass in 1 2
2315 do
2316 for ac_arg
2317 do
2318 case $ac_arg in
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2322 continue ;;
2323 *\'*)
2324 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 esac
2326 case $ac_pass in
2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2328 2)
2329 as_fn_append ac_configure_args1 " '$ac_arg'"
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2332 else
2333 case $ac_arg in
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 esac
2341 ;;
2342 -* ) ac_must_keep_next=true ;;
2343 esac
2344 fi
2345 as_fn_append ac_configure_args " '$ac_arg'"
2346 ;;
2347 esac
2348 done
2349 done
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2352
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Sanitize IFS.
2360 IFS=" "" $as_nl"
2361 # Save into config.log some information that might help in debugging.
2362 {
2363 echo
2364
2365 printf "%s\n" "## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##"
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
2370 (
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
2376 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac ;;
2384 esac
2385 done
2386 (set) 2>&1 |
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2389 sed -n \
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
2393 *)
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395 ;;
2396 esac |
2397 sort
2398 )
2399 echo
2400
2401 printf "%s\n" "## ----------------- ##
2402 ## Output variables. ##
2403 ## ----------------- ##"
2404 echo
2405 for ac_var in $ac_subst_vars
2406 do
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 printf "%s\n" "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2414
2415 if test -n "$ac_subst_files"; then
2416 printf "%s\n" "## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##"
2419 echo
2420 for ac_var in $ac_subst_files
2421 do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 printf "%s\n" "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2429 fi
2430
2431 if test -s confdefs.h; then
2432 printf "%s\n" "## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##"
2435 echo
2436 cat confdefs.h
2437 echo
2438 fi
2439 test "$ac_signal" != 0 &&
2440 printf "%s\n" "$as_me: caught signal $ac_signal"
2441 printf "%s\n" "$as_me: exit $exit_status"
2442 } >&5
2443 rm -f core *.core core.conftest.* &&
2444 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 exit $exit_status
2446 ' 0
2447 for ac_signal in 1 2 13 15; do
2448 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 done
2450 ac_signal=0
2451
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2454
2455 printf "%s\n" "/* confdefs.h */" > confdefs.h
2456
2457 # Predefined preprocessor variables.
2458
2459 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2460
2461 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2462
2463 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2464
2465 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2466
2467 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2468
2469 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2470
2471
2472 # Let the site file select an alternate cache file if it wants to.
2473 # Prefer an explicitly selected file to automatically selected ones.
2474 if test -n "$CONFIG_SITE"; then
2475 ac_site_files="$CONFIG_SITE"
2476 elif test "x$prefix" != xNONE; then
2477 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2478 else
2479 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2480 fi
2481
2482 for ac_site_file in $ac_site_files
2483 do
2484 case $ac_site_file in #(
2485 */*) :
2486 ;; #(
2487 *) :
2488 ac_site_file=./$ac_site_file ;;
2489 esac
2490 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2492 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2493 sed 's/^/| /' "$ac_site_file" >&5
2494 . "$ac_site_file" \
2495 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2497 as_fn_error $? "failed to load site script $ac_site_file
2498 See \`config.log' for more details" "$LINENO" 5; }
2499 fi
2500 done
2501
2502 if test -r "$cache_file"; then
2503 # Some versions of bash will fail to source /dev/null (special files
2504 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2505 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2508 case $cache_file in
2509 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2510 *) . "./$cache_file";;
2511 esac
2512 fi
2513 else
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2516 >$cache_file
2517 fi
2518
2519 # Test code for whether the C compiler supports C89 (global declarations)
2520 ac_c_conftest_c89_globals='
2521 /* Does the compiler advertise C89 conformance?
2522 Do not test the value of __STDC__, because some compilers set it to 0
2523 while being otherwise adequately conformant. */
2524 #if !defined __STDC__
2525 # error "Compiler does not advertise C89 conformance"
2526 #endif
2527
2528 #include <stddef.h>
2529 #include <stdarg.h>
2530 struct stat;
2531 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2532 struct buf { int x; };
2533 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2534 static char *e (p, i)
2535 char **p;
2536 int i;
2537 {
2538 return p[i];
2539 }
2540 static char *f (char * (*g) (char **, int), char **p, ...)
2541 {
2542 char *s;
2543 va_list v;
2544 va_start (v,p);
2545 s = g (p, va_arg (v,int));
2546 va_end (v);
2547 return s;
2548 }
2549
2550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2551 function prototypes and stuff, but not \xHH hex character constants.
2552 These do not provoke an error unfortunately, instead are silently treated
2553 as an "x". The following induces an error, until -std is added to get
2554 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2555 array size at least. It is necessary to write \x00 == 0 to get something
2556 that is true only with -std. */
2557 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2558
2559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2560 inside strings and character constants. */
2561 #define FOO(x) '\''x'\''
2562 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2563
2564 int test (int i, double x);
2565 struct s1 {int (*f) (int a);};
2566 struct s2 {int (*f) (double a);};
2567 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2568 int, int);'
2569
2570 # Test code for whether the C compiler supports C89 (body of main).
2571 ac_c_conftest_c89_main='
2572 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2573 '
2574
2575 # Test code for whether the C compiler supports C99 (global declarations)
2576 ac_c_conftest_c99_globals='
2577 // Does the compiler advertise C99 conformance?
2578 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2579 # error "Compiler does not advertise C99 conformance"
2580 #endif
2581
2582 #include <stdbool.h>
2583 extern int puts (const char *);
2584 extern int printf (const char *, ...);
2585 extern int dprintf (int, const char *, ...);
2586 extern void *malloc (size_t);
2587
2588 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2589 // dprintf is used instead of fprintf to avoid needing to declare
2590 // FILE and stderr.
2591 #define debug(...) dprintf (2, __VA_ARGS__)
2592 #define showlist(...) puts (#__VA_ARGS__)
2593 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2594 static void
2595 test_varargs_macros (void)
2596 {
2597 int x = 1234;
2598 int y = 5678;
2599 debug ("Flag");
2600 debug ("X = %d\n", x);
2601 showlist (The first, second, and third items.);
2602 report (x>y, "x is %d but y is %d", x, y);
2603 }
2604
2605 // Check long long types.
2606 #define BIG64 18446744073709551615ull
2607 #define BIG32 4294967295ul
2608 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2609 #if !BIG_OK
2610 #error "your preprocessor is broken"
2611 #endif
2612 #if BIG_OK
2613 #else
2614 #error "your preprocessor is broken"
2615 #endif
2616 static long long int bignum = -9223372036854775807LL;
2617 static unsigned long long int ubignum = BIG64;
2618
2619 struct incomplete_array
2620 {
2621 int datasize;
2622 double data[];
2623 };
2624
2625 struct named_init {
2626 int number;
2627 const wchar_t *name;
2628 double average;
2629 };
2630
2631 typedef const char *ccp;
2632
2633 static inline int
2634 test_restrict (ccp restrict text)
2635 {
2636 // See if C++-style comments work.
2637 // Iterate through items via the restricted pointer.
2638 // Also check for declarations in for loops.
2639 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2640 continue;
2641 return 0;
2642 }
2643
2644 // Check varargs and va_copy.
2645 static bool
2646 test_varargs (const char *format, ...)
2647 {
2648 va_list args;
2649 va_start (args, format);
2650 va_list args_copy;
2651 va_copy (args_copy, args);
2652
2653 const char *str = "";
2654 int number = 0;
2655 float fnumber = 0;
2656
2657 while (*format)
2658 {
2659 switch (*format++)
2660 {
2661 case '\''s'\'': // string
2662 str = va_arg (args_copy, const char *);
2663 break;
2664 case '\''d'\'': // int
2665 number = va_arg (args_copy, int);
2666 break;
2667 case '\''f'\'': // float
2668 fnumber = va_arg (args_copy, double);
2669 break;
2670 default:
2671 break;
2672 }
2673 }
2674 va_end (args_copy);
2675 va_end (args);
2676
2677 return *str && number && fnumber;
2678 }
2679 '
2680
2681 # Test code for whether the C compiler supports C99 (body of main).
2682 ac_c_conftest_c99_main='
2683 // Check bool.
2684 _Bool success = false;
2685 success |= (argc != 0);
2686
2687 // Check restrict.
2688 if (test_restrict ("String literal") == 0)
2689 success = true;
2690 char *restrict newvar = "Another string";
2691
2692 // Check varargs.
2693 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2694 test_varargs_macros ();
2695
2696 // Check flexible array members.
2697 struct incomplete_array *ia =
2698 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2699 ia->datasize = 10;
2700 for (int i = 0; i < ia->datasize; ++i)
2701 ia->data[i] = i * 1.234;
2702
2703 // Check named initializers.
2704 struct named_init ni = {
2705 .number = 34,
2706 .name = L"Test wide string",
2707 .average = 543.34343,
2708 };
2709
2710 ni.number = 58;
2711
2712 int dynamic_array[ni.number];
2713 dynamic_array[0] = argv[0][0];
2714 dynamic_array[ni.number - 1] = 543;
2715
2716 // work around unused variable warnings
2717 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2718 || dynamic_array[ni.number - 1] != 543);
2719 '
2720
2721 # Test code for whether the C compiler supports C11 (global declarations)
2722 ac_c_conftest_c11_globals='
2723 // Does the compiler advertise C11 conformance?
2724 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2725 # error "Compiler does not advertise C11 conformance"
2726 #endif
2727
2728 // Check _Alignas.
2729 char _Alignas (double) aligned_as_double;
2730 char _Alignas (0) no_special_alignment;
2731 extern char aligned_as_int;
2732 char _Alignas (0) _Alignas (int) aligned_as_int;
2733
2734 // Check _Alignof.
2735 enum
2736 {
2737 int_alignment = _Alignof (int),
2738 int_array_alignment = _Alignof (int[100]),
2739 char_alignment = _Alignof (char)
2740 };
2741 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2742
2743 // Check _Noreturn.
2744 int _Noreturn does_not_return (void) { for (;;) continue; }
2745
2746 // Check _Static_assert.
2747 struct test_static_assert
2748 {
2749 int x;
2750 _Static_assert (sizeof (int) <= sizeof (long int),
2751 "_Static_assert does not work in struct");
2752 long int y;
2753 };
2754
2755 // Check UTF-8 literals.
2756 #define u8 syntax error!
2757 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2758
2759 // Check duplicate typedefs.
2760 typedef long *long_ptr;
2761 typedef long int *long_ptr;
2762 typedef long_ptr long_ptr;
2763
2764 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2765 struct anonymous
2766 {
2767 union {
2768 struct { int i; int j; };
2769 struct { int k; long int l; } w;
2770 };
2771 int m;
2772 } v1;
2773 '
2774
2775 # Test code for whether the C compiler supports C11 (body of main).
2776 ac_c_conftest_c11_main='
2777 _Static_assert ((offsetof (struct anonymous, i)
2778 == offsetof (struct anonymous, w.k)),
2779 "Anonymous union alignment botch");
2780 v1.i = 2;
2781 v1.w.k = 5;
2782 ok |= v1.i != 5;
2783 '
2784
2785 # Test code for whether the C compiler supports C11 (complete).
2786 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2787 ${ac_c_conftest_c99_globals}
2788 ${ac_c_conftest_c11_globals}
2789
2790 int
2791 main (int argc, char **argv)
2792 {
2793 int ok = 0;
2794 ${ac_c_conftest_c89_main}
2795 ${ac_c_conftest_c99_main}
2796 ${ac_c_conftest_c11_main}
2797 return ok;
2798 }
2799 "
2800
2801 # Test code for whether the C compiler supports C99 (complete).
2802 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2803 ${ac_c_conftest_c99_globals}
2804
2805 int
2806 main (int argc, char **argv)
2807 {
2808 int ok = 0;
2809 ${ac_c_conftest_c89_main}
2810 ${ac_c_conftest_c99_main}
2811 return ok;
2812 }
2813 "
2814
2815 # Test code for whether the C compiler supports C89 (complete).
2816 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2817
2818 int
2819 main (int argc, char **argv)
2820 {
2821 int ok = 0;
2822 ${ac_c_conftest_c89_main}
2823 return ok;
2824 }
2825 "
2826
2827 # Test code for whether the C++ compiler supports C++98 (global declarations)
2828 ac_cxx_conftest_cxx98_globals='
2829 // Does the compiler advertise C++98 conformance?
2830 #if !defined __cplusplus || __cplusplus < 199711L
2831 # error "Compiler does not advertise C++98 conformance"
2832 #endif
2833
2834 // These inclusions are to reject old compilers that
2835 // lack the unsuffixed header files.
2836 #include <cstdlib>
2837 #include <exception>
2838
2839 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2840 extern void assert (int);
2841 namespace std {
2842 extern int strcmp (const char *, const char *);
2843 }
2844
2845 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2846 using std::exception;
2847 using std::strcmp;
2848
2849 namespace {
2850
2851 void test_exception_syntax()
2852 {
2853 try {
2854 throw "test";
2855 } catch (const char *s) {
2856 // Extra parentheses suppress a warning when building autoconf itself,
2857 // due to lint rules shared with more typical C programs.
2858 assert (!(strcmp) (s, "test"));
2859 }
2860 }
2861
2862 template <typename T> struct test_template
2863 {
2864 T const val;
2865 explicit test_template(T t) : val(t) {}
2866 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2867 };
2868
2869 } // anonymous namespace
2870 '
2871
2872 # Test code for whether the C++ compiler supports C++98 (body of main)
2873 ac_cxx_conftest_cxx98_main='
2874 assert (argc);
2875 assert (! argv[0]);
2876 {
2877 test_exception_syntax ();
2878 test_template<double> tt (2.0);
2879 assert (tt.add (4) == 6.0);
2880 assert (true && !false);
2881 }
2882 '
2883
2884 # Test code for whether the C++ compiler supports C++11 (global declarations)
2885 ac_cxx_conftest_cxx11_globals='
2886 // Does the compiler advertise C++ 2011 conformance?
2887 #if !defined __cplusplus || __cplusplus < 201103L
2888 # error "Compiler does not advertise C++11 conformance"
2889 #endif
2890
2891 namespace cxx11test
2892 {
2893 constexpr int get_val() { return 20; }
2894
2895 struct testinit
2896 {
2897 int i;
2898 double d;
2899 };
2900
2901 class delegate
2902 {
2903 public:
2904 delegate(int n) : n(n) {}
2905 delegate(): delegate(2354) {}
2906
2907 virtual int getval() { return this->n; };
2908 protected:
2909 int n;
2910 };
2911
2912 class overridden : public delegate
2913 {
2914 public:
2915 overridden(int n): delegate(n) {}
2916 virtual int getval() override final { return this->n * 2; }
2917 };
2918
2919 class nocopy
2920 {
2921 public:
2922 nocopy(int i): i(i) {}
2923 nocopy() = default;
2924 nocopy(const nocopy&) = delete;
2925 nocopy & operator=(const nocopy&) = delete;
2926 private:
2927 int i;
2928 };
2929
2930 // for testing lambda expressions
2931 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2932 {
2933 return f(v);
2934 }
2935
2936 // for testing variadic templates and trailing return types
2937 template <typename V> auto sum(V first) -> V
2938 {
2939 return first;
2940 }
2941 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2942 {
2943 return first + sum(rest...);
2944 }
2945 }
2946 '
2947
2948 # Test code for whether the C++ compiler supports C++11 (body of main)
2949 ac_cxx_conftest_cxx11_main='
2950 {
2951 // Test auto and decltype
2952 auto a1 = 6538;
2953 auto a2 = 48573953.4;
2954 auto a3 = "String literal";
2955
2956 int total = 0;
2957 for (auto i = a3; *i; ++i) { total += *i; }
2958
2959 decltype(a2) a4 = 34895.034;
2960 }
2961 {
2962 // Test constexpr
2963 short sa[cxx11test::get_val()] = { 0 };
2964 }
2965 {
2966 // Test initializer lists
2967 cxx11test::testinit il = { 4323, 435234.23544 };
2968 }
2969 {
2970 // Test range-based for
2971 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2972 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2973 for (auto &x : array) { x += 23; }
2974 }
2975 {
2976 // Test lambda expressions
2977 using cxx11test::eval;
2978 assert (eval ([](int x) { return x*2; }, 21) == 42);
2979 double d = 2.0;
2980 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2981 assert (d == 5.0);
2982 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2983 assert (d == 5.0);
2984 }
2985 {
2986 // Test use of variadic templates
2987 using cxx11test::sum;
2988 auto a = sum(1);
2989 auto b = sum(1, 2);
2990 auto c = sum(1.0, 2.0, 3.0);
2991 }
2992 {
2993 // Test constructor delegation
2994 cxx11test::delegate d1;
2995 cxx11test::delegate d2();
2996 cxx11test::delegate d3(45);
2997 }
2998 {
2999 // Test override and final
3000 cxx11test::overridden o1(55464);
3001 }
3002 {
3003 // Test nullptr
3004 char *c = nullptr;
3005 }
3006 {
3007 // Test template brackets
3008 test_template<::test_template<int>> v(test_template<int>(12));
3009 }
3010 {
3011 // Unicode literals
3012 char const *utf8 = u8"UTF-8 string \u2500";
3013 char16_t const *utf16 = u"UTF-8 string \u2500";
3014 char32_t const *utf32 = U"UTF-32 string \u2500";
3015 }
3016 '
3017
3018 # Test code for whether the C compiler supports C++11 (complete).
3019 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3020 ${ac_cxx_conftest_cxx11_globals}
3021
3022 int
3023 main (int argc, char **argv)
3024 {
3025 int ok = 0;
3026 ${ac_cxx_conftest_cxx98_main}
3027 ${ac_cxx_conftest_cxx11_main}
3028 return ok;
3029 }
3030 "
3031
3032 # Test code for whether the C compiler supports C++98 (complete).
3033 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3034 int
3035 main (int argc, char **argv)
3036 {
3037 int ok = 0;
3038 ${ac_cxx_conftest_cxx98_main}
3039 return ok;
3040 }
3041 "
3042
3043 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3044 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3045 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3046 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3047 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3048 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3049 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3050 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3051 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3052 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3053 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3054 as_fn_append ac_func_c_list " fork HAVE_FORK"
3055 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3056 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3057 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3058 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
3059 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3060
3061 # Auxiliary files required by this configure script.
3062 ac_aux_files="install-sh config.guess config.sub"
3063
3064 # Locations in which to look for auxiliary files.
3065 ac_aux_dir_candidates="${srcdir}/gmp"
3066
3067 # Search for a directory containing all of the required auxiliary files,
3068 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3069 # If we don't find one directory that contains all the files we need,
3070 # we report the set of missing files from the *first* directory in
3071 # $ac_aux_dir_candidates and give up.
3072 ac_missing_aux_files=""
3073 ac_first_candidate=:
3074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 as_found=false
3077 for as_dir in $ac_aux_dir_candidates
3078 do
3079 IFS=$as_save_IFS
3080 case $as_dir in #(((
3081 '') as_dir=./ ;;
3082 */) ;;
3083 *) as_dir=$as_dir/ ;;
3084 esac
3085 as_found=:
3086
3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3088 ac_aux_dir_found=yes
3089 ac_install_sh=
3090 for ac_aux in $ac_aux_files
3091 do
3092 # As a special case, if "install-sh" is required, that requirement
3093 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3094 # and $ac_install_sh is set appropriately for whichever one is found.
3095 if test x"$ac_aux" = x"install-sh"
3096 then
3097 if test -f "${as_dir}install-sh"; then
3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3099 ac_install_sh="${as_dir}install-sh -c"
3100 elif test -f "${as_dir}install.sh"; then
3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3102 ac_install_sh="${as_dir}install.sh -c"
3103 elif test -f "${as_dir}shtool"; then
3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3105 ac_install_sh="${as_dir}shtool install -c"
3106 else
3107 ac_aux_dir_found=no
3108 if $ac_first_candidate; then
3109 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3110 else
3111 break
3112 fi
3113 fi
3114 else
3115 if test -f "${as_dir}${ac_aux}"; then
3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3117 else
3118 ac_aux_dir_found=no
3119 if $ac_first_candidate; then
3120 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3121 else
3122 break
3123 fi
3124 fi
3125 fi
3126 done
3127 if test "$ac_aux_dir_found" = yes; then
3128 ac_aux_dir="$as_dir"
3129 break
3130 fi
3131 ac_first_candidate=false
3132
3133 as_found=false
3134 done
3135 IFS=$as_save_IFS
3136 if $as_found
3137 then :
3138
3139 else $as_nop
3140 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3141 fi
3142
3143
3144 # These three variables are undocumented and unsupported,
3145 # and are intended to be withdrawn in a future Autoconf release.
3146 # They can cause serious problems if a builder's source tree is in a directory
3147 # whose full name contains unusual characters.
3148 if test -f "${ac_aux_dir}config.guess"; then
3149 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3150 fi
3151 if test -f "${ac_aux_dir}config.sub"; then
3152 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3153 fi
3154 if test -f "$ac_aux_dir/configure"; then
3155 ac_configure="$SHELL ${ac_aux_dir}configure"
3156 fi
3157
3158 # Check that the precious variables saved in the cache have kept the same
3159 # value.
3160 ac_cache_corrupted=false
3161 for ac_var in $ac_precious_vars; do
3162 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3163 eval ac_new_set=\$ac_env_${ac_var}_set
3164 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3165 eval ac_new_val=\$ac_env_${ac_var}_value
3166 case $ac_old_set,$ac_new_set in
3167 set,)
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3169 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3170 ac_cache_corrupted=: ;;
3171 ,set)
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3173 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3174 ac_cache_corrupted=: ;;
3175 ,);;
3176 *)
3177 if test "x$ac_old_val" != "x$ac_new_val"; then
3178 # differences in whitespace do not lead to failure.
3179 ac_old_val_w=`echo x $ac_old_val`
3180 ac_new_val_w=`echo x $ac_new_val`
3181 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3183 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3184 ac_cache_corrupted=:
3185 else
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3187 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3188 eval $ac_var=\$ac_old_val
3189 fi
3190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3191 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3193 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3194 fi;;
3195 esac
3196 # Pass precious variables to config.status.
3197 if test "$ac_new_set" = set; then
3198 case $ac_new_val in
3199 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3200 *) ac_arg=$ac_var=$ac_new_val ;;
3201 esac
3202 case " $ac_configure_args " in
3203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3204 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3205 esac
3206 fi
3207 done
3208 if $ac_cache_corrupted; then
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3212 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3213 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3214 and start over" "$LINENO" 5
3215 fi
3216 ## -------------------- ##
3217 ## Main body of script. ##
3218 ## -------------------- ##
3219
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226
3227
3228
3229
3230
3231
3232 if test -f configure; then
3233 as_fn_error $? "This program cannot be built within the source directory" "$LINENO" 5
3234 fi
3235
3236
3237
3238 # Check whether --with-cross_config was given.
3239 if test ${with_cross_config+y}
3240 then :
3241 withval=$with_cross_config;
3242 else $as_nop
3243 with_cross_config="`pwd`/cross_config"
3244 fi
3245
3246
3247 # Check whether --enable-shared was given.
3248 if test ${enable_shared+y}
3249 then :
3250 enableval=$enable_shared;
3251 else $as_nop
3252 enable_shared=yes
3253 fi
3254
3255
3256 # Check whether --enable-rpath was given.
3257 if test ${enable_rpath+y}
3258 then :
3259 enableval=$enable_rpath;
3260 else $as_nop
3261 enable_rpath=yes
3262 fi
3263
3264
3265 # Check whether --enable-threads was given.
3266 if test ${enable_threads+y}
3267 then :
3268 enableval=$enable_threads;
3269 else $as_nop
3270 enable_threads=auto
3271 fi
3272
3273
3274 # Check whether --enable-boehm was given.
3275 if test ${enable_boehm+y}
3276 then :
3277 enableval=$enable_boehm;
3278 else $as_nop
3279 enable_boehm=auto
3280 fi
3281
3282
3283 # Check whether --enable-libatomic was given.
3284 if test ${enable_libatomic+y}
3285 then :
3286 enableval=$enable_libatomic;
3287 else $as_nop
3288 enable_libatomic=auto
3289 fi
3290
3291
3292 # Check whether --enable-soname was given.
3293 if test ${enable_soname+y}
3294 then :
3295 enableval=$enable_soname;
3296 else $as_nop
3297 enable_soname=yes
3298 fi
3299
3300
3301 # Check whether --enable-gmp was given.
3302 if test ${enable_gmp+y}
3303 then :
3304 enableval=$enable_gmp;
3305 else $as_nop
3306 enable_gmp=auto
3307 fi
3308
3309
3310
3311 # Check whether --with-C-gmp was given.
3312 if test ${with_C_gmp+y}
3313 then :
3314 withval=$with_C_gmp; with_c_gmp=yes; with_system_gmp=no
3315 else $as_nop
3316 with_c_gmp=no
3317 fi
3318
3319
3320
3321 # Check whether --with-system-gmp was given.
3322 if test ${with_system_gmp+y}
3323 then :
3324 withval=$with_system_gmp;
3325 else $as_nop
3326 with_system_gmp="auto"
3327 fi
3328
3329
3330
3331 # Check whether --with-gmp was given.
3332 if test ${with_gmp+y}
3333 then :
3334 withval=$with_gmp;
3335 else $as_nop
3336 with_gmp_args=""
3337 fi
3338
3339
3340
3341 # Check whether --with-gmp-args was given.
3342 if test ${with_gmp_args+y}
3343 then :
3344 withval=$with_gmp_args;
3345 else $as_nop
3346 with_gmp_args=""
3347 fi
3348
3349
3350
3351 # Check whether --with-gmp-prefix was given.
3352 if test ${with_gmp_prefix+y}
3353 then :
3354 withval=$with_gmp_prefix; GMP_INCDIR="$withval/include"; GMP_LIBDIR="$withval/lib"
3355 fi
3356
3357
3358
3359 # Check whether --with-gmp-incdir was given.
3360 if test ${with_gmp_incdir+y}
3361 then :
3362 withval=$with_gmp_incdir; GMP_INCDIR="$withval"
3363 fi
3364
3365
3366
3367 # Check whether --with-gmp-libdir was given.
3368 if test ${with_gmp_libdir+y}
3369 then :
3370 withval=$with_gmp_libdir; GMP_LIBDIR="$withval"
3371 fi
3372
3373
3374
3375 # Check whether --with-libffi-prefix was given.
3376 if test ${with_libffi_prefix+y}
3377 then :
3378 withval=$with_libffi_prefix; LIBFFI_INCDIR="$withval/include"; LIBFFI_LIBDIR="$withval/lib"
3379 fi
3380
3381
3382
3383 # Check whether --with-libffi-incdir was given.
3384 if test ${with_libffi_incdir+y}
3385 then :
3386 withval=$with_libffi_incdir; LIBFFI_INCDIR="$withval"
3387 fi
3388
3389
3390
3391 # Check whether --with-libffi-libdir was given.
3392 if test ${with_libffi_libdir+y}
3393 then :
3394 withval=$with_libffi_libdir; LIBFFI_LIBDIR="$withval"
3395 fi
3396
3397
3398
3399 # Check whether --with-libgc-prefix was given.
3400 if test ${with_libgc_prefix+y}
3401 then :
3402 withval=$with_libgc_prefix; LIBGC_INCDIR="$withval/include"; LIBGC_LIBDIR="$withval/lib"
3403 fi
3404
3405
3406
3407 # Check whether --with-libgc-incdir was given.
3408 if test ${with_libgc_incdir+y}
3409 then :
3410 withval=$with_libgc_incdir; LIBGC_INCDIR="$withval"
3411 fi
3412
3413
3414
3415 # Check whether --with-libgc-libdir was given.
3416 if test ${with_libgc_libdir+y}
3417 then :
3418 withval=$with_libgc_libdir; LIBGC_LIBDIR="$withval"
3419 fi
3420
3421
3422
3423 # Check whether --with-cxx was given.
3424 if test ${with_cxx+y}
3425 then :
3426 withval=$with_cxx;
3427 else $as_nop
3428 with_cxx=no
3429 fi
3430
3431
3432
3433 # Check whether --with-tcp was given.
3434 if test ${with_tcp+y}
3435 then :
3436 withval=$with_tcp;
3437 else $as_nop
3438 with_tcp=yes
3439 fi
3440
3441
3442
3443 # Check whether --with-serve_event was given.
3444 if test ${with_serve_event+y}
3445 then :
3446 withval=$with_serve_event;
3447 else $as_nop
3448 with_serve_event=${enable_shared}
3449 fi
3450
3451
3452
3453 # Check whether --with-clos-streams was given.
3454 if test ${with_clos_streams+y}
3455 then :
3456 withval=$with_clos_streams;
3457 else $as_nop
3458 with_clos_streams=yes
3459 fi
3460
3461
3462
3463 # Check whether --with-cmuformat was given.
3464 if test ${with_cmuformat+y}
3465 then :
3466 withval=$with_cmuformat;
3467 else $as_nop
3468 with_cmuformat=${with_clos_streams}
3469 fi
3470
3471
3472
3473 # Check whether --with-asdf was given.
3474 if test ${with_asdf+y}
3475 then :
3476 withval=$with_asdf;
3477 else $as_nop
3478 with_asdf=yes
3479 fi
3480
3481
3482
3483 # Check whether --with-defsystem was given.
3484 if test ${with_defsystem+y}
3485 then :
3486 withval=$with_defsystem;
3487 else $as_nop
3488 with_defsystem=no
3489 fi
3490
3491
3492
3493 # Check whether --with-cmp was given.
3494 if test ${with_cmp+y}
3495 then :
3496 withval=$with_cmp;
3497 else $as_nop
3498 with_cmp=yes
3499 fi
3500
3501
3502
3503 # Check whether --with-bytecmp was given.
3504 if test ${with_bytecmp+y}
3505 then :
3506 withval=$with_bytecmp;
3507 else $as_nop
3508 with_bytecmp=yes
3509 fi
3510
3511
3512
3513 # Check whether --with-rt was given.
3514 if test ${with_rt+y}
3515 then :
3516 withval=$with_rt;
3517 else $as_nop
3518 with_rt=no
3519 fi
3520
3521
3522
3523 # Check whether --with-profile was given.
3524 if test ${with_profile+y}
3525 then :
3526 withval=$with_profile;
3527 else $as_nop
3528 with_profile=no
3529 fi
3530
3531
3532
3533 # Check whether --with-dffi was given.
3534 if test ${with_dffi+y}
3535 then :
3536 withval=$with_dffi; enable_libffi=${withval}
3537 else $as_nop
3538 enable_libffi=auto
3539 fi
3540
3541
3542
3543 # Check whether --with-fpe was given.
3544 if test ${with_fpe+y}
3545 then :
3546 withval=$with_fpe;
3547 else $as_nop
3548 with_fpe=yes
3549 fi
3550
3551
3552
3553 # Check whether --with-signed-zero was given.
3554 if test ${with_signed_zero+y}
3555 then :
3556 withval=$with_signed_zero;
3557 else $as_nop
3558 with_signed_zero="yes"
3559 fi
3560
3561
3562
3563 # Check whether --with-ieee-fp was given.
3564 if test ${with_ieee_fp+y}
3565 then :
3566 withval=$with_ieee_fp;
3567 else $as_nop
3568 with_ieee_fp="yes"
3569 fi
3570
3571
3572
3573 # Check whether --with-sse was given.
3574 if test ${with_sse+y}
3575 then :
3576 withval=$with_sse;
3577 else $as_nop
3578 with_sse="no"
3579 fi
3580
3581
3582 # Check whether --enable-unicode was given.
3583 if test ${enable_unicode+y}
3584 then :
3585 enableval=$enable_unicode;
3586 else $as_nop
3587 enable_unicode=32
3588 fi
3589
3590
3591 # Check whether --enable-c99complex was given.
3592 if test ${enable_c99complex+y}
3593 then :
3594 enableval=$enable_c99complex; enable_c99complex=${enableval}
3595 else $as_nop
3596 enable_c99complex=auto
3597 fi
3598
3599
3600 # Check whether --enable-smallcons was given.
3601 if test ${enable_smallcons+y}
3602 then :
3603 enableval=$enable_smallcons; enable_smallcons=${enableval}
3604 else $as_nop
3605 enable_smallcons=yes
3606 fi
3607
3608
3609 # Check whether --enable-gengc was given.
3610 if test ${enable_gengc+y}
3611 then :
3612 enableval=$enable_gengc; enable_gengc=${enableval}
3613 else $as_nop
3614 enable_gengc=no
3615 fi
3616
3617
3618 # Check whether --enable-precisegc was given.
3619 if test ${enable_precisegc+y}
3620 then :
3621 enableval=$enable_precisegc; enable_precisegc=${enableval}
3622 else $as_nop
3623 enable_precisegc=no
3624 fi
3625
3626
3627 # Check whether --enable-serialization was given.
3628 if test ${enable_serialization+y}
3629 then :
3630 enableval=$enable_serialization;
3631 else $as_nop
3632 enable_serialization=no
3633 fi
3634
3635
3636 # Check whether --enable-debug was given.
3637 if test ${enable_debug+y}
3638 then :
3639 enableval=$enable_debug; DEBUG_CFLAGS="-g -O0"; CFLAGS="$CFLAGS -g -O0"
3640 fi
3641
3642
3643
3644 # Check whether --with-debug-cflags was given.
3645 if test ${with_debug_cflags+y}
3646 then :
3647 withval=$with_debug_cflags;
3648 else $as_nop
3649 with_debug_cflags="no"
3650 fi
3651
3652
3653
3654 # Check whether --with-profile-cflags was given.
3655 if test ${with_profile_cflags+y}
3656 then :
3657 withval=$with_profile_cflags;
3658 else $as_nop
3659 with_profile_cflags="no"
3660 fi
3661
3662
3663
3664 # Check whether --with-extra-files was given.
3665 if test ${with_extra_files+y}
3666 then :
3667 withval=$with_extra_files; with_extra_files="${withval}"
3668 else $as_nop
3669 with_extra_files=""
3670 fi
3671
3672
3673
3674 # Check whether --with-init-form was given.
3675 if test ${with_init_form+y}
3676 then :
3677 withval=$with_init_form; with_init_form="${withval}"
3678 else $as_nop
3679 with_init_form=""
3680 fi
3681
3682
3683 # Check whether --enable-manual was given.
3684 if test ${enable_manual+y}
3685 then :
3686 enableval=$enable_manual; enable_manual=${enableval}
3687 else $as_nop
3688 enable_manual=auto
3689 fi
3690
3691
3692
3693 test -z "${ecldir}" && ecldir="${libdir}/ecl-${PACKAGE_VERSION}"
3694
3695
3696 boehm_configure_flags=""
3697
3698
3699 TARGETS='bin/ecl$(EXE)'
3700 SUBDIRS='c doc'
3701 COMPILATION_FEATURES=''
3702 LSP_FEATURES="${LSP_FEATURES} :ecl :common :common-lisp :ansi-cl :ffi :prefixed-api :cdr-14 :package-local-nicknames :clos :ecl-pde :long-float"
3703
3704
3705
3706
3707
3708 # Make sure we can run config.sub.
3709 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3710 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3711
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3713 printf %s "checking build system type... " >&6; }
3714 if test ${ac_cv_build+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 ac_build_alias=$build_alias
3719 test "x$ac_build_alias" = x &&
3720 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3721 test "x$ac_build_alias" = x &&
3722 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3723 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3724 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3725
3726 fi
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3728 printf "%s\n" "$ac_cv_build" >&6; }
3729 case $ac_cv_build in
3730 *-*-*) ;;
3731 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3732 esac
3733 build=$ac_cv_build
3734 ac_save_IFS=$IFS; IFS='-'
3735 set x $ac_cv_build
3736 shift
3737 build_cpu=$1
3738 build_vendor=$2
3739 shift; shift
3740 # Remember, the first character of IFS is used to create $*,
3741 # except with old shells:
3742 build_os=$*
3743 IFS=$ac_save_IFS
3744 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3745
3746
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3748 printf %s "checking host system type... " >&6; }
3749 if test ${ac_cv_host+y}
3750 then :
3751 printf %s "(cached) " >&6
3752 else $as_nop
3753 if test "x$host_alias" = x; then
3754 ac_cv_host=$ac_cv_build
3755 else
3756 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3757 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3758 fi
3759
3760 fi
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3762 printf "%s\n" "$ac_cv_host" >&6; }
3763 case $ac_cv_host in
3764 *-*-*) ;;
3765 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3766 esac
3767 host=$ac_cv_host
3768 ac_save_IFS=$IFS; IFS='-'
3769 set x $ac_cv_host
3770 shift
3771 host_cpu=$1
3772 host_vendor=$2
3773 shift; shift
3774 # Remember, the first character of IFS is used to create $*,
3775 # except with old shells:
3776 host_os=$*
3777 IFS=$ac_save_IFS
3778 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3799 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 printf %s "checking for $ac_word... " >&6; }
3802 if test ${ac_cv_prog_CC+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else $as_nop
3806 if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812 IFS=$as_save_IFS
3813 case $as_dir in #(((
3814 '') as_dir=./ ;;
3815 */) ;;
3816 *) as_dir=$as_dir/ ;;
3817 esac
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824 done
3825 done
3826 IFS=$as_save_IFS
3827
3828 fi
3829 fi
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 printf "%s\n" "$CC" >&6; }
3834 else
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 printf "%s\n" "no" >&6; }
3837 fi
3838
3839
3840 fi
3841 if test -z "$ac_cv_prog_CC"; then
3842 ac_ct_CC=$CC
3843 # Extract the first word of "gcc", so it can be a program name with args.
3844 set dummy gcc; ac_word=$2
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 printf %s "checking for $ac_word... " >&6; }
3847 if test ${ac_cv_prog_ac_ct_CC+y}
3848 then :
3849 printf %s "(cached) " >&6
3850 else $as_nop
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 case $as_dir in #(((
3859 '') as_dir=./ ;;
3860 */) ;;
3861 *) as_dir=$as_dir/ ;;
3862 esac
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_ac_ct_CC="gcc"
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876 if test -n "$ac_ct_CC"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878 printf "%s\n" "$ac_ct_CC" >&6; }
3879 else
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 fi
3883
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3894 fi
3895 else
3896 CC="$ac_cv_prog_CC"
3897 fi
3898
3899 if test -z "$CC"; then
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}cc; ac_word=$2
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 printf %s "checking for $ac_word... " >&6; }
3905 if test ${ac_cv_prog_CC+y}
3906 then :
3907 printf %s "(cached) " >&6
3908 else $as_nop
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 case $as_dir in #(((
3917 '') as_dir=./ ;;
3918 */) ;;
3919 *) as_dir=$as_dir/ ;;
3920 esac
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3923 ac_cv_prog_CC="${ac_tool_prefix}cc"
3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 printf "%s\n" "$CC" >&6; }
3937 else
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 printf "%s\n" "no" >&6; }
3940 fi
3941
3942
3943 fi
3944 fi
3945 if test -z "$CC"; then
3946 # Extract the first word of "cc", so it can be a program name with args.
3947 set dummy cc; ac_word=$2
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 printf %s "checking for $ac_word... " >&6; }
3950 if test ${ac_cv_prog_CC+y}
3951 then :
3952 printf %s "(cached) " >&6
3953 else $as_nop
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 ac_prog_rejected=no
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961 IFS=$as_save_IFS
3962 case $as_dir in #(((
3963 '') as_dir=./ ;;
3964 */) ;;
3965 *) as_dir=$as_dir/ ;;
3966 esac
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3969 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3970 ac_prog_rejected=yes
3971 continue
3972 fi
3973 ac_cv_prog_CC="cc"
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977 done
3978 done
3979 IFS=$as_save_IFS
3980
3981 if test $ac_prog_rejected = yes; then
3982 # We found a bogon in the path, so make sure we never use it.
3983 set dummy $ac_cv_prog_CC
3984 shift
3985 if test $# != 0; then
3986 # We chose a different compiler from the bogus one.
3987 # However, it has the same basename, so the bogon will be chosen
3988 # first if we set CC to just the basename; use the full file name.
3989 shift
3990 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3991 fi
3992 fi
3993 fi
3994 fi
3995 CC=$ac_cv_prog_CC
3996 if test -n "$CC"; then
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 printf "%s\n" "$CC" >&6; }
3999 else
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 printf "%s\n" "no" >&6; }
4002 fi
4003
4004
4005 fi
4006 if test -z "$CC"; then
4007 if test -n "$ac_tool_prefix"; then
4008 for ac_prog in cl.exe
4009 do
4010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 printf %s "checking for $ac_word... " >&6; }
4014 if test ${ac_cv_prog_CC+y}
4015 then :
4016 printf %s "(cached) " >&6
4017 else $as_nop
4018 if test -n "$CC"; then
4019 ac_cv_prog_CC="$CC" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 case $as_dir in #(((
4026 '') as_dir=./ ;;
4027 */) ;;
4028 *) as_dir=$as_dir/ ;;
4029 esac
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036 done
4037 done
4038 IFS=$as_save_IFS
4039
4040 fi
4041 fi
4042 CC=$ac_cv_prog_CC
4043 if test -n "$CC"; then
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045 printf "%s\n" "$CC" >&6; }
4046 else
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 printf "%s\n" "no" >&6; }
4049 fi
4050
4051
4052 test -n "$CC" && break
4053 done
4054 fi
4055 if test -z "$CC"; then
4056 ac_ct_CC=$CC
4057 for ac_prog in cl.exe
4058 do
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 printf %s "checking for $ac_word... " >&6; }
4063 if test ${ac_cv_prog_ac_ct_CC+y}
4064 then :
4065 printf %s "(cached) " >&6
4066 else $as_nop
4067 if test -n "$ac_ct_CC"; then
4068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4072 do
4073 IFS=$as_save_IFS
4074 case $as_dir in #(((
4075 '') as_dir=./ ;;
4076 */) ;;
4077 *) as_dir=$as_dir/ ;;
4078 esac
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4081 ac_cv_prog_ac_ct_CC="$ac_prog"
4082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4083 break 2
4084 fi
4085 done
4086 done
4087 IFS=$as_save_IFS
4088
4089 fi
4090 fi
4091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4092 if test -n "$ac_ct_CC"; then
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4094 printf "%s\n" "$ac_ct_CC" >&6; }
4095 else
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097 printf "%s\n" "no" >&6; }
4098 fi
4099
4100
4101 test -n "$ac_ct_CC" && break
4102 done
4103
4104 if test "x$ac_ct_CC" = x; then
4105 CC=""
4106 else
4107 case $cross_compiling:$ac_tool_warned in
4108 yes:)
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111 ac_tool_warned=yes ;;
4112 esac
4113 CC=$ac_ct_CC
4114 fi
4115 fi
4116
4117 fi
4118 if test -z "$CC"; then
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}clang; ac_word=$2
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 printf %s "checking for $ac_word... " >&6; }
4124 if test ${ac_cv_prog_CC+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else $as_nop
4128 if test -n "$CC"; then
4129 ac_cv_prog_CC="$CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134 IFS=$as_save_IFS
4135 case $as_dir in #(((
4136 '') as_dir=./ ;;
4137 */) ;;
4138 *) as_dir=$as_dir/ ;;
4139 esac
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_CC="${ac_tool_prefix}clang"
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 CC=$ac_cv_prog_CC
4153 if test -n "$CC"; then
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155 printf "%s\n" "$CC" >&6; }
4156 else
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 printf "%s\n" "no" >&6; }
4159 fi
4160
4161
4162 fi
4163 if test -z "$ac_cv_prog_CC"; then
4164 ac_ct_CC=$CC
4165 # Extract the first word of "clang", so it can be a program name with args.
4166 set dummy clang; ac_word=$2
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 printf %s "checking for $ac_word... " >&6; }
4169 if test ${ac_cv_prog_ac_ct_CC+y}
4170 then :
4171 printf %s "(cached) " >&6
4172 else $as_nop
4173 if test -n "$ac_ct_CC"; then
4174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179 IFS=$as_save_IFS
4180 case $as_dir in #(((
4181 '') as_dir=./ ;;
4182 */) ;;
4183 *) as_dir=$as_dir/ ;;
4184 esac
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_CC="clang"
4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200 printf "%s\n" "$ac_ct_CC" >&6; }
4201 else
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf "%s\n" "no" >&6; }
4204 fi
4205
4206 if test "x$ac_ct_CC" = x; then
4207 CC=""
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213 ac_tool_warned=yes ;;
4214 esac
4215 CC=$ac_ct_CC
4216 fi
4217 else
4218 CC="$ac_cv_prog_CC"
4219 fi
4220
4221 fi
4222
4223
4224 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error $? "no acceptable C compiler found in \$PATH
4227 See \`config.log' for more details" "$LINENO" 5; }
4228
4229 # Provide some information about the compiler.
4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4231 set X $ac_compile
4232 ac_compiler=$2
4233 for ac_option in --version -v -V -qversion -version; do
4234 { { ac_try="$ac_compiler $ac_option >&5"
4235 case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 printf "%s\n" "$ac_try_echo"; } >&5
4241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4242 ac_status=$?
4243 if test -s conftest.err; then
4244 sed '10a\
4245 ... rest of stderr output deleted ...
4246 10q' conftest.err >conftest.er1
4247 cat conftest.er1 >&5
4248 fi
4249 rm -f conftest.er1 conftest.err
4250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251 test $ac_status = 0; }
4252 done
4253
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256
4257 int
4258 main (void)
4259 {
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 ac_clean_files_save=$ac_clean_files
4266 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4267 # Try to create an executable without -o first, disregard a.out.
4268 # It will help us diagnose broken compilers, and finding out an intuition
4269 # of exeext.
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4271 printf %s "checking whether the C compiler works... " >&6; }
4272 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4273
4274 # The possible output files:
4275 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4276
4277 ac_rmfiles=
4278 for ac_file in $ac_files
4279 do
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4283 esac
4284 done
4285 rm -f $ac_rmfiles
4286
4287 if { { ac_try="$ac_link_default"
4288 case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 printf "%s\n" "$ac_try_echo"; } >&5
4294 (eval "$ac_link_default") 2>&5
4295 ac_status=$?
4296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4298 then :
4299 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4300 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4301 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4302 # so that the user can short-circuit this test for compilers unknown to
4303 # Autoconf.
4304 for ac_file in $ac_files ''
4305 do
4306 test -f "$ac_file" || continue
4307 case $ac_file in
4308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4309 ;;
4310 [ab].out )
4311 # We found the default executable, but exeext='' is most
4312 # certainly right.
4313 break;;
4314 *.* )
4315 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4316 then :; else
4317 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4318 fi
4319 # We set ac_cv_exeext here because the later test for it is not
4320 # safe: cross compilers may not add the suffix if given an `-o'
4321 # argument, so we may need to know it at that point already.
4322 # Even if this section looks crufty: it has the advantage of
4323 # actually working.
4324 break;;
4325 * )
4326 break;;
4327 esac
4328 done
4329 test "$ac_cv_exeext" = no && ac_cv_exeext=
4330
4331 else $as_nop
4332 ac_file=''
4333 fi
4334 if test -z "$ac_file"
4335 then :
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 printf "%s\n" "no" >&6; }
4338 printf "%s\n" "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4342 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4343 as_fn_error 77 "C compiler cannot create executables
4344 See \`config.log' for more details" "$LINENO" 5; }
4345 else $as_nop
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347 printf "%s\n" "yes" >&6; }
4348 fi
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4350 printf %s "checking for C compiler default output file name... " >&6; }
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4352 printf "%s\n" "$ac_file" >&6; }
4353 ac_exeext=$ac_cv_exeext
4354
4355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4356 ac_clean_files=$ac_clean_files_save
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4358 printf %s "checking for suffix of executables... " >&6; }
4359 if { { ac_try="$ac_link"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 printf "%s\n" "$ac_try_echo"; } >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }
4370 then :
4371 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4372 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4373 # work properly (i.e., refer to `conftest.exe'), while it won't with
4374 # `rm'.
4375 for ac_file in conftest.exe conftest conftest.*; do
4376 test -f "$ac_file" || continue
4377 case $ac_file in
4378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4380 break;;
4381 * ) break;;
4382 esac
4383 done
4384 else $as_nop
4385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4388 See \`config.log' for more details" "$LINENO" 5; }
4389 fi
4390 rm -f conftest conftest$ac_cv_exeext
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4392 printf "%s\n" "$ac_cv_exeext" >&6; }
4393
4394 rm -f conftest.$ac_ext
4395 EXEEXT=$ac_cv_exeext
4396 ac_exeext=$EXEEXT
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <stdio.h>
4400 int
4401 main (void)
4402 {
4403 FILE *f = fopen ("conftest.out", "w");
4404 return ferror (f) || fclose (f) != 0;
4405
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 ac_clean_files="$ac_clean_files conftest.out"
4411 # Check that the compiler produces executables we can run. If not, either
4412 # the compiler is broken, or we cross compile.
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4414 printf %s "checking whether we are cross compiling... " >&6; }
4415 if test "$cross_compiling" != yes; then
4416 { { ac_try="$ac_link"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 printf "%s\n" "$ac_try_echo"; } >&5
4423 (eval "$ac_link") 2>&5
4424 ac_status=$?
4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4426 test $ac_status = 0; }
4427 if { ac_try='./conftest$ac_cv_exeext'
4428 { { case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 printf "%s\n" "$ac_try_echo"; } >&5
4434 (eval "$ac_try") 2>&5
4435 ac_status=$?
4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; }; then
4438 cross_compiling=no
4439 else
4440 if test "$cross_compiling" = maybe; then
4441 cross_compiling=yes
4442 else
4443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error 77 "cannot run C compiled programs.
4446 If you meant to cross compile, use \`--host'.
4447 See \`config.log' for more details" "$LINENO" 5; }
4448 fi
4449 fi
4450 fi
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4452 printf "%s\n" "$cross_compiling" >&6; }
4453
4454 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4455 ac_clean_files=$ac_clean_files_save
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4457 printf %s "checking for suffix of object files... " >&6; }
4458 if test ${ac_cv_objext+y}
4459 then :
4460 printf %s "(cached) " >&6
4461 else $as_nop
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464
4465 int
4466 main (void)
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.o conftest.obj
4474 if { { ac_try="$ac_compile"
4475 case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 printf "%s\n" "$ac_try_echo"; } >&5
4481 (eval "$ac_compile") 2>&5
4482 ac_status=$?
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; }
4485 then :
4486 for ac_file in conftest.o conftest.obj conftest.*; do
4487 test -f "$ac_file" || continue;
4488 case $ac_file in
4489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4491 break;;
4492 esac
4493 done
4494 else $as_nop
4495 printf "%s\n" "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4499 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4500 as_fn_error $? "cannot compute suffix of object files: cannot compile
4501 See \`config.log' for more details" "$LINENO" 5; }
4502 fi
4503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4504 fi
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4506 printf "%s\n" "$ac_cv_objext" >&6; }
4507 OBJEXT=$ac_cv_objext
4508 ac_objext=$OBJEXT
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4510 printf %s "checking whether the compiler supports GNU C... " >&6; }
4511 if test ${ac_cv_c_compiler_gnu+y}
4512 then :
4513 printf %s "(cached) " >&6
4514 else $as_nop
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517
4518 int
4519 main (void)
4520 {
4521 #ifndef __GNUC__
4522 choke me
4523 #endif
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"
4530 then :
4531 ac_compiler_gnu=yes
4532 else $as_nop
4533 ac_compiler_gnu=no
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4537
4538 fi
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4540 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542
4543 if test $ac_compiler_gnu = yes; then
4544 GCC=yes
4545 else
4546 GCC=
4547 fi
4548 ac_test_CFLAGS=${CFLAGS+y}
4549 ac_save_CFLAGS=$CFLAGS
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4551 printf %s "checking whether $CC accepts -g... " >&6; }
4552 if test ${ac_cv_prog_cc_g+y}
4553 then :
4554 printf %s "(cached) " >&6
4555 else $as_nop
4556 ac_save_c_werror_flag=$ac_c_werror_flag
4557 ac_c_werror_flag=yes
4558 ac_cv_prog_cc_g=no
4559 CFLAGS="-g"
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562
4563 int
4564 main (void)
4565 {
4566
4567 ;
4568 return 0;
4569 }
4570 _ACEOF
4571 if ac_fn_c_try_compile "$LINENO"
4572 then :
4573 ac_cv_prog_cc_g=yes
4574 else $as_nop
4575 CFLAGS=""
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4578
4579 int
4580 main (void)
4581 {
4582
4583 ;
4584 return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"
4588 then :
4589
4590 else $as_nop
4591 ac_c_werror_flag=$ac_save_c_werror_flag
4592 CFLAGS="-g"
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 int
4597 main (void)
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"
4605 then :
4606 ac_cv_prog_cc_g=yes
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4613 ac_c_werror_flag=$ac_save_c_werror_flag
4614 fi
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4616 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4617 if test $ac_test_CFLAGS; then
4618 CFLAGS=$ac_save_CFLAGS
4619 elif test $ac_cv_prog_cc_g = yes; then
4620 if test "$GCC" = yes; then
4621 CFLAGS="-g -O2"
4622 else
4623 CFLAGS="-g"
4624 fi
4625 else
4626 if test "$GCC" = yes; then
4627 CFLAGS="-O2"
4628 else
4629 CFLAGS=
4630 fi
4631 fi
4632 ac_prog_cc_stdc=no
4633 if test x$ac_prog_cc_stdc = xno
4634 then :
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4636 printf %s "checking for $CC option to enable C11 features... " >&6; }
4637 if test ${ac_cv_prog_cc_c11+y}
4638 then :
4639 printf %s "(cached) " >&6
4640 else $as_nop
4641 ac_cv_prog_cc_c11=no
4642 ac_save_CC=$CC
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 $ac_c_conftest_c11_program
4646 _ACEOF
4647 for ac_arg in '' -std=gnu11
4648 do
4649 CC="$ac_save_CC $ac_arg"
4650 if ac_fn_c_try_compile "$LINENO"
4651 then :
4652 ac_cv_prog_cc_c11=$ac_arg
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.beam
4655 test "x$ac_cv_prog_cc_c11" != "xno" && break
4656 done
4657 rm -f conftest.$ac_ext
4658 CC=$ac_save_CC
4659 fi
4660
4661 if test "x$ac_cv_prog_cc_c11" = xno
4662 then :
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4664 printf "%s\n" "unsupported" >&6; }
4665 else $as_nop
4666 if test "x$ac_cv_prog_cc_c11" = x
4667 then :
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4669 printf "%s\n" "none needed" >&6; }
4670 else $as_nop
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4672 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4673 CC="$CC $ac_cv_prog_cc_c11"
4674 fi
4675 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4676 ac_prog_cc_stdc=c11
4677 fi
4678 fi
4679 if test x$ac_prog_cc_stdc = xno
4680 then :
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4682 printf %s "checking for $CC option to enable C99 features... " >&6; }
4683 if test ${ac_cv_prog_cc_c99+y}
4684 then :
4685 printf %s "(cached) " >&6
4686 else $as_nop
4687 ac_cv_prog_cc_c99=no
4688 ac_save_CC=$CC
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 $ac_c_conftest_c99_program
4692 _ACEOF
4693 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4694 do
4695 CC="$ac_save_CC $ac_arg"
4696 if ac_fn_c_try_compile "$LINENO"
4697 then :
4698 ac_cv_prog_cc_c99=$ac_arg
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.beam
4701 test "x$ac_cv_prog_cc_c99" != "xno" && break
4702 done
4703 rm -f conftest.$ac_ext
4704 CC=$ac_save_CC
4705 fi
4706
4707 if test "x$ac_cv_prog_cc_c99" = xno
4708 then :
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4710 printf "%s\n" "unsupported" >&6; }
4711 else $as_nop
4712 if test "x$ac_cv_prog_cc_c99" = x
4713 then :
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4715 printf "%s\n" "none needed" >&6; }
4716 else $as_nop
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4718 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4719 CC="$CC $ac_cv_prog_cc_c99"
4720 fi
4721 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4722 ac_prog_cc_stdc=c99
4723 fi
4724 fi
4725 if test x$ac_prog_cc_stdc = xno
4726 then :
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4728 printf %s "checking for $CC option to enable C89 features... " >&6; }
4729 if test ${ac_cv_prog_cc_c89+y}
4730 then :
4731 printf %s "(cached) " >&6
4732 else $as_nop
4733 ac_cv_prog_cc_c89=no
4734 ac_save_CC=$CC
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 $ac_c_conftest_c89_program
4738 _ACEOF
4739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4740 do
4741 CC="$ac_save_CC $ac_arg"
4742 if ac_fn_c_try_compile "$LINENO"
4743 then :
4744 ac_cv_prog_cc_c89=$ac_arg
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.beam
4747 test "x$ac_cv_prog_cc_c89" != "xno" && break
4748 done
4749 rm -f conftest.$ac_ext
4750 CC=$ac_save_CC
4751 fi
4752
4753 if test "x$ac_cv_prog_cc_c89" = xno
4754 then :
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4756 printf "%s\n" "unsupported" >&6; }
4757 else $as_nop
4758 if test "x$ac_cv_prog_cc_c89" = x
4759 then :
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4761 printf "%s\n" "none needed" >&6; }
4762 else $as_nop
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4764 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4765 CC="$CC $ac_cv_prog_cc_c89"
4766 fi
4767 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4768 ac_prog_cc_stdc=c89
4769 fi
4770 fi
4771
4772 ac_ext=c
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777 # sets variable CC
4778 # checks that CC by default accepts C99 code, if not,
4779 # tries adding -std=gnu-99, if this has no effect, throws an error.
4780
4781
4782
4783
4784
4785
4786 ac_ext=cpp
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791 if test -z "$CXX"; then
4792 if test -n "$CCC"; then
4793 CXX=$CCC
4794 else
4795 if test -n "$ac_tool_prefix"; then
4796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4797 do
4798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 printf %s "checking for $ac_word... " >&6; }
4802 if test ${ac_cv_prog_CXX+y}
4803 then :
4804 printf %s "(cached) " >&6
4805 else $as_nop
4806 if test -n "$CXX"; then
4807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812 IFS=$as_save_IFS
4813 case $as_dir in #(((
4814 '') as_dir=./ ;;
4815 */) ;;
4816 *) as_dir=$as_dir/ ;;
4817 esac
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 CXX=$ac_cv_prog_CXX
4831 if test -n "$CXX"; then
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833 printf "%s\n" "$CXX" >&6; }
4834 else
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 printf "%s\n" "no" >&6; }
4837 fi
4838
4839
4840 test -n "$CXX" && break
4841 done
4842 fi
4843 if test -z "$CXX"; then
4844 ac_ct_CXX=$CXX
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4846 do
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 printf %s "checking for $ac_word... " >&6; }
4851 if test ${ac_cv_prog_ac_ct_CXX+y}
4852 then :
4853 printf %s "(cached) " >&6
4854 else $as_nop
4855 if test -n "$ac_ct_CXX"; then
4856 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 case $as_dir in #(((
4863 '') as_dir=./ ;;
4864 */) ;;
4865 *) as_dir=$as_dir/ ;;
4866 esac
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_ac_ct_CXX="$ac_prog"
4870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880 if test -n "$ac_ct_CXX"; then
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882 printf "%s\n" "$ac_ct_CXX" >&6; }
4883 else
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 printf "%s\n" "no" >&6; }
4886 fi
4887
4888
4889 test -n "$ac_ct_CXX" && break
4890 done
4891
4892 if test "x$ac_ct_CXX" = x; then
4893 CXX="g++"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 CXX=$ac_ct_CXX
4902 fi
4903 fi
4904
4905 fi
4906 fi
4907 # Provide some information about the compiler.
4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4909 set X $ac_compile
4910 ac_compiler=$2
4911 for ac_option in --version -v -V -qversion; do
4912 { { ac_try="$ac_compiler $ac_option >&5"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918 printf "%s\n" "$ac_try_echo"; } >&5
4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4920 ac_status=$?
4921 if test -s conftest.err; then
4922 sed '10a\
4923 ... rest of stderr output deleted ...
4924 10q' conftest.err >conftest.er1
4925 cat conftest.er1 >&5
4926 fi
4927 rm -f conftest.er1 conftest.err
4928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929 test $ac_status = 0; }
4930 done
4931
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4933 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4934 if test ${ac_cv_cxx_compiler_gnu+y}
4935 then :
4936 printf %s "(cached) " >&6
4937 else $as_nop
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940
4941 int
4942 main (void)
4943 {
4944 #ifndef __GNUC__
4945 choke me
4946 #endif
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_cxx_try_compile "$LINENO"
4953 then :
4954 ac_compiler_gnu=yes
4955 else $as_nop
4956 ac_compiler_gnu=no
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4960
4961 fi
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4963 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965
4966 if test $ac_compiler_gnu = yes; then
4967 GXX=yes
4968 else
4969 GXX=
4970 fi
4971 ac_test_CXXFLAGS=${CXXFLAGS+y}
4972 ac_save_CXXFLAGS=$CXXFLAGS
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974 printf %s "checking whether $CXX accepts -g... " >&6; }
4975 if test ${ac_cv_prog_cxx_g+y}
4976 then :
4977 printf %s "(cached) " >&6
4978 else $as_nop
4979 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4980 ac_cxx_werror_flag=yes
4981 ac_cv_prog_cxx_g=no
4982 CXXFLAGS="-g"
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985
4986 int
4987 main (void)
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_cxx_try_compile "$LINENO"
4995 then :
4996 ac_cv_prog_cxx_g=yes
4997 else $as_nop
4998 CXXFLAGS=""
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001
5002 int
5003 main (void)
5004 {
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_cxx_try_compile "$LINENO"
5011 then :
5012
5013 else $as_nop
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015 CXXFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 int
5020 main (void)
5021 {
5022
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_cxx_try_compile "$LINENO"
5028 then :
5029 ac_cv_prog_cxx_g=yes
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5037 fi
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5039 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5040 if test $ac_test_CXXFLAGS; then
5041 CXXFLAGS=$ac_save_CXXFLAGS
5042 elif test $ac_cv_prog_cxx_g = yes; then
5043 if test "$GXX" = yes; then
5044 CXXFLAGS="-g -O2"
5045 else
5046 CXXFLAGS="-g"
5047 fi
5048 else
5049 if test "$GXX" = yes; then
5050 CXXFLAGS="-O2"
5051 else
5052 CXXFLAGS=
5053 fi
5054 fi
5055 ac_prog_cxx_stdcxx=no
5056 if test x$ac_prog_cxx_stdcxx = xno
5057 then :
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5059 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5060 if test ${ac_cv_prog_cxx_cxx11+y}
5061 then :
5062 printf %s "(cached) " >&6
5063 else $as_nop
5064 ac_cv_prog_cxx_cxx11=no
5065 ac_save_CXX=$CXX
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 $ac_cxx_conftest_cxx11_program
5069 _ACEOF
5070 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5071 do
5072 CXX="$ac_save_CXX $ac_arg"
5073 if ac_fn_cxx_try_compile "$LINENO"
5074 then :
5075 ac_cv_prog_cxx_cxx11=$ac_arg
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.beam
5078 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5079 done
5080 rm -f conftest.$ac_ext
5081 CXX=$ac_save_CXX
5082 fi
5083
5084 if test "x$ac_cv_prog_cxx_cxx11" = xno
5085 then :
5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087 printf "%s\n" "unsupported" >&6; }
5088 else $as_nop
5089 if test "x$ac_cv_prog_cxx_cxx11" = x
5090 then :
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5092 printf "%s\n" "none needed" >&6; }
5093 else $as_nop
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5095 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5096 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5097 fi
5098 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5099 ac_prog_cxx_stdcxx=cxx11
5100 fi
5101 fi
5102 if test x$ac_prog_cxx_stdcxx = xno
5103 then :
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5105 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5106 if test ${ac_cv_prog_cxx_cxx98+y}
5107 then :
5108 printf %s "(cached) " >&6
5109 else $as_nop
5110 ac_cv_prog_cxx_cxx98=no
5111 ac_save_CXX=$CXX
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 $ac_cxx_conftest_cxx98_program
5115 _ACEOF
5116 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5117 do
5118 CXX="$ac_save_CXX $ac_arg"
5119 if ac_fn_cxx_try_compile "$LINENO"
5120 then :
5121 ac_cv_prog_cxx_cxx98=$ac_arg
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.beam
5124 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5125 done
5126 rm -f conftest.$ac_ext
5127 CXX=$ac_save_CXX
5128 fi
5129
5130 if test "x$ac_cv_prog_cxx_cxx98" = xno
5131 then :
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5133 printf "%s\n" "unsupported" >&6; }
5134 else $as_nop
5135 if test "x$ac_cv_prog_cxx_cxx98" = x
5136 then :
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5138 printf "%s\n" "none needed" >&6; }
5139 else $as_nop
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5141 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5142 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5143 fi
5144 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5145 ac_prog_cxx_stdcxx=cxx98
5146 fi
5147 fi
5148
5149 ac_ext=c
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154 # sets variable CXX
5155 ac_ext=c
5156 ac_cpp='$CPP $CPPFLAGS'
5157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5161 printf %s "checking how to run the C preprocessor... " >&6; }
5162 # On Suns, sometimes $CPP names a directory.
5163 if test -n "$CPP" && test -d "$CPP"; then
5164 CPP=
5165 fi
5166 if test -z "$CPP"; then
5167 if test ${ac_cv_prog_CPP+y}
5168 then :
5169 printf %s "(cached) " >&6
5170 else $as_nop
5171 # Double quotes because $CC needs to be expanded
5172 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5173 do
5174 ac_preproc_ok=false
5175 for ac_c_preproc_warn_flag in '' yes
5176 do
5177 # Use a header file that comes with gcc, so configuring glibc
5178 # with a fresh cross-compiler works.
5179 # On the NeXT, cc -E runs the code through the compiler's parser,
5180 # not just through cpp. "Syntax error" is here to catch this case.
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <limits.h>
5184 Syntax error
5185 _ACEOF
5186 if ac_fn_c_try_cpp "$LINENO"
5187 then :
5188
5189 else $as_nop
5190 # Broken: fails on valid input.
5191 continue
5192 fi
5193 rm -f conftest.err conftest.i conftest.$ac_ext
5194
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if ac_fn_c_try_cpp "$LINENO"
5202 then :
5203 # Broken: success on invalid input.
5204 continue
5205 else $as_nop
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5209 fi
5210 rm -f conftest.err conftest.i conftest.$ac_ext
5211
5212 done
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.i conftest.err conftest.$ac_ext
5215 if $ac_preproc_ok
5216 then :
5217 break
5218 fi
5219
5220 done
5221 ac_cv_prog_CPP=$CPP
5222
5223 fi
5224 CPP=$ac_cv_prog_CPP
5225 else
5226 ac_cv_prog_CPP=$CPP
5227 fi
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5229 printf "%s\n" "$CPP" >&6; }
5230 ac_preproc_ok=false
5231 for ac_c_preproc_warn_flag in '' yes
5232 do
5233 # Use a header file that comes with gcc, so configuring glibc
5234 # with a fresh cross-compiler works.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <limits.h>
5240 Syntax error
5241 _ACEOF
5242 if ac_fn_c_try_cpp "$LINENO"
5243 then :
5244
5245 else $as_nop
5246 # Broken: fails on valid input.
5247 continue
5248 fi
5249 rm -f conftest.err conftest.i conftest.$ac_ext
5250
5251 # OK, works on sane cases. Now check whether nonexistent headers
5252 # can be detected and how.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <ac_nonexistent.h>
5256 _ACEOF
5257 if ac_fn_c_try_cpp "$LINENO"
5258 then :
5259 # Broken: success on invalid input.
5260 continue
5261 else $as_nop
5262 # Passes both tests.
5263 ac_preproc_ok=:
5264 break
5265 fi
5266 rm -f conftest.err conftest.i conftest.$ac_ext
5267
5268 done
5269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5270 rm -f conftest.i conftest.err conftest.$ac_ext
5271 if $ac_preproc_ok
5272 then :
5273
5274 else $as_nop
5275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5276 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5277 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5278 See \`config.log' for more details" "$LINENO" 5; }
5279 fi
5280
5281 ac_ext=c
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286 # sets variable CPP
5287 if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 printf %s "checking for $ac_word... " >&6; }
5292 if test ${ac_cv_prog_RANLIB+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else $as_nop
5296 if test -n "$RANLIB"; then
5297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 case $as_dir in #(((
5304 '') as_dir=./ ;;
5305 */) ;;
5306 *) as_dir=$as_dir/ ;;
5307 esac
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 RANLIB=$ac_cv_prog_RANLIB
5321 if test -n "$RANLIB"; then
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5323 printf "%s\n" "$RANLIB" >&6; }
5324 else
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 printf "%s\n" "no" >&6; }
5327 fi
5328
5329
5330 fi
5331 if test -z "$ac_cv_prog_RANLIB"; then
5332 ac_ct_RANLIB=$RANLIB
5333 # Extract the first word of "ranlib", so it can be a program name with args.
5334 set dummy ranlib; ac_word=$2
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 printf %s "checking for $ac_word... " >&6; }
5337 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5338 then :
5339 printf %s "(cached) " >&6
5340 else $as_nop
5341 if test -n "$ac_ct_RANLIB"; then
5342 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 case $as_dir in #(((
5349 '') as_dir=./ ;;
5350 */) ;;
5351 *) as_dir=$as_dir/ ;;
5352 esac
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_RANLIB="ranlib"
5356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5366 if test -n "$ac_ct_RANLIB"; then
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5368 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5369 else
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 printf "%s\n" "no" >&6; }
5372 fi
5373
5374 if test "x$ac_ct_RANLIB" = x; then
5375 RANLIB=":"
5376 else
5377 case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383 RANLIB=$ac_ct_RANLIB
5384 fi
5385 else
5386 RANLIB="$ac_cv_prog_RANLIB"
5387 fi
5388 # sets variable RANLIB
5389
5390 # Find a good install program. We prefer a C program (faster),
5391 # so one script is as good as another. But avoid the broken or
5392 # incompatible versions:
5393 # SysV /etc/install, /usr/sbin/install
5394 # SunOS /usr/etc/install
5395 # IRIX /sbin/install
5396 # AIX /bin/install
5397 # AmigaOS /C/install, which installs bootblocks on floppy discs
5398 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5399 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5400 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5401 # OS/2's system install, which has a completely different semantic
5402 # ./install, which can be erroneously created by make from ./install.sh.
5403 # Reject install programs that cannot install multiple files.
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5405 printf %s "checking for a BSD-compatible install... " >&6; }
5406 if test -z "$INSTALL"; then
5407 if test ${ac_cv_path_install+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else $as_nop
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414 IFS=$as_save_IFS
5415 case $as_dir in #(((
5416 '') as_dir=./ ;;
5417 */) ;;
5418 *) as_dir=$as_dir/ ;;
5419 esac
5420 # Account for fact that we put trailing slashes in our PATH walk.
5421 case $as_dir in #((
5422 ./ | /[cC]/* | \
5423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5424 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5425 /usr/ucb/* ) ;;
5426 *)
5427 # OSF1 and SCO ODT 3.0 have their own names for install.
5428 # Don't use installbsd from OSF since it installs stuff as root
5429 # by default.
5430 for ac_prog in ginstall scoinst install; do
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5433 if test $ac_prog = install &&
5434 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5435 # AIX install. It has an incompatible calling convention.
5436 :
5437 elif test $ac_prog = install &&
5438 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5439 # program-specific install script used by HP pwplus--don't use.
5440 :
5441 else
5442 rm -rf conftest.one conftest.two conftest.dir
5443 echo one > conftest.one
5444 echo two > conftest.two
5445 mkdir conftest.dir
5446 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5447 test -s conftest.one && test -s conftest.two &&
5448 test -s conftest.dir/conftest.one &&
5449 test -s conftest.dir/conftest.two
5450 then
5451 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5452 break 3
5453 fi
5454 fi
5455 fi
5456 done
5457 done
5458 ;;
5459 esac
5460
5461 done
5462 IFS=$as_save_IFS
5463
5464 rm -rf conftest.one conftest.two conftest.dir
5465
5466 fi
5467 if test ${ac_cv_path_install+y}; then
5468 INSTALL=$ac_cv_path_install
5469 else
5470 # As a last resort, use the slow shell script. Don't cache a
5471 # value for INSTALL within a source directory, because that will
5472 # break other packages using the cache if that directory is
5473 # removed, or if the value is a relative name.
5474 INSTALL=$ac_install_sh
5475 fi
5476 fi
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5478 printf "%s\n" "$INSTALL" >&6; }
5479
5480 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5481 # It thinks the first close brace ends the variable substitution.
5482 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5483
5484 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5485
5486 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5487 # sets variables INSTALL, INSTALL_DATA, INSTALL_PROGRAM
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5489 printf %s "checking whether ln -s works... " >&6; }
5490 LN_S=$as_ln_s
5491 if test "$LN_S" = "ln -s"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 printf "%s\n" "yes" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5496 printf "%s\n" "no, using $LN_S" >&6; }
5497 fi
5498 # sets variable LN_S
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5500 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5501 set x ${MAKE-make}
5502 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5503 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5504 then :
5505 printf %s "(cached) " >&6
5506 else $as_nop
5507 cat >conftest.make <<\_ACEOF
5508 SHELL = /bin/sh
5509 all:
5510 @echo '@@@%%%=$(MAKE)=@@@%%%'
5511 _ACEOF
5512 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5514 *@@@%%%=?*=@@@%%%*)
5515 eval ac_cv_prog_make_${ac_make}_set=yes;;
5516 *)
5517 eval ac_cv_prog_make_${ac_make}_set=no;;
5518 esac
5519 rm -f conftest.make
5520 fi
5521 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523 printf "%s\n" "yes" >&6; }
5524 SET_MAKE=
5525 else
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 printf "%s\n" "no" >&6; }
5528 SET_MAKE="MAKE=${MAKE-make}"
5529 fi
5530 # set $(MAKE) if needed
5531 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 printf %s "checking for $ac_word... " >&6; }
5536 if test ${ac_cv_prog_RANLIB+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else $as_nop
5540 if test -n "$RANLIB"; then
5541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 case $as_dir in #(((
5548 '') as_dir=./ ;;
5549 */) ;;
5550 *) as_dir=$as_dir/ ;;
5551 esac
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 RANLIB=$ac_cv_prog_RANLIB
5565 if test -n "$RANLIB"; then
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5567 printf "%s\n" "$RANLIB" >&6; }
5568 else
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 printf "%s\n" "no" >&6; }
5571 fi
5572
5573
5574 fi
5575 if test -z "$ac_cv_prog_RANLIB"; then
5576 ac_ct_RANLIB=$RANLIB
5577 # Extract the first word of "ranlib", so it can be a program name with args.
5578 set dummy ranlib; ac_word=$2
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 printf %s "checking for $ac_word... " >&6; }
5581 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else $as_nop
5585 if test -n "$ac_ct_RANLIB"; then
5586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 case $as_dir in #(((
5593 '') as_dir=./ ;;
5594 */) ;;
5595 *) as_dir=$as_dir/ ;;
5596 esac
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_RANLIB="ranlib"
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5610 if test -n "$ac_ct_RANLIB"; then
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5612 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5613 else
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 printf "%s\n" "no" >&6; }
5616 fi
5617
5618 if test "x$ac_ct_RANLIB" = x; then
5619 RANLIB=":"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627 RANLIB=$ac_ct_RANLIB
5628 fi
5629 else
5630 RANLIB="$ac_cv_prog_RANLIB"
5631 fi
5632 # set variable RANLIB
5633 if test -n "$ac_tool_prefix"; then
5634 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5635 set dummy ${ac_tool_prefix}ar; ac_word=$2
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 printf %s "checking for $ac_word... " >&6; }
5638 if test ${ac_cv_prog_AR+y}
5639 then :
5640 printf %s "(cached) " >&6
5641 else $as_nop
5642 if test -n "$AR"; then
5643 ac_cv_prog_AR="$AR" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 case $as_dir in #(((
5650 '') as_dir=./ ;;
5651 */) ;;
5652 *) as_dir=$as_dir/ ;;
5653 esac
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_AR="${ac_tool_prefix}ar"
5657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 AR=$ac_cv_prog_AR
5667 if test -n "$AR"; then
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5669 printf "%s\n" "$AR" >&6; }
5670 else
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 printf "%s\n" "no" >&6; }
5673 fi
5674
5675
5676 fi
5677 if test -z "$ac_cv_prog_AR"; then
5678 ac_ct_AR=$AR
5679 # Extract the first word of "ar", so it can be a program name with args.
5680 set dummy ar; ac_word=$2
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 printf %s "checking for $ac_word... " >&6; }
5683 if test ${ac_cv_prog_ac_ct_AR+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else $as_nop
5687 if test -n "$ac_ct_AR"; then
5688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693 IFS=$as_save_IFS
5694 case $as_dir in #(((
5695 '') as_dir=./ ;;
5696 */) ;;
5697 *) as_dir=$as_dir/ ;;
5698 esac
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_AR="ar"
5702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5712 if test -n "$ac_ct_AR"; then
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5714 printf "%s\n" "$ac_ct_AR" >&6; }
5715 else
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 printf "%s\n" "no" >&6; }
5718 fi
5719
5720 if test "x$ac_ct_AR" = x; then
5721 AR=""
5722 else
5723 case $cross_compiling:$ac_tool_warned in
5724 yes:)
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5728 esac
5729 AR=$ac_ct_AR
5730 fi
5731 else
5732 AR="$ac_cv_prog_AR"
5733 fi
5734 # set variable AR to appropriate `ar' program
5735 for ac_prog in exctags ectags ctags
5736 do
5737 # Extract the first word of "$ac_prog", so it can be a program name with args.
5738 set dummy $ac_prog; ac_word=$2
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 printf %s "checking for $ac_word... " >&6; }
5741 if test ${ac_cv_prog_CTAGS+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else $as_nop
5745 if test -n "$CTAGS"; then
5746 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751 IFS=$as_save_IFS
5752 case $as_dir in #(((
5753 '') as_dir=./ ;;
5754 */) ;;
5755 *) as_dir=$as_dir/ ;;
5756 esac
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_CTAGS="$ac_prog"
5760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 CTAGS=$ac_cv_prog_CTAGS
5770 if test -n "$CTAGS"; then
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CTAGS" >&5
5772 printf "%s\n" "$CTAGS" >&6; }
5773 else
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 printf "%s\n" "no" >&6; }
5776 fi
5777
5778
5779 test -n "$CTAGS" && break
5780 done
5781 # set variable CTAGS to ctags program if found
5782 for ac_prog in etags emacs-etags
5783 do
5784 # Extract the first word of "$ac_prog", so it can be a program name with args.
5785 set dummy $ac_prog; ac_word=$2
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 printf %s "checking for $ac_word... " >&6; }
5788 if test ${ac_cv_prog_ETAGS+y}
5789 then :
5790 printf %s "(cached) " >&6
5791 else $as_nop
5792 if test -n "$ETAGS"; then
5793 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 case $as_dir in #(((
5800 '') as_dir=./ ;;
5801 */) ;;
5802 *) as_dir=$as_dir/ ;;
5803 esac
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_ETAGS="$ac_prog"
5807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 ETAGS=$ac_cv_prog_ETAGS
5817 if test -n "$ETAGS"; then
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
5819 printf "%s\n" "$ETAGS" >&6; }
5820 else
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 printf "%s\n" "no" >&6; }
5823 fi
5824
5825
5826 test -n "$ETAGS" && break
5827 done
5828 # set variable ETAGS to etags program if found
5829
5830
5831
5832
5833 PWDCMD="pwd";
5834 case "${srcdir}" in
5835 /* | ?:/* ) ;;
5836 * ) srcdir="`(cd ${srcdir}; ${PWDCMD})`";
5837 esac
5838 if uname -a | grep -i 'mingw' > /dev/null; then
5839 true_srcdir=`(cd ${srcdir}; pwd -W)`
5840 true_builddir=`pwd -W`
5841 else
5842 true_srcdir=`(cd ${srcdir}; pwd)`
5843 true_builddir=`pwd`
5844 fi
5845
5846
5847 if test "x${cross_compiling}" = "xyes"; then
5848 if test -n "${with_cross_config}" -a -f "${with_cross_config}"; then
5849 . ${with_cross_config}
5850 elif test -f ./cross_config; then
5851 . ./cross_config
5852 elif test -n "${srcdir}" -a -f ${srcdir}/cross_config; then
5853 . ${srcdir}/cross_config
5854 else
5855 test -z ${with_cross_config} && cross_config=`pwd`/cross_config
5856 cat > ${with_cross_config} <<EOF
5857 ###
5858 ### YOU ARE TRYING TO CROSS COMPILE ECL.
5859 ### PLEASE FOLLOW THESE INSTRUCTIONS:
5860 ###
5861 ### 1) Vital information cannot be determined at configuration time
5862 ### because we are not able to run test programs. A file called
5863 ### ${cross_config}
5864 ### has been created, that you will have to fill out. Please do
5865 ### it before invoking "configure" again.
5866
5867 ### 1.1) Direction of growth of the stack
5868 ECL_STACK_DIR=down
5869
5870 ### 1.2) Choose an integer datatype which is large enough to host a pointer
5871 CL_FIXNUM_TYPE=int
5872 CL_FIXNUM_BITS=32
5873 CL_FIXNUM_MAX=536870911L
5874 CL_FIXNUM_MIN=-536870912L
5875 CL_SHORT_BITS=32
5876 CL_INT_BITS=32
5877 CL_LONG_BITS=32
5878
5879 ### 1.3) Order of bytes within a word
5880 ECL_BIGENDIAN=no
5881
5882 ### 1.4) What characters signal an end of line. May be LF (Linefeed or \\n)
5883 ### CR (Carriage return or \\r), and CRLF (CR followed by LF).
5884 ECL_NEWLINE=LF
5885
5886 ### 1.5) Can we guess how many characters are available for reading from
5887 ### the FILE structure?
5888 ### 0 = no
5889 ### 1 = __freadahead((f))
5890 ### 2 = (f)->_IO_read_end - (f)->_IO_read_ptr
5891 ### 3 = (f)->_r
5892 ### 4 = (f)->_cnt
5893 ECL_FILE_CNT=0
5894
5895 ###
5896 ### 1.6) Other integer types (set to 'no' to disable)
5897 ###
5898 ECL_STDINT_HEADER="#include <stdint.h>"
5899 ECL_UINT8_T=uint8_t
5900 ECL_UINT16_T=uint16_t
5901 ECL_UINT32_T=uint32_t
5902 ECL_UINT64_T=no
5903 ECL_INT8_T=int8_t
5904 ECL_INT16_T=int16_t
5905 ECL_INT32_T=int32_t
5906 ECL_INT64_T=no
5907 ECL_LONG_LONG_BITS=no
5908
5909 ###
5910 ### 1.7) Other features (set to 'no' to disable)
5911 ###
5912 ECL_WORKING_ENVIRON=yes
5913
5914 ### 2) To cross-compile ECL so that it runs on the system
5915 ### ${host}
5916 ### you need to first compile ECL on the system in which you are building
5917 ### the cross-compiled files, that is
5918 ### ${build}
5919 ### By default we assume that ECL can be accessed from some directory in
5920 ### the path.
5921 ECL_TO_RUN=`which ecl`
5922 EOF
5923 cat ${with_cross_config}
5924 as_fn_error $? "Configuration aborted" "$LINENO" 5
5925 fi
5926 if test "${ECL_TO_RUN}" = "failed"; then
5927 as_fn_error $? "The program ECL is not installed in your system" "$LINENO" 5
5928 fi
5929 ECL_MIN_TO_RUN=`${ECL_TO_RUN} -norc -eval '(progn (print (truename "sys:ecl_min")) (si:quit))' \
5930 | grep '\#\P' | sed 's,#P"\(.*\)",\1,'`
5931 if test -z "${ECL_MIN_TO_RUN}" -o "${ECL_MIN_TO_RUN}" = "failed" ; then
5932 as_fn_error $? "The program ECL-MIN is not installed in your system" "$LINENO" 5
5933 fi
5934 DPP_TO_RUN=`${ECL_TO_RUN} -norc -eval '(progn (print (truename "sys:dpp")) (si:quit))' \
5935 | grep '\#\P' | sed 's,#P"\(.*\)",\1,'`
5936 if test -z "${DPP_TO_RUN}" -o "${DPP_TO_RUN}" = "failed" ; then
5937 as_fn_error $? "The program DPP is not installed in your system" "$LINENO" 5
5938 fi
5939 (echo '#!/bin/sh'; echo exec ${ECL_MIN_TO_RUN} '$''*') > CROSS-COMPILER
5940 (echo '#!/bin/sh'; echo exec ${DPP_TO_RUN} '$''*') > CROSS-DPP
5941 chmod +x CROSS-COMPILER CROSS-DPP
5942
5943 COMPILATION_FEATURES=":cross ${COMPILATION_FEATURES}"
5944
5945 fi
5946
5947
5948 #### Some command variations:
5949
5950
5951
5952
5953 RM="rm -f"
5954 CP="cp"
5955 MV="mv"
5956
5957 ### Guess the operating system
5958
5959
5960
5961
5962
5963 ECL_MIN=ecl_min
5964
5965 ECL_DEFAULT_C_STACK_SIZE=1048576 ECL_GC_DIR=bdwgc
5966 ECL_LDRPATH=''
5967 SHAREDEXT='so'
5968 SHAREDPREFIX='lib'
5969 LIBPREFIX='lib'
5970 LIBEXT='a'
5971 PICFLAG='-fPIC'
5972 THREAD_CFLAGS=''
5973 THREAD_LIBS=''
5974 THREAD_GC_FLAGS='--enable-threads=posix'
5975 INSTALL_TARGET='install'
5976 THREAD_OBJ="$THREAD_OBJ threads/thread threads/mutex threads/condition_variable threads/semaphore threads/barrier threads/mailbox threads/rwlock"
5977 clibs='-lm'
5978 SONAME=''
5979 SONAME_LDFLAGS=''
5980 case "${host_os}" in
5981 linux-android*)
5982 thehost='ANDROID'
5983 THREAD_CFLAGS='-D_THREAD_SAFE'
5984 SHARED_LDFLAGS="-shared ${LDFLAGS}"
5985 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
5986 ECL_LDRPATH='-Wl,--rpath,~A'
5987 clibs="-ldl ${clibs}"
5988 CFLAGS="-D_GNU_SOURCE -DPLATFORM_ANDROID -DUSE_GET_STACKBASE_FOR_MAIN -DIGNORE_DYNAMIC_LOADING ${CFLAGS}"
5989 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}"
5990 SONAME_LDFLAGS="-Wl,-soname,SONAME"
5991
5992 LSP_FEATURES="${LSP_FEATURES} :android"
5993
5994
5995 LSP_FEATURES="${LSP_FEATURES} :unix"
5996
5997 ;;
5998
5999 # libdir may have a dollar expression inside
6000 linux*)
6001 thehost='linux'
6002 THREAD_CFLAGS='-D_THREAD_SAFE'
6003 THREAD_LIBS='-lpthread'
6004 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6005 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6006 ECL_LDRPATH='-Wl,--rpath,~A'
6007 clibs="-ldl ${clibs}"
6008 # Maybe CFLAGS="-D_ISOC99_SOURCE ${CFLAGS}" ???
6009 CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ${CFLAGS}"
6010 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6011 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6012
6013 LSP_FEATURES="${LSP_FEATURES} :unix"
6014
6015 ;;
6016 gnu*)
6017 thehost='gnu'
6018 THREAD_CFLAGS='-D_THREAD_SAFE'
6019 THREAD_LIBS='-lpthread'
6020 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6021 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6022 ECL_LDRPATH='-Wl,--rpath,~A'
6023 clibs="-ldl ${clibs}"
6024 CFLAGS="-D_GNU_SOURCE ${CFLAGS}"
6025 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6026 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6027
6028 LSP_FEATURES="${LSP_FEATURES} :unix"
6029
6030 ;;
6031 kfreebsd*-gnu)
6032 thehost='kfreebsd'
6033 THREAD_CFLAGS='-D_THREAD_SAFE'
6034 THREAD_LIBS='-lpthread'
6035 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6036 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6037 ECL_LDRPATH='-Wl,--rpath,~A'
6038 clibs="-ldl ${clibs}"
6039 CFLAGS="-D_GNU_SOURCE ${CFLAGS}"
6040 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6041 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6042
6043 LSP_FEATURES="${LSP_FEATURES} :unix"
6044
6045
6046 LSP_FEATURES="${LSP_FEATURES} :bsd"
6047
6048 ;;
6049 dragonfly*)
6050 thehost='dragonfly'
6051 THREAD_LIBS='-lpthread'
6052 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6053 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6054 ECL_LDRPATH="-Wl,--rpath,~A"
6055 clibs="${clibs}"
6056 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6057 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6058
6059 LSP_FEATURES="${LSP_FEATURES} :unix"
6060
6061
6062 LSP_FEATURES="${LSP_FEATURES} :bsd"
6063
6064 ;;
6065 freebsd*)
6066 thehost='freebsd'
6067 THREAD_LIBS='-lpthread'
6068 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6069 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6070 ECL_LDRPATH="-Wl,--rpath,~A"
6071 clibs="${clibs}"
6072 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6073 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6074
6075 LSP_FEATURES="${LSP_FEATURES} :unix"
6076
6077
6078 LSP_FEATURES="${LSP_FEATURES} :bsd"
6079
6080 ;;
6081 netbsd*)
6082 thehost='netbsd'
6083 THREAD_LIBS='-lpthread'
6084 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6085 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6086 ECL_LDRPATH="-Wl,--rpath,~A"
6087 clibs="${clibs}"
6088 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6089 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6090
6091 LSP_FEATURES="${LSP_FEATURES} :unix"
6092
6093
6094 LSP_FEATURES="${LSP_FEATURES} :bsd"
6095
6096 ;;
6097 openbsd*)
6098 thehost='openbsd'
6099 THREAD_CFLAGS=''
6100 THREAD_LIBS=''
6101 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6102 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6103 ECL_LDRPATH="-Wl,--rpath,~A"
6104 clibs="-lpthread ${clibs}"
6105 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6106 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6107
6108 LSP_FEATURES="${LSP_FEATURES} :unix"
6109
6110
6111 LSP_FEATURES="${LSP_FEATURES} :bsd"
6112
6113 ;;
6114 solaris*)
6115 thehost='sun4sol2'
6116 THREAD_LIBS='-lrt -lpthread'
6117 SHARED_LDFLAGS="-dy -G ${LDFLAGS}"
6118 BUNDLE_LDFLAGS="-dy -G ${LDFLAGS}"
6119 ECL_LDRPATH='-Wl,-R,~A'
6120 TCPLIBS='-lsocket -lnsl -lintl'
6121 clibs="${clibs} -ldl"
6122 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6123 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6124 if test "x$GCC" = "xyes"; then
6125 CFLAGS="${CFLAGS} -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
6126 SHARED_LDFLAGS="-shared $SHARED_LDFLAGS"
6127 BUNDLE_LDFLAGS="-shared $BUNDLE_LDFLAGS"
6128 fi
6129
6130 LSP_FEATURES="${LSP_FEATURES} :unix"
6131
6132 ;;
6133 cygwin*)
6134 thehost='cygwin'
6135 #enable_threads='no'
6136 shared='yes'
6137 THREAD_CFLAGS='-D_THREAD_SAFE'
6138 THREAD_LIBS='-lpthread'
6139 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6140 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6141 SHAREDPREFIX=''
6142 SHAREDEXT='dll'
6143 PICFLAG=''
6144 if test "x$host_cpu" = "xx86_64" ; then
6145 # Our GMP library is too old and does not support
6146 # Windows64 calling conventions.
6147 with_c_gmp=yes
6148 fi
6149
6150 LSP_FEATURES="${LSP_FEATURES} :cygwin"
6151
6152
6153 LSP_FEATURES="${LSP_FEATURES} :unix"
6154
6155 ;;
6156 mingw*)
6157 thehost='mingw32'
6158 with_fpe='no'
6159 clibs=''
6160 shared='yes'
6161 enable_threads='yes'
6162 THREAD_CFLAGS='-D_THREAD_SAFE'
6163 THREAD_GC_FLAGS='--enable-threads=win32'
6164 SHARED_LDFLAGS="-Wl,--stack,${ECL_DEFAULT_C_STACK_SIZE}"
6165 BUNDLE_LDFLAGS="-Wl,--stack,${ECL_DEFAULT_C_STACK_SIZE}"
6166 SHAREDPREFIX=''
6167 SHAREDEXT='dll'
6168 PICFLAG=''
6169 INSTALL_TARGET='flatinstall'
6170 TCPLIBS='-lws2_32'
6171 if test "${with_tcp}" = "yes"; then
6172
6173 LSP_FEATURES="${LSP_FEATURES} :wsock"
6174
6175 fi
6176
6177 LSP_FEATURES="${LSP_FEATURES} :mingw32"
6178
6179
6180 LSP_FEATURES="${LSP_FEATURES} :win32"
6181
6182
6183 LSP_FEATURES="${LSP_FEATURES} :windows"
6184
6185 if test "x$host_cpu" = "xx86_64" ; then
6186
6187 LSP_FEATURES="${LSP_FEATURES} :win64"
6188
6189 fi
6190 ;;
6191 darwin*)
6192 thehost='darwin'
6193 shared='yes'
6194 SHAREDEXT='dylib'
6195 PICFLAG='-fPIC -fno-common'
6196 SHARED_LDFLAGS="-dynamiclib ${LDFLAGS}"
6197 BUNDLE_LDFLAGS="-bundle ${LDFLAGS}"
6198 ECL_LDRPATH='-Wl,-rpath,~A'
6199 THREAD_CFLAGS='-D_THREAD_SAFE'
6200 THREAD_LIBS='-lpthread'
6201 # The GMP library has not yet been ported to Intel or Arm-OSX
6202 case "`uname -m`" in
6203 i386*|x86_64|arm64) gmp_build=none-apple-${host_os};;
6204 *) ABI=32;;
6205 esac
6206 if test "x$ABI" = "x64"; then
6207 if echo "$CFLAGS" | grep -v ' *-m64' >/dev/null ; then
6208 CFLAGS="-m64 $CFLAGS"
6209 LDFLAGS="-m64 $LDFLAGS"
6210 fi
6211 # Needed when building the old version of GMP.
6212 # Should be removed when moving to MPIR
6213 ABI="long"
6214 fi
6215 if test "x$ABI" = "x32"; then
6216 ABI="long"
6217 fi
6218 # The Boehm-Weiser GC library shipped with Fink does not work
6219 # well with our signal handler.
6220 # enable_boehm=included
6221 if test `uname -r | cut -d '.' -f 1` -ge 11; then
6222 ECL_GC_DIR=bdwgc
6223 fi
6224 SONAME="${SHAREDPREFIX}ecl.SOVERSION.${SHAREDEXT}"
6225 SONAME_LDFLAGS="-Wl,-install_name,@rpath/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}"
6226 if test "`uname -m`" = arm64; then
6227
6228 printf "%s\n" "#define ECL_C_COMPATIBLE_VARIADIC_DISPATCH /**/" >>confdefs.h
6229
6230
6231 LSP_FEATURES="${LSP_FEATURES} :c-compatible-variadic-dispatch"
6232
6233 fi
6234
6235 LSP_FEATURES="${LSP_FEATURES} :unix"
6236
6237 ;;
6238 nsk*)
6239 # HP Non-Stop platform
6240 thehost='nonstop'
6241 shared='yes'
6242 PICFLAG='-call_shared'
6243 THREAD_CFLAGS='-spthread'
6244 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6245 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6246 ECL_LDRPATH='-Wld=\"-rld_l ~A\"'
6247 clibs="-Wld=-lrld ${clibs}"
6248 ;;
6249 haiku*)
6250 thehost='haiku'
6251 THREAD_LIBS=''
6252 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6253 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6254 ECL_LDRPATH="-Wl,--rpath,~A"
6255 clibs="-lnetwork"
6256 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6257 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6258
6259 LSP_FEATURES="${LSP_FEATURES} :haiku"
6260
6261 ;;
6262 aix*)
6263 PICFLAG='-DPIC'
6264 thehost="aix"
6265 THREAD_LIBS='-lpthread'
6266 SHARED_LDFLAGS="-G -bsvr4 -brtl ${LDFLAGS}"
6267 BUNDLE_LDFLAGS="-G -bsvr4 -brtl ${LDFLAGS}"
6268 ECL_LDRPATH="-Wl,-R~A"
6269 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6270 SONAME_LDFLAGS="-bsvr4 -brtl"
6271 ;;
6272 *)
6273 thehost="$host_os"
6274 shared="no"
6275
6276 LSP_FEATURES="${LSP_FEATURES} :unix"
6277
6278 ;;
6279 esac
6280
6281 case "${host}" in
6282 *-nacl)
6283 thehost='linux'
6284 THREAD_CFLAGS='-D_THREAD_SAFE'
6285 THREAD_LIBS='-lpthread'
6286 SHARED_LDFLAGS="-shared ${LDFLAGS}"
6287 BUNDLE_LDFLAGS="-shared ${LDFLAGS}"
6288 ECL_LDRPATH='-Wl,--rpath,~A'
6289 CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ${CFLAGS}"
6290 SONAME="${SHAREDPREFIX}ecl.${SHAREDEXT}.SOVERSION"
6291 SONAME_LDFLAGS="-Wl,-soname,SONAME"
6292
6293 LSP_FEATURES="${LSP_FEATURES} :nacl"
6294
6295 ;;
6296 *-pnacl)
6297 thehost='linux'
6298 THREAD_CFLAGS='-D_THREAD_SAFE'
6299 THREAD_LIBS='-lpthread'
6300 CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ${CFLAGS}"
6301
6302 LSP_FEATURES="${LSP_FEATURES} :nacl"
6303
6304
6305 LSP_FEATURES="${LSP_FEATURES} :pnacl"
6306
6307 ;;
6308 i686*-android*)
6309 THREAD_LIBS=''
6310 CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DANDROID -DPLATFORM_ANDROID -DUSE_GET_STACKBASE_FOR_MAIN -DIGNORE_DYNAMIC_LOADING -DNO_GETCONTEXT -DHAVE_GETTIMEOFDAY -DHAVE_SIGPROCMASK ${CFLAGS}"
6311
6312 LSP_FEATURES="${LSP_FEATURES} :android"
6313
6314
6315 LSP_FEATURES="${LSP_FEATURES} :unix"
6316
6317 ;;
6318 wasm32-unknown-emscripten)
6319 # Non-zero optimization levels seem to be slower in
6320 # combination with the binaryen spill-pointers pass.
6321 CFLAGS="${CFLAGS} -DECL_C_COMPATIBLE_VARIADIC_DISPATCH -O0"
6322 # The default stack size is 64KB, that's too little
6323 # for ECL. The spill-pointers pass is needed for the
6324 # gc to find pointers on the stack.
6325 LDFLAGS="${LDFLAGS} -sSTACK_SIZE=1048576 -sBINARYEN_EXTRA_PASSES=--spill-pointers"
6326 ECL_MIN="ecl_min.html"
6327 EXEEXT=".html"
6328 enable_threads='no'
6329 enable_libffi='no'
6330 enable_gmp='portable'
6331 with_c_gmp=yes
6332 SHARED_LDFLAGS="-shared -sSIDE_MODULE ${LDFLAGS}"
6333 BUNDLE_LDFLAGS="-shared -sSIDE_MODULE ${LDFLAGS}"
6334 PROGRAM_LDFLAGS="-sMAIN_MODULE -sERROR_ON_UNDEFINED_SYMBOLS=0 ${LDFLAGS}"
6335 INSTALL_TARGET='flatinstall'
6336
6337 printf "%s\n" "#define ECL_C_COMPATIBLE_VARIADIC_DISPATCH /**/" >>confdefs.h
6338
6339
6340 LSP_FEATURES="${LSP_FEATURES} :c-compatible-variadic-dispatch"
6341
6342
6343 LSP_FEATURES="${LSP_FEATURES} :emscripten"
6344
6345 ;;
6346 esac
6347
6348 if test "${INSTALL_TARGET}" = "flatinstall"; then
6349 exec_prefix=""
6350 bindir="${exec_prefix}"
6351 libdir="${prefix}"
6352 includedir="${prefix}"
6353 ecldir="${prefix}"
6354 fi
6355
6356 case "${host_cpu}" in
6357 alpha*)
6358 CFLAGS="${CFLAGS} -mieee";;
6359 esac
6360 ECL_CFLAGS="-D${thehost}"
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld flags when building shared libraries" >&5
6362 printf %s "checking for ld flags when building shared libraries... " >&6; }
6363 if test "${enable_shared}" = "yes"; then
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SHARED_LDFLAGS}" >&5
6365 printf "%s\n" "${SHARED_LDFLAGS}" >&6; }
6366 CFLAGS="${CFLAGS} ${PICFLAG}"
6367 else
6368 shared="no";
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot build" >&5
6370 printf "%s\n" "cannot build" >&6; }
6371 fi
6372 LIBS="${clibs} ${LIBS}"
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required libraries" >&5
6374 printf %s "checking for required libraries... " >&6; }
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${clibs}" >&5
6376 printf "%s\n" "${clibs}" >&6; }
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
6378 printf %s "checking for architecture... " >&6; }
6379 ARCHITECTURE=`echo "${host_cpu}" | tr a-z A-Z` # i386 -> I386
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ARCHITECTURE}" >&5
6381 printf "%s\n" "${ARCHITECTURE}" >&6; }
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for software type" >&5
6383 printf %s "checking for software type... " >&6; }
6384 SOFTWARE_TYPE="$thehost"
6385 SOFTWARE_VERSION=""
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SOFTWARE_TYPE} / ${SOFTWARE_VERSION}" >&5
6387 printf "%s\n" "${SOFTWARE_TYPE} / ${SOFTWARE_VERSION}" >&6; }
6388
6389
6390 if test "${enable_manual}" != "no"; then
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build the manual; finding install-info..." >&5
6392 printf %s "checking whether to build the manual; finding install-info...... " >&6; }
6393 # Extract the first word of "install-info", so it can be a program name with args.
6394 set dummy install-info; ac_word=$2
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 printf %s "checking for $ac_word... " >&6; }
6397 if test ${ac_cv_path_INSTALL_INFO+y}
6398 then :
6399 printf %s "(cached) " >&6
6400 else $as_nop
6401 case $INSTALL_INFO in
6402 [\\/]* | ?:[\\/]*)
6403 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6404 ;;
6405 *)
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409 IFS=$as_save_IFS
6410 case $as_dir in #(((
6411 '') as_dir=./ ;;
6412 */) ;;
6413 *) as_dir=$as_dir/ ;;
6414 esac
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6417 ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext"
6418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421 done
6422 done
6423 IFS=$as_save_IFS
6424
6425 ;;
6426 esac
6427 fi
6428 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6429 if test -n "$INSTALL_INFO"; then
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6431 printf "%s\n" "$INSTALL_INFO" >&6; }
6432 else
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 printf "%s\n" "no" >&6; }
6435 fi
6436
6437
6438 if test "x${INSTALL_INFO}" = "x"; then
6439 if test "${enable_manual}" = "auto"; then
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building the manual: no install-info found." >&5
6441 printf "%s\n" " Not building the manual: no install-info found." >&6; }
6442 enable_manual=no
6443 elif test "${enable_manual}" = "info"; then
6444 as_fn_error $? "Unable to build the manual: install-info not found." "$LINENO" 5
6445 fi
6446 else
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: install-info found." >&5
6448 printf "%s\n" " install-info found." >&6; }
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working makeinfo..." >&5
6450 printf %s "checking for working makeinfo...... " >&6; }
6451 # Extract the first word of "makeinfo", so it can be a program name with args.
6452 set dummy makeinfo; ac_word=$2
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 printf %s "checking for $ac_word... " >&6; }
6455 if test ${ac_cv_path_MAKEINFO+y}
6456 then :
6457 printf %s "(cached) " >&6
6458 else $as_nop
6459 case $MAKEINFO in
6460 [\\/]* | ?:[\\/]*)
6461 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6462 ;;
6463 *)
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 case $as_dir in #(((
6469 '') as_dir=./ ;;
6470 */) ;;
6471 *) as_dir=$as_dir/ ;;
6472 esac
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6475 ac_cv_path_MAKEINFO="$as_dir$ac_word$ac_exec_ext"
6476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 ;;
6484 esac
6485 fi
6486 MAKEINFO=$ac_cv_path_MAKEINFO
6487 if test -n "$MAKEINFO"; then
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6489 printf "%s\n" "$MAKEINFO" >&6; }
6490 else
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 printf "%s\n" "no" >&6; }
6493 fi
6494
6495
6496 if test "x${MAKEINFO}" = "x"; then
6497 if test "${enable_manual}" = "auto"; then
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building the manual: no makeinfo found." >&5
6499 printf "%s\n" " Not building the manual: no makeinfo found." >&6; }
6500 enable_manual=no
6501 else
6502 as_fn_error $? "Unable to build the manual: makeinfo not found." "$LINENO" 5
6503 fi
6504 elif test "x`echo \"@inlinefmtifelse{html, foo, bar}\" | makeinfo 2>&1 | grep Unknown`" != "x"; then
6505 if test "${enable_manual}" = "auto"; then
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building the manual: broken/outdated makeinfo." >&5
6507 printf "%s\n" " Not building the manual: broken/outdated makeinfo." >&6; }
6508 enable_manual=no
6509 else
6510 as_fn_error $? "Unable to build the manual: broken/outdated makeinfo." "$LINENO" 5
6511 fi
6512 else
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Will build the manual." >&5
6514 printf "%s\n" " Will build the manual." >&6; }
6515 fi
6516 fi
6517 fi
6518 if test "${enable_manual}" != "no"; then
6519
6520
6521 if test "${enable_manual}" = "html"; then
6522 MANUAL_MAKE_TARGET='html'
6523
6524 MANUAL_INSTALL_TARGET='install-html'
6525
6526 MANUAL_UNINSTALL_TARGET='uninstall-html'
6527
6528 else
6529 MANUAL_MAKE_TARGET='info'
6530
6531 MANUAL_INSTALL_TARGET='install-info'
6532
6533 MANUAL_UNINSTALL_TARGET='uninstall-info'
6534
6535 fi
6536 fi
6537
6538 if test "x$GMP_INCDIR" != "x"; then
6539 GMP_CPPFLAGS="-I$GMP_INCDIR"
6540 fi
6541 if test "x$GMP_LIBDIR" != "x"; then
6542 GMP_LDFLAGS="-L$GMP_LIBDIR"
6543 if test "$enable_rpath" = "yes"; then
6544 if (echo "$ECL_LDRPATH" | grep '~A') > /dev/null; then
6545 GMP_LDFLAGS=`echo $ECL_LDRPATH | sed "s,~A,$GMP_LIBDIR,"`" $GMP_LDFLAGS"
6546 fi
6547 fi
6548 fi
6549 CPPFLAGS="$CPPFLAGS $GMP_CPPFLAGS"
6550 LDFLAGS="$LDFLAGS $GMP_LDFLAGS"
6551
6552
6553 case ${enable_gmp} in #(
6554 portable) :
6555 with_system_gmp=no; with_c_gmp=yes ;; #(
6556 included) :
6557 with_system_gmp=no ;; #(
6558 system) :
6559 with_system_gmp=yes ;; #(
6560 *) :
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
6562 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
6563 if test ${ac_cv_lib_gmp___gmpz_init+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else $as_nop
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lgmp $LIBS"
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571
6572 /* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575 char __gmpz_init ();
6576 int
6577 main (void)
6578 {
6579 return __gmpz_init ();
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 if ac_fn_c_try_link "$LINENO"
6585 then :
6586 ac_cv_lib_gmp___gmpz_init=yes
6587 else $as_nop
6588 ac_cv_lib_gmp___gmpz_init=no
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6591 conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6593 fi
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
6595 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
6596 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
6597 then :
6598 with_system_gmp=yes
6599 else $as_nop
6600 with_system_gmp=no
6601 fi
6602 ;;
6603 esac
6604
6605 ECL_GMP_HEADER=
6606 if test "${with_system_gmp}" = "yes"; then
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
6608 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
6609 if test ${ac_cv_lib_gmp___gmpz_init+y}
6610 then :
6611 printf %s "(cached) " >&6
6612 else $as_nop
6613 ac_check_lib_save_LIBS=$LIBS
6614 LIBS="-lgmp $LIBS"
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617
6618 /* Override any GCC internal prototype to avoid an error.
6619 Use char because int might match the return type of a GCC
6620 builtin and then its argument prototype would still apply. */
6621 char __gmpz_init ();
6622 int
6623 main (void)
6624 {
6625 return __gmpz_init ();
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 if ac_fn_c_try_link "$LINENO"
6631 then :
6632 ac_cv_lib_gmp___gmpz_init=yes
6633 else $as_nop
6634 ac_cv_lib_gmp___gmpz_init=no
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6637 conftest$ac_exeext conftest.$ac_ext
6638 LIBS=$ac_check_lib_save_LIBS
6639 fi
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
6641 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
6642 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
6643 then :
6644 FASL_LIBS="${FASL_LIBS} -lgmp"
6645 else $as_nop
6646 as_fn_error $? "System gmp library requested but not found." "$LINENO" 5
6647 fi
6648
6649 ac_header= ac_cache=
6650 for ac_item in $ac_header_c_list
6651 do
6652 if test $ac_cache; then
6653 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6654 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6655 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6656 fi
6657 ac_header= ac_cache=
6658 elif test $ac_header; then
6659 ac_cache=$ac_item
6660 else
6661 ac_header=$ac_item
6662 fi
6663 done
6664
6665
6666
6667
6668
6669
6670
6671
6672 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6673 then :
6674
6675 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6676
6677 fi
6678 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
6679 if test "x$ac_cv_header_gmp_h" = xyes
6680 then :
6681 ECL_GMP_HEADER='gmp.h'
6682 fi
6683
6684 if test "x$ECL_GMP_HEADER" = "x"; then
6685 ac_fn_c_check_header_compile "$LINENO" "gmp/gmp.h" "ac_cv_header_gmp_gmp_h" "$ac_includes_default"
6686 if test "x$ac_cv_header_gmp_gmp_h" = xyes
6687 then :
6688 ECL_GMP_HEADER='gmp/gmp.h'
6689 fi
6690
6691 fi
6692 else
6693 SUBDIRS="${SUBDIRS} gmp"
6694 CORE_LIBS="-leclgmp ${CORE_LIBS}"
6695 if test ${enable_shared} = "no"; then
6696 LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclgmp.${LIBEXT}"
6697 fi
6698 fi
6699
6700
6701 EXTRA_OBJS="${EXTRA_OBJS} big.o"
6702 if test "x${with_system_gmp}" = "xno" ; then
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring included GMP library:" >&5
6704 printf "%s\n" "$as_me: Configuring included GMP library:" >&6;}
6705 test -d gmp && rm -rf gmp
6706 if test -z "$gmp_build"; then
6707 gmp_build="${build}"
6708 fi
6709 if test "x$with_c_gmp" = "xyes"; then
6710 gmp_build=`echo ${gmp_build} | sed 's,[^-]*\(-.*\),none\1,'`
6711 echo '***'
6712 echo '***' BUILDING GMP WITH C!
6713 echo '***' This is a last resort, either because of license or
6714 echo '***' porting issues.
6715 echo '***'
6716 fi
6717 ECL_GMP_HEADER='ecl/gmp.h'
6718 if test "x$ABI" = "x"; then
6719 GMP_ABI=""
6720 else
6721 GMP_ABI="ABI=$ABI"
6722 fi
6723 # Crosscompilation for Android on Darwin requires replacing 'NM=nm'
6724 # below with 'NM=$PLATFORM_PREFIX/bin/arm-linux-androideabi-nm'.
6725 mkdir gmp
6726 (destdir=`${PWDCMD}`; cd gmp && CC="${CC} ${PICFLAG}" \
6727 $srcdir/gmp/configure --disable-shared --prefix=${destdir} \
6728 -infodir=${destdir}/doc --includedir=${destdir}/ecl --with-pic \
6729 --libdir=${destdir} --build=${gmp_build} --host=${host_alias} \
6730 CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS" CC="${CC} ${PICFLAG}" \
6731 "$GMP_ABI" $with_gmp_args)
6732 if test ! -f gmp/config.status; then
6733 as_fn_error $? "Failed to configure the GMP library." "$LINENO" 5
6734 fi
6735 else
6736 if test "x$ECL_GMP_HEADER" = "x"; then
6737 as_fn_error $? "Can not find GMP header." "$LINENO" 5
6738 fi
6739 fi
6740
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GMP autoconf" >&5
6742 printf %s "checking GMP autoconf... " >&6; }
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"${with_system_gmp}.${enable_slow_config}\"" >&5
6744 printf "%s\n" "\"${with_system_gmp}.${enable_slow_config}\"" >&6; }
6745 if test "x${enable_slow_config}" = "xyes"; then
6746 with_system_gmp=no
6747 fi
6748 if test "x${with_system_gmp}" = "xno"; then
6749
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Using the GMP library to guess good compiler/linker flags" >&5
6751 printf %s "checking Using the GMP library to guess good compiler/linker flags... " >&6; }
6752 if test ! -f gmp/config.status; then
6753 as_fn_error $? "Cannot find GMP's configuration file. Aborting" "$LINENO" 5
6754 fi
6755 GMP_CFLAGS=`grep '^s,@CFLAGS@' gmp/config.status| sed 's&s,@CFLAGS@,\(.*\),;t t&\1&'`
6756 GMP_LDFLAGS=`grep '^s,@GMP_LDFLAGS@' gmp/config.status| sed 's&s,@GMP_LDFLAGS@,\(.*\),;t t&\1&'`;
6757 # Notice that GMP_LDFLAGS is designed to be passed to libtool, and therefore
6758 # some options could be prefixed by -Wc, which means "flag for the compiler".
6759 LDFLAGS=`echo ${LDFLAGS} ${GMP_LDFLAGS} | sed 's%-Wc,%%g'`
6760 CFLAGS=`echo ${CFLAGS} ${GMP_CFLAGS} | sed 's%-Wc,%%g'`
6761 GMP_CFLAGS=""
6762 GMP_LDFLAGS=""
6763 #host=`grep '^s,@host@' config.status | sed 's&s,@host@,\(.*\),;t t&\1&'`
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking C/C++ compiler flags" >&5
6765 printf %s "checking C/C++ compiler flags... " >&6; }
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CFLAGS}" >&5
6767 printf "%s\n" "${CFLAGS}" >&6; }
6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Linker flags" >&5
6769 printf %s "checking Linker flags... " >&6; }
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${LDFLAGS}" >&5
6771 printf "%s\n" "${LDFLAGS}" >&6; }
6772
6773 fi
6774
6775 if test "x$LIBFFI_INCDIR" != "x"; then
6776 LIBFFI_CPPFLAGS="-I$LIBFFI_INCDIR"
6777 fi
6778 if test "x$LIBFFI_LIBDIR" != "x"; then
6779 LIBFFI_LDFLAGS="-L$LIBFFI_LIBDIR"
6780 if test "$enable_rpath" = "yes"; then
6781 if (echo "$ECL_LDRPATH" | grep '~A') > /dev/null; then
6782 LIBFFI_LDFLAGS=`echo $ECL_LDRPATH | sed "s,~A,$LIBFFI_LIBDIR,"`" $LIBFFI_LDFLAGS"
6783 fi
6784 fi
6785 fi
6786 CPPFLAGS="$CPPFLAGS $LIBFFI_CPPFLAGS"
6787 LDFLAGS="$LDFLAGS $LIBFFI_LDFLAGS"
6788
6789 if test "x$LIBGC_INCDIR" != "x"; then
6790 LIBGC_CPPFLAGS="-I$LIBGC_INCDIR"
6791 fi
6792 if test "x$LIBGC_LIBDIR" != "x"; then
6793 LIBGC_LDFLAGS="-L$LIBGC_LIBDIR"
6794 if test "$enable_rpath" = "yes"; then
6795 if (echo "$ECL_LDRPATH" | grep '~A') > /dev/null; then
6796 LIBGC_LDFLAGS=`echo $ECL_LDRPATH | sed "s,~A,$LIBGC_LIBDIR,"`" $LIBGC_LDFLAGS"
6797 fi
6798 fi
6799 fi
6800 CPPFLAGS="$CPPFLAGS $LIBGC_CPPFLAGS"
6801 LDFLAGS="$LDFLAGS $LIBGC_LDFLAGS"
6802
6803
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
6805 printf %s "checking for getpwnam in -lsun... " >&6; }
6806 if test ${ac_cv_lib_sun_getpwnam+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else $as_nop
6810 ac_check_lib_save_LIBS=$LIBS
6811 LIBS="-lsun $LIBS"
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814
6815 /* Override any GCC internal prototype to avoid an error.
6816 Use char because int might match the return type of a GCC
6817 builtin and then its argument prototype would still apply. */
6818 char getpwnam ();
6819 int
6820 main (void)
6821 {
6822 return getpwnam ();
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"
6828 then :
6829 ac_cv_lib_sun_getpwnam=yes
6830 else $as_nop
6831 ac_cv_lib_sun_getpwnam=no
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6834 conftest$ac_exeext conftest.$ac_ext
6835 LIBS=$ac_check_lib_save_LIBS
6836 fi
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
6838 printf "%s\n" "$ac_cv_lib_sun_getpwnam" >&6; }
6839 if test "x$ac_cv_lib_sun_getpwnam" = xyes
6840 then :
6841 printf "%s\n" "#define HAVE_LIBSUN 1" >>confdefs.h
6842
6843 LIBS="-lsun $LIBS"
6844
6845 fi
6846 # on IRIX adds -lsun
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
6848 printf %s "checking for library containing strerror... " >&6; }
6849 if test ${ac_cv_search_strerror+y}
6850 then :
6851 printf %s "(cached) " >&6
6852 else $as_nop
6853 ac_func_search_save_LIBS=$LIBS
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856
6857 /* Override any GCC internal prototype to avoid an error.
6858 Use char because int might match the return type of a GCC
6859 builtin and then its argument prototype would still apply. */
6860 char strerror ();
6861 int
6862 main (void)
6863 {
6864 return strerror ();
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 for ac_lib in '' cposix
6870 do
6871 if test -z "$ac_lib"; then
6872 ac_res="none required"
6873 else
6874 ac_res=-l$ac_lib
6875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6876 fi
6877 if ac_fn_c_try_link "$LINENO"
6878 then :
6879 ac_cv_search_strerror=$ac_res
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6882 conftest$ac_exeext
6883 if test ${ac_cv_search_strerror+y}
6884 then :
6885 break
6886 fi
6887 done
6888 if test ${ac_cv_search_strerror+y}
6889 then :
6890
6891 else $as_nop
6892 ac_cv_search_strerror=no
6893 fi
6894 rm conftest.$ac_ext
6895 LIBS=$ac_func_search_save_LIBS
6896 fi
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6898 printf "%s\n" "$ac_cv_search_strerror" >&6; }
6899 ac_res=$ac_cv_search_strerror
6900 if test "$ac_res" != no
6901 then :
6902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6903
6904 fi
6905
6906
6907 if test "$with_debug_cflags" = "yes"; then
6908 with_debug_cflags="-g"
6909 fi
6910 if test "$with_debug_cflags" != "no"; then
6911 DEBUG_CFLAGS="$with_debug_cflags"
6912 CFLAGS="$with_debug_cflags $CFLAGS"
6913 CXXFLAGS="$with_debug_cflags $CXXFLAGS"
6914 LDFLAGS="$with_debug_cflags $LDFLAGS"
6915 fi
6916 if test "$with_profile_cflags" = "yes"; then
6917 with_profile_cflags="-pg"
6918 fi
6919 if test "$with_profile_cflags" != "no"; then
6920 CFLAGS="$with_profile_cflags $CFLAGS"
6921 CXXFLAGS="$with_profile_cflags $CFLAGS"
6922 LDFLAGS="$with_profile_cflags $LDFLAGS"
6923 fi
6924
6925 ECL_CMPDIR=cmp
6926
6927
6928 if test "${enable_threads}" = "auto"; then
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for threads support" >&5
6930 printf %s "checking for threads support... " >&6; }
6931 if test -z "${THREAD_OBJ}"; then
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 printf "%s\n" "no" >&6; }
6934 enable_threads="no"
6935 else
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6937 printf "%s\n" "yes" >&6; }
6938 enable_threads="yes"
6939 fi
6940 fi
6941 if test "${enable_threads}" = "yes" ; then
6942 if test -z "${THREAD_OBJ}"; then
6943 as_fn_error $? "Threads aren't supported on this system." "$LINENO" 5
6944 else
6945 LIBS="${THREAD_LIBS} ${LIBS}"
6946 CFLAGS="${CFLAGS} ${THREAD_CFLAGS}"
6947
6948 ac_fn_c_check_func "$LINENO" "pthread_rwlock_init" "ac_cv_func_pthread_rwlock_init"
6949 if test "x$ac_cv_func_pthread_rwlock_init" = xyes
6950 then :
6951
6952 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "$ac_includes_default"
6953 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
6954 then :
6955
6956 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h
6957
6958
6959
6960 printf "%s\n" "#define HAVE_POSIX_RWLOCK /**/" >>confdefs.h
6961
6962
6963 fi
6964
6965
6966 fi
6967
6968 ac_fn_c_check_func "$LINENO" "pthread_mutex_timedlock" "ac_cv_func_pthread_mutex_timedlock"
6969 if test "x$ac_cv_func_pthread_mutex_timedlock" = xyes
6970 then :
6971 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1" >>confdefs.h
6972
6973 fi
6974 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
6975 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
6976 then :
6977 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
6978
6979 fi
6980
6981
6982 boehm_configure_flags="${boehm_configure_flags} ${THREAD_GC_FLAGS}"
6983 for k in $THREAD_OBJ; do EXTRA_OBJS="$EXTRA_OBJS ${k}.${OBJEXT}"; done
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread object files" >&5
6985 printf %s "checking for thread object files... " >&6; }
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${THREAD_OBJ}" >&5
6987 printf "%s\n" "${THREAD_OBJ}" >&6; }
6988
6989 printf "%s\n" "#define ECL_THREADS 1" >>confdefs.h
6990
6991 fi
6992
6993 LSP_FEATURES="${LSP_FEATURES} :threads"
6994
6995
6996 LSP_FEATURES="${LSP_FEATURES} :ecl-read-write-lock"
6997
6998 else
6999 boehm_configure_flags="${boehm_configure_flags} --disable-threads"
7000 fi
7001
7002 if test ${enable_boehm} = "no" ; then
7003 as_fn_error $? "Boehm GC library is currently needed to build ECL" "$LINENO" 5;
7004 EXTRA_OBJS="${EXTRA_OBJS} alloc.${OBJEXT} gbc.${OBJEXT}"
7005 enable_smallcons="no"
7006 else
7007
7008
7009 case "${enable_boehm}" in
7010 yes) enable_boehm=auto;;
7011 auto|system|included) ;;
7012 *) as_fn_error $? "Invalid value of --enable-boehm: ${enable_boehm} " "$LINENO" 5;;
7013 esac
7014 if test "${enable_boehm}" = auto -o "${enable_boehm}" = system; then
7015 system_boehm=yes
7016 if test "${enable_threads}" = no; then
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc" >&5
7018 printf %s "checking for GC_malloc in -lgc... " >&6; }
7019 if test ${ac_cv_lib_gc_GC_malloc+y}
7020 then :
7021 printf %s "(cached) " >&6
7022 else $as_nop
7023 ac_check_lib_save_LIBS=$LIBS
7024 LIBS="-lgc $LIBS"
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027
7028 /* Override any GCC internal prototype to avoid an error.
7029 Use char because int might match the return type of a GCC
7030 builtin and then its argument prototype would still apply. */
7031 char GC_malloc ();
7032 int
7033 main (void)
7034 {
7035 return GC_malloc ();
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_link "$LINENO"
7041 then :
7042 ac_cv_lib_gc_GC_malloc=yes
7043 else $as_nop
7044 ac_cv_lib_gc_GC_malloc=no
7045 fi
7046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7047 conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7049 fi
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5
7051 printf "%s\n" "$ac_cv_lib_gc_GC_malloc" >&6; }
7052 if test "x$ac_cv_lib_gc_GC_malloc" = xyes
7053 then :
7054 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
7055
7056 LIBS="-lgc $LIBS"
7057
7058 else $as_nop
7059 system_boehm="no"
7060 fi
7061
7062 else
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_get_thr_restart_signal in -lgc" >&5
7064 printf %s "checking for GC_get_thr_restart_signal in -lgc... " >&6; }
7065 if test ${ac_cv_lib_gc_GC_get_thr_restart_signal+y}
7066 then :
7067 printf %s "(cached) " >&6
7068 else $as_nop
7069 ac_check_lib_save_LIBS=$LIBS
7070 LIBS="-lgc $LIBS"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073
7074 /* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7077 char GC_get_thr_restart_signal ();
7078 int
7079 main (void)
7080 {
7081 return GC_get_thr_restart_signal ();
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"
7087 then :
7088 ac_cv_lib_gc_GC_get_thr_restart_signal=yes
7089 else $as_nop
7090 ac_cv_lib_gc_GC_get_thr_restart_signal=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7093 conftest$ac_exeext conftest.$ac_ext
7094 LIBS=$ac_check_lib_save_LIBS
7095 fi
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_get_thr_restart_signal" >&5
7097 printf "%s\n" "$ac_cv_lib_gc_GC_get_thr_restart_signal" >&6; }
7098 if test "x$ac_cv_lib_gc_GC_get_thr_restart_signal" = xyes
7099 then :
7100 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
7101
7102 LIBS="-lgc $LIBS"
7103
7104 else $as_nop
7105 system_boehm="no"
7106 fi
7107
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_register_my_thread in -lgc" >&5
7109 printf %s "checking for GC_register_my_thread in -lgc... " >&6; }
7110 if test ${ac_cv_lib_gc_GC_register_my_thread+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else $as_nop
7114 ac_check_lib_save_LIBS=$LIBS
7115 LIBS="-lgc $LIBS"
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118
7119 /* Override any GCC internal prototype to avoid an error.
7120 Use char because int might match the return type of a GCC
7121 builtin and then its argument prototype would still apply. */
7122 char GC_register_my_thread ();
7123 int
7124 main (void)
7125 {
7126 return GC_register_my_thread ();
7127 ;
7128 return 0;
7129 }
7130 _ACEOF
7131 if ac_fn_c_try_link "$LINENO"
7132 then :
7133 ac_cv_lib_gc_GC_register_my_thread=yes
7134 else $as_nop
7135 ac_cv_lib_gc_GC_register_my_thread=no
7136 fi
7137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7138 conftest$ac_exeext conftest.$ac_ext
7139 LIBS=$ac_check_lib_save_LIBS
7140 fi
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_register_my_thread" >&5
7142 printf "%s\n" "$ac_cv_lib_gc_GC_register_my_thread" >&6; }
7143 if test "x$ac_cv_lib_gc_GC_register_my_thread" = xyes
7144 then :
7145 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
7146
7147 LIBS="-lgc $LIBS"
7148
7149 else $as_nop
7150 system_boehm="no"
7151 fi
7152
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GC_set_start_callback in -lgc" >&5
7154 printf %s "checking for GC_set_start_callback in -lgc... " >&6; }
7155 if test ${ac_cv_lib_gc_GC_set_start_callback+y}
7156 then :
7157 printf %s "(cached) " >&6
7158 else $as_nop
7159 ac_check_lib_save_LIBS=$LIBS
7160 LIBS="-lgc $LIBS"
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163
7164 /* Override any GCC internal prototype to avoid an error.
7165 Use char because int might match the return type of a GCC
7166 builtin and then its argument prototype would still apply. */
7167 char GC_set_start_callback ();
7168 int
7169 main (void)
7170 {
7171 return GC_set_start_callback ();
7172 ;
7173 return 0;
7174 }
7175 _ACEOF
7176 if ac_fn_c_try_link "$LINENO"
7177 then :
7178 ac_cv_lib_gc_GC_set_start_callback=yes
7179 else $as_nop
7180 ac_cv_lib_gc_GC_set_start_callback=no
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7183 conftest$ac_exeext conftest.$ac_ext
7184 LIBS=$ac_check_lib_save_LIBS
7185 fi
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_set_start_callback" >&5
7187 printf "%s\n" "$ac_cv_lib_gc_GC_set_start_callback" >&6; }
7188 if test "x$ac_cv_lib_gc_GC_set_start_callback" = xyes
7189 then :
7190 printf "%s\n" "#define HAVE_LIBGC 1" >>confdefs.h
7191
7192 LIBS="-lgc $LIBS"
7193
7194 else $as_nop
7195 system_boehm="no"
7196 fi
7197
7198 fi
7199 if test "${system_boehm}" = yes; then
7200 ac_fn_c_check_header_compile "$LINENO" "gc/gc.h" "ac_cv_header_gc_gc_h" "$ac_includes_default"
7201 if test "x$ac_cv_header_gc_gc_h" = xyes
7202 then :
7203 ECL_BOEHM_GC_HEADER='gc/gc.h'
7204 else $as_nop
7205 system_boehm=no
7206 fi
7207
7208 fi
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use the existing Boehm-Weiser library " >&5
7210 printf %s "checking whether we can use the existing Boehm-Weiser library ... " >&6; }
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${system_boehm} " >&5
7212 printf "%s\n" "${system_boehm} " >&6; }
7213 if test "${system_boehm}" = "no"; then
7214 if test "${enable_boehm}" = "auto" -o "${enable_boehm}" = "included"; then
7215 enable_boehm="included";
7216 else
7217 as_fn_error $? "System Boehm GC library requested but not found." "$LINENO" 5
7218 fi
7219 else
7220 FASL_LIBS="${FASL_LIBS} -lgc"
7221 EXTRA_OBJS="${EXTRA_OBJS} alloc_2.${OBJEXT}"
7222
7223 printf "%s\n" "#define GBC_BOEHM 1" >>confdefs.h
7224
7225 fi
7226 fi
7227 if test "${enable_boehm}" = "included"; then
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring included Boehm GC library:" >&5
7229 printf "%s\n" "$as_me: Configuring included Boehm GC library:" >&6;}
7230 test -d gc && rm -rf gc
7231 currentdir=`${PWDCMD}`
7232 cd $srcdir/${ECL_GC_DIR};
7233 if test -d configure; then
7234 autoreconf -vif
7235 automake --add-missing
7236 fi;
7237 CFLAGS="$CFLAGS $GC_CFLAGS";
7238 cd $currentdir;
7239 if mkdir gc; then
7240 if (destdir=`${PWDCMD}`; cd gc; \
7241 $srcdir/${ECL_GC_DIR}/configure --disable-shared --prefix=${destdir} \
7242 --includedir=${destdir}/ecl/ --libdir=${destdir} \
7243 --build=${build_alias} --host=${host_alias} --enable-large-config \
7244 CC="${CC} ${PICFLAG}" \
7245 CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
7246 CPPFLAGS="$CPPFLAGS -I${destdir}/ecl" \
7247 ${boehm_configure_flags}); then
7248 ECL_BOEHM_GC_HEADER='ecl/gc/gc.h'
7249 SUBDIRS="${SUBDIRS} gc"
7250 CORE_LIBS="-leclgc ${CORE_LIBS}"
7251 EXTRA_OBJS="${EXTRA_OBJS} alloc_2.${OBJEXT}"
7252 if test "${enable_shared}" = "no"; then
7253 LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclgc.${LIBEXT}"
7254 fi
7255
7256 printf "%s\n" "#define GBC_BOEHM 0" >>confdefs.h
7257
7258 else
7259 as_fn_error $? "Unable to configure Boehm-Weiser GC" "$LINENO" 5
7260 fi
7261 fi
7262 fi
7263 if test "${enable_gengc}" != "no" ; then
7264
7265 printf "%s\n" "#define GBC_BOEHM_GENGC /**/" >>confdefs.h
7266
7267 fi
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we use Boehm-Demers-Weiser precise garbage collector" >&5
7269 printf %s "checking if we use Boehm-Demers-Weiser precise garbage collector... " >&6; };
7270 if test "${enable_precisegc}" != "no" ; then
7271
7272 printf "%s\n" "#define GBC_BOEHM_PRECISE /**/" >>confdefs.h
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275 printf "%s\n" "yes" >&6; }
7276 else
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 printf "%s\n" "no" >&6; }
7279 fi
7280 if test "${enable_serialization}" != "no" ; then
7281
7282 printf "%s\n" "#define ECL_EXTERNALIZABLE /**/" >>confdefs.h
7283
7284
7285 LSP_FEATURES="${LSP_FEATURES} :externalizable"
7286
7287 fi
7288
7289
7290 LSP_FEATURES="${LSP_FEATURES} :boehm-gc"
7291
7292
7293 LSP_FEATURES="${LSP_FEATURES} :ecl-weak-hash"
7294
7295 fi
7296 if test ${enable_smallcons} = "yes" ; then
7297
7298 printf "%s\n" "#define ECL_SMALL_CONS /**/" >>confdefs.h
7299
7300 fi
7301
7302
7303
7304 case "${enable_libffi}" in
7305 yes) enable_libffi=auto;;
7306 no|auto|system|included) ;;
7307 *) as_fn_error $? "Invalid value of --enable-dffi: ${enable_libffi} " "$LINENO" 5;;
7308 esac
7309 if test "${enable_libffi}" = auto -o "${enable_libffi}" = system; then
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc in -lffi" >&5
7311 printf %s "checking for ffi_closure_alloc in -lffi... " >&6; }
7312 if test ${ac_cv_lib_ffi_ffi_closure_alloc+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else $as_nop
7316 ac_check_lib_save_LIBS=$LIBS
7317 LIBS="-lffi $LIBS"
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320
7321 /* Override any GCC internal prototype to avoid an error.
7322 Use char because int might match the return type of a GCC
7323 builtin and then its argument prototype would still apply. */
7324 char ffi_closure_alloc ();
7325 int
7326 main (void)
7327 {
7328 return ffi_closure_alloc ();
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_link "$LINENO"
7334 then :
7335 ac_cv_lib_ffi_ffi_closure_alloc=yes
7336 else $as_nop
7337 ac_cv_lib_ffi_ffi_closure_alloc=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7340 conftest$ac_exeext conftest.$ac_ext
7341 LIBS=$ac_check_lib_save_LIBS
7342 fi
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_closure_alloc" >&5
7344 printf "%s\n" "$ac_cv_lib_ffi_ffi_closure_alloc" >&6; }
7345 if test "x$ac_cv_lib_ffi_ffi_closure_alloc" = xyes
7346 then :
7347 system_libffi=yes
7348 else $as_nop
7349 system_libffi=no
7350 fi
7351
7352 if test "${system_libffi}" = yes; then
7353 ac_fn_c_check_header_compile "$LINENO" "ffi/ffi.h" "ac_cv_header_ffi_ffi_h" "$ac_includes_default"
7354 if test "x$ac_cv_header_ffi_ffi_h" = xyes
7355 then :
7356 ECL_LIBFFI_HEADER='ffi/ffi.h'
7357 fi
7358
7359 if test -z "$ECL_LIBFFI_HEADER"; then
7360 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
7361 if test "x$ac_cv_header_ffi_h" = xyes
7362 then :
7363 ECL_LIBFFI_HEADER='ffi.h'
7364 else $as_nop
7365 system_libffi=no
7366 fi
7367
7368 fi
7369 fi
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use the existing libffi library " >&5
7371 printf %s "checking whether we can use the existing libffi library ... " >&6; }
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${system_libffi} " >&5
7373 printf "%s\n" "${system_libffi} " >&6; }
7374 if test "${system_libffi}" = "no"; then
7375 if test "${enable_libffi}" = "auto"; then
7376 enable_libffi="included";
7377 else
7378 as_fn_error $? "System libffi library requested but not found." "$LINENO" 5
7379 fi
7380 else
7381 FASL_LIBS="${FASL_LIBS} -lffi"
7382 fi
7383 fi
7384 if test "${enable_libffi}" = "included"; then
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring included libffi library:" >&5
7386 printf "%s\n" "$as_me: Configuring included libffi library:" >&6;}
7387 test -d libffi && rm -rf libffi
7388 if mkdir libffi; then
7389 if (destdir=`${PWDCMD}`; cd libffi; \
7390 $srcdir/libffi/configure --disable-shared --prefix=${destdir} \
7391 --includedir=${destdir}/ecl/ --libdir=${destdir} --build=${build_alias} \
7392 --host=${host_alias} --disable-multi-os-directory --disable-docs \
7393 CC="${CC} ${PICFLAG}" CFLAGS="$CFLAGS" \
7394 LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS"); then
7395 ECL_LIBFFI_HEADER='ecl/ffi.h'
7396 SUBDIRS="${SUBDIRS} libffi"
7397 CORE_LIBS="-leclffi ${CORE_LIBS}"
7398 EXTRA_OBJS="${EXTRA_OBJS} alloc_2.${OBJEXT}"
7399 if test "${enable_shared}" = "no"; then
7400 LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclffi.${LIBEXT}"
7401 fi
7402 fi
7403 fi
7404 fi
7405 if test -z "${ECL_LIBFFI_HEADER}"; then
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to configure or find libffi library; disabling dynamic FFI" >&5
7407 printf "%s\n" "$as_me: WARNING: Unable to configure or find libffi library; disabling dynamic FFI" >&2;}
7408 else
7409
7410 printf "%s\n" "#define HAVE_LIBFFI /**/" >>confdefs.h
7411
7412
7413 LSP_FEATURES="${LSP_FEATURES} :dffi"
7414
7415 fi
7416
7417
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for soname flags" >&5
7419 printf %s "checking for soname flags... " >&6; }
7420 PACKAGE_MAJOR=`echo ${PACKAGE_VERSION} | sed -e 's,\(.*\)\..*\..*,\1,g'`
7421 PACKAGE_MINOR=`echo ${PACKAGE_VERSION} | sed -e 's,.*\.\(.*\)\..*,\1,g'`
7422 PACKAGE_LEAST=`echo ${PACKAGE_VERSION} | sed -e 's,.*\..*\.\(.*\),\1,g'`
7423 if test "${enable_soname}" != yes; then
7424 SONAME=''
7425 SONAME1=''
7426 SONAME2=''
7427 SONAME3=''
7428 SONAME_ALIASES=''
7429 SONAME_LDFLAGS=''
7430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7431 printf "%s\n" "none" >&6; }
7432 else
7433 i="${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_LEAST}"
7434 SONAME3=`echo $SONAME | sed "s,.SOVERSION,.$i,g"`
7435 i="${PACKAGE_MAJOR}.${PACKAGE_MINOR}"
7436 SONAME2=`echo $SONAME | sed "s,.SOVERSION,.$i,g"`
7437 i="${PACKAGE_MAJOR}"
7438 SONAME1=`echo $SONAME | sed "s,.SOVERSION,.$i,g"`
7439 SONAME=`echo $SONAME | sed "s,.SOVERSION,,g"`
7440 SONAME_LDFLAGS=`echo $SONAME_LDFLAGS | sed "s,SONAME,$SONAME2,g"`
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SONAME_LDFLAGS}" >&5
7442 printf "%s\n" "${SONAME_LDFLAGS}" >&6; }
7443 fi
7444
7445
7446
7447
7448
7449
7450 ECL_VERSION_NUMBER=$(($PACKAGE_MAJOR * 10000 + $PACKAGE_MINOR * 100 + $PACKAGE_LEAST))
7451
7452
7453 if test "${with_ieee_fp}" = yes; then
7454 with_signed_zero="yes"
7455
7456 printf "%s\n" "#define ECL_IEEE_FP /**/" >>confdefs.h
7457
7458
7459 LSP_FEATURES="${LSP_FEATURES} :ieee-floating-point"
7460
7461 fi
7462 if test "${with_fpe}" != yes; then
7463
7464 printf "%s\n" "#define ECL_AVOID_FPE_H /**/" >>confdefs.h
7465
7466 fi
7467 if test "${with_signed_zero}" = yes; then
7468
7469 printf "%s\n" "#define ECL_SIGNED_ZERO /**/" >>confdefs.h
7470
7471 fi
7472 if test "${with_ieee_fp}" != yes -o "${with_fpe}" = yes; then
7473
7474 LSP_FEATURES="${LSP_FEATURES} :floating-point-exceptions"
7475
7476 fi
7477
7478
7479
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7481 printf %s "checking for X... " >&6; }
7482
7483
7484 # Check whether --with-x was given.
7485 if test ${with_x+y}
7486 then :
7487 withval=$with_x;
7488 fi
7489
7490 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7491 if test "x$with_x" = xno; then
7492 # The user explicitly disabled X.
7493 have_x=disabled
7494 else
7495 case $x_includes,$x_libraries in #(
7496 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7497 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
7498 then :
7499 printf %s "(cached) " >&6
7500 else $as_nop
7501 # One or both of the vars are not set, and there is no cached value.
7502 ac_x_includes=no
7503 ac_x_libraries=no
7504 # Do we need to do anything special at all?
7505 ac_save_LIBS=$LIBS
7506 LIBS="-lX11 $LIBS"
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #include <X11/Xlib.h>
7510 int
7511 main (void)
7512 {
7513 XrmInitialize ()
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"
7519 then :
7520 # We can compile and link X programs with no special options.
7521 ac_x_includes=
7522 ac_x_libraries=
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7525 conftest$ac_exeext conftest.$ac_ext
7526 LIBS="$ac_save_LIBS"
7527 # If that didn't work, only try xmkmf and file system searches
7528 # for native compilation.
7529 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
7530 then :
7531 rm -f -r conftest.dir
7532 if mkdir conftest.dir; then
7533 cd conftest.dir
7534 cat >Imakefile <<'_ACEOF'
7535 incroot:
7536 @echo incroot='${INCROOT}'
7537 usrlibdir:
7538 @echo usrlibdir='${USRLIBDIR}'
7539 libdir:
7540 @echo libdir='${LIBDIR}'
7541 _ACEOF
7542 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7543 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7544 for ac_var in incroot usrlibdir libdir; do
7545 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7546 done
7547 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7548 for ac_extension in a so sl dylib la dll; do
7549 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7550 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7551 ac_im_usrlibdir=$ac_im_libdir; break
7552 fi
7553 done
7554 # Screen out bogus values from the imake configuration. They are
7555 # bogus both because they are the default anyway, and because
7556 # using them would break gcc on systems where it needs fixed includes.
7557 case $ac_im_incroot in
7558 /usr/include) ac_x_includes= ;;
7559 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7560 esac
7561 case $ac_im_usrlibdir in
7562 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7563 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7564 esac
7565 fi
7566 cd ..
7567 rm -f -r conftest.dir
7568 fi
7569
7570 # Standard set of common directories for X headers.
7571 # Check X11 before X11Rn because it is often a symlink to the current release.
7572 ac_x_header_dirs='
7573 /usr/X11/include
7574 /usr/X11R7/include
7575 /usr/X11R6/include
7576 /usr/X11R5/include
7577 /usr/X11R4/include
7578
7579 /usr/include/X11
7580 /usr/include/X11R7
7581 /usr/include/X11R6
7582 /usr/include/X11R5
7583 /usr/include/X11R4
7584
7585 /usr/local/X11/include
7586 /usr/local/X11R7/include
7587 /usr/local/X11R6/include
7588 /usr/local/X11R5/include
7589 /usr/local/X11R4/include
7590
7591 /usr/local/include/X11
7592 /usr/local/include/X11R7
7593 /usr/local/include/X11R6
7594 /usr/local/include/X11R5
7595 /usr/local/include/X11R4
7596
7597 /opt/X11/include
7598
7599 /usr/X386/include
7600 /usr/x386/include
7601 /usr/XFree86/include/X11
7602
7603 /usr/include
7604 /usr/local/include
7605 /usr/unsupported/include
7606 /usr/athena/include
7607 /usr/local/x11r5/include
7608 /usr/lpp/Xamples/include
7609
7610 /usr/openwin/include
7611 /usr/openwin/share/include'
7612
7613 if test "$ac_x_includes" = no; then
7614 # Guess where to find include files, by looking for Xlib.h.
7615 # First, try using that file with no special directory specified.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #include <X11/Xlib.h>
7619 _ACEOF
7620 if ac_fn_c_try_cpp "$LINENO"
7621 then :
7622 # We can compile using X headers with no special include directory.
7623 ac_x_includes=
7624 else $as_nop
7625 for ac_dir in $ac_x_header_dirs; do
7626 if test -r "$ac_dir/X11/Xlib.h"; then
7627 ac_x_includes=$ac_dir
7628 break
7629 fi
7630 done
7631 fi
7632 rm -f conftest.err conftest.i conftest.$ac_ext
7633 fi # $ac_x_includes = no
7634
7635 if test "$ac_x_libraries" = no; then
7636 # Check for the libraries.
7637 # See if we find them without any special options.
7638 # Don't add to $LIBS permanently.
7639 ac_save_LIBS=$LIBS
7640 LIBS="-lX11 $LIBS"
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 #include <X11/Xlib.h>
7644 int
7645 main (void)
7646 {
7647 XrmInitialize ()
7648 ;
7649 return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"
7653 then :
7654 LIBS=$ac_save_LIBS
7655 # We can link X programs with no special library path.
7656 ac_x_libraries=
7657 else $as_nop
7658 LIBS=$ac_save_LIBS
7659 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7660 do
7661 # Don't even attempt the hair of trying to link an X program!
7662 for ac_extension in a so sl dylib la dll; do
7663 if test -r "$ac_dir/libX11.$ac_extension"; then
7664 ac_x_libraries=$ac_dir
7665 break 2
7666 fi
7667 done
7668 done
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7671 conftest$ac_exeext conftest.$ac_ext
7672 fi # $ac_x_libraries = no
7673
7674 fi
7675 # Record the results.
7676 case $ac_x_includes,$ac_x_libraries in #(
7677 no,* | *,no | *\'*) :
7678 # Didn't find X, or a directory has "'" in its name.
7679 ac_cv_have_x="have_x=no" ;; #(
7680 *) :
7681 # Record where we found X for the cache.
7682 ac_cv_have_x="have_x=yes\
7683 ac_x_includes='$ac_x_includes'\
7684 ac_x_libraries='$ac_x_libraries'" ;;
7685 esac
7686 fi
7687 ;; #(
7688 *) have_x=yes;;
7689 esac
7690 eval "$ac_cv_have_x"
7691 fi # $with_x != no
7692
7693 if test "$have_x" != yes; then
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7695 printf "%s\n" "$have_x" >&6; }
7696 no_x=yes
7697 else
7698 # If each of the values was on the command line, it overrides each guess.
7699 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7700 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7701 # Update the cache value to reflect the command line values.
7702 ac_cv_have_x="have_x=yes\
7703 ac_x_includes='$x_includes'\
7704 ac_x_libraries='$x_libraries'"
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7706 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
7707 fi
7708
7709 ac_header_dirent=no
7710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7711 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7713 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
7714 if eval test \${$as_ac_Header+y}
7715 then :
7716 printf %s "(cached) " >&6
7717 else $as_nop
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <sys/types.h>
7721 #include <$ac_hdr>
7722
7723 int
7724 main (void)
7725 {
7726 if ((DIR *) 0)
7727 return 0;
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"
7733 then :
7734 eval "$as_ac_Header=yes"
7735 else $as_nop
7736 eval "$as_ac_Header=no"
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7739 fi
7740 eval ac_res=\$$as_ac_Header
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7742 printf "%s\n" "$ac_res" >&6; }
7743 if eval test \"x\$"$as_ac_Header"\" = x"yes"
7744 then :
7745 cat >>confdefs.h <<_ACEOF
7746 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
7747 _ACEOF
7748
7749 ac_header_dirent=$ac_hdr; break
7750 fi
7751
7752 done
7753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7754 if test $ac_header_dirent = dirent.h; then
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7756 printf %s "checking for library containing opendir... " >&6; }
7757 if test ${ac_cv_search_opendir+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else $as_nop
7761 ac_func_search_save_LIBS=$LIBS
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764
7765 /* Override any GCC internal prototype to avoid an error.
7766 Use char because int might match the return type of a GCC
7767 builtin and then its argument prototype would still apply. */
7768 char opendir ();
7769 int
7770 main (void)
7771 {
7772 return opendir ();
7773 ;
7774 return 0;
7775 }
7776 _ACEOF
7777 for ac_lib in '' dir
7778 do
7779 if test -z "$ac_lib"; then
7780 ac_res="none required"
7781 else
7782 ac_res=-l$ac_lib
7783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7784 fi
7785 if ac_fn_c_try_link "$LINENO"
7786 then :
7787 ac_cv_search_opendir=$ac_res
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7790 conftest$ac_exeext
7791 if test ${ac_cv_search_opendir+y}
7792 then :
7793 break
7794 fi
7795 done
7796 if test ${ac_cv_search_opendir+y}
7797 then :
7798
7799 else $as_nop
7800 ac_cv_search_opendir=no
7801 fi
7802 rm conftest.$ac_ext
7803 LIBS=$ac_func_search_save_LIBS
7804 fi
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7806 printf "%s\n" "$ac_cv_search_opendir" >&6; }
7807 ac_res=$ac_cv_search_opendir
7808 if test "$ac_res" != no
7809 then :
7810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7811
7812 fi
7813
7814 else
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7816 printf %s "checking for library containing opendir... " >&6; }
7817 if test ${ac_cv_search_opendir+y}
7818 then :
7819 printf %s "(cached) " >&6
7820 else $as_nop
7821 ac_func_search_save_LIBS=$LIBS
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824
7825 /* Override any GCC internal prototype to avoid an error.
7826 Use char because int might match the return type of a GCC
7827 builtin and then its argument prototype would still apply. */
7828 char opendir ();
7829 int
7830 main (void)
7831 {
7832 return opendir ();
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 for ac_lib in '' x
7838 do
7839 if test -z "$ac_lib"; then
7840 ac_res="none required"
7841 else
7842 ac_res=-l$ac_lib
7843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7844 fi
7845 if ac_fn_c_try_link "$LINENO"
7846 then :
7847 ac_cv_search_opendir=$ac_res
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7850 conftest$ac_exeext
7851 if test ${ac_cv_search_opendir+y}
7852 then :
7853 break
7854 fi
7855 done
7856 if test ${ac_cv_search_opendir+y}
7857 then :
7858
7859 else $as_nop
7860 ac_cv_search_opendir=no
7861 fi
7862 rm conftest.$ac_ext
7863 LIBS=$ac_func_search_save_LIBS
7864 fi
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7866 printf "%s\n" "$ac_cv_search_opendir" >&6; }
7867 ac_res=$ac_cv_search_opendir
7868 if test "$ac_res" != no
7869 then :
7870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7871
7872 fi
7873
7874 fi
7875
7876 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7877 if test "x$ac_cv_type__Bool" = xyes
7878 then :
7879
7880 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7881
7882
7883 fi
7884
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7886 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
7887 if test ${ac_cv_header_stdbool_h+y}
7888 then :
7889 printf %s "(cached) " >&6
7890 else $as_nop
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 #include <stdbool.h>
7894
7895 #ifndef __bool_true_false_are_defined
7896 #error "__bool_true_false_are_defined is not defined"
7897 #endif
7898 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
7899
7900 /* Regardless of whether this is C++ or "_Bool" is a
7901 valid type name, "true" and "false" should be usable
7902 in #if expressions and integer constant expressions,
7903 and "bool" should be a valid type name. */
7904
7905 #if !true
7906 #error "'true' is not true"
7907 #endif
7908 #if true != 1
7909 #error "'true' is not equal to 1"
7910 #endif
7911 char b[true == 1 ? 1 : -1];
7912 char c[true];
7913
7914 #if false
7915 #error "'false' is not false"
7916 #endif
7917 #if false != 0
7918 #error "'false' is not equal to 0"
7919 #endif
7920 char d[false == 0 ? 1 : -1];
7921
7922 enum { e = false, f = true, g = false * true, h = true * 256 };
7923
7924 char i[(bool) 0.5 == true ? 1 : -1];
7925 char j[(bool) 0.0 == false ? 1 : -1];
7926 char k[sizeof (bool) > 0 ? 1 : -1];
7927
7928 struct sb { bool s: 1; bool t; } s;
7929 char l[sizeof s.t > 0 ? 1 : -1];
7930
7931 /* The following fails for
7932 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7933 bool m[h];
7934 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7935 char o[-1 - (bool) 0 < 0 ? 1 : -1];
7936 /* Catch a bug in an HP-UX C compiler. See
7937 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7938 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7939 */
7940 bool p = true;
7941 bool *pp = &p;
7942
7943 /* C 1999 specifies that bool, true, and false are to be
7944 macros, but C++ 2011 and later overrule this. */
7945 #if __cplusplus < 201103
7946 #ifndef bool
7947 #error "bool is not defined"
7948 #endif
7949 #ifndef false
7950 #error "false is not defined"
7951 #endif
7952 #ifndef true
7953 #error "true is not defined"
7954 #endif
7955 #endif
7956
7957 /* If _Bool is available, repeat with it all the tests
7958 above that used bool. */
7959 #ifdef HAVE__BOOL
7960 struct sB { _Bool s: 1; _Bool t; } t;
7961
7962 char q[(_Bool) 0.5 == true ? 1 : -1];
7963 char r[(_Bool) 0.0 == false ? 1 : -1];
7964 char u[sizeof (_Bool) > 0 ? 1 : -1];
7965 char v[sizeof t.t > 0 ? 1 : -1];
7966
7967 _Bool w[h];
7968 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
7969 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
7970 _Bool z = true;
7971 _Bool *pz = &p;
7972 #endif
7973
7974 int
7975 main (void)
7976 {
7977
7978 bool ps = &s;
7979 *pp |= p;
7980 *pp |= ! p;
7981
7982 #ifdef HAVE__BOOL
7983 _Bool pt = &t;
7984 *pz |= z;
7985 *pz |= ! z;
7986 #endif
7987
7988 /* Refer to every declared value, so they cannot be
7989 discarded as unused. */
7990 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7991 + !l + !m + !n + !o + !p + !pp + !ps
7992 #ifdef HAVE__BOOL
7993 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
7994 #endif
7995 );
7996
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"
8002 then :
8003 ac_cv_header_stdbool_h=yes
8004 else $as_nop
8005 ac_cv_header_stdbool_h=no
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8008 fi
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8010 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
8011
8012 if test $ac_cv_header_stdbool_h = yes; then
8013
8014 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8015
8016 fi
8017
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8019 printf %s "checking for grep that handles long lines and -e... " >&6; }
8020 if test ${ac_cv_path_GREP+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else $as_nop
8024 if test -z "$GREP"; then
8025 ac_path_GREP_found=false
8026 # Loop through the user's path and test for each of PROGNAME-LIST
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8029 do
8030 IFS=$as_save_IFS
8031 case $as_dir in #(((
8032 '') as_dir=./ ;;
8033 */) ;;
8034 *) as_dir=$as_dir/ ;;
8035 esac
8036 for ac_prog in grep ggrep
8037 do
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8040 as_fn_executable_p "$ac_path_GREP" || continue
8041 # Check for GNU ac_path_GREP and select it if it is found.
8042 # Check for GNU $ac_path_GREP
8043 case `"$ac_path_GREP" --version 2>&1` in
8044 *GNU*)
8045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8046 *)
8047 ac_count=0
8048 printf %s 0123456789 >"conftest.in"
8049 while :
8050 do
8051 cat "conftest.in" "conftest.in" >"conftest.tmp"
8052 mv "conftest.tmp" "conftest.in"
8053 cp "conftest.in" "conftest.nl"
8054 printf "%s\n" 'GREP' >> "conftest.nl"
8055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8057 as_fn_arith $ac_count + 1 && ac_count=$as_val
8058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8059 # Best one so far, save it but keep looking for a better one
8060 ac_cv_path_GREP="$ac_path_GREP"
8061 ac_path_GREP_max=$ac_count
8062 fi
8063 # 10*(2^10) chars as input seems more than enough
8064 test $ac_count -gt 10 && break
8065 done
8066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8067 esac
8068
8069 $ac_path_GREP_found && break 3
8070 done
8071 done
8072 done
8073 IFS=$as_save_IFS
8074 if test -z "$ac_cv_path_GREP"; then
8075 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8076 fi
8077 else
8078 ac_cv_path_GREP=$GREP
8079 fi
8080
8081 fi
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8083 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8084 GREP="$ac_cv_path_GREP"
8085
8086
8087 # Autoupdate added the next two lines to ensure that your configure
8088 # script's behavior did not change. They are probably safe to remove.
8089
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8091 printf %s "checking for egrep... " >&6; }
8092 if test ${ac_cv_path_EGREP+y}
8093 then :
8094 printf %s "(cached) " >&6
8095 else $as_nop
8096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8097 then ac_cv_path_EGREP="$GREP -E"
8098 else
8099 if test -z "$EGREP"; then
8100 ac_path_EGREP_found=false
8101 # Loop through the user's path and test for each of PROGNAME-LIST
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8104 do
8105 IFS=$as_save_IFS
8106 case $as_dir in #(((
8107 '') as_dir=./ ;;
8108 */) ;;
8109 *) as_dir=$as_dir/ ;;
8110 esac
8111 for ac_prog in egrep
8112 do
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8115 as_fn_executable_p "$ac_path_EGREP" || continue
8116 # Check for GNU ac_path_EGREP and select it if it is found.
8117 # Check for GNU $ac_path_EGREP
8118 case `"$ac_path_EGREP" --version 2>&1` in
8119 *GNU*)
8120 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8121 *)
8122 ac_count=0
8123 printf %s 0123456789 >"conftest.in"
8124 while :
8125 do
8126 cat "conftest.in" "conftest.in" >"conftest.tmp"
8127 mv "conftest.tmp" "conftest.in"
8128 cp "conftest.in" "conftest.nl"
8129 printf "%s\n" 'EGREP' >> "conftest.nl"
8130 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8132 as_fn_arith $ac_count + 1 && ac_count=$as_val
8133 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8134 # Best one so far, save it but keep looking for a better one
8135 ac_cv_path_EGREP="$ac_path_EGREP"
8136 ac_path_EGREP_max=$ac_count
8137 fi
8138 # 10*(2^10) chars as input seems more than enough
8139 test $ac_count -gt 10 && break
8140 done
8141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8142 esac
8143
8144 $ac_path_EGREP_found && break 3
8145 done
8146 done
8147 done
8148 IFS=$as_save_IFS
8149 if test -z "$ac_cv_path_EGREP"; then
8150 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8151 fi
8152 else
8153 ac_cv_path_EGREP=$EGREP
8154 fi
8155
8156 fi
8157 fi
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8159 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8160 EGREP="$ac_cv_path_EGREP"
8161
8162
8163
8164
8165
8166 # Obsolete code to be removed.
8167 if test $ac_cv_header_sys_time_h = yes; then
8168
8169 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8170
8171 fi
8172 # End of obsolete code.
8173
8174 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
8175 if test "x$ac_cv_header_fcntl_h" = xyes
8176 then :
8177 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
8178
8179 fi
8180 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
8181 if test "x$ac_cv_header_limits_h" = xyes
8182 then :
8183 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
8184
8185 fi
8186 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
8187 if test "x$ac_cv_header_netdb_h" = xyes
8188 then :
8189 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
8190
8191 fi
8192 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
8193 if test "x$ac_cv_header_netinet_in_h" = xyes
8194 then :
8195 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
8196
8197 fi
8198 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
8199 if test "x$ac_cv_header_stddef_h" = xyes
8200 then :
8201 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
8202
8203 fi
8204 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8205 if test "x$ac_cv_header_stdlib_h" = xyes
8206 then :
8207 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
8208
8209 fi
8210 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
8211 if test "x$ac_cv_header_string_h" = xyes
8212 then :
8213 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
8214
8215 fi
8216 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
8217 if test "x$ac_cv_header_sys_param_h" = xyes
8218 then :
8219 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
8220
8221 fi
8222 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8223 if test "x$ac_cv_header_sys_socket_h" = xyes
8224 then :
8225 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
8226
8227 fi
8228 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
8229 if test "x$ac_cv_header_sys_time_h" = xyes
8230 then :
8231 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
8232
8233 fi
8234 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
8235 if test "x$ac_cv_header_unistd_h" = xyes
8236 then :
8237 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
8238
8239 fi
8240 ac_fn_c_check_header_compile "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
8241 if test "x$ac_cv_header_fenv_h" = xyes
8242 then :
8243 printf "%s\n" "#define HAVE_FENV_H 1" >>confdefs.h
8244
8245 fi
8246 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
8247 if test "x$ac_cv_header_sched_h" = xyes
8248 then :
8249 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
8250
8251 fi
8252
8253
8254 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
8255 if test "x$ac_cv_header_sys_utsname_h" = xyes
8256 then :
8257 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
8258
8259 fi
8260 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8261 if test "x$ac_cv_header_float_h" = xyes
8262 then :
8263 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8264
8265 fi
8266 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
8267 if test "x$ac_cv_header_pwd_h" = xyes
8268 then :
8269 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
8270
8271 fi
8272 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8273 if test "x$ac_cv_header_dlfcn_h" = xyes
8274 then :
8275 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8276
8277 fi
8278 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
8279 if test "x$ac_cv_header_link_h" = xyes
8280 then :
8281 printf "%s\n" "#define HAVE_LINK_H 1" >>confdefs.h
8282
8283 fi
8284 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8285 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
8286 then :
8287 printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
8288
8289 fi
8290 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
8291 if test "x$ac_cv_header_dirent_h" = xyes
8292 then :
8293 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
8294
8295 fi
8296 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
8297 if test "x$ac_cv_header_sys_ioctl_h" = xyes
8298 then :
8299 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
8300
8301 fi
8302 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
8303 if test "x$ac_cv_header_sys_select_h" = xyes
8304 then :
8305 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
8306
8307 fi
8308 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
8309 if test "x$ac_cv_header_sys_wait_h" = xyes
8310 then :
8311 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8312
8313 fi
8314
8315
8316
8317 ac_fn_c_check_header_compile "$LINENO" "ulimit.h" "ac_cv_header_ulimit_h" "#ifdef HAVE_ULIMIT_H
8318 # include <ulimit.h>
8319 #endif
8320
8321 "
8322 if test "x$ac_cv_header_ulimit_h" = xyes
8323 then :
8324 printf "%s\n" "#define HAVE_ULIMIT_H 1" >>confdefs.h
8325
8326 fi
8327
8328
8329
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8331 printf %s "checking for an ANSI C-conforming const... " >&6; }
8332 if test ${ac_cv_c_const+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else $as_nop
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338
8339 int
8340 main (void)
8341 {
8342
8343 #ifndef __cplusplus
8344 /* Ultrix mips cc rejects this sort of thing. */
8345 typedef int charset[2];
8346 const charset cs = { 0, 0 };
8347 /* SunOS 4.1.1 cc rejects this. */
8348 char const *const *pcpcc;
8349 char **ppc;
8350 /* NEC SVR4.0.2 mips cc rejects this. */
8351 struct point {int x, y;};
8352 static struct point const zero = {0,0};
8353 /* IBM XL C 1.02.0.0 rejects this.
8354 It does not let you subtract one const X* pointer from another in
8355 an arm of an if-expression whose if-part is not a constant
8356 expression */
8357 const char *g = "string";
8358 pcpcc = &g + (g ? g-g : 0);
8359 /* HPUX 7.0 cc rejects these. */
8360 ++pcpcc;
8361 ppc = (char**) pcpcc;
8362 pcpcc = (char const *const *) ppc;
8363 { /* SCO 3.2v4 cc rejects this sort of thing. */
8364 char tx;
8365 char *t = &tx;
8366 char const *s = 0 ? (char *) 0 : (char const *) 0;
8367
8368 *t++ = 0;
8369 if (s) return 0;
8370 }
8371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8372 int x[] = {25, 17};
8373 const int *foo = &x[0];
8374 ++foo;
8375 }
8376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8377 typedef const int *iptr;
8378 iptr p = 0;
8379 ++p;
8380 }
8381 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
8382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8383 struct s { int j; const int *ap[3]; } bx;
8384 struct s *b = &bx; b->j = 5;
8385 }
8386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8387 const int foo = 10;
8388 if (!foo) return 0;
8389 }
8390 return !cs[0] && !zero.x;
8391 #endif
8392
8393 ;
8394 return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"
8398 then :
8399 ac_cv_c_const=yes
8400 else $as_nop
8401 ac_cv_c_const=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 fi
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8406 printf "%s\n" "$ac_cv_c_const" >&6; }
8407 if test $ac_cv_c_const = no; then
8408
8409 printf "%s\n" "#define const /**/" >>confdefs.h
8410
8411 fi
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8413 printf %s "checking for inline... " >&6; }
8414 if test ${ac_cv_c_inline+y}
8415 then :
8416 printf %s "(cached) " >&6
8417 else $as_nop
8418 ac_cv_c_inline=no
8419 for ac_kw in inline __inline__ __inline; do
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #ifndef __cplusplus
8423 typedef int foo_t;
8424 static $ac_kw foo_t static_foo (void) {return 0; }
8425 $ac_kw foo_t foo (void) {return 0; }
8426 #endif
8427
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"
8430 then :
8431 ac_cv_c_inline=$ac_kw
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8434 test "$ac_cv_c_inline" != no && break
8435 done
8436
8437 fi
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8439 printf "%s\n" "$ac_cv_c_inline" >&6; }
8440
8441 case $ac_cv_c_inline in
8442 inline | yes) ;;
8443 *)
8444 case $ac_cv_c_inline in
8445 no) ac_val=;;
8446 *) ac_val=$ac_cv_c_inline;;
8447 esac
8448 cat >>confdefs.h <<_ACEOF
8449 #ifndef __cplusplus
8450 #define inline $ac_val
8451 #endif
8452 _ACEOF
8453 ;;
8454 esac
8455
8456 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8457 if test "x$ac_cv_type_size_t" = xyes
8458 then :
8459
8460 else $as_nop
8461
8462 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8463
8464 fi
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8466 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8467 if test ${ac_cv_struct_tm+y}
8468 then :
8469 printf %s "(cached) " >&6
8470 else $as_nop
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 #include <sys/types.h>
8474 #include <time.h>
8475
8476 int
8477 main (void)
8478 {
8479 struct tm tm;
8480 int *p = &tm.tm_sec;
8481 return !p;
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"
8487 then :
8488 ac_cv_struct_tm=time.h
8489 else $as_nop
8490 ac_cv_struct_tm=sys/time.h
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8493 fi
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8495 printf "%s\n" "$ac_cv_struct_tm" >&6; }
8496 if test $ac_cv_struct_tm = sys/time.h; then
8497
8498 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
8499
8500 fi
8501
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8503 printf %s "checking for working volatile... " >&6; }
8504 if test ${ac_cv_c_volatile+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else $as_nop
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510
8511 int
8512 main (void)
8513 {
8514
8515 volatile int x;
8516 int * volatile y = (int *) 0;
8517 return !x && !y;
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_compile "$LINENO"
8523 then :
8524 ac_cv_c_volatile=yes
8525 else $as_nop
8526 ac_cv_c_volatile=no
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8529 fi
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8531 printf "%s\n" "$ac_cv_c_volatile" >&6; }
8532 if test $ac_cv_c_volatile = no; then
8533
8534 printf "%s\n" "#define volatile /**/" >>confdefs.h
8535
8536 fi
8537
8538 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8539 if test "x$ac_cv_type_ptrdiff_t" = xyes
8540 then :
8541
8542 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
8543
8544
8545 fi
8546
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8548 printf %s "checking size of long long... " >&6; }
8549 if test "x$ECL_LONG_LONG_BITS" = "xno"; then
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not available" >&5
8551 printf "%s\n" "not available" >&6; }
8552 ac_cv_c_long_long=no
8553 ECL_LONG_LONG_BITS=""
8554 else
8555 if test "$GCC" = yes; then
8556 ac_cv_c_long_long=yes
8557 else
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560
8561 int
8562 main (void)
8563 {
8564 long long int i;
8565 ;
8566 return 0;
8567 }
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"
8570 then :
8571 ac_cv_c_long_long=yes
8572 else $as_nop
8573 ac_cv_c_long_long=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8576 fi
8577 fi
8578 if test $ac_cv_c_long_long = yes; then
8579 if test "x$ECL_LONG_LONG_BITS" = "x"; then
8580 if test "$cross_compiling" = yes
8581 then :
8582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8583 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8584 as_fn_error $? "cannot run test program while cross compiling
8585 See \`config.log' for more details" "$LINENO" 5; }
8586 else $as_nop
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h. */
8589
8590 #include <stdio.h>
8591 #include <stdlib.h>
8592 int main() {
8593 const char *int_type;
8594 int bits;
8595 unsigned long long x = 1;
8596 FILE *f=fopen("conftestval", "w");
8597 if (!f) exit(1);
8598 for (bits = 0; x; bits++) {
8599 x <<= 1;
8600 }
8601 fprintf(f,"ECL_LONG_LONG_BITS='%d'",bits);
8602 exit(0);
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_run "$LINENO"
8606 then :
8607 eval "`cat conftestval`"
8608 fi
8609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8610 conftest.$ac_objext conftest.beam conftest.$ac_ext
8611 fi
8612
8613 fi
8614 fi
8615 if test "x$ECL_LONG_LONG_BITS" = "x"; then
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not available" >&5
8617 printf "%s\n" "not available" >&6; }
8618 else
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECL_LONG_LONG_BITS" >&5
8620 printf "%s\n" "$ECL_LONG_LONG_BITS" >&6; }
8621
8622 printf "%s\n" "#define ecl_long_long_t long long" >>confdefs.h
8623
8624
8625 printf "%s\n" "#define ecl_ulong_long_t unsigned long long" >>confdefs.h
8626
8627
8628 printf "%s\n" "#define ECL_LONG_LONG_BITS $ECL_LONG_LONG_BITS" >>confdefs.h
8629
8630
8631
8632 LSP_FEATURES="${LSP_FEATURES} :long-long"
8633
8634 fi
8635
8636
8637
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8639 printf %s "checking whether byte ordering is bigendian... " >&6; }
8640 if test ${ac_cv_c_bigendian+y}
8641 then :
8642 printf %s "(cached) " >&6
8643 else $as_nop
8644 ac_cv_c_bigendian=unknown
8645 # See if we're dealing with a universal compiler.
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648 #ifndef __APPLE_CC__
8649 not a universal capable compiler
8650 #endif
8651 typedef int dummy;
8652
8653 _ACEOF
8654 if ac_fn_c_try_compile "$LINENO"
8655 then :
8656
8657 # Check for potential -arch flags. It is not universal unless
8658 # there are at least two -arch flags with different values.
8659 ac_arch=
8660 ac_prev=
8661 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8662 if test -n "$ac_prev"; then
8663 case $ac_word in
8664 i?86 | x86_64 | ppc | ppc64)
8665 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8666 ac_arch=$ac_word
8667 else
8668 ac_cv_c_bigendian=universal
8669 break
8670 fi
8671 ;;
8672 esac
8673 ac_prev=
8674 elif test "x$ac_word" = "x-arch"; then
8675 ac_prev=arch
8676 fi
8677 done
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8680 if test $ac_cv_c_bigendian = unknown; then
8681 # See if sys/param.h defines the BYTE_ORDER macro.
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <sys/param.h>
8686
8687 int
8688 main (void)
8689 {
8690 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8691 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8692 && LITTLE_ENDIAN)
8693 bogus endian macros
8694 #endif
8695
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 if ac_fn_c_try_compile "$LINENO"
8701 then :
8702 # It does; now see whether it defined to BIG_ENDIAN or not.
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 #include <sys/types.h>
8706 #include <sys/param.h>
8707
8708 int
8709 main (void)
8710 {
8711 #if BYTE_ORDER != BIG_ENDIAN
8712 not big endian
8713 #endif
8714
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"
8720 then :
8721 ac_cv_c_bigendian=yes
8722 else $as_nop
8723 ac_cv_c_bigendian=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728 fi
8729 if test $ac_cv_c_bigendian = unknown; then
8730 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <limits.h>
8734
8735 int
8736 main (void)
8737 {
8738 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8739 bogus endian macros
8740 #endif
8741
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_c_try_compile "$LINENO"
8747 then :
8748 # It does; now see whether it defined to _BIG_ENDIAN or not.
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #include <limits.h>
8752
8753 int
8754 main (void)
8755 {
8756 #ifndef _BIG_ENDIAN
8757 not big endian
8758 #endif
8759
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_compile "$LINENO"
8765 then :
8766 ac_cv_c_bigendian=yes
8767 else $as_nop
8768 ac_cv_c_bigendian=no
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8773 fi
8774 if test $ac_cv_c_bigendian = unknown; then
8775 # Compile a test program.
8776 if test "$cross_compiling" = yes
8777 then :
8778 # Try to guess by grepping values from an object file.
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 unsigned short int ascii_mm[] =
8782 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8783 unsigned short int ascii_ii[] =
8784 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8785 int use_ascii (int i) {
8786 return ascii_mm[i] + ascii_ii[i];
8787 }
8788 unsigned short int ebcdic_ii[] =
8789 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8790 unsigned short int ebcdic_mm[] =
8791 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8792 int use_ebcdic (int i) {
8793 return ebcdic_mm[i] + ebcdic_ii[i];
8794 }
8795 extern int foo;
8796
8797 int
8798 main (void)
8799 {
8800 return use_ascii (foo) == use_ebcdic (foo);
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_c_try_compile "$LINENO"
8806 then :
8807 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8808 ac_cv_c_bigendian=yes
8809 fi
8810 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8811 if test "$ac_cv_c_bigendian" = unknown; then
8812 ac_cv_c_bigendian=no
8813 else
8814 # finding both strings is unlikely to happen, but who knows?
8815 ac_cv_c_bigendian=unknown
8816 fi
8817 fi
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8820 else $as_nop
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 $ac_includes_default
8824 int
8825 main (void)
8826 {
8827
8828 /* Are we little or big endian? From Harbison&Steele. */
8829 union
8830 {
8831 long int l;
8832 char c[sizeof (long int)];
8833 } u;
8834 u.l = 1;
8835 return u.c[sizeof (long int) - 1] == 1;
8836
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 if ac_fn_c_try_run "$LINENO"
8842 then :
8843 ac_cv_c_bigendian=no
8844 else $as_nop
8845 ac_cv_c_bigendian=yes
8846 fi
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8848 conftest.$ac_objext conftest.beam conftest.$ac_ext
8849 fi
8850
8851 fi
8852 fi
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8854 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
8855 case $ac_cv_c_bigendian in #(
8856 yes)
8857
8858 LSP_FEATURES="${LSP_FEATURES} :big-endian"
8859 ;; #(
8860 no)
8861
8862 LSP_FEATURES="${LSP_FEATURES} :little-endian"
8863 ;; #(
8864 universal)
8865
8866 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8867
8868 ;; #(
8869 *)
8870 printf "%s\n" "#define WORDS_BIGENDIAN /* EDIT! - Undefine if small endian */" >>confdefs.h
8871 ;;
8872 esac
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking appropriate type for fixnums" >&5
8885 printf %s "checking appropriate type for fixnums... " >&6; }
8886 if test -z "${CL_FIXNUM_TYPE}" ; then
8887 if test "$cross_compiling" = yes
8888 then :
8889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8890 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8891 as_fn_error $? "cannot run test program while cross compiling
8892 See \`config.log' for more details" "$LINENO" 5; }
8893 else $as_nop
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896
8897 #include <stdio.h>
8898 #include <stdlib.h>
8899 int main() {
8900 const char *int_type;
8901 int bits;
8902 FILE *f=fopen("conftestval", "w");
8903 if (!f) exit(1);
8904 if (sizeof(int) >= sizeof(void*)) {
8905 unsigned int t = 1;
8906 signed int l = 0;
8907 int_type="int";
8908 for (bits=1; ((t << 1) >> 1) == t; bits++, t <<= 1);
8909 l = (~l) << (bits - 3);
8910 #if 1
8911 fprintf(f,"CL_FIXNUM_MIN='%d';",l);
8912 fprintf(f,"CL_FIXNUM_MAX='%d';",-(l+1));
8913 #else
8914 l++;
8915 fprintf(f,"CL_FIXNUM_MIN='%d';",l);
8916 fprintf(f,"CL_FIXNUM_MAX='%d';",-l);
8917 #endif
8918 } else if (sizeof(long) >= sizeof(void*)) {
8919 unsigned long int t = 1;
8920 signed long int l = 0;
8921 int_type="long int";
8922 for (bits=1; ((t << 1) >> 1) == t; bits++, t <<= 1);
8923 l = (~l) << (bits - 3);
8924 #if 1
8925 fprintf(f,"CL_FIXNUM_MIN='%ldL';",l);
8926 fprintf(f,"CL_FIXNUM_MAX='%ldL';",-(l+1));
8927 #else
8928 l++;
8929 fprintf(f,"CL_FIXNUM_MIN='%ldL';",l);
8930 fprintf(f,"CL_FIXNUM_MAX='%ldL';",-l);
8931 #endif
8932 #ifdef ECL_LONG_LONG_BITS
8933 } else if (sizeof(long long) >= sizeof(void*)) {
8934 unsigned long long int t = 1;
8935 signed long long int l = 0;
8936 int_type="long long";
8937 for (bits=1; ((t << 1) >> 1) == t; bits++, t <<= 1);
8938 l = (~l) << (bits - 3);
8939 # if 1
8940 fprintf(f,"CL_FIXNUM_MIN='%lldLL';",l);
8941 fprintf(f,"CL_FIXNUM_MAX='%lldLL';",-(l+1));
8942 # else
8943 l++;
8944 fprintf(f,"CL_FIXNUM_MIN='%lldLL';",l);
8945 fprintf(f,"CL_FIXNUM_MAX='%lldLL';",-l);
8946 # endif
8947 #endif
8948 } else {
8949 exit(1);
8950 }
8951 fprintf(f,"CL_FIXNUM_TYPE='%s';",int_type);
8952 fprintf(f,"CL_FIXNUM_BITS='%d';",bits);
8953 {
8954 unsigned short x = 1;
8955 for (bits = 0; x; bits++) {
8956 x <<= 1;
8957 }
8958 fprintf(f,"CL_SHORT_BITS='%d';",bits);
8959 }
8960 {
8961 unsigned int x = 1;
8962 for (bits = 0; x; bits++) {
8963 x <<= 1;
8964 }
8965 fprintf(f,"CL_INT_BITS='%d';",bits);
8966 }
8967 {
8968 unsigned long x = 1;
8969 for (bits = 0; x; bits++) {
8970 x <<= 1;
8971 }
8972 fprintf(f,"CL_LONG_BITS='%d'",bits);
8973 }
8974 exit(0);
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_run "$LINENO"
8978 then :
8979 eval "`cat conftestval`"
8980 fi
8981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8982 conftest.$ac_objext conftest.beam conftest.$ac_ext
8983 fi
8984
8985 fi
8986 if test -z "${CL_FIXNUM_TYPE}" ; then
8987 as_fn_error $? "There is no appropriate integer type for the cl_fixnum type" "$LINENO" 5
8988 fi
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${CL_FIXNUM_TYPE}" >&5
8990 printf "%s\n" "${CL_FIXNUM_TYPE}" >&6; }
8991
8992
8993 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8994 if test "x$ac_cv_header_stdint_h" = xyes
8995 then :
8996 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
8997
8998 ECL_STDINT_HEADER="#include <stdint.h>"
8999 fi
9000
9001 if test -z "${ECL_STDINT_HEADER}"; then
9002 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9003 if test "x$ac_cv_header_inttypes_h" = xyes
9004 then :
9005 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
9006
9007 ECL_STDINT_HEADER="#include <inttypes.h>"
9008 fi
9009
9010 fi
9011
9012
9013 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
9014 case $ac_cv_c_int8_t in #(
9015 no|yes) ;; #(
9016 *)
9017
9018 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
9019 ;;
9020 esac
9021
9022 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
9023 case $ac_cv_c_uint8_t in #(
9024 no|yes) ;; #(
9025 *)
9026
9027 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
9028
9029
9030 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
9031 ;;
9032 esac
9033
9034 if test "x$ac_cv_c_int8_t" = xyes; then
9035 eval ECL_INT8_T="int8_t"
9036 eval ECL_UINT8_T="uint8_t"
9037
9038 printf "%s\n" "#define ecl_int8_t int8_t" >>confdefs.h
9039
9040
9041 printf "%s\n" "#define ecl_uint8_t uint8_t" >>confdefs.h
9042
9043
9044 LSP_FEATURES="${LSP_FEATURES} :uint8-t"
9045
9046 fi
9047
9048 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
9049 case $ac_cv_c_int16_t in #(
9050 no|yes) ;; #(
9051 *)
9052
9053 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
9054 ;;
9055 esac
9056
9057 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
9058 case $ac_cv_c_uint16_t in #(
9059 no|yes) ;; #(
9060 *)
9061
9062
9063 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
9064 ;;
9065 esac
9066
9067 if test "x$ac_cv_c_int16_t" = xyes; then
9068 eval ECL_INT16_T="int16_t"
9069 eval ECL_UINT16_T="uint16_t"
9070
9071 printf "%s\n" "#define ecl_int16_t int16_t" >>confdefs.h
9072
9073
9074 printf "%s\n" "#define ecl_uint16_t uint16_t" >>confdefs.h
9075
9076
9077 LSP_FEATURES="${LSP_FEATURES} :uint16-t"
9078
9079 fi
9080
9081 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
9082 case $ac_cv_c_int32_t in #(
9083 no|yes) ;; #(
9084 *)
9085
9086 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
9087 ;;
9088 esac
9089
9090 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
9091 case $ac_cv_c_uint32_t in #(
9092 no|yes) ;; #(
9093 *)
9094
9095 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
9096
9097
9098 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
9099 ;;
9100 esac
9101
9102 if test "x$ac_cv_c_int32_t" = xyes; then
9103 eval ECL_INT32_T="int32_t"
9104 eval ECL_UINT32_T="uint32_t"
9105
9106 printf "%s\n" "#define ecl_int32_t int32_t" >>confdefs.h
9107
9108
9109 printf "%s\n" "#define ecl_uint32_t uint32_t" >>confdefs.h
9110
9111
9112 LSP_FEATURES="${LSP_FEATURES} :uint32-t"
9113
9114 fi
9115
9116 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
9117 case $ac_cv_c_int64_t in #(
9118 no|yes) ;; #(
9119 *)
9120
9121 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
9122 ;;
9123 esac
9124
9125 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
9126 case $ac_cv_c_uint64_t in #(
9127 no|yes) ;; #(
9128 *)
9129
9130 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
9131
9132
9133 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
9134 ;;
9135 esac
9136
9137 if test "x$ac_cv_c_int64_t" = xyes; then
9138 eval ECL_INT64_T="int64_t"
9139 eval ECL_UINT64_T="uint64_t"
9140
9141 printf "%s\n" "#define ecl_int64_t int64_t" >>confdefs.h
9142
9143
9144 printf "%s\n" "#define ecl_uint64_t uint64_t" >>confdefs.h
9145
9146
9147 LSP_FEATURES="${LSP_FEATURES} :uint64-t"
9148
9149 fi
9150
9151 if test "${ECL_UINT32_T}${CL_FIXNUM_BITS}" = "32"; then
9152 ECL_UINT32_T="cl_index"
9153 ECL_INT32_T="cl_fixnum"
9154 fi
9155 if test "${ECL_UINT64_T}${CL_FIXNUM_BITS}" = "64"; then
9156 ECL_UINT64_T="cl_index"
9157 ECL_INT64_T="cl_fixnum"
9158 fi
9159 if test "${ECL_UINT16_T}${CL_FIXNUM_BITS}" = "16"; then
9160 ECL_UINT16_T=$ECL_UINT32_T
9161 ECL_INT16_T=$ECL_INT32_T
9162 fi
9163
9164 if test "x${ECL_UINT8_T}" = "x" -o "x${ECL_UINT8_T}" = xno; then
9165 as_fn_error $? "Can not build ECL without byte types" "$LINENO" 5
9166 fi
9167
9168
9169
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking character sequence for end of line" >&5
9171 printf %s "checking character sequence for end of line... " >&6; }
9172 if test -z "${ECL_NEWLINE}" ; then
9173 if test "$cross_compiling" = yes
9174 then :
9175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9177 as_fn_error $? "cannot run test program while cross compiling
9178 See \`config.log' for more details" "$LINENO" 5; }
9179 else $as_nop
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182
9183 #include <stdio.h>
9184 #include <stdlib.h>
9185 int main() {
9186 FILE *f = fopen("conftestval","w");
9187 int c1, c2;
9188 char *output;
9189 if (f == NULL) exit(1);
9190 fprintf(f, "\n");
9191 fclose(f);
9192 f = fopen("conftestval","rb");
9193 if (f == NULL) exit(1);
9194 c1 = fgetc(f);
9195 c2 = fgetc(f);
9196 fclose(f);
9197 f = fopen("conftestval","w");
9198 if (f == NULL) exit(1);
9199 if (c1 == '\r')
9200 if (c2 == EOF)
9201 output="CR";
9202 else
9203 output="CRLF";
9204 else
9205 output="LF";
9206 fclose(f);
9207 f = fopen("conftestval","w");
9208 if (f == NULL) exit(1);
9209 fputs(output, f);
9210 fclose(f);
9211 exit(0);
9212 }
9213
9214 _ACEOF
9215 if ac_fn_c_try_run "$LINENO"
9216 then :
9217 ECL_NEWLINE=`cat conftestval`
9218 fi
9219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9220 conftest.$ac_objext conftest.beam conftest.$ac_ext
9221 fi
9222
9223 fi
9224 case "${ECL_NEWLINE}" in
9225 LF) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lf" >&5
9226 printf "%s\n" "lf" >&6; } ;;
9227 CR) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cr" >&5
9228 printf "%s\n" "cr" >&6; };
9229 printf "%s\n" "#define ECL_NEWLINE_IS_CR 1" >>confdefs.h
9230 ;;
9231 CRLF) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cr+lf" >&5
9232 printf "%s\n" "cr+lf" >&6; };
9233 printf "%s\n" "#define ECL_NEWLINE_IS_CRLF 1" >>confdefs.h
9234 ;;
9235 *) as_fn_error $? "Unable to determine linefeed mode" "$LINENO" 5 ;;
9236 esac
9237
9238
9239
9240
9241 ac_fn_c_check_func "$LINENO" "_longjmp" "ac_cv_func__longjmp"
9242 if test "x$ac_cv_func__longjmp" = xyes
9243 then :
9244 ECL_SETJMP="_setjmp";ECL_LONGJMP="_longjmp"
9245 else $as_nop
9246 ECL_SETJMP="setjmp";ECL_LONGJMP="longjmp"
9247 fi
9248
9249
9250
9251 if test -z "${ECL_FILE_CNT}"; then
9252 ECL_FILE_CNT=0
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255
9256 #include <stdio.h>
9257 #include <stdio_ext.h>
9258
9259 int
9260 main (void)
9261 {
9262
9263 FILE *f = fopen("conftestval","w");
9264 if (__freadahead((f)))
9265 return 1;
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_c_try_compile "$LINENO"
9272 then :
9273 ECL_FILE_CNT=1
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 #include <stdio.h>
9279 int
9280 main (void)
9281 {
9282
9283 FILE *f = fopen("conftestval","w");
9284 if ((f)->_IO_read_end - (f)->_IO_read_ptr)
9285 return 1;
9286
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_compile "$LINENO"
9292 then :
9293 ECL_FILE_CNT=2
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 #include <stdio.h>
9299 int
9300 main (void)
9301 {
9302
9303 FILE *f = fopen("conftestval","w");
9304 if ((f)->_r)
9305 return 1;
9306
9307 ;
9308 return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"
9312 then :
9313 ECL_FILE_CNT=3
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <stdio.h>
9319 int
9320 main (void)
9321 {
9322
9323 FILE *f = fopen("conftestval","w");
9324 if ((f)->_cnt)
9325 return 1;
9326
9327 ;
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_compile "$LINENO"
9332 then :
9333 ECL_FILE_CNT=4
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9336 fi
9337
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code to detect FP exceptions" >&5
9339 printf %s "checking for code to detect FP exceptions... " >&6; }
9340 case "${host_cpu}" in
9341 i686 | i586 | pentium* | athlon* )
9342 ECL_FPE_CODE="arch/fpe_x86.c"
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: x86" >&5
9344 printf "%s\n" "x86" >&6; }
9345 ;;
9346 x86_64* )
9347 ECL_FPE_CODE="arch/fpe_x86.c"
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
9349 printf "%s\n" "x86_64" >&6; }
9350 ;;
9351 *)
9352 ECL_FPE_CODE="arch/fpe_none.c"
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not available" >&5
9354 printf "%s\n" "not available" >&6; }
9355 ;;
9356 esac
9357
9358
9359
9360 if test "x$with_sse" = xyes; then
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSE intrinsics" >&5
9362 printf %s "checking for SSE intrinsics... " >&6; }
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365
9366 #include <xmmintrin.h>
9367 #include <emmintrin.h>
9368
9369 int
9370 main (void)
9371 {
9372 __m128 value;
9373 _mm_getcsr();
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 if ac_fn_c_try_link "$LINENO"
9379 then :
9380 sse_included=yes
9381 else $as_nop
9382 sse_included=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9385 conftest$ac_exeext conftest.$ac_ext
9386 if test "$sse_included" = "no"; then
9387 OLD_CFLAGS="$CFLAGS"
9388 CFLAGS="$CFLAGS -msse2"
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391
9392 #include <xmmintrin.h>
9393 #include <emmintrin.h>
9394
9395 int
9396 main (void)
9397 {
9398 __m128 value;
9399 _mm_getcsr();
9400 ;
9401 return 0;
9402 }
9403 _ACEOF
9404 if ac_fn_c_try_link "$LINENO"
9405 then :
9406 sse_included=yes
9407 else $as_nop
9408 sse_included=no
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9411 conftest$ac_exeext conftest.$ac_ext
9412 if test "$sse_included" = "no"; then
9413 CFLAGS="$OLD_CFLAGS"
9414 with_sse=no
9415 fi
9416 fi
9417 if test "x$with_sse" = xyes; then
9418
9419 printf "%s\n" "#define ECL_SSE2 /**/" >>confdefs.h
9420
9421
9422 LSP_FEATURES="${LSP_FEATURES} :sse2"
9423
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9425 printf "%s\n" "yes" >&6; }
9426 else
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 printf "%s\n" "no" >&6; }
9429 fi
9430 fi
9431
9432
9433 if test "$enable_c99complex" != "no" ; then
9434 ac_fn_c_check_type "$LINENO" "float complex" "ac_cv_type_float_complex" "#include <complex.h>
9435 "
9436 if test "x$ac_cv_type_float_complex" = xyes
9437 then :
9438
9439 printf "%s\n" "#define HAVE_FLOAT_COMPLEX 1" >>confdefs.h
9440
9441 enable_c99complex=yes
9442 else $as_nop
9443 enable_c99complex=no
9444 fi
9445 ac_fn_c_check_type "$LINENO" "double complex" "ac_cv_type_double_complex" "#include <complex.h>
9446 "
9447 if test "x$ac_cv_type_double_complex" = xyes
9448 then :
9449
9450 printf "%s\n" "#define HAVE_DOUBLE_COMPLEX 1" >>confdefs.h
9451
9452 enable_c99complex=yes
9453 else $as_nop
9454 enable_c99complex=no
9455 fi
9456 ac_fn_c_check_type "$LINENO" "long complex" "ac_cv_type_long_complex" "#include <complex.h>
9457 "
9458 if test "x$ac_cv_type_long_complex" = xyes
9459 then :
9460
9461 printf "%s\n" "#define HAVE_LONG_COMPLEX 1" >>confdefs.h
9462
9463 enable_c99complex=yes
9464 else $as_nop
9465 enable_c99complex=no
9466 fi
9467
9468 fi
9469 if test "$enable_c99complex" != "no" ; then
9470
9471 for ac_func in crealf creal creall cimagf cimag cimagl cabsf cabs cabsl conjf conj conjl csqrtf csqrt csqrtl ccosf ccos ccosl csinf csin csinl ctanf ctan ctanl ccoshf ccosh ccoshl csinhf csinh csinhl ctanhf ctanh ctanhl cexpf cexp cexpl cpowf cpow cpowl clogf clog clogl casinf casin casinl cacosf cacos cacosl catanf catan catanl casinhf casinh casinhl cacoshf cacosh cacoshl catanhf catanh catanhl
9472 do :
9473 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
9474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9475 if eval test \"x\$"$as_ac_var"\" = x"yes"
9476 then :
9477 cat >>confdefs.h <<_ACEOF
9478 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
9479 _ACEOF
9480
9481 else $as_nop
9482 enable_c99complex=no
9483 fi
9484
9485 done
9486 fi
9487 if test "$enable_c99complex" != "no" ; then
9488
9489 printf "%s\n" "#define ECL_COMPLEX_FLOAT /**/" >>confdefs.h
9490
9491
9492 LSP_FEATURES="${LSP_FEATURES} :complex-float"
9493
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"C99 Complex Float support is available\"" >&5
9495 printf "%s\n" "\"C99 Complex Float support is available\"" >&6; }
9496 else
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"C99 Complex Float support is not available\"" >&5
9498 printf "%s\n" "\"C99 Complex Float support is not available\"" >&6; }
9499 fi
9500
9501
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stack growns downwards" >&5
9503 printf %s "checking whether stack growns downwards... " >&6; }
9504 if test -z "${ECL_STACK_DIR}" ; then
9505 if test "$cross_compiling" = yes
9506 then :
9507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9508 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9509 as_fn_error $? "cannot run test program while cross compiling
9510 See \`config.log' for more details" "$LINENO" 5; }
9511 else $as_nop
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515
9516 #include <stddef.h>
9517 #include <stdlib.h>
9518
9519 ptrdiff_t f2(const char *d) {
9520 char c[2];
9521 return c-d;
9522 }
9523
9524 ptrdiff_t f1(const char *d) {
9525 char c[2];
9526 return c+1-d;
9527 }
9528
9529 typedef ptrdiff_t (*f_ptr)(const char *);
9530 f_ptr f[2] = { f1, f2 };
9531
9532 ptrdiff_t signo() {
9533 char d[1];
9534 return f[rand() & 1](d);
9535 }
9536
9537 int main() {
9538 if (signo() > 0)
9539 return 1;
9540 else
9541 return 0;
9542 }
9543
9544 _ACEOF
9545 if ac_fn_c_try_run "$LINENO"
9546 then :
9547 ECL_STACK_DIR=down
9548 else $as_nop
9549 ECL_STACK_DIR=up
9550 fi
9551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9552 conftest.$ac_objext conftest.beam conftest.$ac_ext
9553 fi
9554
9555 fi
9556 case "${ECL_STACK_DIR}" in
9557 down|DOWN) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9558 printf "%s\n" "yes" >&6; };
9559 printf "%s\n" "#define ECL_DOWN_STACK 1" >>confdefs.h
9560 ;;
9561 up|UP) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 printf "%s\n" "no" >&6; } ;;
9563 *) as_fn_error $? "Unable to determine stack growth direction" "$LINENO" 5
9564 esac
9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9566 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9567 if test ${ac_cv_c_undeclared_builtin_options+y}
9568 then :
9569 printf %s "(cached) " >&6
9570 else $as_nop
9571 ac_save_CFLAGS=$CFLAGS
9572 ac_cv_c_undeclared_builtin_options='cannot detect'
9573 for ac_arg in '' -fno-builtin; do
9574 CFLAGS="$ac_save_CFLAGS $ac_arg"
9575 # This test program should *not* compile successfully.
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578
9579 int
9580 main (void)
9581 {
9582 (void) strchr;
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 if ac_fn_c_try_compile "$LINENO"
9588 then :
9589
9590 else $as_nop
9591 # This test program should compile successfully.
9592 # No library function is consistently available on
9593 # freestanding implementations, so test against a dummy
9594 # declaration. Include always-available headers on the
9595 # off chance that they somehow elicit warnings.
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #include <float.h>
9599 #include <limits.h>
9600 #include <stdarg.h>
9601 #include <stddef.h>
9602 extern void ac_decl (int, char *);
9603
9604 int
9605 main (void)
9606 {
9607 (void) ac_decl (0, (char *) 0);
9608 (void) ac_decl;
9609
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_compile "$LINENO"
9615 then :
9616 if test x"$ac_arg" = x
9617 then :
9618 ac_cv_c_undeclared_builtin_options='none needed'
9619 else $as_nop
9620 ac_cv_c_undeclared_builtin_options=$ac_arg
9621 fi
9622 break
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9627 done
9628 CFLAGS=$ac_save_CFLAGS
9629
9630 fi
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9632 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9633 case $ac_cv_c_undeclared_builtin_options in #(
9634 'cannot detect') :
9635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9636 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9637 as_fn_error $? "cannot make $CC report undeclared builtins
9638 See \`config.log' for more details" "$LINENO" 5; } ;; #(
9639 'none needed') :
9640 ac_c_undeclared_builtin_options='' ;; #(
9641 *) :
9642 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9643 esac
9644
9645
9646 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
9647 if test "x$ac_cv_header_sys_resource_h" = xyes
9648 then :
9649
9650 printf "%s\n" "#define HAVE_SYS_RESOURCE_H /**/" >>confdefs.h
9651
9652 ac_fn_check_decl "$LINENO" "RLIMIT_STACK" "ac_cv_have_decl_RLIMIT_STACK" "#include <sys/resource.h>
9653 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9654 if test "x$ac_cv_have_decl_RLIMIT_STACK" = xyes
9655 then :
9656
9657 printf "%s\n" "#define ECL_CAN_SET_STACK_SIZE /**/" >>confdefs.h
9658
9659 fi
9660 fi
9661
9662
9663
9664
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9666 printf %s "checking whether closedir returns void... " >&6; }
9667 if test ${ac_cv_func_closedir_void+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else $as_nop
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673
9674 #include <$ac_header_dirent>
9675
9676 int
9677 main (void)
9678 {
9679
9680 return closedir(0);
9681
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"
9687 then :
9688 ac_cv_func_closedir_void=no
9689 else $as_nop
9690 ac_cv_func_closedir_void=yes
9691 fi
9692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9693 fi
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9695 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
9696 if test $ac_cv_func_closedir_void = yes; then
9697
9698 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
9699
9700 fi
9701
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
9703 printf %s "checking for error_at_line... " >&6; }
9704 if test ${ac_cv_lib_error_at_line+y}
9705 then :
9706 printf %s "(cached) " >&6
9707 else $as_nop
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #include <error.h>
9711 int
9712 main (void)
9713 {
9714 error_at_line (0, 0, "", 0, "an error occurred");
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"
9720 then :
9721 ac_cv_lib_error_at_line=yes
9722 else $as_nop
9723 ac_cv_lib_error_at_line=no
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9726 conftest$ac_exeext conftest.$ac_ext
9727 fi
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
9729 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
9730 if test $ac_cv_lib_error_at_line = no; then
9731 case " $LIBOBJS " in
9732 *" error.$ac_objext "* ) ;;
9733 *) LIBOBJS="$LIBOBJS error.$ac_objext"
9734 ;;
9735 esac
9736
9737 fi
9738
9739
9740 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9741 "
9742 if test "x$ac_cv_type_pid_t" = xyes
9743 then :
9744
9745 else $as_nop
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748
9749 #if defined _WIN64 && !defined __CYGWIN__
9750 LLP64
9751 #endif
9752
9753 int
9754 main (void)
9755 {
9756
9757 ;
9758 return 0;
9759 }
9760
9761 _ACEOF
9762 if ac_fn_c_try_compile "$LINENO"
9763 then :
9764 ac_pid_type='int'
9765 else $as_nop
9766 ac_pid_type='__int64'
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9769
9770 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
9771
9772
9773 fi
9774
9775
9776
9777 ac_func=
9778 for ac_item in $ac_func_c_list
9779 do
9780 if test $ac_func; then
9781 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
9782 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
9783 echo "#define $ac_item 1" >> confdefs.h
9784 fi
9785 ac_func=
9786 else
9787 ac_func=$ac_item
9788 fi
9789 done
9790
9791
9792
9793 if test "x$ac_cv_func_fork" = xyes; then
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9795 printf %s "checking for working fork... " >&6; }
9796 if test ${ac_cv_func_fork_works+y}
9797 then :
9798 printf %s "(cached) " >&6
9799 else $as_nop
9800 if test "$cross_compiling" = yes
9801 then :
9802 ac_cv_func_fork_works=cross
9803 else $as_nop
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 $ac_includes_default
9807 int
9808 main (void)
9809 {
9810
9811 /* By Ruediger Kuhlmann. */
9812 return fork () < 0;
9813
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_run "$LINENO"
9819 then :
9820 ac_cv_func_fork_works=yes
9821 else $as_nop
9822 ac_cv_func_fork_works=no
9823 fi
9824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9825 conftest.$ac_objext conftest.beam conftest.$ac_ext
9826 fi
9827
9828 fi
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9830 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
9831
9832 else
9833 ac_cv_func_fork_works=$ac_cv_func_fork
9834 fi
9835 if test "x$ac_cv_func_fork_works" = xcross; then
9836 case $host in
9837 *-*-amigaos* | *-*-msdosdjgpp*)
9838 # Override, as these systems have only a dummy fork() stub
9839 ac_cv_func_fork_works=no
9840 ;;
9841 *)
9842 ac_cv_func_fork_works=yes
9843 ;;
9844 esac
9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9846 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9847 fi
9848 ac_cv_func_vfork_works=$ac_cv_func_vfork
9849 if test "x$ac_cv_func_vfork" = xyes; then
9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9851 printf %s "checking for working vfork... " >&6; }
9852 if test ${ac_cv_func_vfork_works+y}
9853 then :
9854 printf %s "(cached) " >&6
9855 else $as_nop
9856 if test "$cross_compiling" = yes
9857 then :
9858 ac_cv_func_vfork_works=cross
9859 else $as_nop
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 /* Thanks to Paul Eggert for this test. */
9863 $ac_includes_default
9864 #include <signal.h>
9865 #include <sys/wait.h>
9866 #ifdef HAVE_VFORK_H
9867 # include <vfork.h>
9868 #endif
9869
9870 static void
9871 do_nothing (int sig)
9872 {
9873 (void) sig;
9874 }
9875
9876 /* On some sparc systems, changes by the child to local and incoming
9877 argument registers are propagated back to the parent. The compiler
9878 is told about this with #include <vfork.h>, but some compilers
9879 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9880 static variable whose address is put into a register that is
9881 clobbered by the vfork. */
9882 static void
9883 sparc_address_test (int arg)
9884 {
9885 static pid_t child;
9886 if (!child) {
9887 child = vfork ();
9888 if (child < 0) {
9889 perror ("vfork");
9890 _exit(2);
9891 }
9892 if (!child) {
9893 arg = getpid();
9894 write(-1, "", 0);
9895 _exit (arg);
9896 }
9897 }
9898 }
9899
9900 int
9901 main (void)
9902 {
9903 pid_t parent = getpid ();
9904 pid_t child;
9905
9906 sparc_address_test (0);
9907
9908 /* On Solaris 2.4, changes by the child to the signal handler
9909 also munge signal handlers in the parent. To detect this,
9910 start by putting the parent's handler in a known state. */
9911 signal (SIGTERM, SIG_DFL);
9912
9913 child = vfork ();
9914
9915 if (child == 0) {
9916 /* Here is another test for sparc vfork register problems. This
9917 test uses lots of local variables, at least as many local
9918 variables as main has allocated so far including compiler
9919 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9920 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9921 reuse the register of parent for one of the local variables,
9922 since it will think that parent can't possibly be used any more
9923 in this routine. Assigning to the local variable will thus
9924 munge parent in the parent process. */
9925 pid_t
9926 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9927 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9928 /* Convince the compiler that p..p7 are live; otherwise, it might
9929 use the same hardware register for all 8 local variables. */
9930 if (p != p1 || p != p2 || p != p3 || p != p4
9931 || p != p5 || p != p6 || p != p7)
9932 _exit(1);
9933
9934 /* Alter the child's signal handler. */
9935 if (signal (SIGTERM, do_nothing) != SIG_DFL)
9936 _exit(1);
9937
9938 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9939 from child file descriptors. If the child closes a descriptor
9940 before it execs or exits, this munges the parent's descriptor
9941 as well. Test for this by closing stdout in the child. */
9942 _exit(close(fileno(stdout)) != 0);
9943 } else {
9944 int status;
9945 struct stat st;
9946
9947 while (wait(&status) != child)
9948 ;
9949 return (
9950 /* Was there some problem with vforking? */
9951 child < 0
9952
9953 /* Did the child munge the parent's signal handler? */
9954 || signal (SIGTERM, SIG_DFL) != SIG_DFL
9955
9956 /* Did the child fail? (This shouldn't happen.) */
9957 || status
9958
9959 /* Did the vfork/compiler bug occur? */
9960 || parent != getpid()
9961
9962 /* Did the file descriptor bug occur? */
9963 || fstat(fileno(stdout), &st) != 0
9964 );
9965 }
9966 }
9967 _ACEOF
9968 if ac_fn_c_try_run "$LINENO"
9969 then :
9970 ac_cv_func_vfork_works=yes
9971 else $as_nop
9972 ac_cv_func_vfork_works=no
9973 fi
9974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9975 conftest.$ac_objext conftest.beam conftest.$ac_ext
9976 fi
9977
9978 fi
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9980 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
9981
9982 fi;
9983 if test "x$ac_cv_func_fork_works" = xcross; then
9984 ac_cv_func_vfork_works=$ac_cv_func_vfork
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9986 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9987 fi
9988
9989 if test "x$ac_cv_func_vfork_works" = xyes; then
9990
9991 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9992
9993 else
9994
9995 printf "%s\n" "#define vfork fork" >>confdefs.h
9996
9997 fi
9998 if test "x$ac_cv_func_fork_works" = xyes; then
9999
10000 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
10001
10002 fi
10003
10004 if test $ac_cv_c_compiler_gnu = yes; then
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10006 printf %s "checking whether $CC needs -traditional... " >&6; }
10007 if test ${ac_cv_prog_gcc_traditional+y}
10008 then :
10009 printf %s "(cached) " >&6
10010 else $as_nop
10011 ac_pattern="Autoconf.*'x'"
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 #include <sgtty.h>
10015 Autoconf TIOCGETP
10016 _ACEOF
10017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10018 $EGREP "$ac_pattern" >/dev/null 2>&1
10019 then :
10020 ac_cv_prog_gcc_traditional=yes
10021 else $as_nop
10022 ac_cv_prog_gcc_traditional=no
10023 fi
10024 rm -rf conftest*
10025
10026
10027 if test $ac_cv_prog_gcc_traditional = no; then
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 #include <termio.h>
10031 Autoconf TCGETA
10032 _ACEOF
10033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10034 $EGREP "$ac_pattern" >/dev/null 2>&1
10035 then :
10036 ac_cv_prog_gcc_traditional=yes
10037 fi
10038 rm -rf conftest*
10039
10040 fi
10041 fi
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10043 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
10044 if test $ac_cv_prog_gcc_traditional = yes; then
10045 CC="$CC -traditional"
10046 fi
10047 fi
10048
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10050 printf %s "checking for GNU libc compatible malloc... " >&6; }
10051 if test ${ac_cv_func_malloc_0_nonnull+y}
10052 then :
10053 printf %s "(cached) " >&6
10054 else $as_nop
10055 if test "$cross_compiling" = yes
10056 then :
10057 case "$host_os" in # ((
10058 # Guess yes on platforms where we know the result.
10059 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
10060 | hpux* | solaris* | cygwin* | mingw* | msys* )
10061 ac_cv_func_malloc_0_nonnull=yes ;;
10062 # If we don't know, assume the worst.
10063 *) ac_cv_func_malloc_0_nonnull=no ;;
10064 esac
10065 else $as_nop
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 #include <stdlib.h>
10069
10070 int
10071 main (void)
10072 {
10073 void *p = malloc (0);
10074 int result = !p;
10075 free (p);
10076 return result;
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_run "$LINENO"
10082 then :
10083 ac_cv_func_malloc_0_nonnull=yes
10084 else $as_nop
10085 ac_cv_func_malloc_0_nonnull=no
10086 fi
10087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10088 conftest.$ac_objext conftest.beam conftest.$ac_ext
10089 fi
10090
10091 fi
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10093 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
10094 if test $ac_cv_func_malloc_0_nonnull = yes
10095 then :
10096
10097 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
10098
10099 else $as_nop
10100 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
10101
10102 case " $LIBOBJS " in
10103 *" malloc.$ac_objext "* ) ;;
10104 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10105 ;;
10106 esac
10107
10108
10109 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
10110
10111 fi
10112
10113
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10115 printf %s "checking for working memcmp... " >&6; }
10116 if test ${ac_cv_func_memcmp_working+y}
10117 then :
10118 printf %s "(cached) " >&6
10119 else $as_nop
10120 if test "$cross_compiling" = yes
10121 then :
10122 ac_cv_func_memcmp_working=no
10123 else $as_nop
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 int
10128 main (void)
10129 {
10130
10131 /* Some versions of memcmp are not 8-bit clean. */
10132 char c0 = '\100', c1 = '\200', c2 = '\201';
10133 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10134 return 1;
10135
10136 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10137 or more and with at least one buffer not starting on a 4-byte boundary.
10138 William Lewis provided this test program. */
10139 {
10140 char foo[21];
10141 char bar[21];
10142 int i;
10143 for (i = 0; i < 4; i++)
10144 {
10145 char *a = foo + i;
10146 char *b = bar + i;
10147 strcpy (a, "--------01111111");
10148 strcpy (b, "--------10000000");
10149 if (memcmp (a, b, 16) >= 0)
10150 return 1;
10151 }
10152 return 0;
10153 }
10154
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_run "$LINENO"
10160 then :
10161 ac_cv_func_memcmp_working=yes
10162 else $as_nop
10163 ac_cv_func_memcmp_working=no
10164 fi
10165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10166 conftest.$ac_objext conftest.beam conftest.$ac_ext
10167 fi
10168
10169 fi
10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10171 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
10172 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10173 *" memcmp.$ac_objext "* ) ;;
10174 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10175 ;;
10176 esac
10177
10178
10179
10180
10181
10182
10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10184 printf %s "checking for working mmap... " >&6; }
10185 if test ${ac_cv_func_mmap_fixed_mapped+y}
10186 then :
10187 printf %s "(cached) " >&6
10188 else $as_nop
10189 if test "$cross_compiling" = yes
10190 then :
10191 case "$host_os" in # ((
10192 # Guess yes on platforms where we know the result.
10193 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
10194 # If we don't know, assume the worst.
10195 *) ac_cv_func_mmap_fixed_mapped=no ;;
10196 esac
10197 else $as_nop
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200 $ac_includes_default
10201 /* malloc might have been renamed as rpl_malloc. */
10202 #undef malloc
10203
10204 /* Thanks to Mike Haertel and Jim Avera for this test.
10205 Here is a matrix of mmap possibilities:
10206 mmap private not fixed
10207 mmap private fixed at somewhere currently unmapped
10208 mmap private fixed at somewhere already mapped
10209 mmap shared not fixed
10210 mmap shared fixed at somewhere currently unmapped
10211 mmap shared fixed at somewhere already mapped
10212 For private mappings, we should verify that changes cannot be read()
10213 back from the file, nor mmap's back from the file at a different
10214 address. (There have been systems where private was not correctly
10215 implemented like the infamous i386 svr4.0, and systems where the
10216 VM page cache was not coherent with the file system buffer cache
10217 like early versions of FreeBSD and possibly contemporary NetBSD.)
10218 For shared mappings, we should conversely verify that changes get
10219 propagated back to all the places they're supposed to be.
10220
10221 Grep wants private fixed already mapped.
10222 The main things grep needs to know about mmap are:
10223 * does it exist and is it safe to write into the mmap'd area
10224 * how to use it (BSD variants) */
10225
10226 #include <fcntl.h>
10227 #include <sys/mman.h>
10228
10229 /* This mess was copied from the GNU getpagesize.h. */
10230 #ifndef HAVE_GETPAGESIZE
10231 # ifdef _SC_PAGESIZE
10232 # define getpagesize() sysconf(_SC_PAGESIZE)
10233 # else /* no _SC_PAGESIZE */
10234 # ifdef HAVE_SYS_PARAM_H
10235 # include <sys/param.h>
10236 # ifdef EXEC_PAGESIZE
10237 # define getpagesize() EXEC_PAGESIZE
10238 # else /* no EXEC_PAGESIZE */
10239 # ifdef NBPG
10240 # define getpagesize() NBPG * CLSIZE
10241 # ifndef CLSIZE
10242 # define CLSIZE 1
10243 # endif /* no CLSIZE */
10244 # else /* no NBPG */
10245 # ifdef NBPC
10246 # define getpagesize() NBPC
10247 # else /* no NBPC */
10248 # ifdef PAGESIZE
10249 # define getpagesize() PAGESIZE
10250 # endif /* PAGESIZE */
10251 # endif /* no NBPC */
10252 # endif /* no NBPG */
10253 # endif /* no EXEC_PAGESIZE */
10254 # else /* no HAVE_SYS_PARAM_H */
10255 # define getpagesize() 8192 /* punt totally */
10256 # endif /* no HAVE_SYS_PARAM_H */
10257 # endif /* no _SC_PAGESIZE */
10258
10259 #endif /* no HAVE_GETPAGESIZE */
10260
10261 int
10262 main (void)
10263 {
10264 char *data, *data2, *data3;
10265 const char *cdata2;
10266 int i, pagesize;
10267 int fd, fd2;
10268
10269 pagesize = getpagesize ();
10270
10271 /* First, make a file with some known garbage in it. */
10272 data = (char *) malloc (pagesize);
10273 if (!data)
10274 return 1;
10275 for (i = 0; i < pagesize; ++i)
10276 *(data + i) = rand ();
10277 umask (0);
10278 fd = creat ("conftest.mmap", 0600);
10279 if (fd < 0)
10280 return 2;
10281 if (write (fd, data, pagesize) != pagesize)
10282 return 3;
10283 close (fd);
10284
10285 /* Next, check that the tail of a page is zero-filled. File must have
10286 non-zero length, otherwise we risk SIGBUS for entire page. */
10287 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10288 if (fd2 < 0)
10289 return 4;
10290 cdata2 = "";
10291 if (write (fd2, cdata2, 1) != 1)
10292 return 5;
10293 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10294 if (data2 == MAP_FAILED)
10295 return 6;
10296 for (i = 0; i < pagesize; ++i)
10297 if (*(data2 + i))
10298 return 7;
10299 close (fd2);
10300 if (munmap (data2, pagesize))
10301 return 8;
10302
10303 /* Next, try to mmap the file at a fixed address which already has
10304 something else allocated at it. If we can, also make sure that
10305 we see the same garbage. */
10306 fd = open ("conftest.mmap", O_RDWR);
10307 if (fd < 0)
10308 return 9;
10309 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10311 return 10;
10312 for (i = 0; i < pagesize; ++i)
10313 if (*(data + i) != *(data2 + i))
10314 return 11;
10315
10316 /* Finally, make sure that changes to the mapped area do not
10317 percolate back to the file as seen by read(). (This is a bug on
10318 some variants of i386 svr4.0.) */
10319 for (i = 0; i < pagesize; ++i)
10320 *(data2 + i) = *(data2 + i) + 1;
10321 data3 = (char *) malloc (pagesize);
10322 if (!data3)
10323 return 12;
10324 if (read (fd, data3, pagesize) != pagesize)
10325 return 13;
10326 for (i = 0; i < pagesize; ++i)
10327 if (*(data + i) != *(data3 + i))
10328 return 14;
10329 close (fd);
10330 free (data);
10331 free (data3);
10332 return 0;
10333 }
10334 _ACEOF
10335 if ac_fn_c_try_run "$LINENO"
10336 then :
10337 ac_cv_func_mmap_fixed_mapped=yes
10338 else $as_nop
10339 ac_cv_func_mmap_fixed_mapped=no
10340 fi
10341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10342 conftest.$ac_objext conftest.beam conftest.$ac_ext
10343 fi
10344
10345 fi
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10347 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
10348 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10349
10350 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
10351
10352 fi
10353 rm -f conftest.mmap conftest.txt
10354
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10356 printf %s "checking for GNU libc compatible realloc... " >&6; }
10357 if test ${ac_cv_func_realloc_0_nonnull+y}
10358 then :
10359 printf %s "(cached) " >&6
10360 else $as_nop
10361 if test "$cross_compiling" = yes
10362 then :
10363 case "$host_os" in # ((
10364 # Guess yes on platforms where we know the result.
10365 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
10366 | hpux* | solaris* | cygwin* | mingw* | msys* )
10367 ac_cv_func_realloc_0_nonnull=yes ;;
10368 # If we don't know, assume the worst.
10369 *) ac_cv_func_realloc_0_nonnull=no ;;
10370 esac
10371 else $as_nop
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374 #include <stdlib.h>
10375
10376 int
10377 main (void)
10378 {
10379 void *p = realloc (0, 0);
10380 int result = !p;
10381 free (p);
10382 return result;
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 if ac_fn_c_try_run "$LINENO"
10388 then :
10389 ac_cv_func_realloc_0_nonnull=yes
10390 else $as_nop
10391 ac_cv_func_realloc_0_nonnull=no
10392 fi
10393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10394 conftest.$ac_objext conftest.beam conftest.$ac_ext
10395 fi
10396
10397 fi
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
10399 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
10400 if test $ac_cv_func_realloc_0_nonnull = yes
10401 then :
10402
10403 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
10404
10405 else $as_nop
10406 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
10407
10408 case " $LIBOBJS " in
10409 *" realloc.$ac_objext "* ) ;;
10410 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10411 ;;
10412 esac
10413
10414
10415 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
10416
10417 fi
10418
10419
10420
10421
10422
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10424 printf %s "checking types of arguments for select... " >&6; }
10425 if test ${ac_cv_func_select_args+y}
10426 then :
10427 printf %s "(cached) " >&6
10428 else $as_nop
10429 ac_cv_func_select_args='int,int *,struct timeval *'
10430 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10431 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10432 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 #ifdef HAVE_SYS_SELECT_H
10437 # include <sys/select.h>
10438 #endif
10439 #ifdef HAVE_SYS_SOCKET_H
10440 # include <sys/socket.h>
10441 #endif
10442
10443 int
10444 main (void)
10445 {
10446 extern int select ($ac_arg1,
10447 $ac_arg234, $ac_arg234, $ac_arg234,
10448 $ac_arg5);
10449 ;
10450 return 0;
10451 }
10452 _ACEOF
10453 if ac_fn_c_try_compile "$LINENO"
10454 then :
10455 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10458 done
10459 done
10460 done
10461
10462 fi
10463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10464 printf "%s\n" "$ac_cv_func_select_args" >&6; }
10465 ac_save_IFS=$IFS; IFS=','
10466 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10467 IFS=$ac_save_IFS
10468 shift
10469
10470 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
10471
10472
10473 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
10474
10475
10476 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
10477
10478 rm -rf conftest*
10479
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10481 printf %s "checking return type of signal handlers... " >&6; }
10482 if test ${ac_cv_type_signal+y}
10483 then :
10484 printf %s "(cached) " >&6
10485 else $as_nop
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #include <sys/types.h>
10489 #include <signal.h>
10490
10491 int
10492 main (void)
10493 {
10494 return *(signal (0, 0)) (0) == 1;
10495 ;
10496 return 0;
10497 }
10498 _ACEOF
10499 if ac_fn_c_try_compile "$LINENO"
10500 then :
10501 ac_cv_type_signal=int
10502 else $as_nop
10503 ac_cv_type_signal=void
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10506 fi
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10508 printf "%s\n" "$ac_cv_type_signal" >&6; }
10509
10510 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
10511
10512
10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10514 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
10515 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
10516 then :
10517 printf %s "(cached) " >&6
10518 else $as_nop
10519 rm -f conftest.sym conftest.file
10520 echo >conftest.file
10521 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10522 if test "$cross_compiling" = yes
10523 then :
10524 case "$host_os" in # ((
10525 # Guess yes on glibc systems.
10526 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
10527 # If we don't know, assume the worst.
10528 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
10529 esac
10530 else $as_nop
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 int
10535 main (void)
10536 {
10537 struct stat sbuf;
10538 /* Linux will dereference the symlink and fail, as required by POSIX.
10539 That is better in the sense that it means we will not
10540 have to compile and use the lstat wrapper. */
10541 return lstat ("conftest.sym/", &sbuf) == 0;
10542 ;
10543 return 0;
10544 }
10545 _ACEOF
10546 if ac_fn_c_try_run "$LINENO"
10547 then :
10548 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10549 else $as_nop
10550 ac_cv_func_lstat_dereferences_slashed_symlink=no
10551 fi
10552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10553 conftest.$ac_objext conftest.beam conftest.$ac_ext
10554 fi
10555
10556 else
10557 # If the `ln -s' command failed, then we probably don't even
10558 # have an lstat function.
10559 ac_cv_func_lstat_dereferences_slashed_symlink=no
10560 fi
10561 rm -f conftest.sym conftest.file
10562
10563 fi
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10565 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10566
10567 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10568
10569 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
10570
10571
10572 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10573 case " $LIBOBJS " in
10574 *" lstat.$ac_objext "* ) ;;
10575 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10576 ;;
10577 esac
10578
10579 fi
10580
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10582 printf %s "checking whether stat accepts an empty string... " >&6; }
10583 if test ${ac_cv_func_stat_empty_string_bug+y}
10584 then :
10585 printf %s "(cached) " >&6
10586 else $as_nop
10587 if test "$cross_compiling" = yes
10588 then :
10589 ac_cv_func_stat_empty_string_bug=yes
10590 else $as_nop
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 $ac_includes_default
10594 int
10595 main (void)
10596 {
10597 struct stat sbuf;
10598 return stat ("", &sbuf) == 0;
10599 ;
10600 return 0;
10601 }
10602 _ACEOF
10603 if ac_fn_c_try_run "$LINENO"
10604 then :
10605 ac_cv_func_stat_empty_string_bug=no
10606 else $as_nop
10607 ac_cv_func_stat_empty_string_bug=yes
10608 fi
10609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10610 conftest.$ac_objext conftest.beam conftest.$ac_ext
10611 fi
10612
10613 fi
10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10615 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
10616 if test $ac_cv_func_stat_empty_string_bug = yes; then
10617 case " $LIBOBJS " in
10618 *" stat.$ac_objext "* ) ;;
10619 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10620 ;;
10621 esac
10622
10623
10624 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
10625
10626 fi
10627
10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10629 printf %s "checking for working strtod... " >&6; }
10630 if test ${ac_cv_func_strtod+y}
10631 then :
10632 printf %s "(cached) " >&6
10633 else $as_nop
10634 if test "$cross_compiling" = yes
10635 then :
10636 ac_cv_func_strtod=no
10637 else $as_nop
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640
10641 $ac_includes_default
10642 #ifndef strtod
10643 double strtod ();
10644 #endif
10645 int
10646 main (void)
10647 {
10648 {
10649 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10650 char *string = " +69";
10651 char *term;
10652 double value;
10653 value = strtod (string, &term);
10654 if (value != 69 || term != (string + 4))
10655 return 1;
10656 }
10657
10658 {
10659 /* Under Solaris 2.4, strtod returns the wrong value for the
10660 terminating character under some conditions. */
10661 char *string = "NaN";
10662 char *term;
10663 strtod (string, &term);
10664 if (term != string && *(term - 1) == 0)
10665 return 1;
10666 }
10667 return 0;
10668 }
10669
10670 _ACEOF
10671 if ac_fn_c_try_run "$LINENO"
10672 then :
10673 ac_cv_func_strtod=yes
10674 else $as_nop
10675 ac_cv_func_strtod=no
10676 fi
10677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10678 conftest.$ac_objext conftest.beam conftest.$ac_ext
10679 fi
10680
10681 fi
10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10683 printf "%s\n" "$ac_cv_func_strtod" >&6; }
10684 if test $ac_cv_func_strtod = no; then
10685 case " $LIBOBJS " in
10686 *" strtod.$ac_objext "* ) ;;
10687 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10688 ;;
10689 esac
10690
10691 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10692 if test "x$ac_cv_func_pow" = xyes
10693 then :
10694
10695 fi
10696
10697 if test $ac_cv_func_pow = no; then
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10699 printf %s "checking for pow in -lm... " >&6; }
10700 if test ${ac_cv_lib_m_pow+y}
10701 then :
10702 printf %s "(cached) " >&6
10703 else $as_nop
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-lm $LIBS"
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708
10709 /* Override any GCC internal prototype to avoid an error.
10710 Use char because int might match the return type of a GCC
10711 builtin and then its argument prototype would still apply. */
10712 char pow ();
10713 int
10714 main (void)
10715 {
10716 return pow ();
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"
10722 then :
10723 ac_cv_lib_m_pow=yes
10724 else $as_nop
10725 ac_cv_lib_m_pow=no
10726 fi
10727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10728 conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10730 fi
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10732 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
10733 if test "x$ac_cv_lib_m_pow" = xyes
10734 then :
10735 POW_LIB=-lm
10736 else $as_nop
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10738 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10739 fi
10740
10741 fi
10742
10743 fi
10744
10745 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
10746 if test "x$ac_cv_func_floor" = xyes
10747 then :
10748 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
10749
10750 fi
10751 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
10752 if test "x$ac_cv_func_getcwd" = xyes
10753 then :
10754 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
10755
10756 fi
10757 ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
10758 if test "x$ac_cv_func_gethostbyaddr" = xyes
10759 then :
10760 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
10761
10762 fi
10763 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10764 if test "x$ac_cv_func_gethostbyname" = xyes
10765 then :
10766 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
10767
10768 fi
10769 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10770 if test "x$ac_cv_func_getpagesize" = xyes
10771 then :
10772 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10773
10774 fi
10775 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
10776 if test "x$ac_cv_func_memmove" = xyes
10777 then :
10778 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
10779
10780 fi
10781 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
10782 if test "x$ac_cv_func_memset" = xyes
10783 then :
10784 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
10785
10786 fi
10787 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
10788 if test "x$ac_cv_func_mkdir" = xyes
10789 then :
10790 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
10791
10792 fi
10793 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
10794 if test "x$ac_cv_func_putenv" = xyes
10795 then :
10796 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
10797
10798 fi
10799 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10800 if test "x$ac_cv_func_socket" = xyes
10801 then :
10802 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
10803
10804 fi
10805 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
10806 if test "x$ac_cv_func_sqrt" = xyes
10807 then :
10808 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
10809
10810 fi
10811 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10812 if test "x$ac_cv_func_strcasecmp" = xyes
10813 then :
10814 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
10815
10816 fi
10817 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
10818 if test "x$ac_cv_func_strchr" = xyes
10819 then :
10820 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
10821
10822 fi
10823 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
10824 if test "x$ac_cv_func_strerror" = xyes
10825 then :
10826 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
10827
10828 fi
10829 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
10830 if test "x$ac_cv_func_strtol" = xyes
10831 then :
10832 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
10833
10834 fi
10835
10836
10837 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
10838 if test "x$ac_cv_func_nanosleep" = xyes
10839 then :
10840 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
10841
10842 fi
10843 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
10844 if test "x$ac_cv_func_alarm" = xyes
10845 then :
10846 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
10847
10848 fi
10849 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
10850 if test "x$ac_cv_func_times" = xyes
10851 then :
10852 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
10853
10854 fi
10855 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
10856 if test "x$ac_cv_func_select" = xyes
10857 then :
10858 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
10859
10860 fi
10861 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
10862 if test "x$ac_cv_func_setenv" = xyes
10863 then :
10864 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
10865
10866 fi
10867 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
10868 if test "x$ac_cv_func_putenv" = xyes
10869 then :
10870 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
10871
10872 fi
10873 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
10874 if test "x$ac_cv_func_lstat" = xyes
10875 then :
10876 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
10877
10878 fi
10879 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10880 if test "x$ac_cv_func_mkstemp" = xyes
10881 then :
10882 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
10883
10884 fi
10885 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
10886 if test "x$ac_cv_func_sigprocmask" = xyes
10887 then :
10888 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
10889
10890 fi
10891 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
10892 if test "x$ac_cv_func_isatty" = xyes
10893 then :
10894 printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
10895
10896 fi
10897 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
10898 if test "x$ac_cv_func_tzset" = xyes
10899 then :
10900 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
10901
10902 fi
10903 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10904 if test "x$ac_cv_func_gettimeofday" = xyes
10905 then :
10906 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
10907
10908 fi
10909 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
10910 if test "x$ac_cv_func_getrusage" = xyes
10911 then :
10912 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
10913
10914 fi
10915 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
10916 if test "x$ac_cv_func_system" = xyes
10917 then :
10918 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
10919
10920 fi
10921 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
10922 if test "x$ac_cv_func_clock_gettime" = xyes
10923 then :
10924 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
10925
10926 fi
10927
10928
10929 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
10930 if test "x$ac_cv_func_expf" = xyes
10931 then :
10932 printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
10933
10934 fi
10935 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
10936 if test "x$ac_cv_func_powf" = xyes
10937 then :
10938 printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
10939
10940 fi
10941 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
10942 if test "x$ac_cv_func_logf" = xyes
10943 then :
10944 printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
10945
10946 fi
10947 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
10948 if test "x$ac_cv_func_sqrtf" = xyes
10949 then :
10950 printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
10951
10952 fi
10953 ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
10954 if test "x$ac_cv_func_cosf" = xyes
10955 then :
10956 printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
10957
10958 fi
10959 ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
10960 if test "x$ac_cv_func_sinf" = xyes
10961 then :
10962 printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
10963
10964 fi
10965 ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
10966 if test "x$ac_cv_func_tanf" = xyes
10967 then :
10968 printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
10969
10970 fi
10971 ac_fn_c_check_func "$LINENO" "sinhf" "ac_cv_func_sinhf"
10972 if test "x$ac_cv_func_sinhf" = xyes
10973 then :
10974 printf "%s\n" "#define HAVE_SINHF 1" >>confdefs.h
10975
10976 fi
10977 ac_fn_c_check_func "$LINENO" "coshf" "ac_cv_func_coshf"
10978 if test "x$ac_cv_func_coshf" = xyes
10979 then :
10980 printf "%s\n" "#define HAVE_COSHF 1" >>confdefs.h
10981
10982 fi
10983 ac_fn_c_check_func "$LINENO" "tanhf" "ac_cv_func_tanhf"
10984 if test "x$ac_cv_func_tanhf" = xyes
10985 then :
10986 printf "%s\n" "#define HAVE_TANHF 1" >>confdefs.h
10987
10988 fi
10989 ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
10990 if test "x$ac_cv_func_floorf" = xyes
10991 then :
10992 printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
10993
10994 fi
10995 ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
10996 if test "x$ac_cv_func_ceilf" = xyes
10997 then :
10998 printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
10999
11000 fi
11001 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
11002 if test "x$ac_cv_func_fabsf" = xyes
11003 then :
11004 printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
11005
11006 fi
11007 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
11008 if test "x$ac_cv_func_frexpf" = xyes
11009 then :
11010 printf "%s\n" "#define HAVE_FREXPF 1" >>confdefs.h
11011
11012 fi
11013 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
11014 if test "x$ac_cv_func_ldexpf" = xyes
11015 then :
11016 printf "%s\n" "#define HAVE_LDEXPF 1" >>confdefs.h
11017
11018 fi
11019 ac_fn_c_check_func "$LINENO" "log1p" "ac_cv_func_log1p"
11020 if test "x$ac_cv_func_log1p" = xyes
11021 then :
11022 printf "%s\n" "#define HAVE_LOG1P 1" >>confdefs.h
11023
11024 fi
11025 ac_fn_c_check_func "$LINENO" "log1pf" "ac_cv_func_log1pf"
11026 if test "x$ac_cv_func_log1pf" = xyes
11027 then :
11028 printf "%s\n" "#define HAVE_LOG1PF 1" >>confdefs.h
11029
11030 fi
11031 ac_fn_c_check_func "$LINENO" "log1pl" "ac_cv_func_log1pl"
11032 if test "x$ac_cv_func_log1pl" = xyes
11033 then :
11034 printf "%s\n" "#define HAVE_LOG1PL 1" >>confdefs.h
11035
11036 fi
11037 ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
11038 if test "x$ac_cv_func_copysign" = xyes
11039 then :
11040 printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
11041
11042 fi
11043
11044
11045 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
11046 if test "x$ac_cv_func_sched_yield" = xyes
11047 then :
11048 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
11049
11050 fi
11051 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
11052 if test "x$ac_cv_func_uname" = xyes
11053 then :
11054 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
11055
11056 fi
11057 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
11058 if test "x$ac_cv_func_fseeko" = xyes
11059 then :
11060 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
11061
11062 fi
11063 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
11064 if test "x$ac_cv_func_dladdr" = xyes
11065 then :
11066 printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
11067
11068 fi
11069 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
11070 if test "x$ac_cv_func_backtrace" = xyes
11071 then :
11072 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
11073
11074 fi
11075 ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols"
11076 if test "x$ac_cv_func_backtrace_symbols" = xyes
11077 then :
11078 printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h
11079
11080 fi
11081
11082
11083 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11084 if test "x$ac_cv_header_sys_mman_h" = xyes
11085 then :
11086
11087 printf "%s\n" "#define ECL_USE_MPROTECT /**/" >>confdefs.h
11088
11089
11090 printf "%s\n" "#define HAVE_SYS_MMAN_H /**/" >>confdefs.h
11091
11092
11093 fi
11094
11095
11096
11097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working environ" >&5
11098 printf %s "checking working environ... " >&6; }
11099 if test -z "$ECL_WORKING_ENVIRON"; then
11100 if test "$cross_compiling" = yes
11101 then :
11102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11103 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11104 as_fn_error $? "cannot run test program while cross compiling
11105 See \`config.log' for more details" "$LINENO" 5; }
11106 else $as_nop
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109
11110 #include <stdlib.h>
11111 extern char **environ;
11112 int main() {
11113 if (environ)
11114 exit(0);
11115 exit(1);
11116 }
11117 _ACEOF
11118 if ac_fn_c_try_run "$LINENO"
11119 then :
11120 ECL_WORKING_ENVIRON=yes
11121 else $as_nop
11122 ECL_WORKING_ENVIRON=no
11123 fi
11124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11125 conftest.$ac_objext conftest.beam conftest.$ac_ext
11126 fi
11127
11128 fi
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECL_WORKING_ENVIRON" >&5
11130 printf "%s\n" "$ECL_WORKING_ENVIRON" >&6; }
11131 if test $ECL_WORKING_ENVIRON = yes ; then
11132
11133 printf "%s\n" "#define HAVE_ENVIRON /**/" >>confdefs.h
11134
11135 fi
11136
11137
11138
11139 if test "${with_fpe}" = "yes" ; then
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working feenableexcept" >&5
11141 printf %s "checking for working feenableexcept... " >&6; }
11142 saved_libs="${LIBS}"
11143 LIBS="-lm"
11144 if test "$cross_compiling" = yes
11145 then :
11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: only checking if feenableexcept is present due to cross compilation" >&5
11147 printf "%s\n" "only checking if feenableexcept is present due to cross compilation" >&6; }
11148 ac_fn_check_decl "$LINENO" "feenableexcept" "ac_cv_have_decl_feenableexcept" "#include <fenv.h>
11149 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11150 if test "x$ac_cv_have_decl_feenableexcept" = xyes
11151 then :
11152
11153 printf "%s\n" "#define HAVE_FEENABLEEXCEPT /**/" >>confdefs.h
11154
11155 fi
11156 else $as_nop
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159
11160
11161 #define _GNU_SOURCE
11162 #include <fenv.h>
11163 #include <signal.h>
11164 #include <stdlib.h>
11165
11166 const int traps = FE_DIVBYZERO | FE_OVERFLOW;
11167
11168 void fpe_handler(int code) {
11169 if (code == SIGFPE)
11170 exit(0);
11171 }
11172
11173 double raises_fpe(double x) {
11174 return x / 0.0;
11175 }
11176
11177 int main() {
11178 signal(SIGFPE, fpe_handler);
11179 feclearexcept(traps);
11180 feenableexcept(traps);
11181 raises_fpe(1.0);
11182 return 1;
11183 }
11184
11185 _ACEOF
11186 if ac_fn_c_try_run "$LINENO"
11187 then :
11188
11189 printf "%s\n" "#define HAVE_FEENABLEEXCEPT /**/" >>confdefs.h
11190
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 printf "%s\n" "yes" >&6; }
11193 else $as_nop
11194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 printf "%s\n" "no" >&6; }
11196 fi
11197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11198 conftest.$ac_objext conftest.beam conftest.$ac_ext
11199 fi
11200
11201 LIBS="${saved_libs}"
11202 fi
11203
11204
11205
11206 if test ${with_cxx} = "no" ; then
11207 ECL_CC=${CC}
11208
11209 else
11210 ECL_CC=${CXX}
11211
11212
11213 printf "%s\n" "#define ECL_CXX_CORE 1" >>confdefs.h
11214
11215 boehm_configure_flags="${boehm_configure_flags} --enable-cplusplus"
11216
11217 LSP_FEATURES="${LSP_FEATURES} :cxx-core"
11218
11219 fi
11220
11221
11222 case "${enable_libatomic}" in
11223 auto|system|included) ;;
11224 *) as_fn_error $? "Invalid value of --enable-libatomic: ${enable_libatomic} " "$LINENO" 5;;
11225 esac
11226 if test "x${enable_threads}" != "xno"; then
11227 ac_fn_c_check_header_compile "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
11228 if test "x$ac_cv_header_atomic_ops_h" = xyes
11229 then :
11230 system_libatomic=yes
11231 else $as_nop
11232 system_libatomic=no
11233 fi
11234
11235 if test "${system_libatomic}" = yes; then
11236 OLD_LIBS="${LIBS}"
11237 LIBS="${LIBS} -latomic_ops"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240 #include <atomic_ops.h>
11241 int
11242 main (void)
11243 {
11244 AO_nop();
11245 ;
11246 return 0;
11247 }
11248 _ACEOF
11249 if ac_fn_c_try_link "$LINENO"
11250 then :
11251 system_libatomic=yes
11252 else $as_nop
11253 system_libatomic=no
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS="${OLD_LIBS}"
11258 fi
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libatomic-ops version " >&5
11260 printf %s "checking libatomic-ops version ... " >&6; }
11261 if test "${enable_libatomic}" = auto; then
11262 if test "${system_libatomic}" = yes; then
11263 enable_libatomic=system
11264 else
11265 enable_libatomic=included
11266 fi
11267 fi
11268 if test "${enable_libatomic}" = system; then
11269 if test "${system_libatomic}" = no; then
11270 as_fn_error $? "Cannot find libatomic-ops in the system " "$LINENO" 5
11271 enable_libatomic=included
11272 fi
11273 fi
11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_libatomic} " >&5
11275 printf "%s\n" "${enable_libatomic} " >&6; }
11276 if test "${enable_libatomic}" = included; then
11277 test -d atomic || mkdir atomic
11278 (destdir=`${PWDCMD}`; cd atomic && CC="${CC} ${PICFLAG}" \
11279 $srcdir/${ECL_GC_DIR}/libatomic*/configure --disable-shared \
11280 --prefix=${destdir} infodir=${destdir}/doc \
11281 --includedir=${destdir}/ecl --with-pic \
11282 --libdir=${destdir} --build=${build_alias} --host=${host_alias} \
11283 CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS" CC="${CC} \
11284 ${PICFLAG}")
11285 SUBDIRS="${SUBDIRS} atomic"
11286 if test "${enable_shared}" = "no"; then
11287 LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclatomic.${LIBEXT}"
11288 fi
11289
11290 printf "%s\n" "#define ECL_LIBATOMIC_OPS_H /**/" >>confdefs.h
11291
11292 CORE_LIBS="-leclatomic ${CORE_LIBS}"
11293 else
11294 CORE_LIBS="-latomic_ops ${CORE_LIBS}"
11295 fi
11296 fi
11297
11298
11299 if test ${enable_shared} = "yes"; then
11300
11301 printf "%s\n" "#define ENABLE_DLOPEN 1" >>confdefs.h
11302
11303 LSP_LIBRARIES="${SHAREDPREFIX}ecl.${SHAREDEXT}"
11304
11305
11306 COMPILATION_FEATURES=":wants-dlopen ${COMPILATION_FEATURES}"
11307
11308
11309
11310 LSP_FEATURES="${LSP_FEATURES} :dlopen"
11311
11312 else
11313 enable_soname=no
11314 LSP_LIBRARIES="${LIBPREFIX}ecl.${LIBEXT}"
11315 ECL_LDRPATH=''
11316 fi
11317
11318 if test "x${enable_rpath}" = "xno"; then
11319 ECL_LDRPATH=''
11320 fi
11321
11322 if test "${with_cmuformat}" = "yes"; then
11323 with_clos_streams="yes"
11324
11325 printf "%s\n" "#define ECL_CMU_FORMAT 1" >>confdefs.h
11326
11327
11328 LSP_FEATURES="${LSP_FEATURES} :cmu-format"
11329
11330 fi
11331
11332 if test "${with_clos_streams}" = "yes"; then
11333
11334 printf "%s\n" "#define ECL_CLOS_STREAMS 1" >>confdefs.h
11335
11336
11337 LSP_FEATURES="${LSP_FEATURES} :clos-streams"
11338
11339 fi
11340
11341 if test "${with_cmp}" = "builtin"; then
11342
11343
11344 COMPILATION_FEATURES=":builtin-cmp ${COMPILATION_FEATURES}"
11345
11346
11347 with_cmp=yes
11348 fi
11349 if test "${with_cmp}" = "yes"; then
11350
11351
11352 COMPILATION_FEATURES=":wants-cmp ${COMPILATION_FEATURES}"
11353
11354
11355 fi
11356
11357 if test "${with_tcp}" = "builtin"; then
11358
11359
11360 COMPILATION_FEATURES=":builtin-sockets ${COMPILATION_FEATURES}"
11361
11362
11363 with_tcp=yes
11364 fi
11365 if test "${with_tcp}" = "yes"; then
11366
11367 printf "%s\n" "#define ECL_TCP 1" >>confdefs.h
11368
11369 EXTRA_OBJS="${EXTRA_OBJS} tcp.${OBJEXT}"
11370
11371
11372 COMPILATION_FEATURES=":wants-sockets ${COMPILATION_FEATURES}"
11373
11374
11375 LIBS="${LIBS} ${TCPLIBS}"
11376 fi
11377
11378 if test "${with_serve_event}" = "builtin"; then
11379
11380
11381 COMPILATION_FEATURES=":builtin-serve_event ${COMPILATION_FEATURES}"
11382
11383
11384 with_serve_event=yes
11385 fi
11386 if test "${with_serve_event}" = "yes"; then
11387 case "${host_os}" in
11388 mingw*|cygwin*) ;;
11389 *)
11390
11391
11392 COMPILATION_FEATURES=":wants-serve-event ${COMPILATION_FEATURES}"
11393
11394
11395 ;;
11396 esac
11397 fi
11398
11399 if test "${with_asdf}" = "builtin"; then
11400
11401
11402 COMPILATION_FEATURES=":builtin-asdf ${COMPILATION_FEATURES}"
11403
11404
11405 with_asdf=yes
11406 fi
11407 if test "${with_asdf}" = "yes"; then
11408
11409
11410 COMPILATION_FEATURES=":wants-asdf ${COMPILATION_FEATURES}"
11411
11412
11413 fi
11414
11415 if test "${with_defsystem}" = "builtin"; then
11416
11417
11418 COMPILATION_FEATURES=":builtin-defsystem ${COMPILATION_FEATURES}"
11419
11420
11421 with_defsystem=yes
11422 fi
11423 if test "${with_defsystem}" = "yes"; then
11424
11425
11426 COMPILATION_FEATURES=":wants-defsystem ${COMPILATION_FEATURES}"
11427
11428
11429 fi
11430
11431 if test "${with_profile}" = "builtin"; then
11432
11433
11434 COMPILATION_FEATURES=":builtin-profile ${COMPILATION_FEATURES}"
11435
11436
11437 with_profile=yes
11438 fi
11439 if test "${with_profile}" = "yes"; then
11440 if test "${enable_boehm}" != "no"; then
11441
11442
11443 COMPILATION_FEATURES=":wants-profile ${COMPILATION_FEATURES}"
11444
11445
11446 fi
11447 fi
11448
11449 if test "${with_bytecmp}" = "builtin"; then
11450
11451
11452 COMPILATION_FEATURES=":builtin-bytecmp ${COMPILATION_FEATURES}"
11453
11454
11455 with_bytecmp=yes
11456 fi
11457 if test "${with_bytecmp}" = "yes"; then
11458
11459
11460 COMPILATION_FEATURES=":wants-bytecmp ${COMPILATION_FEATURES}"
11461
11462
11463 fi
11464
11465 if test "${with_rt}" = "builtin"; then
11466
11467
11468 COMPILATION_FEATURES=":builtin-rt ${COMPILATION_FEATURES}"
11469
11470
11471 with_rt=yes
11472 fi
11473 if test "${with_rt}" = "yes"; then
11474
11475
11476 COMPILATION_FEATURES=":wants-rt ${COMPILATION_FEATURES}"
11477
11478
11479 fi
11480
11481 if test "x${enable_unicode}" != "xno"; then
11482 if test "${enable_unicode}" = 16; then
11483
11484 printf "%s\n" "#define ECL_UNICODE 16" >>confdefs.h
11485
11486 CHAR_CODE_LIMIT=65536
11487 ECL_CHARACTER=$ECL_INT16_T
11488 EXTRA_OBJS="$EXTRA_OBJS unicode/ucd16.o unicode/ucd16-0000.o unicode/ucd16-0016.o unicode/ucd16-0032.o unicode/ucd16-0048.o unicode/ucd16-0064.o"
11489 else
11490
11491 printf "%s\n" "#define ECL_UNICODE 21" >>confdefs.h
11492
11493 CHAR_CODE_LIMIT=1114112
11494 ECL_CHARACTER=$ECL_INT32_T
11495 EXTRA_OBJS="$EXTRA_OBJS unicode/ucd.o unicode/ucd-0000.o unicode/ucd-0016.o unicode/ucd-0032.o unicode/ucd-0048.o unicode/ucd-0064.o unicode/ucd-0080.o unicode/ucd-0096.o unicode/ucd-0112.o unicode/ucd-0128.o unicode/ucd-0144.o"
11496 fi
11497
11498 printf "%s\n" "#define ECL_UNICODE_NAMES 1" >>confdefs.h
11499
11500 EXTRA_OBJS="$EXTRA_OBJS unicode/ucd_names_char.o unicode/ucd_names_codes.o unicode/ucd_names_pair.o unicode/ucd_names_str.o"
11501 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11502 if test "x$ac_cv_header_wchar_h" = xyes
11503 then :
11504 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
11505
11506 fi
11507
11508
11509 LSP_FEATURES="${LSP_FEATURES} :unicode"
11510
11511 else
11512 CHAR_CODE_LIMIT=256
11513 ECL_CHARACTER="int"
11514 fi
11515
11516
11517
11518
11519 ECL_EXTRA_LISP_FILES=""
11520 for i in $with_extra_files; do
11521 ECL_EXTRA_LISP_FILES="${ECL_EXTRA_LISP_FILES} \"$i\""
11522 done
11523
11524 echo ${with_init_form} = init form
11525 if test "x${with_init_form}" = "x"; then
11526 ECL_INIT_FORM='(SI::TOP-LEVEL T)'
11527 else
11528 ECL_INIT_FORM="${with_init_form}"
11529 fi
11530
11531
11532 LSP_FEATURES="${LSP_FEATURES} :${ARCHITECTURE}"
11533
11534
11535 ac_config_files="$ac_config_files bare.lsp lsp/load.lsp clos/load.lsp cmp/load.lsp ../Makefile Makefile c/Makefile doc/Makefile doc/ecl.man doc/ecl-config.man ecl/configpre.h:h/config.h.in ecl/configpre-int.h:h/config-internal.h.in bin/ecl-config.pre:util/ecl-config lsp/config.lsp:lsp/config.lsp.in compile.pre:compile.lsp.in cmp/cmpdefs.pre:cmp/cmpdefs.lsp tests/config.lsp tests/Makefile c/ecl_features.h"
11536
11537
11538 ac_config_headers="$ac_config_headers ecl/config.h:ecl/configpre.h"
11539
11540 ac_config_headers="$ac_config_headers ecl/config-internal.h:ecl/configpre-int.h"
11541
11542 cat >confcache <<\_ACEOF
11543 # This file is a shell script that caches the results of configure
11544 # tests run on this system so they can be shared between configure
11545 # scripts and configure runs, see configure's option --config-cache.
11546 # It is not useful on other systems. If it contains results you don't
11547 # want to keep, you may remove or edit it.
11548 #
11549 # config.status only pays attention to the cache file if you give it
11550 # the --recheck option to rerun configure.
11551 #
11552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11554 # following values.
11555
11556 _ACEOF
11557
11558 # The following way of writing the cache mishandles newlines in values,
11559 # but we know of no workaround that is simple, portable, and efficient.
11560 # So, we kill variables containing newlines.
11561 # Ultrix sh set writes to stderr and can't be redirected directly,
11562 # and sets the high bit in the cache file unless we assign to the vars.
11563 (
11564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11565 eval ac_val=\$$ac_var
11566 case $ac_val in #(
11567 *${as_nl}*)
11568 case $ac_var in #(
11569 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11570 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11571 esac
11572 case $ac_var in #(
11573 _ | IFS | as_nl) ;; #(
11574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11575 *) { eval $ac_var=; unset $ac_var;} ;;
11576 esac ;;
11577 esac
11578 done
11579
11580 (set) 2>&1 |
11581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11582 *${as_nl}ac_space=\ *)
11583 # `set' does not quote correctly, so add quotes: double-quote
11584 # substitution turns \\\\ into \\, and sed turns \\ into \.
11585 sed -n \
11586 "s/'/'\\\\''/g;
11587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11588 ;; #(
11589 *)
11590 # `set' quotes correctly as required by POSIX, so do not add quotes.
11591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11592 ;;
11593 esac |
11594 sort
11595 ) |
11596 sed '
11597 /^ac_cv_env_/b end
11598 t clear
11599 :clear
11600 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11601 t end
11602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11603 :end' >>confcache
11604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11605 if test -w "$cache_file"; then
11606 if test "x$cache_file" != "x/dev/null"; then
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11608 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11609 if test ! -f "$cache_file" || test -h "$cache_file"; then
11610 cat confcache >"$cache_file"
11611 else
11612 case $cache_file in #(
11613 */* | ?:*)
11614 mv -f confcache "$cache_file"$$ &&
11615 mv -f "$cache_file"$$ "$cache_file" ;; #(
11616 *)
11617 mv -f confcache "$cache_file" ;;
11618 esac
11619 fi
11620 fi
11621 else
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11623 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11624 fi
11625 fi
11626 rm -f confcache
11627
11628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11629 # Let make expand exec_prefix.
11630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11631
11632 DEFS=-DHAVE_CONFIG_H
11633
11634 ac_libobjs=
11635 ac_ltlibobjs=
11636 U=
11637 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11638 # 1. Remove the extension, and $U if already installed.
11639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11640 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11642 # will be set to the directory where LIBOBJS objects are built.
11643 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11644 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11645 done
11646 LIBOBJS=$ac_libobjs
11647
11648 LTLIBOBJS=$ac_ltlibobjs
11649
11650
11651
11652
11653 : "${CONFIG_STATUS=./config.status}"
11654 ac_write_fail=0
11655 ac_clean_files_save=$ac_clean_files
11656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11658 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11659 as_write_fail=0
11660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11661 #! $SHELL
11662 # Generated by $as_me.
11663 # Run this file to recreate the current configuration.
11664 # Compiler output produced by configure, useful for debugging
11665 # configure, is in config.log if it exists.
11666
11667 debug=false
11668 ac_cs_recheck=false
11669 ac_cs_silent=false
11670
11671 SHELL=\${CONFIG_SHELL-$SHELL}
11672 export SHELL
11673 _ASEOF
11674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11675 ## -------------------- ##
11676 ## M4sh Initialization. ##
11677 ## -------------------- ##
11678
11679 # Be more Bourne compatible
11680 DUALCASE=1; export DUALCASE # for MKS sh
11681 as_nop=:
11682 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11683 then :
11684 emulate sh
11685 NULLCMD=:
11686 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11687 # is contrary to our usage. Disable this feature.
11688 alias -g '${1+"$@"}'='"$@"'
11689 setopt NO_GLOB_SUBST
11690 else $as_nop
11691 case `(set -o) 2>/dev/null` in #(
11692 *posix*) :
11693 set -o posix ;; #(
11694 *) :
11695 ;;
11696 esac
11697 fi
11698
11699
11700
11701 # Reset variables that may have inherited troublesome values from
11702 # the environment.
11703
11704 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11705 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11706 # side effect of setting IFS to empty, thus disabling word splitting.)
11707 # Quoting is to prevent editors from complaining about space-tab.
11708 as_nl='
11709 '
11710 export as_nl
11711 IFS=" "" $as_nl"
11712
11713 PS1='$ '
11714 PS2='> '
11715 PS4='+ '
11716
11717 # Ensure predictable behavior from utilities with locale-dependent output.
11718 LC_ALL=C
11719 export LC_ALL
11720 LANGUAGE=C
11721 export LANGUAGE
11722
11723 # We cannot yet rely on "unset" to work, but we need these variables
11724 # to be unset--not just set to an empty or harmless value--now, to
11725 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11726 # also avoids known problems related to "unset" and subshell syntax
11727 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11728 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11729 do eval test \${$as_var+y} \
11730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11731 done
11732
11733 # Ensure that fds 0, 1, and 2 are open.
11734 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11735 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11736 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11737
11738 # The user is always right.
11739 if ${PATH_SEPARATOR+false} :; then
11740 PATH_SEPARATOR=:
11741 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11742 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11743 PATH_SEPARATOR=';'
11744 }
11745 fi
11746
11747
11748 # Find who we are. Look in the path if we contain no directory separator.
11749 as_myself=
11750 case $0 in #((
11751 *[\\/]* ) as_myself=$0 ;;
11752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755 IFS=$as_save_IFS
11756 case $as_dir in #(((
11757 '') as_dir=./ ;;
11758 */) ;;
11759 *) as_dir=$as_dir/ ;;
11760 esac
11761 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11762 done
11763 IFS=$as_save_IFS
11764
11765 ;;
11766 esac
11767 # We did not find ourselves, most probably we were run as `sh COMMAND'
11768 # in which case we are not to be found in the path.
11769 if test "x$as_myself" = x; then
11770 as_myself=$0
11771 fi
11772 if test ! -f "$as_myself"; then
11773 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11774 exit 1
11775 fi
11776
11777
11778
11779 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11780 # ----------------------------------------
11781 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11782 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11783 # script with STATUS, using 1 if that was 0.
11784 as_fn_error ()
11785 {
11786 as_status=$1; test $as_status -eq 0 && as_status=1
11787 if test "$4"; then
11788 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11790 fi
11791 printf "%s\n" "$as_me: error: $2" >&2
11792 as_fn_exit $as_status
11793 } # as_fn_error
11794
11795
11796
11797 # as_fn_set_status STATUS
11798 # -----------------------
11799 # Set $? to STATUS, without forking.
11800 as_fn_set_status ()
11801 {
11802 return $1
11803 } # as_fn_set_status
11804
11805 # as_fn_exit STATUS
11806 # -----------------
11807 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11808 as_fn_exit ()
11809 {
11810 set +e
11811 as_fn_set_status $1
11812 exit $1
11813 } # as_fn_exit
11814
11815 # as_fn_unset VAR
11816 # ---------------
11817 # Portably unset VAR.
11818 as_fn_unset ()
11819 {
11820 { eval $1=; unset $1;}
11821 }
11822 as_unset=as_fn_unset
11823
11824 # as_fn_append VAR VALUE
11825 # ----------------------
11826 # Append the text in VALUE to the end of the definition contained in VAR. Take
11827 # advantage of any shell optimizations that allow amortized linear growth over
11828 # repeated appends, instead of the typical quadratic growth present in naive
11829 # implementations.
11830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11831 then :
11832 eval 'as_fn_append ()
11833 {
11834 eval $1+=\$2
11835 }'
11836 else $as_nop
11837 as_fn_append ()
11838 {
11839 eval $1=\$$1\$2
11840 }
11841 fi # as_fn_append
11842
11843 # as_fn_arith ARG...
11844 # ------------------
11845 # Perform arithmetic evaluation on the ARGs, and store the result in the
11846 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11847 # must be portable across $(()) and expr.
11848 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11849 then :
11850 eval 'as_fn_arith ()
11851 {
11852 as_val=$(( $* ))
11853 }'
11854 else $as_nop
11855 as_fn_arith ()
11856 {
11857 as_val=`expr "$@" || test $? -eq 1`
11858 }
11859 fi # as_fn_arith
11860
11861
11862 if expr a : '\(a\)' >/dev/null 2>&1 &&
11863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11864 as_expr=expr
11865 else
11866 as_expr=false
11867 fi
11868
11869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11870 as_basename=basename
11871 else
11872 as_basename=false
11873 fi
11874
11875 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11876 as_dirname=dirname
11877 else
11878 as_dirname=false
11879 fi
11880
11881 as_me=`$as_basename -- "$0" ||
11882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11883 X"$0" : 'X\(//\)$' \| \
11884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11885 printf "%s\n" X/"$0" |
11886 sed '/^.*\/\([^/][^/]*\)\/*$/{
11887 s//\1/
11888 q
11889 }
11890 /^X\/\(\/\/\)$/{
11891 s//\1/
11892 q
11893 }
11894 /^X\/\(\/\).*/{
11895 s//\1/
11896 q
11897 }
11898 s/.*/./; q'`
11899
11900 # Avoid depending upon Character Ranges.
11901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11904 as_cr_digits='0123456789'
11905 as_cr_alnum=$as_cr_Letters$as_cr_digits
11906
11907
11908 # Determine whether it's possible to make 'echo' print without a newline.
11909 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11910 # for compatibility with existing Makefiles.
11911 ECHO_C= ECHO_N= ECHO_T=
11912 case `echo -n x` in #(((((
11913 -n*)
11914 case `echo 'xy\c'` in
11915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11916 xy) ECHO_C='\c';;
11917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11918 ECHO_T=' ';;
11919 esac;;
11920 *)
11921 ECHO_N='-n';;
11922 esac
11923
11924 # For backward compatibility with old third-party macros, we provide
11925 # the shell variables $as_echo and $as_echo_n. New code should use
11926 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11927 as_echo='printf %s\n'
11928 as_echo_n='printf %s'
11929
11930 rm -f conf$$ conf$$.exe conf$$.file
11931 if test -d conf$$.dir; then
11932 rm -f conf$$.dir/conf$$.file
11933 else
11934 rm -f conf$$.dir
11935 mkdir conf$$.dir 2>/dev/null
11936 fi
11937 if (echo >conf$$.file) 2>/dev/null; then
11938 if ln -s conf$$.file conf$$ 2>/dev/null; then
11939 as_ln_s='ln -s'
11940 # ... but there are two gotchas:
11941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11943 # In both cases, we have to default to `cp -pR'.
11944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11945 as_ln_s='cp -pR'
11946 elif ln conf$$.file conf$$ 2>/dev/null; then
11947 as_ln_s=ln
11948 else
11949 as_ln_s='cp -pR'
11950 fi
11951 else
11952 as_ln_s='cp -pR'
11953 fi
11954 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11955 rmdir conf$$.dir 2>/dev/null
11956
11957
11958 # as_fn_mkdir_p
11959 # -------------
11960 # Create "$as_dir" as a directory, including parents if necessary.
11961 as_fn_mkdir_p ()
11962 {
11963
11964 case $as_dir in #(
11965 -*) as_dir=./$as_dir;;
11966 esac
11967 test -d "$as_dir" || eval $as_mkdir_p || {
11968 as_dirs=
11969 while :; do
11970 case $as_dir in #(
11971 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11972 *) as_qdir=$as_dir;;
11973 esac
11974 as_dirs="'$as_qdir' $as_dirs"
11975 as_dir=`$as_dirname -- "$as_dir" ||
11976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11977 X"$as_dir" : 'X\(//\)[^/]' \| \
11978 X"$as_dir" : 'X\(//\)$' \| \
11979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11980 printf "%s\n" X"$as_dir" |
11981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11982 s//\1/
11983 q
11984 }
11985 /^X\(\/\/\)[^/].*/{
11986 s//\1/
11987 q
11988 }
11989 /^X\(\/\/\)$/{
11990 s//\1/
11991 q
11992 }
11993 /^X\(\/\).*/{
11994 s//\1/
11995 q
11996 }
11997 s/.*/./; q'`
11998 test -d "$as_dir" && break
11999 done
12000 test -z "$as_dirs" || eval "mkdir $as_dirs"
12001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12002
12003
12004 } # as_fn_mkdir_p
12005 if mkdir -p . 2>/dev/null; then
12006 as_mkdir_p='mkdir -p "$as_dir"'
12007 else
12008 test -d ./-p && rmdir ./-p
12009 as_mkdir_p=false
12010 fi
12011
12012
12013 # as_fn_executable_p FILE
12014 # -----------------------
12015 # Test if FILE is an executable regular file.
12016 as_fn_executable_p ()
12017 {
12018 test -f "$1" && test -x "$1"
12019 } # as_fn_executable_p
12020 as_test_x='test -x'
12021 as_executable_p=as_fn_executable_p
12022
12023 # Sed expression to map a string onto a valid CPP name.
12024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12025
12026 # Sed expression to map a string onto a valid variable name.
12027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12028
12029
12030 exec 6>&1
12031 ## ----------------------------------- ##
12032 ## Main body of $CONFIG_STATUS script. ##
12033 ## ----------------------------------- ##
12034 _ASEOF
12035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12036
12037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12038 # Save the log message, to keep $0 and so on meaningful, and to
12039 # report actual input values of CONFIG_FILES etc. instead of their
12040 # values after options handling.
12041 ac_log="
12042 This file was extended by ecl $as_me 24.5.10, which was
12043 generated by GNU Autoconf 2.71. Invocation command line was
12044
12045 CONFIG_FILES = $CONFIG_FILES
12046 CONFIG_HEADERS = $CONFIG_HEADERS
12047 CONFIG_LINKS = $CONFIG_LINKS
12048 CONFIG_COMMANDS = $CONFIG_COMMANDS
12049 $ $0 $@
12050
12051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12052 "
12053
12054 _ACEOF
12055
12056 case $ac_config_files in *"
12057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12058 esac
12059
12060 case $ac_config_headers in *"
12061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12062 esac
12063
12064
12065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12066 # Files that config.status was made for.
12067 config_files="$ac_config_files"
12068 config_headers="$ac_config_headers"
12069
12070 _ACEOF
12071
12072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12073 ac_cs_usage="\
12074 \`$as_me' instantiates files and other configuration actions
12075 from templates according to the current configuration. Unless the files
12076 and actions are specified as TAGs, all are instantiated by default.
12077
12078 Usage: $0 [OPTION]... [TAG]...
12079
12080 -h, --help print this help, then exit
12081 -V, --version print version number and configuration settings, then exit
12082 --config print configuration, then exit
12083 -q, --quiet, --silent
12084 do not print progress messages
12085 -d, --debug don't remove temporary files
12086 --recheck update $as_me by reconfiguring in the same conditions
12087 --file=FILE[:TEMPLATE]
12088 instantiate the configuration file FILE
12089 --header=FILE[:TEMPLATE]
12090 instantiate the configuration header FILE
12091
12092 Configuration files:
12093 $config_files
12094
12095 Configuration headers:
12096 $config_headers
12097
12098 Report bugs to the package provider."
12099
12100 _ACEOF
12101 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12102 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12104 ac_cs_config='$ac_cs_config_escaped'
12105 ac_cs_version="\\
12106 ecl config.status 24.5.10
12107 configured by $0, generated by GNU Autoconf 2.71,
12108 with options \\"\$ac_cs_config\\"
12109
12110 Copyright (C) 2021 Free Software Foundation, Inc.
12111 This config.status script is free software; the Free Software Foundation
12112 gives unlimited permission to copy, distribute and modify it."
12113
12114 ac_pwd='$ac_pwd'
12115 srcdir='$srcdir'
12116 INSTALL='$INSTALL'
12117 test -n "\$AWK" || AWK=awk
12118 _ACEOF
12119
12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121 # The default lists apply if the user does not specify any file.
12122 ac_need_defaults=:
12123 while test $# != 0
12124 do
12125 case $1 in
12126 --*=?*)
12127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12129 ac_shift=:
12130 ;;
12131 --*=)
12132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12133 ac_optarg=
12134 ac_shift=:
12135 ;;
12136 *)
12137 ac_option=$1
12138 ac_optarg=$2
12139 ac_shift=shift
12140 ;;
12141 esac
12142
12143 case $ac_option in
12144 # Handling of the options.
12145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12146 ac_cs_recheck=: ;;
12147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12148 printf "%s\n" "$ac_cs_version"; exit ;;
12149 --config | --confi | --conf | --con | --co | --c )
12150 printf "%s\n" "$ac_cs_config"; exit ;;
12151 --debug | --debu | --deb | --de | --d | -d )
12152 debug=: ;;
12153 --file | --fil | --fi | --f )
12154 $ac_shift
12155 case $ac_optarg in
12156 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12157 '') as_fn_error $? "missing file argument" ;;
12158 esac
12159 as_fn_append CONFIG_FILES " '$ac_optarg'"
12160 ac_need_defaults=false;;
12161 --header | --heade | --head | --hea )
12162 $ac_shift
12163 case $ac_optarg in
12164 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12165 esac
12166 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12167 ac_need_defaults=false;;
12168 --he | --h)
12169 # Conflict between --help and --header
12170 as_fn_error $? "ambiguous option: \`$1'
12171 Try \`$0 --help' for more information.";;
12172 --help | --hel | -h )
12173 printf "%s\n" "$ac_cs_usage"; exit ;;
12174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12176 ac_cs_silent=: ;;
12177
12178 # This is an error.
12179 -*) as_fn_error $? "unrecognized option: \`$1'
12180 Try \`$0 --help' for more information." ;;
12181
12182 *) as_fn_append ac_config_targets " $1"
12183 ac_need_defaults=false ;;
12184
12185 esac
12186 shift
12187 done
12188
12189 ac_configure_extra_args=
12190
12191 if $ac_cs_silent; then
12192 exec 6>/dev/null
12193 ac_configure_extra_args="$ac_configure_extra_args --silent"
12194 fi
12195
12196 _ACEOF
12197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12198 if \$ac_cs_recheck; then
12199 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12200 shift
12201 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12202 CONFIG_SHELL='$SHELL'
12203 export CONFIG_SHELL
12204 exec "\$@"
12205 fi
12206
12207 _ACEOF
12208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12209 exec 5>>config.log
12210 {
12211 echo
12212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12213 ## Running $as_me. ##
12214 _ASBOX
12215 printf "%s\n" "$ac_log"
12216 } >&5
12217
12218 _ACEOF
12219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12220 _ACEOF
12221
12222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12223
12224 # Handling of arguments.
12225 for ac_config_target in $ac_config_targets
12226 do
12227 case $ac_config_target in
12228 "bare.lsp") CONFIG_FILES="$CONFIG_FILES bare.lsp" ;;
12229 "lsp/load.lsp") CONFIG_FILES="$CONFIG_FILES lsp/load.lsp" ;;
12230 "clos/load.lsp") CONFIG_FILES="$CONFIG_FILES clos/load.lsp" ;;
12231 "cmp/load.lsp") CONFIG_FILES="$CONFIG_FILES cmp/load.lsp" ;;
12232 "../Makefile") CONFIG_FILES="$CONFIG_FILES ../Makefile" ;;
12233 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12234 "c/Makefile") CONFIG_FILES="$CONFIG_FILES c/Makefile" ;;
12235 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12236 "doc/ecl.man") CONFIG_FILES="$CONFIG_FILES doc/ecl.man" ;;
12237 "doc/ecl-config.man") CONFIG_FILES="$CONFIG_FILES doc/ecl-config.man" ;;
12238 "ecl/configpre.h") CONFIG_FILES="$CONFIG_FILES ecl/configpre.h:h/config.h.in" ;;
12239 "ecl/configpre-int.h") CONFIG_FILES="$CONFIG_FILES ecl/configpre-int.h:h/config-internal.h.in" ;;
12240 "bin/ecl-config.pre") CONFIG_FILES="$CONFIG_FILES bin/ecl-config.pre:util/ecl-config" ;;
12241 "lsp/config.lsp") CONFIG_FILES="$CONFIG_FILES lsp/config.lsp:lsp/config.lsp.in" ;;
12242 "compile.pre") CONFIG_FILES="$CONFIG_FILES compile.pre:compile.lsp.in" ;;
12243 "cmp/cmpdefs.pre") CONFIG_FILES="$CONFIG_FILES cmp/cmpdefs.pre:cmp/cmpdefs.lsp" ;;
12244 "tests/config.lsp") CONFIG_FILES="$CONFIG_FILES tests/config.lsp" ;;
12245 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12246 "c/ecl_features.h") CONFIG_FILES="$CONFIG_FILES c/ecl_features.h" ;;
12247 "ecl/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ecl/config.h:ecl/configpre.h" ;;
12248 "ecl/config-internal.h") CONFIG_HEADERS="$CONFIG_HEADERS ecl/config-internal.h:ecl/configpre-int.h" ;;
12249
12250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12251 esac
12252 done
12253
12254
12255 # If the user did not use the arguments to specify the items to instantiate,
12256 # then the envvar interface is used. Set only those that are not.
12257 # We use the long form for the default assignment because of an extremely
12258 # bizarre bug on SunOS 4.1.3.
12259 if $ac_need_defaults; then
12260 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12261 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12262 fi
12263
12264 # Have a temporary directory for convenience. Make it in the build tree
12265 # simply because there is no reason against having it here, and in addition,
12266 # creating and moving files from /tmp can sometimes cause problems.
12267 # Hook for its removal unless debugging.
12268 # Note that there is a small window in which the directory will not be cleaned:
12269 # after its creation but before its name has been assigned to `$tmp'.
12270 $debug ||
12271 {
12272 tmp= ac_tmp=
12273 trap 'exit_status=$?
12274 : "${ac_tmp:=$tmp}"
12275 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12276 ' 0
12277 trap 'as_fn_exit 1' 1 2 13 15
12278 }
12279 # Create a (secure) tmp directory for tmp files.
12280
12281 {
12282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12283 test -d "$tmp"
12284 } ||
12285 {
12286 tmp=./conf$$-$RANDOM
12287 (umask 077 && mkdir "$tmp")
12288 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12289 ac_tmp=$tmp
12290
12291 # Set up the scripts for CONFIG_FILES section.
12292 # No need to generate them if there are no CONFIG_FILES.
12293 # This happens for instance with `./config.status config.h'.
12294 if test -n "$CONFIG_FILES"; then
12295
12296
12297 ac_cr=`echo X | tr X '\015'`
12298 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12299 # But we know of no other shell where ac_cr would be empty at this
12300 # point, so we can use a bashism as a fallback.
12301 if test "x$ac_cr" = x; then
12302 eval ac_cr=\$\'\\r\'
12303 fi
12304 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12305 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12306 ac_cs_awk_cr='\\r'
12307 else
12308 ac_cs_awk_cr=$ac_cr
12309 fi
12310
12311 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12312 _ACEOF
12313
12314
12315 {
12316 echo "cat >conf$$subs.awk <<_ACEOF" &&
12317 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12318 echo "_ACEOF"
12319 } >conf$$subs.sh ||
12320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12321 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12322 ac_delim='%!_!# '
12323 for ac_last_try in false false false false false :; do
12324 . ./conf$$subs.sh ||
12325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12326
12327 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12328 if test $ac_delim_n = $ac_delim_num; then
12329 break
12330 elif $ac_last_try; then
12331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12332 else
12333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12334 fi
12335 done
12336 rm -f conf$$subs.sh
12337
12338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12340 _ACEOF
12341 sed -n '
12342 h
12343 s/^/S["/; s/!.*/"]=/
12344 p
12345 g
12346 s/^[^!]*!//
12347 :repl
12348 t repl
12349 s/'"$ac_delim"'$//
12350 t delim
12351 :nl
12352 h
12353 s/\(.\{148\}\)..*/\1/
12354 t more1
12355 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12356 p
12357 n
12358 b repl
12359 :more1
12360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12361 p
12362 g
12363 s/.\{148\}//
12364 t nl
12365 :delim
12366 h
12367 s/\(.\{148\}\)..*/\1/
12368 t more2
12369 s/["\\]/\\&/g; s/^/"/; s/$/"/
12370 p
12371 b
12372 :more2
12373 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12374 p
12375 g
12376 s/.\{148\}//
12377 t delim
12378 ' <conf$$subs.awk | sed '
12379 /^[^""]/{
12380 N
12381 s/\n//
12382 }
12383 ' >>$CONFIG_STATUS || ac_write_fail=1
12384 rm -f conf$$subs.awk
12385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12386 _ACAWK
12387 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12388 for (key in S) S_is_set[key] = 1
12389 FS = ""
12390
12391 }
12392 {
12393 line = $ 0
12394 nfields = split(line, field, "@")
12395 substed = 0
12396 len = length(field[1])
12397 for (i = 2; i < nfields; i++) {
12398 key = field[i]
12399 keylen = length(key)
12400 if (S_is_set[key]) {
12401 value = S[key]
12402 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12403 len += length(value) + length(field[++i])
12404 substed = 1
12405 } else
12406 len += 1 + keylen
12407 }
12408
12409 print line
12410 }
12411
12412 _ACAWK
12413 _ACEOF
12414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12416 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12417 else
12418 cat
12419 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12420 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12421 _ACEOF
12422
12423 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12424 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12425 # trailing colons and then remove the whole line if VPATH becomes empty
12426 # (actually we leave an empty line to preserve line numbers).
12427 if test "x$srcdir" = x.; then
12428 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12429 h
12430 s///
12431 s/^/:/
12432 s/[ ]*$/:/
12433 s/:\$(srcdir):/:/g
12434 s/:\${srcdir}:/:/g
12435 s/:@srcdir@:/:/g
12436 s/^:*//
12437 s/:*$//
12438 x
12439 s/\(=[ ]*\).*/\1/
12440 G
12441 s/\n//
12442 s/^[^=]*=[ ]*$//
12443 }'
12444 fi
12445
12446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12447 fi # test -n "$CONFIG_FILES"
12448
12449 # Set up the scripts for CONFIG_HEADERS section.
12450 # No need to generate them if there are no CONFIG_HEADERS.
12451 # This happens for instance with `./config.status Makefile'.
12452 if test -n "$CONFIG_HEADERS"; then
12453 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12454 BEGIN {
12455 _ACEOF
12456
12457 # Transform confdefs.h into an awk script `defines.awk', embedded as
12458 # here-document in config.status, that substitutes the proper values into
12459 # config.h.in to produce config.h.
12460
12461 # Create a delimiter string that does not exist in confdefs.h, to ease
12462 # handling of long lines.
12463 ac_delim='%!_!# '
12464 for ac_last_try in false false :; do
12465 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12466 if test -z "$ac_tt"; then
12467 break
12468 elif $ac_last_try; then
12469 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12470 else
12471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12472 fi
12473 done
12474
12475 # For the awk script, D is an array of macro values keyed by name,
12476 # likewise P contains macro parameters if any. Preserve backslash
12477 # newline sequences.
12478
12479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12480 sed -n '
12481 s/.\{148\}/&'"$ac_delim"'/g
12482 t rset
12483 :rset
12484 s/^[ ]*#[ ]*define[ ][ ]*/ /
12485 t def
12486 d
12487 :def
12488 s/\\$//
12489 t bsnl
12490 s/["\\]/\\&/g
12491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12492 D["\1"]=" \3"/p
12493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12494 d
12495 :bsnl
12496 s/["\\]/\\&/g
12497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12498 D["\1"]=" \3\\\\\\n"\\/p
12499 t cont
12500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12501 t cont
12502 d
12503 :cont
12504 n
12505 s/.\{148\}/&'"$ac_delim"'/g
12506 t clear
12507 :clear
12508 s/\\$//
12509 t bsnlc
12510 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12511 d
12512 :bsnlc
12513 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12514 b cont
12515 ' <confdefs.h | sed '
12516 s/'"$ac_delim"'/"\\\
12517 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12518
12519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12520 for (key in D) D_is_set[key] = 1
12521 FS = ""
12522 }
12523 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12524 line = \$ 0
12525 split(line, arg, " ")
12526 if (arg[1] == "#") {
12527 defundef = arg[2]
12528 mac1 = arg[3]
12529 } else {
12530 defundef = substr(arg[1], 2)
12531 mac1 = arg[2]
12532 }
12533 split(mac1, mac2, "(") #)
12534 macro = mac2[1]
12535 prefix = substr(line, 1, index(line, defundef) - 1)
12536 if (D_is_set[macro]) {
12537 # Preserve the white space surrounding the "#".
12538 print prefix "define", macro P[macro] D[macro]
12539 next
12540 } else {
12541 # Replace #undef with comments. This is necessary, for example,
12542 # in the case of _POSIX_SOURCE, which is predefined and required
12543 # on some systems where configure will not decide to define it.
12544 if (defundef == "undef") {
12545 print "/*", prefix defundef, macro, "*/"
12546 next
12547 }
12548 }
12549 }
12550 { print }
12551 _ACAWK
12552 _ACEOF
12553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12554 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12555 fi # test -n "$CONFIG_HEADERS"
12556
12557
12558 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12559 shift
12560 for ac_tag
12561 do
12562 case $ac_tag in
12563 :[FHLC]) ac_mode=$ac_tag; continue;;
12564 esac
12565 case $ac_mode$ac_tag in
12566 :[FHL]*:*);;
12567 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12568 :[FH]-) ac_tag=-:-;;
12569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12570 esac
12571 ac_save_IFS=$IFS
12572 IFS=:
12573 set x $ac_tag
12574 IFS=$ac_save_IFS
12575 shift
12576 ac_file=$1
12577 shift
12578
12579 case $ac_mode in
12580 :L) ac_source=$1;;
12581 :[FH])
12582 ac_file_inputs=
12583 for ac_f
12584 do
12585 case $ac_f in
12586 -) ac_f="$ac_tmp/stdin";;
12587 *) # Look for the file first in the build tree, then in the source tree
12588 # (if the path is not absolute). The absolute path cannot be DOS-style,
12589 # because $ac_f cannot contain `:'.
12590 test -f "$ac_f" ||
12591 case $ac_f in
12592 [\\/$]*) false;;
12593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12594 esac ||
12595 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12596 esac
12597 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12598 as_fn_append ac_file_inputs " '$ac_f'"
12599 done
12600
12601 # Let's still pretend it is `configure' which instantiates (i.e., don't
12602 # use $as_me), people would be surprised to read:
12603 # /* config.h. Generated by config.status. */
12604 configure_input='Generated from '`
12605 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12606 `' by configure.'
12607 if test x"$ac_file" != x-; then
12608 configure_input="$ac_file. $configure_input"
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12610 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12611 fi
12612 # Neutralize special characters interpreted by sed in replacement strings.
12613 case $configure_input in #(
12614 *\&* | *\|* | *\\* )
12615 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12617 *) ac_sed_conf_input=$configure_input;;
12618 esac
12619
12620 case $ac_tag in
12621 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12623 esac
12624 ;;
12625 esac
12626
12627 ac_dir=`$as_dirname -- "$ac_file" ||
12628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12629 X"$ac_file" : 'X\(//\)[^/]' \| \
12630 X"$ac_file" : 'X\(//\)$' \| \
12631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12632 printf "%s\n" X"$ac_file" |
12633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12634 s//\1/
12635 q
12636 }
12637 /^X\(\/\/\)[^/].*/{
12638 s//\1/
12639 q
12640 }
12641 /^X\(\/\/\)$/{
12642 s//\1/
12643 q
12644 }
12645 /^X\(\/\).*/{
12646 s//\1/
12647 q
12648 }
12649 s/.*/./; q'`
12650 as_dir="$ac_dir"; as_fn_mkdir_p
12651 ac_builddir=.
12652
12653 case "$ac_dir" in
12654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12655 *)
12656 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12657 # A ".." for each directory in $ac_dir_suffix.
12658 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12659 case $ac_top_builddir_sub in
12660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12662 esac ;;
12663 esac
12664 ac_abs_top_builddir=$ac_pwd
12665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12666 # for backward compatibility:
12667 ac_top_builddir=$ac_top_build_prefix
12668
12669 case $srcdir in
12670 .) # We are building in place.
12671 ac_srcdir=.
12672 ac_top_srcdir=$ac_top_builddir_sub
12673 ac_abs_top_srcdir=$ac_pwd ;;
12674 [\\/]* | ?:[\\/]* ) # Absolute name.
12675 ac_srcdir=$srcdir$ac_dir_suffix;
12676 ac_top_srcdir=$srcdir
12677 ac_abs_top_srcdir=$srcdir ;;
12678 *) # Relative name.
12679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12680 ac_top_srcdir=$ac_top_build_prefix$srcdir
12681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12682 esac
12683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12684
12685
12686 case $ac_mode in
12687 :F)
12688 #
12689 # CONFIG_FILE
12690 #
12691
12692 case $INSTALL in
12693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12695 esac
12696 _ACEOF
12697
12698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12699 # If the template does not know about datarootdir, expand it.
12700 # FIXME: This hack should be removed a few years after 2.60.
12701 ac_datarootdir_hack=; ac_datarootdir_seen=
12702 ac_sed_dataroot='
12703 /datarootdir/ {
12704 p
12705 q
12706 }
12707 /@datadir@/p
12708 /@docdir@/p
12709 /@infodir@/p
12710 /@localedir@/p
12711 /@mandir@/p'
12712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12713 *datarootdir*) ac_datarootdir_seen=yes;;
12714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12716 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12717 _ACEOF
12718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12719 ac_datarootdir_hack='
12720 s&@datadir@&$datadir&g
12721 s&@docdir@&$docdir&g
12722 s&@infodir@&$infodir&g
12723 s&@localedir@&$localedir&g
12724 s&@mandir@&$mandir&g
12725 s&\\\${datarootdir}&$datarootdir&g' ;;
12726 esac
12727 _ACEOF
12728
12729 # Neutralize VPATH when `$srcdir' = `.'.
12730 # Shell code in configure.ac might set extrasub.
12731 # FIXME: do we really want to maintain this feature?
12732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12733 ac_sed_extra="$ac_vpsub
12734 $extrasub
12735 _ACEOF
12736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12737 :t
12738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12739 s|@configure_input@|$ac_sed_conf_input|;t t
12740 s&@top_builddir@&$ac_top_builddir_sub&;t t
12741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12742 s&@srcdir@&$ac_srcdir&;t t
12743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12744 s&@top_srcdir@&$ac_top_srcdir&;t t
12745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12746 s&@builddir@&$ac_builddir&;t t
12747 s&@abs_builddir@&$ac_abs_builddir&;t t
12748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12749 s&@INSTALL@&$ac_INSTALL&;t t
12750 $ac_datarootdir_hack
12751 "
12752 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12753 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12754
12755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12756 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12758 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12760 which seems to be undefined. Please make sure it is defined" >&5
12761 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12762 which seems to be undefined. Please make sure it is defined" >&2;}
12763
12764 rm -f "$ac_tmp/stdin"
12765 case $ac_file in
12766 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12767 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12768 esac \
12769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12770 ;;
12771 :H)
12772 #
12773 # CONFIG_HEADER
12774 #
12775 if test x"$ac_file" != x-; then
12776 {
12777 printf "%s\n" "/* $configure_input */" >&1 \
12778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12779 } >"$ac_tmp/config.h" \
12780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12781 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12783 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12784 else
12785 rm -f "$ac_file"
12786 mv "$ac_tmp/config.h" "$ac_file" \
12787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12788 fi
12789 else
12790 printf "%s\n" "/* $configure_input */" >&1 \
12791 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12792 || as_fn_error $? "could not create -" "$LINENO" 5
12793 fi
12794 ;;
12795
12796
12797 esac
12798
12799 done # for ac_tag
12800
12801
12802 as_fn_exit 0
12803 _ACEOF
12804 ac_clean_files=$ac_clean_files_save
12805
12806 test $ac_write_fail = 0 ||
12807 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12808
12809
12810 # configure is writing to config.log, and then calls config.status.
12811 # config.status does its own redirection, appending to config.log.
12812 # Unfortunately, on DOS this fails, as config.log is still kept open
12813 # by configure, so config.status won't be able to write to it; its
12814 # output is simply discarded. So we exec the FD to /dev/null,
12815 # effectively closing config.log, so it can be properly (re)opened and
12816 # appended to by config.status. When coming back to configure, we
12817 # need to make the FD available again.
12818 if test "$no_create" != yes; then
12819 ac_cs_success=:
12820 ac_config_status_args=
12821 test "$silent" = yes &&
12822 ac_config_status_args="$ac_config_status_args --quiet"
12823 exec 5>/dev/null
12824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12825 exec 5>>config.log
12826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12827 # would make configure fail if this is the last instruction.
12828 $ac_cs_success || as_fn_exit 1
12829 fi
12830 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12832 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12833 fi
12834
12835
12836 for i in $srcdir/c/*/; do mkdir -p c/`basename $i`; done