Debian Codegraph @

configure

raw symbols ◀ ▶
Source reconstructed at patch state 4 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 -std=gnu17 \
4551 -Wall \
4552 -Wno-builtin-requires-header -Wno-empty-body -Wno-self-assign \
4553 -Wno-unused-but-set-variable
4554
4555 add_args_to_ldflags -no-pie # -Wl,-z,lazy
4556
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline semantics" >&5
4558 printf %s "checking for inline semantics... " >&6; }
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561
4562 inline int foo(int i) {return i;}
4563
4564 int
4565 bar(int i) {return foo(i);}
4566
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"
4569 then :
4570 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: new" >&5
4572 printf "%s\n" "new" >&6; }
4573 else
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576
4577 extern inline int foo(int i) {return i;}
4578
4579 int
4580 bar(int i) {return foo(i);}
4581
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"
4584 then :
4585 if `nm conftest.o |grep foo |awk '{if (NF==3) exit(-1)}'` ; then
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: old" >&5
4587 printf "%s\n" "old" >&6; }
4588
4589 printf "%s\n" "#define OLD_INLINE 1" >>confdefs.h
4590
4591 else
4592 as_fn_error $? "need working inline semantics" "$LINENO" 5
4593 fi
4594 else $as_nop
4595 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4596 fi
4597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4598 fi
4599 else $as_nop
4600 as_fn_error $? "need to probe inline semantics" "$LINENO" 5
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang" >&5
4605 printf %s "checking for clang... " >&6; }
4606 if test "$cross_compiling" = yes
4607 then :
4608 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error $? "cannot run test program while cross compiling
4611 See \`config.log' for more details" "$LINENO" 5; }
4612 else $as_nop
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615
4616 #ifdef __clang__
4617 #define RET 0
4618 #else
4619 #define RET 1
4620 #endif
4621
4622 int
4623 main (void)
4624 {
4625
4626 return RET;
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_run "$LINENO"
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 printf "%s\n" "yes" >&6; }
4636 clang="yes"
4637 remove_arg_from_ldflags -pie
4638
4639 printf "%s\n" "#define CLANG 1" >>confdefs.h
4640
4641 else $as_nop
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 printf "%s\n" "no" >&6; }
4644 fi
4645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4646 conftest.$ac_objext conftest.beam conftest.$ac_ext
4647 fi
4648
4649
4650 case $use in
4651 *mingw*)
4652 assert_arg_to_cflags -fno-zero-initialized-in-bss
4653 assert_arg_to_cflags -mms-bitfields
4654 for i in makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp h/gclincl.h; do
4655 cat $i.in | sed 's,^\r\n$,\r\n,g' >tmp && mv tmp $i.in;
4656 done
4657 OLD_LDFLAGS=$LDFLAGS
4658 assert_arg_to_ldflags -pg
4659 GPL_FLAG="-pg"
4660 LDFLAGS=$OLD_LDFLAGS;;
4661 *gnuwin*)
4662 assert_arg_to_cflags -fno-zero-initialized-in-bss
4663 assert_arg_to_cflags -mms-bitfields
4664 assert_arg_to_ldflags -Wl,--stack,8000000
4665 OLD_LDFLAGS=$LDFLAGS
4666 assert_arg_to_ldflags -pg
4667 GPL_FLAG="-pg"
4668 LDFLAGS=$OLD_LDFLAGS;;
4669 loongarch64-linux)
4670 add_arg_to_cflags -mno-relax
4671 add_arg_to_cflags -Wa,-mno-relax;;
4672 386-macosx)
4673 # assert_arg_to_cflags -Wno-error=implicit-function-declaration
4674 add_arg_to_cflags -Wno-incomplete-setjmp-declaration
4675 assert_arg_to_ldflags -Wl,-no_pie
4676 if test "$build_cpu" = "x86_64" ; then
4677 assert_arg_to_cflags -m64
4678 assert_arg_to_ldflags -m64
4679 assert_arg_to_ldflags -Wl,-headerpad,72
4680 else
4681 assert_arg_to_cflags -m32
4682 assert_arg_to_ldflags -m32
4683 assert_arg_to_ldflags -Wl,-headerpad,56
4684 fi;;
4685 FreeBSD) assert_arg_to_ldflags -Z;;
4686 esac
4687
4688 if test "$enable_static" = "yes" ; then
4689 assert_arg_to_ldflags -static
4690 assert_arg_to_ldflags -Wl,-zmuldefs
4691
4692 printf "%s\n" "#define STATIC_LINKING 1" >>confdefs.h
4693
4694 fi
4695
4696 TO3FLAGS=""
4697 TO2FLAGS=""
4698
4699 case "$use" in
4700 *mingw*)
4701 TFPFLAG="";;
4702 m68k*)#FIXME gcc 4.x bug workaround
4703 TFPFLAG="";;
4704 *)
4705 TFPFLAG="-fomit-frame-pointer";;
4706 esac
4707
4708 for ac_prog in gawk nawk awk
4709 do
4710 # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 printf %s "checking for $ac_word... " >&6; }
4714 if test ${ac_cv_prog_AWK+y}
4715 then :
4716 printf %s "(cached) " >&6
4717 else $as_nop
4718 if test -n "$AWK"; then
4719 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 case $as_dir in #(((
4726 '') as_dir=./ ;;
4727 */) ;;
4728 *) as_dir=$as_dir/ ;;
4729 esac
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4732 ac_cv_prog_AWK="$ac_prog"
4733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736 done
4737 done
4738 IFS=$as_save_IFS
4739
4740 fi
4741 fi
4742 AWK=$ac_cv_prog_AWK
4743 if test -n "$AWK"; then
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4745 printf "%s\n" "$AWK" >&6; }
4746 else
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 printf "%s\n" "no" >&6; }
4749 fi
4750
4751
4752 test -n "$AWK" && break
4753 done
4754
4755 GCL_CC_ARGS=`echo $CC | ${AWK} '{$1="";print}'`
4756 GCL_CC="`basename $CC` $GCL_CC_ARGS"
4757 if echo $GCL_CC |grep gcc |grep -q win; then
4758 GCL_CC=gcc
4759 fi
4760
4761
4762 # Check whether --enable-gprof was given.
4763 if test ${enable_gprof+y}
4764 then :
4765 enableval=$enable_gprof; if test "$enableval" = "yes" ; then
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking working gprof" >&5
4767 printf %s "checking working gprof... " >&6; }
4768 case $use in
4769 powerpc*) if test "$host_cpu" = "powerpc64le" ; then enableval="no"; fi;;
4770 s390*) enableval="no";;#mcount smashes float args in make_shortfloat 20180313
4771 sh4*) enableval="no";;
4772 m68k*) enableval="no";;
4773 ia64*) enableval="no";;
4774 hppa*) enableval="no";;
4775 # 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
4776 aarch64*) enableval="no";;#unreproducible buildd bug 20170824
4777 *gnu) enableval="no";;
4778 esac
4779 GP_FLAG=""
4780 if test "$enableval" != "yes" ; then
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4782 printf "%s\n" "disabled" >&6; }
4783 else
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4785 printf "%s\n" "ok" >&6; }
4786 OLD_CFLAGS=$CFLAGS # Do not run configure tests with -pg
4787 assert_arg_to_cflags -pg
4788 GP_FLAG="-pg"
4789 CFLAGS=$OLD_CFLAGS
4790 TFPFLAG=""
4791
4792 printf "%s\n" "#define GCL_GPROF 1" >>confdefs.h
4793
4794 fi
4795 fi
4796 fi
4797
4798
4799 if test "$enable_debug" = "yes" ; then
4800 assert_arg_to_cflags -g
4801 # for subconfigurations
4802 CFLAGS="$CFLAGS -g"
4803 else
4804 TO3FLAGS="-O3 $TFPFLAG"
4805 TO2FLAGS="-O"
4806 fi
4807
4808 # gcc on ppc cannot compile our new_init.c with full opts --CM
4809 TONIFLAGS=""
4810 case $use in
4811 powerpc*macosx) assert_arg_to_cflags -mlongcall;;
4812 *linux)
4813 case $use in
4814 alpha*)
4815 assert_arg_to_cflags -mieee
4816 # if test "$enable_debug" != "yes" ; then TO3FLAGS="-O0" ; fi #FIXME needed asof gcc 4.8.1
4817 ;;
4818 aarch64*)
4819 TLIBS="$TLIBS -lgcc_s";;
4820 hppa*)
4821 assert_arg_to_cflags -mlong-calls
4822 TLIBS="$TLIBS -lgcc_s" # workaround hppa __moddi3 local func symbols with default linker flags
4823 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O2" ; TFPFLAG=""; fi #FIXME needed asof gcc 4.8.1
4824 ;;
4825 mips*)
4826 case $canonical in
4827 mips64*linux*)
4828 # assert_arg_to_cflags -mxgot
4829 assert_arg_to_ldflags -Wl,-z,now;;
4830 esac
4831 ;;
4832 ia64*)
4833 if test "$enable_debug" != "yes" ; then TO3FLAGS="-O" ; fi #FIXME needed asof gcc 4.8.1
4834 ;;
4835 arm*)
4836
4837 printf "%s\n" "#define SET_STACK_POINTER \"mov %%sp,%0\\n\\t\"" >>confdefs.h
4838
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set stack pointer" >&5
4840 printf %s "checking how to set stack pointer... " >&6; }
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
4842 printf "%s\n" "done" >&6; }
4843 assert_arg_to_cflags -fdollars-in-identifiers
4844 assert_arg_to_cflags -g #?
4845 ;;
4846 powerpc*)
4847 assert_arg_to_cflags -mlongcall
4848 if test "$host_cpu" != "powerpc64le" ; then assert_arg_to_cflags -mno-pltseq; fi
4849 ;;
4850 esac;;
4851 esac
4852 if test "$enable_pic" = "yes" ; then
4853 assert_arg_to_cflags -fPIC
4854 fi
4855
4856
4857 FDEBUG=`echo $CFLAGS | tr ' ' '\012' |grep "^\-g$"|tr '\012' ' '`
4858 #CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-g$"`
4859 FOMITF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-fomit-frame-pointer$"|tr '\012' ' '`
4860 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-fomit-frame-pointer$"|tr '\012' ' '`
4861 FOOPT3=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O3$"|tr '\012' ' '`
4862 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O3$"|tr '\012' ' '`
4863 FOOPT2=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O2$"|tr '\012' ' '`
4864 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O2$"|tr '\012' ' '`
4865 FOOPT1=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O1$"|tr '\012' ' '`
4866 TMPF=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O$"|tr '\012' ' '`
4867 FOOPT1="$FOOPT1$TMPF"
4868 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O1$"|grep -v "^\-O$"|tr '\012' ' '`
4869 FOOPT0=`echo $CFLAGS | tr ' ' '\012' |grep "^\-O0$"|tr '\012' ' '`
4870 CFLAGS=`echo $CFLAGS | tr ' ' '\012' |grep -v "^\-O0$"|tr '\012' ' '`
4871
4872 if test "$FOOPT0" != "" ; then
4873 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4874 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[123 ],-O0 ,g' | sed 's,\-O$,-O0 ,g'`
4875 else
4876 if test "$FOOPT1" != "" ; then
4877 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-O[2-3],-O1,g'`
4878 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-O[2-3],-O1,g'`
4879 else
4880 if test "$FOOPT2" != "" ; then
4881 TO3FLAGS=`echo "$TO3FLAGS" | sed 's,\-O3,-O2,g'`
4882 TO2FLAGS=`echo "$TO2FLAGS" | sed 's,\-O3,-O2,g'`
4883 fi
4884 fi
4885 fi
4886
4887 if test "$FDEBUG" != "" ; then
4888 TO3FLAGS=`echo $TO3FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4889 TO2FLAGS=`echo $TO2FLAGS | sed 's,\-fomit-frame-pointer,,g'`
4890 fi
4891
4892 if test "$FOMITF" != "" ; then
4893 TO3FLAGS="$TO3FLAGS $FOMITF"
4894 fi
4895
4896 # Step 1: set the variable "system" to hold the name and version number
4897 # for the system. This can usually be done via the "uname" command, but
4898 # there are a few systems, like Next, where this doesn't work.
4899
4900 for ac_prog in makeinfo
4901 do
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 printf %s "checking for $ac_word... " >&6; }
4906 if test ${ac_cv_prog_MAKEINFO+y}
4907 then :
4908 printf %s "(cached) " >&6
4909 else $as_nop
4910 if test -n "$MAKEINFO"; then
4911 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 case $as_dir in #(((
4918 '') as_dir=./ ;;
4919 */) ;;
4920 *) as_dir=$as_dir/ ;;
4921 esac
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_MAKEINFO="$ac_prog"
4925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 MAKEINFO=$ac_cv_prog_MAKEINFO
4935 if test -n "$MAKEINFO"; then
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4937 printf "%s\n" "$MAKEINFO" >&6; }
4938 else
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 printf "%s\n" "no" >&6; }
4941 fi
4942
4943
4944 test -n "$MAKEINFO" && break
4945 done
4946 test -n "$MAKEINFO" || MAKEINFO=""false""
4947
4948
4949
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version (for dynamic loading)" >&5
4951 printf %s "checking system version (for dynamic loading)... " >&6; }
4952 if machine=`uname -m` ; then true; else machine=unknown ; fi
4953
4954 if test -f /usr/lib/NextStep/software_version; then
4955 system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
4956 else
4957 system=`uname -s`-`uname -r`
4958 if test "$?" -ne 0 ; then
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown (cannot find uname command)" >&5
4960 printf "%s\n" "unknown (cannot find uname command)" >&6; }
4961 system=unknown
4962 else
4963 # Special check for weird MP-RAS system (uname returns weird
4964 # results, and the version is kept in special file).
4965
4966 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4967 system="MP-RAS-`${AWK} '{print $3}' '/etc/.relid'`"
4968 fi
4969 if test "`uname -s`" = "AIX" ; then
4970 system=AIX-`uname -v`.`uname -r`
4971 fi
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $system" >&5
4973 printf "%s\n" "$system" >&6; }
4974 fi
4975 fi
4976
4977 case $use in
4978 *macosx)
4979 ac_header= ac_cache=
4980 for ac_item in $ac_header_c_list
4981 do
4982 if test $ac_cache; then
4983 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4984 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4985 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4986 fi
4987 ac_header= ac_cache=
4988 elif test $ac_header; then
4989 ac_cache=$ac_item
4990 else
4991 ac_header=$ac_item
4992 fi
4993 done
4994
4995
4996
4997
4998
4999
5000
5001
5002 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5003 then :
5004
5005 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5006
5007 fi
5008 for ac_header in malloc/malloc.h
5009 do :
5010 ac_fn_c_check_header_compile "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
5011 if test "x$ac_cv_header_malloc_malloc_h" = xyes
5012 then :
5013 printf "%s\n" "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
5014
5015 else $as_nop
5016 as_fn_error $? "need malloc.h on macosx" "$LINENO" 5
5017 fi
5018
5019 done
5020 ac_fn_c_check_member "$LINENO" "struct _malloc_zone_t" "memalign" "ac_cv_member_struct__malloc_zone_t_memalign" "
5021 #include <malloc/malloc.h>
5022
5023 "
5024 if test "x$ac_cv_member_struct__malloc_zone_t_memalign" = xyes
5025 then :
5026
5027 printf "%s\n" "#define HAVE_MALLOC_ZONE_MEMALIGN 1" >>confdefs.h
5028
5029 fi
5030
5031
5032 ;;
5033 esac
5034
5035 for ac_header in setjmp.h
5036 do :
5037 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
5038 if test "x$ac_cv_header_setjmp_h" = xyes
5039 then :
5040 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof jmp_buf" >&5
5042 printf %s "checking sizeof jmp_buf... " >&6; }
5043 if test "$cross_compiling" = yes
5044 then :
5045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5046 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5047 as_fn_error $? "cannot run test program while cross compiling
5048 See \`config.log' for more details" "$LINENO" 5; }
5049 else $as_nop
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052
5053 #include <stdio.h>
5054 #include <setjmp.h>
5055
5056 int
5057 main (void)
5058 {
5059
5060 FILE *fp=fopen("conftest1","w");
5061 fprintf(fp,"%lu\n",sizeof(jmp_buf));
5062 fclose(fp);
5063
5064 ;
5065 return 0;
5066 }
5067 _ACEOF
5068 if ac_fn_c_try_run "$LINENO"
5069 then :
5070 sizeof_jmp_buf=`cat conftest1`
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_jmp_buf" >&5
5072 printf "%s\n" "$sizeof_jmp_buf" >&6; }
5073
5074 printf "%s\n" "#define SIZEOF_JMP_BUF $sizeof_jmp_buf" >>confdefs.h
5075
5076 else $as_nop
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 printf "%s\n" "no" >&6; }
5079 fi
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5081 conftest.$ac_objext conftest.beam conftest.$ac_ext
5082 fi
5083
5084 fi
5085
5086 done
5087
5088 # sysconf
5089 for ac_header in unistd.h
5090 do :
5091 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_unistd_h" = xyes
5093 then :
5094 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf in -lc" >&5
5096 printf %s "checking for sysconf in -lc... " >&6; }
5097 if test ${ac_cv_lib_c_sysconf+y}
5098 then :
5099 printf %s "(cached) " >&6
5100 else $as_nop
5101 ac_check_lib_save_LIBS=$LIBS
5102 LIBS="-lc $LIBS"
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105
5106 /* Override any GCC internal prototype to avoid an error.
5107 Use char because int might match the return type of a GCC
5108 builtin and then its argument prototype would still apply. */
5109 char sysconf ();
5110 int
5111 main (void)
5112 {
5113 return sysconf ();
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_c_try_link "$LINENO"
5119 then :
5120 ac_cv_lib_c_sysconf=yes
5121 else $as_nop
5122 ac_cv_lib_c_sysconf=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5125 conftest$ac_exeext conftest.$ac_ext
5126 LIBS=$ac_check_lib_save_LIBS
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sysconf" >&5
5129 printf "%s\n" "$ac_cv_lib_c_sysconf" >&6; }
5130 if test "x$ac_cv_lib_c_sysconf" = xyes
5131 then :
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SC_CLK_TCK" >&5
5133 printf %s "checking _SC_CLK_TCK... " >&6; }
5134 hz=0
5135 if test "$cross_compiling" = yes
5136 then :
5137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5139 as_fn_error $? "cannot run test program while cross compiling
5140 See \`config.log' for more details" "$LINENO" 5; }
5141 else $as_nop
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144
5145 #include <unistd.h>
5146 #include <stdio.h>
5147
5148 int
5149 main (void)
5150 {
5151
5152 FILE *fp=fopen("conftest1","w");
5153 fprintf(fp,"%lu\n",sysconf(_SC_CLK_TCK));
5154 fclose(fp);
5155
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 if ac_fn_c_try_run "$LINENO"
5161 then :
5162
5163 fi
5164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5165 conftest.$ac_objext conftest.beam conftest.$ac_ext
5166 fi
5167
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hz" >&5
5169 printf "%s\n" "$hz" >&6; }
5170 fi
5171
5172 fi
5173
5174 done
5175
5176
5177 rm -f makedefsafter
5178
5179 # Check whether --enable-dynsysgmp was given.
5180 if test ${enable_dynsysgmp+y}
5181 then :
5182 enableval=$enable_dynsysgmp;
5183 fi
5184
5185
5186 if test "$enable_dynsysgmp" != "no" ; then
5187 for ac_header in gmp.h
5188 do :
5189 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
5190 if test "x$ac_cv_header_gmp_h" = xyes
5191 then :
5192 printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
5194 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
5195 if test ${ac_cv_lib_gmp___gmpz_init+y}
5196 then :
5197 printf %s "(cached) " >&6
5198 else $as_nop
5199 ac_check_lib_save_LIBS=$LIBS
5200 LIBS="-lgmp $LIBS"
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203
5204 /* Override any GCC internal prototype to avoid an error.
5205 Use char because int might match the return type of a GCC
5206 builtin and then its argument prototype would still apply. */
5207 char __gmpz_init ();
5208 int
5209 main (void)
5210 {
5211 return __gmpz_init ();
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_c_try_link "$LINENO"
5217 then :
5218 ac_cv_lib_gmp___gmpz_init=yes
5219 else $as_nop
5220 ac_cv_lib_gmp___gmpz_init=no
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5223 conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5225 fi
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
5227 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
5228 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
5229 then :
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external gmp version" >&5
5231 printf %s "checking for external gmp version... " >&6; }
5232 if test "$cross_compiling" = yes
5233 then :
5234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5236 as_fn_error $? "cannot run test program while cross compiling
5237 See \`config.log' for more details" "$LINENO" 5; }
5238 else $as_nop
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241
5242 #include <gmp.h>
5243
5244 int
5245 main (void)
5246 {
5247
5248 #if __GNU_MP_VERSION > 3
5249 return 0;
5250 #else
5251 return -1;
5252 #endif
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_run "$LINENO"
5259 then :
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: good" >&5
5261 printf "%s\n" "good" >&6; }
5262 TLIBS="$TLIBS -lgmp"
5263 echo "#include \"gmp.h\"" >foo.c
5264 echo "int main() {return 0;}" >>foo.c
5265 MP_INCLUDE=`cpp foo.c | $AWK '/(\/|\\\\)gmp.h/ {if (!i) print $3;i=1}' | tr -d '"'`
5266 rm -f foo.c
5267 fi
5268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5269 conftest.$ac_objext conftest.beam conftest.$ac_ext
5270 fi
5271
5272 fi
5273
5274 fi
5275
5276 done
5277
5278 if test "$MP_INCLUDE" = "" ; then
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot use dynamic gmp lib" >&5
5280 printf "%s\n" "Cannot use dynamic gmp lib" >&6; }
5281 fi
5282
5283 fi
5284
5285
5286 if test "$MP_INCLUDE" = "" ; then
5287
5288 GMPDIR=gmp4
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking doing configure in gmp directory" >&5
5290 printf %s "checking doing configure in gmp directory... " >&6; }
5291 echo
5292 echo "#"
5293 echo "#"
5294 echo "# -------------------"
5295 echo "# Subconfigure of GMP"
5296 echo "#"
5297 echo "#"
5298
5299 if test "$use_common_binary" = "yes"; then
5300 cd $GMPDIR && ./configure --build=$host && cd ..
5301 else
5302 cd $GMPDIR && ./configure --host=$host --build=$build && cd ..
5303 fi
5304 #MY_SUBDIRS="$MY_SUBDIRS $GMPDIR"
5305
5306 echo "#"
5307 echo "#"
5308 echo "#"
5309 echo "# Subconfigure of GMP done"
5310 echo "# ------------------------"
5311 echo "#"
5312
5313 if test "$MP_INCLUDE" = "" ; then
5314 cp $GMPDIR/gmp.h h/gmp.h
5315 MP_INCLUDE=h/gmp.h
5316 MPFILES=gmp_all
5317 fi
5318 fi
5319
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for leading underscore in object symbols" >&5
5321 printf %s "checking for leading underscore in object symbols... " >&6; }
5322 cat>foo.c <<EOFF
5323 #include <math.h>
5324 #include <stdio.h>
5325 int main() {FILE *f;double d=0.0;getc(f);d=cos(d);return 0;}
5326 EOFF
5327 $CC -c foo.c -o foo.o
5328 if nm foo.o |grep " U " | grep "_cos" >/dev/null || nm foo.o |grep " U " | grep " _getc" >/dev/null ; then
5329 LEADING_UNDERSCORE=1
5330
5331 printf "%s\n" "#define LEADING_UNDERSCORE 1" >>confdefs.h
5332
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5334 printf "%s\n" "\"yes\"" >&6; }
5335 else
5336 LEADING_UNDERSCORE=""
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5338 printf "%s\n" "\"no\"" >&6; }
5339 fi
5340
5341
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for GNU ld option -Map\"" >&5
5343 printf %s "checking \"for GNU ld option -Map\"... " >&6; }
5344 touch map
5345 $CC -o foo -Wl,-Map map foo.o >/dev/null 2>&1
5346 if test `cat map | wc -l` != "0" ; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
5348 printf "%s\n" "\"yes\"" >&6; }
5349
5350 printf "%s\n" "#define HAVE_GNU_LD 1" >>confdefs.h
5351
5352 GNU_LD=1
5353 else
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
5355 printf "%s\n" "\"no\"" >&6; }
5356 GNU_LD=
5357 fi
5358 rm -f foo.c foo.o foo map
5359
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for size of gmp limbs" >&5
5361 printf %s "checking for size of gmp limbs... " >&6; }
5362 if test "$cross_compiling" = yes
5363 then :
5364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5365 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5366 as_fn_error $? "cannot run test program while cross compiling
5367 See \`config.log' for more details" "$LINENO" 5; }
5368 else $as_nop
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371
5372 #include <stdio.h>
5373 #include "$MP_INCLUDE"
5374
5375 int
5376 main (void)
5377 {
5378
5379 FILE *fp=fopen("conftest1","w");
5380 fprintf(fp,"%u",sizeof(mp_limb_t));
5381 fclose(fp);
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_run "$LINENO"
5388 then :
5389 mpsize=`cat conftest1`
5390 else $as_nop
5391 as_fn_error $? "Cannot determine mpsize" "$LINENO" 5
5392 fi
5393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5394 conftest.$ac_objext conftest.beam conftest.$ac_ext
5395 fi
5396
5397
5398 printf "%s\n" "#define MP_LIMB_BYTES $mpsize" >>confdefs.h
5399
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpsize" >&5
5401 printf "%s\n" "$mpsize" >&6; }
5402
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _SHORT_LIMB" >&5
5404 printf %s "checking _SHORT_LIMB... " >&6; }
5405 if test "$cross_compiling" = yes
5406 then :
5407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5409 as_fn_error $? "cannot run test program while cross compiling
5410 See \`config.log' for more details" "$LINENO" 5; }
5411 else $as_nop
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 #include <stdio.h>
5416 #include "$MP_INCLUDE"
5417
5418 int
5419 main (void)
5420 {
5421
5422 #ifdef _SHORT_LIMB
5423 return 0;
5424 #else
5425 return 1;
5426 #endif
5427
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 if ac_fn_c_try_run "$LINENO"
5433 then :
5434
5435 printf "%s\n" "#define __SHORT_LIMB 1" >>confdefs.h
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5437 printf "%s\n" "yes" >&6; }
5438 else $as_nop
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 printf "%s\n" "no" >&6; }
5441 fi
5442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5443 conftest.$ac_objext conftest.beam conftest.$ac_ext
5444 fi
5445
5446
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking _LONG_LONG_LIMB" >&5
5448 printf %s "checking _LONG_LONG_LIMB... " >&6; }
5449 if test "$cross_compiling" = yes
5450 then :
5451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5453 as_fn_error $? "cannot run test program while cross compiling
5454 See \`config.log' for more details" "$LINENO" 5; }
5455 else $as_nop
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458
5459 #include <stdio.h>
5460 #include "$MP_INCLUDE"
5461
5462 int
5463 main (void)
5464 {
5465
5466 #ifdef _LONG_LONG_LIMB
5467 return 0;
5468 #else
5469 return 1;
5470 #endif
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_run "$LINENO"
5477 then :
5478
5479 printf "%s\n" "#define __LONG_LONG_LIMB 1" >>confdefs.h
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 printf "%s\n" "yes" >&6; }
5482 else $as_nop
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 printf "%s\n" "no" >&6; }
5485 fi
5486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5487 conftest.$ac_objext conftest.beam conftest.$ac_ext
5488 fi
5489
5490
5491 GMP=1
5492
5493 printf "%s\n" "#define GMP 1" >>confdefs.h
5494
5495
5496
5497 echo > makedefsafter
5498 echo "MPFILES=$MPFILES" >> makedefsafter
5499 echo "PATCHED_SYMBOLS=$PATCHED_SYMBOLS" >> makedefsafter
5500 echo >> makedefsafter
5501
5502
5503
5504 #
5505 # X windows
5506 #
5507
5508 if test "$enable_xgcl" = "yes" ; then
5509
5510
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5512 printf %s "checking for X... " >&6; }
5513
5514
5515 # Check whether --with-x was given.
5516 if test ${with_x+y}
5517 then :
5518 withval=$with_x;
5519 fi
5520
5521 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5522 if test "x$with_x" = xno; then
5523 # The user explicitly disabled X.
5524 have_x=disabled
5525 else
5526 case $x_includes,$x_libraries in #(
5527 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5528 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else $as_nop
5532 # One or both of the vars are not set, and there is no cached value.
5533 ac_x_includes=no
5534 ac_x_libraries=no
5535 # Do we need to do anything special at all?
5536 ac_save_LIBS=$LIBS
5537 LIBS="-lX11 $LIBS"
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <X11/Xlib.h>
5541 int
5542 main (void)
5543 {
5544 XrmInitialize ()
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_link "$LINENO"
5550 then :
5551 # We can compile and link X programs with no special options.
5552 ac_x_includes=
5553 ac_x_libraries=
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5556 conftest$ac_exeext conftest.$ac_ext
5557 LIBS="$ac_save_LIBS"
5558 # If that didn't work, only try xmkmf and file system searches
5559 # for native compilation.
5560 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
5561 then :
5562 rm -f -r conftest.dir
5563 if mkdir conftest.dir; then
5564 cd conftest.dir
5565 cat >Imakefile <<'_ACEOF'
5566 incroot:
5567 @echo incroot='${INCROOT}'
5568 usrlibdir:
5569 @echo usrlibdir='${USRLIBDIR}'
5570 libdir:
5571 @echo libdir='${LIBDIR}'
5572 _ACEOF
5573 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5574 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5575 for ac_var in incroot usrlibdir libdir; do
5576 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5577 done
5578 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5579 for ac_extension in a so sl dylib la dll; do
5580 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5581 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5582 ac_im_usrlibdir=$ac_im_libdir; break
5583 fi
5584 done
5585 # Screen out bogus values from the imake configuration. They are
5586 # bogus both because they are the default anyway, and because
5587 # using them would break gcc on systems where it needs fixed includes.
5588 case $ac_im_incroot in
5589 /usr/include) ac_x_includes= ;;
5590 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5591 esac
5592 case $ac_im_usrlibdir in
5593 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5594 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5595 esac
5596 fi
5597 cd ..
5598 rm -f -r conftest.dir
5599 fi
5600
5601 # Standard set of common directories for X headers.
5602 # Check X11 before X11Rn because it is often a symlink to the current release.
5603 ac_x_header_dirs='
5604 /usr/X11/include
5605 /usr/X11R7/include
5606 /usr/X11R6/include
5607 /usr/X11R5/include
5608 /usr/X11R4/include
5609
5610 /usr/include/X11
5611 /usr/include/X11R7
5612 /usr/include/X11R6
5613 /usr/include/X11R5
5614 /usr/include/X11R4
5615
5616 /usr/local/X11/include
5617 /usr/local/X11R7/include
5618 /usr/local/X11R6/include
5619 /usr/local/X11R5/include
5620 /usr/local/X11R4/include
5621
5622 /usr/local/include/X11
5623 /usr/local/include/X11R7
5624 /usr/local/include/X11R6
5625 /usr/local/include/X11R5
5626 /usr/local/include/X11R4
5627
5628 /opt/X11/include
5629
5630 /usr/X386/include
5631 /usr/x386/include
5632 /usr/XFree86/include/X11
5633
5634 /usr/include
5635 /usr/local/include
5636 /usr/unsupported/include
5637 /usr/athena/include
5638 /usr/local/x11r5/include
5639 /usr/lpp/Xamples/include
5640
5641 /usr/openwin/include
5642 /usr/openwin/share/include'
5643
5644 if test "$ac_x_includes" = no; then
5645 # Guess where to find include files, by looking for Xlib.h.
5646 # First, try using that file with no special directory specified.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 #include <X11/Xlib.h>
5650 _ACEOF
5651 if ac_fn_c_try_cpp "$LINENO"
5652 then :
5653 # We can compile using X headers with no special include directory.
5654 ac_x_includes=
5655 else $as_nop
5656 for ac_dir in $ac_x_header_dirs; do
5657 if test -r "$ac_dir/X11/Xlib.h"; then
5658 ac_x_includes=$ac_dir
5659 break
5660 fi
5661 done
5662 fi
5663 rm -f conftest.err conftest.i conftest.$ac_ext
5664 fi # $ac_x_includes = no
5665
5666 if test "$ac_x_libraries" = no; then
5667 # Check for the libraries.
5668 # See if we find them without any special options.
5669 # Don't add to $LIBS permanently.
5670 ac_save_LIBS=$LIBS
5671 LIBS="-lX11 $LIBS"
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <X11/Xlib.h>
5675 int
5676 main (void)
5677 {
5678 XrmInitialize ()
5679 ;
5680 return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_link "$LINENO"
5684 then :
5685 LIBS=$ac_save_LIBS
5686 # We can link X programs with no special library path.
5687 ac_x_libraries=
5688 else $as_nop
5689 LIBS=$ac_save_LIBS
5690 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5691 do
5692 # Don't even attempt the hair of trying to link an X program!
5693 for ac_extension in a so sl dylib la dll; do
5694 if test -r "$ac_dir/libX11.$ac_extension"; then
5695 ac_x_libraries=$ac_dir
5696 break 2
5697 fi
5698 done
5699 done
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5702 conftest$ac_exeext conftest.$ac_ext
5703 fi # $ac_x_libraries = no
5704
5705 fi
5706 # Record the results.
5707 case $ac_x_includes,$ac_x_libraries in #(
5708 no,* | *,no | *\'*) :
5709 # Didn't find X, or a directory has "'" in its name.
5710 ac_cv_have_x="have_x=no" ;; #(
5711 *) :
5712 # Record where we found X for the cache.
5713 ac_cv_have_x="have_x=yes\
5714 ac_x_includes='$ac_x_includes'\
5715 ac_x_libraries='$ac_x_libraries'" ;;
5716 esac
5717 fi
5718 ;; #(
5719 *) have_x=yes;;
5720 esac
5721 eval "$ac_cv_have_x"
5722 fi # $with_x != no
5723
5724 if test "$have_x" != yes; then
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5726 printf "%s\n" "$have_x" >&6; }
5727 no_x=yes
5728 else
5729 # If each of the values was on the command line, it overrides each guess.
5730 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5731 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5732 # Update the cache value to reflect the command line values.
5733 ac_cv_have_x="have_x=yes\
5734 ac_x_includes='$x_includes'\
5735 ac_x_libraries='$x_libraries'"
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5737 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
5738 fi
5739
5740
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5
5742 printf %s "checking for main in -lX11... " >&6; }
5743 if test ${ac_cv_lib_X11_main+y}
5744 then :
5745 printf %s "(cached) " >&6
5746 else $as_nop
5747 ac_check_lib_save_LIBS=$LIBS
5748 LIBS="-lX11 $LIBS"
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751
5752
5753 int
5754 main (void)
5755 {
5756 return main ();
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_link "$LINENO"
5762 then :
5763 ac_cv_lib_X11_main=yes
5764 else $as_nop
5765 ac_cv_lib_X11_main=no
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5768 conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5
5772 printf "%s\n" "$ac_cv_lib_X11_main" >&6; }
5773 if test "x$ac_cv_lib_X11_main" = xyes
5774 then :
5775 X_LIBS="$X_LIBS -lX11"
5776 printf "%s\n" "#define HAVE_XGCL 1" >>confdefs.h
5777
5778 else $as_nop
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing x libraries -- cannot compile xgcl" >&5
5780 printf "%s\n" "missing x libraries -- cannot compile xgcl" >&6; }
5781 fi
5782
5783
5784 fi
5785
5786
5787
5788
5789
5790 #
5791 # Dynamic loading
5792 #
5793
5794 if test "$enable_dlopen" = "yes" ; then
5795
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5797 printf %s "checking for dlopen in -ldl... " >&6; }
5798 if test ${ac_cv_lib_dl_dlopen+y}
5799 then :
5800 printf %s "(cached) " >&6
5801 else $as_nop
5802 ac_check_lib_save_LIBS=$LIBS
5803 LIBS="-ldl $LIBS"
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806
5807 /* Override any GCC internal prototype to avoid an error.
5808 Use char because int might match the return type of a GCC
5809 builtin and then its argument prototype would still apply. */
5810 char dlopen ();
5811 int
5812 main (void)
5813 {
5814 return dlopen ();
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 if ac_fn_c_try_link "$LINENO"
5820 then :
5821 ac_cv_lib_dl_dlopen=yes
5822 else $as_nop
5823 ac_cv_lib_dl_dlopen=no
5824 fi
5825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5826 conftest$ac_exeext conftest.$ac_ext
5827 LIBS=$ac_check_lib_save_LIBS
5828 fi
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5830 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
5831 if test "x$ac_cv_lib_dl_dlopen" = xyes
5832 then :
5833 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
5834
5835 LIBS="-ldl $LIBS"
5836
5837 else $as_nop
5838 as_fn_error $? "Cannot find dlopen" "$LINENO" 5
5839 fi
5840
5841
5842 TLIBS="$TLIBS -ldl -rdynamic"
5843 assert_arg_to_cflags -fPIC
5844
5845 printf "%s\n" "#define USE_DLOPEN 1" >>confdefs.h
5846
5847
5848 fi
5849
5850 if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
5851 for ac_header in bfd.h
5852 do :
5853 ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
5854 if test "x$ac_cv_header_bfd_h" = xyes
5855 then :
5856 printf "%s\n" "#define HAVE_BFD_H 1" >>confdefs.h
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
5858 printf %s "checking for bfd_init in -lbfd... " >&6; }
5859 if test ${ac_cv_lib_bfd_bfd_init+y}
5860 then :
5861 printf %s "(cached) " >&6
5862 else $as_nop
5863 ac_check_lib_save_LIBS=$LIBS
5864 LIBS="-lbfd -liberty $LIBS"
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5871 char bfd_init ();
5872 int
5873 main (void)
5874 {
5875 return bfd_init ();
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_c_try_link "$LINENO"
5881 then :
5882 ac_cv_lib_bfd_bfd_init=yes
5883 else $as_nop
5884 ac_cv_lib_bfd_bfd_init=no
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5887 conftest$ac_exeext conftest.$ac_ext
5888 LIBS=$ac_check_lib_save_LIBS
5889 fi
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
5891 printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; }
5892 if test "x$ac_cv_lib_bfd_bfd_init" = xyes
5893 then :
5894 #
5895 # Old binutils appear to need CONST defined to const
5896 #
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking need to define CONST for bfd" >&5
5898 printf %s "checking need to define CONST for bfd... " >&6; }
5899 if test "$cross_compiling" = yes
5900 then :
5901 as_fn_error $? "cannot use bfd" "$LINENO" 5
5902 else $as_nop
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905
5906 #define IN_GCC
5907 #include <bfd.h>
5908
5909 int
5910 main (void)
5911 {
5912
5913 symbol_info t;
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_c_try_run "$LINENO"
5920 then :
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 printf "%s\n" "no" >&6; }
5923 else $as_nop
5924 if test "$cross_compiling" = yes
5925 then :
5926 as_fn_error $? "cannot use bfd" "$LINENO" 5
5927 else $as_nop
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930
5931 #define CONST const
5932 #define IN_GCC
5933 #include <bfd.h>
5934
5935 int
5936 main (void)
5937 {
5938
5939 symbol_info t;
5940
5941 ;
5942 return 0;
5943 }
5944 _ACEOF
5945 if ac_fn_c_try_run "$LINENO"
5946 then :
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5948 printf "%s\n" "yes" >&6; }
5949
5950 printf "%s\n" "#define NEED_CONST 1" >>confdefs.h
5951
5952 else $as_nop
5953 as_fn_error $? "cannot use bfd" "$LINENO" 5
5954 fi
5955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5956 conftest.$ac_objext conftest.beam conftest.$ac_ext
5957 fi
5958
5959 fi
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5961 conftest.$ac_objext conftest.beam conftest.$ac_ext
5962 fi
5963
5964
5965 fi
5966
5967 fi
5968
5969 done
5970
5971
5972 printf "%s\n" "#define HAVE_LIBBFD 1" >>confdefs.h
5973
5974
5975 #
5976 # BFD boolean syntax
5977 #
5978
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useable bfd_boolean" >&5
5980 printf %s "checking for useable bfd_boolean... " >&6; }
5981 if test "$cross_compiling" = yes
5982 then :
5983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5985 as_fn_error $? "cannot run test program while cross compiling
5986 See \`config.log' for more details" "$LINENO" 5; }
5987 else $as_nop
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990
5991 #define IN_GCC
5992 #include <bfd.h>
5993 bfd_boolean foo() {return FALSE;}
5994
5995 int
5996 main (void)
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_run "$LINENO"
6004 then :
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6006 printf "%s\n" "yes" >&6; }
6007
6008 printf "%s\n" "#define HAVE_BFD_BOOLEAN 1" >>confdefs.h
6009
6010 else $as_nop
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 printf "%s\n" "no" >&6; }
6013 fi
6014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6015 conftest.$ac_objext conftest.beam conftest.$ac_ext
6016 fi
6017
6018
6019 #
6020 # bfd_link_info.output_bfd minimal configure change check
6021 #
6022
6023 ac_fn_c_check_member "$LINENO" "struct bfd_link_info" "output_bfd" "ac_cv_member_struct_bfd_link_info_output_bfd" "
6024 #include <bfd.h>
6025 #include <bfdlink.h>
6026
6027 "
6028 if test "x$ac_cv_member_struct_bfd_link_info_output_bfd" = xyes
6029 then :
6030
6031 printf "%s\n" "#define HAVE_OUTPUT_BFD 1" >>confdefs.h
6032
6033 fi
6034
6035
6036
6037 #
6038 # FIXME: Need to workaround mingw before this point -- CM
6039 #
6040 if test "$enable_statsysbfd" = "yes" && ! $CC -v 2>&1 | fgrep ming > /dev/null ; then
6041 echo 'int main() {bfd_init();bfd_openr("/dev/null",0);return 0;}' >foo.c
6042 MP=`$CC -Wl,-M -static -o foo foo.c -lbfd -liberty -ldl 2>&1 | grep -v : | tr '()' '\012\012' | $AWK '{print $NF}' | sort | uniq`
6043 rm -f foo.c foo
6044 if echo $MP | tr ' ' '\012' | grep libbfd.a >/dev/null; then
6045 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 ? \"/\" : \"\")}'`"
6046 else
6047 as_fn_error $? "cannot locate external libbfd.a" "$LINENO" 5
6048 fi
6049 if echo $MP | tr ' ' '\012' | grep libiberty.a >/dev/null ; then
6050 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 ? \"/\" : \"\")}'`"
6051 else
6052 as_fn_error $? "cannot locate external libiberty.a" "$LINENO" 5
6053 fi
6054 BUILD_BFD=copy_bfd
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
6056 printf %s "checking for inflate in -lz... " >&6; }
6057 if test ${ac_cv_lib_z_inflate+y}
6058 then :
6059 printf %s "(cached) " >&6
6060 else $as_nop
6061 ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lz $LIBS"
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065
6066 /* Override any GCC internal prototype to avoid an error.
6067 Use char because int might match the return type of a GCC
6068 builtin and then its argument prototype would still apply. */
6069 char inflate ();
6070 int
6071 main (void)
6072 {
6073 return inflate ();
6074 ;
6075 return 0;
6076 }
6077 _ACEOF
6078 if ac_fn_c_try_link "$LINENO"
6079 then :
6080 ac_cv_lib_z_inflate=yes
6081 else $as_nop
6082 ac_cv_lib_z_inflate=no
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6085 conftest$ac_exeext conftest.$ac_ext
6086 LIBS=$ac_check_lib_save_LIBS
6087 fi
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
6089 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
6090 if test "x$ac_cv_lib_z_inflate" = xyes
6091 then :
6092 TLIBS="$TLIBS -lz"
6093 else $as_nop
6094 as_fn_error $? "Need zlib for bfd linking" "$LINENO" 5
6095 fi
6096
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6098 printf %s "checking for dlsym in -ldl... " >&6; }
6099 if test ${ac_cv_lib_dl_dlsym+y}
6100 then :
6101 printf %s "(cached) " >&6
6102 else $as_nop
6103 ac_check_lib_save_LIBS=$LIBS
6104 LIBS="-ldl $LIBS"
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107
6108 /* Override any GCC internal prototype to avoid an error.
6109 Use char because int might match the return type of a GCC
6110 builtin and then its argument prototype would still apply. */
6111 char dlsym ();
6112 int
6113 main (void)
6114 {
6115 return dlsym ();
6116 ;
6117 return 0;
6118 }
6119 _ACEOF
6120 if ac_fn_c_try_link "$LINENO"
6121 then :
6122 ac_cv_lib_dl_dlsym=yes
6123 else $as_nop
6124 ac_cv_lib_dl_dlsym=no
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6127 conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6129 fi
6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6131 printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; }
6132 if test "x$ac_cv_lib_dl_dlsym" = xyes
6133 then :
6134 TLIBS="$TLIBS -ldl"
6135 else $as_nop
6136 as_fn_error $? "Need libdl for bfd linking" "$LINENO" 5
6137 fi
6138
6139
6140
6141
6142
6143 else
6144 TLIBS="$TLIBS -lbfd -liberty -ldl"
6145 fi
6146 fi
6147
6148 # Check whether --enable-xdr was given.
6149 if test ${enable_xdr+y}
6150 then :
6151 enableval=$enable_xdr;
6152 fi
6153
6154
6155 if test "$enable_xdr" != "no" ; then
6156 XDR_LIB=""
6157 ac_fn_c_check_func "$LINENO" "xdr_double" "ac_cv_func_xdr_double"
6158 if test "x$ac_cv_func_xdr_double" = xyes
6159 then :
6160 XDR_LIB=" "
6161 else $as_nop
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -ltirpc" >&5
6163 printf %s "checking for xdr_double in -ltirpc... " >&6; }
6164 if test ${ac_cv_lib_tirpc_xdr_double+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else $as_nop
6168 ac_check_lib_save_LIBS=$LIBS
6169 LIBS="-ltirpc $LIBS"
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6176 char xdr_double ();
6177 int
6178 main (void)
6179 {
6180 return xdr_double ();
6181 ;
6182 return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_link "$LINENO"
6186 then :
6187 ac_cv_lib_tirpc_xdr_double=yes
6188 else $as_nop
6189 ac_cv_lib_tirpc_xdr_double=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6192 conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6194 fi
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdr_double" >&5
6196 printf "%s\n" "$ac_cv_lib_tirpc_xdr_double" >&6; }
6197 if test "x$ac_cv_lib_tirpc_xdr_double" = xyes
6198 then :
6199 XDR_LIB=tirpc
6200 else $as_nop
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lgssrpc" >&5
6202 printf %s "checking for xdr_double in -lgssrpc... " >&6; }
6203 if test ${ac_cv_lib_gssrpc_xdr_double+y}
6204 then :
6205 printf %s "(cached) " >&6
6206 else $as_nop
6207 ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lgssrpc $LIBS"
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211
6212 /* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
6215 char xdr_double ();
6216 int
6217 main (void)
6218 {
6219 return xdr_double ();
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"
6225 then :
6226 ac_cv_lib_gssrpc_xdr_double=yes
6227 else $as_nop
6228 ac_cv_lib_gssrpc_xdr_double=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6233 fi
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssrpc_xdr_double" >&5
6235 printf "%s\n" "$ac_cv_lib_gssrpc_xdr_double" >&6; }
6236 if test "x$ac_cv_lib_gssrpc_xdr_double" = xyes
6237 then :
6238 XDR_LIB=gssrpc
6239 else $as_nop
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -lrpc" >&5
6241 printf %s "checking for xdr_double in -lrpc... " >&6; }
6242 if test ${ac_cv_lib_rpc_xdr_double+y}
6243 then :
6244 printf %s "(cached) " >&6
6245 else $as_nop
6246 ac_check_lib_save_LIBS=$LIBS
6247 LIBS="-lrpc $LIBS"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250
6251 /* Override any GCC internal prototype to avoid an error.
6252 Use char because int might match the return type of a GCC
6253 builtin and then its argument prototype would still apply. */
6254 char xdr_double ();
6255 int
6256 main (void)
6257 {
6258 return xdr_double ();
6259 ;
6260 return 0;
6261 }
6262 _ACEOF
6263 if ac_fn_c_try_link "$LINENO"
6264 then :
6265 ac_cv_lib_rpc_xdr_double=yes
6266 else $as_nop
6267 ac_cv_lib_rpc_xdr_double=no
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6270 conftest$ac_exeext conftest.$ac_ext
6271 LIBS=$ac_check_lib_save_LIBS
6272 fi
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_xdr_double" >&5
6274 printf "%s\n" "$ac_cv_lib_rpc_xdr_double" >&6; }
6275 if test "x$ac_cv_lib_rpc_xdr_double" = xyes
6276 then :
6277 XDR_LIB=rpc
6278 else $as_nop
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_double in -loncrpc" >&5
6280 printf %s "checking for xdr_double in -loncrpc... " >&6; }
6281 if test ${ac_cv_lib_oncrpc_xdr_double+y}
6282 then :
6283 printf %s "(cached) " >&6
6284 else $as_nop
6285 ac_check_lib_save_LIBS=$LIBS
6286 LIBS="-loncrpc $LIBS"
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289
6290 /* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6293 char xdr_double ();
6294 int
6295 main (void)
6296 {
6297 return xdr_double ();
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"
6303 then :
6304 ac_cv_lib_oncrpc_xdr_double=yes
6305 else $as_nop
6306 ac_cv_lib_oncrpc_xdr_double=no
6307 fi
6308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309 conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6311 fi
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oncrpc_xdr_double" >&5
6313 printf "%s\n" "$ac_cv_lib_oncrpc_xdr_double" >&6; }
6314 if test "x$ac_cv_lib_oncrpc_xdr_double" = xyes
6315 then :
6316 XDR_LIB=oncrpc
6317 fi
6318
6319 fi
6320
6321 fi
6322
6323 fi
6324
6325 fi
6326
6327
6328 if test "$XDR_LIB" != ""; then
6329
6330 printf "%s\n" "#define HAVE_XDR 1" >>confdefs.h
6331
6332 if test "$XDR_LIB" != " "; then
6333 TLIBS="$TLIBS -l$XDR_LIB"
6334 add_arg_to_cflags -I/usr/include/$XDR_LIB
6335 fi
6336 fi
6337 fi
6338
6339
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_clzl" >&5
6341 printf %s "checking __builtin_clzl... " >&6; }
6342 if test "$cross_compiling" = yes
6343 then :
6344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6345 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6346 as_fn_error $? "cannot run test program while cross compiling
6347 See \`config.log' for more details" "$LINENO" 5; }
6348 else $as_nop
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351
6352 #include <stdio.h>
6353 #include <unistd.h>
6354
6355 int
6356 main (void)
6357 {
6358
6359 unsigned long u;
6360 long j;
6361 if (__builtin_clzl(0)!=sizeof(long)*8)
6362 return -1;
6363 for (u=1,j=sizeof(long)*8-1;j>=0;j--,u<<=1)
6364 if (__builtin_clzl(u)!=j)
6365 return -1;
6366
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_run "$LINENO"
6372 then :
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6374 printf "%s\n" "yes" >&6; }
6375
6376 printf "%s\n" "#define HAVE_CLZL 1" >>confdefs.h
6377
6378 else $as_nop
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 printf "%s\n" "no" >&6; }
6381 fi
6382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6383 conftest.$ac_objext conftest.beam conftest.$ac_ext
6384 fi
6385
6386
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin_ctzl" >&5
6388 printf %s "checking __builtin_ctzl... " >&6; }
6389 if test "$cross_compiling" = yes
6390 then :
6391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6393 as_fn_error $? "cannot run test program while cross compiling
6394 See \`config.log' for more details" "$LINENO" 5; }
6395 else $as_nop
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398
6399 #include <stdio.h>
6400 #include <unistd.h>
6401
6402 int
6403 main (void)
6404 {
6405
6406 unsigned long u;
6407 long j;
6408 if (__builtin_ctzl(0)!=sizeof(long)*8)
6409 return -1;
6410 for (u=1,j=0;j<sizeof(long)*8-1;j++,u<<=1)
6411 if (__builtin_ctzl(u)!=j)
6412 return -1;
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_c_try_run "$LINENO"
6419 then :
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6421 printf "%s\n" "yes" >&6; }
6422
6423 printf "%s\n" "#define HAVE_CTZL 1" >>confdefs.h
6424
6425 else $as_nop
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 printf "%s\n" "no" >&6; }
6428 fi
6429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6430 conftest.$ac_objext conftest.beam conftest.$ac_ext
6431 fi
6432
6433
6434
6435 case $use in
6436 sh4*) ;; #FIXME, these exceptions needed as of gcc 4.7
6437 hppa*) ;; #FIXME
6438 powerpc*) ;; #FIXME
6439 alpha*) ;; #FIXME
6440 ia64*) ;; #FIXME
6441 *)
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking __builtin___clear_cache" >&5
6443 printf %s "checking __builtin___clear_cache... " >&6; }
6444 if test "$cross_compiling" = yes
6445 then :
6446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6448 as_fn_error $? "cannot run test program while cross compiling
6449 See \`config.log' for more details" "$LINENO" 5; }
6450 else $as_nop
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453
6454 int
6455 main (void)
6456 {
6457
6458 void *v,*ve;
6459 __builtin___clear_cache(v,ve);
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_run "$LINENO"
6466 then :
6467
6468 printf "%s\n" "#define HAVE_BUILTIN_CLEAR_CACHE 1" >>confdefs.h
6469
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6471 printf "%s\n" "yes" >&6; }
6472 else $as_nop
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 printf "%s\n" "no" >&6; }
6475 fi
6476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477 conftest.$ac_objext conftest.beam conftest.$ac_ext
6478 fi
6479 ;;
6480 esac
6481
6482 #AC_CONFIG_SUBDIRS($MY_SUBDIRS)
6483
6484 # Find where Data begins. This is used by the storage allocation
6485 # mechanism, in the PAGE macro. This offset is subtracted from
6486 # addresses, in calculating a page for an address in the heap.
6487
6488 # The cast to long int works around a bug in the HP C Compiler
6489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6491 # This bug is HP SR number 8606223364.
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6493 printf %s "checking size of long... " >&6; }
6494 if test ${ac_cv_sizeof_long+y}
6495 then :
6496 printf %s "(cached) " >&6
6497 else $as_nop
6498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
6499 then :
6500
6501 else $as_nop
6502 if test "$ac_cv_type_long" = yes; then
6503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6504 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6505 as_fn_error 77 "cannot compute sizeof (long)
6506 See \`config.log' for more details" "$LINENO" 5; }
6507 else
6508 ac_cv_sizeof_long=0
6509 fi
6510 fi
6511
6512 fi
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6514 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
6515
6516
6517
6518 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
6519
6520
6521
6522 if test "$ac_cv_sizeof_long" = "4" ; then
6523 assert_arg_to_cflags "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
6524 fi
6525
6526 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
6527 if test "x$ac_cv_header_time_h" = xyes
6528 then :
6529 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
6530
6531 fi
6532 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
6533 if test "x$ac_cv_header_sys_time_h" = xyes
6534 then :
6535 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
6536
6537 fi
6538
6539
6540 # The cast to long int works around a bug in the HP C Compiler
6541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6543 # This bug is HP SR number 8606223364.
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
6545 printf %s "checking size of time_t... " >&6; }
6546 if test ${ac_cv_sizeof_time_t+y}
6547 then :
6548 printf %s "(cached) " >&6
6549 else $as_nop
6550 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h>
6551 "
6552 then :
6553
6554 else $as_nop
6555 if test "$ac_cv_type_time_t" = yes; then
6556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6557 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6558 as_fn_error 77 "cannot compute sizeof (time_t)
6559 See \`config.log' for more details" "$LINENO" 5; }
6560 else
6561 ac_cv_sizeof_time_t=0
6562 fi
6563 fi
6564
6565 fi
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
6567 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
6568
6569
6570
6571 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
6572
6573
6574 if test "$use" != "mingw" ; then
6575 if test "$ac_cv_sizeof_time_t" != "8" ; then
6576 as_fn_error $? "Cannot define a 64 bit time_t" "$LINENO" 5
6577 fi
6578 fi
6579
6580
6581
6582 #### Memory areas and alignment
6583
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for byte order" >&5
6585 printf %s "checking for byte order... " >&6; }
6586 if test "$cross_compiling" = yes
6587 then :
6588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6589 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6590 as_fn_error $? "cannot run test program while cross compiling
6591 See \`config.log' for more details" "$LINENO" 5; }
6592 else $as_nop
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595
6596 int
6597 main (void)
6598 {
6599
6600 /* Are we little or big endian? Adapted from Harbison&Steele. */
6601 union {long l;char c[sizeof(long)];} u;
6602 u.l = 1;
6603 return u.c[sizeof(long)-1] ? 1 : 0;
6604
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_run "$LINENO"
6610 then :
6611
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6613 printf "%s\n" "little" >&6; }
6614 else $as_nop
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6616 printf "%s\n" "big" >&6; }
6617
6618 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6619
6620 fi
6621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6622 conftest.$ac_objext conftest.beam conftest.$ac_ext
6623 fi
6624
6625
6626
6627
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for word order" >&5
6629 printf %s "checking for word order... " >&6; }
6630 if test "$cross_compiling" = yes
6631 then :
6632 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6633 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6634 as_fn_error $? "cannot run test program while cross compiling
6635 See \`config.log' for more details" "$LINENO" 5; }
6636 else $as_nop
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639
6640 int
6641 main (void)
6642 {
6643
6644 /* Are we little or big endian? Adapted from Harbison&Steele. */
6645 union {double d;int l[sizeof(double)/sizeof(int)];} u;
6646 u.d = 1.0;
6647 return u.l[sizeof(double)/sizeof(int)-1] ? 0 : 1;
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_run "$LINENO"
6654 then :
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little" >&5
6656 printf "%s\n" "little" >&6; }
6657 else $as_nop
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big" >&5
6659 printf "%s\n" "big" >&6; }
6660
6661 printf "%s\n" "#define DOUBLE_BIGENDIAN 1" >>confdefs.h
6662
6663 fi
6664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6665 conftest.$ac_objext conftest.beam conftest.$ac_ext
6666 fi
6667
6668
6669
6670 # pagewidth
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pagewidth" >&5
6672 printf %s "checking for pagewidth... " >&6; }
6673 case $use in
6674 mips*) min_pagewidth=14;;
6675 *) min_pagewidth=12;;
6676 esac
6677 if test "$cross_compiling" = yes
6678 then :
6679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6680 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6681 as_fn_error $? "cannot run test program while cross compiling
6682 See \`config.log' for more details" "$LINENO" 5; }
6683 else $as_nop
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686
6687 #include <stdio.h>
6688 #include <unistd.h>
6689 #ifdef __CYGWIN__
6690 #define getpagesize() 4096
6691 #endif
6692
6693 int
6694 main (void)
6695 {
6696
6697 size_t i=getpagesize(),j;
6698 FILE *fp=fopen("conftest1","w");
6699 for (j=0;i>>=1;j++);
6700 j=j<$min_pagewidth ? $min_pagewidth : j;
6701 fprintf(fp,"%u",j);
6702
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_c_try_run "$LINENO"
6708 then :
6709 PAGEWIDTH=`cat conftest1`
6710 else $as_nop
6711 PAGEWIDTH=0
6712 fi
6713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6714 conftest.$ac_objext conftest.beam conftest.$ac_ext
6715 fi
6716
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PAGEWIDTH" >&5
6718 printf "%s\n" "$PAGEWIDTH" >&6; }
6719
6720 printf "%s\n" "#define PAGEWIDTH $PAGEWIDTH" >>confdefs.h
6721
6722
6723
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required object alignment" >&5
6725 printf %s "checking for required object alignment... " >&6; }
6726 if test "$cross_compiling" = yes
6727 then :
6728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6729 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6730 as_fn_error $? "cannot run test program while cross compiling
6731 See \`config.log' for more details" "$LINENO" 5; }
6732 else $as_nop
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735
6736 #include <stdio.h>
6737 #include <stdlib.h>
6738 #define EXTER
6739 #define INLINE
6740 #include "$MP_INCLUDE"
6741 #include "./h/enum.h"
6742 #define OBJ_ALIGN
6743 #include "./h/type.h"
6744 #include "./h/lu.h"
6745 #include "./h/object.h"
6746
6747 int
6748 main (void)
6749 {
6750
6751 unsigned long i;
6752 FILE *fp=fopen("conftest1","w");
6753 for (i=1;i && NOT_OBJECT_ALIGNED(i); i<<=1);
6754 if (!i) return -1;
6755 fprintf(fp,"%lu",i);
6756 fclose(fp);
6757 return 0;
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_run "$LINENO"
6764 then :
6765 obj_align=`cat conftest1`
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6767 printf "%s\n" "$obj_align" >&6; }
6768
6769 printf "%s\n" "#define OBJ_ALIGNMENT $obj_align" >>confdefs.h
6770
6771 else $as_nop
6772 as_fn_error $? "Cannot find object alignent" "$LINENO" 5
6773 fi
6774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6775 conftest.$ac_objext conftest.beam conftest.$ac_ext
6776 fi
6777
6778
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension variable alignment" >&5
6780 printf %s "checking for C extension variable alignment... " >&6; }
6781 if test "$cross_compiling" = yes
6782 then :
6783 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6784 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6785 as_fn_error $? "cannot run test program while cross compiling
6786 See \`config.log' for more details" "$LINENO" 5; }
6787 else $as_nop
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790
6791 int
6792 main (void)
6793 {
6794
6795 char *v __attribute__ ((aligned ($obj_align)));
6796
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_c_try_run "$LINENO"
6802 then :
6803 obj_align="__attribute__ ((aligned ($obj_align)))"
6804 else $as_nop
6805 as_fn_error $? "Need alignment attributes" "$LINENO" 5
6806 fi
6807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6808 conftest.$ac_objext conftest.beam conftest.$ac_ext
6809 fi
6810
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obj_align" >&5
6812 printf "%s\n" "$obj_align" >&6; }
6813
6814 printf "%s\n" "#define OBJ_ALIGN $obj_align" >>confdefs.h
6815
6816
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C extension noreturn function attribute" >&5
6818 printf %s "checking for C extension noreturn function attribute... " >&6; }
6819 if test "$cross_compiling" = yes
6820 then :
6821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6822 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6823 as_fn_error $? "cannot run test program while cross compiling
6824 See \`config.log' for more details" "$LINENO" 5; }
6825 else $as_nop
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828
6829 int
6830 main (void)
6831 {
6832
6833 extern int v() __attribute__ ((noreturn));
6834
6835 ;
6836 return 0;
6837 }
6838 _ACEOF
6839 if ac_fn_c_try_run "$LINENO"
6840 then :
6841 no_return="__attribute__ ((noreturn))"
6842 else $as_nop
6843 no_return=
6844 fi
6845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6846 conftest.$ac_objext conftest.beam conftest.$ac_ext
6847 fi
6848
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $no_return" >&5
6850 printf "%s\n" "$no_return" >&6; }
6851
6852 printf "%s\n" "#define NO_RETURN $no_return" >>confdefs.h
6853
6854
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof struct contblock" >&5
6856 printf %s "checking sizeof struct contblock... " >&6; }
6857
6858 if test "$cross_compiling" = yes
6859 then :
6860 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6861 else $as_nop
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864
6865 #include <stdio.h>
6866 #include <stdlib.h>
6867 #define EXTER
6868 #define INLINE
6869 #include "$MP_INCLUDE"
6870 #include "h/enum.h"
6871 #include "h/type.h"
6872 #include "h/lu.h"
6873 #include "h/object.h"
6874
6875 int
6876 main (void)
6877 {
6878
6879 FILE *f=fopen("conftest1","w");
6880 fprintf(f,"%u",sizeof(struct contblock));
6881 fclose(f);
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 if ac_fn_c_try_run "$LINENO"
6888 then :
6889 sizeof_contblock=`cat conftest1`
6890 else $as_nop
6891 as_fn_error $? "Cannot find sizeof struct contblock" "$LINENO" 5
6892 fi
6893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6894 conftest.$ac_objext conftest.beam conftest.$ac_ext
6895 fi
6896
6897
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sizeof_contblock" >&5
6899 printf "%s\n" "$sizeof_contblock" >&6; }
6900
6901 printf "%s\n" "#define SIZEOF_CONTBLOCK $sizeof_contblock" >>confdefs.h
6902
6903
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
6905 printf %s "checking for sbrk... " >&6; }
6906 HAVE_SBRK=""
6907 if test "$cross_compiling" = yes
6908 then :
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6910 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6911 else $as_nop
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914
6915 #include <unistd.h>
6916 #include <stdio.h>
6917
6918 int
6919 main (void)
6920 {
6921
6922 FILE *f;
6923 if (!(f=fopen("conftest1","w")))
6924 return -1;
6925 fprintf(f,"%p",sbrk(0));
6926
6927 ;
6928 return 0;
6929 }
6930 _ACEOF
6931 if ac_fn_c_try_run "$LINENO"
6932 then :
6933 HAVE_SBRK=1;{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6934 printf "%s\n" "yes" >&6; }
6935 else $as_nop
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&5
6937 printf "%s\n" "no: WARNING you must be able to emulate sbrk: as on mingw or macosx" >&6; }
6938 fi
6939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6940 conftest.$ac_objext conftest.beam conftest.$ac_ext
6941 fi
6942
6943
6944 if test "$use" = "386-macosx" ; then
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: emulating sbrk for mac" >&5
6946 printf "%s\n" "emulating sbrk for mac" >&6; };
6947 HAVE_SBRK=0
6948 fi
6949
6950 if test "$HAVE_SBRK" = "1" ; then
6951
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_NO_RANDOMIZE constant" >&5
6953 printf %s "checking for ADDR_NO_RANDOMIZE constant... " >&6; }
6954 if test "$cross_compiling" = yes
6955 then :
6956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6958 as_fn_error $? "cannot run test program while cross compiling
6959 See \`config.log' for more details" "$LINENO" 5; }
6960 else $as_nop
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963
6964 #include <sys/personality.h>
6965 #include <stdio.h>
6966
6967 int
6968 main (void)
6969 {
6970
6971 FILE *f;
6972 if (!(f=fopen("conftest1","w"))) return -1;
6973 fprintf(f,"%x",ADDR_NO_RANDOMIZE);
6974
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 if ac_fn_c_try_run "$LINENO"
6980 then :
6981 ADDR_NO_RANDOMIZE=`cat conftest1`
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_NO_RANDOMIZE" >&5
6983 printf "%s\n" "yes $ADDR_NO_RANDOMIZE" >&6; }
6984 else $as_nop
6985 ADDR_NO_RANDOMIZE=0
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no assuming 0x40000" >&5
6987 printf "%s\n" "no assuming 0x40000" >&6; }
6988
6989 printf "%s\n" "#define ADDR_NO_RANDOMIZE 0x40000" >>confdefs.h
6990
6991 fi
6992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6993 conftest.$ac_objext conftest.beam conftest.$ac_ext
6994 fi
6995
6996
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_COMPAT_LAYOUT constant" >&5
6998 printf %s "checking for ADDR_COMPAT_LAYOUT constant... " >&6; }
6999 if test "$cross_compiling" = yes
7000 then :
7001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7003 as_fn_error $? "cannot run test program while cross compiling
7004 See \`config.log' for more details" "$LINENO" 5; }
7005 else $as_nop
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008
7009 #include <sys/personality.h>
7010 #include <stdio.h>
7011
7012 int
7013 main (void)
7014 {
7015
7016 FILE *f;
7017 if (!(f=fopen("conftest1","w"))) return -1;
7018 fprintf(f,"%x",ADDR_COMPAT_LAYOUT);
7019
7020 ;
7021 return 0;
7022 }
7023 _ACEOF
7024 if ac_fn_c_try_run "$LINENO"
7025 then :
7026 ADDR_COMPAT_LAYOUT=`cat conftest1`
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_COMPAT_LAYOUT" >&5
7028 printf "%s\n" "yes $ADDR_COMPAT_LAYOUT" >&6; }
7029 else $as_nop
7030 ADDR_COMPAT_LAYOUT=0
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 printf "%s\n" "no" >&6; }
7033
7034 printf "%s\n" "#define ADDR_COMPAT_LAYOUT 0" >>confdefs.h
7035
7036 fi
7037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7038 conftest.$ac_objext conftest.beam conftest.$ac_ext
7039 fi
7040
7041
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ADDR_LIMIT_3GB constant" >&5
7043 printf %s "checking for ADDR_LIMIT_3GB constant... " >&6; }
7044 if test "$cross_compiling" = yes
7045 then :
7046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7048 as_fn_error $? "cannot run test program while cross compiling
7049 See \`config.log' for more details" "$LINENO" 5; }
7050 else $as_nop
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053
7054 #include <sys/personality.h>
7055 #include <stdio.h>
7056
7057 int
7058 main (void)
7059 {
7060
7061 FILE *f;
7062 if (!(f=fopen("conftest1","w"))) return -1;
7063 fprintf(f,"%x",ADDR_LIMIT_3GB);
7064
7065 ;
7066 return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_run "$LINENO"
7070 then :
7071 ADDR_LIMIT_3GB=`cat conftest1`
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes $ADDR_LIMIT_3GB" >&5
7073 printf "%s\n" "yes $ADDR_LIMIT_3GB" >&6; }
7074 else $as_nop
7075 ADDR_LIMIT_3GB=0
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 printf "%s\n" "no" >&6; }
7078
7079 printf "%s\n" "#define ADDR_LIMIT_3GB 0" >>confdefs.h
7080
7081 fi
7082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7083 conftest.$ac_objext conftest.beam conftest.$ac_ext
7084 fi
7085
7086
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for personality(ADDR_NO_RANDOMIZE) support" >&5
7088 printf %s "checking for personality(ADDR_NO_RANDOMIZE) support... " >&6; }
7089 if test "$cross_compiling" = yes
7090 then :
7091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7092 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7093 as_fn_error $? "cannot run test program while cross compiling
7094 See \`config.log' for more details" "$LINENO" 5; }
7095 else $as_nop
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098
7099 #include "h/unrandomize_headers.h"
7100 int main(int argc,char *argv[],char *envp[]) {
7101 #include "h/unrandomize.h"
7102 return 0;
7103 }
7104
7105 _ACEOF
7106 if ac_fn_c_try_run "$LINENO"
7107 then :
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7109 printf "%s\n" "yes" >&6; }
7110
7111 printf "%s\n" "#define CAN_UNRANDOMIZE_SBRK 1" >>confdefs.h
7112
7113 else $as_nop
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 printf "%s\n" "no" >&6; }
7116 fi
7117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7118 conftest.$ac_objext conftest.beam conftest.$ac_ext
7119 fi
7120
7121
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that sbrk is (now) non-random" >&5
7123 printf %s "checking that sbrk is (now) non-random... " >&6; }
7124 SBRK=0
7125 if test "$cross_compiling" = yes
7126 then :
7127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7129 as_fn_error $? "cannot run test program while cross compiling
7130 See \`config.log' for more details" "$LINENO" 5; }
7131 else $as_nop
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134
7135 #include "h/unrandomize_headers.h"
7136 int main(int argc,char * argv[],char * envp[]) {
7137 FILE *f;
7138 #ifdef CAN_UNRANDOMIZE_SBRK
7139 #include "h/unrandomize.h"
7140 #endif
7141 if (!(f=fopen("conftest1","w")))
7142 return -1;
7143 fprintf(f,"%p",sbrk(0));
7144 return 0;
7145 }
7146
7147 _ACEOF
7148 if ac_fn_c_try_run "$LINENO"
7149 then :
7150 SBRK=`cat conftest1`
7151 fi
7152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7153 conftest.$ac_objext conftest.beam conftest.$ac_ext
7154 fi
7155
7156 if test "$SBRK" = "0" ; then
7157 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7158 fi
7159
7160 SBRK1=0
7161 if test "$cross_compiling" = yes
7162 then :
7163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7164 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7165 as_fn_error $? "cannot run test program while cross compiling
7166 See \`config.log' for more details" "$LINENO" 5; }
7167 else $as_nop
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170
7171 #include "h/unrandomize_headers.h"
7172 int main(int argc,char * argv[],char * envp[]) {
7173 FILE *f;
7174 #ifdef CAN_UNRANDOMIZE_SBRK
7175 #include "h/unrandomize.h"
7176 #endif
7177 if (!(f=fopen("conftest1","w"))) return -1;
7178 fprintf(f,"%p",sbrk(0));
7179 return 0;
7180 }
7181
7182 _ACEOF
7183 if ac_fn_c_try_run "$LINENO"
7184 then :
7185 SBRK1=`cat conftest1`
7186 fi
7187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7188 conftest.$ac_objext conftest.beam conftest.$ac_ext
7189 fi
7190
7191 if test "$SBRK1" = "0" ; then
7192 as_fn_error $? "cannot trap sbrk" "$LINENO" 5
7193 fi
7194 if test "$SBRK" = "$SBRK1" ; then
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7196 printf "%s\n" "yes" >&6; }
7197 else
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 printf "%s\n" "no" >&6; }
7200 echo "Cannot build with randomized sbrk. Your options:"
7201 echo " - upgrade to a kernel/libc that knows about personality(ADDR_NO_RANDOMIZE)"
7202 echo " - recompile your kernel with CONFIG_COMPAT_BRK (if it has that option)"
7203 echo " - run sysctl kernel.randomize_va_space=0 before using gcl"
7204 as_fn_error $? "exiting" "$LINENO" 5
7205 fi
7206 fi
7207
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_DIRECTION" >&5
7209 printf %s "checking CSTACK_DIRECTION... " >&6; }
7210 if test "$cross_compiling" = yes
7211 then :
7212 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7213 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7214 as_fn_error $? "cannot run test program while cross compiling
7215 See \`config.log' for more details" "$LINENO" 5; }
7216 else $as_nop
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219
7220 #include "h/unrandomize_headers.h"
7221 int main(int argc,char **argv,char **envp) {
7222 FILE *fp = fopen("conftest1","w");
7223 #ifdef CAN_UNRANDOMIZE_SBRK
7224 #include "h/unrandomize.h"
7225 #endif
7226 fprintf(fp,"%d",(alloca(sizeof(void *))>alloca(sizeof(void *))) ? -1 : 1);
7227 fclose(fp);
7228 return 0;
7229 }
7230 _ACEOF
7231 if ac_fn_c_try_run "$LINENO"
7232 then :
7233 cstack_direction=`cat conftest1`
7234 else $as_nop
7235 cstack_direction=0
7236 fi
7237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7238 conftest.$ac_objext conftest.beam conftest.$ac_ext
7239 fi
7240
7241
7242 printf "%s\n" "#define CSTACK_DIRECTION $cstack_direction" >>confdefs.h
7243
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_direction" >&5
7245 printf "%s\n" "$cstack_direction" >&6; }
7246
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding CSTACK_ALIGNMENT" >&5
7248 printf %s "checking finding CSTACK_ALIGNMENT... " >&6; }
7249 if test "$cross_compiling" = yes
7250 then :
7251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7252 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7253 as_fn_error $? "cannot run test program while cross compiling
7254 See \`config.log' for more details" "$LINENO" 5; }
7255 else $as_nop
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258
7259 #include "h/unrandomize_headers.h"
7260 int main(int argc,char **argv,char **envp) {
7261 void *b,*c;
7262 FILE *fp = fopen("conftest1","w");
7263 long n;
7264 #ifdef CAN_UNRANDOMIZE_SBRK
7265 #include "h/unrandomize.h"
7266 #endif
7267 b=alloca(sizeof(b));
7268 c=alloca(sizeof(c));
7269 n=b>c ? b-c : c-b;
7270 n=n>sizeof(c) ? n : 1;
7271 fprintf(fp,"%ld",n);
7272 fclose(fp);
7273 return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_run "$LINENO"
7277 then :
7278 cstack_alignment=`cat conftest1`
7279 else $as_nop
7280 cstack_alignment=0
7281 fi
7282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7283 conftest.$ac_objext conftest.beam conftest.$ac_ext
7284 fi
7285
7286
7287 printf "%s\n" "#define CSTACK_ALIGNMENT $cstack_alignment" >>confdefs.h
7288
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_alignment" >&5
7290 printf "%s\n" "$cstack_alignment" >&6; }
7291
7292 # Check whether --enable-cstackmax was given.
7293 if test ${enable_cstackmax+y}
7294 then :
7295 enableval=$enable_cstackmax; if test "$enableval" != "" ; then
7296 printf "%s\n" "#define CSTACKMAX $enableval" >>confdefs.h
7297 fi
7298 fi
7299
7300
7301
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CSTACK_ADDRESS" >&5
7303 printf %s "checking CSTACK_ADDRESS... " >&6; }
7304 if test "$cross_compiling" = yes
7305 then :
7306 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7307 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7308 as_fn_error $? "cannot run test program while cross compiling
7309 See \`config.log' for more details" "$LINENO" 5; }
7310 else $as_nop
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313
7314 #include "h/unrandomize_headers.h"
7315 int
7316 main(int argc,char **argv,char **envp) {
7317 FILE *fp = fopen("conftest1","w");
7318 unsigned long i,j;
7319
7320 #ifdef CAN_UNRANDOMIZE_SBRK
7321 #include "h/unrandomize.h"
7322 #endif
7323 j=1;
7324 j<<=$PAGEWIDTH;
7325 j<<=16;
7326 i=(unsigned long)alloca(sizeof(void *));
7327 if ($cstack_direction==1) i-=j;
7328 j--;
7329 i+=j;
7330 i&=~j;
7331 fprintf(fp,"0x%lx",i-1);
7332 fclose(fp);
7333 return 0;
7334 }
7335 _ACEOF
7336 if ac_fn_c_try_run "$LINENO"
7337 then :
7338 cstack_address=`cat conftest1`
7339 else $as_nop
7340 cstack_address=0
7341 fi
7342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7343 conftest.$ac_objext conftest.beam conftest.$ac_ext
7344 fi
7345
7346
7347 printf "%s\n" "#define CSTACK_ADDRESS $cstack_address" >>confdefs.h
7348
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_address" >&5
7350 printf "%s\n" "$cstack_address" >&6; }
7351
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cstack bits" >&5
7353 printf %s "checking cstack bits... " >&6; }
7354 if test "$cross_compiling" = yes
7355 then :
7356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7357 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7358 as_fn_error $? "cannot run test program while cross compiling
7359 See \`config.log' for more details" "$LINENO" 5; }
7360 else $as_nop
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363
7364 #include "h/unrandomize_headers.h"
7365 int
7366 main(int argc,char **argv,char **envp) {
7367 void *v ;
7368 FILE *fp = fopen("conftest1","w");
7369 long i,j;
7370
7371 #ifdef CAN_UNRANDOMIZE_SBRK
7372 #include "h/unrandomize.h"
7373 #endif
7374 j=1;
7375 j<<=$PAGEWIDTH;
7376 j<<=16;
7377 i=(long)&v;
7378 if ($cstack_direction==1) i-=j;
7379 j--;
7380 i+=j;
7381 i&=~j;
7382 for (j=0;(i>>j)!=(i>>(sizeof(long)*8-1));j++);
7383 fprintf(fp,"%ld",j);
7384 fclose(fp);
7385 return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_run "$LINENO"
7389 then :
7390 cstack_bits=`cat conftest1`
7391 else $as_nop
7392 cstack_bits=0
7393 fi
7394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7395 conftest.$ac_objext conftest.beam conftest.$ac_ext
7396 fi
7397
7398
7399 printf "%s\n" "#define CSTACK_BITS $cstack_bits" >>confdefs.h
7400
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cstack_bits" >&5
7402 printf "%s\n" "$cstack_bits" >&6; }
7403
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NEG_CSTACK_ADDRESS" >&5
7405 printf %s "checking NEG_CSTACK_ADDRESS... " >&6; }
7406 if test "$cross_compiling" = yes
7407 then :
7408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7409 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7410 as_fn_error $? "cannot run test program while cross compiling
7411 See \`config.log' for more details" "$LINENO" 5; }
7412 else $as_nop
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7415
7416 #include "h/unrandomize_headers.h"
7417 int
7418 main(int argc,char **argv,char **envp) {
7419 #ifdef CAN_UNRANDOMIZE_SBRK
7420 #include "h/unrandomize.h"
7421 #endif
7422 return (long)$cstack_address<0 ? 0 : -1;
7423 }
7424 _ACEOF
7425 if ac_fn_c_try_run "$LINENO"
7426 then :
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 printf "%s\n" "yes" >&6; }
7429 neg_cstack_address=1
7430
7431 printf "%s\n" "#define NEG_CSTACK_ADDRESS 1" >>confdefs.h
7432
7433 else $as_nop
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 printf "%s\n" "no" >&6; }
7436 neg_cstack_address=0
7437 fi
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7440 fi
7441
7442
7443 # Check whether --enable-immfix was given.
7444 if test ${enable_immfix+y}
7445 then :
7446 enableval=$enable_immfix;
7447 fi
7448
7449
7450 # Check whether --enable-fastimmfix was given.
7451 if test ${enable_fastimmfix+y}
7452 then :
7453 enableval=$enable_fastimmfix;
7454 else $as_nop
7455 enable_fastimmfix=64
7456 fi
7457
7458
7459
7460 if test "$use" != "386-gnu" ; then #hurd can push .data below C stack, but sbrk(0) remains above, foiling unexec
7461
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding default linker script" >&5
7463 printf %s "checking finding default linker script... " >&6; }
7464 touch unixport/gcl.script
7465 echo "int main() {return 0;}" >foo.c
7466 $CC $LDFLAGS -Wl,--verbose foo.c -o foo 2>&1 | \
7467 $AWK '/==================================================/ {i=1-i;next} {if (i) print}' >gcl.script
7468 rm -rf foo.c foo
7469
7470 if test "`cat gcl.script | wc -l`" != "0" ; then
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: got it" >&5
7472 printf "%s\n" "got it" >&6; }
7473
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking output_arch" >&5
7475 printf %s "checking output_arch... " >&6; }
7476 output_arch=`cat gcl.script |grep OUTPUT_ARCH|head -n 1|sed 's,.*(\(.*\)).*,\1,1'|cut -f1 -d:`;
7477 if test "$output_arch" != "" ; then
7478
7479 printf "%s\n" "#define OUTPUT_ARCH bfd_arch_${output_arch}" >>confdefs.h
7480
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bfd_arch_${output_arch}" >&5
7482 printf "%s\n" "bfd_arch_${output_arch}" >&6; }
7483 else
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7485 printf "%s\n" "not found" >&6; }
7486 fi
7487
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying to adjust text start" >&5
7489 printf "%s\n" "$as_me: trying to adjust text start" >&6;}
7490 cp gcl.script gcl.script.def
7491
7492 n=-1;
7493 k=0;
7494 lim=`$AWK 'END {printf("%d\n",m*8-2)}' m=$ac_cv_sizeof_long`;
7495 max=0;
7496 min=$lim;
7497 while test $n -lt $lim ; do
7498 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$n </dev/null`
7499 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7500 # diff -u gcl.script.def gcl.script
7501 echo "int main() {return 0;}" >foo.c
7502 if ( $CC $LDFLAGS -Wl,-T gcl.script foo.c -o foo && ./foo >/dev/null 2<&1 ) >/dev/null 2>&1 ; then
7503 if test $n -lt $min ; then min=$n; fi;
7504 if test $n -gt $max; then max=$n; fi;
7505 elif test $max -gt 0 ; then
7506 # Workaround for false island of acceptability on riscv64, 20240716
7507 if test `$AWK 'END {print n-m}' m=$min n=$max </dev/null` -gt 2 ; then
7508 break;
7509 else
7510 min=$lim
7511 max=0;
7512 fi
7513 fi;
7514 n=`$AWK 'END {print n+1}' n=$n </dev/null`
7515 done
7516
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: min log text start $min" >&5
7518 printf "%s\n" "$as_me: min log text start $min" >&6;}
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start $max" >&5
7520 printf "%s\n" "$as_me: max log text start $max" >&6;}
7521
7522 if test $neg_cstack_address -eq 1 ; then #FIXME test this
7523 if test $cstack_bits -lt $max ; then
7524 max=$cstack_bits;
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: max log text start reduced to $max considering c stack address" >&5
7526 printf "%s\n" "$as_me: max log text start reduced to $max considering c stack address" >&6;}
7527 fi
7528 fi
7529
7530 j=-1;
7531 low_shft="";
7532 if test $min -le $max ; then
7533 if test $max -ge $enable_fastimmfix && test "$enable_immfix" != "no" ; then
7534 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$max </dev/null`
7535 low_shft=`$AWK 'END {print n+1}' n=$max </dev/null`;
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: raising log text to 0x$j for a $max bit wide low immfix table" >&5
7537 printf "%s\n" "$as_me: raising log text to 0x$j for a $max bit wide low immfix table" >&6;}
7538 else
7539 j=`$AWK 'END {for (i=j=0;j<=n;j++) i=i ? i*2 : 1;printf("%x\n",3*i)}' n=$min </dev/null`
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: lowering log text to 0x$j to maximize data area" >&5
7541 printf "%s\n" "$as_me: lowering log text to 0x$j to maximize data area" >&6;}
7542 fi
7543 fi
7544
7545 if test "$low_shft" != "" ; then
7546
7547 printf "%s\n" "#define LOW_SHFT $low_shft" >>confdefs.h
7548
7549
7550 printf "%s\n" "#define OBJNULL (object)0x$j" >>confdefs.h
7551
7552 else
7553
7554 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7555
7556 fi
7557
7558 # echo $j;
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking our linker script" >&5
7560 printf %s "checking our linker script... " >&6; }
7561 if test "$j" != "-1" ; then
7562 cat gcl.script.def | $AWK '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);} {print}' j=$j >gcl.script
7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7564 printf "%s\n" "done" >&6; }
7565 rm -f gcl.script.def
7566 assert_arg_to_ldflags -Wl,-T,gcl.script
7567 cp gcl.script unixport
7568 else
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none found or not needed" >&5
7570 printf "%s\n" "none found or not needed" >&6; }
7571 rm -f gcl.script gcl.script.def
7572 fi
7573 rm -rf foo.c foo
7574 else
7575
7576 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7577
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7579 printf "%s\n" "not found" >&6; }
7580 fi
7581
7582 else
7583
7584
7585 printf "%s\n" "#define OBJNULL NULL" >>confdefs.h
7586
7587
7588 fi
7589
7590 mem_top=0
7591 mem_range=0
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mem top" >&5
7593 printf %s "checking mem top... " >&6; }
7594 if test "$cross_compiling" = yes
7595 then :
7596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7598 as_fn_error $? "cannot run test program while cross compiling
7599 See \`config.log' for more details" "$LINENO" 5; }
7600 else $as_nop
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603
7604 #include <stdio.h>
7605
7606 int
7607 main (void)
7608 {
7609
7610 unsigned long i,j,k,l;
7611 FILE *fp = fopen("conftest1","w");
7612
7613 for (i=2,k=1;i;k=i,i<<=1);
7614 l=$cstack_address;
7615 l=$cstack_direction==1 ? (l<k ? k-1 : -1) : l;
7616 for (i=j=k;j && i<l;j>>=1,i|=j);
7617 if (j<(k>>3)) i=0;
7618 j=1;
7619 j<<=$PAGEWIDTH;
7620 j<<=4;
7621 j--;
7622 i+=j;
7623 i&=~j;
7624 fprintf(fp,"0x%lx",i);
7625 fclose(fp);
7626 return 0;
7627
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 if ac_fn_c_try_run "$LINENO"
7633 then :
7634 mem_top=`cat conftest1`
7635 else $as_nop
7636 mem_top="0x0"
7637 fi
7638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7639 conftest.$ac_objext conftest.beam conftest.$ac_ext
7640 fi
7641
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_top" >&5
7643 printf "%s\n" "$mem_top" >&6; }
7644
7645 if test "$mem_top" != "0x0" ; then
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking finding upper mem half range" >&5
7647 printf %s "checking finding upper mem half range... " >&6; }
7648 if test "$cross_compiling" = yes
7649 then :
7650 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7651 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7652 as_fn_error $? "cannot run test program while cross compiling
7653 See \`config.log' for more details" "$LINENO" 5; }
7654 else $as_nop
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657
7658 #include <stdio.h>
7659
7660 int
7661 main (void)
7662 {
7663
7664 unsigned long j;
7665 FILE *fp = fopen("conftest1","w");
7666
7667 for (j=1;j && !(j& $mem_top);j<<=1);
7668 fprintf(fp,"0x%lx",j>>1);
7669 fclose(fp);
7670 return 0;
7671
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 if ac_fn_c_try_run "$LINENO"
7677 then :
7678 mem_range=`cat conftest1`
7679 else $as_nop
7680 mem_range="0x0"
7681 fi
7682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7683 conftest.$ac_objext conftest.beam conftest.$ac_ext
7684 fi
7685
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mem_range" >&5
7687 printf "%s\n" "$mem_range" >&6; }
7688 if test "$mem_range" != "0x0" ; then
7689
7690 printf "%s\n" "#define MEM_TOP $mem_top" >>confdefs.h
7691
7692
7693 printf "%s\n" "#define MEM_RANGE $mem_range" >>confdefs.h
7694
7695 fi
7696 fi
7697
7698 if test "$enable_immfix" != "no" ; then
7699 if test "$mem_top" != "0x0" ; then
7700 if test "$mem_range" != "0x0" ; then
7701
7702 printf "%s\n" "#define IM_FIX_BASE ${mem_top}UL" >>confdefs.h
7703
7704
7705 printf "%s\n" "#define IM_FIX_LIM ${mem_range}UL" >>confdefs.h
7706
7707 fi
7708 fi
7709 fi
7710
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sizeof long long int" >&5
7712 printf %s "checking sizeof long long int... " >&6; }
7713 if test "$cross_compiling" = yes
7714 then :
7715 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7716 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7717 as_fn_error $? "cannot run test program while cross compiling
7718 See \`config.log' for more details" "$LINENO" 5; }
7719 else $as_nop
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722
7723 #include <stdio.h>
7724
7725 int
7726 main (void)
7727 {
7728
7729 if (sizeof(long long int) == 2*sizeof(long)) return 0;
7730 return 1;
7731
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 if ac_fn_c_try_run "$LINENO"
7737 then :
7738
7739 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7741 printf "%s\n" "yes" >&6; }
7742 else $as_nop
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 printf "%s\n" "no" >&6; }
7745 fi
7746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7747 conftest.$ac_objext conftest.beam conftest.$ac_ext
7748 fi
7749
7750
7751
7752
7753 for ac_header in dirent.h
7754 do :
7755 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7756 if test "x$ac_cv_header_dirent_h" = xyes
7757 then :
7758 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d_type" >&5
7760 printf %s "checking for d_type... " >&6; }
7761 if test "$cross_compiling" = yes
7762 then :
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 printf "%s\n" "no" >&6; }
7765 else $as_nop
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768
7769 #include <dirent.h>
7770 #include <string.h>
7771
7772 int
7773 main (void)
7774 {
7775
7776 struct dirent *d;
7777 DIR *r=opendir("./");
7778 for (;(d=readdir(r)) && strcmp("configure",d->d_name););
7779 return d && d->d_type==DT_REG ? 0 : -1;
7780
7781 ;
7782 return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_run "$LINENO"
7786 then :
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7788 printf "%s\n" "yes" >&6; }
7789 printf "%s\n" "#define HAVE_D_TYPE 1" >>confdefs.h
7790
7791 else $as_nop
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 printf "%s\n" "no" >&6; }
7794 fi
7795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7796 conftest.$ac_objext conftest.beam conftest.$ac_ext
7797 fi
7798
7799 fi
7800
7801 done
7802
7803 # ansi lisp
7804 SYSTEM=ansi_gcl
7805 CLSTANDARD=ANSI
7806 # Check whether --enable-ansi was given.
7807 if test ${enable_ansi+y}
7808 then :
7809 enableval=$enable_ansi; if test "$enable_ansi" = "no" ; then
7810 SYSTEM=gcl
7811 CLSTANDARD=CLtL1
7812 else
7813
7814 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7815
7816 fi
7817 else $as_nop
7818
7819 printf "%s\n" "#define ANSI_COMMON_LISP 1" >>confdefs.h
7820
7821 fi
7822
7823
7824 FLISP="saved_$SYSTEM"
7825
7826
7827
7828
7829 # Maximum number of pages
7830
7831
7832
7833 # Check if Posix compliant getcwd exists, if not we'll use getwd.
7834 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
7835 if test "x$ac_cv_func_getcwd" = xyes
7836 then :
7837 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
7838
7839 fi
7840
7841 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
7842 if test "x$ac_cv_func_getwd" = xyes
7843 then :
7844 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
7845
7846 fi
7847
7848 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
7849 if test "x$ac_cv_func_uname" = xyes
7850 then :
7851
7852 else $as_nop
7853
7854 printf "%s\n" "#define NO_UNAME 1" >>confdefs.h
7855
7856 fi
7857
7858 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7859 if test "x$ac_cv_func_gettimeofday" = xyes
7860 then :
7861
7862 else $as_nop
7863 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7864
7865 fi
7866
7867
7868
7869 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7870 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7871 then :
7872 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7873
7874 fi
7875
7876
7877 # OpenBSD has elf_abi.h instead of elf.h
7878 ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
7879 if test "x$ac_cv_header_elf_h" = xyes
7880 then :
7881 printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h
7882
7883 fi
7884 ac_fn_c_check_header_compile "$LINENO" "elf_abi.h" "ac_cv_header_elf_abi_h" "$ac_includes_default"
7885 if test "x$ac_cv_header_elf_abi_h" = xyes
7886 then :
7887 printf "%s\n" "#define HAVE_ELF_ABI_H 1" >>confdefs.h
7888
7889 fi
7890
7891
7892 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7893 if test "x$ac_cv_header_sys_sockio_h" = xyes
7894 then :
7895 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7896
7897 fi
7898
7899
7900
7901 #--------------------------------------------------------------------
7902 # The code below deals with several issues related to gettimeofday:
7903 # 1. Some systems don't provide a gettimeofday function at all
7904 # (set NO_GETTOD if this is the case).
7905 # 2. SGI systems don't use the BSD form of the gettimeofday function,
7906 # but they have a BSDgettimeofday function that can be used instead.
7907 # 3. See if gettimeofday is declared in the <sys/time.h> header file.
7908 # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can
7909 # declare it.
7910 #--------------------------------------------------------------------
7911
7912 ac_fn_c_check_func "$LINENO" "BSDgettimeofday" "ac_cv_func_BSDgettimeofday"
7913 if test "x$ac_cv_func_BSDgettimeofday" = xyes
7914 then :
7915
7916 printf "%s\n" "#define HAVE_BSDGETTIMEOFDAY 1" >>confdefs.h
7917
7918 else $as_nop
7919 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7920 if test "x$ac_cv_func_gettimeofday" = xyes
7921 then :
7922
7923 else $as_nop
7924
7925 printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h
7926
7927 fi
7928
7929 fi
7930
7931
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7933 printf %s "checking for grep that handles long lines and -e... " >&6; }
7934 if test ${ac_cv_path_GREP+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else $as_nop
7938 if test -z "$GREP"; then
7939 ac_path_GREP_found=false
7940 # Loop through the user's path and test for each of PROGNAME-LIST
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7943 do
7944 IFS=$as_save_IFS
7945 case $as_dir in #(((
7946 '') as_dir=./ ;;
7947 */) ;;
7948 *) as_dir=$as_dir/ ;;
7949 esac
7950 for ac_prog in grep ggrep
7951 do
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7954 as_fn_executable_p "$ac_path_GREP" || continue
7955 # Check for GNU ac_path_GREP and select it if it is found.
7956 # Check for GNU $ac_path_GREP
7957 case `"$ac_path_GREP" --version 2>&1` in
7958 *GNU*)
7959 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7960 *)
7961 ac_count=0
7962 printf %s 0123456789 >"conftest.in"
7963 while :
7964 do
7965 cat "conftest.in" "conftest.in" >"conftest.tmp"
7966 mv "conftest.tmp" "conftest.in"
7967 cp "conftest.in" "conftest.nl"
7968 printf "%s\n" 'GREP' >> "conftest.nl"
7969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7971 as_fn_arith $ac_count + 1 && ac_count=$as_val
7972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7973 # Best one so far, save it but keep looking for a better one
7974 ac_cv_path_GREP="$ac_path_GREP"
7975 ac_path_GREP_max=$ac_count
7976 fi
7977 # 10*(2^10) chars as input seems more than enough
7978 test $ac_count -gt 10 && break
7979 done
7980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7981 esac
7982
7983 $ac_path_GREP_found && break 3
7984 done
7985 done
7986 done
7987 IFS=$as_save_IFS
7988 if test -z "$ac_cv_path_GREP"; then
7989 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7990 fi
7991 else
7992 ac_cv_path_GREP=$GREP
7993 fi
7994
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7997 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7998 GREP="$ac_cv_path_GREP"
7999
8000
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8002 printf %s "checking for egrep... " >&6; }
8003 if test ${ac_cv_path_EGREP+y}
8004 then :
8005 printf %s "(cached) " >&6
8006 else $as_nop
8007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8008 then ac_cv_path_EGREP="$GREP -E"
8009 else
8010 if test -z "$EGREP"; then
8011 ac_path_EGREP_found=false
8012 # Loop through the user's path and test for each of PROGNAME-LIST
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8015 do
8016 IFS=$as_save_IFS
8017 case $as_dir in #(((
8018 '') as_dir=./ ;;
8019 */) ;;
8020 *) as_dir=$as_dir/ ;;
8021 esac
8022 for ac_prog in egrep
8023 do
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8026 as_fn_executable_p "$ac_path_EGREP" || continue
8027 # Check for GNU ac_path_EGREP and select it if it is found.
8028 # Check for GNU $ac_path_EGREP
8029 case `"$ac_path_EGREP" --version 2>&1` in
8030 *GNU*)
8031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8032 *)
8033 ac_count=0
8034 printf %s 0123456789 >"conftest.in"
8035 while :
8036 do
8037 cat "conftest.in" "conftest.in" >"conftest.tmp"
8038 mv "conftest.tmp" "conftest.in"
8039 cp "conftest.in" "conftest.nl"
8040 printf "%s\n" 'EGREP' >> "conftest.nl"
8041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8043 as_fn_arith $ac_count + 1 && ac_count=$as_val
8044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8045 # Best one so far, save it but keep looking for a better one
8046 ac_cv_path_EGREP="$ac_path_EGREP"
8047 ac_path_EGREP_max=$ac_count
8048 fi
8049 # 10*(2^10) chars as input seems more than enough
8050 test $ac_count -gt 10 && break
8051 done
8052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8053 esac
8054
8055 $ac_path_EGREP_found && break 3
8056 done
8057 done
8058 done
8059 IFS=$as_save_IFS
8060 if test -z "$ac_cv_path_EGREP"; then
8061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8062 fi
8063 else
8064 ac_cv_path_EGREP=$EGREP
8065 fi
8066
8067 fi
8068 fi
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8070 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8071 EGREP="$ac_cv_path_EGREP"
8072
8073
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 #include <sys/time.h>
8077
8078 _ACEOF
8079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8080 $EGREP "gettimeofday" >/dev/null 2>&1
8081 then :
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8083 printf %s "checking for gettimeofday declaration... " >&6; }
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
8085 printf "%s\n" "present" >&6; }
8086 else $as_nop
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5
8088 printf %s "checking for gettimeofday declaration... " >&6; }
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
8090 printf "%s\n" "missing" >&6; }
8091
8092 printf "%s\n" "#define GETTOD_NOT_DECLARED 1" >>confdefs.h
8093
8094 fi
8095 rm -rf conftest*
8096
8097
8098
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
8100 printf %s "checking for sin in -lm... " >&6; }
8101 if test ${ac_cv_lib_m_sin+y}
8102 then :
8103 printf %s "(cached) " >&6
8104 else $as_nop
8105 ac_check_lib_save_LIBS=$LIBS
8106 LIBS="-lm $LIBS"
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109
8110 /* Override any GCC internal prototype to avoid an error.
8111 Use char because int might match the return type of a GCC
8112 builtin and then its argument prototype would still apply. */
8113 char sin ();
8114 int
8115 main (void)
8116 {
8117 return sin ();
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"
8123 then :
8124 ac_cv_lib_m_sin=yes
8125 else $as_nop
8126 ac_cv_lib_m_sin=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8129 conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_check_lib_save_LIBS
8131 fi
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
8133 printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
8134 if test "x$ac_cv_lib_m_sin" = xyes
8135 then :
8136 LIBS="${LIBS} -lm"
8137 else $as_nop
8138 true
8139 fi
8140
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingwex" >&5
8142 printf %s "checking for main in -lmingwex... " >&6; }
8143 if test ${ac_cv_lib_mingwex_main+y}
8144 then :
8145 printf %s "(cached) " >&6
8146 else $as_nop
8147 ac_check_lib_save_LIBS=$LIBS
8148 LIBS="-lmingwex $LIBS"
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151
8152
8153 int
8154 main (void)
8155 {
8156 return main ();
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"
8162 then :
8163 ac_cv_lib_mingwex_main=yes
8164 else $as_nop
8165 ac_cv_lib_mingwex_main=no
8166 fi
8167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8168 conftest$ac_exeext conftest.$ac_ext
8169 LIBS=$ac_check_lib_save_LIBS
8170 fi
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingwex_main" >&5
8172 printf "%s\n" "$ac_cv_lib_mingwex_main" >&6; }
8173 if test "x$ac_cv_lib_mingwex_main" = xyes
8174 then :
8175 LIBS="${LIBS} -lmingwex"
8176 else $as_nop
8177 true
8178 fi
8179
8180
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy maximum sscanf length" >&5
8182 printf %s "checking for buggy maximum sscanf length... " >&6; }
8183 if test "$cross_compiling" = yes
8184 then :
8185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8186 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8187 as_fn_error $? "cannot run test program while cross compiling
8188 See \`config.log' for more details" "$LINENO" 5; }
8189 else $as_nop
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192
8193 #include <stdio.h>
8194
8195 int
8196 main (void)
8197 {
8198
8199 char *s= "2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274274663919320030599218174135966290435729003342952605956307381323286279434907632338298807531952510190115738341879307021540891499348841675092447614606680822648001684774118537423454424371075390777449920695517027618386062613313845830007520449338265602976067371132007093287091274437470472306969772093101416928368190255151086574637721112523897844250569536967707854499699679468644549059879316368892300987931277361782154249992295763514822082698951936680331825288693984964651058209392398294887933203625094431173012381970684161404";
8200 int n, m;
8201 double f;
8202 char *endptr;
8203 FILE *fp=fopen("conftest1","w");
8204
8205 n=sscanf(s,"%lf%n",&f,&m);
8206 fprintf(fp,"%d",m);
8207 fclose(fp);
8208 return s[m];
8209
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_run "$LINENO"
8215 then :
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8217 printf "%s\n" "none" >&6; }
8218 else $as_nop
8219 buggy_maximum_sscanf_length=`cat conftest1`
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $buggy_maximum_sscanf_length" >&5
8221 printf "%s\n" "$buggy_maximum_sscanf_length" >&6; }
8222
8223 printf "%s\n" "#define BUGGY_MAXIMUM_SSCANF_LENGTH $buggy_maximum_sscanf_length" >>confdefs.h
8224
8225 fi
8226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8227 conftest.$ac_objext conftest.beam conftest.$ac_ext
8228 fi
8229
8230
8231
8232 EXTRA_LOBJS=
8233 # Check whether --enable-japi was given.
8234 if test ${enable_japi+y}
8235 then :
8236 enableval=$enable_japi; if test "$enable_japi" = "yes" ; then
8237 for ac_header in japi.h
8238 do :
8239 ac_fn_c_check_header_compile "$LINENO" "japi.h" "ac_cv_header_japi_h" "$ac_includes_default"
8240 if test "x$ac_cv_header_japi_h" = xyes
8241 then :
8242 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8243 printf "%s\n" "#define HAVE_JAPI_H 1" >>confdefs.h
8244
8245 EXTRA_LOBJS="${EXTRA_LOBJS} gcl_japi.o"
8246 LIBS="${LIBS} -ljapi -lwsock32"
8247 fi
8248
8249 done
8250 fi
8251 fi
8252
8253
8254 # Should really find a way to check for prototypes, but this
8255 # basically works for now. CM
8256 #
8257 for ac_header in math.h
8258 do :
8259 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
8260 if test "x$ac_cv_header_math_h" = xyes
8261 then :
8262 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8263
8264 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
8265
8266 fi
8267
8268 done
8269 for ac_header in complex.h
8270 do :
8271 ac_fn_c_check_header_compile "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
8272 if test "x$ac_cv_header_complex_h" = xyes
8273 then :
8274 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8275
8276 printf "%s\n" "#define HAVE_COMPLEX_H 1" >>confdefs.h
8277
8278 fi
8279
8280 done
8281
8282 #
8283 # For DBL_MAX et. al. on (only) certain Linux arches, apparently CM
8284 #
8285 for ac_header in values.h
8286 do :
8287 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
8288 if test "x$ac_cv_header_values_h" = xyes
8289 then :
8290 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8291
8292 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
8293
8294 fi
8295
8296 done
8297
8298 #
8299 # Sparc solaris keeps this in float.h, rework either/or with values.h later
8300 #
8301 for ac_header in float.h
8302 do :
8303 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
8304 if test "x$ac_cv_header_float_h" = xyes
8305 then :
8306 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8307
8308 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
8309
8310 fi
8311
8312 done
8313
8314 #
8315 # The second alternative is for solaris. This needs to be
8316 # a more comprehensive later, i.e. checking that the fpclass
8317 # test makes sense. CM
8318 #
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnormal" >&5
8320 printf %s "checking for isnormal... " >&6; }
8321 if test "$cross_compiling" = yes
8322 then :
8323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8325 as_fn_error $? "cannot run test program while cross compiling
8326 See \`config.log' for more details" "$LINENO" 5; }
8327 else $as_nop
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330
8331 #define _GNU_SOURCE
8332 #include <math.h>
8333
8334 int
8335 main (void)
8336 {
8337
8338 float f;
8339 return isnormal(f) || !isnormal(f) ? 0 : 1;
8340
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_run "$LINENO"
8346 then :
8347
8348 printf "%s\n" "#define HAVE_ISNORMAL 1" >>confdefs.h
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 printf "%s\n" "yes" >&6; }
8351 else $as_nop
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fpclass of ieeefp.h" >&5
8353 printf %s "checking for fpclass of ieeefp.h... " >&6; }
8354 if test "$cross_compiling" = yes
8355 then :
8356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8357 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8358 as_fn_error $? "cannot run test program while cross compiling
8359 See \`config.log' for more details" "$LINENO" 5; }
8360 else $as_nop
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363
8364 #include <ieeefp.h>
8365
8366 int
8367 main (void)
8368 {
8369
8370 float f;
8371 return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
8372
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 if ac_fn_c_try_run "$LINENO"
8378 then :
8379
8380 printf "%s\n" "#define HAVE_IEEEFP 1" >>confdefs.h
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8382 printf "%s\n" "yes" >&6; }
8383 else $as_nop
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 printf "%s\n" "no" >&6; }
8386 fi
8387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8388 conftest.$ac_objext conftest.beam conftest.$ac_ext
8389 fi
8390
8391 fi
8392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8393 conftest.$ac_objext conftest.beam conftest.$ac_ext
8394 fi
8395
8396
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
8398 printf %s "checking for isfinite... " >&6; }
8399 if test "$cross_compiling" = yes
8400 then :
8401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8403 as_fn_error $? "cannot run test program while cross compiling
8404 See \`config.log' for more details" "$LINENO" 5; }
8405 else $as_nop
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h. */
8408
8409 #define _GNU_SOURCE
8410 #include <math.h>
8411
8412 int
8413 main (void)
8414 {
8415
8416 float f;
8417 return isfinite(f) || !isfinite(f) ? 0 : 1;
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_run "$LINENO"
8424 then :
8425
8426 printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8428 printf "%s\n" "yes" >&6; }
8429 else $as_nop
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for finite()" >&5
8431 printf %s "checking for finite()... " >&6; }
8432 if test "$cross_compiling" = yes
8433 then :
8434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8435 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8436 as_fn_error $? "cannot run test program while cross compiling
8437 See \`config.log' for more details" "$LINENO" 5; }
8438 else $as_nop
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441
8442 #include <math.h>
8443 #include <ieeefp.h>
8444
8445 int
8446 main (void)
8447 {
8448
8449 float f;
8450 return finite(f) || !finite(f) ? 0 : 1;
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_run "$LINENO"
8457 then :
8458
8459 printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8461 printf "%s\n" "yes" >&6; }
8462 else $as_nop
8463 as_fn_error $? "no" "$LINENO" 5
8464 fi
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8466 conftest.$ac_objext conftest.beam conftest.$ac_ext
8467 fi
8468
8469 fi
8470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8471 conftest.$ac_objext conftest.beam conftest.$ac_ext
8472 fi
8473
8474
8475 #--------------------------------------------------------------------
8476 # Check for the existence of the -lsocket and -lnsl libraries.
8477 # The order here is important, so that they end up in the right
8478 # order in the command line generated by make. Here are some
8479 # special considerations:
8480 # 1. Use "connect" and "accept" to check for -lsocket, and
8481 # "gethostbyname" to check for -lnsl.
8482 # 2. Use each function name only once: can't redo a check because
8483 # autoconf caches the results of the last check and won't redo it.
8484 # 3. Use -lnsl and -lsocket only if they supply procedures that
8485 # aren't already present in the normal libraries. This is because
8486 # IRIX 5.2 has libraries, but they aren't needed and they're
8487 # bogus: they goof up name resolution if used.
8488 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
8489 # To get around this problem, check for both libraries together
8490 # if -lsocket doesn't work by itself.
8491 #--------------------------------------------------------------------
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockets" >&5
8493 printf %s "checking for sockets... " >&6; }
8494 tcl_checkBoth=0
8495 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8496 if test "x$ac_cv_func_connect" = xyes
8497 then :
8498 tcl_checkSocket=0
8499 else $as_nop
8500 tcl_checkSocket=1
8501 fi
8502
8503 if test "$tcl_checkSocket" = 1; then
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
8505 printf %s "checking for main in -lsocket... " >&6; }
8506 if test ${ac_cv_lib_socket_main+y}
8507 then :
8508 printf %s "(cached) " >&6
8509 else $as_nop
8510 ac_check_lib_save_LIBS=$LIBS
8511 LIBS="-lsocket $LIBS"
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514
8515
8516 int
8517 main (void)
8518 {
8519 return main ();
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 if ac_fn_c_try_link "$LINENO"
8525 then :
8526 ac_cv_lib_socket_main=yes
8527 else $as_nop
8528 ac_cv_lib_socket_main=no
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8533 fi
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
8535 printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
8536 if test "x$ac_cv_lib_socket_main" = xyes
8537 then :
8538 TLIBS="$TLIBS -lsocket"
8539 else $as_nop
8540 tcl_checkBoth=1
8541 fi
8542
8543 fi
8544
8545
8546 if test "$tcl_checkBoth" = 1; then
8547 tk_oldLibs=$TLIBS
8548 TLIBS="$TLIBS -lsocket -lnsl"
8549 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
8550 if test "x$ac_cv_func_accept" = xyes
8551 then :
8552 tcl_checkNsl=0
8553 else $as_nop
8554 TLIBS=$tk_oldLibs
8555 fi
8556
8557 fi
8558 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8559 if test "x$ac_cv_func_gethostbyname" = xyes
8560 then :
8561
8562 else $as_nop
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
8564 printf %s "checking for main in -lnsl... " >&6; }
8565 if test ${ac_cv_lib_nsl_main+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
8569 ac_check_lib_save_LIBS=$LIBS
8570 LIBS="-lnsl $LIBS"
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573
8574
8575 int
8576 main (void)
8577 {
8578 return main ();
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 if ac_fn_c_try_link "$LINENO"
8584 then :
8585 ac_cv_lib_nsl_main=yes
8586 else $as_nop
8587 ac_cv_lib_nsl_main=no
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8590 conftest$ac_exeext conftest.$ac_ext
8591 LIBS=$ac_check_lib_save_LIBS
8592 fi
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
8594 printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
8595 if test "x$ac_cv_lib_nsl_main" = xyes
8596 then :
8597 TLIBS="$TLIBS -lnsl"
8598 fi
8599
8600 fi
8601
8602
8603 # readline
8604 # Check whether --enable-readline was given.
8605 if test ${enable_readline+y}
8606 then :
8607 enableval=$enable_readline;
8608 fi
8609
8610
8611 if test "$use" = "mingw" ; then
8612 enable_readline=no
8613 fi
8614
8615 if test "$enable_readline" != "no" ; then
8616 for ac_header in readline/readline.h
8617 do :
8618 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "#include <stdio.h>
8619
8620 "
8621 if test "x$ac_cv_header_readline_readline_h" = xyes
8622 then :
8623 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
8625 printf %s "checking for rl_initialize in -lreadline... " >&6; }
8626 if test ${ac_cv_lib_readline_rl_initialize+y}
8627 then :
8628 printf %s "(cached) " >&6
8629 else $as_nop
8630 ac_check_lib_save_LIBS=$LIBS
8631 LIBS="-lreadline $LIBS"
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8638 char rl_initialize ();
8639 int
8640 main (void)
8641 {
8642 return rl_initialize ();
8643 ;
8644 return 0;
8645 }
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"
8648 then :
8649 ac_cv_lib_readline_rl_initialize=yes
8650 else $as_nop
8651 ac_cv_lib_readline_rl_initialize=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8654 conftest$ac_exeext conftest.$ac_ext
8655 LIBS=$ac_check_lib_save_LIBS
8656 fi
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_initialize" >&5
8658 printf "%s\n" "$ac_cv_lib_readline_rl_initialize" >&6; }
8659 if test "x$ac_cv_lib_readline_rl_initialize" = xyes
8660 then :
8661
8662 printf "%s\n" "#define USE_READLINE 1" >>confdefs.h
8663
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_getc in -lreadline" >&5
8665 printf %s "checking for el_getc in -lreadline... " >&6; }
8666 if test ${ac_cv_lib_readline_el_getc+y}
8667 then :
8668 printf %s "(cached) " >&6
8669 else $as_nop
8670 ac_check_lib_save_LIBS=$LIBS
8671 LIBS="-lreadline $LIBS"
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8674
8675 /* Override any GCC internal prototype to avoid an error.
8676 Use char because int might match the return type of a GCC
8677 builtin and then its argument prototype would still apply. */
8678 char el_getc ();
8679 int
8680 main (void)
8681 {
8682 return el_getc ();
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"
8688 then :
8689 ac_cv_lib_readline_el_getc=yes
8690 else $as_nop
8691 ac_cv_lib_readline_el_getc=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8694 conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8696 fi
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_el_getc" >&5
8698 printf "%s\n" "$ac_cv_lib_readline_el_getc" >&6; }
8699 if test "x$ac_cv_lib_readline_el_getc" = xyes
8700 then :
8701
8702 printf "%s\n" "#define READLINE_IS_EDITLINE 1" >>confdefs.h
8703
8704 fi
8705
8706 # These tests discover differences between readline 4.1 and 4.3
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
8708 printf %s "checking for rl_completion_matches in -lreadline... " >&6; }
8709 if test ${ac_cv_lib_readline_rl_completion_matches+y}
8710 then :
8711 printf %s "(cached) " >&6
8712 else $as_nop
8713 ac_check_lib_save_LIBS=$LIBS
8714 LIBS="-lreadline $LIBS"
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717
8718 /* Override any GCC internal prototype to avoid an error.
8719 Use char because int might match the return type of a GCC
8720 builtin and then its argument prototype would still apply. */
8721 char rl_completion_matches ();
8722 int
8723 main (void)
8724 {
8725 return rl_completion_matches ();
8726 ;
8727 return 0;
8728 }
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"
8731 then :
8732 ac_cv_lib_readline_rl_completion_matches=yes
8733 else $as_nop
8734 ac_cv_lib_readline_rl_completion_matches=no
8735 fi
8736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8737 conftest$ac_exeext conftest.$ac_ext
8738 LIBS=$ac_check_lib_save_LIBS
8739 fi
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
8741 printf "%s\n" "$ac_cv_lib_readline_rl_completion_matches" >&6; }
8742 if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes
8743 then :
8744
8745 printf "%s\n" "#define HAVE_DECL_RL_COMPLETION_MATCHES 1" >>confdefs.h
8746
8747
8748 printf "%s\n" "#define HAVE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8749
8750 fi
8751
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION" >&5
8753 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION... " >&6; }
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756
8757 #include <stdio.h>
8758 #include <readline/readline.h>
8759 extern Function *rl_completion_entry_function __attribute__((weak));
8760
8761 int
8762 main (void)
8763 {
8764
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"
8770 then :
8771
8772 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_FUNCTION 1" >>confdefs.h
8773
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8775 printf "%s\n" "yes" >&6; }
8776 else $as_nop
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 printf "%s\n" "no" >&6; }
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T" >&5
8780 printf %s "checking RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T... " >&6; }
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783
8784 #include <stdio.h>
8785 #include <readline/readline.h>
8786 extern rl_compentry_func_t *rl_completion_entry_function __attribute__((weak));
8787
8788 int
8789 main (void)
8790 {
8791
8792 ;
8793 return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_c_try_compile "$LINENO"
8797 then :
8798
8799 printf "%s\n" "#define RL_COMPLETION_ENTRY_FUNCTION_TYPE_RL_COMPENTRY_FUNC_T 1" >>confdefs.h
8800
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8802 printf "%s\n" "yes" >&6; }
8803 else $as_nop
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 printf "%s\n" "no" >&6; }
8806 as_fn_error $? "Unknown rl_completion_entry_function return type" "$LINENO" 5
8807 fi
8808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8811
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CHAR" >&5
8813 printf %s "checking RL_READLINE_NAME_TYPE_CHAR... " >&6; }
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816
8817 #include <stdio.h>
8818 #include <readline/readline.h>
8819 extern char *rl_readline_name __attribute__((weak));
8820
8821 int
8822 main (void)
8823 {
8824
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"
8830 then :
8831
8832 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CHAR 1" >>confdefs.h
8833
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8835 printf "%s\n" "yes" >&6; }
8836 else $as_nop
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 printf "%s\n" "no" >&6; }
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RL_READLINE_NAME_TYPE_CONST_CHAR" >&5
8840 printf %s "checking RL_READLINE_NAME_TYPE_CONST_CHAR... " >&6; }
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843
8844 #include <stdio.h>
8845 #include <readline/readline.h>
8846 extern const char *rl_readline_name __attribute__((weak));
8847
8848 int
8849 main (void)
8850 {
8851
8852 ;
8853 return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_compile "$LINENO"
8857 then :
8858
8859 printf "%s\n" "#define RL_READLINE_NAME_TYPE_CONST_CHAR 1" >>confdefs.h
8860
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8862 printf "%s\n" "yes" >&6; }
8863 else $as_nop
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 printf "%s\n" "no" >&6; }
8866 as_fn_error $? "Unknown rl_readline_name return type" "$LINENO" 5
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8869 fi
8870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8871 TLIBS="$TLIBS -lreadline" #some machines don't link this, e.g. Slackware
8872 RL_OBJS=gcl_readline.o
8873 fi
8874
8875 fi
8876
8877 done
8878 fi
8879
8880
8881
8882
8883 # sockets
8884
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For network code for nsocket.c" >&5
8886 printf %s "checking For network code for nsocket.c... " >&6; }
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889
8890 #include <sys/time.h>
8891 #include <sys/types.h>
8892 #include <unistd.h>
8893
8894 #include <errno.h>
8895 #include <fcntl.h>
8896 #include <stdio.h>
8897
8898 /************* for the sockets ******************/
8899 #include <sys/socket.h> /* struct sockaddr, SOCK_STREAM, ... */
8900 #ifndef NO_UNAME
8901 # include <sys/utsname.h> /* uname system call. */
8902 #endif
8903 #include <netinet/in.h> /* struct in_addr, struct sockaddr_in */
8904 #include <arpa/inet.h> /* inet_ntoa() */
8905 #include <netdb.h> /* gethostbyname() */
8906
8907 int
8908 main (void)
8909 {
8910
8911 connect(0,(struct sockaddr *)0,0);
8912 gethostbyname("jil");
8913 socket(AF_INET, SOCK_STREAM, 0);
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"
8920 then :
8921
8922 printf "%s\n" "#define HAVE_NSOCKET 1" >>confdefs.h
8923
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8925 printf "%s\n" "yes" >&6; }
8926 else $as_nop
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 printf "%s\n" "no" >&6; }
8929 fi
8930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8931 conftest$ac_exeext conftest.$ac_ext
8932
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for listen using fcntl" >&5
8935 printf %s "checking check for listen using fcntl... " >&6; }
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938
8939 #include <stdio.h>
8940 #include <fcntl.h>
8941
8942 int
8943 main (void)
8944 {
8945
8946 FILE *fp=fopen("configure.in","r");
8947 int orig;
8948 orig = fcntl(fileno(fp), F_GETFL);
8949 if (! (orig & O_NONBLOCK )) return 0;
8950
8951 ;
8952 return 0;
8953 }
8954 _ACEOF
8955 if ac_fn_c_try_compile "$LINENO"
8956 then :
8957
8958 printf "%s\n" "#define LISTEN_USE_FCNTL 1" >>confdefs.h
8959
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8961 printf "%s\n" "yes" >&6; }
8962 else $as_nop
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 printf "%s\n" "no" >&6; }
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8967
8968
8969 ac_fn_c_check_func "$LINENO" "profil" "ac_cv_func_profil"
8970 if test "x$ac_cv_func_profil" = xyes
8971 then :
8972
8973 else $as_nop
8974
8975 printf "%s\n" "#define NO_PROFILE 1" >>confdefs.h
8976
8977 fi
8978
8979
8980 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
8981 if test "x$ac_cv_func_setenv" = xyes
8982 then :
8983
8984 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
8985
8986 else $as_nop
8987 no_setenv=1
8988 fi
8989
8990
8991 if test "$no_setenv" = "1" ; then
8992 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
8993 if test "x$ac_cv_func_putenv" = xyes
8994 then :
8995
8996 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
8997
8998 fi
8999
9000
9001 fi
9002
9003 ac_fn_c_check_func "$LINENO" "_cleanup" "ac_cv_func__cleanup"
9004 if test "x$ac_cv_func__cleanup" = xyes
9005 then :
9006
9007 printf "%s\n" "#define USE_CLEANUP 1" >>confdefs.h
9008
9009 fi
9010
9011
9012 gcl_ok=no
9013
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
9015 printf %s "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... " >&6; }
9016
9017 case $system in
9018 OSF*)
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 SunOS-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 ULTRIX-4.*)
9033
9034 printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h
9035
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5
9037 printf "%s\n" "FIONBIO" >&6; }
9038 ;;
9039 *)
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: O_NONBLOCK" >&5
9041 printf "%s\n" "O_NONBLOCK" >&6; }
9042 ;;
9043 esac
9044
9045
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SV_ONSTACK" >&5
9047 printf %s "checking check for SV_ONSTACK... " >&6; }
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050
9051 #include <signal.h>
9052 int joe=SV_ONSTACK;
9053
9054 int
9055 main (void)
9056 {
9057
9058 ;
9059 return 0;
9060 }
9061 _ACEOF
9062 if ac_fn_c_try_compile "$LINENO"
9063 then :
9064
9065 printf "%s\n" "#define HAVE_SV_ONSTACK 1" >>confdefs.h
9066
9067
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9069 printf "%s\n" "yes" >&6; }
9070 else $as_nop
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 printf "%s\n" "no" >&6; }
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9075
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGSYS" >&5
9077 printf %s "checking check for SIGSYS... " >&6; }
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080
9081 #include <signal.h>
9082 int joe=SIGSYS;
9083
9084 int
9085 main (void)
9086 {
9087
9088 ;
9089 return 0;
9090 }
9091 _ACEOF
9092 if ac_fn_c_try_compile "$LINENO"
9093 then :
9094
9095 printf "%s\n" "#define HAVE_SIGSYS 1" >>confdefs.h
9096
9097
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9099 printf "%s\n" "yes" >&6; }
9100 else $as_nop
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 printf "%s\n" "no" >&6; }
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9105
9106
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking check for SIGEMT" >&5
9108 printf %s "checking check for SIGEMT... " >&6; }
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111
9112 #include <signal.h>
9113 int joe=SIGEMT;
9114
9115 int
9116 main (void)
9117 {
9118
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_c_try_compile "$LINENO"
9124 then :
9125
9126 printf "%s\n" "#define HAVE_SIGEMT 1" >>confdefs.h
9127
9128
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130 printf "%s\n" "yes" >&6; }
9131 else $as_nop
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 printf "%s\n" "no" >&6; }
9134 fi
9135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9136
9137 ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
9138 if test "x$ac_cv_func_sigaltstack" = xyes
9139 then :
9140 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
9141
9142 fi
9143
9144 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
9145 if test "x$ac_cv_func_feenableexcept" = xyes
9146 then :
9147 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
9148
9149 fi
9150
9151
9152 for ac_header in dis-asm.h
9153 do :
9154 ac_fn_c_check_header_compile "$LINENO" "dis-asm.h" "ac_cv_header_dis_asm_h" "$ac_includes_default"
9155 if test "x$ac_cv_header_dis_asm_h" = xyes
9156 then :
9157 printf "%s\n" "#define HAVE_DIS_ASM_H 1" >>confdefs.h
9158 MLIBS=$LIBS
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for init_disassemble_info in -lopcodes" >&5
9160 printf %s "checking for init_disassemble_info in -lopcodes... " >&6; }
9161 if test ${ac_cv_lib_opcodes_init_disassemble_info+y}
9162 then :
9163 printf %s "(cached) " >&6
9164 else $as_nop
9165 ac_check_lib_save_LIBS=$LIBS
9166 LIBS="-lopcodes $LIBS"
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9173 char init_disassemble_info ();
9174 int
9175 main (void)
9176 {
9177 return init_disassemble_info ();
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"
9183 then :
9184 ac_cv_lib_opcodes_init_disassemble_info=yes
9185 else $as_nop
9186 ac_cv_lib_opcodes_init_disassemble_info=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opcodes_init_disassemble_info" >&5
9193 printf "%s\n" "$ac_cv_lib_opcodes_init_disassemble_info" >&6; }
9194 if test "x$ac_cv_lib_opcodes_init_disassemble_info" = xyes
9195 then :
9196 printf "%s\n" "#define HAVE_LIBOPCODES 1" >>confdefs.h
9197
9198 LIBS="-lopcodes $LIBS"
9199
9200 fi
9201
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9203 printf %s "checking for dlopen in -ldl... " >&6; }
9204 if test ${ac_cv_lib_dl_dlopen+y}
9205 then :
9206 printf %s "(cached) " >&6
9207 else $as_nop
9208 ac_check_lib_save_LIBS=$LIBS
9209 LIBS="-ldl $LIBS"
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212
9213 /* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
9216 char dlopen ();
9217 int
9218 main (void)
9219 {
9220 return dlopen ();
9221 ;
9222 return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"
9226 then :
9227 ac_cv_lib_dl_dlopen=yes
9228 else $as_nop
9229 ac_cv_lib_dl_dlopen=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9232 conftest$ac_exeext conftest.$ac_ext
9233 LIBS=$ac_check_lib_save_LIBS
9234 fi
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9236 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9237 if test "x$ac_cv_lib_dl_dlopen" = xyes
9238 then :
9239 #opcodes changes too quickly to link directly
9240 LIBS="$MLIBS -ldl"
9241 fi
9242
9243 fi
9244
9245 done
9246
9247 #if test $use = "386-linux" ; then
9248 ac_fn_c_check_header_compile "$LINENO" "asm/sigcontext.h" "ac_cv_header_asm_sigcontext_h" "$ac_includes_default"
9249 if test "x$ac_cv_header_asm_sigcontext_h" = xyes
9250 then :
9251 printf "%s\n" "#define HAVE_ASM_SIGCONTEXT_H 1" >>confdefs.h
9252
9253 fi
9254
9255 ac_fn_c_check_header_compile "$LINENO" "asm/signal.h" "ac_cv_header_asm_signal_h" "$ac_includes_default"
9256 if test "x$ac_cv_header_asm_signal_h" = xyes
9257 then :
9258 printf "%s\n" "#define HAVE_ASM_SIGNAL_H 1" >>confdefs.h
9259
9260 fi
9261
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9263 printf %s "checking for sigcontext...... " >&6; }
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266
9267 #include <signal.h>
9268
9269 int
9270 main (void)
9271 {
9272
9273 struct sigcontext foo;
9274
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"
9280 then :
9281
9282 printf "%s\n" "#define SIGNAL_H_HAS_SIGCONTEXT 1" >>confdefs.h
9283
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext of signal.h" >&5
9285 printf "%s\n" "sigcontext of signal.h" >&6; }
9286 else $as_nop
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext NOT of signal.h" >&5
9288 printf "%s\n" "sigcontext NOT of signal.h" >&6; }
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigcontext..." >&5
9290 printf %s "checking for sigcontext...... " >&6; }
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293
9294 #include <signal.h>
9295 #ifdef HAVE_ASM_SIGCONTEXT_H
9296 #include <asm/sigcontext.h>
9297 #endif
9298 #ifdef HAVE_ASM_SIGNAL_H
9299 #include <asm/signal.h>
9300 #endif
9301
9302 int
9303 main (void)
9304 {
9305
9306 struct sigcontext foo;
9307
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"
9313 then :
9314
9315 printf "%s\n" "#define HAVE_SIGCONTEXT 1" >>confdefs.h
9316
9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: sigcontext asm files" >&5
9318 printf "%s\n" "sigcontext asm files" >&6; }
9319 else $as_nop
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no sigcontext found" >&5
9321 printf "%s\n" "no sigcontext found" >&6; }
9322 fi
9323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9326
9327 # Extract the first word of "emacs", so it can be a program name with args.
9328 set dummy emacs; ac_word=$2
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 printf %s "checking for $ac_word... " >&6; }
9331 if test ${ac_cv_path_EMACS+y}
9332 then :
9333 printf %s "(cached) " >&6
9334 else $as_nop
9335 case $EMACS in
9336 [\\/]* | ?:[\\/]*)
9337 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
9338 ;;
9339 *)
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343 IFS=$as_save_IFS
9344 case $as_dir in #(((
9345 '') as_dir=./ ;;
9346 */) ;;
9347 *) as_dir=$as_dir/ ;;
9348 esac
9349 for ac_exec_ext in '' $ac_executable_extensions; do
9350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9351 ac_cv_path_EMACS="$as_dir$ac_word$ac_exec_ext"
9352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9353 break 2
9354 fi
9355 done
9356 done
9357 IFS=$as_save_IFS
9358
9359 ;;
9360 esac
9361 fi
9362 EMACS=$ac_cv_path_EMACS
9363 if test -n "$EMACS"; then
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
9365 printf "%s\n" "$EMACS" >&6; }
9366 else
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 printf "%s\n" "no" >&6; }
9369 fi
9370
9371
9372
9373
9374 # check for where the emacs site lisp directory is.
9375 rm -f conftest.el
9376 cat >> conftest.el <<EOF
9377 (let ((ans ".") (tem load-path) cur)
9378 (while (setq cur (car tem))
9379 (setq tem (cdr tem))
9380 (cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur))
9381 (setq ans cur)
9382 (if (string-match "-0-9.+$" cur) nil
9383 (setq tem nil)))))
9384 (message ans))
9385 EOF
9386
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs site lisp directory" >&5
9388 printf %s "checking emacs site lisp directory... " >&6; }
9389 if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
9390 if [ "$EMACS" != "" ] ; then
9391 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`
9392 else
9393 EMACS_SITE_LISP=""
9394 fi
9395 fi
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_SITE_LISP" >&5
9397 printf "%s\n" "$EMACS_SITE_LISP" >&6; }
9398
9399
9400 # check for where the emacs site lisp default.el is
9401 rm -f conftest.el
9402 cat >> conftest.el <<EOF
9403 (let ((ans "./default.el") file (tem load-path))
9404 (while tem
9405 (cond ((file-exists-p
9406 (setq file (expand-file-name "/default.el" (car tem))))
9407 (setq tem nil) (setq ans file)))
9408 (setq tem (cdr tem)))
9409 (message ans))
9410 EOF
9411
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs default.el" >&5
9413 printf %s "checking emacs default.el... " >&6; }
9414 if [ "$EMACS" != "" ] ; then
9415 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`
9416 else
9417 EMACS_DEFAULT_EL=""
9418 fi
9419 if test -f "${EMACS_DEFAULT_EL}" ; then true;else
9420 if test -d $EMACS_SITE_LISP ; then
9421 EMACS_DEFAULT_EL=${EMACS_SITE_LISP}/default.el
9422 fi
9423 fi
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS_DEFAULT_EL" >&5
9425 printf "%s\n" "$EMACS_DEFAULT_EL" >&6; }
9426
9427
9428
9429
9430 # check for where the emacs site lisp info/dir is
9431 rm -f conftest.el
9432 cat >> conftest.el <<EOF
9433 (let ((ans "") file (tem Info-default-directory-list))
9434 (while tem
9435 (cond ((file-exists-p (setq file (expand-file-name "dir" (car tem))))
9436 (setq ans (file-name-as-directory (car tem)))
9437 (setq tem nil) ))
9438 (setq tem (cdr tem)))
9439 (message ans))
9440 EOF
9441
9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking emacs info/dir" >&5
9443 printf %s "checking emacs info/dir... " >&6; }
9444 if test "$use" = "mingw" ; then
9445 INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
9446 else
9447 if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
9448 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`
9449 fi
9450 fi
9451
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INFO_DIR" >&5
9453 printf "%s\n" "$INFO_DIR" >&6; }
9454
9455
9456 # Check whether --enable-tcltk was given.
9457 if test ${enable_tcltk+y}
9458 then :
9459 enableval=$enable_tcltk;
9460 fi
9461
9462 # Check whether --enable-tkconfig was given.
9463 if test ${enable_tkconfig+y}
9464 then :
9465 enableval=$enable_tkconfig; TK_CONFIG_PREFIX=$enableval
9466 else $as_nop
9467 TK_CONFIG_PREFIX=unknown
9468 fi
9469
9470 # Check whether --enable-tclconfig was given.
9471 if test ${enable_tclconfig+y}
9472 then :
9473 enableval=$enable_tclconfig; TCL_CONFIG_PREFIX=$enableval
9474 else $as_nop
9475 TCL_CONFIG_PREFIX=unknown
9476 fi
9477
9478
9479 if test "$enable_tcltk" != "no" ; then
9480
9481 if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else
9482
9483 # Extract the first word of "tclsh", so it can be a program name with args.
9484 set dummy tclsh; ac_word=$2
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9486 printf %s "checking for $ac_word... " >&6; }
9487 if test ${ac_cv_prog_TCLSH+y}
9488 then :
9489 printf %s "(cached) " >&6
9490 else $as_nop
9491 if test -n "$TCLSH"; then
9492 ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test.
9493 else
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497 IFS=$as_save_IFS
9498 case $as_dir in #(((
9499 '') as_dir=./ ;;
9500 */) ;;
9501 *) as_dir=$as_dir/ ;;
9502 esac
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9505 ac_cv_prog_TCLSH="tclsh"
9506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9507 break 2
9508 fi
9509 done
9510 done
9511 IFS=$as_save_IFS
9512
9513 test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}"
9514 fi
9515 fi
9516 TCLSH=$ac_cv_prog_TCLSH
9517 if test -n "$TCLSH"; then
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
9519 printf "%s\n" "$TCLSH" >&6; }
9520 else
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 printf "%s\n" "no" >&6; }
9523 fi
9524
9525
9526
9527 if test "${TCLSH}" = "" ; then true ; else
9528
9529 rm -f conftest.tcl
9530 cat >> conftest.tcl <<EOF
9531
9532 puts [set tcl_version]
9533
9534 EOF
9535
9536 TCL_VERSION=`${TCLSH} < conftest.tcl`
9537 fi
9538
9539 if test -x /usr/lib/tcl$TCL_VERSION/tclConfig.sh ; then
9540 TCL_CONFIG_PREFIX=/usr/lib/tcl$TCL_VERSION
9541 fi
9542
9543 fi
9544
9545 if test -f ${TCL_CONFIG_PREFIX}/tclConfig.sh ; then . ${TCL_CONFIG_PREFIX}/tclConfig.sh ; fi
9546
9547 if test -d "${TK_CONFIG_PREFIX}" ; then true ; else
9548 if test -f ${TCL_CONFIG_PREFIX}/tkConfig.sh ; then
9549 TK_CONFIG_PREFIX=${TCL_CONFIG_PREFIX}
9550 else
9551 if test -x `echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`/tkConfig.sh ; then
9552 TK_CONFIG_PREFIX=`echo $TCL_CONFIG_PREFIX | sed 's,tcl,tk,g'`
9553 fi
9554 fi
9555 fi
9556
9557 if test -f ${TK_CONFIG_PREFIX}/tkConfig.sh ; then . ${TK_CONFIG_PREFIX}/tkConfig.sh ; fi
9558
9559 if test -d ${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION} ; then
9560 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/tcl${TCL_VERSION}
9561 else
9562 if test -d ${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION} ; then
9563 TCL_LIBRARY=${TCL_CONFIG_PREFIX}/../tcl${TCL_VERSION}
9564 fi
9565 fi
9566
9567 if test -d ${TK_CONFIG_PREFIX}/tk${TK_VERSION} ; then
9568 TK_LIBRARY=${TK_CONFIG_PREFIX}/tk${TK_VERSION}
9569 else
9570 if test -d ${TK_CONFIG_PREFIX}/../tk${TK_VERSION} ; then
9571 TK_LIBRARY=${TK_CONFIG_PREFIX}/../tk${TK_VERSION}
9572 fi
9573 fi
9574
9575 if test -f ${TCL_CONFIG_PREFIX}/../include/tcl.h ; then
9576 TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include
9577 else
9578 if test -f /usr/include/tcl${TCL_VERSION}/tcl.h ; then
9579 TCL_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9580 fi
9581 fi
9582
9583 if test -f ${TK_CONFIG_PREFIX}/../include/tk.h ; then
9584 TK_INCLUDE=-I${TK_CONFIG_PREFIX}/../include
9585 else
9586 if test -f /usr/include/tcl${TCL_VERSION}/tk.h ; then
9587 TK_INCLUDE=-I/usr/include/tcl${TCL_VERSION}
9588 fi
9589 fi
9590
9591 TCL_VERSION_DOT_FREE=`echo ${TCL_VERSION} | tr -d .`
9592 if test -f ${TK_CONFIG_PREFIX}/../bin/tcl${TCL_VERSION_DOT_FREE}.dll ; then
9593 TCL_LIBS="-L${TK_CONFIG_PREFIX}/../bin -ltk${TCL_VERSION_DOT_FREE} -ltcl${TCL_VERSION_DOT_FREE}"
9594 TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
9595 else
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -llieee" >&5
9597 printf %s "checking for main in -llieee... " >&6; }
9598 if test ${ac_cv_lib_lieee_main+y}
9599 then :
9600 printf %s "(cached) " >&6
9601 else $as_nop
9602 ac_check_lib_save_LIBS=$LIBS
9603 LIBS="-llieee $LIBS"
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606
9607
9608 int
9609 main (void)
9610 {
9611 return main ();
9612 ;
9613 return 0;
9614 }
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"
9617 then :
9618 ac_cv_lib_lieee_main=yes
9619 else $as_nop
9620 ac_cv_lib_lieee_main=no
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9625 fi
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lieee_main" >&5
9627 printf "%s\n" "$ac_cv_lib_lieee_main" >&6; }
9628 if test "x$ac_cv_lib_lieee_main" = xyes
9629 then :
9630 have_ieee=1
9631 else $as_nop
9632 have_ieee=0
9633 fi
9634
9635 if test "$have_ieee" = "0" ; then
9636 TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `
9637 fi
9638 TCL_STUB_LIBS=""
9639 fi
9640
9641 fi
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcl/tk" >&5
9664 printf %s "checking for tcl/tk... " >&6; }
9665 if test -d "${TK_CONFIG_PREFIX}" ; then
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&5
9667 printf "%s\n" "using TK_VERSION=${TK_VERSION} of ${TK_CONFIG_PREFIX}" >&6; }
9668 else
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9670 printf "%s\n" "not found" >&6; }
9671 fi
9672
9673 # Check whether --enable-notify was given.
9674 if test ${enable_notify+y}
9675 then :
9676 enableval=$enable_notify; NOTIFY=$enable_notify
9677
9678 fi
9679
9680
9681
9682 # for sgbc the mprotect capabilities.
9683
9684 # the time handling for unixtime, add timezone
9685 for ac_header in sys/mman.h
9686 do :
9687 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9688 if test "x$ac_cv_header_sys_mman_h" = xyes
9689 then :
9690 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
9691 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
9692 if test "x$ac_cv_func_mprotect" = xyes
9693 then :
9694 printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
9695
9696 fi
9697
9698 fi
9699
9700 done
9701 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
9702 if test "x$ac_cv_header_alloca_h" = xyes
9703 then :
9704 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9705
9706 fi
9707
9708 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9709 if test "x$ac_cv_type_size_t" = xyes
9710 then :
9711
9712 else $as_nop
9713
9714 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
9715
9716 fi
9717
9718 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9719 # for constant arguments. Useless!
9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9721 printf %s "checking for working alloca.h... " >&6; }
9722 if test ${ac_cv_working_alloca_h+y}
9723 then :
9724 printf %s "(cached) " >&6
9725 else $as_nop
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <alloca.h>
9729 int
9730 main (void)
9731 {
9732 char *p = (char *) alloca (2 * sizeof (int));
9733 if (p) return 0;
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"
9739 then :
9740 ac_cv_working_alloca_h=yes
9741 else $as_nop
9742 ac_cv_working_alloca_h=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9745 conftest$ac_exeext conftest.$ac_ext
9746 fi
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9748 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
9749 if test $ac_cv_working_alloca_h = yes; then
9750
9751 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
9752
9753 fi
9754
9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9756 printf %s "checking for alloca... " >&6; }
9757 if test ${ac_cv_func_alloca_works+y}
9758 then :
9759 printf %s "(cached) " >&6
9760 else $as_nop
9761 if test $ac_cv_working_alloca_h = yes; then
9762 ac_cv_func_alloca_works=yes
9763 else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 #include <stdlib.h>
9767 #include <stddef.h>
9768 #ifndef alloca
9769 # ifdef __GNUC__
9770 # define alloca __builtin_alloca
9771 # elif defined _MSC_VER
9772 # include <malloc.h>
9773 # define alloca _alloca
9774 # else
9775 # ifdef __cplusplus
9776 extern "C"
9777 # endif
9778 void *alloca (size_t);
9779 # endif
9780 #endif
9781
9782 int
9783 main (void)
9784 {
9785 char *p = (char *) alloca (1);
9786 if (p) return 0;
9787 ;
9788 return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"
9792 then :
9793 ac_cv_func_alloca_works=yes
9794 else $as_nop
9795 ac_cv_func_alloca_works=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9798 conftest$ac_exeext conftest.$ac_ext
9799 fi
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9801 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
9802 fi
9803
9804 if test $ac_cv_func_alloca_works = yes; then
9805
9806 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
9807
9808 else
9809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9810 # that cause trouble. Some versions do not even contain alloca or
9811 # contain a buggy version. If you still want to use their alloca,
9812 # use ar to extract alloca.o from them instead of compiling alloca.c.
9813
9814 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9815
9816 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
9817
9818
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9820 printf %s "checking stack direction for C alloca... " >&6; }
9821 if test ${ac_cv_c_stack_direction+y}
9822 then :
9823 printf %s "(cached) " >&6
9824 else $as_nop
9825 if test "$cross_compiling" = yes
9826 then :
9827 ac_cv_c_stack_direction=0
9828 else $as_nop
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 $ac_includes_default
9832 int
9833 find_stack_direction (int *addr, int depth)
9834 {
9835 int dir, dummy = 0;
9836 if (! addr)
9837 addr = &dummy;
9838 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9839 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9840 return dir + dummy;
9841 }
9842
9843 int
9844 main (int argc, char **argv)
9845 {
9846 return find_stack_direction (0, argc + !argv + 20) < 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_run "$LINENO"
9850 then :
9851 ac_cv_c_stack_direction=1
9852 else $as_nop
9853 ac_cv_c_stack_direction=-1
9854 fi
9855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9856 conftest.$ac_objext conftest.beam conftest.$ac_ext
9857 fi
9858
9859 fi
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9861 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
9862 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
9863
9864
9865 fi
9866
9867
9868
9869 LDFLAGS="`echo $GPL_FLAG $LDFLAGS | sed 's,gcl.script,../unixport/gcl.script,g'`"
9870
9871 LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS $TLIBS"
9872
9873 CFLAGS="$CFLAGS $GP_FLAG"
9874 FINAL_CFLAGS="$CFLAGS $CPPFLAGS $X_CFLAGS"
9875
9876 # Work around bug with gcc on ppc -- CM
9877 NIFLAGS="$CFLAGS $CPPFLAGS $TONIFLAGS -I\$(GCLDIR)/o"
9878
9879 CFLAGS="$CFLAGS $CPPFLAGS $TO3FLAGS -I\$(GCLDIR)/o"
9880
9881 O3FLAGS=$TO3FLAGS
9882
9883 O2FLAGS=$TO2FLAGS
9884
9885
9886
9887
9888
9889 if test -f h/$use.defs ; then
9890
9891
9892 ac_config_files="$ac_config_files makedefc windows/gcl.iss windows/sysdir.bat windows/install.lsp"
9893
9894 cat >confcache <<\_ACEOF
9895 # This file is a shell script that caches the results of configure
9896 # tests run on this system so they can be shared between configure
9897 # scripts and configure runs, see configure's option --config-cache.
9898 # It is not useful on other systems. If it contains results you don't
9899 # want to keep, you may remove or edit it.
9900 #
9901 # config.status only pays attention to the cache file if you give it
9902 # the --recheck option to rerun configure.
9903 #
9904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9906 # following values.
9907
9908 _ACEOF
9909
9910 # The following way of writing the cache mishandles newlines in values,
9911 # but we know of no workaround that is simple, portable, and efficient.
9912 # So, we kill variables containing newlines.
9913 # Ultrix sh set writes to stderr and can't be redirected directly,
9914 # and sets the high bit in the cache file unless we assign to the vars.
9915 (
9916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9917 eval ac_val=\$$ac_var
9918 case $ac_val in #(
9919 *${as_nl}*)
9920 case $ac_var in #(
9921 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9922 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9923 esac
9924 case $ac_var in #(
9925 _ | IFS | as_nl) ;; #(
9926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9927 *) { eval $ac_var=; unset $ac_var;} ;;
9928 esac ;;
9929 esac
9930 done
9931
9932 (set) 2>&1 |
9933 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9934 *${as_nl}ac_space=\ *)
9935 # `set' does not quote correctly, so add quotes: double-quote
9936 # substitution turns \\\\ into \\, and sed turns \\ into \.
9937 sed -n \
9938 "s/'/'\\\\''/g;
9939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9940 ;; #(
9941 *)
9942 # `set' quotes correctly as required by POSIX, so do not add quotes.
9943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9944 ;;
9945 esac |
9946 sort
9947 ) |
9948 sed '
9949 /^ac_cv_env_/b end
9950 t clear
9951 :clear
9952 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9953 t end
9954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9955 :end' >>confcache
9956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9957 if test -w "$cache_file"; then
9958 if test "x$cache_file" != "x/dev/null"; then
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9960 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9961 if test ! -f "$cache_file" || test -h "$cache_file"; then
9962 cat confcache >"$cache_file"
9963 else
9964 case $cache_file in #(
9965 */* | ?:*)
9966 mv -f confcache "$cache_file"$$ &&
9967 mv -f "$cache_file"$$ "$cache_file" ;; #(
9968 *)
9969 mv -f confcache "$cache_file" ;;
9970 esac
9971 fi
9972 fi
9973 else
9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9975 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9976 fi
9977 fi
9978 rm -f confcache
9979
9980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9981 # Let make expand exec_prefix.
9982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9983
9984 DEFS=-DHAVE_CONFIG_H
9985
9986 ac_libobjs=
9987 ac_ltlibobjs=
9988 U=
9989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9990 # 1. Remove the extension, and $U if already installed.
9991 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9992 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9993 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9994 # will be set to the directory where LIBOBJS objects are built.
9995 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9996 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9997 done
9998 LIBOBJS=$ac_libobjs
9999
10000 LTLIBOBJS=$ac_ltlibobjs
10001
10002
10003
10004 : "${CONFIG_STATUS=./config.status}"
10005 ac_write_fail=0
10006 ac_clean_files_save=$ac_clean_files
10007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10009 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10010 as_write_fail=0
10011 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10012 #! $SHELL
10013 # Generated by $as_me.
10014 # Run this file to recreate the current configuration.
10015 # Compiler output produced by configure, useful for debugging
10016 # configure, is in config.log if it exists.
10017
10018 debug=false
10019 ac_cs_recheck=false
10020 ac_cs_silent=false
10021
10022 SHELL=\${CONFIG_SHELL-$SHELL}
10023 export SHELL
10024 _ASEOF
10025 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10026 ## -------------------- ##
10027 ## M4sh Initialization. ##
10028 ## -------------------- ##
10029
10030 # Be more Bourne compatible
10031 DUALCASE=1; export DUALCASE # for MKS sh
10032 as_nop=:
10033 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10034 then :
10035 emulate sh
10036 NULLCMD=:
10037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10038 # is contrary to our usage. Disable this feature.
10039 alias -g '${1+"$@"}'='"$@"'
10040 setopt NO_GLOB_SUBST
10041 else $as_nop
10042 case `(set -o) 2>/dev/null` in #(
10043 *posix*) :
10044 set -o posix ;; #(
10045 *) :
10046 ;;
10047 esac
10048 fi
10049
10050
10051
10052 # Reset variables that may have inherited troublesome values from
10053 # the environment.
10054
10055 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10056 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10057 # side effect of setting IFS to empty, thus disabling word splitting.)
10058 # Quoting is to prevent editors from complaining about space-tab.
10059 as_nl='
10060 '
10061 export as_nl
10062 IFS=" "" $as_nl"
10063
10064 PS1='$ '
10065 PS2='> '
10066 PS4='+ '
10067
10068 # Ensure predictable behavior from utilities with locale-dependent output.
10069 LC_ALL=C
10070 export LC_ALL
10071 LANGUAGE=C
10072 export LANGUAGE
10073
10074 # We cannot yet rely on "unset" to work, but we need these variables
10075 # to be unset--not just set to an empty or harmless value--now, to
10076 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10077 # also avoids known problems related to "unset" and subshell syntax
10078 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10079 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10080 do eval test \${$as_var+y} \
10081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10082 done
10083
10084 # Ensure that fds 0, 1, and 2 are open.
10085 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10086 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10087 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10088
10089 # The user is always right.
10090 if ${PATH_SEPARATOR+false} :; then
10091 PATH_SEPARATOR=:
10092 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10093 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10094 PATH_SEPARATOR=';'
10095 }
10096 fi
10097
10098
10099 # Find who we are. Look in the path if we contain no directory separator.
10100 as_myself=
10101 case $0 in #((
10102 *[\\/]* ) as_myself=$0 ;;
10103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106 IFS=$as_save_IFS
10107 case $as_dir in #(((
10108 '') as_dir=./ ;;
10109 */) ;;
10110 *) as_dir=$as_dir/ ;;
10111 esac
10112 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10113 done
10114 IFS=$as_save_IFS
10115
10116 ;;
10117 esac
10118 # We did not find ourselves, most probably we were run as `sh COMMAND'
10119 # in which case we are not to be found in the path.
10120 if test "x$as_myself" = x; then
10121 as_myself=$0
10122 fi
10123 if test ! -f "$as_myself"; then
10124 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10125 exit 1
10126 fi
10127
10128
10129
10130 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10131 # ----------------------------------------
10132 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10133 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10134 # script with STATUS, using 1 if that was 0.
10135 as_fn_error ()
10136 {
10137 as_status=$1; test $as_status -eq 0 && as_status=1
10138 if test "$4"; then
10139 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10141 fi
10142 printf "%s\n" "$as_me: error: $2" >&2
10143 as_fn_exit $as_status
10144 } # as_fn_error
10145
10146
10147
10148 # as_fn_set_status STATUS
10149 # -----------------------
10150 # Set $? to STATUS, without forking.
10151 as_fn_set_status ()
10152 {
10153 return $1
10154 } # as_fn_set_status
10155
10156 # as_fn_exit STATUS
10157 # -----------------
10158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10159 as_fn_exit ()
10160 {
10161 set +e
10162 as_fn_set_status $1
10163 exit $1
10164 } # as_fn_exit
10165
10166 # as_fn_unset VAR
10167 # ---------------
10168 # Portably unset VAR.
10169 as_fn_unset ()
10170 {
10171 { eval $1=; unset $1;}
10172 }
10173 as_unset=as_fn_unset
10174
10175 # as_fn_append VAR VALUE
10176 # ----------------------
10177 # Append the text in VALUE to the end of the definition contained in VAR. Take
10178 # advantage of any shell optimizations that allow amortized linear growth over
10179 # repeated appends, instead of the typical quadratic growth present in naive
10180 # implementations.
10181 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10182 then :
10183 eval 'as_fn_append ()
10184 {
10185 eval $1+=\$2
10186 }'
10187 else $as_nop
10188 as_fn_append ()
10189 {
10190 eval $1=\$$1\$2
10191 }
10192 fi # as_fn_append
10193
10194 # as_fn_arith ARG...
10195 # ------------------
10196 # Perform arithmetic evaluation on the ARGs, and store the result in the
10197 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10198 # must be portable across $(()) and expr.
10199 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10200 then :
10201 eval 'as_fn_arith ()
10202 {
10203 as_val=$(( $* ))
10204 }'
10205 else $as_nop
10206 as_fn_arith ()
10207 {
10208 as_val=`expr "$@" || test $? -eq 1`
10209 }
10210 fi # as_fn_arith
10211
10212
10213 if expr a : '\(a\)' >/dev/null 2>&1 &&
10214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10215 as_expr=expr
10216 else
10217 as_expr=false
10218 fi
10219
10220 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10221 as_basename=basename
10222 else
10223 as_basename=false
10224 fi
10225
10226 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10227 as_dirname=dirname
10228 else
10229 as_dirname=false
10230 fi
10231
10232 as_me=`$as_basename -- "$0" ||
10233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10234 X"$0" : 'X\(//\)$' \| \
10235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10236 printf "%s\n" X/"$0" |
10237 sed '/^.*\/\([^/][^/]*\)\/*$/{
10238 s//\1/
10239 q
10240 }
10241 /^X\/\(\/\/\)$/{
10242 s//\1/
10243 q
10244 }
10245 /^X\/\(\/\).*/{
10246 s//\1/
10247 q
10248 }
10249 s/.*/./; q'`
10250
10251 # Avoid depending upon Character Ranges.
10252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10255 as_cr_digits='0123456789'
10256 as_cr_alnum=$as_cr_Letters$as_cr_digits
10257
10258
10259 # Determine whether it's possible to make 'echo' print without a newline.
10260 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10261 # for compatibility with existing Makefiles.
10262 ECHO_C= ECHO_N= ECHO_T=
10263 case `echo -n x` in #(((((
10264 -n*)
10265 case `echo 'xy\c'` in
10266 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10267 xy) ECHO_C='\c';;
10268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10269 ECHO_T=' ';;
10270 esac;;
10271 *)
10272 ECHO_N='-n';;
10273 esac
10274
10275 # For backward compatibility with old third-party macros, we provide
10276 # the shell variables $as_echo and $as_echo_n. New code should use
10277 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10278 as_echo='printf %s\n'
10279 as_echo_n='printf %s'
10280
10281 rm -f conf$$ conf$$.exe conf$$.file
10282 if test -d conf$$.dir; then
10283 rm -f conf$$.dir/conf$$.file
10284 else
10285 rm -f conf$$.dir
10286 mkdir conf$$.dir 2>/dev/null
10287 fi
10288 if (echo >conf$$.file) 2>/dev/null; then
10289 if ln -s conf$$.file conf$$ 2>/dev/null; then
10290 as_ln_s='ln -s'
10291 # ... but there are two gotchas:
10292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10294 # In both cases, we have to default to `cp -pR'.
10295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10296 as_ln_s='cp -pR'
10297 elif ln conf$$.file conf$$ 2>/dev/null; then
10298 as_ln_s=ln
10299 else
10300 as_ln_s='cp -pR'
10301 fi
10302 else
10303 as_ln_s='cp -pR'
10304 fi
10305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10306 rmdir conf$$.dir 2>/dev/null
10307
10308
10309 # as_fn_mkdir_p
10310 # -------------
10311 # Create "$as_dir" as a directory, including parents if necessary.
10312 as_fn_mkdir_p ()
10313 {
10314
10315 case $as_dir in #(
10316 -*) as_dir=./$as_dir;;
10317 esac
10318 test -d "$as_dir" || eval $as_mkdir_p || {
10319 as_dirs=
10320 while :; do
10321 case $as_dir in #(
10322 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10323 *) as_qdir=$as_dir;;
10324 esac
10325 as_dirs="'$as_qdir' $as_dirs"
10326 as_dir=`$as_dirname -- "$as_dir" ||
10327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10328 X"$as_dir" : 'X\(//\)[^/]' \| \
10329 X"$as_dir" : 'X\(//\)$' \| \
10330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10331 printf "%s\n" X"$as_dir" |
10332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10333 s//\1/
10334 q
10335 }
10336 /^X\(\/\/\)[^/].*/{
10337 s//\1/
10338 q
10339 }
10340 /^X\(\/\/\)$/{
10341 s//\1/
10342 q
10343 }
10344 /^X\(\/\).*/{
10345 s//\1/
10346 q
10347 }
10348 s/.*/./; q'`
10349 test -d "$as_dir" && break
10350 done
10351 test -z "$as_dirs" || eval "mkdir $as_dirs"
10352 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10353
10354
10355 } # as_fn_mkdir_p
10356 if mkdir -p . 2>/dev/null; then
10357 as_mkdir_p='mkdir -p "$as_dir"'
10358 else
10359 test -d ./-p && rmdir ./-p
10360 as_mkdir_p=false
10361 fi
10362
10363
10364 # as_fn_executable_p FILE
10365 # -----------------------
10366 # Test if FILE is an executable regular file.
10367 as_fn_executable_p ()
10368 {
10369 test -f "$1" && test -x "$1"
10370 } # as_fn_executable_p
10371 as_test_x='test -x'
10372 as_executable_p=as_fn_executable_p
10373
10374 # Sed expression to map a string onto a valid CPP name.
10375 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10376
10377 # Sed expression to map a string onto a valid variable name.
10378 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10379
10380
10381 exec 6>&1
10382 ## ----------------------------------- ##
10383 ## Main body of $CONFIG_STATUS script. ##
10384 ## ----------------------------------- ##
10385 _ASEOF
10386 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10387
10388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10389 # Save the log message, to keep $0 and so on meaningful, and to
10390 # report actual input values of CONFIG_FILES etc. instead of their
10391 # values after options handling.
10392 ac_log="
10393 This file was extended by $as_me, which was
10394 generated by GNU Autoconf 2.71. Invocation command line was
10395
10396 CONFIG_FILES = $CONFIG_FILES
10397 CONFIG_HEADERS = $CONFIG_HEADERS
10398 CONFIG_LINKS = $CONFIG_LINKS
10399 CONFIG_COMMANDS = $CONFIG_COMMANDS
10400 $ $0 $@
10401
10402 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10403 "
10404
10405 _ACEOF
10406
10407 case $ac_config_files in *"
10408 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10409 esac
10410
10411 case $ac_config_headers in *"
10412 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10413 esac
10414
10415
10416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10417 # Files that config.status was made for.
10418 config_files="$ac_config_files"
10419 config_headers="$ac_config_headers"
10420
10421 _ACEOF
10422
10423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10424 ac_cs_usage="\
10425 \`$as_me' instantiates files and other configuration actions
10426 from templates according to the current configuration. Unless the files
10427 and actions are specified as TAGs, all are instantiated by default.
10428
10429 Usage: $0 [OPTION]... [TAG]...
10430
10431 -h, --help print this help, then exit
10432 -V, --version print version number and configuration settings, then exit
10433 --config print configuration, then exit
10434 -q, --quiet, --silent
10435 do not print progress messages
10436 -d, --debug don't remove temporary files
10437 --recheck update $as_me by reconfiguring in the same conditions
10438 --file=FILE[:TEMPLATE]
10439 instantiate the configuration file FILE
10440 --header=FILE[:TEMPLATE]
10441 instantiate the configuration header FILE
10442
10443 Configuration files:
10444 $config_files
10445
10446 Configuration headers:
10447 $config_headers
10448
10449 Report bugs to the package provider."
10450
10451 _ACEOF
10452 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10453 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10455 ac_cs_config='$ac_cs_config_escaped'
10456 ac_cs_version="\\
10457 config.status
10458 configured by $0, generated by GNU Autoconf 2.71,
10459 with options \\"\$ac_cs_config\\"
10460
10461 Copyright (C) 2021 Free Software Foundation, Inc.
10462 This config.status script is free software; the Free Software Foundation
10463 gives unlimited permission to copy, distribute and modify it."
10464
10465 ac_pwd='$ac_pwd'
10466 srcdir='$srcdir'
10467 test -n "\$AWK" || AWK=awk
10468 _ACEOF
10469
10470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10471 # The default lists apply if the user does not specify any file.
10472 ac_need_defaults=:
10473 while test $# != 0
10474 do
10475 case $1 in
10476 --*=?*)
10477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10479 ac_shift=:
10480 ;;
10481 --*=)
10482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10483 ac_optarg=
10484 ac_shift=:
10485 ;;
10486 *)
10487 ac_option=$1
10488 ac_optarg=$2
10489 ac_shift=shift
10490 ;;
10491 esac
10492
10493 case $ac_option in
10494 # Handling of the options.
10495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10496 ac_cs_recheck=: ;;
10497 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10498 printf "%s\n" "$ac_cs_version"; exit ;;
10499 --config | --confi | --conf | --con | --co | --c )
10500 printf "%s\n" "$ac_cs_config"; exit ;;
10501 --debug | --debu | --deb | --de | --d | -d )
10502 debug=: ;;
10503 --file | --fil | --fi | --f )
10504 $ac_shift
10505 case $ac_optarg in
10506 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10507 '') as_fn_error $? "missing file argument" ;;
10508 esac
10509 as_fn_append CONFIG_FILES " '$ac_optarg'"
10510 ac_need_defaults=false;;
10511 --header | --heade | --head | --hea )
10512 $ac_shift
10513 case $ac_optarg in
10514 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10515 esac
10516 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10517 ac_need_defaults=false;;
10518 --he | --h)
10519 # Conflict between --help and --header
10520 as_fn_error $? "ambiguous option: \`$1'
10521 Try \`$0 --help' for more information.";;
10522 --help | --hel | -h )
10523 printf "%s\n" "$ac_cs_usage"; exit ;;
10524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10526 ac_cs_silent=: ;;
10527
10528 # This is an error.
10529 -*) as_fn_error $? "unrecognized option: \`$1'
10530 Try \`$0 --help' for more information." ;;
10531
10532 *) as_fn_append ac_config_targets " $1"
10533 ac_need_defaults=false ;;
10534
10535 esac
10536 shift
10537 done
10538
10539 ac_configure_extra_args=
10540
10541 if $ac_cs_silent; then
10542 exec 6>/dev/null
10543 ac_configure_extra_args="$ac_configure_extra_args --silent"
10544 fi
10545
10546 _ACEOF
10547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10548 if \$ac_cs_recheck; then
10549 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10550 shift
10551 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10552 CONFIG_SHELL='$SHELL'
10553 export CONFIG_SHELL
10554 exec "\$@"
10555 fi
10556
10557 _ACEOF
10558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10559 exec 5>>config.log
10560 {
10561 echo
10562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10563 ## Running $as_me. ##
10564 _ASBOX
10565 printf "%s\n" "$ac_log"
10566 } >&5
10567
10568 _ACEOF
10569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10570 _ACEOF
10571
10572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10573
10574 # Handling of arguments.
10575 for ac_config_target in $ac_config_targets
10576 do
10577 case $ac_config_target in
10578 "h/gclincl.h") CONFIG_HEADERS="$CONFIG_HEADERS h/gclincl.h" ;;
10579 "makedefc") CONFIG_FILES="$CONFIG_FILES makedefc" ;;
10580 "windows/gcl.iss") CONFIG_FILES="$CONFIG_FILES windows/gcl.iss" ;;
10581 "windows/sysdir.bat") CONFIG_FILES="$CONFIG_FILES windows/sysdir.bat" ;;
10582 "windows/install.lsp") CONFIG_FILES="$CONFIG_FILES windows/install.lsp" ;;
10583
10584 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10585 esac
10586 done
10587
10588
10589 # If the user did not use the arguments to specify the items to instantiate,
10590 # then the envvar interface is used. Set only those that are not.
10591 # We use the long form for the default assignment because of an extremely
10592 # bizarre bug on SunOS 4.1.3.
10593 if $ac_need_defaults; then
10594 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10595 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10596 fi
10597
10598 # Have a temporary directory for convenience. Make it in the build tree
10599 # simply because there is no reason against having it here, and in addition,
10600 # creating and moving files from /tmp can sometimes cause problems.
10601 # Hook for its removal unless debugging.
10602 # Note that there is a small window in which the directory will not be cleaned:
10603 # after its creation but before its name has been assigned to `$tmp'.
10604 $debug ||
10605 {
10606 tmp= ac_tmp=
10607 trap 'exit_status=$?
10608 : "${ac_tmp:=$tmp}"
10609 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10610 ' 0
10611 trap 'as_fn_exit 1' 1 2 13 15
10612 }
10613 # Create a (secure) tmp directory for tmp files.
10614
10615 {
10616 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10617 test -d "$tmp"
10618 } ||
10619 {
10620 tmp=./conf$$-$RANDOM
10621 (umask 077 && mkdir "$tmp")
10622 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10623 ac_tmp=$tmp
10624
10625 # Set up the scripts for CONFIG_FILES section.
10626 # No need to generate them if there are no CONFIG_FILES.
10627 # This happens for instance with `./config.status config.h'.
10628 if test -n "$CONFIG_FILES"; then
10629
10630
10631 ac_cr=`echo X | tr X '\015'`
10632 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10633 # But we know of no other shell where ac_cr would be empty at this
10634 # point, so we can use a bashism as a fallback.
10635 if test "x$ac_cr" = x; then
10636 eval ac_cr=\$\'\\r\'
10637 fi
10638 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10639 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10640 ac_cs_awk_cr='\\r'
10641 else
10642 ac_cs_awk_cr=$ac_cr
10643 fi
10644
10645 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10646 _ACEOF
10647
10648
10649 {
10650 echo "cat >conf$$subs.awk <<_ACEOF" &&
10651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10652 echo "_ACEOF"
10653 } >conf$$subs.sh ||
10654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10656 ac_delim='%!_!# '
10657 for ac_last_try in false false false false false :; do
10658 . ./conf$$subs.sh ||
10659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10660
10661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10662 if test $ac_delim_n = $ac_delim_num; then
10663 break
10664 elif $ac_last_try; then
10665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10666 else
10667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10668 fi
10669 done
10670 rm -f conf$$subs.sh
10671
10672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10673 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10674 _ACEOF
10675 sed -n '
10676 h
10677 s/^/S["/; s/!.*/"]=/
10678 p
10679 g
10680 s/^[^!]*!//
10681 :repl
10682 t repl
10683 s/'"$ac_delim"'$//
10684 t delim
10685 :nl
10686 h
10687 s/\(.\{148\}\)..*/\1/
10688 t more1
10689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10690 p
10691 n
10692 b repl
10693 :more1
10694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10695 p
10696 g
10697 s/.\{148\}//
10698 t nl
10699 :delim
10700 h
10701 s/\(.\{148\}\)..*/\1/
10702 t more2
10703 s/["\\]/\\&/g; s/^/"/; s/$/"/
10704 p
10705 b
10706 :more2
10707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10708 p
10709 g
10710 s/.\{148\}//
10711 t delim
10712 ' <conf$$subs.awk | sed '
10713 /^[^""]/{
10714 N
10715 s/\n//
10716 }
10717 ' >>$CONFIG_STATUS || ac_write_fail=1
10718 rm -f conf$$subs.awk
10719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10720 _ACAWK
10721 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10722 for (key in S) S_is_set[key] = 1
10723 FS = ""
10724
10725 }
10726 {
10727 line = $ 0
10728 nfields = split(line, field, "@")
10729 substed = 0
10730 len = length(field[1])
10731 for (i = 2; i < nfields; i++) {
10732 key = field[i]
10733 keylen = length(key)
10734 if (S_is_set[key]) {
10735 value = S[key]
10736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10737 len += length(value) + length(field[++i])
10738 substed = 1
10739 } else
10740 len += 1 + keylen
10741 }
10742
10743 print line
10744 }
10745
10746 _ACAWK
10747 _ACEOF
10748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10751 else
10752 cat
10753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10755 _ACEOF
10756
10757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10759 # trailing colons and then remove the whole line if VPATH becomes empty
10760 # (actually we leave an empty line to preserve line numbers).
10761 if test "x$srcdir" = x.; then
10762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10763 h
10764 s///
10765 s/^/:/
10766 s/[ ]*$/:/
10767 s/:\$(srcdir):/:/g
10768 s/:\${srcdir}:/:/g
10769 s/:@srcdir@:/:/g
10770 s/^:*//
10771 s/:*$//
10772 x
10773 s/\(=[ ]*\).*/\1/
10774 G
10775 s/\n//
10776 s/^[^=]*=[ ]*$//
10777 }'
10778 fi
10779
10780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10781 fi # test -n "$CONFIG_FILES"
10782
10783 # Set up the scripts for CONFIG_HEADERS section.
10784 # No need to generate them if there are no CONFIG_HEADERS.
10785 # This happens for instance with `./config.status Makefile'.
10786 if test -n "$CONFIG_HEADERS"; then
10787 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10788 BEGIN {
10789 _ACEOF
10790
10791 # Transform confdefs.h into an awk script `defines.awk', embedded as
10792 # here-document in config.status, that substitutes the proper values into
10793 # config.h.in to produce config.h.
10794
10795 # Create a delimiter string that does not exist in confdefs.h, to ease
10796 # handling of long lines.
10797 ac_delim='%!_!# '
10798 for ac_last_try in false false :; do
10799 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10800 if test -z "$ac_tt"; then
10801 break
10802 elif $ac_last_try; then
10803 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10804 else
10805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10806 fi
10807 done
10808
10809 # For the awk script, D is an array of macro values keyed by name,
10810 # likewise P contains macro parameters if any. Preserve backslash
10811 # newline sequences.
10812
10813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10814 sed -n '
10815 s/.\{148\}/&'"$ac_delim"'/g
10816 t rset
10817 :rset
10818 s/^[ ]*#[ ]*define[ ][ ]*/ /
10819 t def
10820 d
10821 :def
10822 s/\\$//
10823 t bsnl
10824 s/["\\]/\\&/g
10825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10826 D["\1"]=" \3"/p
10827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10828 d
10829 :bsnl
10830 s/["\\]/\\&/g
10831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10832 D["\1"]=" \3\\\\\\n"\\/p
10833 t cont
10834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10835 t cont
10836 d
10837 :cont
10838 n
10839 s/.\{148\}/&'"$ac_delim"'/g
10840 t clear
10841 :clear
10842 s/\\$//
10843 t bsnlc
10844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10845 d
10846 :bsnlc
10847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10848 b cont
10849 ' <confdefs.h | sed '
10850 s/'"$ac_delim"'/"\\\
10851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10852
10853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10854 for (key in D) D_is_set[key] = 1
10855 FS = ""
10856 }
10857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10858 line = \$ 0
10859 split(line, arg, " ")
10860 if (arg[1] == "#") {
10861 defundef = arg[2]
10862 mac1 = arg[3]
10863 } else {
10864 defundef = substr(arg[1], 2)
10865 mac1 = arg[2]
10866 }
10867 split(mac1, mac2, "(") #)
10868 macro = mac2[1]
10869 prefix = substr(line, 1, index(line, defundef) - 1)
10870 if (D_is_set[macro]) {
10871 # Preserve the white space surrounding the "#".
10872 print prefix "define", macro P[macro] D[macro]
10873 next
10874 } else {
10875 # Replace #undef with comments. This is necessary, for example,
10876 # in the case of _POSIX_SOURCE, which is predefined and required
10877 # on some systems where configure will not decide to define it.
10878 if (defundef == "undef") {
10879 print "/*", prefix defundef, macro, "*/"
10880 next
10881 }
10882 }
10883 }
10884 { print }
10885 _ACAWK
10886 _ACEOF
10887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10888 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10889 fi # test -n "$CONFIG_HEADERS"
10890
10891
10892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10893 shift
10894 for ac_tag
10895 do
10896 case $ac_tag in
10897 :[FHLC]) ac_mode=$ac_tag; continue;;
10898 esac
10899 case $ac_mode$ac_tag in
10900 :[FHL]*:*);;
10901 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10902 :[FH]-) ac_tag=-:-;;
10903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10904 esac
10905 ac_save_IFS=$IFS
10906 IFS=:
10907 set x $ac_tag
10908 IFS=$ac_save_IFS
10909 shift
10910 ac_file=$1
10911 shift
10912
10913 case $ac_mode in
10914 :L) ac_source=$1;;
10915 :[FH])
10916 ac_file_inputs=
10917 for ac_f
10918 do
10919 case $ac_f in
10920 -) ac_f="$ac_tmp/stdin";;
10921 *) # Look for the file first in the build tree, then in the source tree
10922 # (if the path is not absolute). The absolute path cannot be DOS-style,
10923 # because $ac_f cannot contain `:'.
10924 test -f "$ac_f" ||
10925 case $ac_f in
10926 [\\/$]*) false;;
10927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10928 esac ||
10929 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10930 esac
10931 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10932 as_fn_append ac_file_inputs " '$ac_f'"
10933 done
10934
10935 # Let's still pretend it is `configure' which instantiates (i.e., don't
10936 # use $as_me), people would be surprised to read:
10937 # /* config.h. Generated by config.status. */
10938 configure_input='Generated from '`
10939 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10940 `' by configure.'
10941 if test x"$ac_file" != x-; then
10942 configure_input="$ac_file. $configure_input"
10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10944 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10945 fi
10946 # Neutralize special characters interpreted by sed in replacement strings.
10947 case $configure_input in #(
10948 *\&* | *\|* | *\\* )
10949 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10951 *) ac_sed_conf_input=$configure_input;;
10952 esac
10953
10954 case $ac_tag in
10955 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10957 esac
10958 ;;
10959 esac
10960
10961 ac_dir=`$as_dirname -- "$ac_file" ||
10962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10963 X"$ac_file" : 'X\(//\)[^/]' \| \
10964 X"$ac_file" : 'X\(//\)$' \| \
10965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10966 printf "%s\n" X"$ac_file" |
10967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10968 s//\1/
10969 q
10970 }
10971 /^X\(\/\/\)[^/].*/{
10972 s//\1/
10973 q
10974 }
10975 /^X\(\/\/\)$/{
10976 s//\1/
10977 q
10978 }
10979 /^X\(\/\).*/{
10980 s//\1/
10981 q
10982 }
10983 s/.*/./; q'`
10984 as_dir="$ac_dir"; as_fn_mkdir_p
10985 ac_builddir=.
10986
10987 case "$ac_dir" in
10988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10989 *)
10990 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10991 # A ".." for each directory in $ac_dir_suffix.
10992 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10993 case $ac_top_builddir_sub in
10994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10996 esac ;;
10997 esac
10998 ac_abs_top_builddir=$ac_pwd
10999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11000 # for backward compatibility:
11001 ac_top_builddir=$ac_top_build_prefix
11002
11003 case $srcdir in
11004 .) # We are building in place.
11005 ac_srcdir=.
11006 ac_top_srcdir=$ac_top_builddir_sub
11007 ac_abs_top_srcdir=$ac_pwd ;;
11008 [\\/]* | ?:[\\/]* ) # Absolute name.
11009 ac_srcdir=$srcdir$ac_dir_suffix;
11010 ac_top_srcdir=$srcdir
11011 ac_abs_top_srcdir=$srcdir ;;
11012 *) # Relative name.
11013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11014 ac_top_srcdir=$ac_top_build_prefix$srcdir
11015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11016 esac
11017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11018
11019
11020 case $ac_mode in
11021 :F)
11022 #
11023 # CONFIG_FILE
11024 #
11025
11026 _ACEOF
11027
11028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11029 # If the template does not know about datarootdir, expand it.
11030 # FIXME: This hack should be removed a few years after 2.60.
11031 ac_datarootdir_hack=; ac_datarootdir_seen=
11032 ac_sed_dataroot='
11033 /datarootdir/ {
11034 p
11035 q
11036 }
11037 /@datadir@/p
11038 /@docdir@/p
11039 /@infodir@/p
11040 /@localedir@/p
11041 /@mandir@/p'
11042 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11043 *datarootdir*) ac_datarootdir_seen=yes;;
11044 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11046 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11047 _ACEOF
11048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11049 ac_datarootdir_hack='
11050 s&@datadir@&$datadir&g
11051 s&@docdir@&$docdir&g
11052 s&@infodir@&$infodir&g
11053 s&@localedir@&$localedir&g
11054 s&@mandir@&$mandir&g
11055 s&\\\${datarootdir}&$datarootdir&g' ;;
11056 esac
11057 _ACEOF
11058
11059 # Neutralize VPATH when `$srcdir' = `.'.
11060 # Shell code in configure.ac might set extrasub.
11061 # FIXME: do we really want to maintain this feature?
11062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11063 ac_sed_extra="$ac_vpsub
11064 $extrasub
11065 _ACEOF
11066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11067 :t
11068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11069 s|@configure_input@|$ac_sed_conf_input|;t t
11070 s&@top_builddir@&$ac_top_builddir_sub&;t t
11071 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11072 s&@srcdir@&$ac_srcdir&;t t
11073 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11074 s&@top_srcdir@&$ac_top_srcdir&;t t
11075 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11076 s&@builddir@&$ac_builddir&;t t
11077 s&@abs_builddir@&$ac_abs_builddir&;t t
11078 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11079 $ac_datarootdir_hack
11080 "
11081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11083
11084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11087 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11089 which seems to be undefined. Please make sure it is defined" >&5
11090 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11091 which seems to be undefined. Please make sure it is defined" >&2;}
11092
11093 rm -f "$ac_tmp/stdin"
11094 case $ac_file in
11095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11097 esac \
11098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11099 ;;
11100 :H)
11101 #
11102 # CONFIG_HEADER
11103 #
11104 if test x"$ac_file" != x-; then
11105 {
11106 printf "%s\n" "/* $configure_input */" >&1 \
11107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11108 } >"$ac_tmp/config.h" \
11109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11112 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11113 else
11114 rm -f "$ac_file"
11115 mv "$ac_tmp/config.h" "$ac_file" \
11116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11117 fi
11118 else
11119 printf "%s\n" "/* $configure_input */" >&1 \
11120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11121 || as_fn_error $? "could not create -" "$LINENO" 5
11122 fi
11123 ;;
11124
11125
11126 esac
11127
11128 done # for ac_tag
11129
11130
11131 as_fn_exit 0
11132 _ACEOF
11133 ac_clean_files=$ac_clean_files_save
11134
11135 test $ac_write_fail = 0 ||
11136 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11137
11138
11139 # configure is writing to config.log, and then calls config.status.
11140 # config.status does its own redirection, appending to config.log.
11141 # Unfortunately, on DOS this fails, as config.log is still kept open
11142 # by configure, so config.status won't be able to write to it; its
11143 # output is simply discarded. So we exec the FD to /dev/null,
11144 # effectively closing config.log, so it can be properly (re)opened and
11145 # appended to by config.status. When coming back to configure, we
11146 # need to make the FD available again.
11147 if test "$no_create" != yes; then
11148 ac_cs_success=:
11149 ac_config_status_args=
11150 test "$silent" = yes &&
11151 ac_config_status_args="$ac_config_status_args --quiet"
11152 exec 5>/dev/null
11153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11154 exec 5>>config.log
11155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11156 # would make configure fail if this is the last instruction.
11157 $ac_cs_success || as_fn_exit 1
11158 fi
11159 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11161 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11162 fi
11163
11164 echo makedefc
11165 cat makedefc
11166
11167 echo add-defs1 $use
11168 CC=$CC ./add-defs1 $use
11169
11170 else
11171 echo "Unable to guess machine type"
11172 echo use configure --enable-machine=XXX, for XXX such that h/XXX.defs exists, ie in h/*.defs
11173 fi
11174