Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 2 of 5 — not the installed (fully patched) source.
5 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else $as_nop
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192 then :
193
194 else $as_nop
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 then :
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216 then :
217 break 2
218 fi
219 fi
220 done;;
221 esac
222 as_found=false
223 done
224 IFS=$as_save_IFS
225 if $as_found
226 then :
227
228 else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi
234 fi
235
236
237 if test "x$CONFIG_SHELL" != x
238 then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno
261 then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 printf "%s\n" "$0: Please tell [email protected] about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
272 fi
273 exit 1
274 fi
275 fi
276 fi
277 SHELL=${CONFIG_SHELL-/bin/sh}
278 export SHELL
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
282
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
286 # as_fn_unset VAR
287 # ---------------
288 # Portably unset VAR.
289 as_fn_unset ()
290 {
291 { eval $1=; unset $1;}
292 }
293 as_unset=as_fn_unset
294
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313 # as_fn_nop
314 # ---------
315 # Do nothing but, unlike ":", preserve the value of $?.
316 as_fn_nop ()
317 {
318 return $?
319 }
320 as_nop=as_fn_nop
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else $as_nop
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else $as_nop
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414 # as_fn_nop
415 # ---------
416 # Do nothing but, unlike ":", preserve the value of $?.
417 as_fn_nop ()
418 {
419 return $?
420 }
421 as_nop=as_fn_nop
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547 else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
550 fi
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 as_ln_s='cp -pR'
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
563 as_ln_s='cp -pR'
564 fi
565 else
566 as_ln_s='cp -pR'
567 fi
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
570
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573 else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
576 fi
577
578 as_test_x='test -x'
579 as_executable_p=as_fn_executable_p
580
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586
587
588 test -n "$DJDIR" || exec 7<&0 </dev/null
589 exec 6>&1
590
591 # Name of the host.
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595
596 #
597 # Initializations.
598 #
599 ac_default_prefix=/usr/local
600 ac_clean_files=
601 ac_config_libobj_dir=.
602 LIBOBJS=
603 cross_compiling=no
604 subdirs=
605 MFLAGS=
606 MAKEFLAGS=
607
608 # Identity of this package.
609 PACKAGE_NAME=''
610 PACKAGE_TARNAME=''
611 PACKAGE_VERSION=''
612 PACKAGE_STRING=''
613 PACKAGE_BUGREPORT=''
614 PACKAGE_URL=''
615
616 # Factoring default headers for most tests.
617 ac_includes_default="\
618 #include <stddef.h>
619 #ifdef HAVE_STDIO_H
620 # include <stdio.h>
621 #endif
622 #ifdef HAVE_STDLIB_H
623 # include <stdlib.h>
624 #endif
625 #ifdef HAVE_STRING_H
626 # include <string.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
639 #endif
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_c_list=
648 ac_subst_vars='LTLIBOBJS
649 LIBOBJS
650 use
651 GNU_LD
652 LEADING_UNDERSCORE
653 EXTRA_LOBJS
654 O2FLAGS
655 O3FLAGS
656 NIFLAGS
657 FINAL_CFLAGS
658 ALLOCA
659 NOTIFY
660 TCL_LIBS
661 TCL_DL_LIBS
662 TCL_LIB_SPEC
663 TK_XLIBSW
664 TK_BUILD_LIB_SPEC
665 TK_LIB_SPEC
666 TCL_INCLUDE
667 TK_INCLUDE
668 TK_XINCLUDES
669 TCL_LIBRARY
670 TK_LIBRARY
671 TK_CONFIG_PREFIX
672 TCLSH
673 INFO_DIR
674 EMACS_DEFAULT_EL
675 EMACS_SITE_LISP
676 EMACS
677 HAVE_SIGEMT
678 HAVE_SIGSYS
679 HAVE_SV_ONSTACK
680 USE_CLEANUP
681 HAVE_PUTENV
682 HAVE_SETENV
683 NO_PROFILE
684 RL_LIB
685 RL_OBJS
686 EGREP
687 GREP
688 CLSTANDARD
689 SYSTEM
690 FLISP
691 HAVE_LONG_LONG
692 PAGEWIDTH
693 DOUBLE_BIGENDIAN
694 WORDS_BIGENDIAN
695 LIBIBERTY
696 LIBBFD
697 BUILD_BFD
698 HAVE_OUTPUT_BFD
699 X_CFLAGS
700 X_LIBS
701 XMKMF
702 GMPDIR
703 GMP
704 HAVE_MALLOC_ZONE_MEMALIGN
705 MAKEINFO
706 GCL_CC
707 AWK
708 CPP
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 PRELINK_CHECK
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 VERSION
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 runstatedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_machine
769 enable_widecons
770 enable_safecdr
771 enable_safecdrdbg
772 enable_prelink
773 enable_vssize
774 enable_bdssize
775 enable_ihssize
776 enable_frssize
777 enable_infodir
778 enable_emacsdir
779 enable_xgcl
780 enable_dlopen
781 enable_statsysbfd
782 enable_dynsysbfd
783 enable_custreloc
784 enable_debug
785 enable_static
786 enable_pic
787 enable_gprof
788 enable_dynsysgmp
789 with_x
790 enable_xdr
791 enable_cstackmax
792 enable_immfix
793 enable_fastimmfix
794 enable_ansi
795 enable_japi
796 enable_readline
797 enable_tcltk
798 enable_tkconfig
799 enable_tclconfig
800 enable_notify
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 CPP
811 XMKMF'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 runstatedir='${localstatedir}/run'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: \`$ac_useropt'"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: \`$ac_useropt'"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 printf "%s\n" X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures this package to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 X features:
1419 --x-includes=DIR X include files are in DIR
1420 --x-libraries=DIR X library files are in DIR
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-machine=XXXX will force the use of one of the definitions in h/XXXX.defs
1437 --enable-widecons will use a three word cons with simplified typing
1438 --enable-safecdr will protect cdr from immfix and speed up type processing
1439 --enable-safecdrdbg will debug safecdr code
1440 --enable-prelink will insist that the produced images may be prelinked
1441 --enable-vssize=XXXX will compile in a value stack of size XXX
1442 --enable-bdssize=XXXX will compile in a binding stack of size XXX
1443 --enable-ihssize=XXXX will compile in a invocation history stack of size XXX
1444 --enable-frssize=XXXX will compile in a frame stack of size XXX
1445 --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info
1446 --enable-emacsdir=XXXX will manually specify the location for elisp files
1447 --enable-xgcl=yes will compile in support for XGCL
1448 --enable-dlopen uses dlopen for loading objects, which can then not be retained in saved images
1449 --enable-statsysbfd uses a static system bfd library for loading and relocating object files
1450 --enable-dynsysbfd uses a dynamic shared system bfd library for loading and relocating object files
1451 --enable-custreloc uses custom gcl code if available for loading and relocationing object files
1452 --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
1453 --enable-static will link your GCL against static as opposed to shared system libraries
1454 --enable-pic builds gcl with -fPIC in CFLAGS
1455 --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof
1456 --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
1457 --enable-xdr=yes will compile in support for XDR
1458 --enable-cstackmax=xxxx will ensure that the cstack begins below xxxx or fail
1459 --enable-immfix will enable an immediate fixnum table above the C stack
1460 --enable-fastimmfix=XXXX will reject low immediate fixnums unless 2^XXX can be attained
1461 --enable-ansi builds a large gcl aiming for ansi compliance
1462 --enable-japi=yes will compile in support for the JAPI graphical interface if present on your system
1463 --enable-readline enables command line completion via the readline library
1464 --enable-tcltk will try to build gcl-tk
1465 --enable-tkconfig=XXXX will force the use of a TK_CONFIG_PREFIX=XXXXX as place to look for tkConfig.sh and tclConfig.sh
1466 --enable-tclconfig=XXXX will force the use of a TCL_CONFIG_PREFIX=XXXXX as place to look for tclConfig.sh and tclConfig.sh
1467 --enable-notify=no will disable the automatic notification of gcl maintainers of successful builds/problems
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-x use the X Window System
1473
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1483 XMKMF Path to xmkmf, Makefile generator for X Window System
1484
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 Report bugs to the package provider.
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498 continue
1499 ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518 .) # We are building in place.
1519 ac_srcdir=.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1526 *) # Relative name.
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for configure.gnu first; this name is used for a wrapper for
1535 # Metaconfig's "Configure" on case-insensitive file systems.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1547 fi
1548
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 configure
1553 generated by GNU Autoconf 2.71
1554
1555 Copyright (C) 2021 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1560 fi
1561
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1565
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest.beam
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 printf "%s\n" "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext
1592 then :
1593 ac_retval=0
1594 else $as_nop
1595 printf "%s\n" "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1602
1603 } # ac_fn_c_try_compile
1604
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_cpp ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 printf "%s\n" "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }
1630 then :
1631 ac_retval=0
1632 else $as_nop
1633 printf "%s\n" "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637 fi
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_cpp
1642
1643 # ac_fn_c_try_run LINENO
1644 # ----------------------
1645 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1646 # executables *can* be run.
1647 ac_fn_c_try_run ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_link"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 printf "%s\n" "$ac_try_echo"; } >&5
1657 (eval "$ac_link") 2>&5
1658 ac_status=$?
1659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1661 { { case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 printf "%s\n" "$ac_try_echo"; } >&5
1667 (eval "$ac_try") 2>&5
1668 ac_status=$?
1669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; }; }
1671 then :
1672 ac_retval=0
1673 else $as_nop
1674 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1675 printf "%s\n" "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=$ac_status
1679 fi
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_run
1685
1686 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists and can be compiled using the include files in
1689 # INCLUDES, setting the cache variable VAR accordingly.
1690 ac_fn_c_check_header_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 printf %s "checking for $2... " >&6; }
1695 if eval test \${$3+y}
1696 then :
1697 printf %s "(cached) " >&6
1698 else $as_nop
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"
1705 then :
1706 eval "$3=yes"
1707 else $as_nop
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 printf "%s\n" "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1720 # ----------------------------------------------------
1721 # Tries to find if the field MEMBER exists in type AGGR, after including
1722 # INCLUDES, setting cache variable VAR accordingly.
1723 ac_fn_c_check_member ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1727 printf %s "checking for $2.$3... " >&6; }
1728 if eval test \${$4+y}
1729 then :
1730 printf %s "(cached) " >&6
1731 else $as_nop
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $5
1735 int
1736 main (void)
1737 {
1738 static $2 ac_aggr;
1739 if (ac_aggr.$3)
1740 return 0;
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"
1746 then :
1747 eval "$4=yes"
1748 else $as_nop
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $5
1752 int
1753 main (void)
1754 {
1755 static $2 ac_aggr;
1756 if (sizeof ac_aggr.$3)
1757 return 0;
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"
1763 then :
1764 eval "$4=yes"
1765 else $as_nop
1766 eval "$4=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$4
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 printf "%s\n" "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_member
1778
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1807 }
1808 then :
1809 ac_retval=0
1810 else $as_nop
1811 printf "%s\n" "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 printf %s "checking for $2... " >&6; }
1834 if eval test \${$3+y}
1835 then :
1836 printf %s "(cached) " >&6
1837 else $as_nop
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below. */
1846
1847 #include <limits.h>
1848 #undef $2
1849
1850 /* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1853 #ifdef __cplusplus
1854 extern "C"
1855 #endif
1856 char $2 ();
1857 /* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860 #if defined __stub_$2 || defined __stub___$2
1861 choke me
1862 #endif
1863
1864 int
1865 main (void)
1866 {
1867 return $2 ();
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_link "$LINENO"
1873 then :
1874 eval "$3=yes"
1875 else $as_nop
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1879 conftest$ac_exeext conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 printf "%s\n" "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_func
1887
1888 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1889 # --------------------------------------------
1890 # Tries to find the compile-time value of EXPR in a program that includes
1891 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1892 # computed
1893 ac_fn_c_compute_int ()
1894 {
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if test "$cross_compiling" = yes; then
1897 # Depending upon the size, compute the lo and hi bounds.
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $4
1901 int
1902 main (void)
1903 {
1904 static int test_array [1 - 2 * !(($2) >= 0)];
1905 test_array [0] = 0;
1906 return test_array [0];
1907
1908 ;
1909 return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"
1913 then :
1914 ac_lo=0 ac_mid=0
1915 while :; do
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main (void)
1921 {
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0;
1924 return test_array [0];
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"
1931 then :
1932 ac_hi=$ac_mid; break
1933 else $as_nop
1934 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1935 if test $ac_lo -le $ac_mid; then
1936 ac_lo= ac_hi=
1937 break
1938 fi
1939 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1942 done
1943 else $as_nop
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main (void)
1949 {
1950 static int test_array [1 - 2 * !(($2) < 0)];
1951 test_array [0] = 0;
1952 return test_array [0];
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"
1959 then :
1960 ac_hi=-1 ac_mid=-1
1961 while :; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main (void)
1967 {
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"
1977 then :
1978 ac_lo=$ac_mid; break
1979 else $as_nop
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 done
1989 else $as_nop
1990 ac_lo= ac_hi=
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 # Binary search between lo and hi bounds.
1996 while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 int
2002 main (void)
2003 {
2004 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005 test_array [0] = 0;
2006 return test_array [0];
2007
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"
2013 then :
2014 ac_hi=$ac_mid
2015 else $as_nop
2016 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2019 done
2020 case $ac_lo in #((
2021 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2022 '') ac_retval=1 ;;
2023 esac
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 static long int longval (void) { return $2; }
2029 static unsigned long int ulongval (void) { return $2; }
2030 #include <stdio.h>
2031 #include <stdlib.h>
2032 int
2033 main (void)
2034 {
2035
2036 FILE *f = fopen ("conftest.val", "w");
2037 if (! f)
2038 return 1;
2039 if (($2) < 0)
2040 {
2041 long int i = longval ();
2042 if (i != ($2))
2043 return 1;
2044 fprintf (f, "%ld", i);
2045 }
2046 else
2047 {
2048 unsigned long int i = ulongval ();
2049 if (i != ($2))
2050 return 1;
2051 fprintf (f, "%lu", i);
2052 }
2053 /* Do not output a trailing newline, as this causes \r\n confusion
2054 on some platforms. */
2055 return ferror (f) || fclose (f) != 0;
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_run "$LINENO"
2062 then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 else $as_nop
2065 ac_retval=1
2066 fi
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 rm -f conftest.val
2070
2071 fi
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2074
2075 } # ac_fn_c_compute_int
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 printf %s "checking for $2... " >&6; }
2086 if eval test \${$3+y}
2087 then :
2088 printf %s "(cached) " >&6
2089 else $as_nop
2090 eval "$3=no"
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 int
2095 main (void)
2096 {
2097 if (sizeof ($2))
2098 return 0;
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"
2104 then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 $4
2108 int
2109 main (void)
2110 {
2111 if (sizeof (($2)))
2112 return 0;
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"
2118 then :
2119
2120 else $as_nop
2121 eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 printf "%s\n" "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_c_check_type
2133 ac_configure_args_raw=
2134 for ac_arg
2135 do
2136 case $ac_arg in
2137 *\'*)
2138 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2139 esac
2140 as_fn_append ac_configure_args_raw " '$ac_arg'"
2141 done
2142
2143 case $ac_configure_args_raw in
2144 *$as_nl*)
2145 ac_safe_unquote= ;;
2146 *)
2147 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2148 ac_unsafe_a="$ac_unsafe_z#~"
2149 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2150 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2151 esac
2152
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2156
2157 It was created by $as_me, which was
2158 generated by GNU Autoconf 2.71. Invocation command line was
2159
2160 $ $0$ac_configure_args_raw
2161
2162 _ACEOF
2163 exec 5>>config.log
2164 {
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2169
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2186
2187 _ASUNAME
2188
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192 IFS=$as_save_IFS
2193 case $as_dir in #(((
2194 '') as_dir=./ ;;
2195 */) ;;
2196 *) as_dir=$as_dir/ ;;
2197 esac
2198 printf "%s\n" "PATH: $as_dir"
2199 done
2200 IFS=$as_save_IFS
2201
2202 } >&5
2203
2204 cat >&5 <<_ACEOF
2205
2206
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2210
2211 _ACEOF
2212
2213
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2224 do
2225 for ac_arg
2226 do
2227 case $ac_arg in
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2231 continue ;;
2232 *\'*)
2233 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 esac
2235 case $ac_pass in
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237 2)
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2241 else
2242 case $ac_arg in
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 esac
2250 ;;
2251 -* ) ac_must_keep_next=true ;;
2252 esac
2253 fi
2254 as_fn_append ac_configure_args " '$ac_arg'"
2255 ;;
2256 esac
2257 done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2261
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Sanitize IFS.
2269 IFS=" "" $as_nl"
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 printf "%s\n" "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2279 (
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2302 *)
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 ;;
2305 esac |
2306 sort
2307 )
2308 echo
2309
2310 printf "%s\n" "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2313 echo
2314 for ac_var in $ac_subst_vars
2315 do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 printf "%s\n" "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2323
2324 if test -n "$ac_subst_files"; then
2325 printf "%s\n" "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2328 echo
2329 for ac_var in $ac_subst_files
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 printf "%s\n" "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338 fi
2339
2340 if test -s confdefs.h; then
2341 printf "%s\n" "## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##"
2344 echo
2345 cat confdefs.h
2346 echo
2347 fi
2348 test "$ac_signal" != 0 &&
2349 printf "%s\n" "$as_me: caught signal $ac_signal"
2350 printf "%s\n" "$as_me: exit $exit_status"
2351 } >&5
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 exit $exit_status
2355 ' 0
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 done
2359 ac_signal=0
2360
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2363
2364 printf "%s\n" "/* confdefs.h */" > confdefs.h
2365
2366 # Predefined preprocessor variables.
2367
2368 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2369
2370 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2371
2372 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2373
2374 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2375
2376 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2377
2378 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2379
2380
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 if test -n "$CONFIG_SITE"; then
2384 ac_site_files="$CONFIG_SITE"
2385 elif test "x$prefix" != xNONE; then
2386 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2387 else
2388 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2389 fi
2390
2391 for ac_site_file in $ac_site_files
2392 do
2393 case $ac_site_file in #(
2394 */*) :
2395 ;; #(
2396 *) :
2397 ac_site_file=./$ac_site_file ;;
2398 esac
2399 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file" \
2404 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2406 as_fn_error $? "failed to load site script $ac_site_file
2407 See \`config.log' for more details" "$LINENO" 5; }
2408 fi
2409 done
2410
2411 if test -r "$cache_file"; then
2412 # Some versions of bash will fail to source /dev/null (special files
2413 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2414 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2416 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2417 case $cache_file in
2418 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2419 *) . "./$cache_file";;
2420 esac
2421 fi
2422 else
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2424 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2425 >$cache_file
2426 fi
2427
2428 # Test code for whether the C compiler supports C89 (global declarations)
2429 ac_c_conftest_c89_globals='
2430 /* Does the compiler advertise C89 conformance?
2431 Do not test the value of __STDC__, because some compilers set it to 0
2432 while being otherwise adequately conformant. */
2433 #if !defined __STDC__
2434 # error "Compiler does not advertise C89 conformance"
2435 #endif
2436
2437 #include <stddef.h>
2438 #include <stdarg.h>
2439 struct stat;
2440 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2441 struct buf { int x; };
2442 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2443 static char *e (p, i)
2444 char **p;
2445 int i;
2446 {
2447 return p[i];
2448 }
2449 static char *f (char * (*g) (char **, int), char **p, ...)
2450 {
2451 char *s;
2452 va_list v;
2453 va_start (v,p);
2454 s = g (p, va_arg (v,int));
2455 va_end (v);
2456 return s;
2457 }
2458
2459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2460 function prototypes and stuff, but not \xHH hex character constants.
2461 These do not provoke an error unfortunately, instead are silently treated
2462 as an "x". The following induces an error, until -std is added to get
2463 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2464 array size at least. It is necessary to write \x00 == 0 to get something
2465 that is true only with -std. */
2466 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2467
2468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2469 inside strings and character constants. */
2470 #define FOO(x) '\''x'\''
2471 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2472
2473 int test (int i, double x);
2474 struct s1 {int (*f) (int a);};
2475 struct s2 {int (*f) (double a);};
2476 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2477 int, int);'
2478
2479 # Test code for whether the C compiler supports C89 (body of main).
2480 ac_c_conftest_c89_main='
2481 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2482 '
2483
2484 # Test code for whether the C compiler supports C99 (global declarations)
2485 ac_c_conftest_c99_globals='
2486 // Does the compiler advertise C99 conformance?
2487 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2488 # error "Compiler does not advertise C99 conformance"
2489 #endif
2490
2491 #include <stdbool.h>
2492 extern int puts (const char *);
2493 extern int printf (const char *, ...);
2494 extern int dprintf (int, const char *, ...);
2495 extern void *malloc (size_t);
2496
2497 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2498 // dprintf is used instead of fprintf to avoid needing to declare
2499 // FILE and stderr.
2500 #define debug(...) dprintf (2, __VA_ARGS__)
2501 #define showlist(...) puts (#__VA_ARGS__)
2502 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2503 static void
2504 test_varargs_macros (void)
2505 {
2506 int x = 1234;
2507 int y = 5678;
2508 debug ("Flag");
2509 debug ("X = %d\n", x);
2510 showlist (The first, second, and third items.);
2511 report (x>y, "x is %d but y is %d", x, y);
2512 }
2513
2514 // Check long long types.
2515 #define BIG64 18446744073709551615ull
2516 #define BIG32 4294967295ul
2517 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2518 #if !BIG_OK
2519 #error "your preprocessor is broken"
2520 #endif
2521 #if BIG_OK
2522 #else
2523 #error "your preprocessor is broken"
2524 #endif
2525 static long long int bignum = -9223372036854775807LL;
2526 static unsigned long long int ubignum = BIG64;
2527
2528 struct incomplete_array
2529 {
2530 int datasize;
2531 double data[];
2532 };
2533
2534 struct named_init {
2535 int number;
2536 const wchar_t *name;
2537 double average;
2538 };
2539
2540 typedef const char *ccp;
2541
2542 static inline int
2543 test_restrict (ccp restrict text)
2544 {
2545 // See if C++-style comments work.
2546 // Iterate through items via the restricted pointer.
2547 // Also check for declarations in for loops.
2548 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2549 continue;
2550 return 0;
2551 }
2552
2553 // Check varargs and va_copy.
2554 static bool
2555 test_varargs (const char *format, ...)
2556 {
2557 va_list args;
2558 va_start (args, format);
2559 va_list args_copy;
2560 va_copy (args_copy, args);
2561
2562 const char *str = "";
2563 int number = 0;
2564 float fnumber = 0;
2565
2566 while (*format)
2567 {
2568 switch (*format++)
2569 {
2570 case '\''s'\'': // string
2571 str = va_arg (args_copy, const char *);
2572 break;
2573 case '\''d'\'': // int
2574 number = va_arg (args_copy, int);
2575 break;
2576 case '\''f'\'': // float
2577 fnumber = va_arg (args_copy, double);
2578 break;
2579 default:
2580 break;
2581 }
2582 }
2583 va_end (args_copy);
2584 va_end (args);
2585
2586 return *str && number && fnumber;
2587 }
2588 '
2589
2590 # Test code for whether the C compiler supports C99 (body of main).
2591 ac_c_conftest_c99_main='
2592 // Check bool.
2593 _Bool success = false;
2594 success |= (argc != 0);
2595
2596 // Check restrict.
2597 if (test_restrict ("String literal") == 0)
2598 success = true;
2599 char *restrict newvar = "Another string";
2600
2601 // Check varargs.
2602 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2603 test_varargs_macros ();
2604
2605 // Check flexible array members.
2606 struct incomplete_array *ia =
2607 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2608 ia->datasize = 10;
2609 for (int i = 0; i < ia->datasize; ++i)
2610 ia->data[i] = i * 1.234;
2611
2612 // Check named initializers.
2613 struct named_init ni = {
2614 .number = 34,
2615 .name = L"Test wide string",
2616 .average = 543.34343,
2617 };
2618
2619 ni.number = 58;
2620
2621 int dynamic_array[ni.number];
2622 dynamic_array[0] = argv[0][0];
2623 dynamic_array[ni.number - 1] = 543;
2624
2625 // work around unused variable warnings
2626 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2627 || dynamic_array[ni.number - 1] != 543);
2628 '
2629
2630 # Test code for whether the C compiler supports C11 (global declarations)
2631 ac_c_conftest_c11_globals='
2632 // Does the compiler advertise C11 conformance?
2633 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2634 # error "Compiler does not advertise C11 conformance"
2635 #endif
2636
2637 // Check _Alignas.
2638 char _Alignas (double) aligned_as_double;
2639 char _Alignas (0) no_special_alignment;
2640 extern char aligned_as_int;
2641 char _Alignas (0) _Alignas (int) aligned_as_int;
2642
2643 // Check _Alignof.
2644 enum
2645 {
2646 int_alignment = _Alignof (int),
2647 int_array_alignment = _Alignof (int[100]),
2648 char_alignment = _Alignof (char)
2649 };
2650 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2651
2652 // Check _Noreturn.
2653 int _Noreturn does_not_return (void) { for (;;) continue; }
2654
2655 // Check _Static_assert.
2656 struct test_static_assert
2657 {
2658 int x;
2659 _Static_assert (sizeof (int) <= sizeof (long int),
2660 "_Static_assert does not work in struct");
2661 long int y;
2662 };
2663
2664 // Check UTF-8 literals.
2665 #define u8 syntax error!
2666 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2667
2668 // Check duplicate typedefs.
2669 typedef long *long_ptr;
2670 typedef long int *long_ptr;
2671 typedef long_ptr long_ptr;
2672
2673 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2674 struct anonymous
2675 {
2676 union {
2677 struct { int i; int j; };
2678 struct { int k; long int l; } w;
2679 };
2680 int m;
2681 } v1;
2682 '
2683
2684 # Test code for whether the C compiler supports C11 (body of main).
2685 ac_c_conftest_c11_main='
2686 _Static_assert ((offsetof (struct anonymous, i)
2687 == offsetof (struct anonymous, w.k)),
2688 "Anonymous union alignment botch");
2689 v1.i = 2;
2690 v1.w.k = 5;
2691 ok |= v1.i != 5;
2692 '
2693
2694 # Test code for whether the C compiler supports C11 (complete).
2695 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2696 ${ac_c_conftest_c99_globals}
2697 ${ac_c_conftest_c11_globals}
2698
2699 int
2700 main (int argc, char **argv)
2701 {
2702 int ok = 0;
2703 ${ac_c_conftest_c89_main}
2704 ${ac_c_conftest_c99_main}
2705 ${ac_c_conftest_c11_main}
2706 return ok;
2707 }
2708 "
2709
2710 # Test code for whether the C compiler supports C99 (complete).
2711 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2712 ${ac_c_conftest_c99_globals}
2713
2714 int
2715 main (int argc, char **argv)
2716 {
2717 int ok = 0;
2718 ${ac_c_conftest_c89_main}
2719 ${ac_c_conftest_c99_main}
2720 return ok;
2721 }
2722 "
2723
2724 # Test code for whether the C compiler supports C89 (complete).
2725 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2726
2727 int
2728 main (int argc, char **argv)
2729 {
2730 int ok = 0;
2731 ${ac_c_conftest_c89_main}
2732 return ok;
2733 }
2734 "
2735
2736 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2737 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2738 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2739 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2740 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2741 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2742 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2743 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2744 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2745
2746 # Auxiliary files required by this configure script.
2747 ac_aux_files="config.guess config.sub"
2748
2749 # Locations in which to look for auxiliary files.
2750 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2751
2752 # Search for a directory containing all of the required auxiliary files,
2753 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2754 # If we don't find one directory that contains all the files we need,
2755 # we report the set of missing files from the *first* directory in
2756 # $ac_aux_dir_candidates and give up.
2757 ac_missing_aux_files=""
2758 ac_first_candidate=:
2759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 as_found=false
2762 for as_dir in $ac_aux_dir_candidates
2763 do
2764 IFS=$as_save_IFS
2765 case $as_dir in #(((
2766 '') as_dir=./ ;;
2767 */) ;;
2768 *) as_dir=$as_dir/ ;;
2769 esac
2770 as_found=:
2771
2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2773 ac_aux_dir_found=yes
2774 ac_install_sh=
2775 for ac_aux in $ac_aux_files
2776 do
2777 # As a special case, if "install-sh" is required, that requirement
2778 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2779 # and $ac_install_sh is set appropriately for whichever one is found.
2780 if test x"$ac_aux" = x"install-sh"
2781 then
2782 if test -f "${as_dir}install-sh"; then
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2784 ac_install_sh="${as_dir}install-sh -c"
2785 elif test -f "${as_dir}install.sh"; then
2786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2787 ac_install_sh="${as_dir}install.sh -c"
2788 elif test -f "${as_dir}shtool"; then
2789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2790 ac_install_sh="${as_dir}shtool install -c"
2791 else
2792 ac_aux_dir_found=no
2793 if $ac_first_candidate; then
2794 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2795 else
2796 break
2797 fi
2798 fi
2799 else
2800 if test -f "${as_dir}${ac_aux}"; then
2801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2802 else
2803 ac_aux_dir_found=no
2804 if $ac_first_candidate; then
2805 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2806 else
2807 break
2808 fi
2809 fi
2810 fi
2811 done
2812 if test "$ac_aux_dir_found" = yes; then
2813 ac_aux_dir="$as_dir"
2814 break
2815 fi
2816 ac_first_candidate=false
2817
2818 as_found=false
2819 done
2820 IFS=$as_save_IFS
2821 if $as_found
2822 then :
2823
2824 else $as_nop
2825 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2826 fi
2827
2828
2829 # These three variables are undocumented and unsupported,
2830 # and are intended to be withdrawn in a future Autoconf release.
2831 # They can cause serious problems if a builder's source tree is in a directory
2832 # whose full name contains unusual characters.
2833 if test -f "${ac_aux_dir}config.guess"; then
2834 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2835 fi
2836 if test -f "${ac_aux_dir}config.sub"; then
2837 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2838 fi
2839 if test -f "$ac_aux_dir/configure"; then
2840 ac_configure="$SHELL ${ac_aux_dir}configure"
2841 fi
2842
2843 # Check that the precious variables saved in the cache have kept the same
2844 # value.
2845 ac_cache_corrupted=false
2846 for ac_var in $ac_precious_vars; do
2847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2848 eval ac_new_set=\$ac_env_${ac_var}_set
2849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2850 eval ac_new_val=\$ac_env_${ac_var}_value
2851 case $ac_old_set,$ac_new_set in
2852 set,)
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2854 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2855 ac_cache_corrupted=: ;;
2856 ,set)
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2858 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2859 ac_cache_corrupted=: ;;
2860 ,);;
2861 *)
2862 if test "x$ac_old_val" != "x$ac_new_val"; then
2863 # differences in whitespace do not lead to failure.
2864 ac_old_val_w=`echo x $ac_old_val`
2865 ac_new_val_w=`echo x $ac_new_val`
2866 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2868 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2869 ac_cache_corrupted=:
2870 else
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2872 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2873 eval $ac_var=\$ac_old_val
2874 fi
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2876 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2878 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2879 fi;;
2880 esac
2881 # Pass precious variables to config.status.
2882 if test "$ac_new_set" = set; then
2883 case $ac_new_val in
2884 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2885 *) ac_arg=$ac_var=$ac_new_val ;;
2886 esac
2887 case " $ac_configure_args " in
2888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2889 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2890 esac
2891 fi
2892 done
2893 if $ac_cache_corrupted; then
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2897 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2898 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2899 and start over" "$LINENO" 5
2900 fi
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910
2911
2912
2913 ac_config_headers="$ac_config_headers h/gclincl.h"
2914
2915
2916 VERSION=`cat majvers`.`cat minvers`
2917
2918
2919
2920 #
2921 # Host information
2922 #
2923
2924
2925
2926
2927
2928 # Make sure we can run config.sub.
2929 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2930 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2931
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2933 printf %s "checking build system type... " >&6; }
2934 if test ${ac_cv_build+y}
2935 then :
2936 printf %s "(cached) " >&6
2937 else $as_nop
2938 ac_build_alias=$build_alias
2939 test "x$ac_build_alias" = x &&
2940 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2941 test "x$ac_build_alias" = x &&
2942 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2943 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2944 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2945
2946 fi
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2948 printf "%s\n" "$ac_cv_build" >&6; }
2949 case $ac_cv_build in
2950 *-*-*) ;;
2951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2952 esac
2953 build=$ac_cv_build
2954 ac_save_IFS=$IFS; IFS='-'
2955 set x $ac_cv_build
2956 shift
2957 build_cpu=$1
2958 build_vendor=$2
2959 shift; shift
2960 # Remember, the first character of IFS is used to create $*,
2961 # except with old shells:
2962 build_os=$*
2963 IFS=$ac_save_IFS
2964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2965
2966
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2968 printf %s "checking host system type... " >&6; }
2969 if test ${ac_cv_host+y}
2970 then :
2971 printf %s "(cached) " >&6
2972 else $as_nop
2973 if test "x$host_alias" = x; then
2974 ac_cv_host=$ac_cv_build
2975 else
2976 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2977 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2978 fi
2979
2980 fi
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2982 printf "%s\n" "$ac_cv_host" >&6; }
2983 case $ac_cv_host in
2984 *-*-*) ;;
2985 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2986 esac
2987 host=$ac_cv_host
2988 ac_save_IFS=$IFS; IFS='-'
2989 set x $ac_cv_host
2990 shift
2991 host_cpu=$1
2992 host_vendor=$2
2993 shift; shift
2994 # Remember, the first character of IFS is used to create $*,
2995 # except with old shells:
2996 host_os=$*
2997 IFS=$ac_save_IFS
2998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2999
3000
3001 canonical=$host
3002 my_host_kernel=`echo $host_os | awk '{j=split($1,A,"-");print A[1]}'`
3003 my_host_system=`echo $host_os | awk '{j=split($1,A,"-");if (j>=2) print A[2]}'`
3004
3005 cat >>confdefs.h <<_ACEOF
3006 #define HOST_CPU "`echo $host_cpu | awk '{print toupper($0)}'`"
3007 _ACEOF
3008
3009
3010 cat >>confdefs.h <<_ACEOF
3011 #define HOST_KERNEL "`echo $my_host_kernel | awk '{print toupper($0)}'`"
3012 _ACEOF
3013
3014 if test "$my_host_system" != "" ; then
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define HOST_SYSTEM "`echo $my_host_system | awk '{print toupper($0)}'`"
3018 _ACEOF
3019
3020 fi
3021 ## host=CPU-COMPANY-SYSTEM
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: host=$host" >&5
3023 printf "%s\n" "host=$host" >&6; }
3024
3025 use=unknown
3026 case $canonical in
3027 sh4*linux*) use=sh4-linux;;
3028 *x86_64*linux*) use=amd64-linux;;
3029 *x86_64*kfreebsd*) use=amd64-kfreebsd;;
3030 *86*linux*) use=386-linux;;
3031 *riscv64*linux*) use=riscv64-linux;;
3032 *86*kfreebsd*) use=386-kfreebsd;;
3033 *86*gnu*) use=386-gnu;;
3034 m68k*linux*) use=m68k-linux;;
3035 alpha*linux*) use=alpha-linux;;
3036 mips*linux*) use=mips-linux;;
3037 mipsel*linux*) use=mipsel-linux;;
3038 sparc*linux*) use=sparc-linux;;
3039 aarch64*linux*) use=aarch64-linux;;
3040 arm*linux*hf) use=armhf-linux;;
3041 arm*linux*) use=arm-linux;;
3042 s390*linux*) use=s390-linux;;
3043 ia64*linux*) use=ia64-linux;;
3044 hppa*linux*) use=hppa-linux;;
3045 loongarch64*linux*) use=loongarch64-linux;;
3046 powerpc*linux*) use=powerpc-linux;;
3047 powerpc-*-darwin*) use=powerpc-macosx;;
3048 *86*darwin*) use=386-macosx;;
3049 i*mingw*|i*msys*) use=mingw;;
3050 *cygwin*)
3051 if $CC -v 2>&1 | fgrep ming > /dev/null ;
3052 then use=mingw
3053 else use=gnuwin95
3054 fi;;
3055 *openbsd*) use=FreeBSD;;
3056 sparc-sun-solaris*) use=solaris;;
3057 i?86-pc-solaris*) use=solaris-i386;;
3058 esac
3059
3060 # Check whether --enable-machine was given.
3061 if test ${enable_machine+y}
3062 then :
3063 enableval=$enable_machine; echo enable_machine=$enableval ; use=$enableval
3064 fi
3065
3066
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: use=$use" >&5
3068 printf "%s\n" "use=$use" >&6; }
3069
3070 def_dlopen="no"
3071 def_statsysbfd="no"
3072 def_custreloc="yes"
3073 def_oldgmp="no"
3074 def_pic="no";
3075 def_static="no";
3076 def_debug="no";
3077 case $use in
3078 *kfreebsd)
3079 ln -snf linux.defs h/$use.defs;;
3080 *gnu)
3081 ln -snf linux.defs h/$use.defs;;
3082 *linux)
3083 ln -snf linux.defs h/$use.defs;
3084 case $use in
3085 ia64*)
3086 def_dlopen="yes" ; def_custreloc="no" ;;
3087 hppa*)
3088 def_pic="yes" ;;
3089 esac;;
3090 esac
3091
3092 # Check whether --enable-widecons was given.
3093 if test ${enable_widecons+y}
3094 then :
3095 enableval=$enable_widecons; if test "$enableval" = "yes" ; then
3096 printf "%s\n" "#define WIDE_CONS 1" >>confdefs.h
3097 fi
3098 fi
3099
3100
3101 # Check whether --enable-safecdr was given.
3102 if test ${enable_safecdr+y}
3103 then :
3104 enableval=$enable_safecdr; if test "$enableval" = "yes" ; then
3105
3106 printf "%s\n" "#define USE_SAFE_CDR 1" >>confdefs.h
3107
3108 # Check whether --enable-safecdrdbg was given.
3109 if test ${enable_safecdrdbg+y}
3110 then :
3111 enableval=$enable_safecdrdbg; if test "$enableval" = "yes" ; then
3112 printf "%s\n" "#define DEBUG_SAFE_CDR 1" >>confdefs.h
3113 fi
3114 fi
3115
3116 fi
3117 fi
3118
3119
3120 # Check whether --enable-prelink was given.
3121 if test ${enable_prelink+y}
3122 then :
3123 enableval=$enable_prelink; if test "$enable_prelink" = "yes" ; then PRELINK_CHECK=t; fi
3124 fi
3125
3126
3127
3128 # Check whether --enable-vssize was given.
3129 if test ${enable_vssize+y}
3130 then :
3131 enableval=$enable_vssize;
3132 printf "%s\n" "#define VSSIZE $enableval" >>confdefs.h
3133
3134 fi
3135
3136 # Check whether --enable-bdssize was given.
3137 if test ${enable_bdssize+y}
3138 then :
3139 enableval=$enable_bdssize;
3140 printf "%s\n" "#define BDSSIZE $enableval" >>confdefs.h
3141
3142 fi
3143
3144 # Check whether --enable-ihssize was given.
3145 if test ${enable_ihssize+y}
3146 then :
3147 enableval=$enable_ihssize;
3148 printf "%s\n" "#define IHSSIZE $enableval" >>confdefs.h
3149
3150 fi
3151
3152 # Check whether --enable-frssize was given.
3153 if test ${enable_frssize+y}
3154 then :
3155 enableval=$enable_frssize;
3156 printf "%s\n" "#define FRSSIZE $enableval" >>confdefs.h
3157
3158 fi
3159
3160
3161 # Check whether --enable-infodir was given.
3162 if test ${enable_infodir+y}
3163 then :
3164 enableval=$enable_infodir; INFO_DIR=$enableval
3165 else $as_nop
3166 INFO_DIR=$prefix/share/info
3167 fi
3168
3169 INFO_DIR=`eval echo $INFO_DIR/`
3170
3171 # Check whether --enable-emacsdir was given.
3172 if test ${enable_emacsdir+y}
3173 then :
3174 enableval=$enable_emacsdir; EMACS_SITE_LISP=$enableval
3175 else $as_nop
3176 EMACS_SITE_LISP=$prefix/share/emacs/site-lisp
3177 fi
3178
3179 EMACS_SITE_LISP=`eval echo $EMACS_SITE_LISP/`
3180
3181 # Check whether --enable-xgcl was given.
3182 if test ${enable_xgcl+y}
3183 then :
3184 enableval=$enable_xgcl;
3185 else $as_nop
3186 enable_xgcl=yes
3187 fi
3188
3189
3190 # Check whether --enable-dlopen was given.
3191 if test ${enable_dlopen+y}
3192 then :
3193 enableval=$enable_dlopen;
3194 else $as_nop
3195 enable_dlopen=$def_dlopen
3196 fi
3197
3198 # Check whether --enable-statsysbfd was given.
3199 if test ${enable_statsysbfd+y}
3200 then :
3201 enableval=$enable_statsysbfd;
3202 else $as_nop
3203 enable_statsysbfd=$def_statsysbfd
3204 fi
3205
3206 # Check whether --enable-dynsysbfd was given.
3207 if test ${enable_dynsysbfd+y}
3208 then :
3209 enableval=$enable_dynsysbfd;
3210 else $as_nop
3211 enable_dynsysbfd=no
3212 fi
3213
3214 # Check whether --enable-custreloc was given.
3215 if test ${enable_custreloc+y}
3216 then :
3217 enableval=$enable_custreloc;
3218 else $as_nop
3219 enable_custreloc=$def_custreloc
3220 fi
3221
3222
3223 # Check whether --enable-debug was given.
3224 if test ${enable_debug+y}
3225 then :
3226 enableval=$enable_debug;
3227 else $as_nop
3228 enable_debug=$def_debug
3229 fi
3230
3231 # Check whether --enable-static was given.
3232 if test ${enable_static+y}
3233 then :
3234 enableval=$enable_static;
3235 else $as_nop
3236 enable_static=$def_static
3237 fi
3238
3239 # Check whether --enable-pic was given.
3240 if test ${enable_pic+y}
3241 then :
3242 enableval=$enable_pic;
3243 else $as_nop
3244 enable_pic=$def_pic
3245 fi
3246
3247
3248 load_opt=0
3249 if test "$enable_dlopen" = "yes" ; then
3250 load_opt=1
3251 fi
3252 if test "$enable_statsysbfd" = "yes" ; then
3253 case $load_opt in
3254 0) load_opt=1;;
3255 1) load_opt=2;;
3256 esac
3257 fi
3258 if test "$enable_dynsysbfd" = "yes" ; then
3259 case $load_opt in
3260 0) load_opt=1;;
3261 1) load_opt=2;;
3262 2) load_opt=3;;
3263 esac
3264 fi
3265 if test "$enable_custreloc" = "yes" ; then
3266 case $load_opt in
3267 0) load_opt=1;;
3268 1) load_opt=2;;
3269 2) load_opt=3;;
3270 3) load_opt=4;;
3271 4) load_opt=5;;
3272 esac
3273 fi
3274
3275 if test "$load_opt" != "1" ; then
3276 echo "Exactly one loader option must be chosen: dlopen=$enable_dlopen statsysbfd=$enable_statsysbfd dynsysbfd=$enable_dynsysbfd custreloc=$enable_custreloc"
3277 as_fn_error $? "loader option failure" "$LINENO" 5
3278 fi
3279
3280
3281 #
3282 # System programs
3283 #
3284
3285 # We set the default CFLAGS below, and don't want the autoconf default
3286 # CM 20040106
3287 if test "$CFLAGS" = "" ; then
3288 CFLAGS=" "
3289 fi
3290 if test "$LDFLAGS" = "" ; then
3291 LDFLAGS=" "
3292 fi
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 printf %s "checking for $ac_word... " >&6; }
3313 if test ${ac_cv_prog_CC+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else $as_nop
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 case $as_dir in #(((
3325 '') as_dir=./ ;;
3326 */) ;;
3327 *) as_dir=$as_dir/ ;;
3328 esac
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 CC=$ac_cv_prog_CC
3342 if test -n "$CC"; then
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 printf "%s\n" "$CC" >&6; }
3345 else
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 printf "%s\n" "no" >&6; }
3348 fi
3349
3350
3351 fi
3352 if test -z "$ac_cv_prog_CC"; then
3353 ac_ct_CC=$CC
3354 # Extract the first word of "gcc", so it can be a program name with args.
3355 set dummy gcc; ac_word=$2
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 printf %s "checking for $ac_word... " >&6; }
3358 if test ${ac_cv_prog_ac_ct_CC+y}
3359 then :
3360 printf %s "(cached) " >&6
3361 else $as_nop
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 case $as_dir in #(((
3370 '') as_dir=./ ;;
3371 */) ;;
3372 *) as_dir=$as_dir/ ;;
3373 esac
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_ac_ct_CC="gcc"
3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3378 break 2
3379 fi
3380 done
3381 done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 printf "%s\n" "$ac_ct_CC" >&6; }
3390 else
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 printf "%s\n" "no" >&6; }
3393 fi
3394
3395 if test "x$ac_ct_CC" = x; then
3396 CC=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399 yes:)
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3403 esac
3404 CC=$ac_ct_CC
3405 fi
3406 else
3407 CC="$ac_cv_prog_CC"
3408 fi
3409
3410 if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}cc; ac_word=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s "checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_CC+y}
3417 then :
3418 printf %s "(cached) " >&6
3419 else $as_nop
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 case $as_dir in #(((
3428 '') as_dir=./ ;;
3429 */) ;;
3430 *) as_dir=$as_dir/ ;;
3431 esac
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_CC="${ac_tool_prefix}cc"
3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 CC=$ac_cv_prog_CC
3445 if test -n "$CC"; then
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3447 printf "%s\n" "$CC" >&6; }
3448 else
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 printf "%s\n" "no" >&6; }
3451 fi
3452
3453
3454 fi
3455 fi
3456 if test -z "$CC"; then
3457 # Extract the first word of "cc", so it can be a program name with args.
3458 set dummy cc; ac_word=$2
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 printf %s "checking for $ac_word... " >&6; }
3461 if test ${ac_cv_prog_CC+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else $as_nop
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 ac_prog_rejected=no
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 case $as_dir in #(((
3474 '') as_dir=./ ;;
3475 */) ;;
3476 *) as_dir=$as_dir/ ;;
3477 esac
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3480 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3481 ac_prog_rejected=yes
3482 continue
3483 fi
3484 ac_cv_prog_CC="cc"
3485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 if test $ac_prog_rejected = yes; then
3493 # We found a bogon in the path, so make sure we never use it.
3494 set dummy $ac_cv_prog_CC
3495 shift
3496 if test $# != 0; then
3497 # We chose a different compiler from the bogus one.
3498 # However, it has the same basename, so the bogon will be chosen
3499 # first if we set CC to just the basename; use the full file name.
3500 shift
3501 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3502 fi
3503 fi
3504 fi
3505 fi
3506 CC=$ac_cv_prog_CC
3507 if test -n "$CC"; then
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509 printf "%s\n" "$CC" >&6; }
3510 else
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 printf "%s\n" "no" >&6; }
3513 fi
3514
3515
3516 fi
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 for ac_prog in cl.exe
3520 do
3521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 printf %s "checking for $ac_word... " >&6; }
3525 if test ${ac_cv_prog_CC+y}
3526 then :
3527 printf %s "(cached) " >&6
3528 else $as_nop
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 case $as_dir in #(((
3537 '') as_dir=./ ;;
3538 */) ;;
3539 *) as_dir=$as_dir/ ;;
3540 esac
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 printf "%s\n" "$CC" >&6; }
3557 else
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 printf "%s\n" "no" >&6; }
3560 fi
3561
3562
3563 test -n "$CC" && break
3564 done
3565 fi
3566 if test -z "$CC"; then
3567 ac_ct_CC=$CC
3568 for ac_prog in cl.exe
3569 do
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 printf %s "checking for $ac_word... " >&6; }
3574 if test ${ac_cv_prog_ac_ct_CC+y}
3575 then :
3576 printf %s "(cached) " >&6
3577 else $as_nop
3578 if test -n "$ac_ct_CC"; then
3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584 IFS=$as_save_IFS
3585 case $as_dir in #(((
3586 '') as_dir=./ ;;
3587 */) ;;
3588 *) as_dir=$as_dir/ ;;
3589 esac
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="$ac_prog"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 printf "%s\n" "$ac_ct_CC" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 test -n "$ac_ct_CC" && break
3613 done
3614
3615 if test "x$ac_ct_CC" = x; then
3616 CC=""
3617 else
3618 case $cross_compiling:$ac_tool_warned in
3619 yes:)
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624 CC=$ac_ct_CC
3625 fi
3626 fi
3627
3628 fi
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}clang; ac_word=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s "checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_CC+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_CC="${ac_tool_prefix}clang"
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657 done
3658 done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 CC=$ac_cv_prog_CC
3664 if test -n "$CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666 printf "%s\n" "$CC" >&6; }
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670 fi
3671
3672
3673 fi
3674 if test -z "$ac_cv_prog_CC"; then
3675 ac_ct_CC=$CC
3676 # Extract the first word of "clang", so it can be a program name with args.
3677 set dummy clang; ac_word=$2
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 printf %s "checking for $ac_word... " >&6; }
3680 if test ${ac_cv_prog_ac_ct_CC+y}
3681 then :
3682 printf %s "(cached) " >&6
3683 else $as_nop
3684 if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 case $as_dir in #(((
3692 '') as_dir=./ ;;
3693 */) ;;
3694 *) as_dir=$as_dir/ ;;
3695 esac
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_ac_ct_CC="clang"
3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702 done
3703 done
3704 IFS=$as_save_IFS
3705
3706 fi
3707 fi
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711 printf "%s\n" "$ac_ct_CC" >&6; }
3712 else
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 printf "%s\n" "no" >&6; }
3715 fi
3716
3717 if test "x$ac_ct_CC" = x; then
3718 CC=""
3719 else
3720 case $cross_compiling:$ac_tool_warned in
3721 yes:)
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724 ac_tool_warned=yes ;;
3725 esac
3726 CC=$ac_ct_CC
3727 fi
3728 else
3729 CC="$ac_cv_prog_CC"
3730 fi
3731
3732 fi
3733
3734
3735 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details" "$LINENO" 5; }
3739
3740 # Provide some information about the compiler.
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3742 set X $ac_compile
3743 ac_compiler=$2
3744 for ac_option in --version -v -V -qversion -version; do
3745 { { ac_try="$ac_compiler $ac_option >&5"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 printf "%s\n" "$ac_try_echo"; } >&5
3752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3753 ac_status=$?
3754 if test -s conftest.err; then
3755 sed '10a\
3756 ... rest of stderr output deleted ...
3757 10q' conftest.err >conftest.er1
3758 cat conftest.er1 >&5
3759 fi
3760 rm -f conftest.er1 conftest.err
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 done
3764
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main (void)
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 ac_clean_files_save=$ac_clean_files
3777 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3778 # Try to create an executable without -o first, disregard a.out.
3779 # It will help us diagnose broken compilers, and finding out an intuition
3780 # of exeext.
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3782 printf %s "checking whether the C compiler works... " >&6; }
3783 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3784
3785 # The possible output files:
3786 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3787
3788 ac_rmfiles=
3789 for ac_file in $ac_files
3790 do
3791 case $ac_file in
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3794 esac
3795 done
3796 rm -f $ac_rmfiles
3797
3798 if { { ac_try="$ac_link_default"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 printf "%s\n" "$ac_try_echo"; } >&5
3805 (eval "$ac_link_default") 2>&5
3806 ac_status=$?
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 then :
3810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3811 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3812 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3813 # so that the user can short-circuit this test for compilers unknown to
3814 # Autoconf.
3815 for ac_file in $ac_files ''
3816 do
3817 test -f "$ac_file" || continue
3818 case $ac_file in
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3820 ;;
3821 [ab].out )
3822 # We found the default executable, but exeext='' is most
3823 # certainly right.
3824 break;;
3825 *.* )
3826 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3827 then :; else
3828 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3829 fi
3830 # We set ac_cv_exeext here because the later test for it is not
3831 # safe: cross compilers may not add the suffix if given an `-o'
3832 # argument, so we may need to know it at that point already.
3833 # Even if this section looks crufty: it has the advantage of
3834 # actually working.
3835 break;;
3836 * )
3837 break;;
3838 esac
3839 done
3840 test "$ac_cv_exeext" = no && ac_cv_exeext=
3841
3842 else $as_nop
3843 ac_file=''
3844 fi
3845 if test -z "$ac_file"
3846 then :
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 printf "%s\n" "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error 77 "C compiler cannot create executables
3855 See \`config.log' for more details" "$LINENO" 5; }
3856 else $as_nop
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858 printf "%s\n" "yes" >&6; }
3859 fi
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3861 printf %s "checking for C compiler default output file name... " >&6; }
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3863 printf "%s\n" "$ac_file" >&6; }
3864 ac_exeext=$ac_cv_exeext
3865
3866 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3867 ac_clean_files=$ac_clean_files_save
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3869 printf %s "checking for suffix of executables... " >&6; }
3870 if { { ac_try="$ac_link"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877 (eval "$ac_link") 2>&5
3878 ac_status=$?
3879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 then :
3882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3884 # work properly (i.e., refer to `conftest.exe'), while it won't with
3885 # `rm'.
3886 for ac_file in conftest.exe conftest conftest.*; do
3887 test -f "$ac_file" || continue
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891 break;;
3892 * ) break;;
3893 esac
3894 done
3895 else $as_nop
3896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3899 See \`config.log' for more details" "$LINENO" 5; }
3900 fi
3901 rm -f conftest conftest$ac_cv_exeext
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3903 printf "%s\n" "$ac_cv_exeext" >&6; }
3904
3905 rm -f conftest.$ac_ext
3906 EXEEXT=$ac_cv_exeext
3907 ac_exeext=$EXEEXT
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 #include <stdio.h>
3911 int
3912 main (void)
3913 {
3914 FILE *f = fopen ("conftest.out", "w");
3915 return ferror (f) || fclose (f) != 0;
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 ac_clean_files="$ac_clean_files conftest.out"
3922 # Check that the compiler produces executables we can run. If not, either
3923 # the compiler is broken, or we cross compile.
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3925 printf %s "checking whether we are cross compiling... " >&6; }
3926 if test "$cross_compiling" != yes; then
3927 { { ac_try="$ac_link"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934 (eval "$ac_link") 2>&5
3935 ac_status=$?
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3938 if { ac_try='./conftest$ac_cv_exeext'
3939 { { case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 printf "%s\n" "$ac_try_echo"; } >&5
3945 (eval "$ac_try") 2>&5
3946 ac_status=$?
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; }; then
3949 cross_compiling=no
3950 else
3951 if test "$cross_compiling" = maybe; then
3952 cross_compiling=yes
3953 else
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error 77 "cannot run C compiled programs.
3957 If you meant to cross compile, use \`--host'.
3958 See \`config.log' for more details" "$LINENO" 5; }
3959 fi
3960 fi
3961 fi
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3963 printf "%s\n" "$cross_compiling" >&6; }
3964
3965 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3966 ac_clean_files=$ac_clean_files_save
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3968 printf %s "checking for suffix of object files... " >&6; }
3969 if test ${ac_cv_objext+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else $as_nop
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main (void)
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.o conftest.obj
3985 if { { ac_try="$ac_compile"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 printf "%s\n" "$ac_try_echo"; } >&5
3992 (eval "$ac_compile") 2>&5
3993 ac_status=$?
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996 then :
3997 for ac_file in conftest.o conftest.obj conftest.*; do
3998 test -f "$ac_file" || continue;
3999 case $ac_file in
4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4002 break;;
4003 esac
4004 done
4005 else $as_nop
4006 printf "%s\n" "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of object files: cannot compile
4012 See \`config.log' for more details" "$LINENO" 5; }
4013 fi
4014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4015 fi
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4017 printf "%s\n" "$ac_cv_objext" >&6; }
4018 OBJEXT=$ac_cv_objext
4019 ac_objext=$OBJEXT
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4021 printf %s "checking whether the compiler supports GNU C... " >&6; }
4022 if test ${ac_cv_c_compiler_gnu+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else $as_nop
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main (void)
4031 {
4032 #ifndef __GNUC__
4033 choke me
4034 #endif
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"
4041 then :
4042 ac_compiler_gnu=yes
4043 else $as_nop
4044 ac_compiler_gnu=no
4045 fi
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048
4049 fi
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054 if test $ac_compiler_gnu = yes; then
4055 GCC=yes
4056 else
4057 GCC=
4058 fi
4059 ac_test_CFLAGS=${CFLAGS+y}
4060 ac_save_CFLAGS=$CFLAGS
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4062 printf %s "checking whether $CC accepts -g... " >&6; }
4063 if test ${ac_cv_prog_cc_g+y}
4064 then :
4065 printf %s "(cached) " >&6
4066 else $as_nop
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4069 ac_cv_prog_cc_g=no
4070 CFLAGS="-g"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 int
4075 main (void)
4076 {
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"
4083 then :
4084 ac_cv_prog_cc_g=yes
4085 else $as_nop
4086 CFLAGS=""
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main (void)
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100
4101 else $as_nop
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main (void)
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"
4116 then :
4117 ac_cv_prog_cc_g=yes
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4128 if test $ac_test_CFLAGS; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4132 CFLAGS="-g -O2"
4133 else
4134 CFLAGS="-g"
4135 fi
4136 else
4137 if test "$GCC" = yes; then
4138 CFLAGS="-O2"
4139 else
4140 CFLAGS=
4141 fi
4142 fi
4143 ac_prog_cc_stdc=no
4144 if test x$ac_prog_cc_stdc = xno
4145 then :
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4147 printf %s "checking for $CC option to enable C11 features... " >&6; }
4148 if test ${ac_cv_prog_cc_c11+y}
4149 then :
4150 printf %s "(cached) " >&6
4151 else $as_nop
4152 ac_cv_prog_cc_c11=no
4153 ac_save_CC=$CC
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 $ac_c_conftest_c11_program
4157 _ACEOF
4158 for ac_arg in '' -std=gnu11
4159 do
4160 CC="$ac_save_CC $ac_arg"
4161 if ac_fn_c_try_compile "$LINENO"
4162 then :
4163 ac_cv_prog_cc_c11=$ac_arg
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.beam
4166 test "x$ac_cv_prog_cc_c11" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4170 fi
4171
4172 if test "x$ac_cv_prog_cc_c11" = xno
4173 then :
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 printf "%s\n" "unsupported" >&6; }
4176 else $as_nop
4177 if test "x$ac_cv_prog_cc_c11" = x
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 printf "%s\n" "none needed" >&6; }
4181 else $as_nop
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4183 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4184 CC="$CC $ac_cv_prog_cc_c11"
4185 fi
4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4187 ac_prog_cc_stdc=c11
4188 fi
4189 fi
4190 if test x$ac_prog_cc_stdc = xno
4191 then :
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4193 printf %s "checking for $CC option to enable C99 features... " >&6; }
4194 if test ${ac_cv_prog_cc_c99+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 ac_cv_prog_cc_c99=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 $ac_c_conftest_c99_program
4203 _ACEOF
4204 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4205 do
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"
4208 then :
4209 ac_cv_prog_cc_c99=$ac_arg
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.beam
4212 test "x$ac_cv_prog_cc_c99" != "xno" && break
4213 done
4214 rm -f conftest.$ac_ext
4215 CC=$ac_save_CC
4216 fi
4217
4218 if test "x$ac_cv_prog_cc_c99" = xno
4219 then :
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 printf "%s\n" "unsupported" >&6; }
4222 else $as_nop
4223 if test "x$ac_cv_prog_cc_c99" = x
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4226 printf "%s\n" "none needed" >&6; }
4227 else $as_nop
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4229 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4230 CC="$CC $ac_cv_prog_cc_c99"
4231 fi
4232 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4233 ac_prog_cc_stdc=c99
4234 fi
4235 fi
4236 if test x$ac_prog_cc_stdc = xno
4237 then :
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4239 printf %s "checking for $CC option to enable C89 features... " >&6; }
4240 if test ${ac_cv_prog_cc_c89+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else $as_nop
4244 ac_cv_prog_cc_c89=no
4245 ac_save_CC=$CC
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 $ac_c_conftest_c89_program
4249 _ACEOF
4250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"
4254 then :
4255 ac_cv_prog_cc_c89=$ac_arg
4256 fi
4257 rm -f core conftest.err conftest.$ac_objext conftest.beam
4258 test "x$ac_cv_prog_cc_c89" != "xno" && break
4259 done
4260 rm -f conftest.$ac_ext
4261 CC=$ac_save_CC
4262 fi
4263
4264 if test "x$ac_cv_prog_cc_c89" = xno
4265 then :
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267 printf "%s\n" "unsupported" >&6; }
4268 else $as_nop
4269 if test "x$ac_cv_prog_cc_c89" = x
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 printf "%s\n" "none needed" >&6; }
4273 else $as_nop
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4275 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 fi
4278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4279 ac_prog_cc_stdc=c89
4280 fi
4281 fi
4282
4283 ac_ext=c
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4295 printf %s "checking how to run the C preprocessor... " >&6; }
4296 # On Suns, sometimes $CPP names a directory.
4297 if test -n "$CPP" && test -d "$CPP"; then
4298 CPP=
4299 fi
4300 if test -z "$CPP"; then
4301 if test ${ac_cv_prog_CPP+y}
4302 then :
4303 printf %s "(cached) " >&6
4304 else $as_nop
4305 # Double quotes because $CC needs to be expanded
4306 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4307 do
4308 ac_preproc_ok=false
4309 for ac_c_preproc_warn_flag in '' yes
4310 do
4311 # Use a header file that comes with gcc, so configuring glibc
4312 # with a fresh cross-compiler works.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <limits.h>
4318 Syntax error
4319 _ACEOF
4320 if ac_fn_c_try_cpp "$LINENO"
4321 then :
4322
4323 else $as_nop
4324 # Broken: fails on valid input.
4325 continue
4326 fi
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <ac_nonexistent.h>
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"
4336 then :
4337 # Broken: success on invalid input.
4338 continue
4339 else $as_nop
4340 # Passes both tests.
4341 ac_preproc_ok=:
4342 break
4343 fi
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4345
4346 done
4347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348 rm -f conftest.i conftest.err conftest.$ac_ext
4349 if $ac_preproc_ok
4350 then :
4351 break
4352 fi
4353
4354 done
4355 ac_cv_prog_CPP=$CPP
4356
4357 fi
4358 CPP=$ac_cv_prog_CPP
4359 else
4360 ac_cv_prog_CPP=$CPP
4361 fi
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4363 printf "%s\n" "$CPP" >&6; }
4364 ac_preproc_ok=false
4365 for ac_c_preproc_warn_flag in '' yes
4366 do
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <limits.h>
4374 Syntax error
4375 _ACEOF
4376 if ac_fn_c_try_cpp "$LINENO"
4377 then :
4378
4379 else $as_nop
4380 # Broken: fails on valid input.
4381 continue
4382 fi
4383 rm -f conftest.err conftest.i conftest.$ac_ext
4384
4385 # OK, works on sane cases. Now check whether nonexistent headers
4386 # can be detected and how.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <ac_nonexistent.h>
4390 _ACEOF
4391 if ac_fn_c_try_cpp "$LINENO"
4392 then :
4393 # Broken: success on invalid input.
4394 continue
4395 else $as_nop
4396 # Passes both tests.
4397 ac_preproc_ok=:
4398 break
4399 fi
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.i conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok
4406 then :
4407
4408 else $as_nop
4409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 fi
4414
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421
4422
4423 add_arg_to_cflags() {
4424
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLAG $1" >&5
4426 printf %s "checking for CFLAG $1... " >&6; }
4427 CFLAGS_ORI=$CFLAGS
4428 CFLAGS="$CFLAGS -Werror $1 `echo $1|sed 's,-Wno-,-W,1'`"
4429
4430 if test "$cross_compiling" = yes
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 printf "%s\n" "no" >&6; }
4434 else $as_nop
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437
4438 int
4439 main (void)
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_run "$LINENO"
4447 then :
4448 CFLAGS="$CFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449 printf "%s\n" "yes" >&6; };return 0
4450 else $as_nop
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 printf "%s\n" "no" >&6; }
4453 fi
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
4456 fi
4457
4458 CFLAGS=$CFLAGS_ORI
4459 return 1
4460
4461 }
4462
4463 assert_arg_to_cflags() {
4464 if ! add_arg_to_cflags "$1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to CFLAGS" >&5
4465 printf "%s\n" "cannot add $1 to CFLAGS" >&6; }; exit 1 ; fi
4466 return 0
4467 }
4468
4469 add_args_to_cflags() {
4470
4471 while test "$#" -ge 1 ; do
4472 add_arg_to_cflags $1
4473 shift
4474 done
4475 }
4476
4477 add_arg_to_ldflags() {
4478
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDFLAG $1" >&5
4480 printf %s "checking for LDFLAG $1... " >&6; }
4481 LDFLAGS_ORI=$LDFLAGS
4482 LDFLAGS="$LDFLAGS -Werror $1"
4483 if test "$cross_compiling" = yes
4484 then :
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 printf "%s\n" "no" >&6; }
4487 else $as_nop
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 int
4492 main (void)
4493 {
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_run "$LINENO"
4500 then :
4501 LDFLAGS="$LDFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 printf "%s\n" "yes" >&6; };return 0
4503 else $as_nop
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 printf "%s\n" "no" >&6; }
4506 fi
4507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4508 conftest.$ac_objext conftest.beam conftest.$ac_ext
4509 fi
4510
4511 LDFLAGS=$LDFLAGS_ORI
4512 return 1
4513
4514 }
4515
4516 assert_arg_to_ldflags() {
4517 if ! add_arg_to_ldflags $1 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to LDFLAGS" >&5
4518 printf "%s\n" "cannot add $1 to LDFLAGS" >&6; }; exit 1 ; fi
4519 return 0
4520 }
4521
4522 add_args_to_ldflags() {
4523
4524 while test "$#" -ge 1 ; do
4525 add_arg_to_ldflags $1
4526 shift
4527 done
4528 }
4529
4530 remove_arg_from_ldflags() {
4531
4532 NEW_LDFLAGS=""
4533 for i in $LDFLAGS; do
4534 if ! test "$i" = "$1" ; then
4535 NEW_LDFLAGS="$NEW_LDFLAGS $i"
4536 else
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: removing $1 from LDFLAGS" >&5
4538 printf "%s\n" "removing $1 from LDFLAGS" >&6; }
4539 fi
4540 done
4541 LDFLAGS=$NEW_LDFLAGS
4542
4543 return 0
4544
4545 }
4546
4547 add_args_to_cflags -fsigned-char -pipe -fcommon \
4548 -fno-builtin-malloc -fno-builtin-free \
4549 -fno-PIE -fno-pie -fno-PIC -fno-pic \
4550 -Wall \
4551 -Wno-builtin-requires-header -Wno-empty-body -Wno-self-assign \
4552 -Wno-unused-but-set-variable
4553
4554 add_args_to_ldflags -no-pie # -Wl,-z,lazy
4555
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline semantics" >&5
4557 printf %s "checking for inline semantics... " >&6; }
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 inline int foo(int i) {return i;}
4562
4563 int
4564 bar(int i) {return foo(i);}
4565
4566 _ACEOF
4567 if ac_fn_c_try_compile "$LINENO"
4568 then :
4569 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new" >&5
4571 printf "%s\n" "new" >&6; }
4572 else
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575
4576 extern inline int foo(int i) {return i;}
4577
4578 int
4579 bar(int i) {return foo(i);}
4580
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"
4583 then :
4584 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5
4586 printf "%s\n" "old" >&6; }
4587
4588 printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
4589
4590 else
4591 as_fn_error $? "need working inline semantics" "$LINENO" 5
4592 fi
4593 else $as_nop
4594 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4597 fi
4598 else $as_nop
4599 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4602
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
4604 printf %s "checking for clang... " >&6; }
4605 if test "$cross_compiling" = yes
4606 then :
4607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot run test program while cross compiling
4610 See \`config.log' for more details" "$LINENO" 5; }
4611 else $as_nop
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 #ifdef __clang__
4616 #define RET 0
4617 #else
4618 #define RET 1
4619 #endif
4620
4621 int
4622 main (void)
4623 {
4624
4625 return RET;
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_run "$LINENO"
4632 then :
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 printf "%s\n" "yes" >&6; }
4635 clang="yes"
4636 remove_arg_from_ldflags -pie
4637
4638 printf "%s\n" "#define CLANG 1" >>confdefs.h
4639
4640 else $as_nop
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 printf "%s\n" "no" >&6; }
4643 fi
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4645 conftest.$ac_objext conftest.beam conftest.$ac_ext
4646 fi
4647
4648
4649 case $use in
4650 *mingw*)
4651 assert_arg_to_cflags -fno-zero-initialized-in-bss
4652 assert_arg_to_cflags -mms-bitfields
4653 for i in makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h; do
4654 cat $i.in | sed 's,^\r\n$,\r\n,g' >tmp && mv tmp $i.in;
4655 done
4656 OLD_LDFLAGS=$LDFLAGS
4657 assert_arg_to_ldflags -pg
4658 GPL_FLAG="-pg"
4659 LDFLAGS=$OLD_LDFLAGS;;
4660 *gnuwin*)
4661 assert_arg_to_cflags -fno-zero-initialized-in-bss
4662 assert_arg_to_cflags -mms-bitfields
4663 assert_arg_to_ldflags -Wl,--stack,8000000
4664 OLD_LDFLAGS=$LDFLAGS
4665 assert_arg_to_ldflags -pg
4666 GPL_FLAG="-pg"
4667 LDFLAGS=$OLD_LDFLAGS;;
4668 loongarch64-linux)
4669 add_arg_to_cflags -mno-relax
4670 add_arg_to_cflags -Wa,-mno-relax;;
4671 386-macosx)
4672 # assert_arg_to_cflags -Wno-error=implicit-function-declaration
4673 add_arg_to_cflags -Wno-incomplete-setjmp-declaration
4674 assert_arg_to_ldflags -Wl,-no_pie
4675 if test "$build_cpu" = "x86_64" ; then
4676 assert_arg_to_cflags -m64
4677 assert_arg_to_ldflags -m64
4678 assert_arg_to_ldflags -Wl,-headerpad,72
4679 else
4680 assert_arg_to_cflags -m32
4681 assert_arg_to_ldflags -m32
4682 assert_arg_to_ldflags -Wl,-headerpad,56
4683 fi;;
4684 FreeBSD) assert_arg_to_ldflags -Z;;
4685 esac
4686
4687 if test "$enable_static" = "yes" ; then
4688 assert_arg_to_ldflags -static
4689 assert_arg_to_ldflags -Wl,-zmuldefs
4690
4691 printf "%s\n" "#define STATIC_LINKING 1" >>confdefs.h
4692
4693 fi
4694
4695 TO3FLAGS=""
4696 TO2FLAGS=""
4697
4698 case "$use" in
4699 *mingw*)
4700 TFPFLAG="";;
4701 m68k*)#FIXME gcc 4.x bug workaround
4702 TFPFLAG="";;
4703 *)
4704 TFPFLAG="-fomit-frame-pointer";;
4705 esac
4706
4707 for ac_prog in gawk nawk awk
4708 do
4709 # Extract the first word of "$ac_prog", so it can be a program name with args.
4710 set dummy $ac_prog; ac_word=$2
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 printf %s "checking for $ac_word... " >&6; }
4713 if test ${ac_cv_prog_AWK+y}
4714 then :
4715 printf %s "(cached) " >&6
4716 else $as_nop
4717 if test -n "$AWK"; then
4718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723 IFS=$as_save_IFS
4724 case $as_dir in #(((
4725 '') as_dir=./ ;;
4726 */) ;;
4727 *) as_dir=$as_dir/ ;;
4728 esac
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4731 ac_cv_prog_AWK="$ac_prog"
4732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 AWK=$ac_cv_prog_AWK
4742 if test -n "$AWK"; then
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4744 printf "%s\n" "$AWK" >&6; }
4745 else
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 printf "%s\n" "no" >&6; }
4748 fi
4749
4750
4751 test -n "$AWK" && break
4752 done
4753
4754 GCL_CC_ARGS=`echo $CC | ${AWK} '{$1="";print}'`
4755 GCL_CC="`basename $CC` $GCL_CC_ARGS"
4756 if echo $GCL_CC |grep gcc |grep -q win; then
4757 GCL_CC=gcc
4758 fi
4759
4760
4761 # Check whether --enable-gprof was given.
4762 if test ${enable_gprof+y}
4763 then :
4764 enableval=$enable_gprof; if test "$enableval" = "yes" ; then
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working gprof" >&5
4766 printf %s "checking working gprof... " >&6; }
4767 case $use in
4768 powerpc*) if test "$host_cpu" = "powerpc64le" ; then enableval="no"; fi;;
4769 s390*) enableval="no";;#mcount smashes float args in make_shortfloat 20180313
4770 sh4*) enableval="no";;
4771 m68k*) enableval="no";;
4772 ia64*) enableval="no";;
4773 hppa*) enableval="no";;
4774 # arm*) if echo $canonical |grep -q hf$; then enableval="no"; fi;;#FIXME CALL and JUMP24 veneers needed for thumb 20190201 #FIXME mcount compiled as a 24/22 bit reloc even with -mlong-calls, marginally accessible
4775 aarch64*) enableval="no";;#unreproducible buildd bug 20170824
4776 *gnu) enableval="no";;
4777 esac
4778 GP_FLAG=""
4779 if test "$enableval" != "yes" ; then
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4781 printf "%s\n" "disabled" >&6; }
4782 else
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4784 printf "%s\n" "ok" >&6; }
4785 OLD_CFLAGS=$CFLAGS # Do not run configure tests with -pg
4786 assert_arg_to_cflags -pg
4787 GP_FLAG="-pg"
4788 CFLAGS=$OLD_CFLAGS
4789 TFPFLAG=""
4790
4791 printf "%s\n" "#define GCL_GPROF 1" >>confdefs.h
4792
4793 fi
4794 fi
4795 fi
4796
4797
4798 if test "$enable_debug" = "yes" ; then
4799 assert_arg_to_cflags -g
4800 # for subconfigurations
4801 CFLAGS="$CFLAGS -g"
4802 else
4803 TO3FLAGS="-O3 $TFPFLAG"
4804 TO2FLAGS="-O"
4805 fi
4806
4807 # gcc on ppc cannot compile our new_init.c with full opts --CM
4808 TONIFLAGS=""
4809 case $use in
4810 powerpc*macosx) assert_arg_to_cflags -mlongcall;;
4811 *linux)
4812 case $use in
4813 alpha*)
4814 assert_arg_to_cflags -mieee
4815 # if test "$enable_debug" != "yes" ; then TO3FLAGS="-O0" ; fi #FIXME needed asof gcc 4.8.1
4816 ;;
4817 aarch64*)
4818 TLIBS="$TLIBS -lgcc_s";;
4819 hppa*)
4820 assert_arg_to_cflags -mlong-calls
4821 TLIBS="$TLIBS -lgcc_s" # workaround hppa __moddi3 local func symbols with default linker flags
4822 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O2" ; TFPFLAG=""; fi #FIXME needed asof gcc 4.8.1
4823 ;;
4824 mips*)
4825 case $canonical in
4826 mips64*linux*)
4827 # assert_arg_to_cflags -mxgot
4828 assert_arg_to_ldflags -Wl,-z,now;;
4829 esac
4830 ;;
4831 ia64*)
4832 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O" ; fi #FIXME needed asof gcc 4.8.1
4833 ;;
4834 arm*)
4835
4836 printf "%s\n" "#define SET_STACK_POINTER \"mov %%sp,%0\\n\\t\"" >>confdefs.h
4837
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set stack pointer" >&5
4839 printf %s "checking how to set stack pointer... " >&6; }
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4841 printf "%s\n" "done" >&6; }
4842 assert_arg_to_cflags -fdollars-in-identifiers
4843 assert_arg_to_cflags -g #?
4844 ;;
4845 powerpc*)
4846 assert_arg_to_cflags -mlongcall
4847 if test "$host_cpu" != "powerpc64le" ; then assert_arg_to_cflags -mno-pltseq; fi
4848 ;;
4849 esac;;
4850 esac
4851 if test "$enable_pic" = "yes" ; then
4852 assert_arg_to_cflags -fPIC
4853 fi
4854
4855
4856 FDEBUG=`echo $CFLAGS | tr ' ' '\012' |grep "^\-g$"|tr '\012' ' '`
4857 #CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-g$"`
4858 FOMITF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-fomit-frame-pointer$"|tr '\012' ' '`
4859 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-fomit-frame-pointer$"|tr '\012' ' '`
4860 FOOPT3=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O3$"|tr '\012' ' '`
4861 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O3$"|tr '\012' ' '`
4862 FOOPT2=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O2$"|tr '\012' ' '`
4863 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O2$"|tr '\012' ' '`
4864 FOOPT1=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O1$"|tr '\012' ' '`
4865 TMPF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O$"|tr '\012' ' '`
4866 FOOPT1="$FOOPT1$TMPF"
4867 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O1$"|grep -v "^\-O$"|tr '\012' ' '`
4868 FOOPT0=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O0$"|tr '\012' ' '`
4869 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O0$"|tr '\012' ' '`
4870
4871 if test "$FOOPT0" != "" ; then
4872 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4873 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4874 else
4875 if test "$FOOPT1" != "" ; then
4876 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[2-3],-O1,g'`
4877 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[2-3],-O1,g'`
4878 else
4879 if test "$FOOPT2" != "" ; then
4880 TO3FLAGS=`echo "$TO3FLAGS" | sed 's,\-O3,-O2,g'`
4881 TO2FLAGS=`echo "$TO2FLAGS" | sed 's,\-O3,-O2,g'`
4882 fi
4883 fi
4884 fi
4885
4886 if test "$FDEBUG" != "" ; then
4887 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4888 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4889 fi
4890
4891 if test "$FOMITF" != "" ; then
4892 TO3FLAGS="$TO3FLAGS $FOMITF"
4893 fi
4894
4895 # Step 1: set the variable "system" to hold the name and version number
4896 # for the system. This can usually be done via the "uname" command, but
4897 # there are a few systems, like Next, where this doesn't work.
4898
4899 for ac_prog in makeinfo
4900 do
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 printf %s "checking for $ac_word... " >&6; }
4905 if test ${ac_cv_prog_MAKEINFO+y}
4906 then :
4907 printf %s "(cached) " >&6
4908 else $as_nop
4909 if test -n "$MAKEINFO"; then
4910 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915 IFS=$as_save_IFS
4916 case $as_dir in #(((
4917 '') as_dir=./ ;;
4918 */) ;;
4919 *) as_dir=$as_dir/ ;;
4920 esac
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_MAKEINFO="$ac_prog"
4924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 MAKEINFO=$ac_cv_prog_MAKEINFO
4934 if test -n "$MAKEINFO"; then
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4936 printf "%s\n" "$MAKEINFO" >&6; }
4937 else
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 printf "%s\n" "no" >&6; }
4940 fi
4941
4942
4943 test -n "$MAKEINFO" && break
4944 done
4945 test -n "$MAKEINFO" || MAKEINFO=""false""
4946
4947
4948
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version (for dynamic loading)" >&5
4950 printf %s "checking system version (for dynamic loading)... " >&6; }
4951 if machine=`uname -m` ; then true; else machine=unknown ; fi
4952
4953 if test -f /usr/lib/NextStep/software_version; then
4954 system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
4955 else
4956 system=`uname -s`-`uname -r`
4957 if test "$?" -ne 0 ; then
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown (cannot find uname command)" >&5
4959 printf "%s\n" "unknown (cannot find uname command)" >&6; }
4960 system=unknown
4961 else
4962 # Special check for weird MP-RAS system (uname returns weird
4963 # results, and the version is kept in special file).
4964
4965 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4966 system="MP-RAS-`${AWK} '{print $3}' '/etc/.relid'`"
4967 fi
4968 if test "`uname -s`" = "AIX" ; then
4969 system=AIX-`uname -v`.`uname -r`
4970 fi
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $system" >&5
4972 printf "%s\n" "$system" >&6; }
4973 fi
4974 fi
4975
4976 case $use in
4977 *macosx)
4978 ac_header= ac_cache=
4979 for ac_item in $ac_header_c_list
4980 do
4981 if test $ac_cache; then
4982 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4983 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4984 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4985 fi
4986 ac_header= ac_cache=
4987 elif test $ac_header; then
4988 ac_cache=$ac_item
4989 else
4990 ac_header=$ac_item
4991 fi
4992 done
4993
4994
4995
4996
4997
4998
4999
5000
5001 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5002 then :
5003
5004 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5005
5006 fi
5007 for ac_header in malloc/malloc.h
5008 do :
5009 ac_fn_c_check_header_compile "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5010 if test "x$ac_cv_header_malloc_malloc_h" = xyes
5011 then :
5012 printf "%s\n" "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
5013
5014 else $as_nop
5015 as_fn_error $? "need malloc.h on macosx" "$LINENO" 5
5016 fi
5017
5018 done
5019 ac_fn_c_check_member "$LINENO" "struct _malloc_zone_t" "memalign" "ac_cv_member_struct__malloc_zone_t_memalign" "
5020 #include <malloc/malloc.h>
5021
5022 "
5023 if test "x$ac_cv_member_struct__malloc_zone_t_memalign" = xyes
5024 then :
5025
5026 printf "%s\n" "#define HAVE_MALLOC_ZONE_MEMALIGN 1" >>confdefs.h
5027
5028 fi
5029
5030
5031 ;;
5032 esac
5033
5034 for ac_header in setjmp.h
5035 do :
5036 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_setjmp_h" = xyes
5038 then :
5039 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof jmp_buf" >&5
5041 printf %s "checking sizeof jmp_buf... " >&6; }
5042 if test "$cross_compiling" = yes
5043 then :
5044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5045 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5046 as_fn_error $? "cannot run test program while cross compiling
5047 See \`config.log' for more details" "$LINENO" 5; }
5048 else $as_nop
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051
5052 #include <stdio.h>
5053 #include <setjmp.h>
5054
5055 int
5056 main (void)
5057 {
5058
5059 FILE *fp=fopen("conftest1","w");
5060 fprintf(fp,"%lu\n",sizeof(jmp_buf));
5061 fclose(fp);
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_c_try_run "$LINENO"
5068 then :
5069 sizeof_jmp_buf=`cat conftest1`
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_jmp_buf" >&5
5071 printf "%s\n" "$sizeof_jmp_buf" >&6; }
5072
5073 printf "%s\n" "#define SIZEOF_JMP_BUF $sizeof_jmp_buf" >>confdefs.h
5074
5075 else $as_nop
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 printf "%s\n" "no" >&6; }
5078 fi
5079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5080 conftest.$ac_objext conftest.beam conftest.$ac_ext
5081 fi
5082
5083 fi
5084
5085 done
5086
5087 # sysconf
5088 for ac_header in unistd.h
5089 do :
5090 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5091 if test "x$ac_cv_header_unistd_h" = xyes
5092 then :
5093 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf in -lc" >&5
5095 printf %s "checking for sysconf in -lc... " >&6; }
5096 if test ${ac_cv_lib_c_sysconf+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else $as_nop
5100 ac_check_lib_save_LIBS=$LIBS
5101 LIBS="-lc $LIBS"
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104
5105 /* Override any GCC internal prototype to avoid an error.
5106 Use char because int might match the return type of a GCC
5107 builtin and then its argument prototype would still apply. */
5108 char sysconf ();
5109 int
5110 main (void)
5111 {
5112 return sysconf ();
5113 ;
5114 return 0;
5115 }
5116 _ACEOF
5117 if ac_fn_c_try_link "$LINENO"
5118 then :
5119 ac_cv_lib_c_sysconf=yes
5120 else $as_nop
5121 ac_cv_lib_c_sysconf=no
5122 fi
5123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5124 conftest$ac_exeext conftest.$ac_ext
5125 LIBS=$ac_check_lib_save_LIBS
5126 fi
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sysconf" >&5
5128 printf "%s\n" "$ac_cv_lib_c_sysconf" >&6; }
5129 if test "x$ac_cv_lib_c_sysconf" = xyes
5130 then :
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SC_CLK_TCK" >&5
5132 printf %s "checking _SC_CLK_TCK... " >&6; }
5133 hz=0
5134 if test "$cross_compiling" = yes
5135 then :
5136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error $? "cannot run test program while cross compiling
5139 See \`config.log' for more details" "$LINENO" 5; }
5140 else $as_nop
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143
5144 #include <unistd.h>
5145 #include <stdio.h>
5146
5147 int
5148 main (void)
5149 {
5150
5151 FILE *fp=fopen("conftest1","w");
5152 fprintf(fp,"%lu\n",sysconf(_SC_CLK_TCK));
5153 fclose(fp);
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 if ac_fn_c_try_run "$LINENO"
5160 then :
5161
5162 fi
5163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5164 conftest.$ac_objext conftest.beam conftest.$ac_ext
5165 fi
5166
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hz" >&5
5168 printf "%s\n" "$hz" >&6; }
5169 fi
5170
5171 fi
5172
5173 done
5174
5175
5176 rm -f makedefsafter
5177
5178 # Check whether --enable-dynsysgmp was given.
5179 if test ${enable_dynsysgmp+y}
5180 then :
5181 enableval=$enable_dynsysgmp;
5182 fi
5183
5184
5185 if test "$enable_dynsysgmp" != "no" ; then
5186 for ac_header in gmp.h
5187 do :
5188 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
5189 if test "x$ac_cv_header_gmp_h" = xyes
5190 then :
5191 printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
5193 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
5194 if test ${ac_cv_lib_gmp___gmpz_init+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else $as_nop
5198 ac_check_lib_save_LIBS=$LIBS
5199 LIBS="-lgmp $LIBS"
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202
5203 /* Override any GCC internal prototype to avoid an error.
5204 Use char because int might match the return type of a GCC
5205 builtin and then its argument prototype would still apply. */
5206 char __gmpz_init ();
5207 int
5208 main (void)
5209 {
5210 return __gmpz_init ();
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_link "$LINENO"
5216 then :
5217 ac_cv_lib_gmp___gmpz_init=yes
5218 else $as_nop
5219 ac_cv_lib_gmp___gmpz_init=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5222 conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5224 fi
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
5226 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
5227 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
5228 then :
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external gmp version" >&5
5230 printf %s "checking for external gmp version... " >&6; }
5231 if test "$cross_compiling" = yes
5232 then :
5233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5234 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5235 as_fn_error $? "cannot run test program while cross compiling
5236 See \`config.log' for more details" "$LINENO" 5; }
5237 else $as_nop
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240
5241 #include <gmp.h>
5242
5243 int
5244 main (void)
5245 {
5246
5247 #if __GNU_MP_VERSION > 3
5248 return 0;
5249 #else
5250 return -1;
5251 #endif
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_run "$LINENO"
5258 then :
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: good" >&5
5260 printf "%s\n" "good" >&6; }
5261 TLIBS="$TLIBS -lgmp"
5262 echo "#include \"gmp.h\"" >foo.c
5263 echo "int main() {return 0;}" >>foo.c
5264 MP_INCLUDE=`cpp foo.c | $AWK '/(\/|\\\\)gmp.h/ {if (!i) print $3;i=1}' | tr -d '"'`
5265 rm -f foo.c
5266 fi
5267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5268 conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 fi
5270
5271 fi
5272
5273 fi
5274
5275 done
5276
5277 if test "$MP_INCLUDE" = "" ; then
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot use dynamic gmp lib" >&5
5279 printf "%s\n" "Cannot use dynamic gmp lib" >&6; }
5280 fi
5281
5282 fi
5283
5284
5285 if test "$MP_INCLUDE" = "" ; then
5286
5287 GMPDIR=gmp4
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking doing configure in gmp directory" >&5
5289 printf %s "checking doing configure in gmp directory... " >&6; }
5290 echo
5291 echo "#"
5292 echo "#"
5293 echo "# -------------------"
5294 echo "# Subconfigure of GMP"
5295 echo "#"
5296 echo "#"
5297
5298 if test "$use_common_binary" = "yes"; then
5299 cd $GMPDIR && ./configure --build=$host && cd ..
5300 else
5301 cd $GMPDIR && ./configure --host=$host --build=$build && cd ..
5302 fi
5303 #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
5304
5305 echo "#"
5306 echo "#"
5307 echo "#"
5308 echo "# Subconfigure of GMP done"
5309 echo "# ------------------------"
5310 echo "#"
5311
5312 if test "$MP_INCLUDE" = "" ; then
5313 cp $GMPDIR/gmp.h h/gmp.h
5314 MP_INCLUDE=h/gmp.h
5315 MPFILES=gmp_all
5316 fi
5317 fi
5318
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for leading underscore in object symbols" >&5
5320 printf %s "checking for leading underscore in object symbols... " >&6; }
5321 cat>foo.c <<EOFF
5322 #include <math.h>
5323 #include <stdio.h>
5324 int main() {FILE *f;double d=0.0;getc(f);d=cos(d);return 0;}
5325 EOFF
5326 $CC -c foo.c -o foo.o
5327 if nm foo.o |grep " U " | grep "_cos" >/dev/null || nm foo.o |grep " U " | grep " _getc" >/dev/null ; then
5328 LEADING_UNDERSCORE=1
5329
5330 printf "%s\n" "#define LEADING_UNDERSCORE 1" >>confdefs.h
5331
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5333 printf "%s\n" "\"yes\"" >&6; }
5334 else
5335 LEADING_UNDERSCORE=""
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5337 printf "%s\n" "\"no\"" >&6; }
5338 fi
5339
5340
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for GNU ld option -Map\"" >&5
5342 printf %s "checking \"for GNU ld option -Map\"... " >&6; }
5343 touch map
5344 $CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1
5345 if test `cat map | wc -l` != "0" ; then
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5347 printf "%s\n" "\"yes\"" >&6; }
5348
5349 printf "%s\n" "#define HAVE_GNU_LD 1" >>confdefs.h
5350
5351 GNU_LD=1
5352 else
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5354 printf "%s\n" "\"no\"" >&6; }
5355 GNU_LD=
5356 fi
5357 rm -f foo.c foo.o foo map
5358
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of gmp limbs" >&5
5360 printf %s "checking for size of gmp limbs... " >&6; }
5361 if test "$cross_compiling" = yes
5362 then :
5363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5365 as_fn_error $? "cannot run test program while cross compiling
5366 See \`config.log' for more details" "$LINENO" 5; }
5367 else $as_nop
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370
5371 #include <stdio.h>
5372 #include "$MP_INCLUDE"
5373
5374 int
5375 main (void)
5376 {
5377
5378 FILE *fp=fopen("conftest1","w");
5379 fprintf(fp,"%u",sizeof(mp_limb_t));
5380 fclose(fp);
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_run "$LINENO"
5387 then :
5388 mpsize=`cat conftest1`
5389 else $as_nop
5390 as_fn_error $? "Cannot determine mpsize" "$LINENO" 5
5391 fi
5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5393 conftest.$ac_objext conftest.beam conftest.$ac_ext
5394 fi
5395
5396
5397 printf "%s\n" "#define MP_LIMB_BYTES $mpsize" >>confdefs.h
5398
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpsize" >&5
5400 printf "%s\n" "$mpsize" >&6; }
5401
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SHORT_LIMB" >&5
5403 printf %s "checking _SHORT_LIMB... " >&6; }
5404 if test "$cross_compiling" = yes
5405 then :
5406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error $? "cannot run test program while cross compiling
5409 See \`config.log' for more details" "$LINENO" 5; }
5410 else $as_nop
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413
5414 #include <stdio.h>
5415 #include "$MP_INCLUDE"
5416
5417 int
5418 main (void)
5419 {
5420
5421 #ifdef _SHORT_LIMB
5422 return 0;
5423 #else
5424 return 1;
5425 #endif
5426
5427 ;
5428 return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_run "$LINENO"
5432 then :
5433
5434 printf "%s\n" "#define __SHORT_LIMB 1" >>confdefs.h
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 printf "%s\n" "yes" >&6; }
5437 else $as_nop
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 printf "%s\n" "no" >&6; }
5440 fi
5441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5442 conftest.$ac_objext conftest.beam conftest.$ac_ext
5443 fi
5444
5445
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _LONG_LONG_LIMB" >&5
5447 printf %s "checking _LONG_LONG_LIMB... " >&6; }
5448 if test "$cross_compiling" = yes
5449 then :
5450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5452 as_fn_error $? "cannot run test program while cross compiling
5453 See \`config.log' for more details" "$LINENO" 5; }
5454 else $as_nop
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457
5458 #include <stdio.h>
5459 #include "$MP_INCLUDE"
5460
5461 int
5462 main (void)
5463 {
5464
5465 #ifdef _LONG_LONG_LIMB
5466 return 0;
5467 #else
5468 return 1;
5469 #endif
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 if ac_fn_c_try_run "$LINENO"
5476 then :
5477
5478 printf "%s\n" "#define __LONG_LONG_LIMB 1" >>confdefs.h
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 printf "%s\n" "yes" >&6; }
5481 else $as_nop
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 printf "%s\n" "no" >&6; }
5484 fi
5485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5486 conftest.$ac_objext conftest.beam conftest.$ac_ext
5487 fi
5488
5489
5490 GMP=1
5491
5492 printf "%s\n" "#define GMP 1" >>confdefs.h
5493
5494
5495
5496 echo > makedefsafter
5497 echo "MPFILES=$MPFILES" >> makedefsafter
5498 echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
5499 echo >> makedefsafter
5500
5501
5502
5503 #
5504 # X windows
5505 #
5506
5507 if test "$enable_xgcl" = "yes" ; then
5508
5509
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5511 printf %s "checking for X... " >&6; }
5512
5513
5514 # Check whether --with-x was given.
5515 if test ${with_x+y}
5516 then :
5517 withval=$with_x;
5518 fi
5519
5520 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5521 if test "x$with_x" = xno; then
5522 # The user explicitly disabled X.
5523 have_x=disabled
5524 else
5525 case $x_includes,$x_libraries in #(
5526 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5527 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5528 then :
5529 printf %s "(cached) " >&6
5530 else $as_nop
5531 # One or both of the vars are not set, and there is no cached value.
5532 ac_x_includes=no
5533 ac_x_libraries=no
5534 # Do we need to do anything special at all?
5535 ac_save_LIBS=$LIBS
5536 LIBS="-lX11 $LIBS"
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <X11/Xlib.h>
5540 int
5541 main (void)
5542 {
5543 XrmInitialize ()
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_link "$LINENO"
5549 then :
5550 # We can compile and link X programs with no special options.
5551 ac_x_includes=
5552 ac_x_libraries=
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5555 conftest$ac_exeext conftest.$ac_ext
5556 LIBS="$ac_save_LIBS"
5557 # If that didn't work, only try xmkmf and file system searches
5558 # for native compilation.
5559 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
5560 then :
5561 rm -f -r conftest.dir
5562 if mkdir conftest.dir; then
5563 cd conftest.dir
5564 cat >Imakefile <<'_ACEOF'
5565 incroot:
5566 @echo incroot='${INCROOT}'
5567 usrlibdir:
5568 @echo usrlibdir='${USRLIBDIR}'
5569 libdir:
5570 @echo libdir='${LIBDIR}'
5571 _ACEOF
5572 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5574 for ac_var in incroot usrlibdir libdir; do
5575 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5576 done
5577 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5578 for ac_extension in a so sl dylib la dll; do
5579 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5580 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5581 ac_im_usrlibdir=$ac_im_libdir; break
5582 fi
5583 done
5584 # Screen out bogus values from the imake configuration. They are
5585 # bogus both because they are the default anyway, and because
5586 # using them would break gcc on systems where it needs fixed includes.
5587 case $ac_im_incroot in
5588 /usr/include) ac_x_includes= ;;
5589 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5590 esac
5591 case $ac_im_usrlibdir in
5592 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5593 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5594 esac
5595 fi
5596 cd ..
5597 rm -f -r conftest.dir
5598 fi
5599
5600 # Standard set of common directories for X headers.
5601 # Check X11 before X11Rn because it is often a symlink to the current release.
5602 ac_x_header_dirs='
5603 /usr/X11/include
5604 /usr/X11R7/include
5605 /usr/X11R6/include
5606 /usr/X11R5/include
5607 /usr/X11R4/include
5608
5609 /usr/include/X11
5610 /usr/include/X11R7
5611 /usr/include/X11R6
5612 /usr/include/X11R5
5613 /usr/include/X11R4
5614
5615 /usr/local/X11/include
5616 /usr/local/X11R7/include
5617 /usr/local/X11R6/include
5618 /usr/local/X11R5/include
5619 /usr/local/X11R4/include
5620
5621 /usr/local/include/X11
5622 /usr/local/include/X11R7
5623 /usr/local/include/X11R6
5624 /usr/local/include/X11R5
5625 /usr/local/include/X11R4
5626
5627 /opt/X11/include
5628
5629 /usr/X386/include
5630 /usr/x386/include
5631 /usr/XFree86/include/X11
5632
5633 /usr/include
5634 /usr/local/include
5635 /usr/unsupported/include
5636 /usr/athena/include
5637 /usr/local/x11r5/include
5638 /usr/lpp/Xamples/include
5639
5640 /usr/openwin/include
5641 /usr/openwin/share/include'
5642
5643 if test "$ac_x_includes" = no; then
5644 # Guess where to find include files, by looking for Xlib.h.
5645 # First, try using that file with no special directory specified.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <X11/Xlib.h>
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"
5651 then :
5652 # We can compile using X headers with no special include directory.
5653 ac_x_includes=
5654 else $as_nop
5655 for ac_dir in $ac_x_header_dirs; do
5656 if test -r "$ac_dir/X11/Xlib.h"; then
5657 ac_x_includes=$ac_dir
5658 break
5659 fi
5660 done
5661 fi
5662 rm -f conftest.err conftest.i conftest.$ac_ext
5663 fi # $ac_x_includes = no
5664
5665 if test "$ac_x_libraries" = no; then
5666 # Check for the libraries.
5667 # See if we find them without any special options.
5668 # Don't add to $LIBS permanently.
5669 ac_save_LIBS=$LIBS
5670 LIBS="-lX11 $LIBS"
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <X11/Xlib.h>
5674 int
5675 main (void)
5676 {
5677 XrmInitialize ()
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_link "$LINENO"
5683 then :
5684 LIBS=$ac_save_LIBS
5685 # We can link X programs with no special library path.
5686 ac_x_libraries=
5687 else $as_nop
5688 LIBS=$ac_save_LIBS
5689 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5690 do
5691 # Don't even attempt the hair of trying to link an X program!
5692 for ac_extension in a so sl dylib la dll; do
5693 if test -r "$ac_dir/libX11.$ac_extension"; then
5694 ac_x_libraries=$ac_dir
5695 break 2
5696 fi
5697 done
5698 done
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5701 conftest$ac_exeext conftest.$ac_ext
5702 fi # $ac_x_libraries = no
5703
5704 fi
5705 # Record the results.
5706 case $ac_x_includes,$ac_x_libraries in #(
5707 no,* | *,no | *\'*) :
5708 # Didn't find X, or a directory has "'" in its name.
5709 ac_cv_have_x="have_x=no" ;; #(
5710 *) :
5711 # Record where we found X for the cache.
5712 ac_cv_have_x="have_x=yes\
5713 ac_x_includes='$ac_x_includes'\
5714 ac_x_libraries='$ac_x_libraries'" ;;
5715 esac
5716 fi
5717 ;; #(
5718 *) have_x=yes;;
5719 esac
5720 eval "$ac_cv_have_x"
5721 fi # $with_x != no
5722
5723 if test "$have_x" != yes; then
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5725 printf "%s\n" "$have_x" >&6; }
5726 no_x=yes
5727 else
5728 # If each of the values was on the command line, it overrides each guess.
5729 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5730 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5731 # Update the cache value to reflect the command line values.
5732 ac_cv_have_x="have_x=yes\
5733 ac_x_includes='$x_includes'\
5734 ac_x_libraries='$x_libraries'"
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5736 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5737 fi
5738
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5
5741 printf %s "checking for main in -lX11... " >&6; }
5742 if test ${ac_cv_lib_X11_main+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 ac_check_lib_save_LIBS=$LIBS
5747 LIBS="-lX11 $LIBS"
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750
5751
5752 int
5753 main (void)
5754 {
5755 return main ();
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_c_try_link "$LINENO"
5761 then :
5762 ac_cv_lib_X11_main=yes
5763 else $as_nop
5764 ac_cv_lib_X11_main=no
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5767 conftest$ac_exeext conftest.$ac_ext
5768 LIBS=$ac_check_lib_save_LIBS
5769 fi
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5
5771 printf "%s\n" "$ac_cv_lib_X11_main" >&6; }
5772 if test "x$ac_cv_lib_X11_main" = xyes
5773 then :
5774 X_LIBS="$X_LIBS -lX11"
5775 printf "%s\n" "#define HAVE_XGCL 1" >>confdefs.h
5776
5777 else $as_nop
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing x libraries -- cannot compile xgcl" >&5
5779 printf "%s\n" "missing x libraries -- cannot compile xgcl" >&6; }
5780 fi
5781
5782
5783 fi
5784
5785
5786
5787
5788
5789 #
5790 # Dynamic loading
5791 #
5792
5793 if test "$enable_dlopen" = "yes" ; then
5794
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5796 printf %s "checking for dlopen in -ldl... " >&6; }
5797 if test ${ac_cv_lib_dl_dlopen+y}
5798 then :
5799 printf %s "(cached) " >&6
5800 else $as_nop
5801 ac_check_lib_save_LIBS=$LIBS
5802 LIBS="-ldl $LIBS"
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 char dlopen ();
5810 int
5811 main (void)
5812 {
5813 return dlopen ();
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_link "$LINENO"
5819 then :
5820 ac_cv_lib_dl_dlopen=yes
5821 else $as_nop
5822 ac_cv_lib_dl_dlopen=no
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5825 conftest$ac_exeext conftest.$ac_ext
5826 LIBS=$ac_check_lib_save_LIBS
5827 fi
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5829 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
5830 if test "x$ac_cv_lib_dl_dlopen" = xyes
5831 then :
5832 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
5833
5834 LIBS="-ldl $LIBS"
5835
5836 else $as_nop
5837 as_fn_error $? "Cannot find dlopen" "$LINENO" 5
5838 fi
5839
5840
5841 TLIBS="$TLIBS -ldl -rdynamic"
5842 assert_arg_to_cflags -fPIC
5843
5844 printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
5845
5846
5847 fi
5848
5849 if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5850 for ac_header in bfd.h
5851 do :
5852 ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
5853 if test "x$ac_cv_header_bfd_h" = xyes
5854 then :
5855 printf "%s\n" "#define HAVE_BFD_H 1" >>confdefs.h
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
5857 printf %s "checking for bfd_init in -lbfd... " >&6; }
5858 if test ${ac_cv_lib_bfd_bfd_init+y}
5859 then :
5860 printf %s "(cached) " >&6
5861 else $as_nop
5862 ac_check_lib_save_LIBS=$LIBS
5863 LIBS="-lbfd -liberty $LIBS"
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5870 char bfd_init ();
5871 int
5872 main (void)
5873 {
5874 return bfd_init ();
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_link "$LINENO"
5880 then :
5881 ac_cv_lib_bfd_bfd_init=yes
5882 else $as_nop
5883 ac_cv_lib_bfd_bfd_init=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886 conftest$ac_exeext conftest.$ac_ext
5887 LIBS=$ac_check_lib_save_LIBS
5888 fi
5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
5890 printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; }
5891 if test "x$ac_cv_lib_bfd_bfd_init" = xyes
5892 then :
5893 #
5894 # Old binutils appear to need CONST defined to const
5895 #
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking need to define CONST for bfd" >&5
5897 printf %s "checking need to define CONST for bfd... " >&6; }
5898 if test "$cross_compiling" = yes
5899 then :
5900 as_fn_error $? "cannot use bfd" "$LINENO" 5
5901 else $as_nop
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904
5905 #define IN_GCC
5906 #include <bfd.h>
5907
5908 int
5909 main (void)
5910 {
5911
5912 symbol_info t;
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_run "$LINENO"
5919 then :
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 printf "%s\n" "no" >&6; }
5922 else $as_nop
5923 if test "$cross_compiling" = yes
5924 then :
5925 as_fn_error $? "cannot use bfd" "$LINENO" 5
5926 else $as_nop
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929
5930 #define CONST const
5931 #define IN_GCC
5932 #include <bfd.h>
5933
5934 int
5935 main (void)
5936 {
5937
5938 symbol_info t;
5939
5940 ;
5941 return 0;
5942 }
5943 _ACEOF
5944 if ac_fn_c_try_run "$LINENO"
5945 then :
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947 printf "%s\n" "yes" >&6; }
5948
5949 printf "%s\n" "#define NEED_CONST 1" >>confdefs.h
5950
5951 else $as_nop
5952 as_fn_error $? "cannot use bfd" "$LINENO" 5
5953 fi
5954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5955 conftest.$ac_objext conftest.beam conftest.$ac_ext
5956 fi
5957
5958 fi
5959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5960 conftest.$ac_objext conftest.beam conftest.$ac_ext
5961 fi
5962
5963
5964 fi
5965
5966 fi
5967
5968 done
5969
5970
5971 printf "%s\n" "#define HAVE_LIBBFD 1" >>confdefs.h
5972
5973
5974 #
5975 # BFD boolean syntax
5976 #
5977
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useable bfd_boolean" >&5
5979 printf %s "checking for useable bfd_boolean... " >&6; }
5980 if test "$cross_compiling" = yes
5981 then :
5982 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5983 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5984 as_fn_error $? "cannot run test program while cross compiling
5985 See \`config.log' for more details" "$LINENO" 5; }
5986 else $as_nop
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989
5990 #define IN_GCC
5991 #include <bfd.h>
5992 bfd_boolean foo() {return FALSE;}
5993
5994 int
5995 main (void)
5996 {
5997
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_run "$LINENO"
6003 then :
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 printf "%s\n" "yes" >&6; }
6006
6007 printf "%s\n" "#define HAVE_BFD_BOOLEAN 1" >>confdefs.h
6008
6009 else $as_nop
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 printf "%s\n" "no" >&6; }
6012 fi
6013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6014 conftest.$ac_objext conftest.beam conftest.$ac_ext
6015 fi
6016
6017
6018 #
6019 # bfd_link_info.output_bfd minimal configure change check
6020 #
6021
6022 ac_fn_c_check_member "$LINENO" "struct bfd_link_info" "output_bfd" "ac_cv_member_struct_bfd_link_info_output_bfd" "
6023 #include <bfd.h>
6024 #include <bfdlink.h>
6025
6026 "
6027 if test "x$ac_cv_member_struct_bfd_link_info_output_bfd" = xyes
6028 then :
6029
6030 printf "%s\n" "#define HAVE_OUTPUT_BFD 1" >>confdefs.h
6031
6032 fi
6033
6034
6035
6036 #
6037 # FIXME: Need to workaround mingw before this point -- CM
6038 #
6039 if test "$enable_statsysbfd" = "yes" && ! $CC -v 2>&1 | fgrep ming > /dev/null ; then
6040 echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c
6041 MP=`$CC -Wl,-M -static -o foo foo.c -lbfd -liberty -ldl 2>&1 | grep -v : | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq`
6042 rm -f foo.c foo
6043 if echo $MP | tr ' ' '\012' | grep libbfd.a >/dev/null; then
6044 LIBBFD="`echo $MP | tr ' ' '\012' | grep libbfd.a | $AWK '{i=split($1,A,\"/\");for (j=1;j<=i;j++) if (j>1 && A[j]==\"..\") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf(\"%s%s\",A[j],j!=i ? \"/\" : \"\")}'`"
6045 else
6046 as_fn_error $? "cannot locate external libbfd.a" "$LINENO" 5
6047 fi
6048 if echo $MP | tr ' ' '\012' | grep libiberty.a >/dev/null ; then
6049 LIBIBERTY="`echo $MP | tr ' ' '\012' | grep libiberty.a | $AWK '{i=split($1,A,\"/\");for (j=1;j<=i;j++) if (j>1 && A[j]==\"..\") {j--;i-=2;for (k=j;k<=i;k++) A[k]=A[k+2];j--;}} END {for (j=1;j<=i;j++) printf(\"%s%s\",A[j],j!=i ? \"/\" : \"\")}'`"
6050 else
6051 as_fn_error $? "cannot locate external libiberty.a" "$LINENO" 5
6052 fi
6053 BUILD_BFD=copy_bfd
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
6055 printf %s "checking for inflate in -lz... " >&6; }
6056 if test ${ac_cv_lib_z_inflate+y}
6057 then :
6058 printf %s "(cached) " >&6
6059 else $as_nop
6060 ac_check_lib_save_LIBS=$LIBS
6061 LIBS="-lz $LIBS"
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064
6065 /* Override any GCC internal prototype to avoid an error.
6066 Use char because int might match the return type of a GCC
6067 builtin and then its argument prototype would still apply. */
6068 char inflate ();
6069 int
6070 main (void)
6071 {
6072 return inflate ();
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"
6078 then :
6079 ac_cv_lib_z_inflate=yes
6080 else $as_nop
6081 ac_cv_lib_z_inflate=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6084 conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6086 fi
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
6088 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
6089 if test "x$ac_cv_lib_z_inflate" = xyes
6090 then :
6091 TLIBS="$TLIBS -lz"
6092 else $as_nop
6093 as_fn_error $? "Need zlib for bfd linking" "$LINENO" 5
6094 fi
6095
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6097 printf %s "checking for dlsym in -ldl... " >&6; }
6098 if test ${ac_cv_lib_dl_dlsym+y}
6099 then :
6100 printf %s "(cached) " >&6
6101 else $as_nop
6102 ac_check_lib_save_LIBS=$LIBS
6103 LIBS="-ldl $LIBS"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106
6107 /* Override any GCC internal prototype to avoid an error.
6108 Use char because int might match the return type of a GCC
6109 builtin and then its argument prototype would still apply. */
6110 char dlsym ();
6111 int
6112 main (void)
6113 {
6114 return dlsym ();
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"
6120 then :
6121 ac_cv_lib_dl_dlsym=yes
6122 else $as_nop
6123 ac_cv_lib_dl_dlsym=no
6124 fi
6125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6126 conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6130 printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
6131 if test "x$ac_cv_lib_dl_dlsym" = xyes
6132 then :
6133 TLIBS="$TLIBS -ldl"
6134 else $as_nop
6135 as_fn_error $? "Need libdl for bfd linking" "$LINENO" 5
6136 fi
6137
6138
6139
6140
6141
6142 else
6143 TLIBS="$TLIBS -lbfd -liberty -ldl"
6144 fi
6145 fi
6146
6147 # Check whether --enable-xdr was given.
6148 if test ${enable_xdr+y}
6149 then :
6150 enableval=$enable_xdr;
6151 fi
6152
6153
6154 if test "$enable_xdr" != "no" ; then
6155 XDR_LIB=""
6156 ac_fn_c_check_func "$LINENO" "xdr_double" "ac_cv_func_xdr_double"
6157 if test "x$ac_cv_func_xdr_double" = xyes
6158 then :
6159 XDR_LIB=" "
6160 else $as_nop
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -ltirpc" >&5
6162 printf %s "checking for xdr_double in -ltirpc... " >&6; }
6163 if test ${ac_cv_lib_tirpc_xdr_double+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 ac_check_lib_save_LIBS=$LIBS
6168 LIBS="-ltirpc $LIBS"
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171
6172 /* Override any GCC internal prototype to avoid an error.
6173 Use char because int might match the return type of a GCC
6174 builtin and then its argument prototype would still apply. */
6175 char xdr_double ();
6176 int
6177 main (void)
6178 {
6179 return xdr_double ();
6180 ;
6181 return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_link "$LINENO"
6185 then :
6186 ac_cv_lib_tirpc_xdr_double=yes
6187 else $as_nop
6188 ac_cv_lib_tirpc_xdr_double=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6191 conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6193 fi
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdr_double" >&5
6195 printf "%s\n" "$ac_cv_lib_tirpc_xdr_double" >&6; }
6196 if test "x$ac_cv_lib_tirpc_xdr_double" = xyes
6197 then :
6198 XDR_LIB=tirpc
6199 else $as_nop
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lgssrpc" >&5
6201 printf %s "checking for xdr_double in -lgssrpc... " >&6; }
6202 if test ${ac_cv_lib_gssrpc_xdr_double+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else $as_nop
6206 ac_check_lib_save_LIBS=$LIBS
6207 LIBS="-lgssrpc $LIBS"
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210
6211 /* Override any GCC internal prototype to avoid an error.
6212 Use char because int might match the return type of a GCC
6213 builtin and then its argument prototype would still apply. */
6214 char xdr_double ();
6215 int
6216 main (void)
6217 {
6218 return xdr_double ();
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"
6224 then :
6225 ac_cv_lib_gssrpc_xdr_double=yes
6226 else $as_nop
6227 ac_cv_lib_gssrpc_xdr_double=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6232 fi
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssrpc_xdr_double" >&5
6234 printf "%s\n" "$ac_cv_lib_gssrpc_xdr_double" >&6; }
6235 if test "x$ac_cv_lib_gssrpc_xdr_double" = xyes
6236 then :
6237 XDR_LIB=gssrpc
6238 else $as_nop
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lrpc" >&5
6240 printf %s "checking for xdr_double in -lrpc... " >&6; }
6241 if test ${ac_cv_lib_rpc_xdr_double+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 ac_check_lib_save_LIBS=$LIBS
6246 LIBS="-lrpc $LIBS"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249
6250 /* Override any GCC internal prototype to avoid an error.
6251 Use char because int might match the return type of a GCC
6252 builtin and then its argument prototype would still apply. */
6253 char xdr_double ();
6254 int
6255 main (void)
6256 {
6257 return xdr_double ();
6258 ;
6259 return 0;
6260 }
6261 _ACEOF
6262 if ac_fn_c_try_link "$LINENO"
6263 then :
6264 ac_cv_lib_rpc_xdr_double=yes
6265 else $as_nop
6266 ac_cv_lib_rpc_xdr_double=no
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6269 conftest$ac_exeext conftest.$ac_ext
6270 LIBS=$ac_check_lib_save_LIBS
6271 fi
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_xdr_double" >&5
6273 printf "%s\n" "$ac_cv_lib_rpc_xdr_double" >&6; }
6274 if test "x$ac_cv_lib_rpc_xdr_double" = xyes
6275 then :
6276 XDR_LIB=rpc
6277 else $as_nop
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -loncrpc" >&5
6279 printf %s "checking for xdr_double in -loncrpc... " >&6; }
6280 if test ${ac_cv_lib_oncrpc_xdr_double+y}
6281 then :
6282 printf %s "(cached) " >&6
6283 else $as_nop
6284 ac_check_lib_save_LIBS=$LIBS
6285 LIBS="-loncrpc $LIBS"
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288
6289 /* Override any GCC internal prototype to avoid an error.
6290 Use char because int might match the return type of a GCC
6291 builtin and then its argument prototype would still apply. */
6292 char xdr_double ();
6293 int
6294 main (void)
6295 {
6296 return xdr_double ();
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_link "$LINENO"
6302 then :
6303 ac_cv_lib_oncrpc_xdr_double=yes
6304 else $as_nop
6305 ac_cv_lib_oncrpc_xdr_double=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6308 conftest$ac_exeext conftest.$ac_ext
6309 LIBS=$ac_check_lib_save_LIBS
6310 fi
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oncrpc_xdr_double" >&5
6312 printf "%s\n" "$ac_cv_lib_oncrpc_xdr_double" >&6; }
6313 if test "x$ac_cv_lib_oncrpc_xdr_double" = xyes
6314 then :
6315 XDR_LIB=oncrpc
6316 fi
6317
6318 fi
6319
6320 fi
6321
6322 fi
6323
6324 fi
6325
6326
6327 if test "$XDR_LIB" != ""; then
6328
6329 printf "%s\n" "#define HAVE_XDR 1" >>confdefs.h
6330
6331 if test "$XDR_LIB" != " "; then
6332 TLIBS="$TLIBS -l$XDR_LIB"
6333 add_arg_to_cflags -I/usr/include/$XDR_LIB
6334 fi
6335 fi
6336 fi
6337
6338
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_clzl" >&5
6340 printf %s "checking __builtin_clzl... " >&6; }
6341 if test "$cross_compiling" = yes
6342 then :
6343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6344 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6345 as_fn_error $? "cannot run test program while cross compiling
6346 See \`config.log' for more details" "$LINENO" 5; }
6347 else $as_nop
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350
6351 #include <stdio.h>
6352 #include <unistd.h>
6353
6354 int
6355 main (void)
6356 {
6357
6358 unsigned long u;
6359 long j;
6360 if (__builtin_clzl(0)!=sizeof(long)*8)
6361 return -1;
6362 for (u=1,j=sizeof(long)*8-1;j>=0;j--,u<<=1)
6363 if (__builtin_clzl(u)!=j)
6364 return -1;
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_run "$LINENO"
6371 then :
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 printf "%s\n" "yes" >&6; }
6374
6375 printf "%s\n" "#define HAVE_CLZL 1" >>confdefs.h
6376
6377 else $as_nop
6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 printf "%s\n" "no" >&6; }
6380 fi
6381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6382 conftest.$ac_objext conftest.beam conftest.$ac_ext
6383 fi
6384
6385
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_ctzl" >&5
6387 printf %s "checking __builtin_ctzl... " >&6; }
6388 if test "$cross_compiling" = yes
6389 then :
6390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6392 as_fn_error $? "cannot run test program while cross compiling
6393 See \`config.log' for more details" "$LINENO" 5; }
6394 else $as_nop
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397
6398 #include <stdio.h>
6399 #include <unistd.h>
6400
6401 int
6402 main (void)
6403 {
6404
6405 unsigned long u;
6406 long j;
6407 if (__builtin_ctzl(0)!=sizeof(long)*8)
6408 return -1;
6409 for (u=1,j=0;j<sizeof(long)*8-1;j++,u<<=1)
6410 if (__builtin_ctzl(u)!=j)
6411 return -1;
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_run "$LINENO"
6418 then :
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420 printf "%s\n" "yes" >&6; }
6421
6422 printf "%s\n" "#define HAVE_CTZL 1" >>confdefs.h
6423
6424 else $as_nop
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 printf "%s\n" "no" >&6; }
6427 fi
6428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6429 conftest.$ac_objext conftest.beam conftest.$ac_ext
6430 fi
6431
6432
6433
6434 case $use in
6435 sh4*) ;; #FIXME, these exceptions needed as of gcc 4.7
6436 hppa*) ;; #FIXME
6437 powerpc*) ;; #FIXME
6438 alpha*) ;; #FIXME
6439 ia64*) ;; #FIXME
6440 *)
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin___clear_cache" >&5
6442 printf %s "checking __builtin___clear_cache... " >&6; }
6443 if test "$cross_compiling" = yes
6444 then :
6445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6447 as_fn_error $? "cannot run test program while cross compiling
6448 See \`config.log' for more details" "$LINENO" 5; }
6449 else $as_nop
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452
6453 int
6454 main (void)
6455 {
6456
6457 void *v,*ve;
6458 __builtin___clear_cache(v,ve);
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_run "$LINENO"
6465 then :
6466
6467 printf "%s\n" "#define HAVE_BUILTIN_CLEAR_CACHE 1" >>confdefs.h
6468
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6470 printf "%s\n" "yes" >&6; }
6471 else $as_nop
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 printf "%s\n" "no" >&6; }
6474 fi
6475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6476 conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 fi
6478 ;;
6479 esac
6480
6481 #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
6482
6483 # Find where Data begins. This is used by the storage allocation
6484 # mechanism, in the PAGE macro. This offset is subtracted from
6485 # addresses, in calculating a page for an address in the heap.
6486
6487 # The cast to long int works around a bug in the HP C Compiler
6488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6490 # This bug is HP SR number 8606223364.
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6492 printf %s "checking size of long... " >&6; }
6493 if test ${ac_cv_sizeof_long+y}
6494 then :
6495 printf %s "(cached) " >&6
6496 else $as_nop
6497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
6498 then :
6499
6500 else $as_nop
6501 if test "$ac_cv_type_long" = yes; then
6502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6503 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6504 as_fn_error 77 "cannot compute sizeof (long)
6505 See \`config.log' for more details" "$LINENO" 5; }
6506 else
6507 ac_cv_sizeof_long=0
6508 fi
6509 fi
6510
6511 fi
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6513 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
6514
6515
6516
6517 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
6518
6519
6520
6521 if test "$ac_cv_sizeof_long" = "4" ; then
6522 assert_arg_to_cflags "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
6523 fi
6524
6525 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
6526 if test "x$ac_cv_header_time_h" = xyes
6527 then :
6528 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
6529
6530 fi
6531 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6532 if test "x$ac_cv_header_sys_time_h" = xyes
6533 then :
6534 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6535
6536 fi
6537
6538
6539 # The cast to long int works around a bug in the HP C Compiler
6540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6542 # This bug is HP SR number 8606223364.
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
6544 printf %s "checking size of time_t... " >&6; }
6545 if test ${ac_cv_sizeof_time_t+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else $as_nop
6549 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h>
6550 "
6551 then :
6552
6553 else $as_nop
6554 if test "$ac_cv_type_time_t" = yes; then
6555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6557 as_fn_error 77 "cannot compute sizeof (time_t)
6558 See \`config.log' for more details" "$LINENO" 5; }
6559 else
6560 ac_cv_sizeof_time_t=0
6561 fi
6562 fi
6563
6564 fi
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
6566 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
6567
6568
6569
6570 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
6571
6572
6573 if test "$use" != "mingw" ; then
6574 if test "$ac_cv_sizeof_time_t" != "8" ; then
6575 as_fn_error $? "Cannot define a 64 bit time_t" "$LINENO" 5
6576 fi
6577 fi
6578
6579
6580
6581 #### Memory areas and alignment
6582
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
6584 printf %s "checking for byte order... " >&6; }
6585 if test "$cross_compiling" = yes
6586 then :
6587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6588 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6589 as_fn_error $? "cannot run test program while cross compiling
6590 See \`config.log' for more details" "$LINENO" 5; }
6591 else $as_nop
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594
6595 int
6596 main (void)
6597 {
6598
6599 /* Are we little or big endian? Adapted from Harbison&Steele. */
6600 union {long l;char c[sizeof(long)];} u;
6601 u.l = 1;
6602 return u.c[sizeof(long)-1] ? 1 : 0;
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_run "$LINENO"
6609 then :
6610
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6612 printf "%s\n" "little" >&6; }
6613 else $as_nop
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6615 printf "%s\n" "big" >&6; }
6616
6617 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6618
6619 fi
6620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6621 conftest.$ac_objext conftest.beam conftest.$ac_ext
6622 fi
6623
6624
6625
6626
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for word order" >&5
6628 printf %s "checking for word order... " >&6; }
6629 if test "$cross_compiling" = yes
6630 then :
6631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6632 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6633 as_fn_error $? "cannot run test program while cross compiling
6634 See \`config.log' for more details" "$LINENO" 5; }
6635 else $as_nop
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638
6639 int
6640 main (void)
6641 {
6642
6643 /* Are we little or big endian? Adapted from Harbison&Steele. */
6644 union {double d;int l[sizeof(double)/sizeof(int)];} u;
6645 u.d = 1.0;
6646 return u.l[sizeof(double)/sizeof(int)-1] ? 0 : 1;
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_run "$LINENO"
6653 then :
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6655 printf "%s\n" "little" >&6; }
6656 else $as_nop
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6658 printf "%s\n" "big" >&6; }
6659
6660 printf "%s\n" "#define DOUBLE_BIGENDIAN 1" >>confdefs.h
6661
6662 fi
6663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6664 conftest.$ac_objext conftest.beam conftest.$ac_ext
6665 fi
6666
6667
6668
6669 # pagewidth
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pagewidth" >&5
6671 printf %s "checking for pagewidth... " >&6; }
6672 case $use in
6673 mips*) min_pagewidth=14;;
6674 *) min_pagewidth=12;;
6675 esac
6676 if test "$cross_compiling" = yes
6677 then :
6678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6680 as_fn_error $? "cannot run test program while cross compiling
6681 See \`config.log' for more details" "$LINENO" 5; }
6682 else $as_nop
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685
6686 #include <stdio.h>
6687 #include <unistd.h>
6688 #ifdef __CYGWIN__
6689 #define getpagesize() 4096
6690 #endif
6691
6692 int
6693 main (void)
6694 {
6695
6696 size_t i=getpagesize(),j;
6697 FILE *fp=fopen("conftest1","w");
6698 for (j=0;i>>=1;j++);
6699 j=j<$min_pagewidth ? $min_pagewidth : j;
6700 fprintf(fp,"%u",j);
6701
6702 ;
6703 return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_run "$LINENO"
6707 then :
6708 PAGEWIDTH=`cat conftest1`
6709 else $as_nop
6710 PAGEWIDTH=0
6711 fi
6712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6713 conftest.$ac_objext conftest.beam conftest.$ac_ext
6714 fi
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAGEWIDTH" >&5
6717 printf "%s\n" "$PAGEWIDTH" >&6; }
6718
6719 printf "%s\n" "#define PAGEWIDTH $PAGEWIDTH" >>confdefs.h
6720
6721
6722
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required object alignment" >&5
6724 printf %s "checking for required object alignment... " >&6; }
6725 if test "$cross_compiling" = yes
6726 then :
6727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6728 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6729 as_fn_error $? "cannot run test program while cross compiling
6730 See \`config.log' for more details" "$LINENO" 5; }
6731 else $as_nop
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734
6735 #include <stdio.h>
6736 #include <stdlib.h>
6737 #define EXTER
6738 #define INLINE
6739 #include "$MP_INCLUDE"
6740 #include "./h/enum.h"
6741 #define OBJ_ALIGN
6742 #include "./h/type.h"
6743 #include "./h/lu.h"
6744 #include "./h/object.h"
6745
6746 int
6747 main (void)
6748 {
6749
6750 unsigned long i;
6751 FILE *fp=fopen("conftest1","w");
6752 for (i=1;i && NOT_OBJECT_ALIGNED(i); i<<=1);
6753 if (!i) return -1;
6754 fprintf(fp,"%lu",i);
6755 fclose(fp);
6756 return 0;
6757
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 if ac_fn_c_try_run "$LINENO"
6763 then :
6764 obj_align=`cat conftest1`
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6766 printf "%s\n" "$obj_align" >&6; }
6767
6768 printf "%s\n" "#define OBJ_ALIGNMENT $obj_align" >>confdefs.h
6769
6770 else $as_nop
6771 as_fn_error $? "Cannot find object alignent" "$LINENO" 5
6772 fi
6773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6774 conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 fi
6776
6777
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension variable alignment" >&5
6779 printf %s "checking for C extension variable alignment... " >&6; }
6780 if test "$cross_compiling" = yes
6781 then :
6782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6783 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6784 as_fn_error $? "cannot run test program while cross compiling
6785 See \`config.log' for more details" "$LINENO" 5; }
6786 else $as_nop
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789
6790 int
6791 main (void)
6792 {
6793
6794 char *v __attribute__ ((aligned ($obj_align)));
6795
6796 ;
6797 return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_run "$LINENO"
6801 then :
6802 obj_align="__attribute__ ((aligned ($obj_align)))"
6803 else $as_nop
6804 as_fn_error $? "Need alignment attributes" "$LINENO" 5
6805 fi
6806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6807 conftest.$ac_objext conftest.beam conftest.$ac_ext
6808 fi
6809
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6811 printf "%s\n" "$obj_align" >&6; }
6812
6813 printf "%s\n" "#define OBJ_ALIGN $obj_align" >>confdefs.h
6814
6815
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension noreturn function attribute" >&5
6817 printf %s "checking for C extension noreturn function attribute... " >&6; }
6818 if test "$cross_compiling" = yes
6819 then :
6820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6821 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6822 as_fn_error $? "cannot run test program while cross compiling
6823 See \`config.log' for more details" "$LINENO" 5; }
6824 else $as_nop
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827
6828 int
6829 main (void)
6830 {
6831
6832 extern int v() __attribute__ ((noreturn));
6833
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_run "$LINENO"
6839 then :
6840 no_return="__attribute__ ((noreturn))"
6841 else $as_nop
6842 no_return=
6843 fi
6844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6845 conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 fi
6847
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $no_return" >&5
6849 printf "%s\n" "$no_return" >&6; }
6850
6851 printf "%s\n" "#define NO_RETURN $no_return" >>confdefs.h
6852
6853
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof struct contblock" >&5
6855 printf %s "checking sizeof struct contblock... " >&6; }
6856
6857 if test "$cross_compiling" = yes
6858 then :
6859 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6860 else $as_nop
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863
6864 #include <stdio.h>
6865 #include <stdlib.h>
6866 #define EXTER
6867 #define INLINE
6868 #include "$MP_INCLUDE"
6869 #include "h/enum.h"
6870 #include "h/type.h"
6871 #include "h/lu.h"
6872 #include "h/object.h"
6873
6874 int
6875 main (void)
6876 {
6877
6878 FILE *f=fopen("conftest1","w");
6879 fprintf(f,"%u",sizeof(struct contblock));
6880 fclose(f);
6881
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_run "$LINENO"
6887 then :
6888 sizeof_contblock=`cat conftest1`
6889 else $as_nop
6890 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6891 fi
6892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6893 conftest.$ac_objext conftest.beam conftest.$ac_ext
6894 fi
6895
6896
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_contblock" >&5
6898 printf "%s\n" "$sizeof_contblock" >&6; }
6899
6900 printf "%s\n" "#define SIZEOF_CONTBLOCK $sizeof_contblock" >>confdefs.h
6901
6902
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
6904 printf %s "checking for sbrk... " >&6; }
6905 HAVE_SBRK=""
6906 if test "$cross_compiling" = yes
6907 then :
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6909 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6910 else $as_nop
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913
6914 #include <unistd.h>
6915 #include <stdio.h>
6916
6917 int
6918 main (void)
6919 {
6920
6921 FILE *f;
6922 if (!(f=fopen("conftest1","w")))
6923 return -1;
6924 fprintf(f,"%p",sbrk(0));
6925
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_run "$LINENO"
6931 then :
6932 HAVE_SBRK=1;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6933 printf "%s\n" "yes" >&6; }
6934 else $as_nop
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6936 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6937 fi
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6939 conftest.$ac_objext conftest.beam conftest.$ac_ext
6940 fi
6941
6942
6943 if test "$use" = "386-macosx" ; then
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: emulating sbrk for mac" >&5
6945 printf "%s\n" "emulating sbrk for mac" >&6; };
6946 HAVE_SBRK=0
6947 fi
6948
6949 if test "$HAVE_SBRK" = "1" ; then
6950
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_NO_RANDOMIZE constant" >&5
6952 printf %s "checking for ADDR_NO_RANDOMIZE constant... " >&6; }
6953 if test "$cross_compiling" = yes
6954 then :
6955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6956 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6957 as_fn_error $? "cannot run test program while cross compiling
6958 See \`config.log' for more details" "$LINENO" 5; }
6959 else $as_nop
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962
6963 #include <sys/personality.h>
6964 #include <stdio.h>
6965
6966 int
6967 main (void)
6968 {
6969
6970 FILE *f;
6971 if (!(f=fopen("conftest1","w"))) return -1;
6972 fprintf(f,"%x",ADDR_NO_RANDOMIZE);
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_run "$LINENO"
6979 then :
6980 ADDR_NO_RANDOMIZE=`cat conftest1`
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_NO_RANDOMIZE" >&5
6982 printf "%s\n" "yes $ADDR_NO_RANDOMIZE" >&6; }
6983 else $as_nop
6984 ADDR_NO_RANDOMIZE=0
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no assuming 0x40000" >&5
6986 printf "%s\n" "no assuming 0x40000" >&6; }
6987
6988 printf "%s\n" "#define ADDR_NO_RANDOMIZE 0x40000" >>confdefs.h
6989
6990 fi
6991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6992 conftest.$ac_objext conftest.beam conftest.$ac_ext
6993 fi
6994
6995
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_COMPAT_LAYOUT constant" >&5
6997 printf %s "checking for ADDR_COMPAT_LAYOUT constant... " >&6; }
6998 if test "$cross_compiling" = yes
6999 then :
7000 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7002 as_fn_error $? "cannot run test program while cross compiling
7003 See \`config.log' for more details" "$LINENO" 5; }
7004 else $as_nop
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007
7008 #include <sys/personality.h>
7009 #include <stdio.h>
7010
7011 int
7012 main (void)
7013 {
7014
7015 FILE *f;
7016 if (!(f=fopen("conftest1","w"))) return -1;
7017 fprintf(f,"%x",ADDR_COMPAT_LAYOUT);
7018
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_c_try_run "$LINENO"
7024 then :
7025 ADDR_COMPAT_LAYOUT=`cat conftest1`
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_COMPAT_LAYOUT" >&5
7027 printf "%s\n" "yes $ADDR_COMPAT_LAYOUT" >&6; }
7028 else $as_nop
7029 ADDR_COMPAT_LAYOUT=0
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 printf "%s\n" "no" >&6; }
7032
7033 printf "%s\n" "#define ADDR_COMPAT_LAYOUT 0" >>confdefs.h
7034
7035 fi
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7037 conftest.$ac_objext conftest.beam conftest.$ac_ext
7038 fi
7039
7040
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_LIMIT_3GB constant" >&5
7042 printf %s "checking for ADDR_LIMIT_3GB constant... " >&6; }
7043 if test "$cross_compiling" = yes
7044 then :
7045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7046 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7047 as_fn_error $? "cannot run test program while cross compiling
7048 See \`config.log' for more details" "$LINENO" 5; }
7049 else $as_nop
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052
7053 #include <sys/personality.h>
7054 #include <stdio.h>
7055
7056 int
7057 main (void)
7058 {
7059
7060 FILE *f;
7061 if (!(f=fopen("conftest1","w"))) return -1;
7062 fprintf(f,"%x",ADDR_LIMIT_3GB);
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_run "$LINENO"
7069 then :
7070 ADDR_LIMIT_3GB=`cat conftest1`
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_LIMIT_3GB" >&5
7072 printf "%s\n" "yes $ADDR_LIMIT_3GB" >&6; }
7073 else $as_nop
7074 ADDR_LIMIT_3GB=0
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
7077
7078 printf "%s\n" "#define ADDR_LIMIT_3GB 0" >>confdefs.h
7079
7080 fi
7081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7082 conftest.$ac_objext conftest.beam conftest.$ac_ext
7083 fi
7084
7085
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for personality(ADDR_NO_RANDOMIZE) support" >&5
7087 printf %s "checking for personality(ADDR_NO_RANDOMIZE) support... " >&6; }
7088 if test "$cross_compiling" = yes
7089 then :
7090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7092 as_fn_error $? "cannot run test program while cross compiling
7093 See \`config.log' for more details" "$LINENO" 5; }
7094 else $as_nop
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097
7098 #include "h/unrandomize_headers.h"
7099 int main(int argc,char *argv[],char *envp[]) {
7100 #include "h/unrandomize.h"
7101 return 0;
7102 }
7103
7104 _ACEOF
7105 if ac_fn_c_try_run "$LINENO"
7106 then :
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7108 printf "%s\n" "yes" >&6; }
7109
7110 printf "%s\n" "#define CAN_UNRANDOMIZE_SBRK 1" >>confdefs.h
7111
7112 else $as_nop
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 printf "%s\n" "no" >&6; }
7115 fi
7116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7117 conftest.$ac_objext conftest.beam conftest.$ac_ext
7118 fi
7119
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that sbrk is (now) non-random" >&5
7122 printf %s "checking that sbrk is (now) non-random... " >&6; }
7123 SBRK=0
7124 if test "$cross_compiling" = yes
7125 then :
7126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7128 as_fn_error $? "cannot run test program while cross compiling
7129 See \`config.log' for more details" "$LINENO" 5; }
7130 else $as_nop
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133
7134 #include "h/unrandomize_headers.h"
7135 int main(int argc,char * argv[],char * envp[]) {
7136 FILE *f;
7137 #ifdef CAN_UNRANDOMIZE_SBRK
7138 #include "h/unrandomize.h"
7139 #endif
7140 if (!(f=fopen("conftest1","w")))
7141 return -1;
7142 fprintf(f,"%p",sbrk(0));
7143 return 0;
7144 }
7145
7146 _ACEOF
7147 if ac_fn_c_try_run "$LINENO"
7148 then :
7149 SBRK=`cat conftest1`
7150 fi
7151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7152 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 fi
7154
7155 if test "$SBRK" = "0" ; then
7156 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7157 fi
7158
7159 SBRK1=0
7160 if test "$cross_compiling" = yes
7161 then :
7162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7163 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7164 as_fn_error $? "cannot run test program while cross compiling
7165 See \`config.log' for more details" "$LINENO" 5; }
7166 else $as_nop
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169
7170 #include "h/unrandomize_headers.h"
7171 int main(int argc,char * argv[],char * envp[]) {
7172 FILE *f;
7173 #ifdef CAN_UNRANDOMIZE_SBRK
7174 #include "h/unrandomize.h"
7175 #endif
7176 if (!(f=fopen("conftest1","w"))) return -1;
7177 fprintf(f,"%p",sbrk(0));
7178 return 0;
7179 }
7180
7181 _ACEOF
7182 if ac_fn_c_try_run "$LINENO"
7183 then :
7184 SBRK1=`cat conftest1`
7185 fi
7186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7187 conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189
7190 if test "$SBRK1" = "0" ; then
7191 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7192 fi
7193 if test "$SBRK" = "$SBRK1" ; then
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7195 printf "%s\n" "yes" >&6; }
7196 else
7197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 printf "%s\n" "no" >&6; }
7199 echo "Cannot build with randomized sbrk. Your options:"
7200 echo " - upgrade to a kernel/libc that knows about personality(ADDR_NO_RANDOMIZE)"
7201 echo " - recompile your kernel with CONFIG_COMPAT_BRK (if it has that option)"
7202 echo " - run sysctl kernel.randomize_va_space=0 before using gcl"
7203 as_fn_error $? "exiting" "$LINENO" 5
7204 fi
7205 fi
7206
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_DIRECTION" >&5
7208 printf %s "checking CSTACK_DIRECTION... " >&6; }
7209 if test "$cross_compiling" = yes
7210 then :
7211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7212 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7213 as_fn_error $? "cannot run test program while cross compiling
7214 See \`config.log' for more details" "$LINENO" 5; }
7215 else $as_nop
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218
7219 #include "h/unrandomize_headers.h"
7220 int main(int argc,char **argv,char **envp) {
7221 FILE *fp = fopen("conftest1","w");
7222 #ifdef CAN_UNRANDOMIZE_SBRK
7223 #include "h/unrandomize.h"
7224 #endif
7225 fprintf(fp,"%d",(alloca(sizeof(void *))>alloca(sizeof(void *))) ? -1 : 1);
7226 fclose(fp);
7227 return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_run "$LINENO"
7231 then :
7232 cstack_direction=`cat conftest1`
7233 else $as_nop
7234 cstack_direction=0
7235 fi
7236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7237 conftest.$ac_objext conftest.beam conftest.$ac_ext
7238 fi
7239
7240
7241 printf "%s\n" "#define CSTACK_DIRECTION $cstack_direction" >>confdefs.h
7242
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_direction" >&5
7244 printf "%s\n" "$cstack_direction" >&6; }
7245
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding CSTACK_ALIGNMENT" >&5
7247 printf %s "checking finding CSTACK_ALIGNMENT... " >&6; }
7248 if test "$cross_compiling" = yes
7249 then :
7250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7251 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7252 as_fn_error $? "cannot run test program while cross compiling
7253 See \`config.log' for more details" "$LINENO" 5; }
7254 else $as_nop
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257
7258 #include "h/unrandomize_headers.h"
7259 int main(int argc,char **argv,char **envp) {
7260 void *b,*c;
7261 FILE *fp = fopen("conftest1","w");
7262 long n;
7263 #ifdef CAN_UNRANDOMIZE_SBRK
7264 #include "h/unrandomize.h"
7265 #endif
7266 b=alloca(sizeof(b));
7267 c=alloca(sizeof(c));
7268 n=b>c ? b-c : c-b;
7269 n=n>sizeof(c) ? n : 1;
7270 fprintf(fp,"%ld",n);
7271 fclose(fp);
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_run "$LINENO"
7276 then :
7277 cstack_alignment=`cat conftest1`
7278 else $as_nop
7279 cstack_alignment=0
7280 fi
7281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7282 conftest.$ac_objext conftest.beam conftest.$ac_ext
7283 fi
7284
7285
7286 printf "%s\n" "#define CSTACK_ALIGNMENT $cstack_alignment" >>confdefs.h
7287
7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_alignment" >&5
7289 printf "%s\n" "$cstack_alignment" >&6; }
7290
7291 # Check whether --enable-cstackmax was given.
7292 if test ${enable_cstackmax+y}
7293 then :
7294 enableval=$enable_cstackmax; if test "$enableval" != "" ; then
7295 printf "%s\n" "#define CSTACKMAX $enableval" >>confdefs.h
7296 fi
7297 fi
7298
7299
7300
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_ADDRESS" >&5
7302 printf %s "checking CSTACK_ADDRESS... " >&6; }
7303 if test "$cross_compiling" = yes
7304 then :
7305 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7307 as_fn_error $? "cannot run test program while cross compiling
7308 See \`config.log' for more details" "$LINENO" 5; }
7309 else $as_nop
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 #include "h/unrandomize_headers.h"
7314 int
7315 main(int argc,char **argv,char **envp) {
7316 FILE *fp = fopen("conftest1","w");
7317 unsigned long i,j;
7318
7319 #ifdef CAN_UNRANDOMIZE_SBRK
7320 #include "h/unrandomize.h"
7321 #endif
7322 j=1;
7323 j<<=$PAGEWIDTH;
7324 j<<=16;
7325 i=(unsigned long)alloca(sizeof(void *));
7326 if ($cstack_direction==1) i-=j;
7327 j--;
7328 i+=j;
7329 i&=~j;
7330 fprintf(fp,"0x%lx",i-1);
7331 fclose(fp);
7332 return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_run "$LINENO"
7336 then :
7337 cstack_address=`cat conftest1`
7338 else $as_nop
7339 cstack_address=0
7340 fi
7341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7342 conftest.$ac_objext conftest.beam conftest.$ac_ext
7343 fi
7344
7345
7346 printf "%s\n" "#define CSTACK_ADDRESS $cstack_address" >>confdefs.h
7347
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_address" >&5
7349 printf "%s\n" "$cstack_address" >&6; }
7350
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cstack bits" >&5
7352 printf %s "checking cstack bits... " >&6; }
7353 if test "$cross_compiling" = yes
7354 then :
7355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7356 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7357 as_fn_error $? "cannot run test program while cross compiling
7358 See \`config.log' for more details" "$LINENO" 5; }
7359 else $as_nop
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362
7363 #include "h/unrandomize_headers.h"
7364 int
7365 main(int argc,char **argv,char **envp) {
7366 void *v ;
7367 FILE *fp = fopen("conftest1","w");
7368 long i,j;
7369
7370 #ifdef CAN_UNRANDOMIZE_SBRK
7371 #include "h/unrandomize.h"
7372 #endif
7373 j=1;
7374 j<<=$PAGEWIDTH;
7375 j<<=16;
7376 i=(long)&v;
7377 if ($cstack_direction==1) i-=j;
7378 j--;
7379 i+=j;
7380 i&=~j;
7381 for (j=0;(i>>j)!=(i>>(sizeof(long)*8-1));j++);
7382 fprintf(fp,"%ld",j);
7383 fclose(fp);
7384 return 0;
7385 }
7386 _ACEOF
7387 if ac_fn_c_try_run "$LINENO"
7388 then :
7389 cstack_bits=`cat conftest1`
7390 else $as_nop
7391 cstack_bits=0
7392 fi
7393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7394 conftest.$ac_objext conftest.beam conftest.$ac_ext
7395 fi
7396
7397
7398 printf "%s\n" "#define CSTACK_BITS $cstack_bits" >>confdefs.h
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_bits" >&5
7401 printf "%s\n" "$cstack_bits" >&6; }
7402
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NEG_CSTACK_ADDRESS" >&5
7404 printf %s "checking NEG_CSTACK_ADDRESS... " >&6; }
7405 if test "$cross_compiling" = yes
7406 then :
7407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7409 as_fn_error $? "cannot run test program while cross compiling
7410 See \`config.log' for more details" "$LINENO" 5; }
7411 else $as_nop
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414
7415 #include "h/unrandomize_headers.h"
7416 int
7417 main(int argc,char **argv,char **envp) {
7418 #ifdef CAN_UNRANDOMIZE_SBRK
7419 #include "h/unrandomize.h"
7420 #endif
7421 return (long)$cstack_address<0 ? 0 : -1;
7422 }
7423 _ACEOF
7424 if ac_fn_c_try_run "$LINENO"
7425 then :
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427 printf "%s\n" "yes" >&6; }
7428 neg_cstack_address=1
7429
7430 printf "%s\n" "#define NEG_CSTACK_ADDRESS 1" >>confdefs.h
7431
7432 else $as_nop
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 printf "%s\n" "no" >&6; }
7435 neg_cstack_address=0
7436 fi
7437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7438 conftest.$ac_objext conftest.beam conftest.$ac_ext
7439 fi
7440
7441
7442 # Check whether --enable-immfix was given.
7443 if test ${enable_immfix+y}
7444 then :
7445 enableval=$enable_immfix;
7446 fi
7447
7448
7449 # Check whether --enable-fastimmfix was given.
7450 if test ${enable_fastimmfix+y}
7451 then :
7452 enableval=$enable_fastimmfix;
7453 else $as_nop
7454 enable_fastimmfix=64
7455 fi
7456
7457
7458
7459 if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(0) remains above, foiling unexec
7460
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding default linker script" >&5
7462 printf %s "checking finding default linker script... " >&6; }
7463 touch unixport/gcl.script
7464 echo "int main() {return 0;}" >foo.c
7465 $CC $LDFLAGS -Wl,--verbose foo.c -o foo 2>&1 | \
7466 $AWK '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
7467 rm -rf foo.c foo
7468
7469 if test "`cat gcl.script | wc -l`" != "0" ; then
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: got it" >&5
7471 printf "%s\n" "got it" >&6; }
7472
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking output_arch" >&5
7474 printf %s "checking output_arch... " >&6; }
7475 output_arch=`cat gcl.script |grep OUTPUT_ARCH|head -n 1|sed 's,.*(\(.*\)).*,\1,1'|cut -f1 -d:`;
7476 if test "$output_arch" != "" ; then
7477
7478 printf "%s\n" "#define OUTPUT_ARCH bfd_arch_${output_arch}" >>confdefs.h
7479
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bfd_arch_${output_arch}" >&5
7481 printf "%s\n" "bfd_arch_${output_arch}" >&6; }
7482 else
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7484 printf "%s\n" "not found" >&6; }
7485 fi
7486
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying to adjust text start" >&5
7488 printf "%s\n" "$as_me: trying to adjust text start" >&6;}
7489 cp gcl.script gcl.script.def
7490
7491 n=-1;
7492 k=0;
7493 lim=`$AWK 'END {printf("%d\n",m*8-2)}' m=$ac_cv_sizeof_long`;
7494 max=0;
7495 min=$lim;
7496 while test $n -lt $lim ; do
7497 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$n </dev/null`
7498 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7499 # diff -u gcl.script.def gcl.script
7500 echo "int main() {return 0;}" >foo.c
7501 if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo ) >/dev/null 2>&1 ; then
7502 if test $n -lt $min ; then min=$n; fi;
7503 if test $n -gt $max; then max=$n; fi;
7504 elif test $max -gt 0 ; then
7505 break;
7506 fi;
7507 n=`$AWK 'END {print n+1}' n=$n </dev/null`
7508 done
7509
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: min log text start $min" >&5
7511 printf "%s\n" "$as_me: min log text start $min" >&6;}
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start $max" >&5
7513 printf "%s\n" "$as_me: max log text start $max" >&6;}
7514
7515 if test $neg_cstack_address -eq 1 ; then #FIXME test this
7516 if test $cstack_bits -lt $max ; then
7517 max=$cstack_bits;
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start reduced to $max considering c stack address" >&5
7519 printf "%s\n" "$as_me: max log text start reduced to $max considering c stack address" >&6;}
7520 fi
7521 fi
7522
7523 j=-1;
7524 low_shft="";
7525 if test $min -le $max ; then
7526 if test $max -ge $enable_fastimmfix && test "$enable_immfix" != "no" ; then
7527 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$max </dev/null`
7528 low_shft=`$AWK 'END {print n+1}' n=$max </dev/null`;
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: raising log text to $j for a $max bit wide low immfix table" >&5
7530 printf "%s\n" "$as_me: raising log text to $j for a $max bit wide low immfix table" >&6;}
7531 else
7532 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$min </dev/null`
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lowering log text to $j to maximize data area" >&5
7534 printf "%s\n" "$as_me: lowering log text to $j to maximize data area" >&6;}
7535 fi
7536 fi
7537
7538 if test "$low_shft" != "" ; then
7539
7540 printf "%s\n" "#define LOW_SHFT $low_shft" >>confdefs.h
7541
7542
7543 printf "%s\n" "#define OBJNULL (object)0x$j" >>confdefs.h
7544
7545 else
7546
7547 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7548
7549 fi
7550
7551 # echo $j;
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our linker script" >&5
7553 printf %s "checking our linker script... " >&6; }
7554 if test "$j" -ne "-1" ; then
7555 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7557 printf "%s\n" "done" >&6; }
7558 rm -f gcl.script.def
7559 assert_arg_to_ldflags -Wl,-T,gcl.script
7560 cp gcl.script unixport
7561 else
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found or not needed" >&5
7563 printf "%s\n" "none found or not needed" >&6; }
7564 rm -f gcl.script gcl.script.def
7565 fi
7566 rm -rf foo.c foo
7567 else
7568
7569 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7570
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7572 printf "%s\n" "not found" >&6; }
7573 fi
7574
7575 else
7576
7577
7578 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7579
7580
7581 fi
7582
7583 mem_top=0
7584 mem_range=0
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mem top" >&5
7586 printf %s "checking mem top... " >&6; }
7587 if test "$cross_compiling" = yes
7588 then :
7589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7590 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7591 as_fn_error $? "cannot run test program while cross compiling
7592 See \`config.log' for more details" "$LINENO" 5; }
7593 else $as_nop
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596
7597 #include <stdio.h>
7598
7599 int
7600 main (void)
7601 {
7602
7603 unsigned long i,j,k,l;
7604 FILE *fp = fopen("conftest1","w");
7605
7606 for (i=2,k=1;i;k=i,i<<=1);
7607 l=$cstack_address;
7608 l=$cstack_direction==1 ? (l<k ? k-1 : -1) : l;
7609 for (i=j=k;j && i<l;j>>=1,i|=j);
7610 if (j<(k>>3)) i=0;
7611 j=1;
7612 j<<=$PAGEWIDTH;
7613 j<<=4;
7614 j--;
7615 i+=j;
7616 i&=~j;
7617 fprintf(fp,"0x%lx",i);
7618 fclose(fp);
7619 return 0;
7620
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 if ac_fn_c_try_run "$LINENO"
7626 then :
7627 mem_top=`cat conftest1`
7628 else $as_nop
7629 mem_top="0x0"
7630 fi
7631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7632 conftest.$ac_objext conftest.beam conftest.$ac_ext
7633 fi
7634
7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_top" >&5
7636 printf "%s\n" "$mem_top" >&6; }
7637
7638 if test "$mem_top" != "0x0" ; then
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding upper mem half range" >&5
7640 printf %s "checking finding upper mem half range... " >&6; }
7641 if test "$cross_compiling" = yes
7642 then :
7643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7645 as_fn_error $? "cannot run test program while cross compiling
7646 See \`config.log' for more details" "$LINENO" 5; }
7647 else $as_nop
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650
7651 #include <stdio.h>
7652
7653 int
7654 main (void)
7655 {
7656
7657 unsigned long j;
7658 FILE *fp = fopen("conftest1","w");
7659
7660 for (j=1;j && !(j& $mem_top);j<<=1);
7661 fprintf(fp,"0x%lx",j>>1);
7662 fclose(fp);
7663 return 0;
7664
7665 ;
7666 return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_run "$LINENO"
7670 then :
7671 mem_range=`cat conftest1`
7672 else $as_nop
7673 mem_range="0x0"
7674 fi
7675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7676 conftest.$ac_objext conftest.beam conftest.$ac_ext
7677 fi
7678
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_range" >&5
7680 printf "%s\n" "$mem_range" >&6; }
7681 if test "$mem_range" != "0x0" ; then
7682
7683 printf "%s\n" "#define MEM_TOP $mem_top" >>confdefs.h
7684
7685
7686 printf "%s\n" "#define MEM_RANGE $mem_range" >>confdefs.h
7687
7688 fi
7689 fi
7690
7691 if test "$enable_immfix" != "no" ; then
7692 if test "$mem_top" != "0x0" ; then
7693 if test "$mem_range" != "0x0" ; then
7694
7695 printf "%s\n" "#define IM_FIX_BASE ${mem_top}UL" >>confdefs.h
7696
7697
7698 printf "%s\n" "#define IM_FIX_LIM ${mem_range}UL" >>confdefs.h
7699
7700 fi
7701 fi
7702 fi
7703
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof long long int" >&5
7705 printf %s "checking sizeof long long int... " >&6; }
7706 if test "$cross_compiling" = yes
7707 then :
7708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7709 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7710 as_fn_error $? "cannot run test program while cross compiling
7711 See \`config.log' for more details" "$LINENO" 5; }
7712 else $as_nop
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715
7716 #include <stdio.h>
7717
7718 int
7719 main (void)
7720 {
7721
7722 if (sizeof(long long int) == 2*sizeof(long)) return 0;
7723 return 1;
7724
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_run "$LINENO"
7730 then :
7731
7732 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7734 printf "%s\n" "yes" >&6; }
7735 else $as_nop
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 printf "%s\n" "no" >&6; }
7738 fi
7739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7740 conftest.$ac_objext conftest.beam conftest.$ac_ext
7741 fi
7742
7743
7744
7745
7746 for ac_header in dirent.h
7747 do :
7748 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7749 if test "x$ac_cv_header_dirent_h" = xyes
7750 then :
7751 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_type" >&5
7753 printf %s "checking for d_type... " >&6; }
7754 if test "$cross_compiling" = yes
7755 then :
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 printf "%s\n" "no" >&6; }
7758 else $as_nop
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761
7762 #include <dirent.h>
7763 #include <string.h>
7764
7765 int
7766 main (void)
7767 {
7768
7769 struct dirent *d;
7770 DIR *r=opendir("./");
7771 for (;(d=readdir(r)) && strcmp("configure",d->d_name););
7772 return d && d->d_type==DT_REG ? 0 : -1;
7773
7774 ;
7775 return 0;
7776 }
7777 _ACEOF
7778 if ac_fn_c_try_run "$LINENO"
7779 then :
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7781 printf "%s\n" "yes" >&6; }
7782 printf "%s\n" "#define HAVE_D_TYPE 1" >>confdefs.h
7783
7784 else $as_nop
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 printf "%s\n" "no" >&6; }
7787 fi
7788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7789 conftest.$ac_objext conftest.beam conftest.$ac_ext
7790 fi
7791
7792 fi
7793
7794 done
7795
7796 # ansi lisp
7797 SYSTEM=ansi_gcl
7798 CLSTANDARD=ANSI
7799 # Check whether --enable-ansi was given.
7800 if test ${enable_ansi+y}
7801 then :
7802 enableval=$enable_ansi; if test "$enable_ansi" = "no" ; then
7803 SYSTEM=gcl
7804 CLSTANDARD=CLtL1
7805 else
7806
7807 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7808
7809 fi
7810 else $as_nop
7811
7812 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7813
7814 fi
7815
7816
7817 FLISP="saved_$SYSTEM"
7818
7819
7820
7821
7822 # Maximum number of pages
7823
7824
7825
7826 # Check if Posix compliant getcwd exists, if not we'll use getwd.
7827 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
7828 if test "x$ac_cv_func_getcwd" = xyes
7829 then :
7830 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
7831
7832 fi
7833
7834 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
7835 if test "x$ac_cv_func_getwd" = xyes
7836 then :
7837 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
7838
7839 fi
7840
7841 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
7842 if test "x$ac_cv_func_uname" = xyes
7843 then :
7844
7845 else $as_nop
7846
7847 printf "%s\n" "#define NO_UNAME 1" >>confdefs.h
7848
7849 fi
7850
7851 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7852 if test "x$ac_cv_func_gettimeofday" = xyes
7853 then :
7854
7855 else $as_nop
7856 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7857
7858 fi
7859
7860
7861
7862 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7863 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7864 then :
7865 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7866
7867 fi
7868
7869
7870 # OpenBSD has elf_abi.h instead of elf.h
7871 ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
7872 if test "x$ac_cv_header_elf_h" = xyes
7873 then :
7874 printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h
7875
7876 fi
7877 ac_fn_c_check_header_compile "$LINENO" "elf_abi.h" "ac_cv_header_elf_abi_h" "$ac_includes_default"
7878 if test "x$ac_cv_header_elf_abi_h" = xyes
7879 then :
7880 printf "%s\n" "#define HAVE_ELF_ABI_H 1" >>confdefs.h
7881
7882 fi
7883
7884
7885 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7886 if test "x$ac_cv_header_sys_sockio_h" = xyes
7887 then :
7888 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7889
7890 fi
7891
7892
7893
7894 #--------------------------------------------------------------------
7895 # The code below deals with several issues related to gettimeofday:
7896 # 1. Some systems don't provide a gettimeofday function at all
7897 # (set NO_GETTOD if this is the case).
7898 # 2. SGI systems don't use the BSD form of the gettimeofday function,
7899 # but they have a BSDgettimeofday function that can be used instead.
7900 # 3. See if gettimeofday is declared in the <sys/time.h> header file.
7901 # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
7902 # declare it.
7903 #--------------------------------------------------------------------
7904
7905 ac_fn_c_check_func "$LINENO" "BSDgettimeofday" "ac_cv_func_BSDgettimeofday"
7906 if test "x$ac_cv_func_BSDgettimeofday" = xyes
7907 then :
7908
7909 printf "%s\n" "#define HAVE_BSDGETTIMEOFDAY 1" >>confdefs.h
7910
7911 else $as_nop
7912 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7913 if test "x$ac_cv_func_gettimeofday" = xyes
7914 then :
7915
7916 else $as_nop
7917
7918 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7919
7920 fi
7921
7922 fi
7923
7924
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7926 printf %s "checking for grep that handles long lines and -e... " >&6; }
7927 if test ${ac_cv_path_GREP+y}
7928 then :
7929 printf %s "(cached) " >&6
7930 else $as_nop
7931 if test -z "$GREP"; then
7932 ac_path_GREP_found=false
7933 # Loop through the user's path and test for each of PROGNAME-LIST
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7936 do
7937 IFS=$as_save_IFS
7938 case $as_dir in #(((
7939 '') as_dir=./ ;;
7940 */) ;;
7941 *) as_dir=$as_dir/ ;;
7942 esac
7943 for ac_prog in grep ggrep
7944 do
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7947 as_fn_executable_p "$ac_path_GREP" || continue
7948 # Check for GNU ac_path_GREP and select it if it is found.
7949 # Check for GNU $ac_path_GREP
7950 case `"$ac_path_GREP" --version 2>&1` in
7951 *GNU*)
7952 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7953 *)
7954 ac_count=0
7955 printf %s 0123456789 >"conftest.in"
7956 while :
7957 do
7958 cat "conftest.in" "conftest.in" >"conftest.tmp"
7959 mv "conftest.tmp" "conftest.in"
7960 cp "conftest.in" "conftest.nl"
7961 printf "%s\n" 'GREP' >> "conftest.nl"
7962 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7964 as_fn_arith $ac_count + 1 && ac_count=$as_val
7965 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7966 # Best one so far, save it but keep looking for a better one
7967 ac_cv_path_GREP="$ac_path_GREP"
7968 ac_path_GREP_max=$ac_count
7969 fi
7970 # 10*(2^10) chars as input seems more than enough
7971 test $ac_count -gt 10 && break
7972 done
7973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7974 esac
7975
7976 $ac_path_GREP_found && break 3
7977 done
7978 done
7979 done
7980 IFS=$as_save_IFS
7981 if test -z "$ac_cv_path_GREP"; then
7982 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7983 fi
7984 else
7985 ac_cv_path_GREP=$GREP
7986 fi
7987
7988 fi
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7990 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7991 GREP="$ac_cv_path_GREP"
7992
7993
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7995 printf %s "checking for egrep... " >&6; }
7996 if test ${ac_cv_path_EGREP+y}
7997 then :
7998 printf %s "(cached) " >&6
7999 else $as_nop
8000 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8001 then ac_cv_path_EGREP="$GREP -E"
8002 else
8003 if test -z "$EGREP"; then
8004 ac_path_EGREP_found=false
8005 # Loop through the user's path and test for each of PROGNAME-LIST
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8008 do
8009 IFS=$as_save_IFS
8010 case $as_dir in #(((
8011 '') as_dir=./ ;;
8012 */) ;;
8013 *) as_dir=$as_dir/ ;;
8014 esac
8015 for ac_prog in egrep
8016 do
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8019 as_fn_executable_p "$ac_path_EGREP" || continue
8020 # Check for GNU ac_path_EGREP and select it if it is found.
8021 # Check for GNU $ac_path_EGREP
8022 case `"$ac_path_EGREP" --version 2>&1` in
8023 *GNU*)
8024 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8025 *)
8026 ac_count=0
8027 printf %s 0123456789 >"conftest.in"
8028 while :
8029 do
8030 cat "conftest.in" "conftest.in" >"conftest.tmp"
8031 mv "conftest.tmp" "conftest.in"
8032 cp "conftest.in" "conftest.nl"
8033 printf "%s\n" 'EGREP' >> "conftest.nl"
8034 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8036 as_fn_arith $ac_count + 1 && ac_count=$as_val
8037 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8038 # Best one so far, save it but keep looking for a better one
8039 ac_cv_path_EGREP="$ac_path_EGREP"
8040 ac_path_EGREP_max=$ac_count
8041 fi
8042 # 10*(2^10) chars as input seems more than enough
8043 test $ac_count -gt 10 && break
8044 done
8045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8046 esac
8047
8048 $ac_path_EGREP_found && break 3
8049 done
8050 done
8051 done
8052 IFS=$as_save_IFS
8053 if test -z "$ac_cv_path_EGREP"; then
8054 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8055 fi
8056 else
8057 ac_cv_path_EGREP=$EGREP
8058 fi
8059
8060 fi
8061 fi
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8063 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8064 EGREP="$ac_cv_path_EGREP"
8065
8066
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 #include <sys/time.h>
8070
8071 _ACEOF
8072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8073 $EGREP "gettimeofday" >/dev/null 2>&1
8074 then :
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8076 printf %s "checking for gettimeofday declaration... " >&6; }
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
8078 printf "%s\n" "present" >&6; }
8079 else $as_nop
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8081 printf %s "checking for gettimeofday declaration... " >&6; }
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
8083 printf "%s\n" "missing" >&6; }
8084
8085 printf "%s\n" "#define GETTOD_NOT_DECLARED 1" >>confdefs.h
8086
8087 fi
8088 rm -rf conftest*
8089
8090
8091
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
8093 printf %s "checking for sin in -lm... " >&6; }
8094 if test ${ac_cv_lib_m_sin+y}
8095 then :
8096 printf %s "(cached) " >&6
8097 else $as_nop
8098 ac_check_lib_save_LIBS=$LIBS
8099 LIBS="-lm $LIBS"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102
8103 /* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
8106 char sin ();
8107 int
8108 main (void)
8109 {
8110 return sin ();
8111 ;
8112 return 0;
8113 }
8114 _ACEOF
8115 if ac_fn_c_try_link "$LINENO"
8116 then :
8117 ac_cv_lib_m_sin=yes
8118 else $as_nop
8119 ac_cv_lib_m_sin=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8122 conftest$ac_exeext conftest.$ac_ext
8123 LIBS=$ac_check_lib_save_LIBS
8124 fi
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
8126 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
8127 if test "x$ac_cv_lib_m_sin" = xyes
8128 then :
8129 LIBS="${LIBS} -lm"
8130 else $as_nop
8131 true
8132 fi
8133
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingwex" >&5
8135 printf %s "checking for main in -lmingwex... " >&6; }
8136 if test ${ac_cv_lib_mingwex_main+y}
8137 then :
8138 printf %s "(cached) " >&6
8139 else $as_nop
8140 ac_check_lib_save_LIBS=$LIBS
8141 LIBS="-lmingwex $LIBS"
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144
8145
8146 int
8147 main (void)
8148 {
8149 return main ();
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"
8155 then :
8156 ac_cv_lib_mingwex_main=yes
8157 else $as_nop
8158 ac_cv_lib_mingwex_main=no
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingwex_main" >&5
8165 printf "%s\n" "$ac_cv_lib_mingwex_main" >&6; }
8166 if test "x$ac_cv_lib_mingwex_main" = xyes
8167 then :
8168 LIBS="${LIBS} -lmingwex"
8169 else $as_nop
8170 true
8171 fi
8172
8173
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy maximum sscanf length" >&5
8175 printf %s "checking for buggy maximum sscanf length... " >&6; }
8176 if test "$cross_compiling" = yes
8177 then :
8178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8179 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8180 as_fn_error $? "cannot run test program while cross compiling
8181 See \`config.log' for more details" "$LINENO" 5; }
8182 else $as_nop
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185
8186 #include <stdio.h>
8187
8188 int
8189 main (void)
8190 {
8191
8192 char *s= "2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431173012381970684161404";
8193 int n, m;
8194 double f;
8195 char *endptr;
8196 FILE *fp=fopen("conftest1","w");
8197
8198 n=sscanf(s,"%lf%n",&f,&m);
8199 fprintf(fp,"%d",m);
8200 fclose(fp);
8201 return s[m];
8202
8203 ;
8204 return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_run "$LINENO"
8208 then :
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8210 printf "%s\n" "none" >&6; }
8211 else $as_nop
8212 buggy_maximum_sscanf_length=`cat conftest1`
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $buggy_maximum_sscanf_length" >&5
8214 printf "%s\n" "$buggy_maximum_sscanf_length" >&6; }
8215
8216 printf "%s\n" "#define BUGGY_MAXIMUM_SSCANF_LENGTH $buggy_maximum_sscanf_length" >>confdefs.h
8217
8218 fi
8219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8220 conftest.$ac_objext conftest.beam conftest.$ac_ext
8221 fi
8222
8223
8224
8225 EXTRA_LOBJS=
8226 # Check whether --enable-japi was given.
8227 if test ${enable_japi+y}
8228 then :
8229 enableval=$enable_japi; if test "$enable_japi" = "yes" ; then
8230 for ac_header in japi.h
8231 do :
8232 ac_fn_c_check_header_compile "$LINENO" "japi.h" "ac_cv_header_japi_h" "$ac_includes_default"
8233 if test "x$ac_cv_header_japi_h" = xyes
8234 then :
8235 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8236 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8237
8238 EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
8239 LIBS="${LIBS} -ljapi -lwsock32"
8240 fi
8241
8242 done
8243 fi
8244 fi
8245
8246
8247 # Should really find a way to check for prototypes, but this
8248 # basically works for now. CM
8249 #
8250 for ac_header in math.h
8251 do :
8252 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
8253 if test "x$ac_cv_header_math_h" = xyes
8254 then :
8255 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8256
8257 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8258
8259 fi
8260
8261 done
8262 for ac_header in complex.h
8263 do :
8264 ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
8265 if test "x$ac_cv_header_complex_h" = xyes
8266 then :
8267 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8268
8269 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8270
8271 fi
8272
8273 done
8274
8275 #
8276 # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
8277 #
8278 for ac_header in values.h
8279 do :
8280 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
8281 if test "x$ac_cv_header_values_h" = xyes
8282 then :
8283 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8284
8285 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8286
8287 fi
8288
8289 done
8290
8291 #
8292 # Sparc solaris keeps this in float.h, rework either/or with values.h later
8293 #
8294 for ac_header in float.h
8295 do :
8296 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8297 if test "x$ac_cv_header_float_h" = xyes
8298 then :
8299 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8300
8301 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8302
8303 fi
8304
8305 done
8306
8307 #
8308 # The second alternative is for solaris. This needs to be
8309 # a more comprehensive later, i.e. checking that the fpclass
8310 # test makes sense. CM
8311 #
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnormal" >&5
8313 printf %s "checking for isnormal... " >&6; }
8314 if test "$cross_compiling" = yes
8315 then :
8316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8317 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8318 as_fn_error $? "cannot run test program while cross compiling
8319 See \`config.log' for more details" "$LINENO" 5; }
8320 else $as_nop
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323
8324 #define _GNU_SOURCE
8325 #include <math.h>
8326
8327 int
8328 main (void)
8329 {
8330
8331 float f;
8332 return isnormal(f) || !isnormal(f) ? 0 : 1;
8333
8334 ;
8335 return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_run "$LINENO"
8339 then :
8340
8341 printf "%s\n" "#define HAVE_ISNORMAL 1" >>confdefs.h
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8343 printf "%s\n" "yes" >&6; }
8344 else $as_nop
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fpclass of ieeefp.h" >&5
8346 printf %s "checking for fpclass of ieeefp.h... " >&6; }
8347 if test "$cross_compiling" = yes
8348 then :
8349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8350 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8351 as_fn_error $? "cannot run test program while cross compiling
8352 See \`config.log' for more details" "$LINENO" 5; }
8353 else $as_nop
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356
8357 #include <ieeefp.h>
8358
8359 int
8360 main (void)
8361 {
8362
8363 float f;
8364 return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
8365
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 if ac_fn_c_try_run "$LINENO"
8371 then :
8372
8373 printf "%s\n" "#define HAVE_IEEEFP 1" >>confdefs.h
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8375 printf "%s\n" "yes" >&6; }
8376 else $as_nop
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 printf "%s\n" "no" >&6; }
8379 fi
8380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8381 conftest.$ac_objext conftest.beam conftest.$ac_ext
8382 fi
8383
8384 fi
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8386 conftest.$ac_objext conftest.beam conftest.$ac_ext
8387 fi
8388
8389
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
8391 printf %s "checking for isfinite... " >&6; }
8392 if test "$cross_compiling" = yes
8393 then :
8394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8395 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8396 as_fn_error $? "cannot run test program while cross compiling
8397 See \`config.log' for more details" "$LINENO" 5; }
8398 else $as_nop
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401
8402 #define _GNU_SOURCE
8403 #include <math.h>
8404
8405 int
8406 main (void)
8407 {
8408
8409 float f;
8410 return isfinite(f) || !isfinite(f) ? 0 : 1;
8411
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 if ac_fn_c_try_run "$LINENO"
8417 then :
8418
8419 printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8421 printf "%s\n" "yes" >&6; }
8422 else $as_nop
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for finite()" >&5
8424 printf %s "checking for finite()... " >&6; }
8425 if test "$cross_compiling" = yes
8426 then :
8427 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8428 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8429 as_fn_error $? "cannot run test program while cross compiling
8430 See \`config.log' for more details" "$LINENO" 5; }
8431 else $as_nop
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434
8435 #include <math.h>
8436 #include <ieeefp.h>
8437
8438 int
8439 main (void)
8440 {
8441
8442 float f;
8443 return finite(f) || !finite(f) ? 0 : 1;
8444
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_run "$LINENO"
8450 then :
8451
8452 printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8454 printf "%s\n" "yes" >&6; }
8455 else $as_nop
8456 as_fn_error $? "no" "$LINENO" 5
8457 fi
8458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8459 conftest.$ac_objext conftest.beam conftest.$ac_ext
8460 fi
8461
8462 fi
8463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8464 conftest.$ac_objext conftest.beam conftest.$ac_ext
8465 fi
8466
8467
8468 #--------------------------------------------------------------------
8469 # Check for the existence of the -lsocket and -lnsl libraries.
8470 # The order here is important, so that they end up in the right
8471 # order in the command line generated by make. Here are some
8472 # special considerations:
8473 # 1. Use "connect" and "accept" to check for -lsocket, and
8474 # "gethostbyname" to check for -lnsl.
8475 # 2. Use each function name only once: can't redo a check because
8476 # autoconf caches the results of the last check and won't redo it.
8477 # 3. Use -lnsl and -lsocket only if they supply procedures that
8478 # aren't already present in the normal libraries. This is because
8479 # IRIX 5.2 has libraries, but they aren't needed and they're
8480 # bogus: they goof up name resolution if used.
8481 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
8482 # To get around this problem, check for both libraries together
8483 # if -lsocket doesn't work by itself.
8484 #--------------------------------------------------------------------
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockets" >&5
8486 printf %s "checking for sockets... " >&6; }
8487 tcl_checkBoth=0
8488 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8489 if test "x$ac_cv_func_connect" = xyes
8490 then :
8491 tcl_checkSocket=0
8492 else $as_nop
8493 tcl_checkSocket=1
8494 fi
8495
8496 if test "$tcl_checkSocket" = 1; then
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
8498 printf %s "checking for main in -lsocket... " >&6; }
8499 if test ${ac_cv_lib_socket_main+y}
8500 then :
8501 printf %s "(cached) " >&6
8502 else $as_nop
8503 ac_check_lib_save_LIBS=$LIBS
8504 LIBS="-lsocket $LIBS"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507
8508
8509 int
8510 main (void)
8511 {
8512 return main ();
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"
8518 then :
8519 ac_cv_lib_socket_main=yes
8520 else $as_nop
8521 ac_cv_lib_socket_main=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8524 conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8526 fi
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
8528 printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
8529 if test "x$ac_cv_lib_socket_main" = xyes
8530 then :
8531 TLIBS="$TLIBS -lsocket"
8532 else $as_nop
8533 tcl_checkBoth=1
8534 fi
8535
8536 fi
8537
8538
8539 if test "$tcl_checkBoth" = 1; then
8540 tk_oldLibs=$TLIBS
8541 TLIBS="$TLIBS -lsocket -lnsl"
8542 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
8543 if test "x$ac_cv_func_accept" = xyes
8544 then :
8545 tcl_checkNsl=0
8546 else $as_nop
8547 TLIBS=$tk_oldLibs
8548 fi
8549
8550 fi
8551 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8552 if test "x$ac_cv_func_gethostbyname" = xyes
8553 then :
8554
8555 else $as_nop
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
8557 printf %s "checking for main in -lnsl... " >&6; }
8558 if test ${ac_cv_lib_nsl_main+y}
8559 then :
8560 printf %s "(cached) " >&6
8561 else $as_nop
8562 ac_check_lib_save_LIBS=$LIBS
8563 LIBS="-lnsl $LIBS"
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566
8567
8568 int
8569 main (void)
8570 {
8571 return main ();
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_link "$LINENO"
8577 then :
8578 ac_cv_lib_nsl_main=yes
8579 else $as_nop
8580 ac_cv_lib_nsl_main=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8583 conftest$ac_exeext conftest.$ac_ext
8584 LIBS=$ac_check_lib_save_LIBS
8585 fi
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
8587 printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
8588 if test "x$ac_cv_lib_nsl_main" = xyes
8589 then :
8590 TLIBS="$TLIBS -lnsl"
8591 fi
8592
8593 fi
8594
8595
8596 # readline
8597 # Check whether --enable-readline was given.
8598 if test ${enable_readline+y}
8599 then :
8600 enableval=$enable_readline;
8601 fi
8602
8603
8604 if test "$use" = "mingw" ; then
8605 enable_readline=no
8606 fi
8607
8608 if test "$enable_readline" != "no" ; then
8609 for ac_header in readline/readline.h
8610 do :
8611 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "#include <stdio.h>
8612
8613 "
8614 if test "x$ac_cv_header_readline_readline_h" = xyes
8615 then :
8616 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
8618 printf %s "checking for rl_initialize in -lreadline... " >&6; }
8619 if test ${ac_cv_lib_readline_rl_initialize+y}
8620 then :
8621 printf %s "(cached) " >&6
8622 else $as_nop
8623 ac_check_lib_save_LIBS=$LIBS
8624 LIBS="-lreadline $LIBS"
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627
8628 /* Override any GCC internal prototype to avoid an error.
8629 Use char because int might match the return type of a GCC
8630 builtin and then its argument prototype would still apply. */
8631 char rl_initialize ();
8632 int
8633 main (void)
8634 {
8635 return rl_initialize ();
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 if ac_fn_c_try_link "$LINENO"
8641 then :
8642 ac_cv_lib_readline_rl_initialize=yes
8643 else $as_nop
8644 ac_cv_lib_readline_rl_initialize=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8647 conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8649 fi
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_initialize" >&5
8651 printf "%s\n" "$ac_cv_lib_readline_rl_initialize" >&6; }
8652 if test "x$ac_cv_lib_readline_rl_initialize" = xyes
8653 then :
8654
8655 printf "%s\n" "#define USE_READLINE 1" >>confdefs.h
8656
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_getc in -lreadline" >&5
8658 printf %s "checking for el_getc in -lreadline... " >&6; }
8659 if test ${ac_cv_lib_readline_el_getc+y}
8660 then :
8661 printf %s "(cached) " >&6
8662 else $as_nop
8663 ac_check_lib_save_LIBS=$LIBS
8664 LIBS="-lreadline $LIBS"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667
8668 /* Override any GCC internal prototype to avoid an error.
8669 Use char because int might match the return type of a GCC
8670 builtin and then its argument prototype would still apply. */
8671 char el_getc ();
8672 int
8673 main (void)
8674 {
8675 return el_getc ();
8676 ;
8677 return 0;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_link "$LINENO"
8681 then :
8682 ac_cv_lib_readline_el_getc=yes
8683 else $as_nop
8684 ac_cv_lib_readline_el_getc=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8687 conftest$ac_exeext conftest.$ac_ext
8688 LIBS=$ac_check_lib_save_LIBS
8689 fi
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_el_getc" >&5
8691 printf "%s\n" "$ac_cv_lib_readline_el_getc" >&6; }
8692 if test "x$ac_cv_lib_readline_el_getc" = xyes
8693 then :
8694
8695 printf "%s\n" "#define READLINE_IS_EDITLINE 1" >>confdefs.h
8696
8697 fi
8698
8699 # These tests discover differences between readline 4.1 and 4.3
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
8701 printf %s "checking for rl_completion_matches in -lreadline... " >&6; }
8702 if test ${ac_cv_lib_readline_rl_completion_matches+y}
8703 then :
8704 printf %s "(cached) " >&6
8705 else $as_nop
8706 ac_check_lib_save_LIBS=$LIBS
8707 LIBS="-lreadline $LIBS"
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710
8711 /* Override any GCC internal prototype to avoid an error.
8712 Use char because int might match the return type of a GCC
8713 builtin and then its argument prototype would still apply. */
8714 char rl_completion_matches ();
8715 int
8716 main (void)
8717 {
8718 return rl_completion_matches ();
8719 ;
8720 return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"
8724 then :
8725 ac_cv_lib_readline_rl_completion_matches=yes
8726 else $as_nop
8727 ac_cv_lib_readline_rl_completion_matches=no
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8730 conftest$ac_exeext conftest.$ac_ext
8731 LIBS=$ac_check_lib_save_LIBS
8732 fi
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
8734 printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; }
8735 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes
8736 then :
8737
8738 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_MATCHES 1" >>confdefs.h
8739
8740
8741 printf "%s\n" "#define HAVE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8742
8743 fi
8744
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION" >&5
8746 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION... " >&6; }
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749
8750 #include <stdio.h>
8751 #include <readline/readline.h>
8752 extern Function *rl_completion_entry_function __attribute__((weak));
8753
8754 int
8755 main (void)
8756 {
8757
8758 ;
8759 return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"
8763 then :
8764
8765 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION 1" >>confdefs.h
8766
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8768 printf "%s\n" "yes" >&6; }
8769 else $as_nop
8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 printf "%s\n" "no" >&6; }
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T" >&5
8773 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T... " >&6; }
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776
8777 #include <stdio.h>
8778 #include <readline/readline.h>
8779 extern rl_compentry_func_t *rl_completion_entry_function __attribute__((weak));
8780
8781 int
8782 main (void)
8783 {
8784
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"
8790 then :
8791
8792 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8793
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8795 printf "%s\n" "yes" >&6; }
8796 else $as_nop
8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 printf "%s\n" "no" >&6; }
8799 as_fn_error $? "Unknown rl_completion_entry_function return type" "$LINENO" 5
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8804
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CHAR" >&5
8806 printf %s "checking RL_READLINE_NAME_TYPE_CHAR... " >&6; }
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809
8810 #include <stdio.h>
8811 #include <readline/readline.h>
8812 extern char *rl_readline_name __attribute__((weak));
8813
8814 int
8815 main (void)
8816 {
8817
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"
8823 then :
8824
8825 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CHAR 1" >>confdefs.h
8826
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8828 printf "%s\n" "yes" >&6; }
8829 else $as_nop
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 printf "%s\n" "no" >&6; }
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CONST_CHAR" >&5
8833 printf %s "checking RL_READLINE_NAME_TYPE_CONST_CHAR... " >&6; }
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836
8837 #include <stdio.h>
8838 #include <readline/readline.h>
8839 extern const char *rl_readline_name __attribute__((weak));
8840
8841 int
8842 main (void)
8843 {
8844
8845 ;
8846 return 0;
8847 }
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"
8850 then :
8851
8852 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CONST_CHAR 1" >>confdefs.h
8853
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8855 printf "%s\n" "yes" >&6; }
8856 else $as_nop
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 printf "%s\n" "no" >&6; }
8859 as_fn_error $? "Unknown rl_readline_name return type" "$LINENO" 5
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8864 TLIBS="$TLIBS -lreadline" #some machines don't link this, e.g. Slackware
8865 RL_OBJS=gcl_readline.o
8866 fi
8867
8868 fi
8869
8870 done
8871 fi
8872
8873
8874
8875
8876 # sockets
8877
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For network code for nsocket.c" >&5
8879 printf %s "checking For network code for nsocket.c... " >&6; }
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882
8883 #include <sys/time.h>
8884 #include <sys/types.h>
8885 #include <unistd.h>
8886
8887 #include <errno.h>
8888 #include <fcntl.h>
8889 #include <stdio.h>
8890
8891 /************* for the sockets ******************/
8892 #include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */
8893 #ifndef NO_UNAME
8894 # include <sys/utsname.h> /* uname system call. */
8895 #endif
8896 #include <netinet/in.h> /* struct in_addr, struct sockaddr_in */
8897 #include <arpa/inet.h> /* inet_ntoa() */
8898 #include <netdb.h> /* gethostbyname() */
8899
8900 int
8901 main (void)
8902 {
8903
8904 connect(0,(struct sockaddr *)0,0);
8905 gethostbyname("jil");
8906 socket(AF_INET, SOCK_STREAM, 0);
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"
8913 then :
8914
8915 printf "%s\n" "#define HAVE_NSOCKET 1" >>confdefs.h
8916
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8918 printf "%s\n" "yes" >&6; }
8919 else $as_nop
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 printf "%s\n" "no" >&6; }
8922 fi
8923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8924 conftest$ac_exeext conftest.$ac_ext
8925
8926
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for listen using fcntl" >&5
8928 printf %s "checking check for listen using fcntl... " >&6; }
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931
8932 #include <stdio.h>
8933 #include <fcntl.h>
8934
8935 int
8936 main (void)
8937 {
8938
8939 FILE *fp=fopen("configure.in","r");
8940 int orig;
8941 orig = fcntl(fileno(fp), F_GETFL);
8942 if (! (orig & O_NONBLOCK )) return 0;
8943
8944 ;
8945 return 0;
8946 }
8947 _ACEOF
8948 if ac_fn_c_try_compile "$LINENO"
8949 then :
8950
8951 printf "%s\n" "#define LISTEN_USE_FCNTL 1" >>confdefs.h
8952
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8954 printf "%s\n" "yes" >&6; }
8955 else $as_nop
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 printf "%s\n" "no" >&6; }
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8960
8961
8962 ac_fn_c_check_func "$LINENO" "profil" "ac_cv_func_profil"
8963 if test "x$ac_cv_func_profil" = xyes
8964 then :
8965
8966 else $as_nop
8967
8968 printf "%s\n" "#define NO_PROFILE 1" >>confdefs.h
8969
8970 fi
8971
8972
8973 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
8974 if test "x$ac_cv_func_setenv" = xyes
8975 then :
8976
8977 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
8978
8979 else $as_nop
8980 no_setenv=1
8981 fi
8982
8983
8984 if test "$no_setenv" = "1" ; then
8985 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
8986 if test "x$ac_cv_func_putenv" = xyes
8987 then :
8988
8989 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
8990
8991 fi
8992
8993
8994 fi
8995
8996 ac_fn_c_check_func "$LINENO" "_cleanup" "ac_cv_func__cleanup"
8997 if test "x$ac_cv_func__cleanup" = xyes
8998 then :
8999
9000 printf "%s\n" "#define USE_CLEANUP 1" >>confdefs.h
9001
9002 fi
9003
9004
9005 gcl_ok=no
9006
9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
9008 printf %s "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... " >&6; }
9009
9010 case $system in
9011 OSF*)
9012
9013 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9014
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9016 printf "%s\n" "FIONBIO" >&6; }
9017 ;;
9018 SunOS-4*)
9019
9020 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9021
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9023 printf "%s\n" "FIONBIO" >&6; }
9024 ;;
9025 ULTRIX-4.*)
9026
9027 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9028
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9030 printf "%s\n" "FIONBIO" >&6; }
9031 ;;
9032 *)
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: O_NONBLOCK" >&5
9034 printf "%s\n" "O_NONBLOCK" >&6; }
9035 ;;
9036 esac
9037
9038
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SV_ONSTACK" >&5
9040 printf %s "checking check for SV_ONSTACK... " >&6; }
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043
9044 #include <signal.h>
9045 int joe=SV_ONSTACK;
9046
9047 int
9048 main (void)
9049 {
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"
9056 then :
9057
9058 printf "%s\n" "#define HAVE_SV_ONSTACK 1" >>confdefs.h
9059
9060
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9062 printf "%s\n" "yes" >&6; }
9063 else $as_nop
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 printf "%s\n" "no" >&6; }
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9068
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGSYS" >&5
9070 printf %s "checking check for SIGSYS... " >&6; }
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 #include <signal.h>
9075 int joe=SIGSYS;
9076
9077 int
9078 main (void)
9079 {
9080
9081 ;
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"
9086 then :
9087
9088 printf "%s\n" "#define HAVE_SIGSYS 1" >>confdefs.h
9089
9090
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9092 printf "%s\n" "yes" >&6; }
9093 else $as_nop
9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 printf "%s\n" "no" >&6; }
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9098
9099
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGEMT" >&5
9101 printf %s "checking check for SIGEMT... " >&6; }
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104
9105 #include <signal.h>
9106 int joe=SIGEMT;
9107
9108 int
9109 main (void)
9110 {
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_compile "$LINENO"
9117 then :
9118
9119 printf "%s\n" "#define HAVE_SIGEMT 1" >>confdefs.h
9120
9121
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9123 printf "%s\n" "yes" >&6; }
9124 else $as_nop
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 printf "%s\n" "no" >&6; }
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9129
9130 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
9131 if test "x$ac_cv_func_sigaltstack" = xyes
9132 then :
9133 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
9134
9135 fi
9136
9137 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
9138 if test "x$ac_cv_func_feenableexcept" = xyes
9139 then :
9140 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
9141
9142 fi
9143
9144
9145 for ac_header in dis-asm.h
9146 do :
9147 ac_fn_c_check_header_compile "$LINENO" "dis-asm.h" "ac_cv_header_dis_asm_h" "$ac_includes_default"
9148 if test "x$ac_cv_header_dis_asm_h" = xyes
9149 then :
9150 printf "%s\n" "#define HAVE_DIS_ASM_H 1" >>confdefs.h
9151 MLIBS=$LIBS
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for init_disassemble_info in -lopcodes" >&5
9153 printf %s "checking for init_disassemble_info in -lopcodes... " >&6; }
9154 if test ${ac_cv_lib_opcodes_init_disassemble_info+y}
9155 then :
9156 printf %s "(cached) " >&6
9157 else $as_nop
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-lopcodes $LIBS"
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9166 char init_disassemble_info ();
9167 int
9168 main (void)
9169 {
9170 return init_disassemble_info ();
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"
9176 then :
9177 ac_cv_lib_opcodes_init_disassemble_info=yes
9178 else $as_nop
9179 ac_cv_lib_opcodes_init_disassemble_info=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9182 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9184 fi
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opcodes_init_disassemble_info" >&5
9186 printf "%s\n" "$ac_cv_lib_opcodes_init_disassemble_info" >&6; }
9187 if test "x$ac_cv_lib_opcodes_init_disassemble_info" = xyes
9188 then :
9189 printf "%s\n" "#define HAVE_LIBOPCODES 1" >>confdefs.h
9190
9191 LIBS="-lopcodes $LIBS"
9192
9193 fi
9194
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9196 printf %s "checking for dlopen in -ldl... " >&6; }
9197 if test ${ac_cv_lib_dl_dlopen+y}
9198 then :
9199 printf %s "(cached) " >&6
9200 else $as_nop
9201 ac_check_lib_save_LIBS=$LIBS
9202 LIBS="-ldl $LIBS"
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9205
9206 /* Override any GCC internal prototype to avoid an error.
9207 Use char because int might match the return type of a GCC
9208 builtin and then its argument prototype would still apply. */
9209 char dlopen ();
9210 int
9211 main (void)
9212 {
9213 return dlopen ();
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"
9219 then :
9220 ac_cv_lib_dl_dlopen=yes
9221 else $as_nop
9222 ac_cv_lib_dl_dlopen=no
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9225 conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9227 fi
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9229 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9230 if test "x$ac_cv_lib_dl_dlopen" = xyes
9231 then :
9232 #opcodes changes too quickly to link directly
9233 LIBS="$MLIBS -ldl"
9234 fi
9235
9236 fi
9237
9238 done
9239
9240 #if test $use = "386-linux" ; then
9241 ac_fn_c_check_header_compile "$LINENO" "asm/sigcontext.h" "ac_cv_header_asm_sigcontext_h" "$ac_includes_default"
9242 if test "x$ac_cv_header_asm_sigcontext_h" = xyes
9243 then :
9244 printf "%s\n" "#define HAVE_ASM_SIGCONTEXT_H 1" >>confdefs.h
9245
9246 fi
9247
9248 ac_fn_c_check_header_compile "$LINENO" "asm/signal.h" "ac_cv_header_asm_signal_h" "$ac_includes_default"
9249 if test "x$ac_cv_header_asm_signal_h" = xyes
9250 then :
9251 printf "%s\n" "#define HAVE_ASM_SIGNAL_H 1" >>confdefs.h
9252
9253 fi
9254
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9256 printf %s "checking for sigcontext...... " >&6; }
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259
9260 #include <signal.h>
9261
9262 int
9263 main (void)
9264 {
9265
9266 struct sigcontext foo;
9267
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 if ac_fn_c_try_compile "$LINENO"
9273 then :
9274
9275 printf "%s\n" "#define SIGNAL_H_HAS_SIGCONTEXT 1" >>confdefs.h
9276
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext of signal.h" >&5
9278 printf "%s\n" "sigcontext of signal.h" >&6; }
9279 else $as_nop
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext NOT of signal.h" >&5
9281 printf "%s\n" "sigcontext NOT of signal.h" >&6; }
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9283 printf %s "checking for sigcontext...... " >&6; }
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286
9287 #include <signal.h>
9288 #ifdef HAVE_ASM_SIGCONTEXT_H
9289 #include <asm/sigcontext.h>
9290 #endif
9291 #ifdef HAVE_ASM_SIGNAL_H
9292 #include <asm/signal.h>
9293 #endif
9294
9295 int
9296 main (void)
9297 {
9298
9299 struct sigcontext foo;
9300
9301 ;
9302 return 0;
9303 }
9304 _ACEOF
9305 if ac_fn_c_try_compile "$LINENO"
9306 then :
9307
9308 printf "%s\n" "#define HAVE_SIGCONTEXT 1" >>confdefs.h
9309
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext asm files" >&5
9311 printf "%s\n" "sigcontext asm files" >&6; }
9312 else $as_nop
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no sigcontext found" >&5
9314 printf "%s\n" "no sigcontext found" >&6; }
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9319
9320 # Extract the first word of "emacs", so it can be a program name with args.
9321 set dummy emacs; ac_word=$2
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 printf %s "checking for $ac_word... " >&6; }
9324 if test ${ac_cv_path_EMACS+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else $as_nop
9328 case $EMACS in
9329 [\\/]* | ?:[\\/]*)
9330 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
9331 ;;
9332 *)
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9335 do
9336 IFS=$as_save_IFS
9337 case $as_dir in #(((
9338 '') as_dir=./ ;;
9339 */) ;;
9340 *) as_dir=$as_dir/ ;;
9341 esac
9342 for ac_exec_ext in '' $ac_executable_extensions; do
9343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9344 ac_cv_path_EMACS="$as_dir$ac_word$ac_exec_ext"
9345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9346 break 2
9347 fi
9348 done
9349 done
9350 IFS=$as_save_IFS
9351
9352 ;;
9353 esac
9354 fi
9355 EMACS=$ac_cv_path_EMACS
9356 if test -n "$EMACS"; then
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
9358 printf "%s\n" "$EMACS" >&6; }
9359 else
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9361 printf "%s\n" "no" >&6; }
9362 fi
9363
9364
9365
9366
9367 # check for where the emacs site lisp directory is.
9368 rm -f conftest.el
9369 cat >> conftest.el <<EOF
9370 (let ((ans ".") (tem load-path) cur)
9371 (while (setq cur (car tem))
9372 (setq tem (cdr tem))
9373 (cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur))
9374 (setq ans cur)
9375 (if (string-match "-0-9.+$" cur) nil
9376 (setq tem nil)))))
9377 (message ans))
9378 EOF
9379
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs site lisp directory" >&5
9381 printf %s "checking emacs site lisp directory... " >&6; }
9382 if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
9383 if [ "$EMACS" != "" ] ; then
9384 EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d |sed -e /Warning:/d`
9385 else
9386 EMACS_SITE_LISP=""
9387 fi
9388 fi
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_SITE_LISP" >&5
9390 printf "%s\n" "$EMACS_SITE_LISP" >&6; }
9391
9392
9393 # check for where the emacs site lisp default.el is
9394 rm -f conftest.el
9395 cat >> conftest.el <<EOF
9396 (let ((ans "./default.el") file (tem load-path))
9397 (while tem
9398 (cond ((file-exists-p
9399 (setq file (expand-file-name "/default.el" (car tem))))
9400 (setq tem nil) (setq ans file)))
9401 (setq tem (cdr tem)))
9402 (message ans))
9403 EOF
9404
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs default.el" >&5
9406 printf %s "checking emacs default.el... " >&6; }
9407 if [ "$EMACS" != "" ] ; then
9408 EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d |sed -e /Warning:/d`
9409 else
9410 EMACS_DEFAULT_EL=""
9411 fi
9412 if test -f "${EMACS_DEFAULT_EL}" ; then true;else
9413 if test -d $EMACS_SITE_LISP ; then
9414 EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
9415 fi
9416 fi
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_DEFAULT_EL" >&5
9418 printf "%s\n" "$EMACS_DEFAULT_EL" >&6; }
9419
9420
9421
9422
9423 # check for where the emacs site lisp info/dir is
9424 rm -f conftest.el
9425 cat >> conftest.el <<EOF
9426 (let ((ans "") file (tem Info-default-directory-list))
9427 (while tem
9428 (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
9429 (setq ans (file-name-as-directory (car tem)))
9430 (setq tem nil) ))
9431 (setq tem (cdr tem)))
9432 (message ans))
9433 EOF
9434
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs info/dir" >&5
9436 printf %s "checking emacs info/dir... " >&6; }
9437 if test "$use" = "mingw" ; then
9438 INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
9439 else
9440 if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
9441 INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d |sed -e /Warning:/d`
9442 fi
9443 fi
9444
9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INFO_DIR" >&5
9446 printf "%s\n" "$INFO_DIR" >&6; }
9447
9448
9449 # Check whether --enable-tcltk was given.
9450 if test ${enable_tcltk+y}
9451 then :
9452 enableval=$enable_tcltk;
9453 fi
9454
9455 # Check whether --enable-tkconfig was given.
9456 if test ${enable_tkconfig+y}
9457 then :
9458 enableval=$enable_tkconfig; TK_CONFIG_PREFIX=$enableval
9459 else $as_nop
9460 TK_CONFIG_PREFIX=unknown
9461 fi
9462
9463 # Check whether --enable-tclconfig was given.
9464 if test ${enable_tclconfig+y}
9465 then :
9466 enableval=$enable_tclconfig; TCL_CONFIG_PREFIX=$enableval
9467 else $as_nop
9468 TCL_CONFIG_PREFIX=unknown
9469 fi
9470
9471
9472 if test "$enable_tcltk" != "no" ; then
9473
9474 if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else
9475
9476 # Extract the first word of "tclsh", so it can be a program name with args.
9477 set dummy tclsh; ac_word=$2
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9479 printf %s "checking for $ac_word... " >&6; }
9480 if test ${ac_cv_prog_TCLSH+y}
9481 then :
9482 printf %s "(cached) " >&6
9483 else $as_nop
9484 if test -n "$TCLSH"; then
9485 ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490 IFS=$as_save_IFS
9491 case $as_dir in #(((
9492 '') as_dir=./ ;;
9493 */) ;;
9494 *) as_dir=$as_dir/ ;;
9495 esac
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9498 ac_cv_prog_TCLSH="tclsh"
9499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9500 break 2
9501 fi
9502 done
9503 done
9504 IFS=$as_save_IFS
9505
9506 test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9507 fi
9508 fi
9509 TCLSH=$ac_cv_prog_TCLSH
9510 if test -n "$TCLSH"; then
9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
9512 printf "%s\n" "$TCLSH" >&6; }
9513 else
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 printf "%s\n" "no" >&6; }
9516 fi
9517
9518
9519
9520 if test "${TCLSH}" = "" ; then true ; else
9521
9522 rm -f conftest.tcl
9523 cat >> conftest.tcl <<EOF
9524
9525 puts [set tcl_version]
9526
9527 EOF
9528
9529 TCL_VERSION=`${TCLSH} < conftest.tcl`
9530 fi
9531
9532 if test -x /usr/lib/tcl$TCL_VERSION/tclConfig.sh ; then
9533 TCL_CONFIG_PREFIX=/usr/lib/tcl$TCL_VERSION
9534 fi
9535
9536 fi
9537
9538 if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi
9539
9540 if test -d "${TK_CONFIG_PREFIX}" ; then true ; else
9541 if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then
9542 TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX}
9543 else
9544 if test -x `echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`/tkConfig.sh ; then
9545 TK_CONFIG_PREFIX=`echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`
9546 fi
9547 fi
9548 fi
9549
9550 if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi
9551
9552 if test -d ${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION} ; then
9553 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION}
9554 else
9555 if test -d ${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION} ; then
9556 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION}
9557 fi
9558 fi
9559
9560 if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then
9561 TK_LIBRARY=${TK_CONFIG_PREFIX}/tk${TK_VERSION}
9562 else
9563 if test -d ${TK_CONFIG_PREFIX}/../tk${TK_VERSION} ; then
9564 TK_LIBRARY=${TK_CONFIG_PREFIX}/../tk${TK_VERSION}
9565 fi
9566 fi
9567
9568 if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9569 TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
9570 else
9571 if test -f /usr/include/tcl${TCL_VERSION}/tcl.h ; then
9572 TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9573 fi
9574 fi
9575
9576 if test -f ${TK_CONFIG_PREFIX}/../include/tk.h ; then
9577 TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../include
9578 else
9579 if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9580 TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9581 fi
9582 fi
9583
9584 TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`
9585 if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll ; then
9586 TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"
9587 TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
9588 else
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -llieee" >&5
9590 printf %s "checking for main in -llieee... " >&6; }
9591 if test ${ac_cv_lib_lieee_main+y}
9592 then :
9593 printf %s "(cached) " >&6
9594 else $as_nop
9595 ac_check_lib_save_LIBS=$LIBS
9596 LIBS="-llieee $LIBS"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599
9600
9601 int
9602 main (void)
9603 {
9604 return main ();
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"
9610 then :
9611 ac_cv_lib_lieee_main=yes
9612 else $as_nop
9613 ac_cv_lib_lieee_main=no
9614 fi
9615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9618 fi
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lieee_main" >&5
9620 printf "%s\n" "$ac_cv_lib_lieee_main" >&6; }
9621 if test "x$ac_cv_lib_lieee_main" = xyes
9622 then :
9623 have_ieee=1
9624 else $as_nop
9625 have_ieee=0
9626 fi
9627
9628 if test "$have_ieee" = "0" ; then
9629 TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `
9630 fi
9631 TCL_STUB_LIBS=""
9632 fi
9633
9634 fi
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcl/tk" >&5
9657 printf %s "checking for tcl/tk... " >&6; }
9658 if test -d "${TK_CONFIG_PREFIX}" ; then
9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&5
9660 printf "%s\n" "using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&6; }
9661 else
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9663 printf "%s\n" "not found" >&6; }
9664 fi
9665
9666 # Check whether --enable-notify was given.
9667 if test ${enable_notify+y}
9668 then :
9669 enableval=$enable_notify; NOTIFY=$enable_notify
9670
9671 fi
9672
9673
9674
9675 # for sgbc the mprotect capabilities.
9676
9677 # the time handling for unixtime, add timezone
9678 for ac_header in sys/mman.h
9679 do :
9680 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9681 if test "x$ac_cv_header_sys_mman_h" = xyes
9682 then :
9683 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
9684 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
9685 if test "x$ac_cv_func_mprotect" = xyes
9686 then :
9687 printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
9688
9689 fi
9690
9691 fi
9692
9693 done
9694 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
9695 if test "x$ac_cv_header_alloca_h" = xyes
9696 then :
9697 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9698
9699 fi
9700
9701 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9702 if test "x$ac_cv_type_size_t" = xyes
9703 then :
9704
9705 else $as_nop
9706
9707 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
9708
9709 fi
9710
9711 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9712 # for constant arguments. Useless!
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9714 printf %s "checking for working alloca.h... " >&6; }
9715 if test ${ac_cv_working_alloca_h+y}
9716 then :
9717 printf %s "(cached) " >&6
9718 else $as_nop
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9721 #include <alloca.h>
9722 int
9723 main (void)
9724 {
9725 char *p = (char *) alloca (2 * sizeof (int));
9726 if (p) return 0;
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"
9732 then :
9733 ac_cv_working_alloca_h=yes
9734 else $as_nop
9735 ac_cv_working_alloca_h=no
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9738 conftest$ac_exeext conftest.$ac_ext
9739 fi
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9741 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
9742 if test $ac_cv_working_alloca_h = yes; then
9743
9744 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9745
9746 fi
9747
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9749 printf %s "checking for alloca... " >&6; }
9750 if test ${ac_cv_func_alloca_works+y}
9751 then :
9752 printf %s "(cached) " >&6
9753 else $as_nop
9754 if test $ac_cv_working_alloca_h = yes; then
9755 ac_cv_func_alloca_works=yes
9756 else
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 #include <stdlib.h>
9760 #include <stddef.h>
9761 #ifndef alloca
9762 # ifdef __GNUC__
9763 # define alloca __builtin_alloca
9764 # elif defined _MSC_VER
9765 # include <malloc.h>
9766 # define alloca _alloca
9767 # else
9768 # ifdef __cplusplus
9769 extern "C"
9770 # endif
9771 void *alloca (size_t);
9772 # endif
9773 #endif
9774
9775 int
9776 main (void)
9777 {
9778 char *p = (char *) alloca (1);
9779 if (p) return 0;
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"
9785 then :
9786 ac_cv_func_alloca_works=yes
9787 else $as_nop
9788 ac_cv_func_alloca_works=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9791 conftest$ac_exeext conftest.$ac_ext
9792 fi
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9794 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
9795 fi
9796
9797 if test $ac_cv_func_alloca_works = yes; then
9798
9799 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
9800
9801 else
9802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9803 # that cause trouble. Some versions do not even contain alloca or
9804 # contain a buggy version. If you still want to use their alloca,
9805 # use ar to extract alloca.o from them instead of compiling alloca.c.
9806
9807 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9808
9809 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
9810
9811
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9813 printf %s "checking stack direction for C alloca... " >&6; }
9814 if test ${ac_cv_c_stack_direction+y}
9815 then :
9816 printf %s "(cached) " >&6
9817 else $as_nop
9818 if test "$cross_compiling" = yes
9819 then :
9820 ac_cv_c_stack_direction=0
9821 else $as_nop
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 $ac_includes_default
9825 int
9826 find_stack_direction (int *addr, int depth)
9827 {
9828 int dir, dummy = 0;
9829 if (! addr)
9830 addr = &dummy;
9831 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9832 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9833 return dir + dummy;
9834 }
9835
9836 int
9837 main (int argc, char **argv)
9838 {
9839 return find_stack_direction (0, argc + !argv + 20) < 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_run "$LINENO"
9843 then :
9844 ac_cv_c_stack_direction=1
9845 else $as_nop
9846 ac_cv_c_stack_direction=-1
9847 fi
9848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9849 conftest.$ac_objext conftest.beam conftest.$ac_ext
9850 fi
9851
9852 fi
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9854 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
9855 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
9856
9857
9858 fi
9859
9860
9861
9862 LDFLAGS="`echo $GPL_FLAG $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'`"
9863
9864 LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS $TLIBS"
9865
9866 CFLAGS="$CFLAGS $GP_FLAG"
9867 FINAL_CFLAGS="$CFLAGS $CPPFLAGS $X_CFLAGS"
9868
9869 # Work around bug with gcc on ppc -- CM
9870 NIFLAGS="$CFLAGS $CPPFLAGS $TONIFLAGS -I\$(GCLDIR)/o"
9871
9872 CFLAGS="$CFLAGS $CPPFLAGS $TO3FLAGS -I\$(GCLDIR)/o"
9873
9874 O3FLAGS=$TO3FLAGS
9875
9876 O2FLAGS=$TO2FLAGS
9877
9878
9879
9880
9881
9882 if test -f h/$use.defs ; then
9883
9884
9885 ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
9886
9887 cat >confcache <<\_ACEOF
9888 # This file is a shell script that caches the results of configure
9889 # tests run on this system so they can be shared between configure
9890 # scripts and configure runs, see configure's option --config-cache.
9891 # It is not useful on other systems. If it contains results you don't
9892 # want to keep, you may remove or edit it.
9893 #
9894 # config.status only pays attention to the cache file if you give it
9895 # the --recheck option to rerun configure.
9896 #
9897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9899 # following values.
9900
9901 _ACEOF
9902
9903 # The following way of writing the cache mishandles newlines in values,
9904 # but we know of no workaround that is simple, portable, and efficient.
9905 # So, we kill variables containing newlines.
9906 # Ultrix sh set writes to stderr and can't be redirected directly,
9907 # and sets the high bit in the cache file unless we assign to the vars.
9908 (
9909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9910 eval ac_val=\$$ac_var
9911 case $ac_val in #(
9912 *${as_nl}*)
9913 case $ac_var in #(
9914 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9915 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9916 esac
9917 case $ac_var in #(
9918 _ | IFS | as_nl) ;; #(
9919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9920 *) { eval $ac_var=; unset $ac_var;} ;;
9921 esac ;;
9922 esac
9923 done
9924
9925 (set) 2>&1 |
9926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9927 *${as_nl}ac_space=\ *)
9928 # `set' does not quote correctly, so add quotes: double-quote
9929 # substitution turns \\\\ into \\, and sed turns \\ into \.
9930 sed -n \
9931 "s/'/'\\\\''/g;
9932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9933 ;; #(
9934 *)
9935 # `set' quotes correctly as required by POSIX, so do not add quotes.
9936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9937 ;;
9938 esac |
9939 sort
9940 ) |
9941 sed '
9942 /^ac_cv_env_/b end
9943 t clear
9944 :clear
9945 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9946 t end
9947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9948 :end' >>confcache
9949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9950 if test -w "$cache_file"; then
9951 if test "x$cache_file" != "x/dev/null"; then
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9953 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9954 if test ! -f "$cache_file" || test -h "$cache_file"; then
9955 cat confcache >"$cache_file"
9956 else
9957 case $cache_file in #(
9958 */* | ?:*)
9959 mv -f confcache "$cache_file"$$ &&
9960 mv -f "$cache_file"$$ "$cache_file" ;; #(
9961 *)
9962 mv -f confcache "$cache_file" ;;
9963 esac
9964 fi
9965 fi
9966 else
9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9968 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9969 fi
9970 fi
9971 rm -f confcache
9972
9973 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9974 # Let make expand exec_prefix.
9975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9976
9977 DEFS=-DHAVE_CONFIG_H
9978
9979 ac_libobjs=
9980 ac_ltlibobjs=
9981 U=
9982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9983 # 1. Remove the extension, and $U if already installed.
9984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9985 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9987 # will be set to the directory where LIBOBJS objects are built.
9988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9990 done
9991 LIBOBJS=$ac_libobjs
9992
9993 LTLIBOBJS=$ac_ltlibobjs
9994
9995
9996
9997 : "${CONFIG_STATUS=./config.status}"
9998 ac_write_fail=0
9999 ac_clean_files_save=$ac_clean_files
10000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10002 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10003 as_write_fail=0
10004 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10005 #! $SHELL
10006 # Generated by $as_me.
10007 # Run this file to recreate the current configuration.
10008 # Compiler output produced by configure, useful for debugging
10009 # configure, is in config.log if it exists.
10010
10011 debug=false
10012 ac_cs_recheck=false
10013 ac_cs_silent=false
10014
10015 SHELL=\${CONFIG_SHELL-$SHELL}
10016 export SHELL
10017 _ASEOF
10018 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10019 ## -------------------- ##
10020 ## M4sh Initialization. ##
10021 ## -------------------- ##
10022
10023 # Be more Bourne compatible
10024 DUALCASE=1; export DUALCASE # for MKS sh
10025 as_nop=:
10026 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10027 then :
10028 emulate sh
10029 NULLCMD=:
10030 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10031 # is contrary to our usage. Disable this feature.
10032 alias -g '${1+"$@"}'='"$@"'
10033 setopt NO_GLOB_SUBST
10034 else $as_nop
10035 case `(set -o) 2>/dev/null` in #(
10036 *posix*) :
10037 set -o posix ;; #(
10038 *) :
10039 ;;
10040 esac
10041 fi
10042
10043
10044
10045 # Reset variables that may have inherited troublesome values from
10046 # the environment.
10047
10048 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10049 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10050 # side effect of setting IFS to empty, thus disabling word splitting.)
10051 # Quoting is to prevent editors from complaining about space-tab.
10052 as_nl='
10053 '
10054 export as_nl
10055 IFS=" "" $as_nl"
10056
10057 PS1='$ '
10058 PS2='> '
10059 PS4='+ '
10060
10061 # Ensure predictable behavior from utilities with locale-dependent output.
10062 LC_ALL=C
10063 export LC_ALL
10064 LANGUAGE=C
10065 export LANGUAGE
10066
10067 # We cannot yet rely on "unset" to work, but we need these variables
10068 # to be unset--not just set to an empty or harmless value--now, to
10069 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10070 # also avoids known problems related to "unset" and subshell syntax
10071 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10072 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10073 do eval test \${$as_var+y} \
10074 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10075 done
10076
10077 # Ensure that fds 0, 1, and 2 are open.
10078 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10079 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10080 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10081
10082 # The user is always right.
10083 if ${PATH_SEPARATOR+false} :; then
10084 PATH_SEPARATOR=:
10085 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10086 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10087 PATH_SEPARATOR=';'
10088 }
10089 fi
10090
10091
10092 # Find who we are. Look in the path if we contain no directory separator.
10093 as_myself=
10094 case $0 in #((
10095 *[\\/]* ) as_myself=$0 ;;
10096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099 IFS=$as_save_IFS
10100 case $as_dir in #(((
10101 '') as_dir=./ ;;
10102 */) ;;
10103 *) as_dir=$as_dir/ ;;
10104 esac
10105 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10106 done
10107 IFS=$as_save_IFS
10108
10109 ;;
10110 esac
10111 # We did not find ourselves, most probably we were run as `sh COMMAND'
10112 # in which case we are not to be found in the path.
10113 if test "x$as_myself" = x; then
10114 as_myself=$0
10115 fi
10116 if test ! -f "$as_myself"; then
10117 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10118 exit 1
10119 fi
10120
10121
10122
10123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10124 # ----------------------------------------
10125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10127 # script with STATUS, using 1 if that was 0.
10128 as_fn_error ()
10129 {
10130 as_status=$1; test $as_status -eq 0 && as_status=1
10131 if test "$4"; then
10132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10134 fi
10135 printf "%s\n" "$as_me: error: $2" >&2
10136 as_fn_exit $as_status
10137 } # as_fn_error
10138
10139
10140
10141 # as_fn_set_status STATUS
10142 # -----------------------
10143 # Set $? to STATUS, without forking.
10144 as_fn_set_status ()
10145 {
10146 return $1
10147 } # as_fn_set_status
10148
10149 # as_fn_exit STATUS
10150 # -----------------
10151 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10152 as_fn_exit ()
10153 {
10154 set +e
10155 as_fn_set_status $1
10156 exit $1
10157 } # as_fn_exit
10158
10159 # as_fn_unset VAR
10160 # ---------------
10161 # Portably unset VAR.
10162 as_fn_unset ()
10163 {
10164 { eval $1=; unset $1;}
10165 }
10166 as_unset=as_fn_unset
10167
10168 # as_fn_append VAR VALUE
10169 # ----------------------
10170 # Append the text in VALUE to the end of the definition contained in VAR. Take
10171 # advantage of any shell optimizations that allow amortized linear growth over
10172 # repeated appends, instead of the typical quadratic growth present in naive
10173 # implementations.
10174 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10175 then :
10176 eval 'as_fn_append ()
10177 {
10178 eval $1+=\$2
10179 }'
10180 else $as_nop
10181 as_fn_append ()
10182 {
10183 eval $1=\$$1\$2
10184 }
10185 fi # as_fn_append
10186
10187 # as_fn_arith ARG...
10188 # ------------------
10189 # Perform arithmetic evaluation on the ARGs, and store the result in the
10190 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10191 # must be portable across $(()) and expr.
10192 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10193 then :
10194 eval 'as_fn_arith ()
10195 {
10196 as_val=$(( $* ))
10197 }'
10198 else $as_nop
10199 as_fn_arith ()
10200 {
10201 as_val=`expr "$@" || test $? -eq 1`
10202 }
10203 fi # as_fn_arith
10204
10205
10206 if expr a : '\(a\)' >/dev/null 2>&1 &&
10207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10208 as_expr=expr
10209 else
10210 as_expr=false
10211 fi
10212
10213 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10214 as_basename=basename
10215 else
10216 as_basename=false
10217 fi
10218
10219 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10220 as_dirname=dirname
10221 else
10222 as_dirname=false
10223 fi
10224
10225 as_me=`$as_basename -- "$0" ||
10226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10227 X"$0" : 'X\(//\)$' \| \
10228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10229 printf "%s\n" X/"$0" |
10230 sed '/^.*\/\([^/][^/]*\)\/*$/{
10231 s//\1/
10232 q
10233 }
10234 /^X\/\(\/\/\)$/{
10235 s//\1/
10236 q
10237 }
10238 /^X\/\(\/\).*/{
10239 s//\1/
10240 q
10241 }
10242 s/.*/./; q'`
10243
10244 # Avoid depending upon Character Ranges.
10245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10248 as_cr_digits='0123456789'
10249 as_cr_alnum=$as_cr_Letters$as_cr_digits
10250
10251
10252 # Determine whether it's possible to make 'echo' print without a newline.
10253 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10254 # for compatibility with existing Makefiles.
10255 ECHO_C= ECHO_N= ECHO_T=
10256 case `echo -n x` in #(((((
10257 -n*)
10258 case `echo 'xy\c'` in
10259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10260 xy) ECHO_C='\c';;
10261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10262 ECHO_T=' ';;
10263 esac;;
10264 *)
10265 ECHO_N='-n';;
10266 esac
10267
10268 # For backward compatibility with old third-party macros, we provide
10269 # the shell variables $as_echo and $as_echo_n. New code should use
10270 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10271 as_echo='printf %s\n'
10272 as_echo_n='printf %s'
10273
10274 rm -f conf$$ conf$$.exe conf$$.file
10275 if test -d conf$$.dir; then
10276 rm -f conf$$.dir/conf$$.file
10277 else
10278 rm -f conf$$.dir
10279 mkdir conf$$.dir 2>/dev/null
10280 fi
10281 if (echo >conf$$.file) 2>/dev/null; then
10282 if ln -s conf$$.file conf$$ 2>/dev/null; then
10283 as_ln_s='ln -s'
10284 # ... but there are two gotchas:
10285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10287 # In both cases, we have to default to `cp -pR'.
10288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10289 as_ln_s='cp -pR'
10290 elif ln conf$$.file conf$$ 2>/dev/null; then
10291 as_ln_s=ln
10292 else
10293 as_ln_s='cp -pR'
10294 fi
10295 else
10296 as_ln_s='cp -pR'
10297 fi
10298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10299 rmdir conf$$.dir 2>/dev/null
10300
10301
10302 # as_fn_mkdir_p
10303 # -------------
10304 # Create "$as_dir" as a directory, including parents if necessary.
10305 as_fn_mkdir_p ()
10306 {
10307
10308 case $as_dir in #(
10309 -*) as_dir=./$as_dir;;
10310 esac
10311 test -d "$as_dir" || eval $as_mkdir_p || {
10312 as_dirs=
10313 while :; do
10314 case $as_dir in #(
10315 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10316 *) as_qdir=$as_dir;;
10317 esac
10318 as_dirs="'$as_qdir' $as_dirs"
10319 as_dir=`$as_dirname -- "$as_dir" ||
10320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10321 X"$as_dir" : 'X\(//\)[^/]' \| \
10322 X"$as_dir" : 'X\(//\)$' \| \
10323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10324 printf "%s\n" X"$as_dir" |
10325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10326 s//\1/
10327 q
10328 }
10329 /^X\(\/\/\)[^/].*/{
10330 s//\1/
10331 q
10332 }
10333 /^X\(\/\/\)$/{
10334 s//\1/
10335 q
10336 }
10337 /^X\(\/\).*/{
10338 s//\1/
10339 q
10340 }
10341 s/.*/./; q'`
10342 test -d "$as_dir" && break
10343 done
10344 test -z "$as_dirs" || eval "mkdir $as_dirs"
10345 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10346
10347
10348 } # as_fn_mkdir_p
10349 if mkdir -p . 2>/dev/null; then
10350 as_mkdir_p='mkdir -p "$as_dir"'
10351 else
10352 test -d ./-p && rmdir ./-p
10353 as_mkdir_p=false
10354 fi
10355
10356
10357 # as_fn_executable_p FILE
10358 # -----------------------
10359 # Test if FILE is an executable regular file.
10360 as_fn_executable_p ()
10361 {
10362 test -f "$1" && test -x "$1"
10363 } # as_fn_executable_p
10364 as_test_x='test -x'
10365 as_executable_p=as_fn_executable_p
10366
10367 # Sed expression to map a string onto a valid CPP name.
10368 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10369
10370 # Sed expression to map a string onto a valid variable name.
10371 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10372
10373
10374 exec 6>&1
10375 ## ----------------------------------- ##
10376 ## Main body of $CONFIG_STATUS script. ##
10377 ## ----------------------------------- ##
10378 _ASEOF
10379 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10380
10381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10382 # Save the log message, to keep $0 and so on meaningful, and to
10383 # report actual input values of CONFIG_FILES etc. instead of their
10384 # values after options handling.
10385 ac_log="
10386 This file was extended by $as_me, which was
10387 generated by GNU Autoconf 2.71. Invocation command line was
10388
10389 CONFIG_FILES = $CONFIG_FILES
10390 CONFIG_HEADERS = $CONFIG_HEADERS
10391 CONFIG_LINKS = $CONFIG_LINKS
10392 CONFIG_COMMANDS = $CONFIG_COMMANDS
10393 $ $0 $@
10394
10395 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10396 "
10397
10398 _ACEOF
10399
10400 case $ac_config_files in *"
10401 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10402 esac
10403
10404 case $ac_config_headers in *"
10405 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10406 esac
10407
10408
10409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10410 # Files that config.status was made for.
10411 config_files="$ac_config_files"
10412 config_headers="$ac_config_headers"
10413
10414 _ACEOF
10415
10416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10417 ac_cs_usage="\
10418 \`$as_me' instantiates files and other configuration actions
10419 from templates according to the current configuration. Unless the files
10420 and actions are specified as TAGs, all are instantiated by default.
10421
10422 Usage: $0 [OPTION]... [TAG]...
10423
10424 -h, --help print this help, then exit
10425 -V, --version print version number and configuration settings, then exit
10426 --config print configuration, then exit
10427 -q, --quiet, --silent
10428 do not print progress messages
10429 -d, --debug don't remove temporary files
10430 --recheck update $as_me by reconfiguring in the same conditions
10431 --file=FILE[:TEMPLATE]
10432 instantiate the configuration file FILE
10433 --header=FILE[:TEMPLATE]
10434 instantiate the configuration header FILE
10435
10436 Configuration files:
10437 $config_files
10438
10439 Configuration headers:
10440 $config_headers
10441
10442 Report bugs to the package provider."
10443
10444 _ACEOF
10445 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10446 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10448 ac_cs_config='$ac_cs_config_escaped'
10449 ac_cs_version="\\
10450 config.status
10451 configured by $0, generated by GNU Autoconf 2.71,
10452 with options \\"\$ac_cs_config\\"
10453
10454 Copyright (C) 2021 Free Software Foundation, Inc.
10455 This config.status script is free software; the Free Software Foundation
10456 gives unlimited permission to copy, distribute and modify it."
10457
10458 ac_pwd='$ac_pwd'
10459 srcdir='$srcdir'
10460 test -n "\$AWK" || AWK=awk
10461 _ACEOF
10462
10463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10464 # The default lists apply if the user does not specify any file.
10465 ac_need_defaults=:
10466 while test $# != 0
10467 do
10468 case $1 in
10469 --*=?*)
10470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10471 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10472 ac_shift=:
10473 ;;
10474 --*=)
10475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10476 ac_optarg=
10477 ac_shift=:
10478 ;;
10479 *)
10480 ac_option=$1
10481 ac_optarg=$2
10482 ac_shift=shift
10483 ;;
10484 esac
10485
10486 case $ac_option in
10487 # Handling of the options.
10488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10489 ac_cs_recheck=: ;;
10490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10491 printf "%s\n" "$ac_cs_version"; exit ;;
10492 --config | --confi | --conf | --con | --co | --c )
10493 printf "%s\n" "$ac_cs_config"; exit ;;
10494 --debug | --debu | --deb | --de | --d | -d )
10495 debug=: ;;
10496 --file | --fil | --fi | --f )
10497 $ac_shift
10498 case $ac_optarg in
10499 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10500 '') as_fn_error $? "missing file argument" ;;
10501 esac
10502 as_fn_append CONFIG_FILES " '$ac_optarg'"
10503 ac_need_defaults=false;;
10504 --header | --heade | --head | --hea )
10505 $ac_shift
10506 case $ac_optarg in
10507 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10508 esac
10509 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10510 ac_need_defaults=false;;
10511 --he | --h)
10512 # Conflict between --help and --header
10513 as_fn_error $? "ambiguous option: \`$1'
10514 Try \`$0 --help' for more information.";;
10515 --help | --hel | -h )
10516 printf "%s\n" "$ac_cs_usage"; exit ;;
10517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10518 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10519 ac_cs_silent=: ;;
10520
10521 # This is an error.
10522 -*) as_fn_error $? "unrecognized option: \`$1'
10523 Try \`$0 --help' for more information." ;;
10524
10525 *) as_fn_append ac_config_targets " $1"
10526 ac_need_defaults=false ;;
10527
10528 esac
10529 shift
10530 done
10531
10532 ac_configure_extra_args=
10533
10534 if $ac_cs_silent; then
10535 exec 6>/dev/null
10536 ac_configure_extra_args="$ac_configure_extra_args --silent"
10537 fi
10538
10539 _ACEOF
10540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10541 if \$ac_cs_recheck; then
10542 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10543 shift
10544 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10545 CONFIG_SHELL='$SHELL'
10546 export CONFIG_SHELL
10547 exec "\$@"
10548 fi
10549
10550 _ACEOF
10551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10552 exec 5>>config.log
10553 {
10554 echo
10555 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10556 ## Running $as_me. ##
10557 _ASBOX
10558 printf "%s\n" "$ac_log"
10559 } >&5
10560
10561 _ACEOF
10562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10563 _ACEOF
10564
10565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10566
10567 # Handling of arguments.
10568 for ac_config_target in $ac_config_targets
10569 do
10570 case $ac_config_target in
10571 "h/gclincl.h") CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
10572 "makedefc") CONFIG_FILES="$CONFIG_FILES makedefc" ;;
10573 "windows/gcl.iss") CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
10574 "windows/sysdir.bat") CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
10575 "windows/install.lsp") CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
10576
10577 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10578 esac
10579 done
10580
10581
10582 # If the user did not use the arguments to specify the items to instantiate,
10583 # then the envvar interface is used. Set only those that are not.
10584 # We use the long form for the default assignment because of an extremely
10585 # bizarre bug on SunOS 4.1.3.
10586 if $ac_need_defaults; then
10587 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10588 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10589 fi
10590
10591 # Have a temporary directory for convenience. Make it in the build tree
10592 # simply because there is no reason against having it here, and in addition,
10593 # creating and moving files from /tmp can sometimes cause problems.
10594 # Hook for its removal unless debugging.
10595 # Note that there is a small window in which the directory will not be cleaned:
10596 # after its creation but before its name has been assigned to `$tmp'.
10597 $debug ||
10598 {
10599 tmp= ac_tmp=
10600 trap 'exit_status=$?
10601 : "${ac_tmp:=$tmp}"
10602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10603 ' 0
10604 trap 'as_fn_exit 1' 1 2 13 15
10605 }
10606 # Create a (secure) tmp directory for tmp files.
10607
10608 {
10609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10610 test -d "$tmp"
10611 } ||
10612 {
10613 tmp=./conf$$-$RANDOM
10614 (umask 077 && mkdir "$tmp")
10615 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10616 ac_tmp=$tmp
10617
10618 # Set up the scripts for CONFIG_FILES section.
10619 # No need to generate them if there are no CONFIG_FILES.
10620 # This happens for instance with `./config.status config.h'.
10621 if test -n "$CONFIG_FILES"; then
10622
10623
10624 ac_cr=`echo X | tr X '\015'`
10625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10626 # But we know of no other shell where ac_cr would be empty at this
10627 # point, so we can use a bashism as a fallback.
10628 if test "x$ac_cr" = x; then
10629 eval ac_cr=\$\'\\r\'
10630 fi
10631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10633 ac_cs_awk_cr='\\r'
10634 else
10635 ac_cs_awk_cr=$ac_cr
10636 fi
10637
10638 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10639 _ACEOF
10640
10641
10642 {
10643 echo "cat >conf$$subs.awk <<_ACEOF" &&
10644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10645 echo "_ACEOF"
10646 } >conf$$subs.sh ||
10647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10649 ac_delim='%!_!# '
10650 for ac_last_try in false false false false false :; do
10651 . ./conf$$subs.sh ||
10652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10653
10654 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10655 if test $ac_delim_n = $ac_delim_num; then
10656 break
10657 elif $ac_last_try; then
10658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10659 else
10660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10661 fi
10662 done
10663 rm -f conf$$subs.sh
10664
10665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10666 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10667 _ACEOF
10668 sed -n '
10669 h
10670 s/^/S["/; s/!.*/"]=/
10671 p
10672 g
10673 s/^[^!]*!//
10674 :repl
10675 t repl
10676 s/'"$ac_delim"'$//
10677 t delim
10678 :nl
10679 h
10680 s/\(.\{148\}\)..*/\1/
10681 t more1
10682 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10683 p
10684 n
10685 b repl
10686 :more1
10687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10688 p
10689 g
10690 s/.\{148\}//
10691 t nl
10692 :delim
10693 h
10694 s/\(.\{148\}\)..*/\1/
10695 t more2
10696 s/["\\]/\\&/g; s/^/"/; s/$/"/
10697 p
10698 b
10699 :more2
10700 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10701 p
10702 g
10703 s/.\{148\}//
10704 t delim
10705 ' <conf$$subs.awk | sed '
10706 /^[^""]/{
10707 N
10708 s/\n//
10709 }
10710 ' >>$CONFIG_STATUS || ac_write_fail=1
10711 rm -f conf$$subs.awk
10712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10713 _ACAWK
10714 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10715 for (key in S) S_is_set[key] = 1
10716 FS = ""
10717
10718 }
10719 {
10720 line = $ 0
10721 nfields = split(line, field, "@")
10722 substed = 0
10723 len = length(field[1])
10724 for (i = 2; i < nfields; i++) {
10725 key = field[i]
10726 keylen = length(key)
10727 if (S_is_set[key]) {
10728 value = S[key]
10729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10730 len += length(value) + length(field[++i])
10731 substed = 1
10732 } else
10733 len += 1 + keylen
10734 }
10735
10736 print line
10737 }
10738
10739 _ACAWK
10740 _ACEOF
10741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10742 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10743 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10744 else
10745 cat
10746 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10747 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10748 _ACEOF
10749
10750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10752 # trailing colons and then remove the whole line if VPATH becomes empty
10753 # (actually we leave an empty line to preserve line numbers).
10754 if test "x$srcdir" = x.; then
10755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10756 h
10757 s///
10758 s/^/:/
10759 s/[ ]*$/:/
10760 s/:\$(srcdir):/:/g
10761 s/:\${srcdir}:/:/g
10762 s/:@srcdir@:/:/g
10763 s/^:*//
10764 s/:*$//
10765 x
10766 s/\(=[ ]*\).*/\1/
10767 G
10768 s/\n//
10769 s/^[^=]*=[ ]*$//
10770 }'
10771 fi
10772
10773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10774 fi # test -n "$CONFIG_FILES"
10775
10776 # Set up the scripts for CONFIG_HEADERS section.
10777 # No need to generate them if there are no CONFIG_HEADERS.
10778 # This happens for instance with `./config.status Makefile'.
10779 if test -n "$CONFIG_HEADERS"; then
10780 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10781 BEGIN {
10782 _ACEOF
10783
10784 # Transform confdefs.h into an awk script `defines.awk', embedded as
10785 # here-document in config.status, that substitutes the proper values into
10786 # config.h.in to produce config.h.
10787
10788 # Create a delimiter string that does not exist in confdefs.h, to ease
10789 # handling of long lines.
10790 ac_delim='%!_!# '
10791 for ac_last_try in false false :; do
10792 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10793 if test -z "$ac_tt"; then
10794 break
10795 elif $ac_last_try; then
10796 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10797 else
10798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10799 fi
10800 done
10801
10802 # For the awk script, D is an array of macro values keyed by name,
10803 # likewise P contains macro parameters if any. Preserve backslash
10804 # newline sequences.
10805
10806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10807 sed -n '
10808 s/.\{148\}/&'"$ac_delim"'/g
10809 t rset
10810 :rset
10811 s/^[ ]*#[ ]*define[ ][ ]*/ /
10812 t def
10813 d
10814 :def
10815 s/\\$//
10816 t bsnl
10817 s/["\\]/\\&/g
10818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10819 D["\1"]=" \3"/p
10820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10821 d
10822 :bsnl
10823 s/["\\]/\\&/g
10824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10825 D["\1"]=" \3\\\\\\n"\\/p
10826 t cont
10827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10828 t cont
10829 d
10830 :cont
10831 n
10832 s/.\{148\}/&'"$ac_delim"'/g
10833 t clear
10834 :clear
10835 s/\\$//
10836 t bsnlc
10837 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10838 d
10839 :bsnlc
10840 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10841 b cont
10842 ' <confdefs.h | sed '
10843 s/'"$ac_delim"'/"\\\
10844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10845
10846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10847 for (key in D) D_is_set[key] = 1
10848 FS = ""
10849 }
10850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10851 line = \$ 0
10852 split(line, arg, " ")
10853 if (arg[1] == "#") {
10854 defundef = arg[2]
10855 mac1 = arg[3]
10856 } else {
10857 defundef = substr(arg[1], 2)
10858 mac1 = arg[2]
10859 }
10860 split(mac1, mac2, "(") #)
10861 macro = mac2[1]
10862 prefix = substr(line, 1, index(line, defundef) - 1)
10863 if (D_is_set[macro]) {
10864 # Preserve the white space surrounding the "#".
10865 print prefix "define", macro P[macro] D[macro]
10866 next
10867 } else {
10868 # Replace #undef with comments. This is necessary, for example,
10869 # in the case of _POSIX_SOURCE, which is predefined and required
10870 # on some systems where configure will not decide to define it.
10871 if (defundef == "undef") {
10872 print "/*", prefix defundef, macro, "*/"
10873 next
10874 }
10875 }
10876 }
10877 { print }
10878 _ACAWK
10879 _ACEOF
10880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10881 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10882 fi # test -n "$CONFIG_HEADERS"
10883
10884
10885 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10886 shift
10887 for ac_tag
10888 do
10889 case $ac_tag in
10890 :[FHLC]) ac_mode=$ac_tag; continue;;
10891 esac
10892 case $ac_mode$ac_tag in
10893 :[FHL]*:*);;
10894 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10895 :[FH]-) ac_tag=-:-;;
10896 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10897 esac
10898 ac_save_IFS=$IFS
10899 IFS=:
10900 set x $ac_tag
10901 IFS=$ac_save_IFS
10902 shift
10903 ac_file=$1
10904 shift
10905
10906 case $ac_mode in
10907 :L) ac_source=$1;;
10908 :[FH])
10909 ac_file_inputs=
10910 for ac_f
10911 do
10912 case $ac_f in
10913 -) ac_f="$ac_tmp/stdin";;
10914 *) # Look for the file first in the build tree, then in the source tree
10915 # (if the path is not absolute). The absolute path cannot be DOS-style,
10916 # because $ac_f cannot contain `:'.
10917 test -f "$ac_f" ||
10918 case $ac_f in
10919 [\\/$]*) false;;
10920 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10921 esac ||
10922 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10923 esac
10924 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10925 as_fn_append ac_file_inputs " '$ac_f'"
10926 done
10927
10928 # Let's still pretend it is `configure' which instantiates (i.e., don't
10929 # use $as_me), people would be surprised to read:
10930 # /* config.h. Generated by config.status. */
10931 configure_input='Generated from '`
10932 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10933 `' by configure.'
10934 if test x"$ac_file" != x-; then
10935 configure_input="$ac_file. $configure_input"
10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10937 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10938 fi
10939 # Neutralize special characters interpreted by sed in replacement strings.
10940 case $configure_input in #(
10941 *\&* | *\|* | *\\* )
10942 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10944 *) ac_sed_conf_input=$configure_input;;
10945 esac
10946
10947 case $ac_tag in
10948 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10950 esac
10951 ;;
10952 esac
10953
10954 ac_dir=`$as_dirname -- "$ac_file" ||
10955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10956 X"$ac_file" : 'X\(//\)[^/]' \| \
10957 X"$ac_file" : 'X\(//\)$' \| \
10958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10959 printf "%s\n" X"$ac_file" |
10960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10961 s//\1/
10962 q
10963 }
10964 /^X\(\/\/\)[^/].*/{
10965 s//\1/
10966 q
10967 }
10968 /^X\(\/\/\)$/{
10969 s//\1/
10970 q
10971 }
10972 /^X\(\/\).*/{
10973 s//\1/
10974 q
10975 }
10976 s/.*/./; q'`
10977 as_dir="$ac_dir"; as_fn_mkdir_p
10978 ac_builddir=.
10979
10980 case "$ac_dir" in
10981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10982 *)
10983 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10984 # A ".." for each directory in $ac_dir_suffix.
10985 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10986 case $ac_top_builddir_sub in
10987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10989 esac ;;
10990 esac
10991 ac_abs_top_builddir=$ac_pwd
10992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10993 # for backward compatibility:
10994 ac_top_builddir=$ac_top_build_prefix
10995
10996 case $srcdir in
10997 .) # We are building in place.
10998 ac_srcdir=.
10999 ac_top_srcdir=$ac_top_builddir_sub
11000 ac_abs_top_srcdir=$ac_pwd ;;
11001 [\\/]* | ?:[\\/]* ) # Absolute name.
11002 ac_srcdir=$srcdir$ac_dir_suffix;
11003 ac_top_srcdir=$srcdir
11004 ac_abs_top_srcdir=$srcdir ;;
11005 *) # Relative name.
11006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11007 ac_top_srcdir=$ac_top_build_prefix$srcdir
11008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11009 esac
11010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11011
11012
11013 case $ac_mode in
11014 :F)
11015 #
11016 # CONFIG_FILE
11017 #
11018
11019 _ACEOF
11020
11021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11022 # If the template does not know about datarootdir, expand it.
11023 # FIXME: This hack should be removed a few years after 2.60.
11024 ac_datarootdir_hack=; ac_datarootdir_seen=
11025 ac_sed_dataroot='
11026 /datarootdir/ {
11027 p
11028 q
11029 }
11030 /@datadir@/p
11031 /@docdir@/p
11032 /@infodir@/p
11033 /@localedir@/p
11034 /@mandir@/p'
11035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11036 *datarootdir*) ac_datarootdir_seen=yes;;
11037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11039 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11040 _ACEOF
11041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11042 ac_datarootdir_hack='
11043 s&@datadir@&$datadir&g
11044 s&@docdir@&$docdir&g
11045 s&@infodir@&$infodir&g
11046 s&@localedir@&$localedir&g
11047 s&@mandir@&$mandir&g
11048 s&\\\${datarootdir}&$datarootdir&g' ;;
11049 esac
11050 _ACEOF
11051
11052 # Neutralize VPATH when `$srcdir' = `.'.
11053 # Shell code in configure.ac might set extrasub.
11054 # FIXME: do we really want to maintain this feature?
11055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11056 ac_sed_extra="$ac_vpsub
11057 $extrasub
11058 _ACEOF
11059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11060 :t
11061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11062 s|@configure_input@|$ac_sed_conf_input|;t t
11063 s&@top_builddir@&$ac_top_builddir_sub&;t t
11064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11065 s&@srcdir@&$ac_srcdir&;t t
11066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11067 s&@top_srcdir@&$ac_top_srcdir&;t t
11068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11069 s&@builddir@&$ac_builddir&;t t
11070 s&@abs_builddir@&$ac_abs_builddir&;t t
11071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11072 $ac_datarootdir_hack
11073 "
11074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11076
11077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11082 which seems to be undefined. Please make sure it is defined" >&5
11083 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11084 which seems to be undefined. Please make sure it is defined" >&2;}
11085
11086 rm -f "$ac_tmp/stdin"
11087 case $ac_file in
11088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11090 esac \
11091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11092 ;;
11093 :H)
11094 #
11095 # CONFIG_HEADER
11096 #
11097 if test x"$ac_file" != x-; then
11098 {
11099 printf "%s\n" "/* $configure_input */" >&1 \
11100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11101 } >"$ac_tmp/config.h" \
11102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11105 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11106 else
11107 rm -f "$ac_file"
11108 mv "$ac_tmp/config.h" "$ac_file" \
11109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11110 fi
11111 else
11112 printf "%s\n" "/* $configure_input */" >&1 \
11113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11114 || as_fn_error $? "could not create -" "$LINENO" 5
11115 fi
11116 ;;
11117
11118
11119 esac
11120
11121 done # for ac_tag
11122
11123
11124 as_fn_exit 0
11125 _ACEOF
11126 ac_clean_files=$ac_clean_files_save
11127
11128 test $ac_write_fail = 0 ||
11129 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11130
11131
11132 # configure is writing to config.log, and then calls config.status.
11133 # config.status does its own redirection, appending to config.log.
11134 # Unfortunately, on DOS this fails, as config.log is still kept open
11135 # by configure, so config.status won't be able to write to it; its
11136 # output is simply discarded. So we exec the FD to /dev/null,
11137 # effectively closing config.log, so it can be properly (re)opened and
11138 # appended to by config.status. When coming back to configure, we
11139 # need to make the FD available again.
11140 if test "$no_create" != yes; then
11141 ac_cs_success=:
11142 ac_config_status_args=
11143 test "$silent" = yes &&
11144 ac_config_status_args="$ac_config_status_args --quiet"
11145 exec 5>/dev/null
11146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11147 exec 5>>config.log
11148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11149 # would make configure fail if this is the last instruction.
11150 $ac_cs_success || as_fn_exit 1
11151 fi
11152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11154 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11155 fi
11156
11157 echo makedefc
11158 cat makedefc
11159
11160 echo add-defs1 $use
11161 CC=$CC ./add-defs1 $use
11162
11163 else
11164 echo "Unable to guess machine type"
11165 echo use configure --enable-machine=XXX, for XXX such that h/XXX.defs exists, ie in h/*.defs
11166 fi
11167