Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for algol68g 3.1.2.
4 #
5 # Report bugs to <Marcel van der Veer <[email protected]>>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and Marcel van der
270 $0: Veer <[email protected]> about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='algol68g'
582 PACKAGE_TARNAME='algol68g'
583 PACKAGE_VERSION='3.1.2'
584 PACKAGE_STRING='algol68g 3.1.2'
585 PACKAGE_BUGREPORT='Marcel van der Veer <[email protected]>'
586 PACKAGE_URL=''
587
588 ac_default_prefix=/usr/local
589 ac_unique_file="src/include/a68g.h"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 GSL_LIBS
631 GSL_CFLAGS
632 GSL_CONFIG
633 EGREP
634 GREP
635 CPP
636 EXPORT_DYNAMIC_FALSE
637 EXPORT_DYNAMIC_TRUE
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 am__nodep
642 AMDEPBACKSLASH
643 AMDEP_FALSE
644 AMDEP_TRUE
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
653 CC
654 a68g_exists
655 AM_BACKSLASH
656 AM_DEFAULT_VERBOSITY
657 AM_DEFAULT_V
658 AM_V
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
664 AWK
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 target_os
683 target_vendor
684 target_cpu
685 target
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 runstatedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL
733 am__quote'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_generic
738 enable_compiler
739 enable_quadmath
740 enable_mathlib
741 enable_curses
742 enable_gsl
743 enable_mpfr
744 enable_parallel
745 enable_plotutils
746 enable_postgresql
747 enable_readline
748 enable_standard_types
749 enable_long_types
750 enable_pic
751 enable_arch
752 enable_silent_rules
753 enable_dependency_tracking
754 enable_assert
755 with_gsl_prefix
756 with_gsl_exec_prefix
757 enable_gsltest
758 '
759 ac_precious_vars='build_alias
760 host_alias
761 target_alias
762 CC
763 CFLAGS
764 LDFLAGS
765 LIBS
766 CPPFLAGS
767 CPP'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 runstatedir='${localstatedir}/run'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
846
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
861
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
866
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
935
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
940
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
970
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1044
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -runstatedir | --runstatedir | --runstatedi | --runstated \
1060 | --runstate | --runstat | --runsta | --runst | --runs \
1061 | --run | --ru | --r)
1062 ac_prev=runstatedir ;;
1063 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1064 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1065 | --run=* | --ru=* | --r=*)
1066 runstatedir=$ac_optarg ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir runstatedir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures algol68g 3.1.2 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/algol68g]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1372 _ACEOF
1373
1374 cat <<\_ACEOF
1375
1376 Program names:
1377 --program-prefix=PREFIX prepend PREFIX to installed program names
1378 --program-suffix=SUFFIX append SUFFIX to installed program names
1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380
1381 System types:
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of algol68g 3.1.2:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-generic build for legacy 32 bit systems (default is "no")
1399 --enable-compiler enable unit compiler (default is "yes")
1400 --enable-quadmath if available, enable GCC quadmath library (default
1401 is "yes")
1402 --enable-mathlib if available, enable R mathlib library (default is
1403 "yes")
1404 --enable-curses if available, enable curses library (default is
1405 "yes")
1406 --enable-gsl if available, enable GNU scientific library (default
1407 is "yes")
1408 --enable-mpfr if available, enable GNU MPFR (default is "yes")
1409 --enable-parallel enable Algol 68 parallel-clause (default is "yes")
1410 --enable-plotutils if available, enable GNU plotting utilities (default
1411 is "yes")
1412 --enable-postgresql if available, enable PostgreSQL (default is "yes")
1413 --enable-readline if available, enable readline library (default is
1414 "yes")
1415 --enable-standard-types enable int*4 and real*8 modes (default is "yes")
1416 --enable-long-types if available, enable int*8 and real*10, real*16
1417 modes (default is "yes")
1418 --enable-pic=option if using gcc, enable option to generate PIC (default
1419 is "-fPIC")
1420 --enable-arch=cpu if using gcc, enable emitting architecture-tuned
1421 assembly code (default is "no")
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --disable-assert turn off assertions
1429 --disable-gsltest Do not try to compile and run a test GSL program
1430
1431 Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-gsl-prefix=PFX Prefix where GSL is installed (optional)
1435 --with-gsl-exec-prefix=PFX Exec prefix where GSL is installed (optional)
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1446
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1449
1450 Report bugs to <Marcel van der Veer <[email protected]>>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 algol68g configure 3.1.2
1514 generated by GNU Autoconf 2.69
1515
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559 fi
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_try_run LINENO
1566 # ----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1568 # that executables *can* be run.
1569 ac_fn_c_try_run ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { { ac_try="$ac_link"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>&5
1580 ac_status=$?
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1583 { { case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_try") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; }; }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: program exited with status $ac_status" >&5
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=$ac_status
1600 fi
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_run
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 }; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 eval "$3=yes"
1663 else
1664 eval "$3=no"
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_compile
1674
1675 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1676 # -------------------------------------------
1677 # Tests whether TYPE exists after having included INCLUDES, setting cache
1678 # variable VAR accordingly.
1679 ac_fn_c_check_type ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 eval "$3=no"
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 $4
1691 int
1692 main ()
1693 {
1694 if (sizeof ($2))
1695 return 0;
1696 ;
1697 return 0;
1698 }
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 int
1705 main ()
1706 {
1707 if (sizeof (($2)))
1708 return 0;
1709 ;
1710 return 0;
1711 }
1712 _ACEOF
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714
1715 else
1716 eval "$3=yes"
1717 fi
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727 } # ac_fn_c_check_type
1728
1729 # ac_fn_c_find_uintX_t LINENO BITS VAR
1730 # ------------------------------------
1731 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1732 # accordingly.
1733 ac_fn_c_find_uintX_t ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1737 $as_echo_n "checking for uint$2_t... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 eval "$3=no"
1742 # Order is important - never check a type that is potentially smaller
1743 # than half of the expected target width.
1744 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1745 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 $ac_includes_default
1749 int
1750 main ()
1751 {
1752 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1753 test_array [0] = 0;
1754 return test_array [0];
1755
1756 ;
1757 return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 case $ac_type in #(
1762 uint$2_t) :
1763 eval "$3=yes" ;; #(
1764 *) :
1765 eval "$3=\$ac_type" ;;
1766 esac
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 if eval test \"x\$"$3"\" = x"no"; then :
1770
1771 else
1772 break
1773 fi
1774 done
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_find_uintX_t
1782
1783 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1786 # the include files in INCLUDES and setting the cache variable VAR
1787 # accordingly.
1788 ac_fn_c_check_header_mongrel ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if eval \${$3+:} false; then :
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 else
1801 # Is the header compilable?
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1803 $as_echo_n "checking $2 usability... " >&6; }
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 ac_header_compiler=yes
1811 else
1812 ac_header_compiler=no
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1816 $as_echo "$ac_header_compiler" >&6; }
1817
1818 # Is the header present?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1820 $as_echo_n "checking $2 presence... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 #include <$2>
1824 _ACEOF
1825 if ac_fn_c_try_cpp "$LINENO"; then :
1826 ac_header_preproc=yes
1827 else
1828 ac_header_preproc=no
1829 fi
1830 rm -f conftest.err conftest.i conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1832 $as_echo "$ac_header_preproc" >&6; }
1833
1834 # So? What about this header?
1835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1836 yes:no: )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1838 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ;;
1842 no:yes:* )
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1844 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1846 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1848 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1850 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ( $as_echo "## ------------------------------------------------------- ##
1854 ## Report this to Marcel van der Veer <[email protected]> ##
1855 ## ------------------------------------------------------- ##"
1856 ) | sed "s/^/$as_me: WARNING: /" >&2
1857 ;;
1858 esac
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 eval "$3=\$ac_header_compiler"
1865 fi
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_header_mongrel
1873
1874 # ac_fn_c_try_link LINENO
1875 # -----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_link ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_link
1919
1920 # ac_fn_c_check_func LINENO FUNC VAR
1921 # ----------------------------------
1922 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1923 ac_fn_c_check_func ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930 else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1935 #define $2 innocuous_$2
1936
1937 /* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char $2 (); below.
1939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1940 <limits.h> exists even on freestanding compilers. */
1941
1942 #ifdef __STDC__
1943 # include <limits.h>
1944 #else
1945 # include <assert.h>
1946 #endif
1947
1948 #undef $2
1949
1950 /* Override any GCC internal prototype to avoid an error.
1951 Use char because int might match the return type of a GCC
1952 builtin and then its argument prototype would still apply. */
1953 #ifdef __cplusplus
1954 extern "C"
1955 #endif
1956 char $2 ();
1957 /* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960 #if defined __stub_$2 || defined __stub___$2
1961 choke me
1962 #endif
1963
1964 int
1965 main ()
1966 {
1967 return $2 ();
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_link "$LINENO"; then :
1973 eval "$3=yes"
1974 else
1975 eval "$3=no"
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext \
1978 conftest$ac_exeext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_func
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1989
1990 It was created by algol68g $as_me 3.1.2, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1992
1993 $ $0 $@
1994
1995 _ACEOF
1996 exec 5>>config.log
1997 {
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2002
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019
2020 _ASUNAME
2021
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2030
2031 } >&5
2032
2033 cat >&5 <<_ACEOF
2034
2035
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2039
2040 _ACEOF
2041
2042
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2053 do
2054 for ac_arg
2055 do
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 2)
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2079 ;;
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2082 fi
2083 as_fn_append ac_configure_args " '$ac_arg'"
2084 ;;
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2090
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2098 {
2099 echo
2100
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2106 (
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2129 *)
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ;;
2132 esac |
2133 sort
2134 )
2135 echo
2136
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165 fi
2166
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2250 fi
2251 done
2252
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2263 fi
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2268 fi
2269
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2288 *)
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2318 fi
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 fi
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339
2340 # Check whether compiler supports $1 as a command-line option.
2341 # If it does, add the string to CFLAGS.
2342
2343
2344
2345 # Configure path for the GNU Scientific Library
2346 # Christopher R. Gabriel <[email protected]>, April 2000
2347
2348
2349
2350 # This is what autoupdate's m4 run will expand. It fires
2351 # the warning (with _au_warn_XXX), outputs it into the
2352 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2353 # the replacement expansion.
2354
2355
2356 # This is an auxiliary macro that is also run when
2357 # autoupdate runs m4. It simply calls m4_warning, but
2358 # we need a wrapper so that each warning is emitted only
2359 # once. We break the quoting in m4_warning's argument in
2360 # order to expand this macro's arguments, not AU_DEFUN's.
2361
2362
2363 # Finally, this is the expansion that is picked up by
2364 # autoconf. It tells the user to run autoupdate, and
2365 # then outputs the replacement expansion. We do not care
2366 # about autoupdate's warning because that contains
2367 # information on what to do *after* running autoupdate.
2368
2369 #
2370 # Platform ids.
2371 #
2372
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: host system..." >&5
2374 $as_echo "$as_me: host system..." >&6;}
2375 ac_aux_dir=
2376 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2377 if test -f "$ac_dir/install-sh"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/install-sh -c"
2380 break
2381 elif test -f "$ac_dir/install.sh"; then
2382 ac_aux_dir=$ac_dir
2383 ac_install_sh="$ac_aux_dir/install.sh -c"
2384 break
2385 elif test -f "$ac_dir/shtool"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/shtool install -c"
2388 break
2389 fi
2390 done
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 fi
2394
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402
2403
2404 # Make sure we can run config.sub.
2405 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2406 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2409 $as_echo_n "checking build system type... " >&6; }
2410 if ${ac_cv_build+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 ac_build_alias=$build_alias
2414 test "x$ac_build_alias" = x &&
2415 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2416 test "x$ac_build_alias" = x &&
2417 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2418 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2423 $as_echo "$ac_cv_build" >&6; }
2424 case $ac_cv_build in
2425 *-*-*) ;;
2426 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2427 esac
2428 build=$ac_cv_build
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_build
2431 shift
2432 build_cpu=$1
2433 build_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 build_os=$*
2438 IFS=$ac_save_IFS
2439 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440
2441
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2443 $as_echo_n "checking host system type... " >&6; }
2444 if ${ac_cv_host+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 if test "x$host_alias" = x; then
2448 ac_cv_host=$ac_cv_build
2449 else
2450 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 fi
2453
2454 fi
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2456 $as_echo "$ac_cv_host" >&6; }
2457 case $ac_cv_host in
2458 *-*-*) ;;
2459 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2460 esac
2461 host=$ac_cv_host
2462 ac_save_IFS=$IFS; IFS='-'
2463 set x $ac_cv_host
2464 shift
2465 host_cpu=$1
2466 host_vendor=$2
2467 shift; shift
2468 # Remember, the first character of IFS is used to create $*,
2469 # except with old shells:
2470 host_os=$*
2471 IFS=$ac_save_IFS
2472 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2473
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2476 $as_echo_n "checking target system type... " >&6; }
2477 if ${ac_cv_target+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test "x$target_alias" = x; then
2481 ac_cv_target=$ac_cv_host
2482 else
2483 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 fi
2486
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2489 $as_echo "$ac_cv_target" >&6; }
2490 case $ac_cv_target in
2491 *-*-*) ;;
2492 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2493 esac
2494 target=$ac_cv_target
2495 ac_save_IFS=$IFS; IFS='-'
2496 set x $ac_cv_target
2497 shift
2498 target_cpu=$1
2499 target_vendor=$2
2500 shift; shift
2501 # Remember, the first character of IFS is used to create $*,
2502 # except with old shells:
2503 target_os=$*
2504 IFS=$ac_save_IFS
2505 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2506
2507
2508 # The aliases save the names the user supplied, while $host etc.
2509 # will get canonicalized.
2510 test -n "$target_alias" &&
2511 test "$program_prefix$program_suffix$program_transform_name" = \
2512 NONENONEs,x,x, &&
2513 program_prefix=${target_alias}-
2514
2515 bsd_include_dirs=no
2516 enable_haiku=no
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
2518 $as_echo_n "checking platform... " >&6; }
2519 case "$host" in
2520 #
2521 # Linux.
2522 #
2523 # aarch64*-*-linux* is for RaspberryPi-4 on ARM-64 - otherwise http/tcp isnt found
2524 # Generic *-*-linux-gnu catches for instance s390x-ibm-linux-gnu
2525 #
2526 *86-*-gnu | *86_64-*-gnu | *86-*-linux* | *86_64-*-linux* | arm*-*-linux* | aarch*-*-linux* | *-*-linux-gnu)
2527
2528 $as_echo "#define BUILD_LINUX 1" >>confdefs.h
2529
2530
2531 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
2534 $as_echo "linux" >&6; }
2535 ;;
2536 #
2537 # Cygwin.
2538 #
2539 *86-*-cygwin* | *86_64-*-cygwin*)
2540
2541 $as_echo "#define BUILD_CYGWIN 1" >>confdefs.h
2542
2543
2544 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cygwin" >&5
2547 $as_echo "cygwin" >&6; }
2548 ;;
2549 #
2550 # Mac OS X.
2551 #
2552 *86-*-*darwin* | *86_64-*-*darwin*)
2553
2554 $as_echo "#define BUILD_BSD 1" >>confdefs.h
2555
2556
2557 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring interpreter-only" >&5
2560 $as_echo "$as_me: WARNING: configuring interpreter-only" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mac os x" >&5
2562 $as_echo "mac os x" >&6; }
2563 ;;
2564 #
2565 # FreeBSD.
2566 #
2567 *86-*-freebsd* | *86_64-*-freebsd*)
2568
2569 $as_echo "#define BUILD_BSD 1" >>confdefs.h
2570
2571
2572 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring interpreter-only" >&5
2575 $as_echo "$as_me: WARNING: configuring interpreter-only" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: freebsd" >&5
2577 $as_echo "freebsd" >&6; }
2578 ;;
2579 #
2580 # NetBSD.
2581 #
2582 *86-*-netbsd* | *86_64-*-netbsd*)
2583
2584 $as_echo "#define BUILD_BSD 1" >>confdefs.h
2585
2586
2587 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring interpreter-only" >&5
2590 $as_echo "$as_me: WARNING: configuring interpreter-only" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: netbsd" >&5
2592 $as_echo "netbsd" >&6; }
2593 ;;
2594 #
2595 # OpenBSD.
2596 #
2597 *86-*-openbsd* | *86_64-*-openbsd*)
2598
2599 $as_echo "#define BUILD_BSD 1" >>confdefs.h
2600
2601
2602 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2603
2604 bsd_include_dirs=yes
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openbsd" >&5
2606 $as_echo "openbsd" >&6; }
2607 ;;
2608 #
2609 # Haiku.
2610 #
2611 *86-*-haiku* | *86_64-*-haiku*)
2612
2613 $as_echo "#define BUILD_HAIKU 1" >>confdefs.h
2614
2615
2616 $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: haiku" >&5
2619 $as_echo "haiku" >&6; }
2620 ;;
2621 #
2622 # Others, untested.
2623 #
2624 *)
2625
2626 $as_echo "#define HAVE_UNTESTED 1" >>confdefs.h
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configuring interpreter-only on untested platform" >&5
2629 $as_echo "$as_me: WARNING: configuring interpreter-only on untested platform" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: interpreter-only" >&5
2631 $as_echo "interpreter-only" >&6; }
2632 enable_compiler=no
2633 ;;
2634 esac
2635
2636 #
2637 # Extra options.
2638 #
2639
2640 # Check whether --enable-generic was given.
2641 if test "${enable_generic+set}" = set; then :
2642 enableval=$enable_generic;
2643 else
2644 enable_generic=no
2645 fi
2646
2647 # Check whether --enable-compiler was given.
2648 if test "${enable_compiler+set}" = set; then :
2649 enableval=$enable_compiler;
2650 else
2651 enable_compiler=yes
2652 fi
2653
2654 # Check whether --enable-quadmath was given.
2655 if test "${enable_quadmath+set}" = set; then :
2656 enableval=$enable_quadmath;
2657 else
2658 enable_quadmath=yes
2659 fi
2660
2661 # Check whether --enable-mathlib was given.
2662 if test "${enable_mathlib+set}" = set; then :
2663 enableval=$enable_mathlib;
2664 else
2665 enable_mathlib=yes
2666 fi
2667
2668 # Check whether --enable-curses was given.
2669 if test "${enable_curses+set}" = set; then :
2670 enableval=$enable_curses;
2671 else
2672 enable_curses=yes
2673 fi
2674
2675 # Check whether --enable-gsl was given.
2676 if test "${enable_gsl+set}" = set; then :
2677 enableval=$enable_gsl;
2678 else
2679 enable_gsl=yes
2680 fi
2681
2682 # Check whether --enable-mpfr was given.
2683 if test "${enable_mpfr+set}" = set; then :
2684 enableval=$enable_mpfr;
2685 else
2686 enable_mpfr=yes
2687 fi
2688
2689 # Check whether --enable-parallel was given.
2690 if test "${enable_parallel+set}" = set; then :
2691 enableval=$enable_parallel;
2692 else
2693 enable_parallel=yes
2694 fi
2695
2696 # Check whether --enable-plotutils was given.
2697 if test "${enable_plotutils+set}" = set; then :
2698 enableval=$enable_plotutils;
2699 else
2700 enable_plotutils=yes
2701 fi
2702
2703 # Check whether --enable-postgresql was given.
2704 if test "${enable_postgresql+set}" = set; then :
2705 enableval=$enable_postgresql;
2706 else
2707 enable_postgresql=yes
2708 fi
2709
2710 # Check whether --enable-readline was given.
2711 if test "${enable_readline+set}" = set; then :
2712 enableval=$enable_readline;
2713 else
2714 enable_readline=yes
2715 fi
2716
2717 # Check whether --enable-standard-types was given.
2718 if test "${enable_standard_types+set}" = set; then :
2719 enableval=$enable_standard_types;
2720 else
2721 enable_standard_types=yes
2722 fi
2723
2724 # Check whether --enable-long-types was given.
2725 if test "${enable_long_types+set}" = set; then :
2726 enableval=$enable_long_types;
2727 else
2728 enable_long_types=yes
2729 fi
2730
2731 # Check whether --enable-pic was given.
2732 if test "${enable_pic+set}" = set; then :
2733 enableval=$enable_pic;
2734 else
2735 enable_pic="-fPIC"
2736 fi
2737
2738 # Check whether --enable-arch was given.
2739 if test "${enable_arch+set}" = set; then :
2740 enableval=$enable_arch;
2741 else
2742 enable_arch=no
2743 fi
2744
2745
2746 if test "x$enable_generic" = "xyes"; then
2747 enable_standard_types=yes
2748 enable_long_types=no
2749 fi
2750
2751 #
2752 # Initialisation.
2753 #
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: initialising..." >&5
2756 $as_echo "$as_me: initialising..." >&6;}
2757 am__api_version='1.16'
2758
2759 # Find a good install program. We prefer a C program (faster),
2760 # so one script is as good as another. But avoid the broken or
2761 # incompatible versions:
2762 # SysV /etc/install, /usr/sbin/install
2763 # SunOS /usr/etc/install
2764 # IRIX /sbin/install
2765 # AIX /bin/install
2766 # AmigaOS /C/install, which installs bootblocks on floppy discs
2767 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2768 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2769 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2770 # OS/2's system install, which has a completely different semantic
2771 # ./install, which can be erroneously created by make from ./install.sh.
2772 # Reject install programs that cannot install multiple files.
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2774 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2775 if test -z "$INSTALL"; then
2776 if ${ac_cv_path_install+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 # Account for people who put trailing slashes in PATH elements.
2785 case $as_dir/ in #((
2786 ./ | .// | /[cC]/* | \
2787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2788 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2789 /usr/ucb/* ) ;;
2790 *)
2791 # OSF1 and SCO ODT 3.0 have their own names for install.
2792 # Don't use installbsd from OSF since it installs stuff as root
2793 # by default.
2794 for ac_prog in ginstall scoinst install; do
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2797 if test $ac_prog = install &&
2798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2799 # AIX install. It has an incompatible calling convention.
2800 :
2801 elif test $ac_prog = install &&
2802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2803 # program-specific install script used by HP pwplus--don't use.
2804 :
2805 else
2806 rm -rf conftest.one conftest.two conftest.dir
2807 echo one > conftest.one
2808 echo two > conftest.two
2809 mkdir conftest.dir
2810 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2811 test -s conftest.one && test -s conftest.two &&
2812 test -s conftest.dir/conftest.one &&
2813 test -s conftest.dir/conftest.two
2814 then
2815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2816 break 3
2817 fi
2818 fi
2819 fi
2820 done
2821 done
2822 ;;
2823 esac
2824
2825 done
2826 IFS=$as_save_IFS
2827
2828 rm -rf conftest.one conftest.two conftest.dir
2829
2830 fi
2831 if test "${ac_cv_path_install+set}" = set; then
2832 INSTALL=$ac_cv_path_install
2833 else
2834 # As a last resort, use the slow shell script. Don't cache a
2835 # value for INSTALL within a source directory, because that will
2836 # break other packages using the cache if that directory is
2837 # removed, or if the value is a relative name.
2838 INSTALL=$ac_install_sh
2839 fi
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2842 $as_echo "$INSTALL" >&6; }
2843
2844 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2845 # It thinks the first close brace ends the variable substitution.
2846 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2847
2848 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2849
2850 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2853 $as_echo_n "checking whether build environment is sane... " >&6; }
2854 # Reject unsafe characters in $srcdir or the absolute working directory
2855 # name. Accept space and tab only in the latter.
2856 am_lf='
2857 '
2858 case `pwd` in
2859 *[\\\"\#\$\&\'\`$am_lf]*)
2860 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2861 esac
2862 case $srcdir in
2863 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2864 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2865 esac
2866
2867 # Do 'set' in a subshell so we don't clobber the current shell's
2868 # arguments. Must try -L first in case configure is actually a
2869 # symlink; some systems play weird games with the mod time of symlinks
2870 # (eg FreeBSD returns the mod time of the symlink's containing
2871 # directory).
2872 if (
2873 am_has_slept=no
2874 for am_try in 1 2; do
2875 echo "timestamp, slept: $am_has_slept" > conftest.file
2876 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2877 if test "$*" = "X"; then
2878 # -L didn't work.
2879 set X `ls -t "$srcdir/configure" conftest.file`
2880 fi
2881 if test "$*" != "X $srcdir/configure conftest.file" \
2882 && test "$*" != "X conftest.file $srcdir/configure"; then
2883
2884 # If neither matched, then we have a broken ls. This can happen
2885 # if, for instance, CONFIG_SHELL is bash and it inherits a
2886 # broken ls alias from the environment. This has actually
2887 # happened. Such a system could not be considered "sane".
2888 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2889 alias in your environment" "$LINENO" 5
2890 fi
2891 if test "$2" = conftest.file || test $am_try -eq 2; then
2892 break
2893 fi
2894 # Just in case.
2895 sleep 1
2896 am_has_slept=yes
2897 done
2898 test "$2" = conftest.file
2899 )
2900 then
2901 # Ok.
2902 :
2903 else
2904 as_fn_error $? "newly created file is older than distributed files!
2905 Check your system clock" "$LINENO" 5
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2908 $as_echo "yes" >&6; }
2909 # If we didn't sleep, we still need to ensure time stamps of config.status and
2910 # generated files are strictly newer.
2911 am_sleep_pid=
2912 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2913 ( sleep 1 ) &
2914 am_sleep_pid=$!
2915 fi
2916
2917 rm -f conftest.file
2918
2919 test "$program_prefix" != NONE &&
2920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2921 # Use a double $ so make ignores it.
2922 test "$program_suffix" != NONE &&
2923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2924 # Double any \ or $.
2925 # By default was `s,x,x', remove it if useless.
2926 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2927 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2928
2929 # Expand $ac_aux_dir to an absolute path.
2930 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2931
2932 if test x"${MISSING+set}" != xset; then
2933 MISSING="\${SHELL} '$am_aux_dir/missing'"
2934 fi
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --is-lightweight"; then
2937 am_missing_run="$MISSING "
2938 else
2939 am_missing_run=
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2942 fi
2943
2944 if test x"${install_sh+set}" != xset; then
2945 case $am_aux_dir in
2946 *\ * | *\ *)
2947 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2948 *)
2949 install_sh="\${SHELL} $am_aux_dir/install-sh"
2950 esac
2951 fi
2952
2953 # Installed binaries are usually stripped using 'strip' when the user
2954 # run "make install-strip". However 'strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the 'STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no; then
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_STRIP+:} false; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$STRIP"; then
2967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 STRIP=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996 fi
2997 if test -z "$ac_cv_prog_STRIP"; then
2998 ac_ct_STRIP=$STRIP
2999 # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$ac_ct_STRIP"; then
3007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_ac_ct_STRIP="strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035 if test "x$ac_ct_STRIP" = x; then
3036 STRIP=":"
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 STRIP=$ac_ct_STRIP
3045 fi
3046 else
3047 STRIP="$ac_cv_prog_STRIP"
3048 fi
3049
3050 fi
3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056 if ${ac_cv_path_mkdir+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_prog in mkdir gmkdir; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3067 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068 'mkdir (GNU coreutils) '* | \
3069 'mkdir (coreutils) '* | \
3070 'mkdir (fileutils) '4.1*)
3071 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3072 break 3;;
3073 esac
3074 done
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080
3081 test -d ./--version && rmdir ./--version
3082 if test "${ac_cv_path_mkdir+set}" = set; then
3083 MKDIR_P="$ac_cv_path_mkdir -p"
3084 else
3085 # As a last resort, use the slow shell script. Don't cache a
3086 # value for MKDIR_P within a source directory, because that will
3087 # break other packages using the cache if that directory is
3088 # removed, or if the value is a relative name.
3089 MKDIR_P="$ac_install_sh -d"
3090 fi
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3094
3095 for ac_prog in gawk mawk nawk awk
3096 do
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_AWK+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$AWK"; then
3105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_AWK="$ac_prog"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 AWK=$ac_cv_prog_AWK
3125 if test -n "$AWK"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3127 $as_echo "$AWK" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 test -n "$AWK" && break
3135 done
3136
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3138 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3139 set x ${MAKE-make}
3140 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3141 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat >conftest.make <<\_ACEOF
3145 SHELL = /bin/sh
3146 all:
3147 @echo '@@@%%%=$(MAKE)=@@@%%%'
3148 _ACEOF
3149 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3151 *@@@%%%=?*=@@@%%%*)
3152 eval ac_cv_prog_make_${ac_make}_set=yes;;
3153 *)
3154 eval ac_cv_prog_make_${ac_make}_set=no;;
3155 esac
3156 rm -f conftest.make
3157 fi
3158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3161 SET_MAKE=
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 SET_MAKE="MAKE=${MAKE-make}"
3166 fi
3167
3168 rm -rf .tst 2>/dev/null
3169 mkdir .tst 2>/dev/null
3170 if test -d .tst; then
3171 am__leading_dot=.
3172 else
3173 am__leading_dot=_
3174 fi
3175 rmdir .tst 2>/dev/null
3176
3177 # Check whether --enable-silent-rules was given.
3178 if test "${enable_silent_rules+set}" = set; then :
3179 enableval=$enable_silent_rules;
3180 fi
3181
3182 case $enable_silent_rules in # (((
3183 yes) AM_DEFAULT_VERBOSITY=0;;
3184 no) AM_DEFAULT_VERBOSITY=1;;
3185 *) AM_DEFAULT_VERBOSITY=1;;
3186 esac
3187 am_make=${MAKE-make}
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3189 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3190 if ${am_cv_make_support_nested_variables+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if $as_echo 'TRUE=$(BAR$(V))
3194 BAR0=false
3195 BAR1=true
3196 V=1
3197 am__doit:
3198 @$(TRUE)
3199 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3200 am_cv_make_support_nested_variables=yes
3201 else
3202 am_cv_make_support_nested_variables=no
3203 fi
3204 fi
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3206 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3207 if test $am_cv_make_support_nested_variables = yes; then
3208 AM_V='$(V)'
3209 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3210 else
3211 AM_V=$AM_DEFAULT_VERBOSITY
3212 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3213 fi
3214 AM_BACKSLASH='\'
3215
3216 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3217 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3218 # is not polluted with repeated "-I."
3219 am__isrc=' -I$(srcdir)'
3220 # test to see if srcdir already configured
3221 if test -f $srcdir/config.status; then
3222 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3223 fi
3224 fi
3225
3226 # test whether we have cygpath
3227 if test -z "$CYGPATH_W"; then
3228 if (cygpath --version) >/dev/null 2>/dev/null; then
3229 CYGPATH_W='cygpath -w'
3230 else
3231 CYGPATH_W=echo
3232 fi
3233 fi
3234
3235
3236 # Define the identity of the package.
3237 PACKAGE='algol68g'
3238 VERSION='3.1.2'
3239
3240
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE "$PACKAGE"
3243 _ACEOF
3244
3245
3246 cat >>confdefs.h <<_ACEOF
3247 #define VERSION "$VERSION"
3248 _ACEOF
3249
3250 # Some tools Automake needs.
3251
3252 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3253
3254
3255 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3256
3257
3258 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3259
3260
3261 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3262
3263
3264 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3265
3266 # For better backward compatibility. To be removed once Automake 1.9.x
3267 # dies out for good. For more background, see:
3268 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3269 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3270 mkdir_p='$(MKDIR_P)'
3271
3272 # We need awk for the "check" target (and possibly the TAP driver). The
3273 # system "awk" is bad on some platforms.
3274 # Always define AMTAR for backward compatibility. Yes, it's still used
3275 # in the wild :-( We should find a proper way to deprecate it ...
3276 AMTAR='$${TAR-tar}'
3277
3278
3279 # We'll loop over all known methods to create a tar archive until one works.
3280 _am_tools='gnutar pax cpio none'
3281
3282 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3283
3284
3285
3286
3287
3288
3289 # POSIX will say in a future version that running "rm -f" with no argument
3290 # is OK; and we want to be able to make that assumption in our Makefile
3291 # recipes. So use an aggressive probe to check that the usage we want is
3292 # actually supported "in the wild" to an acceptable degree.
3293 # See automake bug#10828.
3294 # To make any issue more visible, cause the running configure to be aborted
3295 # by default if the 'rm' program in use doesn't match our expectations; the
3296 # user can still override this though.
3297 if rm -f && rm -fr && rm -rf; then : OK; else
3298 cat >&2 <<'END'
3299 Oops!
3300
3301 Your 'rm' program seems unable to run without file operands specified
3302 on the command line, even when the '-f' option is present. This is contrary
3303 to the behaviour of most rm programs out there, and not conforming with
3304 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3305
3306 Please tell [email protected] about your system, including the value
3307 of your $PATH and any error possibly output before this message. This
3308 can help us improve future automake versions.
3309
3310 END
3311 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3312 echo 'Configuration will proceed anyway, since you have set the' >&2
3313 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3314 echo >&2
3315 else
3316 cat >&2 <<'END'
3317 Aborting the configuration process, to ensure you take notice of the issue.
3318
3319 You can download and install GNU coreutils to get an 'rm' implementation
3320 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3321
3322 If you want to complete the configuration process using your problematic
3323 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3324 to "yes", and re-run configure.
3325
3326 END
3327 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3328 fi
3329 fi
3330
3331
3332
3333 ac_config_headers="$ac_config_headers a68g-config.h"
3334
3335
3336 # Extract the first word of "a68g", so it can be a program name with args.
3337 set dummy a68g; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_a68g_exists+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$a68g_exists"; then
3344 ac_cv_prog_a68g_exists="$a68g_exists" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_a68g_exists=""yes""
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 a68g_exists=$ac_cv_prog_a68g_exists
3364 if test -n "$a68g_exists"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a68g_exists" >&5
3366 $as_echo "$a68g_exists" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373
3374 #
3375 # C compiler.
3376 #
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: C compiler..." >&5
3379 $as_echo "$as_me: C compiler..." >&6;}
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 if test -n "$ac_tool_prefix"; then
3392 for ac_prog in gcc clang
3393 do
3394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_CC+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 $as_echo "$CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430
3431 test -n "$CC" && break
3432 done
3433 fi
3434 if test -z "$CC"; then
3435 ac_ct_CC=$CC
3436 for ac_prog in gcc clang
3437 do
3438 # Extract the first word of "$ac_prog", so it can be a program name with args.
3439 set dummy $ac_prog; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -n "$ac_ct_CC"; then
3446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_ac_ct_CC="$ac_prog"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466 if test -n "$ac_ct_CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3468 $as_echo "$ac_ct_CC" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474
3475 test -n "$ac_ct_CC" && break
3476 done
3477
3478 if test "x$ac_ct_CC" = x; then
3479 CC=""
3480 else
3481 case $cross_compiling:$ac_tool_warned in
3482 yes:)
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3485 ac_tool_warned=yes ;;
3486 esac
3487 CC=$ac_ct_CC
3488 fi
3489 fi
3490
3491
3492 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "no acceptable C compiler found in \$PATH
3495 See \`config.log' for more details" "$LINENO" 5; }
3496
3497 # Provide some information about the compiler.
3498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3499 set X $ac_compile
3500 ac_compiler=$2
3501 for ac_option in --version -v -V -qversion; do
3502 { { ac_try="$ac_compiler $ac_option >&5"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510 ac_status=$?
3511 if test -s conftest.err; then
3512 sed '10a\
3513 ... rest of stderr output deleted ...
3514 10q' conftest.err >conftest.er1
3515 cat conftest.er1 >&5
3516 fi
3517 rm -f conftest.er1 conftest.err
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3520 done
3521
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 ac_clean_files_save=$ac_clean_files
3534 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3535 # Try to create an executable without -o first, disregard a.out.
3536 # It will help us diagnose broken compilers, and finding out an intuition
3537 # of exeext.
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3539 $as_echo_n "checking whether the C compiler works... " >&6; }
3540 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3541
3542 # The possible output files:
3543 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3544
3545 ac_rmfiles=
3546 for ac_file in $ac_files
3547 do
3548 case $ac_file in
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3551 esac
3552 done
3553 rm -f $ac_rmfiles
3554
3555 if { { ac_try="$ac_link_default"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link_default") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3567 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3568 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3569 # so that the user can short-circuit this test for compilers unknown to
3570 # Autoconf.
3571 for ac_file in $ac_files ''
3572 do
3573 test -f "$ac_file" || continue
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3576 ;;
3577 [ab].out )
3578 # We found the default executable, but exeext='' is most
3579 # certainly right.
3580 break;;
3581 *.* )
3582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3583 then :; else
3584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585 fi
3586 # We set ac_cv_exeext here because the later test for it is not
3587 # safe: cross compilers may not add the suffix if given an `-o'
3588 # argument, so we may need to know it at that point already.
3589 # Even if this section looks crufty: it has the advantage of
3590 # actually working.
3591 break;;
3592 * )
3593 break;;
3594 esac
3595 done
3596 test "$ac_cv_exeext" = no && ac_cv_exeext=
3597
3598 else
3599 ac_file=''
3600 fi
3601 if test -z "$ac_file"; then :
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error 77 "C compiler cannot create executables
3610 See \`config.log' for more details" "$LINENO" 5; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 $as_echo "yes" >&6; }
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3616 $as_echo_n "checking for C compiler default output file name... " >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3618 $as_echo "$ac_file" >&6; }
3619 ac_exeext=$ac_cv_exeext
3620
3621 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3622 ac_clean_files=$ac_clean_files_save
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3624 $as_echo_n "checking for suffix of executables... " >&6; }
3625 if { { ac_try="$ac_link"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_link") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3637 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3638 # work properly (i.e., refer to `conftest.exe'), while it won't with
3639 # `rm'.
3640 for ac_file in conftest.exe conftest conftest.*; do
3641 test -f "$ac_file" || continue
3642 case $ac_file in
3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3644 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3645 break;;
3646 * ) break;;
3647 esac
3648 done
3649 else
3650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3653 See \`config.log' for more details" "$LINENO" 5; }
3654 fi
3655 rm -f conftest conftest$ac_cv_exeext
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3657 $as_echo "$ac_cv_exeext" >&6; }
3658
3659 rm -f conftest.$ac_ext
3660 EXEEXT=$ac_cv_exeext
3661 ac_exeext=$EXEEXT
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664 #include <stdio.h>
3665 int
3666 main ()
3667 {
3668 FILE *f = fopen ("conftest.out", "w");
3669 return ferror (f) || fclose (f) != 0;
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 ac_clean_files="$ac_clean_files conftest.out"
3676 # Check that the compiler produces executables we can run. If not, either
3677 # the compiler is broken, or we cross compile.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679 $as_echo_n "checking whether we are cross compiling... " >&6; }
3680 if test "$cross_compiling" != yes; then
3681 { { ac_try="$ac_link"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_link") 2>&5
3689 ac_status=$?
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }
3692 if { ac_try='./conftest$ac_cv_exeext'
3693 { { case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_try") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; }; then
3703 cross_compiling=no
3704 else
3705 if test "$cross_compiling" = maybe; then
3706 cross_compiling=yes
3707 else
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $? "cannot run C compiled programs.
3711 If you meant to cross compile, use \`--host'.
3712 See \`config.log' for more details" "$LINENO" 5; }
3713 fi
3714 fi
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3717 $as_echo "$cross_compiling" >&6; }
3718
3719 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3720 ac_clean_files=$ac_clean_files_save
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3722 $as_echo_n "checking for suffix of object files... " >&6; }
3723 if ${ac_cv_objext+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.o conftest.obj
3738 if { { ac_try="$ac_compile"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_compile") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }; then :
3749 for ac_file in conftest.o conftest.obj conftest.*; do
3750 test -f "$ac_file" || continue;
3751 case $ac_file in
3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3753 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3754 break;;
3755 esac
3756 done
3757 else
3758 $as_echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of object files: cannot compile
3764 See \`config.log' for more details" "$LINENO" 5; }
3765 fi
3766 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3769 $as_echo "$ac_cv_objext" >&6; }
3770 OBJEXT=$ac_cv_objext
3771 ac_objext=$OBJEXT
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3773 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3774 if ${ac_cv_c_compiler_gnu+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783 #ifndef __GNUC__
3784 choke me
3785 #endif
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_compiler_gnu=yes
3793 else
3794 ac_compiler_gnu=no
3795 fi
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3798
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3801 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3802 if test $ac_compiler_gnu = yes; then
3803 GCC=yes
3804 else
3805 GCC=
3806 fi
3807 ac_test_CFLAGS=${CFLAGS+set}
3808 ac_save_CFLAGS=$CFLAGS
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3810 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3811 if ${ac_cv_prog_cc_g+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 ac_save_c_werror_flag=$ac_c_werror_flag
3815 ac_c_werror_flag=yes
3816 ac_cv_prog_cc_g=no
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820
3821 int
3822 main ()
3823 {
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3831 else
3832 CFLAGS=""
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 int
3837 main ()
3838 {
3839
3840 ;
3841 return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845
3846 else
3847 ac_c_werror_flag=$ac_save_c_werror_flag
3848 CFLAGS="-g"
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851
3852 int
3853 main ()
3854 {
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861 ac_cv_prog_cc_g=yes
3862 fi
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_c_werror_flag=$ac_save_c_werror_flag
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3871 $as_echo "$ac_cv_prog_cc_g" >&6; }
3872 if test "$ac_test_CFLAGS" = set; then
3873 CFLAGS=$ac_save_CFLAGS
3874 elif test $ac_cv_prog_cc_g = yes; then
3875 if test "$GCC" = yes; then
3876 CFLAGS="-g -O2"
3877 else
3878 CFLAGS="-g"
3879 fi
3880 else
3881 if test "$GCC" = yes; then
3882 CFLAGS="-O2"
3883 else
3884 CFLAGS=
3885 fi
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3889 if ${ac_cv_prog_cc_c89+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 ac_cv_prog_cc_c89=no
3893 ac_save_CC=$CC
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <stdarg.h>
3897 #include <stdio.h>
3898 struct stat;
3899 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3900 struct buf { int x; };
3901 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3902 static char *e (p, i)
3903 char **p;
3904 int i;
3905 {
3906 return p[i];
3907 }
3908 static char *f (char * (*g) (char **, int), char **p, ...)
3909 {
3910 char *s;
3911 va_list v;
3912 va_start (v,p);
3913 s = g (p, va_arg (v,int));
3914 va_end (v);
3915 return s;
3916 }
3917
3918 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3919 function prototypes and stuff, but not '\xHH' hex character constants.
3920 These don't provoke an error unfortunately, instead are silently treated
3921 as 'x'. The following induces an error, until -std is added to get
3922 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3923 array size at least. It's necessary to write '\x00'==0 to get something
3924 that's true only with -std. */
3925 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3926
3927 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3928 inside strings and character constants. */
3929 #define FOO(x) 'x'
3930 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3931
3932 int test (int i, double x);
3933 struct s1 {int (*f) (int a);};
3934 struct s2 {int (*f) (double a);};
3935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3936 int argc;
3937 char **argv;
3938 int
3939 main ()
3940 {
3941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3947 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3948 do
3949 CC="$ac_save_CC $ac_arg"
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_cv_prog_cc_c89=$ac_arg
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext
3954 test "x$ac_cv_prog_cc_c89" != "xno" && break
3955 done
3956 rm -f conftest.$ac_ext
3957 CC=$ac_save_CC
3958
3959 fi
3960 # AC_CACHE_VAL
3961 case "x$ac_cv_prog_cc_c89" in
3962 x)
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3964 $as_echo "none needed" >&6; } ;;
3965 xno)
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3967 $as_echo "unsupported" >&6; } ;;
3968 *)
3969 CC="$CC $ac_cv_prog_cc_c89"
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3971 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3972 esac
3973 if test "x$ac_cv_prog_cc_c89" != xno; then :
3974
3975 fi
3976
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3989 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3990 if ${am_cv_prog_cc_c_o+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 # Make sure it works both with $CC and with simple cc.
4005 # Following AC_PROG_CC_C_O, we do the test twice because some
4006 # compilers refuse to overwrite an existing .o file with -o,
4007 # though they will create one.
4008 am_cv_prog_cc_c_o=yes
4009 for am_i in 1 2; do
4010 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4011 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } \
4015 && test -f conftest2.$ac_objext; then
4016 : OK
4017 else
4018 am_cv_prog_cc_c_o=no
4019 break
4020 fi
4021 done
4022 rm -f core conftest*
4023 unset am_i
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4026 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4027 if test "$am_cv_prog_cc_c_o" != yes; then
4028 # Losing compiler, so override with the script.
4029 # FIXME: It is wrong to rewrite CC.
4030 # But if we don't then we get into trouble of one sort or another.
4031 # A longer-term fix would be to have automake use am__CC in this case,
4032 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4033 CC="$am_aux_dir/compile $CC"
4034 fi
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041 DEPDIR="${am__leading_dot}deps"
4042
4043 ac_config_commands="$ac_config_commands depfiles"
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4046 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4047 cat > confinc.mk << 'END'
4048 am__doit:
4049 @echo this is the am__doit target >confinc.out
4050 .PHONY: am__doit
4051 END
4052 am__include="#"
4053 am__quote=
4054 # BSD make does it like this.
4055 echo '.include "confinc.mk" # ignored' > confmf.BSD
4056 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4057 echo 'include confinc.mk # ignored' > confmf.GNU
4058 _am_result=no
4059 for s in GNU BSD; do
4060 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4061 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }
4065 case $?:`cat confinc.out 2>/dev/null` in #(
4066 '0:this is the am__doit target') :
4067 case $s in #(
4068 BSD) :
4069 am__include='.include' am__quote='"' ;; #(
4070 *) :
4071 am__include='include' am__quote='' ;;
4072 esac ;; #(
4073 *) :
4074 ;;
4075 esac
4076 if test "$am__include" != "#"; then
4077 _am_result="yes ($s style)"
4078 break
4079 fi
4080 done
4081 rm -f confinc.* confmf.*
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4083 $as_echo "${_am_result}" >&6; }
4084
4085 # Check whether --enable-dependency-tracking was given.
4086 if test "${enable_dependency_tracking+set}" = set; then :
4087 enableval=$enable_dependency_tracking;
4088 fi
4089
4090 if test "x$enable_dependency_tracking" != xno; then
4091 am_depcomp="$ac_aux_dir/depcomp"
4092 AMDEPBACKSLASH='\'
4093 am__nodep='_no'
4094 fi
4095 if test "x$enable_dependency_tracking" != xno; then
4096 AMDEP_TRUE=
4097 AMDEP_FALSE='#'
4098 else
4099 AMDEP_TRUE='#'
4100 AMDEP_FALSE=
4101 fi
4102
4103
4104
4105 depcc="$CC" am_compiler_list=
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108 $as_echo_n "checking dependency style of $depcc... " >&6; }
4109 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named 'D' -- because '-MD' means "put the output
4117 # in D".
4118 rm -rf conftest.dir
4119 mkdir conftest.dir
4120 # Copy depcomp to subdir because otherwise we won't find it if we're
4121 # using a relative directory.
4122 cp "$am_depcomp" conftest.dir
4123 cd conftest.dir
4124 # We will build objects and dependencies in a subdirectory because
4125 # it helps to detect inapplicable dependency modes. For instance
4126 # both Tru64's cc and ICC support -MD to output dependencies as a
4127 # side effect of compilation, but ICC will put the dependencies in
4128 # the current directory while Tru64 will put them in the object
4129 # directory.
4130 mkdir sub
4131
4132 am_cv_CC_dependencies_compiler_type=none
4133 if test "$am_compiler_list" = ""; then
4134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135 fi
4136 am__universal=false
4137 case " $depcc " in #(
4138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139 esac
4140
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4145 #
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4149 : > sub/conftest.c
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4153 # Solaris 10 /bin/sh.
4154 echo '/* dummy */' > sub/conftst$i.h
4155 done
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
4158 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4159 # mode. It turns out that the SunPro C++ compiler does not properly
4160 # handle '-M -o', and we need to detect this. Also, some Intel
4161 # versions had trouble with output in subdirs.
4162 am__obj=sub/conftest.${OBJEXT-o}
4163 am__minus_obj="-o $am__obj"
4164 case $depmode in
4165 gcc)
4166 # This depmode causes a compiler race in universal mode.
4167 test "$am__universal" = false || continue
4168 ;;
4169 nosideeffect)
4170 # After this tag, mechanisms are not by side-effect, so they'll
4171 # only be used when explicitly requested.
4172 if test "x$enable_dependency_tracking" = xyes; then
4173 continue
4174 else
4175 break
4176 fi
4177 ;;
4178 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4179 # This compiler won't grok '-c -o', but also, the minuso test has
4180 # not run yet. These depmodes are late enough in the game, and
4181 # so weak that their functioning should not be impacted.
4182 am__obj=conftest.${OBJEXT-o}
4183 am__minus_obj=
4184 ;;
4185 none) break ;;
4186 esac
4187 if depmode=$depmode \
4188 source=sub/conftest.c object=$am__obj \
4189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191 >/dev/null 2>conftest.err &&
4192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205 am_cv_CC_dependencies_compiler_type=$depmode
4206 break
4207 fi
4208 fi
4209 done
4210
4211 cd ..
4212 rm -rf conftest.dir
4213 else
4214 am_cv_CC_dependencies_compiler_type=none
4215 fi
4216
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221
4222 if
4223 test "x$enable_dependency_tracking" != xno \
4224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225 am__fastdepCC_TRUE=
4226 am__fastdepCC_FALSE='#'
4227 else
4228 am__fastdepCC_TRUE='#'
4229 am__fastdepCC_FALSE=
4230 fi
4231
4232
4233 # AC_PROG_CC([clang])
4234 if test "x$GCC" != "xyes"; then
4235 a68g_ac_compiler=no
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc is the preferred C compiler; configuring interpreter-only" >&5
4237 $as_echo "$as_me: WARNING: gcc is the preferred C compiler; configuring interpreter-only" >&2;}
4238 else
4239
4240 $as_echo "#define HAVE_GCC 1" >>confdefs.h
4241
4242
4243 cat >>confdefs.h <<_ACEOF
4244 #define C_COMPILER "$CC"
4245 _ACEOF
4246
4247 # On rhel8 "rpmbuild" sneaks in -pie and -fPIE, so a68g also needs to pass through.
4248 # On Suse15 the header files for pgsql and R have their own directories.
4249 COPTFLAGS="-g -O2 -Wall -I /usr/include/pgsql -I /usr/lib64/R/include"
4250 LDOPTFLAG="-L /usr/lib64/R/lib"
4251 # from /usr/lib/rpm/redhat/macros
4252 CFLAGS="${CFLAGS:-$COPTFLAGS}" ; export CFLAGS
4253 LDFLAGS="${LDFLAGS:-$LDOPTFLAGS}" ; export LDFLAGS
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wall" >&5
4255 $as_echo_n "checking whether $CC accepts -Wall... " >&6; }
4256 a68g_ac_save_CFLAGS=$CFLAGS
4257 CFLAGS="$a68g_ac_save_CFLAGS -Wall"
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260
4261 int
4262 main ()
4263 {
4264
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4271 $as_echo "yes" >&6; }
4272 else
4273 CFLAGS="$a68g_ac_save_CFLAGS"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wshadow" >&5
4280 $as_echo_n "checking whether $CC accepts -Wshadow... " >&6; }
4281 a68g_ac_save_CFLAGS=$CFLAGS
4282 CFLAGS="$a68g_ac_save_CFLAGS -Wshadow"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285
4286 int
4287 main ()
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4296 $as_echo "yes" >&6; }
4297 else
4298 CFLAGS="$a68g_ac_save_CFLAGS"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wunused-variable" >&5
4305 $as_echo_n "checking whether $CC accepts -Wunused-variable... " >&6; }
4306 a68g_ac_save_CFLAGS=$CFLAGS
4307 CFLAGS="$a68g_ac_save_CFLAGS -Wunused-variable"
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4310
4311 int
4312 main ()
4313 {
4314
4315 ;
4316 return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_compile "$LINENO"; then :
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4321 $as_echo "yes" >&6; }
4322 else
4323 CFLAGS="$a68g_ac_save_CFLAGS"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wunused-parameter" >&5
4330 $as_echo_n "checking whether $CC accepts -Wunused-parameter... " >&6; }
4331 a68g_ac_save_CFLAGS=$CFLAGS
4332 CFLAGS="$a68g_ac_save_CFLAGS -Wunused-parameter"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4346 $as_echo "yes" >&6; }
4347 else
4348 CFLAGS="$a68g_ac_save_CFLAGS"
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wno-long-long" >&5
4355 $as_echo_n "checking whether $CC accepts -Wno-long-long... " >&6; }
4356 a68g_ac_save_CFLAGS=$CFLAGS
4357 CFLAGS="$a68g_ac_save_CFLAGS -Wno-long-long"
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360
4361 int
4362 main ()
4363 {
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371 $as_echo "yes" >&6; }
4372 else
4373 CFLAGS="$a68g_ac_save_CFLAGS"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-diagnostics-color" >&5
4380 $as_echo_n "checking whether $CC accepts -fno-diagnostics-color... " >&6; }
4381 a68g_ac_save_CFLAGS=$CFLAGS
4382 CFLAGS="$a68g_ac_save_CFLAGS -fno-diagnostics-color"
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385
4386 int
4387 main ()
4388 {
4389
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4397 else
4398 CFLAGS="$a68g_ac_save_CFLAGS"
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403
4404 #
4405 # Test on gcc capabilities.
4406 #
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((aligned())) supported" >&5
4408 $as_echo_n "checking __attribute__((aligned())) supported... " >&6; }
4409
4410 if test "$cross_compiling" = yes; then :
4411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413 as_fn_error $? "cannot run test program while cross compiling
4414 See \`config.log' for more details" "$LINENO" 5; }
4415 else
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418
4419 int
4420 main ()
4421 {
4422 typedef int aint __attribute__((aligned(8)));
4423 ;
4424 return 0;
4425 }
4426 _ACEOF
4427 if ac_fn_c_try_run "$LINENO"; then :
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429 $as_echo "yes" >&6; }
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "stop -- C compiler does not support __attribute__aligned directive
4436 See \`config.log' for more details" "$LINENO" 5; }
4437 fi
4438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4439 conftest.$ac_objext conftest.beam conftest.$ac_ext
4440 fi
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4443 $as_echo_n "checking for inline... " >&6; }
4444 if ${ac_cv_c_inline+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 ac_cv_c_inline=no
4448 for ac_kw in inline __inline__ __inline; do
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #ifndef __cplusplus
4452 typedef int foo_t;
4453 static $ac_kw foo_t static_foo () {return 0; }
4454 $ac_kw foo_t foo () {return 0; }
4455 #endif
4456
4457 _ACEOF
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459 ac_cv_c_inline=$ac_kw
4460 fi
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 test "$ac_cv_c_inline" != no && break
4463 done
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4467 $as_echo "$ac_cv_c_inline" >&6; }
4468
4469 case $ac_cv_c_inline in
4470 inline | yes) ;;
4471 *)
4472 case $ac_cv_c_inline in
4473 no) ac_val=;;
4474 *) ac_val=$ac_cv_c_inline;;
4475 esac
4476 cat >>confdefs.h <<_ACEOF
4477 #ifndef __cplusplus
4478 #define inline $ac_val
4479 #endif
4480 _ACEOF
4481 ;;
4482 esac
4483
4484 #
4485 # Set -I/usr/local/include for *BSD
4486 #
4487 if test "x$bsd_include_dirs" = "xyes"; then
4488
4489 $as_echo "#define INCLUDE_DIR \"-I/usr/local/include\"" >>confdefs.h
4490
4491 else
4492
4493 $as_echo "#define INCLUDE_DIR \"\"" >>confdefs.h
4494
4495 fi
4496 #
4497 # Check -Wl,--export-dynamic, needed for creating shared objects.
4498 #
4499 # Check whether we can link to a particular function, not just whether we can link.
4500 # In fact, we must actually check that the resulting program runs.
4501 #
4502 a68g_ac_arg="-Wl,--export-dynamic"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts $a68g_ac_arg" >&5
4504 $as_echo_n "checking if $CC accepts $a68g_ac_arg... " >&6; }
4505 a68g_ac_save_LDFLAGS=$LDFLAGS
4506 LDFLAGS="$a68g_ac_save_LDFLAGS $a68g_ac_arg"
4507 if test "$cross_compiling" = yes; then :
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
4509 $as_echo "assuming no" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --export-dynamic is not accepted; configuring interpreter-only" >&5
4511 $as_echo "$as_me: WARNING: --export-dynamic is not accepted; configuring interpreter-only" >&2;}
4512 a68g_ac_compiler=no
4513 LDFLAGS=$a68g_ac_save_LDFLAGS
4514
4515
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 extern void exit (); void (*fptr) () = exit;
4520 int
4521 main ()
4522 {
4523
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 if ac_fn_c_try_run "$LINENO"; then :
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4531
4532 $as_echo "#define HAVE_EXPORT_DYNAMIC 1" >>confdefs.h
4533
4534
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --export-dynamic is not accepted; configuring interpreter-only" >&5
4539 $as_echo "$as_me: WARNING: --export-dynamic is not accepted; configuring interpreter-only" >&2;}
4540 a68g_ac_compiler=no
4541 LDFLAGS=$a68g_ac_save_LDFLAGS
4542
4543 fi
4544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4545 conftest.$ac_objext conftest.beam conftest.$ac_ext
4546 fi
4547
4548 fi
4549 if test "x$a68g_ac_compiler" = "xyes"; then
4550 EXPORT_DYNAMIC_TRUE=
4551 EXPORT_DYNAMIC_FALSE='#'
4552 else
4553 EXPORT_DYNAMIC_TRUE='#'
4554 EXPORT_DYNAMIC_FALSE=
4555 fi
4556
4557 #
4558 # Optionally, tune for a specific processor.
4559 #
4560 if test "x$enable_arch" != "xno"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -march=$enable_arch" >&5
4562 $as_echo_n "checking whether $CC accepts -march=$enable_arch... " >&6; }
4563 a68g_ac_save_CFLAGS=$CFLAGS
4564 a68g_ac_march="-march=$enable_arch"
4565 CFLAGS="$a68g_ac_save_CFLAGS $a68g_ac_march"
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568
4569 int
4570 main ()
4571 {
4572
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4579 $as_echo "yes" >&6; }
4580
4581 cat >>confdefs.h <<_ACEOF
4582 #define HAVE_TUNING "$a68g_ac_march"
4583 _ACEOF
4584
4585
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your CPU name is not accepted; resetting to default" >&5
4590 $as_echo "$as_me: WARNING: your CPU name is not accepted; resetting to default" >&2;}
4591 CFLAGS="$a68g_ac_save_CFLAGS"
4592
4593
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 fi
4597 #
4598 # Some platforms want another or no PIC option.
4599 #
4600 if test "x$enable_compiler" = "xyes"; then
4601 if test "x$enable_pic" != "xno"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $enable_pic" >&5
4603 $as_echo_n "checking whether $CC accepts $enable_pic... " >&6; }
4604 a68g_ac_save_CFLAGS=$CFLAGS
4605 CFLAGS="$a68g_ac_save_CFLAGS $enable_pic"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main ()
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619 $as_echo "yes" >&6; }
4620
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_PIC "$enable_pic"
4623 _ACEOF
4624
4625
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your PIC option is not accepted; configuring interpreter-only" >&5
4630 $as_echo "$as_me: WARNING: your PIC option is not accepted; configuring interpreter-only" >&2;}
4631
4632
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 CFLAGS="$a68g_ac_save_CFLAGS"
4636 fi
4637 fi
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4641 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4642 if ${ac_cv_prog_cc_c99+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 ac_cv_prog_cc_c99=no
4646 ac_save_CC=$CC
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <stdarg.h>
4650 #include <stdbool.h>
4651 #include <stdlib.h>
4652 #include <wchar.h>
4653 #include <stdio.h>
4654
4655 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4656 #define debug(...) fprintf (stderr, __VA_ARGS__)
4657 #define showlist(...) puts (#__VA_ARGS__)
4658 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4659 static void
4660 test_varargs_macros (void)
4661 {
4662 int x = 1234;
4663 int y = 5678;
4664 debug ("Flag");
4665 debug ("X = %d\n", x);
4666 showlist (The first, second, and third items.);
4667 report (x>y, "x is %d but y is %d", x, y);
4668 }
4669
4670 // Check long long types.
4671 #define BIG64 18446744073709551615ull
4672 #define BIG32 4294967295ul
4673 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4674 #if !BIG_OK
4675 your preprocessor is broken;
4676 #endif
4677 #if BIG_OK
4678 #else
4679 your preprocessor is broken;
4680 #endif
4681 static long long int bignum = -9223372036854775807LL;
4682 static unsigned long long int ubignum = BIG64;
4683
4684 struct incomplete_array
4685 {
4686 int datasize;
4687 double data[];
4688 };
4689
4690 struct named_init {
4691 int number;
4692 const wchar_t *name;
4693 double average;
4694 };
4695
4696 typedef const char *ccp;
4697
4698 static inline int
4699 test_restrict (ccp restrict text)
4700 {
4701 // See if C++-style comments work.
4702 // Iterate through items via the restricted pointer.
4703 // Also check for declarations in for loops.
4704 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4705 continue;
4706 return 0;
4707 }
4708
4709 // Check varargs and va_copy.
4710 static void
4711 test_varargs (const char *format, ...)
4712 {
4713 va_list args;
4714 va_start (args, format);
4715 va_list args_copy;
4716 va_copy (args_copy, args);
4717
4718 const char *str;
4719 int number;
4720 float fnumber;
4721
4722 while (*format)
4723 {
4724 switch (*format++)
4725 {
4726 case 's': // string
4727 str = va_arg (args_copy, const char *);
4728 break;
4729 case 'd': // int
4730 number = va_arg (args_copy, int);
4731 break;
4732 case 'f': // float
4733 fnumber = va_arg (args_copy, double);
4734 break;
4735 default:
4736 break;
4737 }
4738 }
4739 va_end (args_copy);
4740 va_end (args);
4741 }
4742
4743 int
4744 main ()
4745 {
4746
4747 // Check bool.
4748 _Bool success = false;
4749
4750 // Check restrict.
4751 if (test_restrict ("String literal") == 0)
4752 success = true;
4753 char *restrict newvar = "Another string";
4754
4755 // Check varargs.
4756 test_varargs ("s, d' f .", "string", 65, 34.234);
4757 test_varargs_macros ();
4758
4759 // Check flexible array members.
4760 struct incomplete_array *ia =
4761 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4762 ia->datasize = 10;
4763 for (int i = 0; i < ia->datasize; ++i)
4764 ia->data[i] = i * 1.234;
4765
4766 // Check named initializers.
4767 struct named_init ni = {
4768 .number = 34,
4769 .name = L"Test wide string",
4770 .average = 543.34343,
4771 };
4772
4773 ni.number = 58;
4774
4775 int dynamic_array[ni.number];
4776 dynamic_array[ni.number - 1] = 543;
4777
4778 // work around unused variable warnings
4779 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4780 || dynamic_array[ni.number - 1] != 543);
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4787 do
4788 CC="$ac_save_CC $ac_arg"
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_prog_cc_c99=$ac_arg
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext
4793 test "x$ac_cv_prog_cc_c99" != "xno" && break
4794 done
4795 rm -f conftest.$ac_ext
4796 CC=$ac_save_CC
4797
4798 fi
4799 # AC_CACHE_VAL
4800 case "x$ac_cv_prog_cc_c99" in
4801 x)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4803 $as_echo "none needed" >&6; } ;;
4804 xno)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4806 $as_echo "unsupported" >&6; } ;;
4807 *)
4808 CC="$CC $ac_cv_prog_cc_c99"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4810 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4811 esac
4812 if test "x$ac_cv_prog_cc_c99" != xno; then :
4813
4814 fi
4815
4816
4817 ac_ext=c
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4823 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4824 # On Suns, sometimes $CPP names a directory.
4825 if test -n "$CPP" && test -d "$CPP"; then
4826 CPP=
4827 fi
4828 if test -z "$CPP"; then
4829 if ${ac_cv_prog_CPP+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 # Double quotes because CPP needs to be expanded
4833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4834 do
4835 ac_preproc_ok=false
4836 for ac_c_preproc_warn_flag in '' yes
4837 do
4838 # Use a header file that comes with gcc, so configuring glibc
4839 # with a fresh cross-compiler works.
4840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 # <limits.h> exists even on freestanding compilers.
4842 # On the NeXT, cc -E runs the code through the compiler's parser,
4843 # not just through cpp. "Syntax error" is here to catch this case.
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 #ifdef __STDC__
4847 # include <limits.h>
4848 #else
4849 # include <assert.h>
4850 #endif
4851 Syntax error
4852 _ACEOF
4853 if ac_fn_c_try_cpp "$LINENO"; then :
4854
4855 else
4856 # Broken: fails on valid input.
4857 continue
4858 fi
4859 rm -f conftest.err conftest.i conftest.$ac_ext
4860
4861 # OK, works on sane cases. Now check whether nonexistent headers
4862 # can be detected and how.
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865 #include <ac_nonexistent.h>
4866 _ACEOF
4867 if ac_fn_c_try_cpp "$LINENO"; then :
4868 # Broken: success on invalid input.
4869 continue
4870 else
4871 # Passes both tests.
4872 ac_preproc_ok=:
4873 break
4874 fi
4875 rm -f conftest.err conftest.i conftest.$ac_ext
4876
4877 done
4878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4879 rm -f conftest.i conftest.err conftest.$ac_ext
4880 if $ac_preproc_ok; then :
4881 break
4882 fi
4883
4884 done
4885 ac_cv_prog_CPP=$CPP
4886
4887 fi
4888 CPP=$ac_cv_prog_CPP
4889 else
4890 ac_cv_prog_CPP=$CPP
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4893 $as_echo "$CPP" >&6; }
4894 ac_preproc_ok=false
4895 for ac_c_preproc_warn_flag in '' yes
4896 do
4897 # Use a header file that comes with gcc, so configuring glibc
4898 # with a fresh cross-compiler works.
4899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900 # <limits.h> exists even on freestanding compilers.
4901 # On the NeXT, cc -E runs the code through the compiler's parser,
4902 # not just through cpp. "Syntax error" is here to catch this case.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910 Syntax error
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913
4914 else
4915 # Broken: fails on valid input.
4916 continue
4917 fi
4918 rm -f conftest.err conftest.i conftest.$ac_ext
4919
4920 # OK, works on sane cases. Now check whether nonexistent headers
4921 # can be detected and how.
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <ac_nonexistent.h>
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927 # Broken: success on invalid input.
4928 continue
4929 else
4930 # Passes both tests.
4931 ac_preproc_ok=:
4932 break
4933 fi
4934 rm -f conftest.err conftest.i conftest.$ac_ext
4935
4936 done
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.i conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then :
4940
4941 else
4942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4944 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4945 See \`config.log' for more details" "$LINENO" 5; }
4946 fi
4947
4948 ac_ext=c
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: types..." >&5
4955 $as_echo "$as_me: types..." >&6;}
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4959 if ${ac_cv_path_GREP+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -z "$GREP"; then
4963 ac_path_GREP_found=false
4964 # Loop through the user's path and test for each of PROGNAME-LIST
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4967 do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_prog in grep ggrep; do
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4973 as_fn_executable_p "$ac_path_GREP" || continue
4974 # Check for GNU ac_path_GREP and select it if it is found.
4975 # Check for GNU $ac_path_GREP
4976 case `"$ac_path_GREP" --version 2>&1` in
4977 *GNU*)
4978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4979 *)
4980 ac_count=0
4981 $as_echo_n 0123456789 >"conftest.in"
4982 while :
4983 do
4984 cat "conftest.in" "conftest.in" >"conftest.tmp"
4985 mv "conftest.tmp" "conftest.in"
4986 cp "conftest.in" "conftest.nl"
4987 $as_echo 'GREP' >> "conftest.nl"
4988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990 as_fn_arith $ac_count + 1 && ac_count=$as_val
4991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4992 # Best one so far, save it but keep looking for a better one
4993 ac_cv_path_GREP="$ac_path_GREP"
4994 ac_path_GREP_max=$ac_count
4995 fi
4996 # 10*(2^10) chars as input seems more than enough
4997 test $ac_count -gt 10 && break
4998 done
4999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5000 esac
5001
5002 $ac_path_GREP_found && break 3
5003 done
5004 done
5005 done
5006 IFS=$as_save_IFS
5007 if test -z "$ac_cv_path_GREP"; then
5008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5009 fi
5010 else
5011 ac_cv_path_GREP=$GREP
5012 fi
5013
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5016 $as_echo "$ac_cv_path_GREP" >&6; }
5017 GREP="$ac_cv_path_GREP"
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5021 $as_echo_n "checking for egrep... " >&6; }
5022 if ${ac_cv_path_EGREP+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5026 then ac_cv_path_EGREP="$GREP -E"
5027 else
5028 if test -z "$EGREP"; then
5029 ac_path_EGREP_found=false
5030 # Loop through the user's path and test for each of PROGNAME-LIST
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_prog in egrep; do
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5039 as_fn_executable_p "$ac_path_EGREP" || continue
5040 # Check for GNU ac_path_EGREP and select it if it is found.
5041 # Check for GNU $ac_path_EGREP
5042 case `"$ac_path_EGREP" --version 2>&1` in
5043 *GNU*)
5044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5045 *)
5046 ac_count=0
5047 $as_echo_n 0123456789 >"conftest.in"
5048 while :
5049 do
5050 cat "conftest.in" "conftest.in" >"conftest.tmp"
5051 mv "conftest.tmp" "conftest.in"
5052 cp "conftest.in" "conftest.nl"
5053 $as_echo 'EGREP' >> "conftest.nl"
5054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5056 as_fn_arith $ac_count + 1 && ac_count=$as_val
5057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5058 # Best one so far, save it but keep looking for a better one
5059 ac_cv_path_EGREP="$ac_path_EGREP"
5060 ac_path_EGREP_max=$ac_count
5061 fi
5062 # 10*(2^10) chars as input seems more than enough
5063 test $ac_count -gt 10 && break
5064 done
5065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066 esac
5067
5068 $ac_path_EGREP_found && break 3
5069 done
5070 done
5071 done
5072 IFS=$as_save_IFS
5073 if test -z "$ac_cv_path_EGREP"; then
5074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5075 fi
5076 else
5077 ac_cv_path_EGREP=$EGREP
5078 fi
5079
5080 fi
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5083 $as_echo "$ac_cv_path_EGREP" >&6; }
5084 EGREP="$ac_cv_path_EGREP"
5085
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5088 $as_echo_n "checking for ANSI C header files... " >&6; }
5089 if ${ac_cv_header_stdc+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <stdlib.h>
5095 #include <stdarg.h>
5096 #include <string.h>
5097 #include <float.h>
5098
5099 int
5100 main ()
5101 {
5102
5103 ;
5104 return 0;
5105 }
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_header_stdc=yes
5109 else
5110 ac_cv_header_stdc=no
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113
5114 if test $ac_cv_header_stdc = yes; then
5115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <string.h>
5119
5120 _ACEOF
5121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122 $EGREP "memchr" >/dev/null 2>&1; then :
5123
5124 else
5125 ac_cv_header_stdc=no
5126 fi
5127 rm -f conftest*
5128
5129 fi
5130
5131 if test $ac_cv_header_stdc = yes; then
5132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #include <stdlib.h>
5136
5137 _ACEOF
5138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 $EGREP "free" >/dev/null 2>&1; then :
5140
5141 else
5142 ac_cv_header_stdc=no
5143 fi
5144 rm -f conftest*
5145
5146 fi
5147
5148 if test $ac_cv_header_stdc = yes; then
5149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5150 if test "$cross_compiling" = yes; then :
5151 :
5152 else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <ctype.h>
5156 #include <stdlib.h>
5157 #if ((' ' & 0x0FF) == 0x020)
5158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5160 #else
5161 # define ISLOWER(c) \
5162 (('a' <= (c) && (c) <= 'i') \
5163 || ('j' <= (c) && (c) <= 'r') \
5164 || ('s' <= (c) && (c) <= 'z'))
5165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5166 #endif
5167
5168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5169 int
5170 main ()
5171 {
5172 int i;
5173 for (i = 0; i < 256; i++)
5174 if (XOR (islower (i), ISLOWER (i))
5175 || toupper (i) != TOUPPER (i))
5176 return 2;
5177 return 0;
5178 }
5179 _ACEOF
5180 if ac_fn_c_try_run "$LINENO"; then :
5181
5182 else
5183 ac_cv_header_stdc=no
5184 fi
5185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5186 conftest.$ac_objext conftest.beam conftest.$ac_ext
5187 fi
5188
5189 fi
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5192 $as_echo "$ac_cv_header_stdc" >&6; }
5193 if test $ac_cv_header_stdc = yes; then
5194
5195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5196
5197 fi
5198
5199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5201 inttypes.h stdint.h unistd.h
5202 do :
5203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5205 "
5206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5207 cat >>confdefs.h <<_ACEOF
5208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5209 _ACEOF
5210
5211 fi
5212
5213 done
5214
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
5217 $as_echo_n "checking whether char is unsigned... " >&6; }
5218 if ${ac_cv_c_char_unsigned+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 $ac_includes_default
5224 int
5225 main ()
5226 {
5227 static int test_array [1 - 2 * !(((char) -1) < 0)];
5228 test_array [0] = 0;
5229 return test_array [0];
5230
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_c_char_unsigned=no
5237 else
5238 ac_cv_c_char_unsigned=yes
5239 fi
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
5243 $as_echo "$ac_cv_c_char_unsigned" >&6; }
5244 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5245 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
5246
5247 fi
5248
5249 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5250 if test "x$ac_cv_type_mode_t" = xyes; then :
5251
5252 else
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define mode_t int
5256 _ACEOF
5257
5258 fi
5259
5260 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5261 if test "x$ac_cv_type_size_t" = xyes; then :
5262
5263 else
5264
5265 cat >>confdefs.h <<_ACEOF
5266 #define size_t unsigned int
5267 _ACEOF
5268
5269 fi
5270
5271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5272 if test "x$ac_cv_type_ssize_t" = xyes; then :
5273
5274 else
5275
5276 cat >>confdefs.h <<_ACEOF
5277 #define ssize_t int
5278 _ACEOF
5279
5280 fi
5281
5282 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5283 case $ac_cv_c_uint16_t in #(
5284 no|yes) ;; #(
5285 *)
5286
5287
5288 cat >>confdefs.h <<_ACEOF
5289 #define uint16_t $ac_cv_c_uint16_t
5290 _ACEOF
5291 ;;
5292 esac
5293
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __off_t or off_t" >&5
5296 $as_echo_n "checking __off_t or off_t... " >&6; }
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299
5300 #include <unistd.h>
5301 #include <sys/types.h>
5302 __off_t dummy;
5303
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __off_t" >&5
5307 $as_echo "__off_t" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: off_t" >&5
5310 $as_echo "off_t" >&6; }
5311
5312 $as_echo "#define __off_t off_t" >>confdefs.h
5313
5314
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __pid_t or pid_t" >&5
5319 $as_echo_n "checking __pid_t or pid_t... " >&6; }
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322
5323 #include <unistd.h>
5324 #include <sys/types.h>
5325 __pid_t dummy;
5326 )
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __pid_t" >&5
5330 $as_echo "__pid_t" >&6; }
5331
5332 $as_echo "#define a68_pid_t __pid_t" >>confdefs.h
5333
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pid_t" >&5
5336 $as_echo "pid_t" >&6; }
5337
5338 $as_echo "#define a68_pid_t pid_t" >>confdefs.h
5339
5340
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __mode_t or mode_t" >&5
5345 $as_echo_n "checking __mode_t or mode_t... " >&6; }
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348
5349 #include <unistd.h>
5350 #include <sys/types.h>
5351 __mode_t dummy;
5352
5353 _ACEOF
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __mode_t" >&5
5356 $as_echo "__mode_t" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mode_t" >&5
5359 $as_echo "mode_t" >&6; }
5360
5361 $as_echo "#define __mode_t mode_t" >>confdefs.h
5362
5363
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366
5367 #
5368 # Extra include directories.
5369 #
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: extra include directories..." >&5
5372 $as_echo "$as_me: extra include directories..." >&6;}
5373
5374 # GSL on OpenBSD
5375
5376 if test -d /usr/local/include/gsl; then
5377 CFLAGS="$CFLAGS -I/usr/local/include"
5378 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
5379 CXXFLAGS="$CXXFLAGS -I/usr/local/include"
5380 LDFLAGS="$LDFLAGS -L/usr/local/lib"
5381 fi
5382
5383 # R on Debian
5384 #
5385 # if test -d /usr/share/R/include; then
5386 # AC_DEFINE(HAVE_USR_SHARE_R_INCLUDE, 1, [Define this if /usr/share/R/include was detected])
5387 # CFLAGS="$CFLAGS -I/usr/share/R/include"
5388 # CPPFLAGS="$CPPFLAGS -I/usr/share/R/include"
5389 # CXXFLAGS="$CXXFLAGS -I/usr/share/R/include"
5390 # LDFLAGS="$LDFLAGS -L/usr/share/R/lib"
5391 # fi
5392
5393 # Postgresql
5394
5395 if test -d /usr/local/pgsql/include; then
5396
5397 $as_echo "#define HAVE_USR_LOCAL_PGSQL_INCLUDE 1" >>confdefs.h
5398
5399 CFLAGS="$CFLAGS -I/usr/local/pgsql/include"
5400 CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include"
5401 CXXFLAGS="$CXXFLAGS -I/usr/local/pgsql/include"
5402 LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib"
5403 fi
5404
5405 if test -d /usr/pkg/pgsql/include; then
5406
5407 $as_echo "#define HAVE_USR_PKG_PGSQL_INCLUDE 1" >>confdefs.h
5408
5409 CFLAGS="$CFLAGS -I/usr/pkg/pgsql/include"
5410 CPPFLAGS="$CPPFLAGS -I/usr/pkg/pgsql/include"
5411 CXXFLAGS="$CXXFLAGS -I/usr/pkg/pgsql/include"
5412 LDFLAGS="$LDFLAGS -L/usr/pkg/pgsql/lib"
5413 fi
5414
5415 if test -d /opt/local/pgsql/include; then
5416
5417 $as_echo "#define HAVE_OPT_LOCAL_PGSQL_INCLUDE 1" >>confdefs.h
5418
5419 CFLAGS="$CFLAGS -I/opt/local/pgsql/include"
5420 CPPFLAGS="$CPPFLAGS -I/opt/local/pgsql/include"
5421 CXXFLAGS="$CXXFLAGS -I/opt/local/pgsql/include"
5422 LDFLAGS="$LDFLAGS -L/opt/local/pgsql/lib"
5423 fi
5424
5425 if test -d /usr/include/postgresql; then
5426
5427 $as_echo "#define HAVE_USR_INCLUDE_POSTGRESQL 1" >>confdefs.h
5428
5429 CFLAGS="$CFLAGS -I/usr/include/postgresql"
5430 CPPFLAGS="$CPPFLAGS -I/usr/include/postgresql"
5431 CXXFLAGS="$CXXFLAGS -I/usr/include/postgresql"
5432 LDFLAGS="$LDFLAGS -L/usr/lib"
5433 fi
5434
5435 #
5436 # Checks for header files.
5437 #
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: standard header files..." >&5
5440 $as_echo "$as_me: standard header files..." >&6;}
5441 #
5442 # <math.h> test is GSL proof.
5443 #
5444
5445 for ac_header in math.h
5446 do :
5447 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
5448 if test "x$ac_cv_header_math_h" = xyes; then :
5449 cat >>confdefs.h <<_ACEOF
5450 #define HAVE_MATH_H 1
5451 _ACEOF
5452
5453 fi
5454
5455 done
5456
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
5458 $as_echo_n "checking for cos in -lm... " >&6; }
5459 if ${ac_cv_lib_m_cos+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 ac_check_lib_save_LIBS=$LIBS
5463 LIBS="-lm $LIBS"
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466
5467 /* Override any GCC internal prototype to avoid an error.
5468 Use char because int might match the return type of a GCC
5469 builtin and then its argument prototype would still apply. */
5470 #ifdef __cplusplus
5471 extern "C"
5472 #endif
5473 char cos ();
5474 int
5475 main ()
5476 {
5477 return cos ();
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 if ac_fn_c_try_link "$LINENO"; then :
5483 ac_cv_lib_m_cos=yes
5484 else
5485 ac_cv_lib_m_cos=no
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext \
5488 conftest$ac_exeext conftest.$ac_ext
5489 LIBS=$ac_check_lib_save_LIBS
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
5492 $as_echo "$ac_cv_lib_m_cos" >&6; }
5493 if test "x$ac_cv_lib_m_cos" = xyes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define HAVE_LIBM 1
5496 _ACEOF
5497
5498 LIBS="-lm $LIBS"
5499
5500 fi
5501
5502
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5504 $as_echo_n "checking for ANSI C header files... " >&6; }
5505 if ${ac_cv_header_stdc+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 #include <stdlib.h>
5511 #include <stdarg.h>
5512 #include <string.h>
5513 #include <float.h>
5514
5515 int
5516 main ()
5517 {
5518
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 ac_cv_header_stdc=yes
5525 else
5526 ac_cv_header_stdc=no
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529
5530 if test $ac_cv_header_stdc = yes; then
5531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <string.h>
5535
5536 _ACEOF
5537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5538 $EGREP "memchr" >/dev/null 2>&1; then :
5539
5540 else
5541 ac_cv_header_stdc=no
5542 fi
5543 rm -f conftest*
5544
5545 fi
5546
5547 if test $ac_cv_header_stdc = yes; then
5548 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <stdlib.h>
5552
5553 _ACEOF
5554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5555 $EGREP "free" >/dev/null 2>&1; then :
5556
5557 else
5558 ac_cv_header_stdc=no
5559 fi
5560 rm -f conftest*
5561
5562 fi
5563
5564 if test $ac_cv_header_stdc = yes; then
5565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5566 if test "$cross_compiling" = yes; then :
5567 :
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <ctype.h>
5572 #include <stdlib.h>
5573 #if ((' ' & 0x0FF) == 0x020)
5574 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5575 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5576 #else
5577 # define ISLOWER(c) \
5578 (('a' <= (c) && (c) <= 'i') \
5579 || ('j' <= (c) && (c) <= 'r') \
5580 || ('s' <= (c) && (c) <= 'z'))
5581 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5582 #endif
5583
5584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5585 int
5586 main ()
5587 {
5588 int i;
5589 for (i = 0; i < 256; i++)
5590 if (XOR (islower (i), ISLOWER (i))
5591 || toupper (i) != TOUPPER (i))
5592 return 2;
5593 return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_run "$LINENO"; then :
5597
5598 else
5599 ac_cv_header_stdc=no
5600 fi
5601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5602 conftest.$ac_objext conftest.beam conftest.$ac_ext
5603 fi
5604
5605 fi
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5608 $as_echo "$ac_cv_header_stdc" >&6; }
5609 if test $ac_cv_header_stdc = yes; then
5610
5611 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5612
5613 fi
5614
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
5617 $as_echo_n "checking whether to enable assertions... " >&6; }
5618 # Check whether --enable-assert was given.
5619 if test "${enable_assert+set}" = set; then :
5620 enableval=$enable_assert; ac_enable_assert=$enableval
5621 if test "x$enableval" = xno; then :
5622
5623 $as_echo "#define NDEBUG 1" >>confdefs.h
5624
5625 elif test "x$enableval" != xyes; then :
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
5627 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
5628 ac_enable_assert=yes
5629 fi
5630 else
5631 ac_enable_assert=yes
5632 fi
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
5635 $as_echo "$ac_enable_assert" >&6; }
5636
5637 ac_header_dirent=no
5638 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5639 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5641 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5642 if eval \${$as_ac_Header+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 #include <$ac_hdr>
5649
5650 int
5651 main ()
5652 {
5653 if ((DIR *) 0)
5654 return 0;
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 eval "$as_ac_Header=yes"
5661 else
5662 eval "$as_ac_Header=no"
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666 eval ac_res=\$$as_ac_Header
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5668 $as_echo "$ac_res" >&6; }
5669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5670 cat >>confdefs.h <<_ACEOF
5671 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5672 _ACEOF
5673
5674 ac_header_dirent=$ac_hdr; break
5675 fi
5676
5677 done
5678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5679 if test $ac_header_dirent = dirent.h; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5681 $as_echo_n "checking for library containing opendir... " >&6; }
5682 if ${ac_cv_search_opendir+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_func_search_save_LIBS=$LIBS
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688
5689 /* Override any GCC internal prototype to avoid an error.
5690 Use char because int might match the return type of a GCC
5691 builtin and then its argument prototype would still apply. */
5692 #ifdef __cplusplus
5693 extern "C"
5694 #endif
5695 char opendir ();
5696 int
5697 main ()
5698 {
5699 return opendir ();
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 for ac_lib in '' dir; do
5705 if test -z "$ac_lib"; then
5706 ac_res="none required"
5707 else
5708 ac_res=-l$ac_lib
5709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5710 fi
5711 if ac_fn_c_try_link "$LINENO"; then :
5712 ac_cv_search_opendir=$ac_res
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext \
5715 conftest$ac_exeext
5716 if ${ac_cv_search_opendir+:} false; then :
5717 break
5718 fi
5719 done
5720 if ${ac_cv_search_opendir+:} false; then :
5721
5722 else
5723 ac_cv_search_opendir=no
5724 fi
5725 rm conftest.$ac_ext
5726 LIBS=$ac_func_search_save_LIBS
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5729 $as_echo "$ac_cv_search_opendir" >&6; }
5730 ac_res=$ac_cv_search_opendir
5731 if test "$ac_res" != no; then :
5732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5733
5734 fi
5735
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5738 $as_echo_n "checking for library containing opendir... " >&6; }
5739 if ${ac_cv_search_opendir+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 ac_func_search_save_LIBS=$LIBS
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745
5746 /* Override any GCC internal prototype to avoid an error.
5747 Use char because int might match the return type of a GCC
5748 builtin and then its argument prototype would still apply. */
5749 #ifdef __cplusplus
5750 extern "C"
5751 #endif
5752 char opendir ();
5753 int
5754 main ()
5755 {
5756 return opendir ();
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 for ac_lib in '' x; do
5762 if test -z "$ac_lib"; then
5763 ac_res="none required"
5764 else
5765 ac_res=-l$ac_lib
5766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5767 fi
5768 if ac_fn_c_try_link "$LINENO"; then :
5769 ac_cv_search_opendir=$ac_res
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext \
5772 conftest$ac_exeext
5773 if ${ac_cv_search_opendir+:} false; then :
5774 break
5775 fi
5776 done
5777 if ${ac_cv_search_opendir+:} false; then :
5778
5779 else
5780 ac_cv_search_opendir=no
5781 fi
5782 rm conftest.$ac_ext
5783 LIBS=$ac_func_search_save_LIBS
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5786 $as_echo "$ac_cv_search_opendir" >&6; }
5787 ac_res=$ac_cv_search_opendir
5788 if test "$ac_res" != no; then :
5789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5790
5791 fi
5792
5793 fi
5794
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5796 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5797 if ${ac_cv_header_sys_wait_h+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <sys/types.h>
5803 #include <sys/wait.h>
5804 #ifndef WEXITSTATUS
5805 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5806 #endif
5807 #ifndef WIFEXITED
5808 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5809 #endif
5810
5811 int
5812 main ()
5813 {
5814 int s;
5815 wait (&s);
5816 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"; then :
5822 ac_cv_header_sys_wait_h=yes
5823 else
5824 ac_cv_header_sys_wait_h=no
5825 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 fi
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5829 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5830 if test $ac_cv_header_sys_wait_h = yes; then
5831
5832 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5833
5834 fi
5835
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
5837 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
5838 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include <sys/types.h>
5844 #include <termios.h>
5845 #ifdef TIOCGWINSZ
5846 yes
5847 #endif
5848
5849 _ACEOF
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "yes" >/dev/null 2>&1; then :
5852 ac_cv_sys_tiocgwinsz_in_termios_h=yes
5853 else
5854 ac_cv_sys_tiocgwinsz_in_termios_h=no
5855 fi
5856 rm -f conftest*
5857
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5860 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
5861
5862 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5864 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
5865 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <sys/types.h>
5871 #include <sys/ioctl.h>
5872 #ifdef TIOCGWINSZ
5873 yes
5874 #endif
5875
5876 _ACEOF
5877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5878 $EGREP "yes" >/dev/null 2>&1; then :
5879 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5880 else
5881 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5882 fi
5883 rm -f conftest*
5884
5885 fi
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5887 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
5888
5889 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5890
5891 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
5892
5893 fi
5894 fi
5895
5896
5897 for ac_header in assert.h complex.h ctype.h errno.h fcntl.h fenv.h float.h limits.h netdb.h netinet/in.h regex.h setjmp.h signal.h stdarg.h stddef.h stdio.h stdlib.h sys/ioctl.h sys/resource.h sys/socket.h sys/time.h termios.h time.h
5898 do :
5899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5900 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5902 cat >>confdefs.h <<_ACEOF
5903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5904 _ACEOF
5905
5906 fi
5907
5908 done
5909
5910
5911 #
5912 # Functions we expect
5913 #
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: standard functions..." >&5
5916 $as_echo "$as_me: standard functions..." >&6;}
5917 for ac_func in posix_memalign
5918 do :
5919 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
5920 if test "x$ac_cv_func_posix_memalign" = xyes; then :
5921 cat >>confdefs.h <<_ACEOF
5922 #define HAVE_POSIX_MEMALIGN 1
5923 _ACEOF
5924
5925 fi
5926 done
5927
5928 for ac_func in aligned_alloc
5929 do :
5930 ac_fn_c_check_func "$LINENO" "aligned_alloc" "ac_cv_func_aligned_alloc"
5931 if test "x$ac_cv_func_aligned_alloc" = xyes; then :
5932 cat >>confdefs.h <<_ACEOF
5933 #define HAVE_ALIGNED_ALLOC 1
5934 _ACEOF
5935
5936 fi
5937 done
5938
5939 for ac_func in malloc
5940 do :
5941 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
5942 if test "x$ac_cv_func_malloc" = xyes; then :
5943 cat >>confdefs.h <<_ACEOF
5944 #define HAVE_MALLOC 1
5945 _ACEOF
5946
5947 fi
5948 done
5949
5950 for ac_func in free
5951 do :
5952 ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
5953 if test "x$ac_cv_func_free" = xyes; then :
5954 cat >>confdefs.h <<_ACEOF
5955 #define HAVE_FREE 1
5956 _ACEOF
5957
5958 fi
5959 done
5960
5961 for ac_func in setjmp
5962 do :
5963 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
5964 if test "x$ac_cv_func_setjmp" = xyes; then :
5965 cat >>confdefs.h <<_ACEOF
5966 #define HAVE_SETJMP 1
5967 _ACEOF
5968
5969 fi
5970 done
5971
5972 for ac_func in longjmp
5973 do :
5974 ac_fn_c_check_func "$LINENO" "longjmp" "ac_cv_func_longjmp"
5975 if test "x$ac_cv_func_longjmp" = xyes; then :
5976 cat >>confdefs.h <<_ACEOF
5977 #define HAVE_LONGJMP 1
5978 _ACEOF
5979
5980 fi
5981 done
5982
5983 for ac_func in memcpy
5984 do :
5985 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
5986 if test "x$ac_cv_func_memcpy" = xyes; then :
5987 cat >>confdefs.h <<_ACEOF
5988 #define HAVE_MEMCPY 1
5989 _ACEOF
5990
5991 fi
5992 done
5993
5994 for ac_func in memmove
5995 do :
5996 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
5997 if test "x$ac_cv_func_memmove" = xyes; then :
5998 cat >>confdefs.h <<_ACEOF
5999 #define HAVE_MEMMOVE 1
6000 _ACEOF
6001
6002 fi
6003 done
6004
6005 for ac_func in memset
6006 do :
6007 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
6008 if test "x$ac_cv_func_memset" = xyes; then :
6009 cat >>confdefs.h <<_ACEOF
6010 #define HAVE_MEMSET 1
6011 _ACEOF
6012
6013 fi
6014 done
6015
6016 for ac_func in strcmp
6017 do :
6018 ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
6019 if test "x$ac_cv_func_strcmp" = xyes; then :
6020 cat >>confdefs.h <<_ACEOF
6021 #define HAVE_STRCMP 1
6022 _ACEOF
6023
6024 fi
6025 done
6026
6027 for ac_func in strncmp
6028 do :
6029 ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
6030 if test "x$ac_cv_func_strncmp" = xyes; then :
6031 cat >>confdefs.h <<_ACEOF
6032 #define HAVE_STRNCMP 1
6033 _ACEOF
6034
6035 fi
6036 done
6037
6038 for ac_func in strncpy
6039 do :
6040 ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy"
6041 if test "x$ac_cv_func_strncpy" = xyes; then :
6042 cat >>confdefs.h <<_ACEOF
6043 #define HAVE_STRNCPY 1
6044 _ACEOF
6045
6046 fi
6047 done
6048
6049 for ac_func in printf
6050 do :
6051 ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
6052 if test "x$ac_cv_func_printf" = xyes; then :
6053 cat >>confdefs.h <<_ACEOF
6054 #define HAVE_PRINTF 1
6055 _ACEOF
6056
6057 fi
6058 done
6059
6060 for ac_func in fprintf
6061 do :
6062 ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
6063 if test "x$ac_cv_func_fprintf" = xyes; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_FPRINTF 1
6066 _ACEOF
6067
6068 fi
6069 done
6070
6071 for ac_func in snprintf
6072 do :
6073 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6074 if test "x$ac_cv_func_snprintf" = xyes; then :
6075 cat >>confdefs.h <<_ACEOF
6076 #define HAVE_SNPRINTF 1
6077 _ACEOF
6078
6079 fi
6080 done
6081
6082 for ac_func in signal
6083 do :
6084 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
6085 if test "x$ac_cv_func_signal" = xyes; then :
6086 cat >>confdefs.h <<_ACEOF
6087 #define HAVE_SIGNAL 1
6088 _ACEOF
6089
6090 fi
6091 done
6092
6093 for ac_func in exit
6094 do :
6095 ac_fn_c_check_func "$LINENO" "exit" "ac_cv_func_exit"
6096 if test "x$ac_cv_func_exit" = xyes; then :
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_EXIT 1
6099 _ACEOF
6100
6101 fi
6102 done
6103
6104 for ac_func in sqrt
6105 do :
6106 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
6107 if test "x$ac_cv_func_sqrt" = xyes; then :
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_SQRT 1
6110 _ACEOF
6111
6112 fi
6113 done
6114
6115 for ac_func in csqrt
6116 do :
6117 ac_fn_c_check_func "$LINENO" "csqrt" "ac_cv_func_csqrt"
6118 if test "x$ac_cv_func_csqrt" = xyes; then :
6119 cat >>confdefs.h <<_ACEOF
6120 #define HAVE_CSQRT 1
6121 _ACEOF
6122
6123 fi
6124 done
6125
6126
6127 #
6128 # Checks for functions / macros.
6129 #
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
6132 $as_echo_n "checking for isfinite... " >&6; }
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <math.h>
6136 int
6137 main ()
6138 {
6139 int a = isfinite(0.0)
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146 $as_echo "yes" >&6; }
6147
6148 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
6149
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite" >&5
6158 $as_echo_n "checking for finite... " >&6; }
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 #include <math.h>
6162 int
6163 main ()
6164 {
6165 int a = finite(0.0)
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6172 $as_echo "yes" >&6; }
6173
6174 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
6175
6176 else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6179
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
6184 $as_echo_n "checking for isinf... " >&6; }
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187 #include <math.h>
6188 int
6189 main ()
6190 {
6191 int a = isinf(0.0)
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6198 $as_echo "yes" >&6; }
6199
6200 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
6201
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
6210 $as_echo_n "checking for isnan... " >&6; }
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <math.h>
6214 int
6215 main ()
6216 {
6217 int a = isnan(0.0)
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"; then :
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6224 $as_echo "yes" >&6; }
6225
6226 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
6227
6228 else
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6231
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: optional headers and libraries..." >&5
6236 $as_echo "$as_me: optional headers and libraries..." >&6;}
6237
6238 if test "x$enable_standard_types" = "xyes"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking int is 32 bit" >&5
6240 $as_echo_n "checking int is 32 bit... " >&6; }
6241 if test "$cross_compiling" = yes; then :
6242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6244 as_fn_error $? "cannot run test program while cross compiling
6245 See \`config.log' for more details" "$LINENO" 5; }
6246 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6249
6250 int
6251 main ()
6252 {
6253 return sizeof (int) != 4;
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_run "$LINENO"; then :
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260 $as_echo "yes" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 enable_long_types=no
6265 fi
6266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6267 conftest.$ac_objext conftest.beam conftest.$ac_ext
6268 fi
6269
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking unsigned is 32 bit" >&5
6271 $as_echo_n "checking unsigned is 32 bit... " >&6; }
6272 if test "$cross_compiling" = yes; then :
6273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6275 as_fn_error $? "cannot run test program while cross compiling
6276 See \`config.log' for more details" "$LINENO" 5; }
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280
6281 int
6282 main ()
6283 {
6284 return sizeof (unsigned) != 4;
6285 ;
6286 return 0;
6287 }
6288 _ACEOF
6289 if ac_fn_c_try_run "$LINENO"; then :
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6291 $as_echo "yes" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 enable_long_types=no
6296 fi
6297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6298 conftest.$ac_objext conftest.beam conftest.$ac_ext
6299 fi
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking double is 64 bit" >&5
6302 $as_echo_n "checking double is 64 bit... " >&6; }
6303 if test "$cross_compiling" = yes; then :
6304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6306 as_fn_error $? "cannot run test program while cross compiling
6307 See \`config.log' for more details" "$LINENO" 5; }
6308 else
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6311
6312 int
6313 main ()
6314 {
6315 return sizeof (double) != 8;
6316 ;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_run "$LINENO"; then :
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6322 $as_echo "yes" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 enable_long_types=no
6327 fi
6328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6329 conftest.$ac_objext conftest.beam conftest.$ac_ext
6330 fi
6331
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uint64_t is 64 bit" >&5
6333 $as_echo_n "checking uint64_t is 64 bit... " >&6; }
6334 if test "$cross_compiling" = yes; then :
6335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6337 as_fn_error $? "cannot run test program while cross compiling
6338 See \`config.log' for more details" "$LINENO" 5; }
6339 else
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <stdint.h>
6343 int
6344 main ()
6345 {
6346 return sizeof (uint64_t) != 8;
6347 ;
6348 return 0;
6349 }
6350 _ACEOF
6351 if ac_fn_c_try_run "$LINENO"; then :
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6353 $as_echo "yes" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 enable_standard_types=no
6358 enable_long_types=no
6359 fi
6360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6361 conftest.$ac_objext conftest.beam conftest.$ac_ext
6362 fi
6363
6364 fi
6365
6366 if test "x$enable_standard_types" = "xno"; then
6367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6369 as_fn_error $? "stop -- unexpected lengths for int and/or double and/or uint64_t
6370 See \`config.log' for more details" "$LINENO" 5; }
6371 fi
6372
6373 if test "x$enable_long_types" = "xyes"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 64-bit long long int is available" >&5
6375 $as_echo_n "checking 64-bit long long int is available... " >&6; }
6376 if test "$cross_compiling" = yes; then :
6377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6379 as_fn_error $? "cannot run test program while cross compiling
6380 See \`config.log' for more details" "$LINENO" 5; }
6381 else
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384
6385 int
6386 main ()
6387 {
6388 return sizeof (long long) != 8;
6389 ;
6390 return 0;
6391 }
6392 _ACEOF
6393 if ac_fn_c_try_run "$LINENO"; then :
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6395 $as_echo "yes" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 enable_long_types=no
6400 fi
6401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6402 conftest.$ac_objext conftest.beam conftest.$ac_ext
6403 fi
6404
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 64-bit long long unsigned is available" >&5
6406 $as_echo_n "checking 64-bit long long unsigned is available... " >&6; }
6407 if test "$cross_compiling" = yes; then :
6408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6410 as_fn_error $? "cannot run test program while cross compiling
6411 See \`config.log' for more details" "$LINENO" 5; }
6412 else
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415
6416 int
6417 main ()
6418 {
6419 return sizeof (long long unsigned) != 8;
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_run "$LINENO"; then :
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6426 $as_echo "yes" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 enable_long_types=no
6431 fi
6432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6433 conftest.$ac_objext conftest.beam conftest.$ac_ext
6434 fi
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 80-bit __float80 is available" >&5
6437 $as_echo_n "checking 80-bit __float80 is available... " >&6; }
6438 if test "$cross_compiling" = yes; then :
6439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6441 as_fn_error $? "cannot run test program while cross compiling
6442 See \`config.log' for more details" "$LINENO" 5; }
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446
6447 int
6448 main ()
6449 {
6450 return sizeof (__float80) != 16;
6451 ;
6452 return 0;
6453 }
6454 _ACEOF
6455 if ac_fn_c_try_run "$LINENO"; then :
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6457 $as_echo "yes" >&6; }
6458 else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 enable_long_types=no
6462 fi
6463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6464 conftest.$ac_objext conftest.beam conftest.$ac_ext
6465 fi
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 80-bit __float80 has 64-bit mantissa" >&5
6468 $as_echo_n "checking 80-bit __float80 has 64-bit mantissa... " >&6; }
6469 if test "$cross_compiling" = yes; then :
6470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6472 as_fn_error $? "cannot run test program while cross compiling
6473 See \`config.log' for more details" "$LINENO" 5; }
6474 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 #include <float.h>
6478 int
6479 main ()
6480 {
6481 return LDBL_MANT_DIG != 64;
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_run "$LINENO"; then :
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6488 $as_echo "yes" >&6; }
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 enable_long_types=no
6493 fi
6494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6495 conftest.$ac_objext conftest.beam conftest.$ac_ext
6496 fi
6497
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 128-bit __float128 is available" >&5
6499 $as_echo_n "checking 128-bit __float128 is available... " >&6; }
6500 if test "$cross_compiling" = yes; then :
6501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503 as_fn_error $? "cannot run test program while cross compiling
6504 See \`config.log' for more details" "$LINENO" 5; }
6505 else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508
6509 int
6510 main ()
6511 {
6512 return sizeof (__float128) != 16;
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_run "$LINENO"; then :
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6519 $as_echo "yes" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 enable_long_types=no
6524 fi
6525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6526 conftest.$ac_objext conftest.beam conftest.$ac_ext
6527 fi
6528
6529 if test "x$enable_long_types" = "xyes"; then
6530
6531 $as_echo "#define HAVE_LONG_TYPES 1" >>confdefs.h
6532
6533 fi
6534 fi
6535
6536 if test "x$enable_long_types" = "xyes"; then
6537 if test "x$enable_quadmath" = "xyes"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: quadmath..." >&5
6539 $as_echo "$as_me: quadmath..." >&6;}
6540 for ac_header in quadmath.h
6541 do :
6542 ac_fn_c_check_header_mongrel "$LINENO" "quadmath.h" "ac_cv_header_quadmath_h" "$ac_includes_default"
6543 if test "x$ac_cv_header_quadmath_h" = xyes; then :
6544 cat >>confdefs.h <<_ACEOF
6545 #define HAVE_QUADMATH_H 1
6546 _ACEOF
6547
6548 else
6549 enable_quadmath=no
6550 fi
6551
6552 done
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaq in -lquadmath" >&5
6555 $as_echo_n "checking for lgammaq in -lquadmath... " >&6; }
6556 if ${ac_cv_lib_quadmath_lgammaq+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 ac_check_lib_save_LIBS=$LIBS
6560 LIBS="-lquadmath $LIBS"
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563
6564 /* Override any GCC internal prototype to avoid an error.
6565 Use char because int might match the return type of a GCC
6566 builtin and then its argument prototype would still apply. */
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 char lgammaq ();
6571 int
6572 main ()
6573 {
6574 return lgammaq ();
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_c_try_link "$LINENO"; then :
6580 ac_cv_lib_quadmath_lgammaq=yes
6581 else
6582 ac_cv_lib_quadmath_lgammaq=no
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6587 fi
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_lgammaq" >&5
6589 $as_echo "$ac_cv_lib_quadmath_lgammaq" >&6; }
6590 if test "x$ac_cv_lib_quadmath_lgammaq" = xyes; then :
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBQUADMATH 1
6593 _ACEOF
6594
6595 LIBS="-lquadmath $LIBS"
6596
6597 else
6598 enable_quadmath=no
6599 fi
6600
6601 if test "x$enable_quadmath" = "xyes"; then
6602
6603 $as_echo "#define HAVE_QUADMATH 1" >>confdefs.h
6604
6605 fi
6606 fi
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: quadmath ignored for this system" >&5
6609 $as_echo "$as_me: quadmath ignored for this system" >&6;}
6610 enable_quadmath=no
6611 fi
6612
6613 if test "x$enable_long_types" = "xyes"; then
6614 if test "x$enable_mpfr" = "xyes"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: GNU MPFR..." >&5
6616 $as_echo "$as_me: GNU MPFR..." >&6;}
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
6618 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
6619 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 ac_check_lib_save_LIBS=$LIBS
6623 LIBS="-lgmp $LIBS"
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626
6627 /* Override any GCC internal prototype to avoid an error.
6628 Use char because int might match the return type of a GCC
6629 builtin and then its argument prototype would still apply. */
6630 #ifdef __cplusplus
6631 extern "C"
6632 #endif
6633 char __gmpz_init ();
6634 int
6635 main ()
6636 {
6637 return __gmpz_init ();
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_link "$LINENO"; then :
6643 ac_cv_lib_gmp___gmpz_init=yes
6644 else
6645 ac_cv_lib_gmp___gmpz_init=no
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
6649 LIBS=$ac_check_lib_save_LIBS
6650 fi
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
6652 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
6653 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
6654 cat >>confdefs.h <<_ACEOF
6655 #define HAVE_LIBGMP 1
6656 _ACEOF
6657
6658 LIBS="-lgmp $LIBS"
6659
6660 else
6661 enable_mpfr=no
6662 fi
6663
6664 if test "x$enable_mpfr" = "xyes"; then
6665 for ac_header in mpfr.h
6666 do :
6667 ac_fn_c_check_header_mongrel "$LINENO" "mpfr.h" "ac_cv_header_mpfr_h" "$ac_includes_default"
6668 if test "x$ac_cv_header_mpfr_h" = xyes; then :
6669 cat >>confdefs.h <<_ACEOF
6670 #define HAVE_MPFR_H 1
6671 _ACEOF
6672
6673 fi
6674
6675 done
6676
6677 if test "x$enable_mpfr" = "xyes"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_gamma in -lmpfr" >&5
6679 $as_echo_n "checking for mpfr_gamma in -lmpfr... " >&6; }
6680 if ${ac_cv_lib_mpfr_mpfr_gamma+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 ac_check_lib_save_LIBS=$LIBS
6684 LIBS="-lmpfr $LIBS"
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687
6688 /* Override any GCC internal prototype to avoid an error.
6689 Use char because int might match the return type of a GCC
6690 builtin and then its argument prototype would still apply. */
6691 #ifdef __cplusplus
6692 extern "C"
6693 #endif
6694 char mpfr_gamma ();
6695 int
6696 main ()
6697 {
6698 return mpfr_gamma ();
6699 ;
6700 return 0;
6701 }
6702 _ACEOF
6703 if ac_fn_c_try_link "$LINENO"; then :
6704 ac_cv_lib_mpfr_mpfr_gamma=yes
6705 else
6706 ac_cv_lib_mpfr_mpfr_gamma=no
6707 fi
6708 rm -f core conftest.err conftest.$ac_objext \
6709 conftest$ac_exeext conftest.$ac_ext
6710 LIBS=$ac_check_lib_save_LIBS
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_gamma" >&5
6713 $as_echo "$ac_cv_lib_mpfr_mpfr_gamma" >&6; }
6714 if test "x$ac_cv_lib_mpfr_mpfr_gamma" = xyes; then :
6715 cat >>confdefs.h <<_ACEOF
6716 #define HAVE_LIBMPFR 1
6717 _ACEOF
6718
6719 LIBS="-lmpfr $LIBS"
6720
6721 else
6722 enable_mpfr=no
6723 fi
6724
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_gamma_inc in -lmpfr" >&5
6726 $as_echo_n "checking for mpfr_gamma_inc in -lmpfr... " >&6; }
6727 if ${ac_cv_lib_mpfr_mpfr_gamma_inc+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 ac_check_lib_save_LIBS=$LIBS
6731 LIBS="-lmpfr $LIBS"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734
6735 /* Override any GCC internal prototype to avoid an error.
6736 Use char because int might match the return type of a GCC
6737 builtin and then its argument prototype would still apply. */
6738 #ifdef __cplusplus
6739 extern "C"
6740 #endif
6741 char mpfr_gamma_inc ();
6742 int
6743 main ()
6744 {
6745 return mpfr_gamma_inc ();
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_c_try_link "$LINENO"; then :
6751 ac_cv_lib_mpfr_mpfr_gamma_inc=yes
6752 else
6753 ac_cv_lib_mpfr_mpfr_gamma_inc=no
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_check_lib_save_LIBS
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_gamma_inc" >&5
6760 $as_echo "$ac_cv_lib_mpfr_mpfr_gamma_inc" >&6; }
6761 if test "x$ac_cv_lib_mpfr_mpfr_gamma_inc" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define HAVE_LIBMPFR 1
6764 _ACEOF
6765
6766 LIBS="-lmpfr $LIBS"
6767
6768 else
6769 enable_mpfr=no
6770 fi
6771
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_get_float128 in -lmpfr" >&5
6773 $as_echo_n "checking for mpfr_get_float128 in -lmpfr... " >&6; }
6774 if ${ac_cv_lib_mpfr_mpfr_get_float128+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 ac_check_lib_save_LIBS=$LIBS
6778 LIBS="-lmpfr $LIBS"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781
6782 /* Override any GCC internal prototype to avoid an error.
6783 Use char because int might match the return type of a GCC
6784 builtin and then its argument prototype would still apply. */
6785 #ifdef __cplusplus
6786 extern "C"
6787 #endif
6788 char mpfr_get_float128 ();
6789 int
6790 main ()
6791 {
6792 return mpfr_get_float128 ();
6793 ;
6794 return 0;
6795 }
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"; then :
6798 ac_cv_lib_mpfr_mpfr_get_float128=yes
6799 else
6800 ac_cv_lib_mpfr_mpfr_get_float128=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 LIBS=$ac_check_lib_save_LIBS
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_get_float128" >&5
6807 $as_echo "$ac_cv_lib_mpfr_mpfr_get_float128" >&6; }
6808 if test "x$ac_cv_lib_mpfr_mpfr_get_float128" = xyes; then :
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_LIBMPFR 1
6811 _ACEOF
6812
6813 LIBS="-lmpfr $LIBS"
6814
6815 else
6816 enable_mpfr=no
6817 fi
6818
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_set_float128 in -lmpfr" >&5
6820 $as_echo_n "checking for mpfr_set_float128 in -lmpfr... " >&6; }
6821 if ${ac_cv_lib_mpfr_mpfr_set_float128+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 ac_check_lib_save_LIBS=$LIBS
6825 LIBS="-lmpfr $LIBS"
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828
6829 /* Override any GCC internal prototype to avoid an error.
6830 Use char because int might match the return type of a GCC
6831 builtin and then its argument prototype would still apply. */
6832 #ifdef __cplusplus
6833 extern "C"
6834 #endif
6835 char mpfr_set_float128 ();
6836 int
6837 main ()
6838 {
6839 return mpfr_set_float128 ();
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_link "$LINENO"; then :
6845 ac_cv_lib_mpfr_mpfr_set_float128=yes
6846 else
6847 ac_cv_lib_mpfr_mpfr_set_float128=no
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 LIBS=$ac_check_lib_save_LIBS
6852 fi
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_set_float128" >&5
6854 $as_echo "$ac_cv_lib_mpfr_mpfr_set_float128" >&6; }
6855 if test "x$ac_cv_lib_mpfr_mpfr_set_float128" = xyes; then :
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_LIBMPFR 1
6858 _ACEOF
6859
6860 LIBS="-lmpfr $LIBS"
6861
6862 else
6863 enable_mpfr=no
6864 fi
6865
6866 if test "x$enable_mpfr" = "xyes"; then
6867
6868 $as_echo "#define HAVE_GNU_MPFR 1" >>confdefs.h
6869
6870 fi
6871 fi
6872 fi
6873 fi
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: GNU MPFR ignored for this system" >&5
6876 $as_echo "$as_me: GNU MPFR ignored for this system" >&6;}
6877 enable_mpfr=no
6878 fi
6879
6880 if test "x$enable_parallel" = "xyes"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX pthreads..." >&5
6882 $as_echo "$as_me: POSIX pthreads..." >&6;}
6883 for ac_header in pthread.h
6884 do :
6885 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6886 if test "x$ac_cv_header_pthread_h" = xyes; then :
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_PTHREAD_H 1
6889 _ACEOF
6890
6891 else
6892 enable_parallel=no
6893 fi
6894
6895 done
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_getstacksize in -lpthread" >&5
6898 $as_echo_n "checking for pthread_attr_getstacksize in -lpthread... " >&6; }
6899 if ${ac_cv_lib_pthread_pthread_attr_getstacksize+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 ac_check_lib_save_LIBS=$LIBS
6903 LIBS="-lpthread $LIBS"
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906
6907 /* Override any GCC internal prototype to avoid an error.
6908 Use char because int might match the return type of a GCC
6909 builtin and then its argument prototype would still apply. */
6910 #ifdef __cplusplus
6911 extern "C"
6912 #endif
6913 char pthread_attr_getstacksize ();
6914 int
6915 main ()
6916 {
6917 return pthread_attr_getstacksize ();
6918 ;
6919 return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923 ac_cv_lib_pthread_pthread_attr_getstacksize=yes
6924 else
6925 ac_cv_lib_pthread_pthread_attr_getstacksize=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_getstacksize" >&5
6932 $as_echo "$ac_cv_lib_pthread_pthread_attr_getstacksize" >&6; }
6933 if test "x$ac_cv_lib_pthread_pthread_attr_getstacksize" = xyes; then :
6934 cat >>confdefs.h <<_ACEOF
6935 #define HAVE_LIBPTHREAD 1
6936 _ACEOF
6937
6938 LIBS="-lpthread $LIBS"
6939
6940 else
6941 enable_parallel=no
6942 fi
6943
6944 if test "x$enable_parallel" = "xyes"; then
6945
6946 $as_echo "#define BUILD_PARALLEL_CLAUSE 1" >>confdefs.h
6947
6948 fi
6949 fi
6950
6951 if test "x$enable_mathlib" = "xyes"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: mathlib..." >&5
6953 $as_echo "$as_me: mathlib..." >&6;}
6954 for ac_header in Rmath.h
6955 do :
6956 ac_fn_c_check_header_compile "$LINENO" "Rmath.h" "ac_cv_header_Rmath_h" "#define MATHLIB_STANDALONE
6957 #include <Rmath.h>
6958
6959 "
6960 if test "x$ac_cv_header_Rmath_h" = xyes; then :
6961 cat >>confdefs.h <<_ACEOF
6962 #define HAVE_RMATH_H 1
6963 _ACEOF
6964
6965 else
6966 enable_mathlib=no
6967 fi
6968
6969 done
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptukey in -lRmath" >&5
6972 $as_echo_n "checking for ptukey in -lRmath... " >&6; }
6973 if ${ac_cv_lib_Rmath_ptukey+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 ac_check_lib_save_LIBS=$LIBS
6977 LIBS="-lRmath $LIBS"
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980
6981 /* Override any GCC internal prototype to avoid an error.
6982 Use char because int might match the return type of a GCC
6983 builtin and then its argument prototype would still apply. */
6984 #ifdef __cplusplus
6985 extern "C"
6986 #endif
6987 char ptukey ();
6988 int
6989 main ()
6990 {
6991 return ptukey ();
6992 ;
6993 return 0;
6994 }
6995 _ACEOF
6996 if ac_fn_c_try_link "$LINENO"; then :
6997 ac_cv_lib_Rmath_ptukey=yes
6998 else
6999 ac_cv_lib_Rmath_ptukey=no
7000 fi
7001 rm -f core conftest.err conftest.$ac_objext \
7002 conftest$ac_exeext conftest.$ac_ext
7003 LIBS=$ac_check_lib_save_LIBS
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Rmath_ptukey" >&5
7006 $as_echo "$ac_cv_lib_Rmath_ptukey" >&6; }
7007 if test "x$ac_cv_lib_Rmath_ptukey" = xyes; then :
7008 cat >>confdefs.h <<_ACEOF
7009 #define HAVE_LIBRMATH 1
7010 _ACEOF
7011
7012 LIBS="-lRmath $LIBS"
7013
7014 else
7015 enable_mathlib=no
7016 fi
7017
7018 if test "x$enable_mathlib" = "xyes"; then
7019
7020 $as_echo "#define HAVE_MATHLIB 1" >>confdefs.h
7021
7022 fi
7023 fi
7024
7025 if test "x$enable_gsl" = "xyes"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: GNU Scientific Library..." >&5
7027 $as_echo "$as_me: GNU Scientific Library..." >&6;}
7028
7029
7030 # Check whether --with-gsl-prefix was given.
7031 if test "${with_gsl_prefix+set}" = set; then :
7032 withval=$with_gsl_prefix; gsl_prefix="$withval"
7033 else
7034 gsl_prefix=""
7035 fi
7036
7037
7038 # Check whether --with-gsl-exec-prefix was given.
7039 if test "${with_gsl_exec_prefix+set}" = set; then :
7040 withval=$with_gsl_exec_prefix; gsl_exec_prefix="$withval"
7041 else
7042 gsl_exec_prefix=""
7043 fi
7044
7045 # Check whether --enable-gsltest was given.
7046 if test "${enable_gsltest+set}" = set; then :
7047 enableval=$enable_gsltest;
7048 else
7049 enable_gsltest=yes
7050 fi
7051
7052
7053 if test "x${GSL_CONFIG+set}" != xset ; then
7054 if test "x$gsl_prefix" != x ; then
7055 GSL_CONFIG="$gsl_prefix/bin/gsl-config"
7056 fi
7057 if test "x$gsl_exec_prefix" != x ; then
7058 GSL_CONFIG="$gsl_exec_prefix/bin/gsl-config"
7059 fi
7060 fi
7061
7062 # Extract the first word of "gsl-config", so it can be a program name with args.
7063 set dummy gsl-config; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_path_GSL_CONFIG+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 case $GSL_CONFIG in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_GSL_CONFIG="$GSL_CONFIG" # Let the user override the test with a path.
7072 ;;
7073 *)
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_path_GSL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089 test -z "$ac_cv_path_GSL_CONFIG" && ac_cv_path_GSL_CONFIG="no"
7090 ;;
7091 esac
7092 fi
7093 GSL_CONFIG=$ac_cv_path_GSL_CONFIG
7094 if test -n "$GSL_CONFIG"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSL_CONFIG" >&5
7096 $as_echo "$GSL_CONFIG" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102
7103 min_gsl_version=2.5
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSL version >= $min_gsl_version" >&5
7105 $as_echo_n "checking for GSL version >= $min_gsl_version... " >&6; }
7106 no_gsl=""
7107 if test "$GSL_CONFIG" = "no" ; then
7108 no_gsl=yes
7109 else
7110 GSL_CFLAGS=`$GSL_CONFIG --cflags`
7111 GSL_LIBS=`$GSL_CONFIG --libs`
7112
7113 gsl_major_version=`$GSL_CONFIG --version | \
7114 sed 's/^\([0-9]*\).*/\1/'`
7115 if test "x${gsl_major_version}" = "x" ; then
7116 gsl_major_version=0
7117 fi
7118
7119 gsl_minor_version=`$GSL_CONFIG --version | \
7120 sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\2/'`
7121 if test "x${gsl_minor_version}" = "x" ; then
7122 gsl_minor_version=0
7123 fi
7124
7125 gsl_micro_version=`$GSL_CONFIG --version | \
7126 sed 's/^\([0-9]*\)\.\{0,1\}\([0-9]*\)\.\{0,1\}\([0-9]*\).*/\3/'`
7127 if test "x${gsl_micro_version}" = "x" ; then
7128 gsl_micro_version=0
7129 fi
7130
7131 if test "x$enable_gsltest" = "xyes" ; then
7132 ac_save_CFLAGS="$CFLAGS"
7133 ac_save_LIBS="$LIBS"
7134 CFLAGS="$CFLAGS $GSL_CFLAGS"
7135 LIBS="$LIBS $GSL_LIBS"
7136
7137 rm -f conf.gsltest
7138 if test "$cross_compiling" = yes; then :
7139 echo $ac_n "cross compiling; assumed OK... $ac_c"
7140 else
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143
7144 #include <stdio.h>
7145 #include <stdlib.h>
7146 #include <string.h>
7147
7148 char* my_strdup (const char *str);
7149
7150 char*
7151 my_strdup (const char *str)
7152 {
7153 char *new_str;
7154
7155 if (str)
7156 {
7157 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7158 strcpy (new_str, str);
7159 }
7160 else
7161 new_str = NULL;
7162
7163 return new_str;
7164 }
7165
7166 int main (void)
7167 {
7168 int major = 0, minor = 0, micro = 0;
7169 int n;
7170 char *tmp_version;
7171
7172 system ("touch conf.gsltest");
7173
7174 /* HP/UX 9 (%@#!) writes to sscanf strings */
7175 tmp_version = my_strdup("$min_gsl_version");
7176
7177 n = sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) ;
7178
7179 if (n != 2 && n != 3) {
7180 printf("%s, bad version string\n", "$min_gsl_version");
7181 exit(1);
7182 }
7183
7184 if (($gsl_major_version > major) ||
7185 (($gsl_major_version == major) && ($gsl_minor_version > minor)) ||
7186 (($gsl_major_version == major) && ($gsl_minor_version == minor) && ($gsl_micro_version >= micro)))
7187 {
7188 exit(0);
7189 }
7190 else
7191 {
7192 exit(1);
7193 }
7194 }
7195
7196
7197 _ACEOF
7198 if ac_fn_c_try_run "$LINENO"; then :
7199
7200 else
7201 no_gsl=yes
7202 fi
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
7205 fi
7206
7207 CFLAGS="$ac_save_CFLAGS"
7208 LIBS="$ac_save_LIBS"
7209 fi
7210 fi
7211 if test "x$no_gsl" = x ; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7213 $as_echo "yes" >&6; }
7214 enable_gsl=yes
7215 else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7218 if test "$GSL_CONFIG" = "no" ; then
7219 echo "*** The gsl-config script installed by GSL could not be found"
7220 echo "*** If GSL was installed in PREFIX, make sure PREFIX/bin is in"
7221 echo "*** your path, or set the GSL_CONFIG environment variable to the"
7222 echo "*** full path to gsl-config."
7223 else
7224 if test -f conf.gsltest ; then
7225 :
7226 else
7227 echo "*** Could not run GSL test program, checking why..."
7228 CFLAGS="$CFLAGS $GSL_CFLAGS"
7229 LIBS="$LIBS $GSL_LIBS"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232
7233 #include <stdio.h>
7234
7235 int
7236 main ()
7237 {
7238 return 0;
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_link "$LINENO"; then :
7244 echo "*** The test program compiled, but did not run. This usually means"
7245 echo "*** that the run-time linker is not finding GSL or finding the wrong"
7246 echo "*** version of GSL. If it is not finding GSL, you'll need to set your"
7247 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7248 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7249 echo "*** is required on your system"
7250 echo "***"
7251 echo "*** If you have an old version installed, it is best to remove it, although"
7252 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7253 else
7254 echo "*** The test program failed to compile or link. See the file config.log for the"
7255 echo "*** exact error that occured. This usually means GSL was incorrectly installed"
7256 echo "*** or that you have moved GSL since it was installed. In the latter case, you"
7257 echo "*** may want to edit the gsl-config script: $GSL_CONFIG"
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext \
7260 conftest$ac_exeext conftest.$ac_ext
7261 CFLAGS="$ac_save_CFLAGS"
7262 LIBS="$ac_save_LIBS"
7263 fi
7264 fi
7265 # GSL_CFLAGS=""
7266 # GSL_LIBS=""
7267 enable_gsl=no
7268 fi
7269
7270
7271 rm -f conf.gsltest
7272
7273 if test "x$enable_gsl" = "xyes"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lgslcblas" >&5
7275 $as_echo_n "checking for cblas_dgemm in -lgslcblas... " >&6; }
7276 if ${ac_cv_lib_gslcblas_cblas_dgemm+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 ac_check_lib_save_LIBS=$LIBS
7280 LIBS="-lgslcblas $LIBS"
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283
7284 /* Override any GCC internal prototype to avoid an error.
7285 Use char because int might match the return type of a GCC
7286 builtin and then its argument prototype would still apply. */
7287 #ifdef __cplusplus
7288 extern "C"
7289 #endif
7290 char cblas_dgemm ();
7291 int
7292 main ()
7293 {
7294 return cblas_dgemm ();
7295 ;
7296 return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_link "$LINENO"; then :
7300 ac_cv_lib_gslcblas_cblas_dgemm=yes
7301 else
7302 ac_cv_lib_gslcblas_cblas_dgemm=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 LIBS=$ac_check_lib_save_LIBS
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_cblas_dgemm" >&5
7309 $as_echo "$ac_cv_lib_gslcblas_cblas_dgemm" >&6; }
7310 if test "x$ac_cv_lib_gslcblas_cblas_dgemm" = xyes; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define HAVE_LIBGSLCBLAS 1
7313 _ACEOF
7314
7315 LIBS="-lgslcblas $LIBS"
7316
7317 else
7318 enable_gsl=no
7319 fi
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_blas_ddot in -lgsl" >&5
7322 $as_echo_n "checking for gsl_blas_ddot in -lgsl... " >&6; }
7323 if ${ac_cv_lib_gsl_gsl_blas_ddot+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 ac_check_lib_save_LIBS=$LIBS
7327 LIBS="-lgsl $LIBS"
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330
7331 /* Override any GCC internal prototype to avoid an error.
7332 Use char because int might match the return type of a GCC
7333 builtin and then its argument prototype would still apply. */
7334 #ifdef __cplusplus
7335 extern "C"
7336 #endif
7337 char gsl_blas_ddot ();
7338 int
7339 main ()
7340 {
7341 return gsl_blas_ddot ();
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_link "$LINENO"; then :
7347 ac_cv_lib_gsl_gsl_blas_ddot=yes
7348 else
7349 ac_cv_lib_gsl_gsl_blas_ddot=no
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
7353 LIBS=$ac_check_lib_save_LIBS
7354 fi
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_blas_ddot" >&5
7356 $as_echo "$ac_cv_lib_gsl_gsl_blas_ddot" >&6; }
7357 if test "x$ac_cv_lib_gsl_gsl_blas_ddot" = xyes; then :
7358 cat >>confdefs.h <<_ACEOF
7359 #define HAVE_LIBGSL 1
7360 _ACEOF
7361
7362 LIBS="-lgsl $LIBS"
7363
7364 else
7365 enable_gsl=no
7366 fi
7367
7368 for ac_header in gsl/gsl_blas.h gsl/gsl_complex.h gsl/gsl_complex_math.h gsl/gsl_errno.h gsl/gsl_fft_complex.h gsl/gsl_integration.h gsl/gsl_linalg.h gsl/gsl_math.h gsl/gsl_matrix.h gsl/gsl_permutation.h gsl/gsl_sf.h gsl/gsl_vector.h gsl/gsl_version.h
7369 do :
7370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376
7377 else
7378 enable_gsl=no
7379 fi
7380
7381 done
7382
7383 fi
7384 if test "x$enable_gsl" = "xyes"; then
7385
7386 $as_echo "#define HAVE_GSL 1" >>confdefs.h
7387
7388 fi
7389 fi
7390
7391 if test "x$enable_plotutils" = "xyes"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: GNU plotutils..." >&5
7393 $as_echo "$as_me: GNU plotutils..." >&6;}
7394 for ac_header in plot.h
7395 do :
7396 ac_fn_c_check_header_mongrel "$LINENO" "plot.h" "ac_cv_header_plot_h" "$ac_includes_default"
7397 if test "x$ac_cv_header_plot_h" = xyes; then :
7398 cat >>confdefs.h <<_ACEOF
7399 #define HAVE_PLOT_H 1
7400 _ACEOF
7401
7402 else
7403 enable_plotutils=no
7404 fi
7405
7406 done
7407
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pl_alabel_r in -lplot" >&5
7409 $as_echo_n "checking for pl_alabel_r in -lplot... " >&6; }
7410 if ${ac_cv_lib_plot_pl_alabel_r+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 ac_check_lib_save_LIBS=$LIBS
7414 LIBS="-lplot $LIBS"
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417
7418 /* Override any GCC internal prototype to avoid an error.
7419 Use char because int might match the return type of a GCC
7420 builtin and then its argument prototype would still apply. */
7421 #ifdef __cplusplus
7422 extern "C"
7423 #endif
7424 char pl_alabel_r ();
7425 int
7426 main ()
7427 {
7428 return pl_alabel_r ();
7429 ;
7430 return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_link "$LINENO"; then :
7434 ac_cv_lib_plot_pl_alabel_r=yes
7435 else
7436 ac_cv_lib_plot_pl_alabel_r=no
7437 fi
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
7440 LIBS=$ac_check_lib_save_LIBS
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_plot_pl_alabel_r" >&5
7443 $as_echo "$ac_cv_lib_plot_pl_alabel_r" >&6; }
7444 if test "x$ac_cv_lib_plot_pl_alabel_r" = xyes; then :
7445 cat >>confdefs.h <<_ACEOF
7446 #define HAVE_LIBPLOT 1
7447 _ACEOF
7448
7449 LIBS="-lplot $LIBS"
7450
7451 else
7452 enable_plotutils=no
7453 fi
7454
7455 if test "x$enable_plotutils" = "xyes"; then
7456
7457 $as_echo "#define HAVE_GNU_PLOTUTILS 1" >>confdefs.h
7458
7459 fi
7460 fi
7461
7462 if test "x$enable_curses" = "xyes"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: curses..." >&5
7464 $as_echo "$as_me: curses..." >&6;}
7465 for ac_header in curses.h
7466 do :
7467 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
7468 if test "x$ac_cv_header_curses_h" = xyes; then :
7469 cat >>confdefs.h <<_ACEOF
7470 #define HAVE_CURSES_H 1
7471 _ACEOF
7472
7473 else
7474 enable_curses=no
7475 fi
7476
7477 done
7478
7479 if test "x$enable_curses" = "xno"; then
7480 for ac_header in ncurses/curses.h
7481 do :
7482 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
7483 if test "x$ac_cv_header_ncurses_curses_h" = xyes; then :
7484 cat >>confdefs.h <<_ACEOF
7485 #define HAVE_NCURSES_CURSES_H 1
7486 _ACEOF
7487 enable_curses=yes
7488 fi
7489
7490 done
7491
7492 fi
7493 if test "x$enable_curses" = "xyes"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdscr in -ltinfo" >&5
7495 $as_echo_n "checking for stdscr in -ltinfo... " >&6; }
7496 if ${ac_cv_lib_tinfo_stdscr+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 ac_check_lib_save_LIBS=$LIBS
7500 LIBS="-ltinfo $LIBS"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503
7504 /* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7507 #ifdef __cplusplus
7508 extern "C"
7509 #endif
7510 char stdscr ();
7511 int
7512 main ()
7513 {
7514 return stdscr ();
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520 ac_cv_lib_tinfo_stdscr=yes
7521 else
7522 ac_cv_lib_tinfo_stdscr=no
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 LIBS=$ac_check_lib_save_LIBS
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_stdscr" >&5
7529 $as_echo "$ac_cv_lib_tinfo_stdscr" >&6; }
7530 if test "x$ac_cv_lib_tinfo_stdscr" = xyes; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define HAVE_LIBTINFO 1
7533 _ACEOF
7534
7535 LIBS="-ltinfo $LIBS"
7536
7537 else
7538 enable_curses=no
7539 fi
7540
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdscr in -ltic" >&5
7542 $as_echo_n "checking for stdscr in -ltic... " >&6; }
7543 if ${ac_cv_lib_tic_stdscr+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 ac_check_lib_save_LIBS=$LIBS
7547 LIBS="-ltic $LIBS"
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 char stdscr ();
7558 int
7559 main ()
7560 {
7561 return stdscr ();
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"; then :
7567 ac_cv_lib_tic_stdscr=yes
7568 else
7569 ac_cv_lib_tic_stdscr=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tic_stdscr" >&5
7576 $as_echo "$ac_cv_lib_tic_stdscr" >&6; }
7577 if test "x$ac_cv_lib_tic_stdscr" = xyes; then :
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_LIBTIC 1
7580 _ACEOF
7581
7582 LIBS="-ltic $LIBS"
7583
7584 else
7585 enable_curses=no
7586 fi
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
7589 $as_echo_n "checking for initscr in -lncurses... " >&6; }
7590 if ${ac_cv_lib_ncurses_initscr+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lncurses $LIBS"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 char initscr ();
7605 int
7606 main ()
7607 {
7608 return initscr ();
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_lib_ncurses_initscr=yes
7615 else
7616 ac_cv_lib_ncurses_initscr=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
7623 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
7624 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
7625 cat >>confdefs.h <<_ACEOF
7626 #define HAVE_LIBNCURSES 1
7627 _ACEOF
7628
7629 LIBS="-lncurses $LIBS"
7630
7631 else
7632 enable_curses=no
7633 fi
7634
7635 if test "x$enable_curses" = "xyes"; then
7636 if test "x$enable_readline" = "xyes"; then
7637 for ac_header in readline/readline.h
7638 do :
7639 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
7640 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
7641 cat >>confdefs.h <<_ACEOF
7642 #define HAVE_READLINE_READLINE_H 1
7643 _ACEOF
7644
7645 else
7646 enable_readline=no
7647 fi
7648
7649 done
7650
7651 for ac_header in readline/history.h
7652 do :
7653 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
7654 if test "x$ac_cv_header_readline_history_h" = xyes; then :
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_READLINE_HISTORY_H 1
7657 _ACEOF
7658
7659 else
7660 enable_readline=no
7661 fi
7662
7663 done
7664
7665 if test "x$enable_readline" = "xyes"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
7667 $as_echo_n "checking for readline in -lreadline... " >&6; }
7668 if ${ac_cv_lib_readline_readline+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 ac_check_lib_save_LIBS=$LIBS
7672 LIBS="-lreadline -lcurses $LIBS"
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7675
7676 /* Override any GCC internal prototype to avoid an error.
7677 Use char because int might match the return type of a GCC
7678 builtin and then its argument prototype would still apply. */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 char readline ();
7683 int
7684 main ()
7685 {
7686 return readline ();
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 if ac_fn_c_try_link "$LINENO"; then :
7692 ac_cv_lib_readline_readline=yes
7693 else
7694 ac_cv_lib_readline_readline=no
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7698 LIBS=$ac_check_lib_save_LIBS
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
7701 $as_echo "$ac_cv_lib_readline_readline" >&6; }
7702 if test "x$ac_cv_lib_readline_readline" = xyes; then :
7703 cat >>confdefs.h <<_ACEOF
7704 #define HAVE_LIBREADLINE 1
7705 _ACEOF
7706
7707 LIBS="-lreadline $LIBS"
7708
7709 else
7710 enable_readline=no
7711 fi
7712
7713 if test "x$enable_readline" = "xyes"; then
7714
7715 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
7716
7717 fi
7718 fi
7719 fi
7720 fi
7721 if test "x$enable_curses" = "xno"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
7723 $as_echo_n "checking for initscr in -lcurses... " >&6; }
7724 if ${ac_cv_lib_curses_initscr+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-lcurses $LIBS"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731
7732 /* Override any GCC internal prototype to avoid an error.
7733 Use char because int might match the return type of a GCC
7734 builtin and then its argument prototype would still apply. */
7735 #ifdef __cplusplus
7736 extern "C"
7737 #endif
7738 char initscr ();
7739 int
7740 main ()
7741 {
7742 return initscr ();
7743 ;
7744 return 0;
7745 }
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7748 ac_cv_lib_curses_initscr=yes
7749 else
7750 ac_cv_lib_curses_initscr=no
7751 fi
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
7757 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
7758 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
7759 enable_curses=yes
7760 fi
7761
7762 fi
7763 if test "x$enable_curses" = "xyes"; then
7764
7765 $as_echo "#define HAVE_CURSES 1" >>confdefs.h
7766
7767 fi
7768 fi
7769 fi
7770
7771 if test "x$enable_postgresql" = "xyes"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: PostgreSQL..." >&5
7773 $as_echo "$as_me: PostgreSQL..." >&6;}
7774 for ac_header in libpq-fe.h
7775 do :
7776 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
7777 if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
7778 cat >>confdefs.h <<_ACEOF
7779 #define HAVE_LIBPQ_FE_H 1
7780 _ACEOF
7781
7782 else
7783 enable_postgresql=no
7784 fi
7785
7786 done
7787
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQbackendPID in -lpq" >&5
7789 $as_echo_n "checking for PQbackendPID in -lpq... " >&6; }
7790 if ${ac_cv_lib_pq_PQbackendPID+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lpq $LIBS"
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797
7798 /* Override any GCC internal prototype to avoid an error.
7799 Use char because int might match the return type of a GCC
7800 builtin and then its argument prototype would still apply. */
7801 #ifdef __cplusplus
7802 extern "C"
7803 #endif
7804 char PQbackendPID ();
7805 int
7806 main ()
7807 {
7808 return PQbackendPID ();
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 ac_cv_lib_pq_PQbackendPID=yes
7815 else
7816 ac_cv_lib_pq_PQbackendPID=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQbackendPID" >&5
7823 $as_echo "$ac_cv_lib_pq_PQbackendPID" >&6; }
7824 if test "x$ac_cv_lib_pq_PQbackendPID" = xyes; then :
7825 cat >>confdefs.h <<_ACEOF
7826 #define HAVE_LIBPQ 1
7827 _ACEOF
7828
7829 LIBS="-lpq $LIBS"
7830
7831 else
7832 enable_postgresql=no
7833 fi
7834
7835 if test "x$enable_postgresql" = "xyes"; then
7836
7837 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
7838
7839 fi
7840 fi
7841
7842 if test "x$enable_compiler" = "xyes"; then
7843 libdl_found=no
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic loader via libdl..." >&5
7845 $as_echo "$as_me: Dynamic loader via libdl..." >&6;}
7846 for ac_header in dlfcn.h
7847 do :
7848 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7849 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7850 cat >>confdefs.h <<_ACEOF
7851 #define HAVE_DLFCN_H 1
7852 _ACEOF
7853
7854 fi
7855
7856 done
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7859 $as_echo_n "checking for library containing dlopen... " >&6; }
7860 if ${ac_cv_search_dlopen+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 ac_func_search_save_LIBS=$LIBS
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866
7867 /* Override any GCC internal prototype to avoid an error.
7868 Use char because int might match the return type of a GCC
7869 builtin and then its argument prototype would still apply. */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 char dlopen ();
7874 int
7875 main ()
7876 {
7877 return dlopen ();
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 for ac_lib in '' dl; do
7883 if test -z "$ac_lib"; then
7884 ac_res="none required"
7885 else
7886 ac_res=-l$ac_lib
7887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7888 fi
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 ac_cv_search_dlopen=$ac_res
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext
7894 if ${ac_cv_search_dlopen+:} false; then :
7895 break
7896 fi
7897 done
7898 if ${ac_cv_search_dlopen+:} false; then :
7899
7900 else
7901 ac_cv_search_dlopen=no
7902 fi
7903 rm conftest.$ac_ext
7904 LIBS=$ac_func_search_save_LIBS
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7907 $as_echo "$ac_cv_search_dlopen" >&6; }
7908 ac_res=$ac_cv_search_dlopen
7909 if test "$ac_res" != no; then :
7910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7911
7912 else
7913 enable_compiler=no
7914 fi
7915
7916 if test "x$enable_compiler" = "xyes"; then
7917
7918 $as_echo "#define HAVE_DL 1" >>confdefs.h
7919
7920 libdl_found=yes
7921 fi
7922 fi
7923
7924 # Are we on Haiku?
7925 if test "x$enable_compiler" = "xyes"; then
7926 if test "x$libdl_found" = "xno"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic loader via libroot..." >&5
7928 $as_echo "$as_me: Dynamic loader via libroot..." >&6;}
7929 for ac_header in dlfcn.h
7930 do :
7931 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7932 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7933 cat >>confdefs.h <<_ACEOF
7934 #define HAVE_DLFCN_H 1
7935 _ACEOF
7936
7937 fi
7938
7939 done
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lroot" >&5
7942 $as_echo_n "checking for dlopen in -lroot... " >&6; }
7943 if ${ac_cv_lib_root_dlopen+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lroot $LIBS"
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 char dlopen ();
7958 int
7959 main ()
7960 {
7961 return dlopen ();
7962 ;
7963 return 0;
7964 }
7965 _ACEOF
7966 if ac_fn_c_try_link "$LINENO"; then :
7967 ac_cv_lib_root_dlopen=yes
7968 else
7969 ac_cv_lib_root_dlopen=no
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7973 LIBS=$ac_check_lib_save_LIBS
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_dlopen" >&5
7976 $as_echo "$ac_cv_lib_root_dlopen" >&6; }
7977 if test "x$ac_cv_lib_root_dlopen" = xyes; then :
7978 cat >>confdefs.h <<_ACEOF
7979 #define HAVE_LIBROOT 1
7980 _ACEOF
7981
7982 LIBS="-lroot $LIBS"
7983
7984 else
7985 enable_compiler=no
7986 fi
7987
7988 if test "x$enable_compiler" = "xyes"; then
7989
7990 $as_echo "#define HAVE_DL 1" >>confdefs.h
7991
7992 fi
7993 fi
7994 fi
7995
7996 #
7997 # Generate files.
7998 #
7999
8000 ac_config_files="$ac_config_files Makefile"
8001
8002 cat >confcache <<\_ACEOF
8003 # This file is a shell script that caches the results of configure
8004 # tests run on this system so they can be shared between configure
8005 # scripts and configure runs, see configure's option --config-cache.
8006 # It is not useful on other systems. If it contains results you don't
8007 # want to keep, you may remove or edit it.
8008 #
8009 # config.status only pays attention to the cache file if you give it
8010 # the --recheck option to rerun configure.
8011 #
8012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8014 # following values.
8015
8016 _ACEOF
8017
8018 # The following way of writing the cache mishandles newlines in values,
8019 # but we know of no workaround that is simple, portable, and efficient.
8020 # So, we kill variables containing newlines.
8021 # Ultrix sh set writes to stderr and can't be redirected directly,
8022 # and sets the high bit in the cache file unless we assign to the vars.
8023 (
8024 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8025 eval ac_val=\$$ac_var
8026 case $ac_val in #(
8027 *${as_nl}*)
8028 case $ac_var in #(
8029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8031 esac
8032 case $ac_var in #(
8033 _ | IFS | as_nl) ;; #(
8034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8035 *) { eval $ac_var=; unset $ac_var;} ;;
8036 esac ;;
8037 esac
8038 done
8039
8040 (set) 2>&1 |
8041 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8042 *${as_nl}ac_space=\ *)
8043 # `set' does not quote correctly, so add quotes: double-quote
8044 # substitution turns \\\\ into \\, and sed turns \\ into \.
8045 sed -n \
8046 "s/'/'\\\\''/g;
8047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8048 ;; #(
8049 *)
8050 # `set' quotes correctly as required by POSIX, so do not add quotes.
8051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8052 ;;
8053 esac |
8054 sort
8055 ) |
8056 sed '
8057 /^ac_cv_env_/b end
8058 t clear
8059 :clear
8060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8061 t end
8062 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8063 :end' >>confcache
8064 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8065 if test -w "$cache_file"; then
8066 if test "x$cache_file" != "x/dev/null"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8068 $as_echo "$as_me: updating cache $cache_file" >&6;}
8069 if test ! -f "$cache_file" || test -h "$cache_file"; then
8070 cat confcache >"$cache_file"
8071 else
8072 case $cache_file in #(
8073 */* | ?:*)
8074 mv -f confcache "$cache_file"$$ &&
8075 mv -f "$cache_file"$$ "$cache_file" ;; #(
8076 *)
8077 mv -f confcache "$cache_file" ;;
8078 esac
8079 fi
8080 fi
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8084 fi
8085 fi
8086 rm -f confcache
8087
8088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8089 # Let make expand exec_prefix.
8090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8091
8092 DEFS=-DHAVE_CONFIG_H
8093
8094 ac_libobjs=
8095 ac_ltlibobjs=
8096 U=
8097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8098 # 1. Remove the extension, and $U if already installed.
8099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8102 # will be set to the directory where LIBOBJS objects are built.
8103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8105 done
8106 LIBOBJS=$ac_libobjs
8107
8108 LTLIBOBJS=$ac_ltlibobjs
8109
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8112 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8113 if test -n "$am_sleep_pid"; then
8114 # Hide warnings about reused PIDs.
8115 wait $am_sleep_pid 2>/dev/null
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8118 $as_echo "done" >&6; }
8119 if test -n "$EXEEXT"; then
8120 am__EXEEXT_TRUE=
8121 am__EXEEXT_FALSE='#'
8122 else
8123 am__EXEEXT_TRUE='#'
8124 am__EXEEXT_FALSE=
8125 fi
8126
8127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8128 as_fn_error $? "conditional \"AMDEP\" was never defined.
8129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8130 fi
8131 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8132 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8134 fi
8135 if test -z "${EXPORT_DYNAMIC_TRUE}" && test -z "${EXPORT_DYNAMIC_FALSE}"; then
8136 as_fn_error $? "conditional \"EXPORT_DYNAMIC\" was never defined.
8137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8138 fi
8139
8140 : "${CONFIG_STATUS=./config.status}"
8141 ac_write_fail=0
8142 ac_clean_files_save=$ac_clean_files
8143 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8146 as_write_fail=0
8147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8148 #! $SHELL
8149 # Generated by $as_me.
8150 # Run this file to recreate the current configuration.
8151 # Compiler output produced by configure, useful for debugging
8152 # configure, is in config.log if it exists.
8153
8154 debug=false
8155 ac_cs_recheck=false
8156 ac_cs_silent=false
8157
8158 SHELL=\${CONFIG_SHELL-$SHELL}
8159 export SHELL
8160 _ASEOF
8161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8162 ## -------------------- ##
8163 ## M4sh Initialization. ##
8164 ## -------------------- ##
8165
8166 # Be more Bourne compatible
8167 DUALCASE=1; export DUALCASE # for MKS sh
8168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8169 emulate sh
8170 NULLCMD=:
8171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8172 # is contrary to our usage. Disable this feature.
8173 alias -g '${1+"$@"}'='"$@"'
8174 setopt NO_GLOB_SUBST
8175 else
8176 case `(set -o) 2>/dev/null` in #(
8177 *posix*) :
8178 set -o posix ;; #(
8179 *) :
8180 ;;
8181 esac
8182 fi
8183
8184
8185 as_nl='
8186 '
8187 export as_nl
8188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8189 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8192 # Prefer a ksh shell builtin over an external printf program on Solaris,
8193 # but without wasting forks for bash or zsh.
8194 if test -z "$BASH_VERSION$ZSH_VERSION" \
8195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8196 as_echo='print -r --'
8197 as_echo_n='print -rn --'
8198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8199 as_echo='printf %s\n'
8200 as_echo_n='printf %s'
8201 else
8202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8204 as_echo_n='/usr/ucb/echo -n'
8205 else
8206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8207 as_echo_n_body='eval
8208 arg=$1;
8209 case $arg in #(
8210 *"$as_nl"*)
8211 expr "X$arg" : "X\\(.*\\)$as_nl";
8212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8213 esac;
8214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8215 '
8216 export as_echo_n_body
8217 as_echo_n='sh -c $as_echo_n_body as_echo'
8218 fi
8219 export as_echo_body
8220 as_echo='sh -c $as_echo_body as_echo'
8221 fi
8222
8223 # The user is always right.
8224 if test "${PATH_SEPARATOR+set}" != set; then
8225 PATH_SEPARATOR=:
8226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8228 PATH_SEPARATOR=';'
8229 }
8230 fi
8231
8232
8233 # IFS
8234 # We need space, tab and new line, in precisely that order. Quoting is
8235 # there to prevent editors from complaining about space-tab.
8236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8237 # splitting by setting IFS to empty value.)
8238 IFS=" "" $as_nl"
8239
8240 # Find who we are. Look in the path if we contain no directory separator.
8241 as_myself=
8242 case $0 in #((
8243 *[\\/]* ) as_myself=$0 ;;
8244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8250 done
8251 IFS=$as_save_IFS
8252
8253 ;;
8254 esac
8255 # We did not find ourselves, most probably we were run as `sh COMMAND'
8256 # in which case we are not to be found in the path.
8257 if test "x$as_myself" = x; then
8258 as_myself=$0
8259 fi
8260 if test ! -f "$as_myself"; then
8261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8262 exit 1
8263 fi
8264
8265 # Unset variables that we do not need and which cause bugs (e.g. in
8266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8267 # suppresses any "Segmentation fault" message there. '((' could
8268 # trigger a bug in pdksh 5.2.14.
8269 for as_var in BASH_ENV ENV MAIL MAILPATH
8270 do eval test x\${$as_var+set} = xset \
8271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8272 done
8273 PS1='$ '
8274 PS2='> '
8275 PS4='+ '
8276
8277 # NLS nuisances.
8278 LC_ALL=C
8279 export LC_ALL
8280 LANGUAGE=C
8281 export LANGUAGE
8282
8283 # CDPATH.
8284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8285
8286
8287 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8288 # ----------------------------------------
8289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8291 # script with STATUS, using 1 if that was 0.
8292 as_fn_error ()
8293 {
8294 as_status=$1; test $as_status -eq 0 && as_status=1
8295 if test "$4"; then
8296 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8298 fi
8299 $as_echo "$as_me: error: $2" >&2
8300 as_fn_exit $as_status
8301 } # as_fn_error
8302
8303
8304 # as_fn_set_status STATUS
8305 # -----------------------
8306 # Set $? to STATUS, without forking.
8307 as_fn_set_status ()
8308 {
8309 return $1
8310 } # as_fn_set_status
8311
8312 # as_fn_exit STATUS
8313 # -----------------
8314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8315 as_fn_exit ()
8316 {
8317 set +e
8318 as_fn_set_status $1
8319 exit $1
8320 } # as_fn_exit
8321
8322 # as_fn_unset VAR
8323 # ---------------
8324 # Portably unset VAR.
8325 as_fn_unset ()
8326 {
8327 { eval $1=; unset $1;}
8328 }
8329 as_unset=as_fn_unset
8330 # as_fn_append VAR VALUE
8331 # ----------------------
8332 # Append the text in VALUE to the end of the definition contained in VAR. Take
8333 # advantage of any shell optimizations that allow amortized linear growth over
8334 # repeated appends, instead of the typical quadratic growth present in naive
8335 # implementations.
8336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8337 eval 'as_fn_append ()
8338 {
8339 eval $1+=\$2
8340 }'
8341 else
8342 as_fn_append ()
8343 {
8344 eval $1=\$$1\$2
8345 }
8346 fi # as_fn_append
8347
8348 # as_fn_arith ARG...
8349 # ------------------
8350 # Perform arithmetic evaluation on the ARGs, and store the result in the
8351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8352 # must be portable across $(()) and expr.
8353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8354 eval 'as_fn_arith ()
8355 {
8356 as_val=$(( $* ))
8357 }'
8358 else
8359 as_fn_arith ()
8360 {
8361 as_val=`expr "$@" || test $? -eq 1`
8362 }
8363 fi # as_fn_arith
8364
8365
8366 if expr a : '\(a\)' >/dev/null 2>&1 &&
8367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8368 as_expr=expr
8369 else
8370 as_expr=false
8371 fi
8372
8373 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8374 as_basename=basename
8375 else
8376 as_basename=false
8377 fi
8378
8379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8380 as_dirname=dirname
8381 else
8382 as_dirname=false
8383 fi
8384
8385 as_me=`$as_basename -- "$0" ||
8386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8387 X"$0" : 'X\(//\)$' \| \
8388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8389 $as_echo X/"$0" |
8390 sed '/^.*\/\([^/][^/]*\)\/*$/{
8391 s//\1/
8392 q
8393 }
8394 /^X\/\(\/\/\)$/{
8395 s//\1/
8396 q
8397 }
8398 /^X\/\(\/\).*/{
8399 s//\1/
8400 q
8401 }
8402 s/.*/./; q'`
8403
8404 # Avoid depending upon Character Ranges.
8405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8408 as_cr_digits='0123456789'
8409 as_cr_alnum=$as_cr_Letters$as_cr_digits
8410
8411 ECHO_C= ECHO_N= ECHO_T=
8412 case `echo -n x` in #(((((
8413 -n*)
8414 case `echo 'xy\c'` in
8415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8416 xy) ECHO_C='\c';;
8417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8418 ECHO_T=' ';;
8419 esac;;
8420 *)
8421 ECHO_N='-n';;
8422 esac
8423
8424 rm -f conf$$ conf$$.exe conf$$.file
8425 if test -d conf$$.dir; then
8426 rm -f conf$$.dir/conf$$.file
8427 else
8428 rm -f conf$$.dir
8429 mkdir conf$$.dir 2>/dev/null
8430 fi
8431 if (echo >conf$$.file) 2>/dev/null; then
8432 if ln -s conf$$.file conf$$ 2>/dev/null; then
8433 as_ln_s='ln -s'
8434 # ... but there are two gotchas:
8435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8437 # In both cases, we have to default to `cp -pR'.
8438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8439 as_ln_s='cp -pR'
8440 elif ln conf$$.file conf$$ 2>/dev/null; then
8441 as_ln_s=ln
8442 else
8443 as_ln_s='cp -pR'
8444 fi
8445 else
8446 as_ln_s='cp -pR'
8447 fi
8448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8449 rmdir conf$$.dir 2>/dev/null
8450
8451
8452 # as_fn_mkdir_p
8453 # -------------
8454 # Create "$as_dir" as a directory, including parents if necessary.
8455 as_fn_mkdir_p ()
8456 {
8457
8458 case $as_dir in #(
8459 -*) as_dir=./$as_dir;;
8460 esac
8461 test -d "$as_dir" || eval $as_mkdir_p || {
8462 as_dirs=
8463 while :; do
8464 case $as_dir in #(
8465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8466 *) as_qdir=$as_dir;;
8467 esac
8468 as_dirs="'$as_qdir' $as_dirs"
8469 as_dir=`$as_dirname -- "$as_dir" ||
8470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8471 X"$as_dir" : 'X\(//\)[^/]' \| \
8472 X"$as_dir" : 'X\(//\)$' \| \
8473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8474 $as_echo X"$as_dir" |
8475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8476 s//\1/
8477 q
8478 }
8479 /^X\(\/\/\)[^/].*/{
8480 s//\1/
8481 q
8482 }
8483 /^X\(\/\/\)$/{
8484 s//\1/
8485 q
8486 }
8487 /^X\(\/\).*/{
8488 s//\1/
8489 q
8490 }
8491 s/.*/./; q'`
8492 test -d "$as_dir" && break
8493 done
8494 test -z "$as_dirs" || eval "mkdir $as_dirs"
8495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8496
8497
8498 } # as_fn_mkdir_p
8499 if mkdir -p . 2>/dev/null; then
8500 as_mkdir_p='mkdir -p "$as_dir"'
8501 else
8502 test -d ./-p && rmdir ./-p
8503 as_mkdir_p=false
8504 fi
8505
8506
8507 # as_fn_executable_p FILE
8508 # -----------------------
8509 # Test if FILE is an executable regular file.
8510 as_fn_executable_p ()
8511 {
8512 test -f "$1" && test -x "$1"
8513 } # as_fn_executable_p
8514 as_test_x='test -x'
8515 as_executable_p=as_fn_executable_p
8516
8517 # Sed expression to map a string onto a valid CPP name.
8518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8519
8520 # Sed expression to map a string onto a valid variable name.
8521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8522
8523
8524 exec 6>&1
8525 ## ----------------------------------- ##
8526 ## Main body of $CONFIG_STATUS script. ##
8527 ## ----------------------------------- ##
8528 _ASEOF
8529 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8530
8531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8532 # Save the log message, to keep $0 and so on meaningful, and to
8533 # report actual input values of CONFIG_FILES etc. instead of their
8534 # values after options handling.
8535 ac_log="
8536 This file was extended by algol68g $as_me 3.1.2, which was
8537 generated by GNU Autoconf 2.69. Invocation command line was
8538
8539 CONFIG_FILES = $CONFIG_FILES
8540 CONFIG_HEADERS = $CONFIG_HEADERS
8541 CONFIG_LINKS = $CONFIG_LINKS
8542 CONFIG_COMMANDS = $CONFIG_COMMANDS
8543 $ $0 $@
8544
8545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8546 "
8547
8548 _ACEOF
8549
8550 case $ac_config_files in *"
8551 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8552 esac
8553
8554 case $ac_config_headers in *"
8555 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8556 esac
8557
8558
8559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8560 # Files that config.status was made for.
8561 config_files="$ac_config_files"
8562 config_headers="$ac_config_headers"
8563 config_commands="$ac_config_commands"
8564
8565 _ACEOF
8566
8567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8568 ac_cs_usage="\
8569 \`$as_me' instantiates files and other configuration actions
8570 from templates according to the current configuration. Unless the files
8571 and actions are specified as TAGs, all are instantiated by default.
8572
8573 Usage: $0 [OPTION]... [TAG]...
8574
8575 -h, --help print this help, then exit
8576 -V, --version print version number and configuration settings, then exit
8577 --config print configuration, then exit
8578 -q, --quiet, --silent
8579 do not print progress messages
8580 -d, --debug don't remove temporary files
8581 --recheck update $as_me by reconfiguring in the same conditions
8582 --file=FILE[:TEMPLATE]
8583 instantiate the configuration file FILE
8584 --header=FILE[:TEMPLATE]
8585 instantiate the configuration header FILE
8586
8587 Configuration files:
8588 $config_files
8589
8590 Configuration headers:
8591 $config_headers
8592
8593 Configuration commands:
8594 $config_commands
8595
8596 Report bugs to <Marcel van der Veer <[email protected]>>."
8597
8598 _ACEOF
8599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8600 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8601 ac_cs_version="\\
8602 algol68g config.status 3.1.2
8603 configured by $0, generated by GNU Autoconf 2.69,
8604 with options \\"\$ac_cs_config\\"
8605
8606 Copyright (C) 2012 Free Software Foundation, Inc.
8607 This config.status script is free software; the Free Software Foundation
8608 gives unlimited permission to copy, distribute and modify it."
8609
8610 ac_pwd='$ac_pwd'
8611 srcdir='$srcdir'
8612 INSTALL='$INSTALL'
8613 MKDIR_P='$MKDIR_P'
8614 AWK='$AWK'
8615 test -n "\$AWK" || AWK=awk
8616 _ACEOF
8617
8618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8619 # The default lists apply if the user does not specify any file.
8620 ac_need_defaults=:
8621 while test $# != 0
8622 do
8623 case $1 in
8624 --*=?*)
8625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8627 ac_shift=:
8628 ;;
8629 --*=)
8630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8631 ac_optarg=
8632 ac_shift=:
8633 ;;
8634 *)
8635 ac_option=$1
8636 ac_optarg=$2
8637 ac_shift=shift
8638 ;;
8639 esac
8640
8641 case $ac_option in
8642 # Handling of the options.
8643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8644 ac_cs_recheck=: ;;
8645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8646 $as_echo "$ac_cs_version"; exit ;;
8647 --config | --confi | --conf | --con | --co | --c )
8648 $as_echo "$ac_cs_config"; exit ;;
8649 --debug | --debu | --deb | --de | --d | -d )
8650 debug=: ;;
8651 --file | --fil | --fi | --f )
8652 $ac_shift
8653 case $ac_optarg in
8654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8655 '') as_fn_error $? "missing file argument" ;;
8656 esac
8657 as_fn_append CONFIG_FILES " '$ac_optarg'"
8658 ac_need_defaults=false;;
8659 --header | --heade | --head | --hea )
8660 $ac_shift
8661 case $ac_optarg in
8662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8663 esac
8664 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8665 ac_need_defaults=false;;
8666 --he | --h)
8667 # Conflict between --help and --header
8668 as_fn_error $? "ambiguous option: \`$1'
8669 Try \`$0 --help' for more information.";;
8670 --help | --hel | -h )
8671 $as_echo "$ac_cs_usage"; exit ;;
8672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8674 ac_cs_silent=: ;;
8675
8676 # This is an error.
8677 -*) as_fn_error $? "unrecognized option: \`$1'
8678 Try \`$0 --help' for more information." ;;
8679
8680 *) as_fn_append ac_config_targets " $1"
8681 ac_need_defaults=false ;;
8682
8683 esac
8684 shift
8685 done
8686
8687 ac_configure_extra_args=
8688
8689 if $ac_cs_silent; then
8690 exec 6>/dev/null
8691 ac_configure_extra_args="$ac_configure_extra_args --silent"
8692 fi
8693
8694 _ACEOF
8695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8696 if \$ac_cs_recheck; then
8697 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8698 shift
8699 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8700 CONFIG_SHELL='$SHELL'
8701 export CONFIG_SHELL
8702 exec "\$@"
8703 fi
8704
8705 _ACEOF
8706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8707 exec 5>>config.log
8708 {
8709 echo
8710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8711 ## Running $as_me. ##
8712 _ASBOX
8713 $as_echo "$ac_log"
8714 } >&5
8715
8716 _ACEOF
8717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8718 #
8719 # INIT-COMMANDS
8720 #
8721 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8722
8723 _ACEOF
8724
8725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8726
8727 # Handling of arguments.
8728 for ac_config_target in $ac_config_targets
8729 do
8730 case $ac_config_target in
8731 "a68g-config.h") CONFIG_HEADERS="$CONFIG_HEADERS a68g-config.h" ;;
8732 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8734
8735 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8736 esac
8737 done
8738
8739
8740 # If the user did not use the arguments to specify the items to instantiate,
8741 # then the envvar interface is used. Set only those that are not.
8742 # We use the long form for the default assignment because of an extremely
8743 # bizarre bug on SunOS 4.1.3.
8744 if $ac_need_defaults; then
8745 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8746 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8747 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8748 fi
8749
8750 # Have a temporary directory for convenience. Make it in the build tree
8751 # simply because there is no reason against having it here, and in addition,
8752 # creating and moving files from /tmp can sometimes cause problems.
8753 # Hook for its removal unless debugging.
8754 # Note that there is a small window in which the directory will not be cleaned:
8755 # after its creation but before its name has been assigned to `$tmp'.
8756 $debug ||
8757 {
8758 tmp= ac_tmp=
8759 trap 'exit_status=$?
8760 : "${ac_tmp:=$tmp}"
8761 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8762 ' 0
8763 trap 'as_fn_exit 1' 1 2 13 15
8764 }
8765 # Create a (secure) tmp directory for tmp files.
8766
8767 {
8768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8769 test -d "$tmp"
8770 } ||
8771 {
8772 tmp=./conf$$-$RANDOM
8773 (umask 077 && mkdir "$tmp")
8774 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8775 ac_tmp=$tmp
8776
8777 # Set up the scripts for CONFIG_FILES section.
8778 # No need to generate them if there are no CONFIG_FILES.
8779 # This happens for instance with `./config.status config.h'.
8780 if test -n "$CONFIG_FILES"; then
8781
8782
8783 ac_cr=`echo X | tr X '\015'`
8784 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8785 # But we know of no other shell where ac_cr would be empty at this
8786 # point, so we can use a bashism as a fallback.
8787 if test "x$ac_cr" = x; then
8788 eval ac_cr=\$\'\\r\'
8789 fi
8790 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8791 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8792 ac_cs_awk_cr='\\r'
8793 else
8794 ac_cs_awk_cr=$ac_cr
8795 fi
8796
8797 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8798 _ACEOF
8799
8800
8801 {
8802 echo "cat >conf$$subs.awk <<_ACEOF" &&
8803 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8804 echo "_ACEOF"
8805 } >conf$$subs.sh ||
8806 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8807 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8808 ac_delim='%!_!# '
8809 for ac_last_try in false false false false false :; do
8810 . ./conf$$subs.sh ||
8811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8812
8813 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8814 if test $ac_delim_n = $ac_delim_num; then
8815 break
8816 elif $ac_last_try; then
8817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8818 else
8819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8820 fi
8821 done
8822 rm -f conf$$subs.sh
8823
8824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8825 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8826 _ACEOF
8827 sed -n '
8828 h
8829 s/^/S["/; s/!.*/"]=/
8830 p
8831 g
8832 s/^[^!]*!//
8833 :repl
8834 t repl
8835 s/'"$ac_delim"'$//
8836 t delim
8837 :nl
8838 h
8839 s/\(.\{148\}\)..*/\1/
8840 t more1
8841 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8842 p
8843 n
8844 b repl
8845 :more1
8846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8847 p
8848 g
8849 s/.\{148\}//
8850 t nl
8851 :delim
8852 h
8853 s/\(.\{148\}\)..*/\1/
8854 t more2
8855 s/["\\]/\\&/g; s/^/"/; s/$/"/
8856 p
8857 b
8858 :more2
8859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8860 p
8861 g
8862 s/.\{148\}//
8863 t delim
8864 ' <conf$$subs.awk | sed '
8865 /^[^""]/{
8866 N
8867 s/\n//
8868 }
8869 ' >>$CONFIG_STATUS || ac_write_fail=1
8870 rm -f conf$$subs.awk
8871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8872 _ACAWK
8873 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8874 for (key in S) S_is_set[key] = 1
8875 FS = ""
8876
8877 }
8878 {
8879 line = $ 0
8880 nfields = split(line, field, "@")
8881 substed = 0
8882 len = length(field[1])
8883 for (i = 2; i < nfields; i++) {
8884 key = field[i]
8885 keylen = length(key)
8886 if (S_is_set[key]) {
8887 value = S[key]
8888 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8889 len += length(value) + length(field[++i])
8890 substed = 1
8891 } else
8892 len += 1 + keylen
8893 }
8894
8895 print line
8896 }
8897
8898 _ACAWK
8899 _ACEOF
8900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8903 else
8904 cat
8905 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8906 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8907 _ACEOF
8908
8909 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8910 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8911 # trailing colons and then remove the whole line if VPATH becomes empty
8912 # (actually we leave an empty line to preserve line numbers).
8913 if test "x$srcdir" = x.; then
8914 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8915 h
8916 s///
8917 s/^/:/
8918 s/[ ]*$/:/
8919 s/:\$(srcdir):/:/g
8920 s/:\${srcdir}:/:/g
8921 s/:@srcdir@:/:/g
8922 s/^:*//
8923 s/:*$//
8924 x
8925 s/\(=[ ]*\).*/\1/
8926 G
8927 s/\n//
8928 s/^[^=]*=[ ]*$//
8929 }'
8930 fi
8931
8932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8933 fi # test -n "$CONFIG_FILES"
8934
8935 # Set up the scripts for CONFIG_HEADERS section.
8936 # No need to generate them if there are no CONFIG_HEADERS.
8937 # This happens for instance with `./config.status Makefile'.
8938 if test -n "$CONFIG_HEADERS"; then
8939 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8940 BEGIN {
8941 _ACEOF
8942
8943 # Transform confdefs.h into an awk script `defines.awk', embedded as
8944 # here-document in config.status, that substitutes the proper values into
8945 # config.h.in to produce config.h.
8946
8947 # Create a delimiter string that does not exist in confdefs.h, to ease
8948 # handling of long lines.
8949 ac_delim='%!_!# '
8950 for ac_last_try in false false :; do
8951 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8952 if test -z "$ac_tt"; then
8953 break
8954 elif $ac_last_try; then
8955 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8956 else
8957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8958 fi
8959 done
8960
8961 # For the awk script, D is an array of macro values keyed by name,
8962 # likewise P contains macro parameters if any. Preserve backslash
8963 # newline sequences.
8964
8965 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8966 sed -n '
8967 s/.\{148\}/&'"$ac_delim"'/g
8968 t rset
8969 :rset
8970 s/^[ ]*#[ ]*define[ ][ ]*/ /
8971 t def
8972 d
8973 :def
8974 s/\\$//
8975 t bsnl
8976 s/["\\]/\\&/g
8977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8978 D["\1"]=" \3"/p
8979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8980 d
8981 :bsnl
8982 s/["\\]/\\&/g
8983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8984 D["\1"]=" \3\\\\\\n"\\/p
8985 t cont
8986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8987 t cont
8988 d
8989 :cont
8990 n
8991 s/.\{148\}/&'"$ac_delim"'/g
8992 t clear
8993 :clear
8994 s/\\$//
8995 t bsnlc
8996 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8997 d
8998 :bsnlc
8999 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9000 b cont
9001 ' <confdefs.h | sed '
9002 s/'"$ac_delim"'/"\\\
9003 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9004
9005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9006 for (key in D) D_is_set[key] = 1
9007 FS = ""
9008 }
9009 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9010 line = \$ 0
9011 split(line, arg, " ")
9012 if (arg[1] == "#") {
9013 defundef = arg[2]
9014 mac1 = arg[3]
9015 } else {
9016 defundef = substr(arg[1], 2)
9017 mac1 = arg[2]
9018 }
9019 split(mac1, mac2, "(") #)
9020 macro = mac2[1]
9021 prefix = substr(line, 1, index(line, defundef) - 1)
9022 if (D_is_set[macro]) {
9023 # Preserve the white space surrounding the "#".
9024 print prefix "define", macro P[macro] D[macro]
9025 next
9026 } else {
9027 # Replace #undef with comments. This is necessary, for example,
9028 # in the case of _POSIX_SOURCE, which is predefined and required
9029 # on some systems where configure will not decide to define it.
9030 if (defundef == "undef") {
9031 print "/*", prefix defundef, macro, "*/"
9032 next
9033 }
9034 }
9035 }
9036 { print }
9037 _ACAWK
9038 _ACEOF
9039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9040 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9041 fi # test -n "$CONFIG_HEADERS"
9042
9043
9044 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9045 shift
9046 for ac_tag
9047 do
9048 case $ac_tag in
9049 :[FHLC]) ac_mode=$ac_tag; continue;;
9050 esac
9051 case $ac_mode$ac_tag in
9052 :[FHL]*:*);;
9053 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9054 :[FH]-) ac_tag=-:-;;
9055 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9056 esac
9057 ac_save_IFS=$IFS
9058 IFS=:
9059 set x $ac_tag
9060 IFS=$ac_save_IFS
9061 shift
9062 ac_file=$1
9063 shift
9064
9065 case $ac_mode in
9066 :L) ac_source=$1;;
9067 :[FH])
9068 ac_file_inputs=
9069 for ac_f
9070 do
9071 case $ac_f in
9072 -) ac_f="$ac_tmp/stdin";;
9073 *) # Look for the file first in the build tree, then in the source tree
9074 # (if the path is not absolute). The absolute path cannot be DOS-style,
9075 # because $ac_f cannot contain `:'.
9076 test -f "$ac_f" ||
9077 case $ac_f in
9078 [\\/$]*) false;;
9079 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9080 esac ||
9081 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9082 esac
9083 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9084 as_fn_append ac_file_inputs " '$ac_f'"
9085 done
9086
9087 # Let's still pretend it is `configure' which instantiates (i.e., don't
9088 # use $as_me), people would be surprised to read:
9089 # /* config.h. Generated by config.status. */
9090 configure_input='Generated from '`
9091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9092 `' by configure.'
9093 if test x"$ac_file" != x-; then
9094 configure_input="$ac_file. $configure_input"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9096 $as_echo "$as_me: creating $ac_file" >&6;}
9097 fi
9098 # Neutralize special characters interpreted by sed in replacement strings.
9099 case $configure_input in #(
9100 *\&* | *\|* | *\\* )
9101 ac_sed_conf_input=`$as_echo "$configure_input" |
9102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9103 *) ac_sed_conf_input=$configure_input;;
9104 esac
9105
9106 case $ac_tag in
9107 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9109 esac
9110 ;;
9111 esac
9112
9113 ac_dir=`$as_dirname -- "$ac_file" ||
9114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9115 X"$ac_file" : 'X\(//\)[^/]' \| \
9116 X"$ac_file" : 'X\(//\)$' \| \
9117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9118 $as_echo X"$ac_file" |
9119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9120 s//\1/
9121 q
9122 }
9123 /^X\(\/\/\)[^/].*/{
9124 s//\1/
9125 q
9126 }
9127 /^X\(\/\/\)$/{
9128 s//\1/
9129 q
9130 }
9131 /^X\(\/\).*/{
9132 s//\1/
9133 q
9134 }
9135 s/.*/./; q'`
9136 as_dir="$ac_dir"; as_fn_mkdir_p
9137 ac_builddir=.
9138
9139 case "$ac_dir" in
9140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9141 *)
9142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9143 # A ".." for each directory in $ac_dir_suffix.
9144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9145 case $ac_top_builddir_sub in
9146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9148 esac ;;
9149 esac
9150 ac_abs_top_builddir=$ac_pwd
9151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9152 # for backward compatibility:
9153 ac_top_builddir=$ac_top_build_prefix
9154
9155 case $srcdir in
9156 .) # We are building in place.
9157 ac_srcdir=.
9158 ac_top_srcdir=$ac_top_builddir_sub
9159 ac_abs_top_srcdir=$ac_pwd ;;
9160 [\\/]* | ?:[\\/]* ) # Absolute name.
9161 ac_srcdir=$srcdir$ac_dir_suffix;
9162 ac_top_srcdir=$srcdir
9163 ac_abs_top_srcdir=$srcdir ;;
9164 *) # Relative name.
9165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9166 ac_top_srcdir=$ac_top_build_prefix$srcdir
9167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9168 esac
9169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9170
9171
9172 case $ac_mode in
9173 :F)
9174 #
9175 # CONFIG_FILE
9176 #
9177
9178 case $INSTALL in
9179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9180 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9181 esac
9182 ac_MKDIR_P=$MKDIR_P
9183 case $MKDIR_P in
9184 [\\/$]* | ?:[\\/]* ) ;;
9185 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9186 esac
9187 _ACEOF
9188
9189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9190 # If the template does not know about datarootdir, expand it.
9191 # FIXME: This hack should be removed a few years after 2.60.
9192 ac_datarootdir_hack=; ac_datarootdir_seen=
9193 ac_sed_dataroot='
9194 /datarootdir/ {
9195 p
9196 q
9197 }
9198 /@datadir@/p
9199 /@docdir@/p
9200 /@infodir@/p
9201 /@localedir@/p
9202 /@mandir@/p'
9203 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9204 *datarootdir*) ac_datarootdir_seen=yes;;
9205 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9207 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9208 _ACEOF
9209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9210 ac_datarootdir_hack='
9211 s&@datadir@&$datadir&g
9212 s&@docdir@&$docdir&g
9213 s&@infodir@&$infodir&g
9214 s&@localedir@&$localedir&g
9215 s&@mandir@&$mandir&g
9216 s&\\\${datarootdir}&$datarootdir&g' ;;
9217 esac
9218 _ACEOF
9219
9220 # Neutralize VPATH when `$srcdir' = `.'.
9221 # Shell code in configure.ac might set extrasub.
9222 # FIXME: do we really want to maintain this feature?
9223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9224 ac_sed_extra="$ac_vpsub
9225 $extrasub
9226 _ACEOF
9227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9228 :t
9229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9230 s|@configure_input@|$ac_sed_conf_input|;t t
9231 s&@top_builddir@&$ac_top_builddir_sub&;t t
9232 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9233 s&@srcdir@&$ac_srcdir&;t t
9234 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9235 s&@top_srcdir@&$ac_top_srcdir&;t t
9236 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9237 s&@builddir@&$ac_builddir&;t t
9238 s&@abs_builddir@&$ac_abs_builddir&;t t
9239 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9240 s&@INSTALL@&$ac_INSTALL&;t t
9241 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9242 $ac_datarootdir_hack
9243 "
9244 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9245 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9246
9247 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9248 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9249 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9250 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9252 which seems to be undefined. Please make sure it is defined" >&5
9253 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9254 which seems to be undefined. Please make sure it is defined" >&2;}
9255
9256 rm -f "$ac_tmp/stdin"
9257 case $ac_file in
9258 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9259 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9260 esac \
9261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9262 ;;
9263 :H)
9264 #
9265 # CONFIG_HEADER
9266 #
9267 if test x"$ac_file" != x-; then
9268 {
9269 $as_echo "/* $configure_input */" \
9270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9271 } >"$ac_tmp/config.h" \
9272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9273 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9275 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9276 else
9277 rm -f "$ac_file"
9278 mv "$ac_tmp/config.h" "$ac_file" \
9279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9280 fi
9281 else
9282 $as_echo "/* $configure_input */" \
9283 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9284 || as_fn_error $? "could not create -" "$LINENO" 5
9285 fi
9286 # Compute "$ac_file"'s index in $config_headers.
9287 _am_arg="$ac_file"
9288 _am_stamp_count=1
9289 for _am_header in $config_headers :; do
9290 case $_am_header in
9291 $_am_arg | $_am_arg:* )
9292 break ;;
9293 * )
9294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9295 esac
9296 done
9297 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9298 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9299 X"$_am_arg" : 'X\(//\)[^/]' \| \
9300 X"$_am_arg" : 'X\(//\)$' \| \
9301 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9302 $as_echo X"$_am_arg" |
9303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9304 s//\1/
9305 q
9306 }
9307 /^X\(\/\/\)[^/].*/{
9308 s//\1/
9309 q
9310 }
9311 /^X\(\/\/\)$/{
9312 s//\1/
9313 q
9314 }
9315 /^X\(\/\).*/{
9316 s//\1/
9317 q
9318 }
9319 s/.*/./; q'`/stamp-h$_am_stamp_count
9320 ;;
9321
9322 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9323 $as_echo "$as_me: executing $ac_file commands" >&6;}
9324 ;;
9325 esac
9326
9327
9328 case $ac_file$ac_mode in
9329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9330 # Older Autoconf quotes --file arguments for eval, but not when files
9331 # are listed without --file. Let's play safe and only enable the eval
9332 # if we detect the quoting.
9333 # TODO: see whether this extra hack can be removed once we start
9334 # requiring Autoconf 2.70 or later.
9335 case $CONFIG_FILES in #(
9336 *\'*) :
9337 eval set x "$CONFIG_FILES" ;; #(
9338 *) :
9339 set x $CONFIG_FILES ;; #(
9340 *) :
9341 ;;
9342 esac
9343 shift
9344 # Used to flag and report bootstrapping failures.
9345 am_rc=0
9346 for am_mf
9347 do
9348 # Strip MF so we end up with the name of the file.
9349 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
9350 # Check whether this is an Automake generated Makefile which includes
9351 # dependency-tracking related rules and includes.
9352 # Grep'ing the whole file directly is not great: AIX grep has a line
9353 # limit of 2048, but all sed's we know have understand at least 4000.
9354 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9355 || continue
9356 am_dirpart=`$as_dirname -- "$am_mf" ||
9357 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9358 X"$am_mf" : 'X\(//\)[^/]' \| \
9359 X"$am_mf" : 'X\(//\)$' \| \
9360 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9361 $as_echo X"$am_mf" |
9362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9363 s//\1/
9364 q
9365 }
9366 /^X\(\/\/\)[^/].*/{
9367 s//\1/
9368 q
9369 }
9370 /^X\(\/\/\)$/{
9371 s//\1/
9372 q
9373 }
9374 /^X\(\/\).*/{
9375 s//\1/
9376 q
9377 }
9378 s/.*/./; q'`
9379 am_filepart=`$as_basename -- "$am_mf" ||
9380 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9381 X"$am_mf" : 'X\(//\)$' \| \
9382 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9383 $as_echo X/"$am_mf" |
9384 sed '/^.*\/\([^/][^/]*\)\/*$/{
9385 s//\1/
9386 q
9387 }
9388 /^X\/\(\/\/\)$/{
9389 s//\1/
9390 q
9391 }
9392 /^X\/\(\/\).*/{
9393 s//\1/
9394 q
9395 }
9396 s/.*/./; q'`
9397 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9398 && sed -e '/# am--include-marker/d' "$am_filepart" \
9399 | $MAKE -f - am--depfiles" >&5
9400 (cd "$am_dirpart" \
9401 && sed -e '/# am--include-marker/d' "$am_filepart" \
9402 | $MAKE -f - am--depfiles) >&5 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } || am_rc=$?
9406 done
9407 if test $am_rc -ne 0; then
9408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9410 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9411 for automatic dependency tracking. If GNU make was not used, consider
9412 re-running the configure script with MAKE=\"gmake\" (or whatever is
9413 necessary). You can also try re-running configure with the
9414 '--disable-dependency-tracking' option to at least be able to build
9415 the package (albeit without support for automatic dependency tracking).
9416 See \`config.log' for more details" "$LINENO" 5; }
9417 fi
9418 { am_dirpart=; unset am_dirpart;}
9419 { am_filepart=; unset am_filepart;}
9420 { am_mf=; unset am_mf;}
9421 { am_rc=; unset am_rc;}
9422 rm -f conftest-deps.mk
9423 }
9424 ;;
9425
9426 esac
9427 done # for ac_tag
9428
9429
9430 as_fn_exit 0
9431 _ACEOF
9432 ac_clean_files=$ac_clean_files_save
9433
9434 test $ac_write_fail = 0 ||
9435 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9436
9437
9438 # configure is writing to config.log, and then calls config.status.
9439 # config.status does its own redirection, appending to config.log.
9440 # Unfortunately, on DOS this fails, as config.log is still kept open
9441 # by configure, so config.status won't be able to write to it; its
9442 # output is simply discarded. So we exec the FD to /dev/null,
9443 # effectively closing config.log, so it can be properly (re)opened and
9444 # appended to by config.status. When coming back to configure, we
9445 # need to make the FD available again.
9446 if test "$no_create" != yes; then
9447 ac_cs_success=:
9448 ac_config_status_args=
9449 test "$silent" = yes &&
9450 ac_config_status_args="$ac_config_status_args --quiet"
9451 exec 5>/dev/null
9452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9453 exec 5>>config.log
9454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9455 # would make configure fail if this is the last instruction.
9456 $ac_cs_success || as_fn_exit 1
9457 fi
9458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9461 fi
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
9464 $as_echo "$as_me: " >&6;}
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: algol68g-3.1.2 by Marcel van der Veer <[email protected]>" >&5
9466 $as_echo "$as_me: algol68g-3.1.2 by Marcel van der Veer <[email protected]>" >&6;}
9467 if test "x$a68g_exists" = "xyes"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: algol68g already exists on this system" >&5
9469 $as_echo "$as_me: algol68g already exists on this system" >&6;}
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
9472 $as_echo "$as_me: " >&6;}
9473 if test "x$enable_quadmath" = "xyes"; then
9474 if test "x$enable_long_types" = "xyes"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: building with hardware support for long modes" >&5
9476 $as_echo "$as_me: building with hardware support for long modes" >&6;}
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: building with quadmath" >&5
9478 $as_echo "$as_me: building with quadmath" >&6;}
9479 fi
9480 fi
9481 if test "x$enable_parallel" = "xyes"; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: building with parallel clause" >&5
9483 $as_echo "$as_me: building with parallel clause" >&6;}
9484 fi
9485 if test "x$enable_mpfr" = "xyes"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: building with GNU MPFR" >&5
9487 $as_echo "$as_me: building with GNU MPFR" >&6;}
9488 fi
9489 if test "x$enable_mpfr" = "xno"; then
9490 if test "x$GCC" = "xyes"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: GNU MPFR found but not used" >&5
9492 $as_echo "$as_me: GNU MPFR found but not used" >&6;}
9493 fi
9494 fi
9495 if test "x$enable_mathlib" = "xyes"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: building with R mathlib" >&5
9497 $as_echo "$as_me: building with R mathlib" >&6;}
9498 fi
9499 if test "x$enable_gsl" = "xyes"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: building with GNU Scientific Library" >&5
9501 $as_echo "$as_me: building with GNU Scientific Library" >&6;}
9502 fi
9503 if test "x$enable_curses" = "xyes"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: building with curses" >&5
9505 $as_echo "$as_me: building with curses" >&6;}
9506 fi
9507 if test "x$enable_plotutils" = "xyes"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: building with GNU plotutils" >&5
9509 $as_echo "$as_me: building with GNU plotutils" >&6;}
9510 fi
9511 if test "x$enable_postgresql" = "xyes"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: building with PostgreSQL" >&5
9513 $as_echo "$as_me: building with PostgreSQL" >&6;}
9514 fi
9515 if test "x$enable_compiler" = "xyes"; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: building compiler-interpreter" >&5
9517 $as_echo "$as_me: building compiler-interpreter" >&6;}
9518 else
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: building interpreter-only" >&5
9520 $as_echo "$as_me: building interpreter-only" >&6;}
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
9523 $as_echo "$as_me: " >&6;}
9524 if test "x$GCC" = "xyes"; then
9525 if test "x$enable_quadmath" = "xno"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: consider installing libquadmath-devel and reconfiguring" >&5
9527 $as_echo "$as_me: consider installing libquadmath-devel and reconfiguring" >&6;}
9528 fi
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: now type 'make' optionally followed by 'make check' or 'make install'" >&5
9531 $as_echo "$as_me: now type 'make' optionally followed by 'make check' or 'make install'" >&6;}