[RUNTIME CHANGES NEEDED FOR v4.5.3] Changed version of runtime using misc/changev
[gambit-c.git] / configure
blobde5f926909d2046927ddff680bf341cfb5d1439a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Gambit-C v4.5.3.
5 # Report bugs to <gambit@iro.umontreal.ca>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1994-2009 by Marc Feeley, All Rights Reserved.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: gambit@iro.umontreal.ca about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 exec 7<&0 </dev/null 6>&1
534 # Name of the host.
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 # Initializations.
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
551 # Identity of this package.
552 PACKAGE_NAME='Gambit-C'
553 PACKAGE_TARNAME='gambc-v4_5_3'
554 PACKAGE_VERSION='v4.5.3'
555 PACKAGE_STRING='Gambit-C v4.5.3'
556 PACKAGE_BUGREPORT='gambit@iro.umontreal.ca'
557 PACKAGE_URL=''
559 ac_unique_file="include/gambit.h.in"
560 ac_default_prefix=/usr/local/$PACKAGE_NAME
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 SET_MAKE
600 HELP_BROWSER
601 emacsdir
602 ENABLE_VERSIONNED_LIBS
603 ENABLE_ABSOLUTE_SHARED_LIBS
604 ENABLE_SHARED
605 ENABLE_MULTIPLE_VERSIONS
606 ENABLE_COMPILER_NAME
607 ENABLE_INTERPRETER_NAME
608 ENABLE_SYMLINKS
609 X_FLAGS
610 FIXLIB
614 INSTALL_PROGRAM
615 INSTALL_LIB
616 INSTALL_DATA
617 INSTALL
618 LINK_FOR_INSTALL_GSC_LIBS
619 LINK_FOR_INSTALL_GSI_LIBS
620 LINK_FOR_INSTALL
621 LINK
622 MAKE_LIBRARY_FOR_INSTALL_LIBS
623 MAKE_LIBRARY_FOR_INSTALL
624 MAKE_LIBRARY
625 BUILD_EXE_ECHO_BAT
626 BUILD_LIB_ECHO_BAT
627 BUILD_DYN_ECHO_BAT
628 BUILD_OBJ_ECHO_BAT
629 BUILD_EXE_ECHO
630 BUILD_LIB_ECHO
631 BUILD_DYN_ECHO
632 BUILD_OBJ_ECHO
633 LIB_EXTENSION_BAT
634 LIB_PREFIX_BAT
635 GAMBCGSILIB_BAT
636 GAMBCGSCLIB_BAT
637 GAMBCLIB_BAT
638 GAMBCLIB_DEFS_BAT
639 LIBS_BAT
640 DEFS_BAT
641 DEFS_EXE_BAT
642 DEFS_LIB_BAT
643 DEFS_DYN_BAT
644 DEFS_OBJ_BAT
645 BUILD_EXE_BAT
646 BUILD_LIB_BAT
647 BUILD_DYN_BAT
648 BUILD_OBJ_BAT
649 LIB_EXTENSION_SH
650 LIB_PREFIX_SH
651 GAMBCGSILIB_SH
652 GAMBCGSCLIB_SH
653 GAMBCLIB_SH
654 GAMBCLIB_DEFS_SH
655 LIBS_SH
656 DEFS_SH
657 DEFS_EXE_SH
658 DEFS_LIB_SH
659 DEFS_DYN_SH
660 DEFS_OBJ_SH
661 BUILD_EXE_SH
662 BUILD_LIB_SH
663 BUILD_DYN_SH
664 BUILD_OBJ_SH
665 LIB_EXTENSION_MF
666 LIB_PREFIX_MF
667 GAMBCGSILIB_MF
668 GAMBCGSCLIB_MF
669 GAMBCLIB_MF
670 GAMBCLIB_DEFS_MF
671 LIBS_MF
672 DEFS_MF
673 DEFS_EXE_MF
674 DEFS_LIB_MF
675 DEFS_DYN_MF
676 DEFS_OBJ_MF
677 BUILD_EXE_MF
678 BUILD_LIB_MF
679 BUILD_DYN_MF
680 BUILD_OBJ_MF
681 LIB_EXTENSION
682 LIB_PREFIX
683 GAMBCGSILIB
684 GAMBCGSCLIB
685 GAMBCLIB
686 GAMBCLIB_DEFS
687 DEFS_EXE
688 DEFS_LIB
689 DEFS_DYN
690 DEFS_OBJ
691 BUILD_EXE
692 BUILD_LIB
693 BUILD_DYN
694 BUILD_OBJ
695 SETDLPATH
699 srcdirpfx
700 RANLIB
701 LN_S
702 X_EXTRA_LIBS
703 X_LIBS
704 X_PRE_LIBS
705 X_CFLAGS
706 XMKMF
707 RTLIBSUBSYS
708 FLAGS_EXE_BAT
709 FLAGS_LIB_BAT
710 FLAGS_DYN_BAT
711 FLAGS_OBJ_BAT
712 FLAGS_EXE_SH
713 FLAGS_LIB_SH
714 FLAGS_DYN_SH
715 FLAGS_OBJ_SH
716 FLAGS_EXE_MF
717 FLAGS_LIB_MF
718 FLAGS_DYN_MF
719 FLAGS_OBJ_MF
720 FLAGS_EXE
721 FLAGS_LIB
722 FLAGS_DYN
723 FLAGS_OBJ
724 DASH_b
725 DASH_OPT_IEEE_NaN_inf_ON
726 DASH_OPT_IEEE_comparisons_ON
727 DASH_TENV_large_GOT
728 DASH_OPT_Olimit_0
729 DASH_woff_1110_1174_1209_1552_3201
730 DASH_fullwarn
731 DASH_expect_unresolved
732 DASH_call_shared
733 DASH_ieee
734 DASH_O2
735 DASH_G
736 DASH_KPIC
737 DASH_xO2
738 DASH_rdynamic
739 DASH_flat_namespace_undefined_suppress
740 DASH_bundle
741 DASH_dynamiclib
742 DASH_shared
743 DASH_mieee_fp
744 DASH_mieee_with_inexact
745 DASH_mieee
746 DASH_fno_common
747 DASH_fpic
748 DASH_fPIC
749 DASH_freschedule_modulo_scheduled_loops
750 DASH_fmodulo_sched
751 DASH_fno_move_loop_invariants
752 DASH_fomit_frame_pointer
753 DASH_fwrapv
754 DASH_fno_strict_aliasing
755 DASH_fno_trapping_math
756 DASH_fschedule_insns2
757 DASH_fno_math_errno
758 DASH_O1
759 DASH_fbranch_probabilities
760 DASH_fprofile_arcs
761 DASH_ftest_coverage
762 DASH_pg
763 DASH_p
764 DASH_g
765 DASH_Wno_unused
766 DASH_W
767 DASH_Wall
768 DASH_no_cpp_precomp
769 GCC_42_OR_43
770 C_COMP_VISUALC
771 C_COMP_GNUC
772 CONF_VOIDSTAR_WIDTH
773 EGREP
774 GREP
775 CONF_MAX_CHR
776 ENABLE_GUIDE
777 QTINCPATH
778 C_PREPROC_BAT
779 C_COMPILER_BAT
780 C_PREPROC_SH
781 C_COMPILER_SH
782 C_PREPROC_MF
783 C_COMPILER_MF
784 C_PREPROC
785 C_COMPILER
786 CXXCPP
787 ac_ct_CXX
788 CXXFLAGS
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
798 target_os
799 target_vendor
800 target_cpu
801 target
802 host_os
803 host_vendor
804 host_cpu
805 host
806 build_os
807 build_vendor
808 build_cpu
809 build
810 PACKAGE_SHORTNAME
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_cplusplus
853 enable_guide
854 enable_debug
855 enable_profile
856 enable_coverage
857 enable_feedback1
858 enable_feedback2
859 enable_single_host
860 enable_inline_jumps
861 enable_gcc_opts
862 enable_char_size
863 enable_shared
864 enable_ansi_c
865 enable_symlinks
866 enable_interpreter_name
867 enable_compiler_name
868 enable_multiple_versions
869 enable_absolute_shared_libs
870 enable_help_browser
871 with_x
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
883 CXXFLAGS
885 CXXCPP
886 XMKMF'
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *) ac_optarg=yes ;;
951 esac
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
957 ac_dashdash=yes ;;
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
976 --config-cache | -C)
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1271 -*) as_fn_error "unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information."
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1281 esac
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 esac
1294 done
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error "missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1328 done
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error "pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1380 /^X\(\/\/\)$/{
1381 s//\1/
1384 /^X\(\/\).*/{
1385 s//\1/
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1393 else
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
1428 \`configure' configures Gambit-C v4.5.3 to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1437 Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 [PREFIX]
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/gambc-v4_5_3]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1481 _ACEOF
1483 cat <<\_ACEOF
1485 X features:
1486 --x-includes=DIR X include files are in DIR
1487 --x-libraries=DIR X library files are in DIR
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 --target=TARGET configure for building compilers for TARGET [HOST]
1493 _ACEOF
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of Gambit-C v4.5.3:";;
1499 esac
1500 cat <<\_ACEOF
1502 Optional Features:
1503 --disable-option-checking ignore unrecognized --enable/--with options
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-cplusplus compile using C++ compiler (default is NO)
1507 --enable-guide include the Gambit Universal IDE (default is NO)
1508 --enable-debug build system so that it can be debugged (default is
1510 --enable-profile build system so that it can be profiled (default is
1512 --enable-coverage build system to accumulate coverage statistics
1513 (default is NO)
1514 --enable-feedback1 build system to accumulate trial run data (default
1515 is NO)
1516 --enable-feedback2 build system using trial run feedback (default is
1518 --enable-single-host compile each Scheme module as a single C function
1519 (default is NO)
1520 --enable-inline-jumps generate inline code for jumps (default is NO)
1521 --enable-gcc-opts use expensive GCC optimizations (default is NO)
1522 --enable-char-size=N Scheme character size in bytes (default is 4)
1523 --enable-shared build the Scheme runtime system as a shared library
1524 (default is NO)
1525 --enable-ansi-c link only with ANSI C libraries (default is NO)
1526 --enable-symlinks use symbolic links for installed files not in the
1527 central installation directory (default is YES)
1528 --enable-interpreter-name=INTERP
1529 Name to use for Gambit interpreter (default is gsi)
1530 --enable-compiler-name=COMP
1531 Name to use for Gambit compiler (default is gsc)
1532 --enable-multiple-versions
1533 multiple installed versions are supported (default
1534 is NO)
1535 --enable-absolute-shared-libs
1536 shared libraries should be linked to using an
1537 absolute path (default is YES)
1538 --enable-help-browser=BROWSER
1539 Browser to use for help (default is to search)
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-x use the X Window System
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1554 CPP C preprocessor
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1557 CXXCPP C++ preprocessor
1558 XMKMF Path to xmkmf, Makefile generator for X Window System
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <gambit@iro.umontreal.ca>.
1564 _ACEOF
1565 ac_status=$?
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1592 case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 Gambit-C configure v4.5.3
1627 generated by GNU Autoconf 2.64
1629 Copyright (C) 2009 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1633 Copyright (c) 1994-2009 by Marc Feeley, All Rights Reserved.
1634 _ACEOF
1635 exit
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1678 } # ac_fn_c_try_compile
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } >/dev/null && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 return $ac_retval
1715 } # ac_fn_c_try_cpp
1717 # ac_fn_cxx_try_compile LINENO
1718 # ----------------------------
1719 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_cxx_try_compile ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_cxx_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=1
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 return $ac_retval
1753 } # ac_fn_cxx_try_compile
1755 # ac_fn_cxx_try_cpp LINENO
1756 # ------------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_cxx_try_cpp ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1790 } # ac_fn_cxx_try_cpp
1792 # ac_fn_cxx_try_run LINENO
1793 # ------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1796 ac_fn_cxx_try_run ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1817 ac_status=$?
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_run
1834 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1835 # ----------------------------------------------
1836 # Tries to find the compile-time value of EXPR in a program that includes
1837 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1838 # computed
1839 ac_fn_cxx_compute_int ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if test "$cross_compiling" = yes; then
1843 # Depending upon the size, compute the lo and hi bounds.
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1848 main ()
1850 static int test_array [1 - 2 * !(($2) >= 0)];
1851 test_array [0] = 0
1854 return 0;
1856 _ACEOF
1857 if ac_fn_cxx_try_compile "$LINENO"; then :
1858 ac_lo=0 ac_mid=0
1859 while :; do
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1864 main ()
1866 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1867 test_array [0] = 0
1870 return 0;
1872 _ACEOF
1873 if ac_fn_cxx_try_compile "$LINENO"; then :
1874 ac_hi=$ac_mid; break
1875 else
1876 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1877 if test $ac_lo -le $ac_mid; then
1878 ac_lo= ac_hi=
1879 break
1881 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 done
1885 else
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static int test_array [1 - 2 * !(($2) < 0)];
1893 test_array [0] = 0
1896 return 0;
1898 _ACEOF
1899 if ac_fn_cxx_try_compile "$LINENO"; then :
1900 ac_hi=-1 ac_mid=-1
1901 while :; do
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1906 main ()
1908 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1909 test_array [0] = 0
1912 return 0;
1914 _ACEOF
1915 if ac_fn_cxx_try_compile "$LINENO"; then :
1916 ac_lo=$ac_mid; break
1917 else
1918 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1919 if test $ac_mid -le $ac_hi; then
1920 ac_lo= ac_hi=
1921 break
1923 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 done
1927 else
1928 ac_lo= ac_hi=
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 # Binary search between lo and hi bounds.
1934 while test "x$ac_lo" != "x$ac_hi"; do
1935 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 main ()
1942 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1943 test_array [0] = 0
1946 return 0;
1948 _ACEOF
1949 if ac_fn_cxx_try_compile "$LINENO"; then :
1950 ac_hi=$ac_mid
1951 else
1952 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 done
1956 case $ac_lo in #((
1957 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1958 '') ac_retval=1 ;;
1959 esac
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1964 static long int longval () { return $2; }
1965 static unsigned long int ulongval () { return $2; }
1966 #include <stdio.h>
1967 #include <stdlib.h>
1969 main ()
1972 FILE *f = fopen ("conftest.val", "w");
1973 if (! f)
1974 return 1;
1975 if (($2) < 0)
1977 long int i = longval ();
1978 if (i != ($2))
1979 return 1;
1980 fprintf (f, "%ld", i);
1982 else
1984 unsigned long int i = ulongval ();
1985 if (i != ($2))
1986 return 1;
1987 fprintf (f, "%lu", i);
1989 /* Do not output a trailing newline, as this causes \r\n confusion
1990 on some platforms. */
1991 return ferror (f) || fclose (f) != 0;
1994 return 0;
1996 _ACEOF
1997 if ac_fn_cxx_try_run "$LINENO"; then :
1998 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1999 else
2000 ac_retval=1
2002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2003 conftest.$ac_objext conftest.beam conftest.$ac_ext
2004 rm -f conftest.val
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008 return $ac_retval
2010 } # ac_fn_cxx_compute_int
2012 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2013 # ---------------------------------------------------------
2014 # Tests whether HEADER exists and can be compiled using the include files in
2015 # INCLUDES, setting the cache variable VAR accordingly.
2016 ac_fn_cxx_check_header_compile ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_cxx_try_compile "$LINENO"; then :
2030 eval "$3=yes"
2031 else
2032 eval "$3=no"
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2041 } # ac_fn_cxx_check_header_compile
2043 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2044 # ---------------------------------------------------------
2045 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2046 # the include files in INCLUDES and setting the cache variable VAR
2047 # accordingly.
2048 ac_fn_cxx_check_header_mongrel ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 else
2061 # Is the header compilable?
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2063 $as_echo_n "checking $2 usability... " >&6; }
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2067 #include <$2>
2068 _ACEOF
2069 if ac_fn_cxx_try_compile "$LINENO"; then :
2070 ac_header_compiler=yes
2071 else
2072 ac_header_compiler=no
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2076 $as_echo "$ac_header_compiler" >&6; }
2078 # Is the header present?
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2080 $as_echo_n "checking $2 presence... " >&6; }
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_cxx_try_cpp "$LINENO"; then :
2086 ac_header_preproc=yes
2087 else
2088 ac_header_preproc=no
2090 rm -f conftest.err conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2092 $as_echo "$ac_header_preproc" >&6; }
2094 # So? What about this header?
2095 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2096 yes:no: )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2098 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2102 no:yes:* )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2104 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2106 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2108 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2110 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2113 ( cat <<\_ASBOX
2114 ## -------------------------------------- ##
2115 ## Report this to gambit@iro.umontreal.ca ##
2116 ## -------------------------------------- ##
2117 _ASBOX
2118 ) | sed "s/^/$as_me: WARNING: /" >&2
2120 esac
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=\$ac_header_compiler"
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 } # ac_fn_cxx_check_header_mongrel
2136 # ac_fn_cxx_try_link LINENO
2137 # -------------------------
2138 # Try to link conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_cxx_try_link ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 rm -f conftest.$ac_objext conftest$ac_exeext
2143 if { { ac_try="$ac_link"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 $as_echo "$ac_try_echo"; } >&5
2150 (eval "$ac_link") 2>conftest.err
2151 ac_status=$?
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } && {
2159 test -z "$ac_cxx_werror_flag" ||
2160 test ! -s conftest.err
2161 } && test -s conftest$ac_exeext && {
2162 test "$cross_compiling" = yes ||
2163 $as_test_x conftest$ac_exeext
2164 }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2170 ac_retval=1
2172 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2173 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2174 # interfere with the next link command; also delete a directory that is
2175 # left behind by Apple's compiler. We do this before executing the actions.
2176 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178 return $ac_retval
2180 } # ac_fn_cxx_try_link
2182 # ac_fn_cxx_check_func LINENO FUNC VAR
2183 # ------------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_cxx_check_func ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2204 #ifdef __STDC__
2205 # include <limits.h>
2206 #else
2207 # include <assert.h>
2208 #endif
2210 #undef $2
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2215 #ifdef __cplusplus
2216 extern "C"
2217 #endif
2218 char $2 ();
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2223 choke me
2224 #endif
2227 main ()
2229 return $2 ();
2231 return 0;
2233 _ACEOF
2234 if ac_fn_cxx_try_link "$LINENO"; then :
2235 eval "$3=yes"
2236 else
2237 eval "$3=no"
2239 rm -f core conftest.err conftest.$ac_objext \
2240 conftest$ac_exeext conftest.$ac_ext
2242 eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_cxx_check_func
2248 cat >config.log <<_ACEOF
2249 This file contains any messages produced by compilers while
2250 running configure, to aid debugging if configure makes a mistake.
2252 It was created by Gambit-C $as_me v4.5.3, which was
2253 generated by GNU Autoconf 2.64. Invocation command line was
2255 $ $0 $@
2257 _ACEOF
2258 exec 5>>config.log
2260 cat <<_ASUNAME
2261 ## --------- ##
2262 ## Platform. ##
2263 ## --------- ##
2265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282 _ASUNAME
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 $as_echo "PATH: $as_dir"
2290 done
2291 IFS=$as_save_IFS
2293 } >&5
2295 cat >&5 <<_ACEOF
2298 ## ----------- ##
2299 ## Core tests. ##
2300 ## ----------- ##
2302 _ACEOF
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_configure_args=
2311 ac_configure_args0=
2312 ac_configure_args1=
2313 ac_must_keep_next=false
2314 for ac_pass in 1 2
2316 for ac_arg
2318 case $ac_arg in
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2322 continue ;;
2323 *\'*)
2324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 esac
2326 case $ac_pass in
2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329 as_fn_append ac_configure_args1 " '$ac_arg'"
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2332 else
2333 case $ac_arg in
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 esac
2342 -* ) ac_must_keep_next=true ;;
2343 esac
2345 as_fn_append ac_configure_args " '$ac_arg'"
2347 esac
2348 done
2349 done
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2361 echo
2363 cat <<\_ASBOX
2364 ## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##
2367 _ASBOX
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
2376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac ;;
2384 esac
2385 done
2386 (set) 2>&1 |
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2389 sed -n \
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2396 esac |
2397 sort
2399 echo
2401 cat <<\_ASBOX
2402 ## ----------------- ##
2403 ## Output variables. ##
2404 ## ----------------- ##
2405 _ASBOX
2406 echo
2407 for ac_var in $ac_subst_vars
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2417 if test -n "$ac_subst_files"; then
2418 cat <<\_ASBOX
2419 ## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##
2422 _ASBOX
2423 echo
2424 for ac_var in $ac_subst_files
2426 eval ac_val=\$$ac_var
2427 case $ac_val in
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 esac
2430 $as_echo "$ac_var='\''$ac_val'\''"
2431 done | sort
2432 echo
2435 if test -s confdefs.h; then
2436 cat <<\_ASBOX
2437 ## ----------- ##
2438 ## confdefs.h. ##
2439 ## ----------- ##
2440 _ASBOX
2441 echo
2442 cat confdefs.h
2443 echo
2445 test "$ac_signal" != 0 &&
2446 $as_echo "$as_me: caught signal $ac_signal"
2447 $as_echo "$as_me: exit $exit_status"
2448 } >&5
2449 rm -f core *.core core.conftest.* &&
2450 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2451 exit $exit_status
2453 for ac_signal in 1 2 13 15; do
2454 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 done
2456 ac_signal=0
2458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2459 rm -f -r conftest* confdefs.h
2461 $as_echo "/* confdefs.h */" > confdefs.h
2463 # Predefined preprocessor variables.
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_NAME "$PACKAGE_NAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_STRING "$PACKAGE_STRING"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_URL "$PACKAGE_URL"
2487 _ACEOF
2490 # Let the site file select an alternate cache file if it wants to.
2491 # Prefer an explicitly selected file to automatically selected ones.
2492 ac_site_file1=NONE
2493 ac_site_file2=NONE
2494 if test -n "$CONFIG_SITE"; then
2495 ac_site_file1=$CONFIG_SITE
2496 elif test "x$prefix" != xNONE; then
2497 ac_site_file1=$prefix/share/config.site
2498 ac_site_file2=$prefix/etc/config.site
2499 else
2500 ac_site_file1=$ac_default_prefix/share/config.site
2501 ac_site_file2=$ac_default_prefix/etc/config.site
2503 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 test "x$ac_site_file" = xNONE && continue
2506 if test -r "$ac_site_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2509 sed 's/^/| /' "$ac_site_file" >&5
2510 . "$ac_site_file"
2512 done
2514 if test -r "$cache_file"; then
2515 # Some versions of bash will fail to source /dev/null (special
2516 # files actually), so we avoid doing that.
2517 if test -f "$cache_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519 $as_echo "$as_me: loading cache $cache_file" >&6;}
2520 case $cache_file in
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
2523 esac
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528 >$cache_file
2531 # Check that the precious variables saved in the cache have kept the same
2532 # value.
2533 ac_cache_corrupted=false
2534 for ac_var in $ac_precious_vars; do
2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
2539 case $ac_old_set,$ac_new_set in
2540 set,)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,set)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,);;
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578 esac
2580 done
2581 if $ac_cache_corrupted; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588 ## -------------------- ##
2589 ## Main body of script. ##
2590 ## -------------------- ##
2592 ac_ext=c
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 ac_config_headers="$ac_config_headers include/config.h"
2603 CONFIGURE_COMMAND="$0 $@"
2604 PACKAGE_SHORTNAME="gambc"
2619 ac_aux_dir=
2620 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 for ac_t in install-sh install.sh shtool; do
2622 if test -f "$ac_dir/$ac_t"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/$ac_t -c"
2625 break 2
2627 done
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642 # Make sure we can run config.sub.
2643 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2644 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2647 $as_echo_n "checking build system type... " >&6; }
2648 if test "${ac_cv_build+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 ac_build_alias=$build_alias
2652 test "x$ac_build_alias" = x &&
2653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2654 test "x$ac_build_alias" = x &&
2655 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2656 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2657 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2663 *-*-*) ;;
2664 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2665 esac
2666 build=$ac_cv_build
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_build
2669 shift
2670 build_cpu=$1
2671 build_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 build_os=$*
2676 IFS=$ac_save_IFS
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$host_alias" = x; then
2686 ac_cv_host=$ac_cv_build
2687 else
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2694 $as_echo "$ac_cv_host" >&6; }
2695 case $ac_cv_host in
2696 *-*-*) ;;
2697 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2698 esac
2699 host=$ac_cv_host
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_host
2702 shift
2703 host_cpu=$1
2704 host_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 host_os=$*
2709 IFS=$ac_save_IFS
2710 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2714 $as_echo_n "checking target system type... " >&6; }
2715 if test "${ac_cv_target+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test "x$target_alias" = x; then
2719 ac_cv_target=$ac_cv_host
2720 else
2721 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2722 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2727 $as_echo "$ac_cv_target" >&6; }
2728 case $ac_cv_target in
2729 *-*-*) ;;
2730 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2731 esac
2732 target=$ac_cv_target
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_target
2735 shift
2736 target_cpu=$1
2737 target_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 target_os=$*
2742 IFS=$ac_save_IFS
2743 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2746 # The aliases save the names the user supplied, while $host etc.
2747 # will get canonicalized.
2748 test -n "$target_alias" &&
2749 test "$program_prefix$program_suffix$program_transform_name" = \
2750 NONENONEs,x,x, &&
2751 program_prefix=${target_alias}-
2754 ###############################################################################
2756 # Accumulate subsystems to include in runtime library.
2758 RTLIBSUBSYS=""
2760 ###############################################################################
2762 # To accumulate flags and definitions for C compilation.
2764 GAMBCLIB_DEFS=""
2766 FLAGS_OBJ=""
2767 FLAGS_DYN=""
2768 FLAGS_LIB=""
2769 FLAGS_EXE=""
2771 DEFS_OBJ=""
2772 DEFS_DYN="-D___DYNAMIC"
2773 DEFS_LIB=""
2774 DEFS_EXE=""
2776 FLAGS_OBJ_DYN=""
2777 FLAGS_OBJ_DYN_LIB_EXE=""
2778 FLAGS_DYN_LIB=""
2780 ###############################################################################
2782 # Check if the system must be compiled using the C compiler or C++ compiler.
2784 # Check whether --enable-cplusplus was given.
2785 if test "${enable_cplusplus+set}" = set; then :
2786 enableval=$enable_cplusplus; ENABLE_CPLUSPLUS=$enableval
2787 else
2788 ENABLE_CPLUSPLUS=no
2792 if test "${CFLAGS+set}" != set; then
2793 CFLAGS=""
2796 if test "${CXXFLAGS+set}" != set; then
2797 CXXFLAGS=""
2800 if test "${LDFLAGS+set}" != set; then
2801 LDFLAGS=""
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 ac_ext=c
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 if test -n "$ac_tool_prefix"; then
2816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2839 IFS=$as_save_IFS
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846 $as_echo "$CC" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2854 if test -z "$ac_cv_prog_CC"; then
2855 ac_ct_CC=$CC
2856 # Extract the first word of "gcc", so it can be a program name with args.
2857 set dummy gcc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$ac_ct_CC"; then
2864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_ac_ct_CC="gcc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2884 if test -n "$ac_ct_CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2886 $as_echo "$ac_ct_CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2892 if test "x$ac_ct_CC" = x; then
2893 CC=""
2894 else
2895 case $cross_compiling:$ac_tool_warned in
2896 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901 CC=$ac_ct_CC
2903 else
2904 CC="$ac_cv_prog_CC"
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}cc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="${ac_tool_prefix}cc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2948 if test -z "$CC"; then
2949 # Extract the first word of "cc", so it can be a program name with args.
2950 set dummy cc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 ac_prog_rejected=no
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2968 ac_prog_rejected=yes
2969 continue
2971 ac_cv_prog_CC="cc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2975 done
2976 done
2977 IFS=$as_save_IFS
2979 if test $ac_prog_rejected = yes; then
2980 # We found a bogon in the path, so make sure we never use it.
2981 set dummy $ac_cv_prog_CC
2982 shift
2983 if test $# != 0; then
2984 # We chose a different compiler from the bogus one.
2985 # However, it has the same basename, so the bogon will be chosen
2986 # first if we set CC to just the basename; use the full file name.
2987 shift
2988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 for ac_prog in cl.exe
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3031 IFS=$as_save_IFS
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3045 test -n "$CC" && break
3046 done
3048 if test -z "$CC"; then
3049 ac_ct_CC=$CC
3050 for ac_prog in cl.exe
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_ac_ct_CC="$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3080 if test -n "$ac_ct_CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3082 $as_echo "$ac_ct_CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3089 test -n "$ac_ct_CC" && break
3090 done
3092 if test "x$ac_ct_CC" = x; then
3093 CC=""
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 CC=$ac_ct_CC
3108 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error "no acceptable C compiler found in \$PATH
3111 See \`config.log' for more details." "$LINENO" 5; }
3113 # Provide some information about the compiler.
3114 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3115 set X $ac_compile
3116 ac_compiler=$2
3117 for ac_option in --version -v -V -qversion; do
3118 { { ac_try="$ac_compiler $ac_option >&5"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3126 ac_status=$?
3127 if test -s conftest.err; then
3128 sed '10a\
3129 ... rest of stderr output deleted ...
3130 10q' conftest.err >conftest.er1
3131 cat conftest.er1 >&5
3132 rm -f conftest.er1 conftest.err
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }
3136 done
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3140 #include <stdio.h>
3142 main ()
3144 FILE *f = fopen ("conftest.out", "w");
3145 return ferror (f) || fclose (f) != 0;
3148 return 0;
3150 _ACEOF
3151 ac_clean_files_save=$ac_clean_files
3152 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3153 # Try to create an executable without -o first, disregard a.out.
3154 # It will help us diagnose broken compilers, and finding out an intuition
3155 # of exeext.
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3157 $as_echo_n "checking for C compiler default output file name... " >&6; }
3158 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3160 # The possible output files:
3161 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3163 ac_rmfiles=
3164 for ac_file in $ac_files
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3169 esac
3170 done
3171 rm -f $ac_rmfiles
3173 if { { ac_try="$ac_link_default"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link_default") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3185 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3186 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3187 # so that the user can short-circuit this test for compilers unknown to
3188 # Autoconf.
3189 for ac_file in $ac_files ''
3191 test -f "$ac_file" || continue
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3195 [ab].out )
3196 # We found the default executable, but exeext='' is most
3197 # certainly right.
3198 break;;
3199 *.* )
3200 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3201 then :; else
3202 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3204 # We set ac_cv_exeext here because the later test for it is not
3205 # safe: cross compilers may not add the suffix if given an `-o'
3206 # argument, so we may need to know it at that point already.
3207 # Even if this section looks crufty: it has the advantage of
3208 # actually working.
3209 break;;
3211 break;;
3212 esac
3213 done
3214 test "$ac_cv_exeext" = no && ac_cv_exeext=
3216 else
3217 ac_file=''
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3220 $as_echo "$ac_file" >&6; }
3221 if test -z "$ac_file"; then :
3222 $as_echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 { as_fn_set_status 77
3228 as_fn_error "C compiler cannot create executables
3229 See \`config.log' for more details." "$LINENO" 5; }; }
3231 ac_exeext=$ac_cv_exeext
3233 # Check that the compiler produces executables we can run. If not, either
3234 # the compiler is broken, or we cross compile.
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236 $as_echo_n "checking whether the C compiler works... " >&6; }
3237 # If not cross compiling, check that we can run a simple program.
3238 if test "$cross_compiling" != yes; then
3239 if { ac_try='./$ac_file'
3240 { { case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; }; then
3250 cross_compiling=no
3251 else
3252 if test "$cross_compiling" = maybe; then
3253 cross_compiling=yes
3254 else
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error "cannot run C compiled programs.
3258 If you meant to cross compile, use \`--host'.
3259 See \`config.log' for more details." "$LINENO" 5; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3266 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3267 ac_clean_files=$ac_clean_files_save
3268 # Check that the compiler produces executables we can run. If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3271 $as_echo_n "checking whether we are cross compiling... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3273 $as_echo "$cross_compiling" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3276 $as_echo_n "checking for suffix of executables... " >&6; }
3277 if { { ac_try="$ac_link"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3290 # work properly (i.e., refer to `conftest.exe'), while it won't with
3291 # `rm'.
3292 for ac_file in conftest.exe conftest conftest.*; do
3293 test -f "$ac_file" || continue
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 break;;
3298 * ) break;;
3299 esac
3300 done
3301 else
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error "cannot compute suffix of executables: cannot compile and link
3305 See \`config.log' for more details." "$LINENO" 5; }
3307 rm -f conftest$ac_cv_exeext
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3309 $as_echo "$ac_cv_exeext" >&6; }
3311 rm -f conftest.$ac_ext
3312 EXEEXT=$ac_cv_exeext
3313 ac_exeext=$EXEEXT
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3315 $as_echo_n "checking for suffix of object files... " >&6; }
3316 if test "${ac_cv_objext+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.o conftest.obj
3331 if { { ac_try="$ac_compile"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_compile") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 for ac_file in conftest.o conftest.obj conftest.*; do
3343 test -f "$ac_file" || continue;
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3347 break;;
3348 esac
3349 done
3350 else
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error "cannot compute suffix of object files: cannot compile
3357 See \`config.log' for more details." "$LINENO" 5; }
3359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3362 $as_echo "$ac_cv_objext" >&6; }
3363 OBJEXT=$ac_cv_objext
3364 ac_objext=$OBJEXT
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3367 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3374 main ()
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3381 return 0;
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_compiler_gnu=yes
3386 else
3387 ac_compiler_gnu=no
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3395 if test $ac_compiler_gnu = yes; then
3396 GCC=yes
3397 else
3398 GCC=
3400 ac_test_CFLAGS=${CFLAGS+set}
3401 ac_save_CFLAGS=$CFLAGS
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3404 if test "${ac_cv_prog_cc_g+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 ac_save_c_werror_flag=$ac_c_werror_flag
3408 ac_c_werror_flag=yes
3409 ac_cv_prog_cc_g=no
3410 CFLAGS="-g"
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3415 main ()
3419 return 0;
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_prog_cc_g=yes
3424 else
3425 CFLAGS=""
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3430 main ()
3434 return 0;
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"; then :
3439 else
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3441 CFLAGS="-g"
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3446 main ()
3450 return 0;
3452 _ACEOF
3453 if ac_fn_c_try_compile "$LINENO"; then :
3454 ac_cv_prog_cc_g=yes
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464 $as_echo "$ac_cv_prog_cc_g" >&6; }
3465 if test "$ac_test_CFLAGS" = set; then
3466 CFLAGS=$ac_save_CFLAGS
3467 elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3473 else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3482 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 ac_cv_prog_cc_c89=no
3486 ac_save_CC=$CC
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489 #include <stdarg.h>
3490 #include <stdio.h>
3491 #include <sys/types.h>
3492 #include <sys/stat.h>
3493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3494 struct buf { int x; };
3495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3496 static char *e (p, i)
3497 char **p;
3498 int i;
3500 return p[i];
3502 static char *f (char * (*g) (char **, int), char **p, ...)
3504 char *s;
3505 va_list v;
3506 va_start (v,p);
3507 s = g (p, va_arg (v,int));
3508 va_end (v);
3509 return s;
3512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3513 function prototypes and stuff, but not '\xHH' hex character constants.
3514 These don't provoke an error unfortunately, instead are silently treated
3515 as 'x'. The following induces an error, until -std is added to get
3516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3517 array size at least. It's necessary to write '\x00'==0 to get something
3518 that's true only with -std. */
3519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3522 inside strings and character constants. */
3523 #define FOO(x) 'x'
3524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3526 int test (int i, double x);
3527 struct s1 {int (*f) (int a);};
3528 struct s2 {int (*f) (double a);};
3529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3530 int argc;
3531 char **argv;
3533 main ()
3535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3537 return 0;
3539 _ACEOF
3540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3543 CC="$ac_save_CC $ac_arg"
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_c89=$ac_arg
3547 rm -f core conftest.err conftest.$ac_objext
3548 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 done
3550 rm -f conftest.$ac_ext
3551 CC=$ac_save_CC
3554 # AC_CACHE_VAL
3555 case "x$ac_cv_prog_cc_c89" in
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3558 $as_echo "none needed" >&6; } ;;
3559 xno)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3561 $as_echo "unsupported" >&6; } ;;
3563 CC="$CC $ac_cv_prog_cc_c89"
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 esac
3567 if test "x$ac_cv_prog_cc_c89" != xno; then :
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3584 # On Suns, sometimes $CPP names a directory.
3585 if test -n "$CPP" && test -d "$CPP"; then
3586 CPP=
3588 if test -z "$CPP"; then
3589 if test "${ac_cv_prog_CPP+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 # Double quotes because CPP needs to be expanded
3593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3595 ac_preproc_ok=false
3596 for ac_c_preproc_warn_flag in '' yes
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error" is here to catch this case.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #ifdef __STDC__
3607 # include <limits.h>
3608 #else
3609 # include <assert.h>
3610 #endif
3611 Syntax error
3612 _ACEOF
3613 if ac_fn_c_try_cpp "$LINENO"; then :
3615 else
3616 # Broken: fails on valid input.
3617 continue
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3626 _ACEOF
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3628 # Broken: success on invalid input.
3629 continue
3630 else
3631 # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3635 rm -f conftest.err conftest.$ac_ext
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then :
3641 break
3644 done
3645 ac_cv_prog_CPP=$CPP
3648 CPP=$ac_cv_prog_CPP
3649 else
3650 ac_cv_prog_CPP=$CPP
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3653 $as_echo "$CPP" >&6; }
3654 ac_preproc_ok=false
3655 for ac_c_preproc_warn_flag in '' yes
3657 # Use a header file that comes with gcc, so configuring glibc
3658 # with a fresh cross-compiler works.
3659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660 # <limits.h> exists even on freestanding compilers.
3661 # On the NeXT, cc -E runs the code through the compiler's parser,
3662 # not just through cpp. "Syntax error" is here to catch this case.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #ifdef __STDC__
3666 # include <limits.h>
3667 #else
3668 # include <assert.h>
3669 #endif
3670 Syntax error
3671 _ACEOF
3672 if ac_fn_c_try_cpp "$LINENO"; then :
3674 else
3675 # Broken: fails on valid input.
3676 continue
3678 rm -f conftest.err conftest.$ac_ext
3680 # OK, works on sane cases. Now check whether nonexistent headers
3681 # can be detected and how.
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <ac_nonexistent.h>
3685 _ACEOF
3686 if ac_fn_c_try_cpp "$LINENO"; then :
3687 # Broken: success on invalid input.
3688 continue
3689 else
3690 # Passes both tests.
3691 ac_preproc_ok=:
3692 break
3694 rm -f conftest.err conftest.$ac_ext
3696 done
3697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3698 rm -f conftest.err conftest.$ac_ext
3699 if $ac_preproc_ok; then :
3701 else
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3705 See \`config.log' for more details." "$LINENO" 5; }
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 C_COMPILER=$CC
3715 C_PREPROC=$CPP
3717 if test "$ENABLE_CPLUSPLUS" = yes; then
3718 ac_ext=cpp
3719 ac_cpp='$CXXCPP $CPPFLAGS'
3720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3724 ac_ext=cpp
3725 ac_cpp='$CXXCPP $CPPFLAGS'
3726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3729 if test -z "$CXX"; then
3730 if test -n "$CCC"; then
3731 CXX=$CCC
3732 else
3733 if test -n "$ac_tool_prefix"; then
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_CXX+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CXX"; then
3744 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3757 done
3758 done
3759 IFS=$as_save_IFS
3763 CXX=$ac_cv_prog_CXX
3764 if test -n "$CXX"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3766 $as_echo "$CXX" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3773 test -n "$CXX" && break
3774 done
3776 if test -z "$CXX"; then
3777 ac_ct_CXX=$CXX
3778 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CXX"; then
3788 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CXX="$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3803 IFS=$as_save_IFS
3807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3808 if test -n "$ac_ct_CXX"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3810 $as_echo "$ac_ct_CXX" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3817 test -n "$ac_ct_CXX" && break
3818 done
3820 if test "x$ac_ct_CXX" = x; then
3821 CXX="g++"
3822 else
3823 case $cross_compiling:$ac_tool_warned in
3824 yes:)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3827 ac_tool_warned=yes ;;
3828 esac
3829 CXX=$ac_ct_CXX
3835 # Provide some information about the compiler.
3836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3837 set X $ac_compile
3838 ac_compiler=$2
3839 for ac_option in --version -v -V -qversion; do
3840 { { ac_try="$ac_compiler $ac_option >&5"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 ac_status=$?
3849 if test -s conftest.err; then
3850 sed '10a\
3851 ... rest of stderr output deleted ...
3852 10q' conftest.err >conftest.er1
3853 cat conftest.er1 >&5
3854 rm -f conftest.er1 conftest.err
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 done
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3861 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3862 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3869 main ()
3871 #ifndef __GNUC__
3872 choke me
3873 #endif
3876 return 0;
3878 _ACEOF
3879 if ac_fn_cxx_try_compile "$LINENO"; then :
3880 ac_compiler_gnu=yes
3881 else
3882 ac_compiler_gnu=no
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3889 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3890 if test $ac_compiler_gnu = yes; then
3891 GXX=yes
3892 else
3893 GXX=
3895 ac_test_CXXFLAGS=${CXXFLAGS+set}
3896 ac_save_CXXFLAGS=$CXXFLAGS
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3898 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3899 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3903 ac_cxx_werror_flag=yes
3904 ac_cv_prog_cxx_g=no
3905 CXXFLAGS="-g"
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3910 main ()
3914 return 0;
3916 _ACEOF
3917 if ac_fn_cxx_try_compile "$LINENO"; then :
3918 ac_cv_prog_cxx_g=yes
3919 else
3920 CXXFLAGS=""
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3925 main ()
3929 return 0;
3931 _ACEOF
3932 if ac_fn_cxx_try_compile "$LINENO"; then :
3934 else
3935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3936 CXXFLAGS="-g"
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3941 main ()
3945 return 0;
3947 _ACEOF
3948 if ac_fn_cxx_try_compile "$LINENO"; then :
3949 ac_cv_prog_cxx_g=yes
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3959 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3960 if test "$ac_test_CXXFLAGS" = set; then
3961 CXXFLAGS=$ac_save_CXXFLAGS
3962 elif test $ac_cv_prog_cxx_g = yes; then
3963 if test "$GXX" = yes; then
3964 CXXFLAGS="-g -O2"
3965 else
3966 CXXFLAGS="-g"
3968 else
3969 if test "$GXX" = yes; then
3970 CXXFLAGS="-O2"
3971 else
3972 CXXFLAGS=
3975 ac_ext=cpp
3976 ac_cpp='$CXXCPP $CPPFLAGS'
3977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3981 ac_ext=cpp
3982 ac_cpp='$CXXCPP $CPPFLAGS'
3983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3987 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3988 if test -z "$CXXCPP"; then
3989 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 # Double quotes because CXXCPP needs to be expanded
3993 for CXXCPP in "$CXX -E" "/lib/cpp"
3995 ac_preproc_ok=false
3996 for ac_cxx_preproc_warn_flag in '' yes
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error" is here to catch this case.
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #ifdef __STDC__
4007 # include <limits.h>
4008 #else
4009 # include <assert.h>
4010 #endif
4011 Syntax error
4012 _ACEOF
4013 if ac_fn_cxx_try_cpp "$LINENO"; then :
4015 else
4016 # Broken: fails on valid input.
4017 continue
4019 rm -f conftest.err conftest.$ac_ext
4021 # OK, works on sane cases. Now check whether nonexistent headers
4022 # can be detected and how.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <ac_nonexistent.h>
4026 _ACEOF
4027 if ac_fn_cxx_try_cpp "$LINENO"; then :
4028 # Broken: success on invalid input.
4029 continue
4030 else
4031 # Passes both tests.
4032 ac_preproc_ok=:
4033 break
4035 rm -f conftest.err conftest.$ac_ext
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then :
4041 break
4044 done
4045 ac_cv_prog_CXXCPP=$CXXCPP
4048 CXXCPP=$ac_cv_prog_CXXCPP
4049 else
4050 ac_cv_prog_CXXCPP=$CXXCPP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4053 $as_echo "$CXXCPP" >&6; }
4054 ac_preproc_ok=false
4055 for ac_cxx_preproc_warn_flag in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #ifdef __STDC__
4066 # include <limits.h>
4067 #else
4068 # include <assert.h>
4069 #endif
4070 Syntax error
4071 _ACEOF
4072 if ac_fn_cxx_try_cpp "$LINENO"; then :
4074 else
4075 # Broken: fails on valid input.
4076 continue
4078 rm -f conftest.err conftest.$ac_ext
4080 # OK, works on sane cases. Now check whether nonexistent headers
4081 # can be detected and how.
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <ac_nonexistent.h>
4085 _ACEOF
4086 if ac_fn_cxx_try_cpp "$LINENO"; then :
4087 # Broken: success on invalid input.
4088 continue
4089 else
4090 # Passes both tests.
4091 ac_preproc_ok=:
4092 break
4094 rm -f conftest.err conftest.$ac_ext
4096 done
4097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098 rm -f conftest.err conftest.$ac_ext
4099 if $ac_preproc_ok; then :
4101 else
4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4105 See \`config.log' for more details." "$LINENO" 5; }
4108 ac_ext=cpp
4109 ac_cpp='$CXXCPP $CPPFLAGS'
4110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4114 C_COMPILER=$CXX
4115 C_PREPROC=$CXXCPP
4130 ###############################################################################
4132 # Check if the system must include GUIDE (Gambit Universal IDE).
4134 # Check whether --enable-guide was given.
4135 if test "${enable_guide+set}" = set; then :
4136 enableval=$enable_guide; ENABLE_GUIDE=$enableval
4137 else
4138 ENABLE_GUIDE=no
4142 if test "$ENABLE_GUIDE" = yes; then
4143 if test "$ENABLE_CPLUSPLUS" = yes; then
4145 # Determine if Qt is available, if the version is good, etc
4147 ac_qmake='qmake -o conftest.qt /dev/null >&5'
4149 rm -f conftest.qt
4151 if { (eval echo "$as_me:$LINENO: \"$ac_qmake\"") >&5
4152 (eval $ac_qmake) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; then
4157 ac_qt_version_check="grep -q '^# Generated by qmake ([^)]*) (Qt 3\\.3\\..*' conftest.qt"
4159 if { (eval echo "$as_me:$LINENO: \"$ac_qt_version_check\"") >&5
4160 (eval $ac_qt_version_check) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; then
4165 QTINCPATH=`sed -n -e '/^INCPATH[ ]*=[ ]*\(.*\)/s//\1/p' conftest.qt`
4166 QTLIBS=`sed -n -e '/^LIBS[ ]*=[ ]*\\\$(SUBLIBS)[ ]*\(.*\)/s//\1/p' conftest.qt`
4168 else
4170 qt_version=`sed -n -e '/^# Generated by qmake (\([^)]*\)) (Qt \([0-9]*\.[0-9]*\).*/s//\2/p' conftest.qt`
4172 ENABLE_GUIDE=no
4173 { $as_echo "$as_me:${as_lineno-$LINENO}:
4174 ************************************************************************
4175 *** The Gambit Universal IDE requires that the system be built using ***
4176 *** the Qt GUI library version 3.3. Version $qt_version of Qt is currently ***
4177 *** installed. ***
4178 ************************************************************************
4179 " >&5
4180 $as_echo "$as_me:
4181 ************************************************************************
4182 *** The Gambit Universal IDE requires that the system be built using ***
4183 *** the Qt GUI library version 3.3. Version $qt_version of Qt is currently ***
4184 *** installed. ***
4185 ************************************************************************
4186 " >&6;}
4190 else
4192 ENABLE_GUIDE=no
4193 { $as_echo "$as_me:${as_lineno-$LINENO}:
4194 ************************************************************************
4195 *** The Gambit Universal IDE requires that the system be built using ***
4196 *** the Qt GUI library. This library could not be located. Make ***
4197 *** sure that the program qmake is in your PATH. ***
4198 ************************************************************************
4199 " >&5
4200 $as_echo "$as_me:
4201 ************************************************************************
4202 *** The Gambit Universal IDE requires that the system be built using ***
4203 *** the Qt GUI library. This library could not be located. Make ***
4204 *** sure that the program qmake is in your PATH. ***
4205 ************************************************************************
4206 " >&6;}
4210 else
4212 ENABLE_GUIDE=no
4213 { $as_echo "$as_me:${as_lineno-$LINENO}:
4214 ************************************************************************
4215 *** The Gambit Universal IDE requires that the system be built using ***
4216 *** a C++ compiler. You must specify both \"--enable-cplusplus\" and ***
4217 *** \"--enable-guide\" to include the Gambit Universal IDE. ***
4218 ************************************************************************
4219 " >&5
4220 $as_echo "$as_me:
4221 ************************************************************************
4222 *** The Gambit Universal IDE requires that the system be built using ***
4223 *** a C++ compiler. You must specify both \"--enable-cplusplus\" and ***
4224 *** \"--enable-guide\" to include the Gambit Universal IDE. ***
4225 ************************************************************************
4226 " >&6;}
4231 if test "$ENABLE_GUIDE" = yes; then
4232 $as_echo "#define ___GUIDE 1" >>confdefs.h
4235 RTLIBSUBSYS="$RTLIBSUBSYS guide"
4236 LIBS="$LIBS $QTLIBS"
4241 ###############################################################################
4243 # Check if the system is to be debugged.
4245 # Check whether --enable-debug was given.
4246 if test "${enable_debug+set}" = set; then :
4247 enableval=$enable_debug; ENABLE_DEBUG=$enableval
4248 else
4249 ENABLE_DEBUG=no
4253 if test "$ENABLE_DEBUG" = yes; then
4254 $as_echo "#define ___DEBUG 1" >>confdefs.h
4256 DEFS_DYN="$DEFS_DYN -D___DEBUG"
4259 ###############################################################################
4261 # Check if the system is to be profiled.
4263 # Check whether --enable-profile was given.
4264 if test "${enable_profile+set}" = set; then :
4265 enableval=$enable_profile; ENABLE_PROFILE=$enableval
4266 else
4267 ENABLE_PROFILE=no
4271 if test "$ENABLE_PROFILE" = yes; then
4272 $as_echo "#define ___PROFILE 1" >>confdefs.h
4274 DEFS_DYN="$DEFS_DYN -D___PROFILE"
4277 ###############################################################################
4279 # Check if the system is to be compiled to accumulate coverage statistics.
4281 # Check whether --enable-coverage was given.
4282 if test "${enable_coverage+set}" = set; then :
4283 enableval=$enable_coverage; ENABLE_COVERAGE=$enableval
4284 else
4285 ENABLE_COVERAGE=no
4289 ###############################################################################
4291 # Check if the system is to be compiled with trial run feedback.
4293 # Check whether --enable-feedback1 was given.
4294 if test "${enable_feedback1+set}" = set; then :
4295 enableval=$enable_feedback1; ENABLE_FEEDBACK1=$enableval
4296 else
4297 ENABLE_FEEDBACK1=no
4301 # Check whether --enable-feedback2 was given.
4302 if test "${enable_feedback2+set}" = set; then :
4303 enableval=$enable_feedback2; ENABLE_FEEDBACK2=$enableval
4304 else
4305 ENABLE_FEEDBACK2=no
4309 ###############################################################################
4311 # Check if a single C function should be generated for all the Scheme
4312 # functions in a file. This makes the executable much faster but the
4313 # compilation will be much longer and take much more memory.
4315 # Check whether --enable-single-host was given.
4316 if test "${enable_single_host+set}" = set; then :
4317 enableval=$enable_single_host; ENABLE_SINGLE_HOST=$enableval
4318 else
4319 ENABLE_SINGLE_HOST=no
4323 if test "$ENABLE_SINGLE_HOST" = yes; then
4324 $as_echo "#define ___SINGLE_HOST 1" >>confdefs.h
4326 DEFS_DYN="$DEFS_DYN -D___SINGLE_HOST"
4329 ###############################################################################
4331 # Check if inline code should be generated for jumps. It is possible
4332 # that on some platforms this will result in a faster but larger
4333 # executable program.
4335 # Check whether --enable-inline-jumps was given.
4336 if test "${enable_inline_jumps+set}" = set; then :
4337 enableval=$enable_inline_jumps; ENABLE_INLINE_JUMPS=$enableval
4338 else
4339 ENABLE_INLINE_JUMPS=no
4343 if test "$ENABLE_INLINE_JUMPS" = yes; then
4344 $as_echo "#define ___INLINE_JUMPS 1" >>confdefs.h
4346 DEFS_DYN="$DEFS_DYN -D___INLINE_JUMPS"
4349 ###############################################################################
4351 # Check if expensive GCC optimizations should be used. This makes the
4352 # executable faster but the compilation will be much longer and take
4353 # much more memory.
4355 # Check whether --enable-gcc-opts was given.
4356 if test "${enable_gcc_opts+set}" = set; then :
4357 enableval=$enable_gcc_opts; ENABLE_GCC_OPTS=$enableval
4358 else
4359 ENABLE_GCC_OPTS=no
4363 ###############################################################################
4365 # Check the width of Scheme characters.
4367 # Check whether --enable-char-size was given.
4368 if test "${enable_char_size+set}" = set; then :
4369 enableval=$enable_char_size; CHAR_SIZE=$enableval
4370 else
4371 CHAR_SIZE=4
4375 if test "$CHAR_SIZE" = 1; then
4376 CONF_MAX_CHR="0xff"
4377 else
4378 if test "$CHAR_SIZE" = 2; then
4379 CONF_MAX_CHR="0xffff"
4380 else
4381 CONF_MAX_CHR="0x10ffff"
4387 ###############################################################################
4389 # Check the size of the type "void*". On many systems it is the same
4390 # size as "long". If this isn't the case then define
4391 # ___VOIDSTAR_WIDTH appropriately.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4397 if test "${ac_cv_path_GREP+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -z "$GREP"; then
4401 ac_path_GREP_found=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_prog in grep ggrep; do
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4412 # Check for GNU ac_path_GREP and select it if it is found.
4413 # Check for GNU $ac_path_GREP
4414 case `"$ac_path_GREP" --version 2>&1` in
4415 *GNU*)
4416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4418 ac_count=0
4419 $as_echo_n 0123456789 >"conftest.in"
4420 while :
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'GREP' >> "conftest.nl"
4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428 as_fn_arith $ac_count + 1 && ac_count=$as_val
4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_GREP="$ac_path_GREP"
4432 ac_path_GREP_max=$ac_count
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4436 done
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 esac
4440 $ac_path_GREP_found && break 3
4441 done
4442 done
4443 done
4444 IFS=$as_save_IFS
4445 if test -z "$ac_cv_path_GREP"; then
4446 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4448 else
4449 ac_cv_path_GREP=$GREP
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4454 $as_echo "$ac_cv_path_GREP" >&6; }
4455 GREP="$ac_cv_path_GREP"
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4459 $as_echo_n "checking for egrep... " >&6; }
4460 if test "${ac_cv_path_EGREP+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4464 then ac_cv_path_EGREP="$GREP -E"
4465 else
4466 if test -z "$EGREP"; then
4467 ac_path_EGREP_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_prog in egrep; do
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4478 # Check for GNU ac_path_EGREP and select it if it is found.
4479 # Check for GNU $ac_path_EGREP
4480 case `"$ac_path_EGREP" --version 2>&1` in
4481 *GNU*)
4482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4484 ac_count=0
4485 $as_echo_n 0123456789 >"conftest.in"
4486 while :
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo 'EGREP' >> "conftest.nl"
4492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_EGREP="$ac_path_EGREP"
4498 ac_path_EGREP_max=$ac_count
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4502 done
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 esac
4506 $ac_path_EGREP_found && break 3
4507 done
4508 done
4509 done
4510 IFS=$as_save_IFS
4511 if test -z "$ac_cv_path_EGREP"; then
4512 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 else
4515 ac_cv_path_EGREP=$EGREP
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4521 $as_echo "$ac_cv_path_EGREP" >&6; }
4522 EGREP="$ac_cv_path_EGREP"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4526 $as_echo_n "checking for ANSI C header files... " >&6; }
4527 if test "${ac_cv_header_stdc+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <stdlib.h>
4533 #include <stdarg.h>
4534 #include <string.h>
4535 #include <float.h>
4538 main ()
4542 return 0;
4544 _ACEOF
4545 if ac_fn_cxx_try_compile "$LINENO"; then :
4546 ac_cv_header_stdc=yes
4547 else
4548 ac_cv_header_stdc=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 if test $ac_cv_header_stdc = yes; then
4553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <string.h>
4558 _ACEOF
4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4560 $EGREP "memchr" >/dev/null 2>&1; then :
4562 else
4563 ac_cv_header_stdc=no
4565 rm -f conftest*
4569 if test $ac_cv_header_stdc = yes; then
4570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <stdlib.h>
4575 _ACEOF
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "free" >/dev/null 2>&1; then :
4579 else
4580 ac_cv_header_stdc=no
4582 rm -f conftest*
4586 if test $ac_cv_header_stdc = yes; then
4587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4588 if test "$cross_compiling" = yes; then :
4590 else
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ctype.h>
4594 #include <stdlib.h>
4595 #if ((' ' & 0x0FF) == 0x020)
4596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4598 #else
4599 # define ISLOWER(c) \
4600 (('a' <= (c) && (c) <= 'i') \
4601 || ('j' <= (c) && (c) <= 'r') \
4602 || ('s' <= (c) && (c) <= 'z'))
4603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4604 #endif
4606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4608 main ()
4610 int i;
4611 for (i = 0; i < 256; i++)
4612 if (XOR (islower (i), ISLOWER (i))
4613 || toupper (i) != TOUPPER (i))
4614 return 2;
4615 return 0;
4617 _ACEOF
4618 if ac_fn_cxx_try_run "$LINENO"; then :
4620 else
4621 ac_cv_header_stdc=no
4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4624 conftest.$ac_objext conftest.beam conftest.$ac_ext
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4630 $as_echo "$ac_cv_header_stdc" >&6; }
4631 if test $ac_cv_header_stdc = yes; then
4633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4639 inttypes.h stdint.h unistd.h
4640 do :
4641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4642 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4644 eval as_val=\$$as_ac_Header
4645 if test "x$as_val" = x""yes; then :
4646 cat >>confdefs.h <<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 _ACEOF
4652 done
4655 # The cast to long int works around a bug in the HP C Compiler
4656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4658 # This bug is HP SR number 8606223364.
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
4660 $as_echo_n "checking size of void*... " >&6; }
4661 if test "${ac_cv_sizeof_voidp+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
4666 else
4667 if test "$ac_cv_type_voidp" = yes; then
4668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4670 { as_fn_set_status 77
4671 as_fn_error "cannot compute sizeof (void*)
4672 See \`config.log' for more details." "$LINENO" 5; }; }
4673 else
4674 ac_cv_sizeof_voidp=0
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
4680 $as_echo "$ac_cv_sizeof_voidp" >&6; }
4684 cat >>confdefs.h <<_ACEOF
4685 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
4686 _ACEOF
4689 # The cast to long int works around a bug in the HP C Compiler
4690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4692 # This bug is HP SR number 8606223364.
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4694 $as_echo_n "checking size of long... " >&6; }
4695 if test "${ac_cv_sizeof_long+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4700 else
4701 if test "$ac_cv_type_long" = yes; then
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 { as_fn_set_status 77
4705 as_fn_error "cannot compute sizeof (long)
4706 See \`config.log' for more details." "$LINENO" 5; }; }
4707 else
4708 ac_cv_sizeof_long=0
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4714 $as_echo "$ac_cv_sizeof_long" >&6; }
4718 cat >>confdefs.h <<_ACEOF
4719 #define SIZEOF_LONG $ac_cv_sizeof_long
4720 _ACEOF
4724 if test "$ac_cv_sizeof_voidp" != "$ac_cv_sizeof_long"; then
4725 CONF_VOIDSTAR_WIDTH="($ac_cv_sizeof_voidp * ___CHAR_WIDTH)"
4726 else
4727 CONF_VOIDSTAR_WIDTH="___LONG_WIDTH"
4732 ###############################################################################
4734 # Check if a shared library must be built.
4736 # Check whether --enable-shared was given.
4737 if test "${enable_shared+set}" = set; then :
4738 enableval=$enable_shared; ENABLE_SHARED=$enableval
4739 else
4740 ENABLE_SHARED=no
4744 if test "$ENABLE_SHARED" = yes; then
4745 $as_echo "#define ___SHARED 1" >>confdefs.h
4747 # don't add to DEFS_DYN
4750 ###############################################################################
4752 # Check if only ANSI C headers and libraries should be used.
4754 # Check whether --enable-ansi-c was given.
4755 if test "${enable_ansi_c+set}" = set; then :
4756 enableval=$enable_ansi_c; ANSI_C=$enableval
4757 else
4758 ANSI_C=no
4762 ###############################################################################
4764 # Check if symbolic links should be used for files not in the
4765 # central installation directory.
4767 # Check whether --enable-symlinks was given.
4768 if test "${enable_symlinks+set}" = set; then :
4769 enableval=$enable_symlinks; ENABLE_SYMLINKS=$enableval
4770 else
4771 ENABLE_SYMLINKS=no
4775 ###############################################################################
4777 # Determine the name to use for the Gambit interpreter and compiler.
4779 # Check whether --enable-interpreter-name was given.
4780 if test "${enable_interpreter_name+set}" = set; then :
4781 enableval=$enable_interpreter_name; ENABLE_INTERPRETER_NAME=$enableval
4782 else
4783 ENABLE_INTERPRETER_NAME="gsi"
4787 # Check whether --enable-compiler-name was given.
4788 if test "${enable_compiler_name+set}" = set; then :
4789 enableval=$enable_compiler_name; ENABLE_COMPILER_NAME=$enableval
4790 else
4791 ENABLE_COMPILER_NAME="gsc"
4795 ###############################################################################
4797 # Check if multiple installed versions are supported.
4799 # Check whether --enable-multiple-versions was given.
4800 if test "${enable_multiple_versions+set}" = set; then :
4801 enableval=$enable_multiple_versions; ENABLE_MULTIPLE_VERSIONS=$enableval
4802 else
4803 ENABLE_MULTIPLE_VERSIONS=no
4807 ###############################################################################
4809 # Check if libraries should contain a version number suffix.
4811 ENABLE_VERSIONNED_LIBS=no
4813 # This option does not currently work. Some work is needed to make it
4814 # work properly. Here is the documentation that should go in INSTALL.txt:
4816 #The option --enable-versionned-libs will add a version number suffix
4817 #to the libraries. For example the Gambit v4.3.2 runtime library which
4818 #is normally libgambc.a will be named libgambc-v4_3_2.a and it must be
4819 #linked to with the C compiler option -lgambc-v4_3_2 . If you give
4820 #this option a value, as in --enable-versionned-libs=<suffix> then
4821 #<suffix> will be appended to the name of the libraries.
4823 #AC_ARG_ENABLE(versionned-libs,
4824 # AC_HELP_STRING([--enable-versionned-libs],
4825 # [libraries should contain a version number suffix (default is NO)]),
4826 # ENABLE_VERSIONNED_LIBS=$enableval,
4827 # ENABLE_VERSIONNED_LIBS=no)
4829 ###############################################################################
4831 # Check if shared libraries should be linked to using an absolute path.
4833 # Check whether --enable-absolute-shared-libs was given.
4834 if test "${enable_absolute_shared_libs+set}" = set; then :
4835 enableval=$enable_absolute_shared_libs; ENABLE_ABSOLUTE_SHARED_LIBS=$enableval
4836 else
4837 ENABLE_ABSOLUTE_SHARED_LIBS=yes
4841 if test "$ENABLE_SHARED" != yes; then
4842 ENABLE_ABSOLUTE_SHARED_LIBS=no
4845 ###############################################################################
4847 # Determine which browser to use for help.
4849 # Check whether --enable-help-browser was given.
4850 if test "${enable_help_browser+set}" = set; then :
4851 enableval=$enable_help_browser; HELP_BROWSER=$enableval
4852 else
4853 HELP_BROWSER=""
4857 ###############################################################################
4859 # Check for C compiler.
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER defines __GNUC__" >&5
4868 $as_echo_n "checking whether $C_COMPILER defines __GNUC__... " >&6; }
4869 if test "${C_COMP_GNUC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4873 rm -f conftest.$ac_ext
4874 cat >conftest.$ac_ext <<_ACEOF
4875 #line $LINENO "configure"
4877 main ()
4879 #ifndef __GNUC__
4880 choke me
4881 #endif
4884 return 0;
4886 _ACEOF
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888 (eval $ac_link) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; then
4892 C_COMP_GNUC="yes"
4893 else
4894 C_COMP_GNUC=""
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C_COMP_GNUC" >&5
4899 $as_echo "$C_COMP_GNUC" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER defines _MSC_VER" >&5
4901 $as_echo_n "checking whether $C_COMPILER defines _MSC_VER... " >&6; }
4902 if test "${C_COMP_VISUALC+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4906 rm -f conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4910 main ()
4912 #ifndef _MSC_VER
4913 choke me
4914 #endif
4917 return 0;
4919 _ACEOF
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; then
4925 C_COMP_VISUALC="yes"
4926 else
4927 C_COMP_VISUALC=""
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C_COMP_VISUALC" >&5
4932 $as_echo "$C_COMP_VISUALC" >&6; }
4933 #AC_CHECK_C_COMPILER_DEF(__WATCOMC__,C_COMP_WATCOMC)
4934 #AC_CHECK_C_COMPILER_DEF(__BORLANDC__,C_COMP_BORLANDC)
4936 ###############################################################################
4938 # Check for header files.
4940 for ac_header in errno.h
4941 do :
4942 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4943 if test "x$ac_cv_header_errno_h" = x""yes; then :
4944 cat >>confdefs.h <<_ACEOF
4945 #define HAVE_ERRNO_H 1
4946 _ACEOF
4950 done
4952 for ac_header in float.h
4953 do :
4954 ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
4955 if test "x$ac_cv_header_float_h" = x""yes; then :
4956 cat >>confdefs.h <<_ACEOF
4957 #define HAVE_FLOAT_H 1
4958 _ACEOF
4962 done
4964 for ac_header in signal.h
4965 do :
4966 ac_fn_cxx_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4967 if test "x$ac_cv_header_signal_h" = x""yes; then :
4968 cat >>confdefs.h <<_ACEOF
4969 #define HAVE_SIGNAL_H 1
4970 _ACEOF
4974 done
4976 for ac_header in stdio.h
4977 do :
4978 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4979 if test "x$ac_cv_header_stdio_h" = x""yes; then :
4980 cat >>confdefs.h <<_ACEOF
4981 #define HAVE_STDIO_H 1
4982 _ACEOF
4986 done
4988 for ac_header in stdlib.h
4989 do :
4990 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4991 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4992 cat >>confdefs.h <<_ACEOF
4993 #define HAVE_STDLIB_H 1
4994 _ACEOF
4998 done
5000 for ac_header in string.h
5001 do :
5002 ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5003 if test "x$ac_cv_header_string_h" = x""yes; then :
5004 cat >>confdefs.h <<_ACEOF
5005 #define HAVE_STRING_H 1
5006 _ACEOF
5010 done
5012 for ac_header in time.h
5013 do :
5014 ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5015 if test "x$ac_cv_header_time_h" = x""yes; then :
5016 cat >>confdefs.h <<_ACEOF
5017 #define HAVE_TIME_H 1
5018 _ACEOF
5022 done
5025 if test "$ANSI_C" = yes; then
5027 # Check if linking to the math library needs some special linker flags.
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing asin" >&5
5030 $as_echo_n "checking for library containing asin... " >&6; }
5031 if test "${ac_cv_search_asin+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 ac_func_search_save_LIBS=$LIBS
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5038 /* Override any GCC internal prototype to avoid an error.
5039 Use char because int might match the return type of a GCC
5040 builtin and then its argument prototype would still apply. */
5041 #ifdef __cplusplus
5042 extern "C"
5043 #endif
5044 char asin ();
5046 main ()
5048 return asin ();
5050 return 0;
5052 _ACEOF
5053 for ac_lib in '' m; do
5054 if test -z "$ac_lib"; then
5055 ac_res="none required"
5056 else
5057 ac_res=-l$ac_lib
5058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5060 if ac_fn_cxx_try_link "$LINENO"; then :
5061 ac_cv_search_asin=$ac_res
5063 rm -f core conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext
5065 if test "${ac_cv_search_asin+set}" = set; then :
5066 break
5068 done
5069 if test "${ac_cv_search_asin+set}" = set; then :
5071 else
5072 ac_cv_search_asin=no
5074 rm conftest.$ac_ext
5075 LIBS=$ac_func_search_save_LIBS
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_asin" >&5
5078 $as_echo "$ac_cv_search_asin" >&6; }
5079 ac_res=$ac_cv_search_asin
5080 if test "$ac_res" != no; then :
5081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5086 # The following functions should be provided by an ANSI-C conforming
5087 # compiler, but it is safest to double check. If they are not
5088 # available, the system will still compile but some functionality
5089 # will be missing from the Gambit runtime system.
5091 for ac_func in getenv
5092 do :
5093 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
5094 if test "x$ac_cv_func_getenv" = x""yes; then :
5095 cat >>confdefs.h <<_ACEOF
5096 #define HAVE_GETENV 1
5097 _ACEOF
5100 done
5102 for ac_func in time
5103 do :
5104 ac_fn_cxx_check_func "$LINENO" "time" "ac_cv_func_time"
5105 if test "x$ac_cv_func_time" = x""yes; then :
5106 cat >>confdefs.h <<_ACEOF
5107 #define HAVE_TIME 1
5108 _ACEOF
5111 done
5113 for ac_func in clock
5114 do :
5115 ac_fn_cxx_check_func "$LINENO" "clock" "ac_cv_func_clock"
5116 if test "x$ac_cv_func_clock" = x""yes; then :
5117 cat >>confdefs.h <<_ACEOF
5118 #define HAVE_CLOCK 1
5119 _ACEOF
5122 done
5125 else
5127 for ac_header in unistd.h
5128 do :
5129 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5130 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5131 cat >>confdefs.h <<_ACEOF
5132 #define HAVE_UNISTD_H 1
5133 _ACEOF
5137 done
5139 for ac_header in pwd.h
5140 do :
5141 ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
5142 if test "x$ac_cv_header_pwd_h" = x""yes; then :
5143 cat >>confdefs.h <<_ACEOF
5144 #define HAVE_PWD_H 1
5145 _ACEOF
5149 done
5151 for ac_header in dirent.h
5152 do :
5153 ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5154 if test "x$ac_cv_header_dirent_h" = x""yes; then :
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_DIRENT_H 1
5157 _ACEOF
5161 done
5163 for ac_header in dlfcn.h
5164 do :
5165 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5166 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5167 cat >>confdefs.h <<_ACEOF
5168 #define HAVE_DLFCN_H 1
5169 _ACEOF
5173 done
5175 for ac_header in dl.h
5176 do :
5177 ac_fn_cxx_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
5178 if test "x$ac_cv_header_dl_h" = x""yes; then :
5179 cat >>confdefs.h <<_ACEOF
5180 #define HAVE_DL_H 1
5181 _ACEOF
5185 done
5187 for ac_header in sys/dxe.h
5188 do :
5189 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/dxe.h" "ac_cv_header_sys_dxe_h" "$ac_includes_default"
5190 if test "x$ac_cv_header_sys_dxe_h" = x""yes; then :
5191 cat >>confdefs.h <<_ACEOF
5192 #define HAVE_SYS_DXE_H 1
5193 _ACEOF
5197 done
5199 for ac_header in mach-o/dyld.h
5200 do :
5201 ac_fn_cxx_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
5202 if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then :
5203 cat >>confdefs.h <<_ACEOF
5204 #define HAVE_MACH_O_DYLD_H 1
5205 _ACEOF
5209 done
5211 for ac_header in sys/types.h
5212 do :
5213 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5214 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
5215 cat >>confdefs.h <<_ACEOF
5216 #define HAVE_SYS_TYPES_H 1
5217 _ACEOF
5221 done
5223 for ac_header in sys/time.h
5224 do :
5225 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5226 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
5227 cat >>confdefs.h <<_ACEOF
5228 #define HAVE_SYS_TIME_H 1
5229 _ACEOF
5233 done
5235 for ac_header in sys/times.h
5236 do :
5237 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_sys_times_h" = x""yes; then :
5239 cat >>confdefs.h <<_ACEOF
5240 #define HAVE_SYS_TIMES_H 1
5241 _ACEOF
5245 done
5247 for ac_header in sys/timeb.h
5248 do :
5249 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
5250 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
5251 cat >>confdefs.h <<_ACEOF
5252 #define HAVE_SYS_TIMEB_H 1
5253 _ACEOF
5257 done
5259 for ac_header in sys/timers.h
5260 do :
5261 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/timers.h" "ac_cv_header_sys_timers_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_sys_timers_h" = x""yes; then :
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_SYS_TIMERS_H 1
5265 _ACEOF
5269 done
5271 for ac_header in sys/resource.h
5272 do :
5273 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define HAVE_SYS_RESOURCE_H 1
5277 _ACEOF
5281 done
5283 for ac_header in sys/stat.h
5284 do :
5285 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
5286 if test "x$ac_cv_header_sys_stat_h" = x""yes; then :
5287 cat >>confdefs.h <<_ACEOF
5288 #define HAVE_SYS_STAT_H 1
5289 _ACEOF
5293 done
5295 for ac_header in sys/wait.h
5296 do :
5297 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
5298 if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
5299 cat >>confdefs.h <<_ACEOF
5300 #define HAVE_SYS_WAIT_H 1
5301 _ACEOF
5305 done
5307 for ac_header in stat.h
5308 do :
5309 ac_fn_cxx_check_header_mongrel "$LINENO" "stat.h" "ac_cv_header_stat_h" "$ac_includes_default"
5310 if test "x$ac_cv_header_stat_h" = x""yes; then :
5311 cat >>confdefs.h <<_ACEOF
5312 #define HAVE_STAT_H 1
5313 _ACEOF
5317 done
5319 for ac_header in netdb.h
5320 do :
5321 ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
5322 if test "x$ac_cv_header_netdb_h" = x""yes; then :
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_NETDB_H 1
5325 _ACEOF
5329 done
5331 for ac_header in grp.h
5332 do :
5333 ac_fn_cxx_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
5334 if test "x$ac_cv_header_grp_h" = x""yes; then :
5335 cat >>confdefs.h <<_ACEOF
5336 #define HAVE_GRP_H 1
5337 _ACEOF
5341 done
5343 #AC_CHECK_HEADERS(windows.h)
5344 #AC_CHECK_HEADERS(io.h)
5345 #AC_CHECK_HEADERS(tchar.h)
5346 for ac_header in fpu_control.h
5347 do :
5348 ac_fn_cxx_check_header_mongrel "$LINENO" "fpu_control.h" "ac_cv_header_fpu_control_h" "$ac_includes_default"
5349 if test "x$ac_cv_header_fpu_control_h" = x""yes; then :
5350 cat >>confdefs.h <<_ACEOF
5351 #define HAVE_FPU_CONTROL_H 1
5352 _ACEOF
5356 done
5358 for ac_header in os2.h
5359 do :
5360 ac_fn_cxx_check_header_mongrel "$LINENO" "os2.h" "ac_cv_header_os2_h" "$ac_includes_default"
5361 if test "x$ac_cv_header_os2_h" = x""yes; then :
5362 cat >>confdefs.h <<_ACEOF
5363 #define HAVE_OS2_H 1
5364 _ACEOF
5368 done
5370 for ac_header in dos.h
5371 do :
5372 ac_fn_cxx_check_header_mongrel "$LINENO" "dos.h" "ac_cv_header_dos_h" "$ac_includes_default"
5373 if test "x$ac_cv_header_dos_h" = x""yes; then :
5374 cat >>confdefs.h <<_ACEOF
5375 #define HAVE_DOS_H 1
5376 _ACEOF
5380 done
5382 for ac_header in direct.h
5383 do :
5384 ac_fn_cxx_check_header_mongrel "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
5385 if test "x$ac_cv_header_direct_h" = x""yes; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define HAVE_DIRECT_H 1
5388 _ACEOF
5392 done
5394 #AC_CHECK_HEADERS(Retrace.h)
5395 #AC_CHECK_HEADERS(Files.h)
5396 #AC_CHECK_HEADERS(Finder.h)
5397 #AC_CHECK_HEADERS(Errors.h)
5398 #AC_CHECK_HEADERS(Folders.h)
5399 #AC_CHECK_HEADERS(OSUtils.h)
5400 #AC_CHECK_HEADERS(Power.h)
5401 #AC_CHECK_HEADERS(CodeFragments.h)
5402 #AC_CHECK_HEADERS(SIOUX.h)
5403 #AC_CHECK_HEADERS(mac_gui.h)
5404 #AC_CHECK_HEADERS(unix.h)
5405 for ac_header in wdefwin.h
5406 do :
5407 ac_fn_cxx_check_header_mongrel "$LINENO" "wdefwin.h" "ac_cv_header_wdefwin_h" "$ac_includes_default"
5408 if test "x$ac_cv_header_wdefwin_h" = x""yes; then :
5409 cat >>confdefs.h <<_ACEOF
5410 #define HAVE_WDEFWIN_H 1
5411 _ACEOF
5415 done
5417 for ac_header in tfork.h
5418 do :
5419 ac_fn_cxx_check_header_mongrel "$LINENO" "tfork.h" "ac_cv_header_tfork_h" "$ac_includes_default"
5420 if test "x$ac_cv_header_tfork_h" = x""yes; then :
5421 cat >>confdefs.h <<_ACEOF
5422 #define HAVE_TFORK_H 1
5423 _ACEOF
5427 done
5429 for ac_header in curses.h
5430 do :
5431 ac_fn_cxx_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
5432 if test "x$ac_cv_header_curses_h" = x""yes; then :
5433 cat >>confdefs.h <<_ACEOF
5434 #define HAVE_CURSES_H 1
5435 _ACEOF
5439 done
5441 for ac_header in ncurses.h
5442 do :
5443 ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
5444 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
5445 cat >>confdefs.h <<_ACEOF
5446 #define HAVE_NCURSES_H 1
5447 _ACEOF
5451 done
5453 for ac_header in netinet/in.h
5454 do :
5455 ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
5456 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
5457 cat >>confdefs.h <<_ACEOF
5458 #define HAVE_NETINET_IN_H 1
5459 _ACEOF
5463 done
5465 for ac_header in arpa/inet.h
5466 do :
5467 ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
5468 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
5469 cat >>confdefs.h <<_ACEOF
5470 #define HAVE_ARPA_INET_H 1
5471 _ACEOF
5475 done
5477 for ac_header in termios.h
5478 do :
5479 ac_fn_cxx_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
5480 if test "x$ac_cv_header_termios_h" = x""yes; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define HAVE_TERMIOS_H 1
5483 _ACEOF
5487 done
5489 #AC_CHECK_HEADERS(term.h)
5490 for ac_header in pty.h
5491 do :
5492 ac_fn_cxx_check_header_mongrel "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
5493 if test "x$ac_cv_header_pty_h" = x""yes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define HAVE_PTY_H 1
5496 _ACEOF
5500 done
5502 for ac_header in libutil.h
5503 do :
5504 ac_fn_cxx_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
5505 if test "x$ac_cv_header_libutil_h" = x""yes; then :
5506 cat >>confdefs.h <<_ACEOF
5507 #define HAVE_LIBUTIL_H 1
5508 _ACEOF
5512 done
5514 for ac_header in util.h
5515 do :
5516 ac_fn_cxx_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
5517 if test "x$ac_cv_header_util_h" = x""yes; then :
5518 cat >>confdefs.h <<_ACEOF
5519 #define HAVE_UTIL_H 1
5520 _ACEOF
5524 done
5526 for ac_header in sys/fpu.h
5527 do :
5528 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/fpu.h" "ac_cv_header_sys_fpu_h" "$ac_includes_default"
5529 if test "x$ac_cv_header_sys_fpu_h" = x""yes; then :
5530 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_SYS_FPU_H 1
5532 _ACEOF
5536 done
5538 for ac_header in fenv.h
5539 do :
5540 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
5541 if test "x$ac_cv_header_fenv_h" = x""yes; then :
5542 cat >>confdefs.h <<_ACEOF
5543 #define HAVE_FENV_H 1
5544 _ACEOF
5548 done
5550 for ac_header in fcntl.h
5551 do :
5552 ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5553 if test "x$ac_cv_header_fcntl_h" = x""yes; then :
5554 cat >>confdefs.h <<_ACEOF
5555 #define HAVE_FCNTL_H 1
5556 _ACEOF
5560 done
5562 for ac_header in sys/ioctl.h
5563 do :
5564 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5565 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
5566 cat >>confdefs.h <<_ACEOF
5567 #define HAVE_SYS_IOCTL_H 1
5568 _ACEOF
5572 done
5574 for ac_header in sys/socket.h
5575 do :
5576 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5577 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
5578 cat >>confdefs.h <<_ACEOF
5579 #define HAVE_SYS_SOCKET_H 1
5580 _ACEOF
5584 done
5586 for ac_header in strings.h
5587 do :
5588 ac_fn_cxx_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5589 if test "x$ac_cv_header_strings_h" = x""yes; then :
5590 cat >>confdefs.h <<_ACEOF
5591 #define HAVE_STRINGS_H 1
5592 _ACEOF
5596 done
5598 for ac_header in memory.h
5599 do :
5600 ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
5601 if test "x$ac_cv_header_memory_h" = x""yes; then :
5602 cat >>confdefs.h <<_ACEOF
5603 #define HAVE_MEMORY_H 1
5604 _ACEOF
5608 done
5610 for ac_header in sys/sysctl.h
5611 do :
5612 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
5613 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
5614 cat >>confdefs.h <<_ACEOF
5615 #define HAVE_SYS_SYSCTL_H 1
5616 _ACEOF
5620 done
5623 if test "$C_COMP_VISUALC" != yes; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5628 $as_echo_n "checking for socklen_t... " >&6; }
5629 if test "${ac_cv_type_socklen_t+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 #include <sys/socket.h>
5638 main ()
5640 socklen_t len = 42; return 0;
5642 return 0;
5644 _ACEOF
5645 if ac_fn_cxx_try_compile "$LINENO"; then :
5646 ac_cv_type_socklen_t=yes
5647 else
5648 ac_cv_type_socklen_t=no
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
5654 $as_echo "$ac_cv_type_socklen_t" >&6; }
5655 if test $ac_cv_type_socklen_t != yes; then
5656 $as_echo "#define socklen_t int" >>confdefs.h
5663 #AC_TYPE_MODE_T
5664 #AC_TYPE_OFF_T
5665 #AC_TYPE_PID_T
5666 #AC_TYPE_SIGNAL
5667 #AC_TYPE_SIZE_T
5668 #AC_TYPE_UID_T
5670 #AC_HEADER_DIRENT
5671 #AC_HEADER_STAT
5672 #AC_HEADER_STDC
5673 #AC_HEADER_SYS_WAIT
5674 #AC_HEADER_TIME
5675 #AC_HEADER_TIOCGWINSZ
5676 #AC_FUNC_SELECT_ARGTYPES
5678 #AC_FUNC_CLOSEDIR_VOID
5679 #AC_FUNC_FSEEKO
5680 #AC_FUNC_STAT
5681 #AC_FUNC_LSTAT
5683 if test "$C_COMP_VISUALC" = yes; then
5685 LIBS="$LIBS Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib"
5686 FLAGS_OBJ="$FLAGS_OBJ -D_WINDOWS"
5688 else
5690 case "$target_os" in
5692 mingw*) # add Windows libraries needed by MinGW
5693 LIBS="$LIBS -lws2_32"
5694 FLAGS_OBJ="$FLAGS_OBJ -D_WINDOWS"
5697 *) # check libraries for other systems
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing asin" >&5
5699 $as_echo_n "checking for library containing asin... " >&6; }
5700 if test "${ac_cv_search_asin+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 ac_func_search_save_LIBS=$LIBS
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5707 /* Override any GCC internal prototype to avoid an error.
5708 Use char because int might match the return type of a GCC
5709 builtin and then its argument prototype would still apply. */
5710 #ifdef __cplusplus
5711 extern "C"
5712 #endif
5713 char asin ();
5715 main ()
5717 return asin ();
5719 return 0;
5721 _ACEOF
5722 for ac_lib in '' m; do
5723 if test -z "$ac_lib"; then
5724 ac_res="none required"
5725 else
5726 ac_res=-l$ac_lib
5727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5729 if ac_fn_cxx_try_link "$LINENO"; then :
5730 ac_cv_search_asin=$ac_res
5732 rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext
5734 if test "${ac_cv_search_asin+set}" = set; then :
5735 break
5737 done
5738 if test "${ac_cv_search_asin+set}" = set; then :
5740 else
5741 ac_cv_search_asin=no
5743 rm conftest.$ac_ext
5744 LIBS=$ac_func_search_save_LIBS
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_asin" >&5
5747 $as_echo "$ac_cv_search_asin" >&6; }
5748 ac_res=$ac_cv_search_asin
5749 if test "$ac_res" != no; then :
5750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5756 $as_echo_n "checking for library containing dlopen... " >&6; }
5757 if test "${ac_cv_search_dlopen+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 ac_func_search_save_LIBS=$LIBS
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5764 /* Override any GCC internal prototype to avoid an error.
5765 Use char because int might match the return type of a GCC
5766 builtin and then its argument prototype would still apply. */
5767 #ifdef __cplusplus
5768 extern "C"
5769 #endif
5770 char dlopen ();
5772 main ()
5774 return dlopen ();
5776 return 0;
5778 _ACEOF
5779 for ac_lib in '' dl; do
5780 if test -z "$ac_lib"; then
5781 ac_res="none required"
5782 else
5783 ac_res=-l$ac_lib
5784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5786 if ac_fn_cxx_try_link "$LINENO"; then :
5787 ac_cv_search_dlopen=$ac_res
5789 rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext
5791 if test "${ac_cv_search_dlopen+set}" = set; then :
5792 break
5794 done
5795 if test "${ac_cv_search_dlopen+set}" = set; then :
5797 else
5798 ac_cv_search_dlopen=no
5800 rm conftest.$ac_ext
5801 LIBS=$ac_func_search_save_LIBS
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5804 $as_echo "$ac_cv_search_dlopen" >&6; }
5805 ac_res=$ac_cv_search_dlopen
5806 if test "$ac_res" != no; then :
5807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
5812 $as_echo_n "checking for library containing shl_load... " >&6; }
5813 if test "${ac_cv_search_shl_load+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 ac_func_search_save_LIBS=$LIBS
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5820 /* Override any GCC internal prototype to avoid an error.
5821 Use char because int might match the return type of a GCC
5822 builtin and then its argument prototype would still apply. */
5823 #ifdef __cplusplus
5824 extern "C"
5825 #endif
5826 char shl_load ();
5828 main ()
5830 return shl_load ();
5832 return 0;
5834 _ACEOF
5835 for ac_lib in '' dld; do
5836 if test -z "$ac_lib"; then
5837 ac_res="none required"
5838 else
5839 ac_res=-l$ac_lib
5840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5842 if ac_fn_cxx_try_link "$LINENO"; then :
5843 ac_cv_search_shl_load=$ac_res
5845 rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext
5847 if test "${ac_cv_search_shl_load+set}" = set; then :
5848 break
5850 done
5851 if test "${ac_cv_search_shl_load+set}" = set; then :
5853 else
5854 ac_cv_search_shl_load=no
5856 rm conftest.$ac_ext
5857 LIBS=$ac_func_search_save_LIBS
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
5860 $as_echo "$ac_cv_search_shl_load" >&6; }
5861 ac_res=$ac_cv_search_shl_load
5862 if test "$ac_res" != no; then :
5863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5868 #AC_SEARCH_LIBS(tgetstr,ncurses curses)
5869 #AC_SEARCH_LIBS(tigetstr,ncurses curses)
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5872 $as_echo_n "checking for library containing socket... " >&6; }
5873 if test "${ac_cv_search_socket+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 ac_func_search_save_LIBS=$LIBS
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5880 /* Override any GCC internal prototype to avoid an error.
5881 Use char because int might match the return type of a GCC
5882 builtin and then its argument prototype would still apply. */
5883 #ifdef __cplusplus
5884 extern "C"
5885 #endif
5886 char socket ();
5888 main ()
5890 return socket ();
5892 return 0;
5894 _ACEOF
5895 for ac_lib in '' socket; do
5896 if test -z "$ac_lib"; then
5897 ac_res="none required"
5898 else
5899 ac_res=-l$ac_lib
5900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5902 if ac_fn_cxx_try_link "$LINENO"; then :
5903 ac_cv_search_socket=$ac_res
5905 rm -f core conftest.err conftest.$ac_objext \
5906 conftest$ac_exeext
5907 if test "${ac_cv_search_socket+set}" = set; then :
5908 break
5910 done
5911 if test "${ac_cv_search_socket+set}" = set; then :
5913 else
5914 ac_cv_search_socket=no
5916 rm conftest.$ac_ext
5917 LIBS=$ac_func_search_save_LIBS
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5920 $as_echo "$ac_cv_search_socket" >&6; }
5921 ac_res=$ac_cv_search_socket
5922 if test "$ac_res" != no; then :
5923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5929 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5930 if test "${ac_cv_search_gethostbyname+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 ac_func_search_save_LIBS=$LIBS
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5937 /* Override any GCC internal prototype to avoid an error.
5938 Use char because int might match the return type of a GCC
5939 builtin and then its argument prototype would still apply. */
5940 #ifdef __cplusplus
5941 extern "C"
5942 #endif
5943 char gethostbyname ();
5945 main ()
5947 return gethostbyname ();
5949 return 0;
5951 _ACEOF
5952 for ac_lib in '' nsl resolv xnet; do
5953 if test -z "$ac_lib"; then
5954 ac_res="none required"
5955 else
5956 ac_res=-l$ac_lib
5957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5959 if ac_fn_cxx_try_link "$LINENO"; then :
5960 ac_cv_search_gethostbyname=$ac_res
5962 rm -f core conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext
5964 if test "${ac_cv_search_gethostbyname+set}" = set; then :
5965 break
5967 done
5968 if test "${ac_cv_search_gethostbyname+set}" = set; then :
5970 else
5971 ac_cv_search_gethostbyname=no
5973 rm conftest.$ac_ext
5974 LIBS=$ac_func_search_save_LIBS
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5977 $as_echo "$ac_cv_search_gethostbyname" >&6; }
5978 ac_res=$ac_cv_search_gethostbyname
5979 if test "$ac_res" != no; then :
5980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
5986 $as_echo_n "checking for library containing hstrerror... " >&6; }
5987 if test "${ac_cv_search_hstrerror+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 ac_func_search_save_LIBS=$LIBS
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5994 /* Override any GCC internal prototype to avoid an error.
5995 Use char because int might match the return type of a GCC
5996 builtin and then its argument prototype would still apply. */
5997 #ifdef __cplusplus
5998 extern "C"
5999 #endif
6000 char hstrerror ();
6002 main ()
6004 return hstrerror ();
6006 return 0;
6008 _ACEOF
6009 for ac_lib in '' resolv; do
6010 if test -z "$ac_lib"; then
6011 ac_res="none required"
6012 else
6013 ac_res=-l$ac_lib
6014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6016 if ac_fn_cxx_try_link "$LINENO"; then :
6017 ac_cv_search_hstrerror=$ac_res
6019 rm -f core conftest.err conftest.$ac_objext \
6020 conftest$ac_exeext
6021 if test "${ac_cv_search_hstrerror+set}" = set; then :
6022 break
6024 done
6025 if test "${ac_cv_search_hstrerror+set}" = set; then :
6027 else
6028 ac_cv_search_hstrerror=no
6030 rm conftest.$ac_ext
6031 LIBS=$ac_func_search_save_LIBS
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
6034 $as_echo "$ac_cv_search_hstrerror" >&6; }
6035 ac_res=$ac_cv_search_hstrerror
6036 if test "$ac_res" != no; then :
6037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
6043 $as_echo_n "checking for library containing openpty... " >&6; }
6044 if test "${ac_cv_search_openpty+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 ac_func_search_save_LIBS=$LIBS
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6051 /* Override any GCC internal prototype to avoid an error.
6052 Use char because int might match the return type of a GCC
6053 builtin and then its argument prototype would still apply. */
6054 #ifdef __cplusplus
6055 extern "C"
6056 #endif
6057 char openpty ();
6059 main ()
6061 return openpty ();
6063 return 0;
6065 _ACEOF
6066 for ac_lib in '' util; do
6067 if test -z "$ac_lib"; then
6068 ac_res="none required"
6069 else
6070 ac_res=-l$ac_lib
6071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6073 if ac_fn_cxx_try_link "$LINENO"; then :
6074 ac_cv_search_openpty=$ac_res
6076 rm -f core conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext
6078 if test "${ac_cv_search_openpty+set}" = set; then :
6079 break
6081 done
6082 if test "${ac_cv_search_openpty+set}" = set; then :
6084 else
6085 ac_cv_search_openpty=no
6087 rm conftest.$ac_ext
6088 LIBS=$ac_func_search_save_LIBS
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
6091 $as_echo "$ac_cv_search_openpty" >&6; }
6092 ac_res=$ac_cv_search_openpty
6093 if test "$ac_res" != no; then :
6094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing WSAStartup" >&5
6100 $as_echo_n "checking for library containing WSAStartup... " >&6; }
6101 if test "${ac_cv_search_WSAStartup+set}" = set; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 ac_func_search_save_LIBS=$LIBS
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6108 /* Override any GCC internal prototype to avoid an error.
6109 Use char because int might match the return type of a GCC
6110 builtin and then its argument prototype would still apply. */
6111 #ifdef __cplusplus
6112 extern "C"
6113 #endif
6114 char WSAStartup ();
6116 main ()
6118 return WSAStartup ();
6120 return 0;
6122 _ACEOF
6123 for ac_lib in '' ws2_32; do
6124 if test -z "$ac_lib"; then
6125 ac_res="none required"
6126 else
6127 ac_res=-l$ac_lib
6128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6130 if ac_fn_cxx_try_link "$LINENO"; then :
6131 ac_cv_search_WSAStartup=$ac_res
6133 rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext
6135 if test "${ac_cv_search_WSAStartup+set}" = set; then :
6136 break
6138 done
6139 if test "${ac_cv_search_WSAStartup+set}" = set; then :
6141 else
6142 ac_cv_search_WSAStartup=no
6144 rm conftest.$ac_ext
6145 LIBS=$ac_func_search_save_LIBS
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_WSAStartup" >&5
6148 $as_echo "$ac_cv_search_WSAStartup" >&6; }
6149 ac_res=$ac_cv_search_WSAStartup
6150 if test "$ac_res" != no; then :
6151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6156 esac
6160 for ac_func in pipe
6161 do :
6162 ac_fn_cxx_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
6163 if test "x$ac_cv_func_pipe" = x""yes; then :
6164 cat >>confdefs.h <<_ACEOF
6165 #define HAVE_PIPE 1
6166 _ACEOF
6169 done
6171 for ac_func in socketpair
6172 do :
6173 ac_fn_cxx_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
6174 if test "x$ac_cv_func_socketpair" = x""yes; then :
6175 cat >>confdefs.h <<_ACEOF
6176 #define HAVE_SOCKETPAIR 1
6177 _ACEOF
6180 done
6182 for ac_func in chdir
6183 do :
6184 ac_fn_cxx_check_func "$LINENO" "chdir" "ac_cv_func_chdir"
6185 if test "x$ac_cv_func_chdir" = x""yes; then :
6186 cat >>confdefs.h <<_ACEOF
6187 #define HAVE_CHDIR 1
6188 _ACEOF
6191 done
6193 for ac_func in execvp
6194 do :
6195 ac_fn_cxx_check_func "$LINENO" "execvp" "ac_cv_func_execvp"
6196 if test "x$ac_cv_func_execvp" = x""yes; then :
6197 cat >>confdefs.h <<_ACEOF
6198 #define HAVE_EXECVP 1
6199 _ACEOF
6202 done
6204 for ac_func in getgrnam
6205 do :
6206 ac_fn_cxx_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam"
6207 if test "x$ac_cv_func_getgrnam" = x""yes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_GETGRNAM 1
6210 _ACEOF
6213 done
6215 for ac_func in getpid
6216 do :
6217 ac_fn_cxx_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
6218 if test "x$ac_cv_func_getpid" = x""yes; then :
6219 cat >>confdefs.h <<_ACEOF
6220 #define HAVE_GETPID 1
6221 _ACEOF
6224 done
6226 for ac_func in getppid
6227 do :
6228 ac_fn_cxx_check_func "$LINENO" "getppid" "ac_cv_func_getppid"
6229 if test "x$ac_cv_func_getppid" = x""yes; then :
6230 cat >>confdefs.h <<_ACEOF
6231 #define HAVE_GETPPID 1
6232 _ACEOF
6235 done
6237 for ac_func in getpwnam
6238 do :
6239 ac_fn_cxx_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
6240 if test "x$ac_cv_func_getpwnam" = x""yes; then :
6241 cat >>confdefs.h <<_ACEOF
6242 #define HAVE_GETPWNAM 1
6243 _ACEOF
6246 done
6248 for ac_func in ioctl
6249 do :
6250 ac_fn_cxx_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
6251 if test "x$ac_cv_func_ioctl" = x""yes; then :
6252 cat >>confdefs.h <<_ACEOF
6253 #define HAVE_IOCTL 1
6254 _ACEOF
6257 done
6259 for ac_func in link
6260 do :
6261 ac_fn_cxx_check_func "$LINENO" "link" "ac_cv_func_link"
6262 if test "x$ac_cv_func_link" = x""yes; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define HAVE_LINK 1
6265 _ACEOF
6268 done
6270 for ac_func in mkdir
6271 do :
6272 ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
6273 if test "x$ac_cv_func_mkdir" = x""yes; then :
6274 cat >>confdefs.h <<_ACEOF
6275 #define HAVE_MKDIR 1
6276 _ACEOF
6279 done
6281 for ac_func in mkfifo
6282 do :
6283 ac_fn_cxx_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
6284 if test "x$ac_cv_func_mkfifo" = x""yes; then :
6285 cat >>confdefs.h <<_ACEOF
6286 #define HAVE_MKFIFO 1
6287 _ACEOF
6290 done
6292 for ac_func in opendir
6293 do :
6294 ac_fn_cxx_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
6295 if test "x$ac_cv_func_opendir" = x""yes; then :
6296 cat >>confdefs.h <<_ACEOF
6297 #define HAVE_OPENDIR 1
6298 _ACEOF
6301 done
6303 for ac_func in rename
6304 do :
6305 ac_fn_cxx_check_func "$LINENO" "rename" "ac_cv_func_rename"
6306 if test "x$ac_cv_func_rename" = x""yes; then :
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_RENAME 1
6309 _ACEOF
6312 done
6314 for ac_func in rmdir
6315 do :
6316 ac_fn_cxx_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
6317 if test "x$ac_cv_func_rmdir" = x""yes; then :
6318 cat >>confdefs.h <<_ACEOF
6319 #define HAVE_RMDIR 1
6320 _ACEOF
6323 done
6325 for ac_func in socket
6326 do :
6327 ac_fn_cxx_check_func "$LINENO" "socket" "ac_cv_func_socket"
6328 if test "x$ac_cv_func_socket" = x""yes; then :
6329 cat >>confdefs.h <<_ACEOF
6330 #define HAVE_SOCKET 1
6331 _ACEOF
6334 done
6336 for ac_func in stat
6337 do :
6338 ac_fn_cxx_check_func "$LINENO" "stat" "ac_cv_func_stat"
6339 if test "x$ac_cv_func_stat" = x""yes; then :
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_STAT 1
6342 _ACEOF
6345 done
6347 for ac_func in stat64
6348 do :
6349 ac_fn_cxx_check_func "$LINENO" "stat64" "ac_cv_func_stat64"
6350 if test "x$ac_cv_func_stat64" = x""yes; then :
6351 cat >>confdefs.h <<_ACEOF
6352 #define HAVE_STAT64 1
6353 _ACEOF
6356 done
6358 for ac_func in strerror
6359 do :
6360 ac_fn_cxx_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6361 if test "x$ac_cv_func_strerror" = x""yes; then :
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_STRERROR 1
6364 _ACEOF
6367 done
6369 for ac_func in symlink
6370 do :
6371 ac_fn_cxx_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
6372 if test "x$ac_cv_func_symlink" = x""yes; then :
6373 cat >>confdefs.h <<_ACEOF
6374 #define HAVE_SYMLINK 1
6375 _ACEOF
6378 done
6380 for ac_func in sysconf
6381 do :
6382 ac_fn_cxx_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
6383 if test "x$ac_cv_func_sysconf" = x""yes; then :
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_SYSCONF 1
6386 _ACEOF
6389 done
6391 for ac_func in sysctl
6392 do :
6393 ac_fn_cxx_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
6394 if test "x$ac_cv_func_sysctl" = x""yes; then :
6395 cat >>confdefs.h <<_ACEOF
6396 #define HAVE_SYSCTL 1
6397 _ACEOF
6400 done
6402 for ac_func in tcgetattr
6403 do :
6404 ac_fn_cxx_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
6405 if test "x$ac_cv_func_tcgetattr" = x""yes; then :
6406 cat >>confdefs.h <<_ACEOF
6407 #define HAVE_TCGETATTR 1
6408 _ACEOF
6411 done
6413 for ac_func in unlink
6414 do :
6415 ac_fn_cxx_check_func "$LINENO" "unlink" "ac_cv_func_unlink"
6416 if test "x$ac_cv_func_unlink" = x""yes; then :
6417 cat >>confdefs.h <<_ACEOF
6418 #define HAVE_UNLINK 1
6419 _ACEOF
6422 done
6424 for ac_func in waitpid
6425 do :
6426 ac_fn_cxx_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
6427 if test "x$ac_cv_func_waitpid" = x""yes; then :
6428 cat >>confdefs.h <<_ACEOF
6429 #define HAVE_WAITPID 1
6430 _ACEOF
6433 done
6436 for ac_func in clock_gettime
6437 do :
6438 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
6439 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
6440 cat >>confdefs.h <<_ACEOF
6441 #define HAVE_CLOCK_GETTIME 1
6442 _ACEOF
6445 done
6447 for ac_func in getclock
6448 do :
6449 ac_fn_cxx_check_func "$LINENO" "getclock" "ac_cv_func_getclock"
6450 if test "x$ac_cv_func_getclock" = x""yes; then :
6451 cat >>confdefs.h <<_ACEOF
6452 #define HAVE_GETCLOCK 1
6453 _ACEOF
6456 done
6458 #AC_CHECK_FUNCS(GetSystemTime)
6459 for ac_func in gettimeofday
6460 do :
6461 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6462 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6463 cat >>confdefs.h <<_ACEOF
6464 #define HAVE_GETTIMEOFDAY 1
6465 _ACEOF
6468 done
6470 for ac_func in ftime
6471 do :
6472 ac_fn_cxx_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
6473 if test "x$ac_cv_func_ftime" = x""yes; then :
6474 cat >>confdefs.h <<_ACEOF
6475 #define HAVE_FTIME 1
6476 _ACEOF
6479 done
6481 for ac_func in time
6482 do :
6483 ac_fn_cxx_check_func "$LINENO" "time" "ac_cv_func_time"
6484 if test "x$ac_cv_func_time" = x""yes; then :
6485 cat >>confdefs.h <<_ACEOF
6486 #define HAVE_TIME 1
6487 _ACEOF
6490 done
6493 for ac_func in nanosleep
6494 do :
6495 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6496 if test "x$ac_cv_func_nanosleep" = x""yes; then :
6497 cat >>confdefs.h <<_ACEOF
6498 #define HAVE_NANOSLEEP 1
6499 _ACEOF
6502 done
6504 #AC_CHECK_FUNCS(Sleep)
6505 for ac_func in sleep
6506 do :
6507 ac_fn_cxx_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
6508 if test "x$ac_cv_func_sleep" = x""yes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define HAVE_SLEEP 1
6511 _ACEOF
6514 done
6517 #AC_CHECK_FUNCS(GetProcessTimes)
6518 for ac_func in getrusage
6519 do :
6520 ac_fn_cxx_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
6521 if test "x$ac_cv_func_getrusage" = x""yes; then :
6522 cat >>confdefs.h <<_ACEOF
6523 #define HAVE_GETRUSAGE 1
6524 _ACEOF
6527 done
6529 for ac_func in times
6530 do :
6531 ac_fn_cxx_check_func "$LINENO" "times" "ac_cv_func_times"
6532 if test "x$ac_cv_func_times" = x""yes; then :
6533 cat >>confdefs.h <<_ACEOF
6534 #define HAVE_TIMES 1
6535 _ACEOF
6538 done
6540 for ac_func in clock
6541 do :
6542 ac_fn_cxx_check_func "$LINENO" "clock" "ac_cv_func_clock"
6543 if test "x$ac_cv_func_clock" = x""yes; then :
6544 cat >>confdefs.h <<_ACEOF
6545 #define HAVE_CLOCK 1
6546 _ACEOF
6549 done
6551 for ac_func in DosQuerySysInfo
6552 do :
6553 ac_fn_cxx_check_func "$LINENO" "DosQuerySysInfo" "ac_cv_func_DosQuerySysInfo"
6554 if test "x$ac_cv_func_DosQuerySysInfo" = x""yes; then :
6555 cat >>confdefs.h <<_ACEOF
6556 #define HAVE_DOSQUERYSYSINFO 1
6557 _ACEOF
6560 done
6563 for ac_func in setitimer
6564 do :
6565 ac_fn_cxx_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
6566 if test "x$ac_cv_func_setitimer" = x""yes; then :
6567 cat >>confdefs.h <<_ACEOF
6568 #define HAVE_SETITIMER 1
6569 _ACEOF
6572 done
6574 for ac_func in dos_setvect
6575 do :
6576 ac_fn_cxx_check_func "$LINENO" "dos_setvect" "ac_cv_func_dos_setvect"
6577 if test "x$ac_cv_func_dos_setvect" = x""yes; then :
6578 cat >>confdefs.h <<_ACEOF
6579 #define HAVE_DOS_SETVECT 1
6580 _ACEOF
6583 done
6585 for ac_func in DosStartTimer
6586 do :
6587 ac_fn_cxx_check_func "$LINENO" "DosStartTimer" "ac_cv_func_DosStartTimer"
6588 if test "x$ac_cv_func_DosStartTimer" = x""yes; then :
6589 cat >>confdefs.h <<_ACEOF
6590 #define HAVE_DOSSTARTTIMER 1
6591 _ACEOF
6594 done
6596 for ac_func in VInstall
6597 do :
6598 ac_fn_cxx_check_func "$LINENO" "VInstall" "ac_cv_func_VInstall"
6599 if test "x$ac_cv_func_VInstall" = x""yes; then :
6600 cat >>confdefs.h <<_ACEOF
6601 #define HAVE_VINSTALL 1
6602 _ACEOF
6605 done
6607 #AC_CHECK_FUNCS(CreateThread)
6609 for ac_func in sigaction
6610 do :
6611 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6612 if test "x$ac_cv_func_sigaction" = x""yes; then :
6613 cat >>confdefs.h <<_ACEOF
6614 #define HAVE_SIGACTION 1
6615 _ACEOF
6618 done
6620 for ac_func in sigemptyset
6621 do :
6622 ac_fn_cxx_check_func "$LINENO" "sigemptyset" "ac_cv_func_sigemptyset"
6623 if test "x$ac_cv_func_sigemptyset" = x""yes; then :
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_SIGEMPTYSET 1
6626 _ACEOF
6629 done
6631 for ac_func in sigaddset
6632 do :
6633 ac_fn_cxx_check_func "$LINENO" "sigaddset" "ac_cv_func_sigaddset"
6634 if test "x$ac_cv_func_sigaddset" = x""yes; then :
6635 cat >>confdefs.h <<_ACEOF
6636 #define HAVE_SIGADDSET 1
6637 _ACEOF
6640 done
6642 for ac_func in sigprocmask
6643 do :
6644 ac_fn_cxx_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
6645 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_SIGPROCMASK 1
6648 _ACEOF
6651 done
6653 for ac_func in signal
6654 do :
6655 ac_fn_cxx_check_func "$LINENO" "signal" "ac_cv_func_signal"
6656 if test "x$ac_cv_func_signal" = x""yes; then :
6657 cat >>confdefs.h <<_ACEOF
6658 #define HAVE_SIGNAL 1
6659 _ACEOF
6662 done
6665 for ac_func in shl_load
6666 do :
6667 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
6668 if test "x$ac_cv_func_shl_load" = x""yes; then :
6669 cat >>confdefs.h <<_ACEOF
6670 #define HAVE_SHL_LOAD 1
6671 _ACEOF
6674 done
6676 #AC_CHECK_FUNCS(LoadLibrary)
6677 for ac_func in DosLoadModule
6678 do :
6679 ac_fn_cxx_check_func "$LINENO" "DosLoadModule" "ac_cv_func_DosLoadModule"
6680 if test "x$ac_cv_func_DosLoadModule" = x""yes; then :
6681 cat >>confdefs.h <<_ACEOF
6682 #define HAVE_DOSLOADMODULE 1
6683 _ACEOF
6686 done
6688 for ac_func in dxe_load
6689 do :
6690 ac_fn_cxx_check_func "$LINENO" "dxe_load" "ac_cv_func_dxe_load"
6691 if test "x$ac_cv_func_dxe_load" = x""yes; then :
6692 cat >>confdefs.h <<_ACEOF
6693 #define HAVE_DXE_LOAD 1
6694 _ACEOF
6697 done
6699 for ac_func in GetDiskFragment
6700 do :
6701 ac_fn_cxx_check_func "$LINENO" "GetDiskFragment" "ac_cv_func_GetDiskFragment"
6702 if test "x$ac_cv_func_GetDiskFragment" = x""yes; then :
6703 cat >>confdefs.h <<_ACEOF
6704 #define HAVE_GETDISKFRAGMENT 1
6705 _ACEOF
6708 done
6710 for ac_func in dlopen
6711 do :
6712 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6713 if test "x$ac_cv_func_dlopen" = x""yes; then :
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_DLOPEN 1
6716 _ACEOF
6719 done
6721 for ac_func in NSLinkModule
6722 do :
6723 ac_fn_cxx_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
6724 if test "x$ac_cv_func_NSLinkModule" = x""yes; then :
6725 cat >>confdefs.h <<_ACEOF
6726 #define HAVE_NSLINKMODULE 1
6727 _ACEOF
6730 done
6731 # has been deprecated by Apple
6733 for ac_func in gethostname
6734 do :
6735 ac_fn_cxx_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
6736 if test "x$ac_cv_func_gethostname" = x""yes; then :
6737 cat >>confdefs.h <<_ACEOF
6738 #define HAVE_GETHOSTNAME 1
6739 _ACEOF
6742 done
6744 for ac_func in inet_pton
6745 do :
6746 ac_fn_cxx_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
6747 if test "x$ac_cv_func_inet_pton" = x""yes; then :
6748 cat >>confdefs.h <<_ACEOF
6749 #define HAVE_INET_PTON 1
6750 _ACEOF
6753 done
6755 for ac_func in gethostbyname
6756 do :
6757 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6758 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6759 cat >>confdefs.h <<_ACEOF
6760 #define HAVE_GETHOSTBYNAME 1
6761 _ACEOF
6764 done
6766 for ac_func in gethostbyaddr
6767 do :
6768 ac_fn_cxx_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
6769 if test "x$ac_cv_func_gethostbyaddr" = x""yes; then :
6770 cat >>confdefs.h <<_ACEOF
6771 #define HAVE_GETHOSTBYADDR 1
6772 _ACEOF
6775 done
6777 for ac_func in getservbyname
6778 do :
6779 ac_fn_cxx_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
6780 if test "x$ac_cv_func_getservbyname" = x""yes; then :
6781 cat >>confdefs.h <<_ACEOF
6782 #define HAVE_GETSERVBYNAME 1
6783 _ACEOF
6786 done
6788 for ac_func in getservbyport
6789 do :
6790 ac_fn_cxx_check_func "$LINENO" "getservbyport" "ac_cv_func_getservbyport"
6791 if test "x$ac_cv_func_getservbyport" = x""yes; then :
6792 cat >>confdefs.h <<_ACEOF
6793 #define HAVE_GETSERVBYPORT 1
6794 _ACEOF
6797 done
6799 for ac_func in getprotobyname
6800 do :
6801 ac_fn_cxx_check_func "$LINENO" "getprotobyname" "ac_cv_func_getprotobyname"
6802 if test "x$ac_cv_func_getprotobyname" = x""yes; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_GETPROTOBYNAME 1
6805 _ACEOF
6808 done
6810 for ac_func in getprotobynumber
6811 do :
6812 ac_fn_cxx_check_func "$LINENO" "getprotobynumber" "ac_cv_func_getprotobynumber"
6813 if test "x$ac_cv_func_getprotobynumber" = x""yes; then :
6814 cat >>confdefs.h <<_ACEOF
6815 #define HAVE_GETPROTOBYNUMBER 1
6816 _ACEOF
6819 done
6821 for ac_func in getnetbyname
6822 do :
6823 ac_fn_cxx_check_func "$LINENO" "getnetbyname" "ac_cv_func_getnetbyname"
6824 if test "x$ac_cv_func_getnetbyname" = x""yes; then :
6825 cat >>confdefs.h <<_ACEOF
6826 #define HAVE_GETNETBYNAME 1
6827 _ACEOF
6830 done
6833 for ac_func in select
6834 do :
6835 ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
6836 if test "x$ac_cv_func_select" = x""yes; then :
6837 cat >>confdefs.h <<_ACEOF
6838 #define HAVE_SELECT 1
6839 _ACEOF
6842 done
6844 #AC_CHECK_FUNCS(MsgWaitForMultipleObjects)
6846 #AC_CHECK_FUNCS(tgetstr)
6847 #AC_CHECK_FUNCS(tigetstr)
6849 for ac_func in openpty
6850 do :
6851 ac_fn_cxx_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
6852 if test "x$ac_cv_func_openpty" = x""yes; then :
6853 cat >>confdefs.h <<_ACEOF
6854 #define HAVE_OPENPTY 1
6855 _ACEOF
6858 done
6860 for ac_func in getpt
6861 do :
6862 ac_fn_cxx_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
6863 if test "x$ac_cv_func_getpt" = x""yes; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_GETPT 1
6866 _ACEOF
6869 done
6871 for ac_func in ptsname
6872 do :
6873 ac_fn_cxx_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname"
6874 if test "x$ac_cv_func_ptsname" = x""yes; then :
6875 cat >>confdefs.h <<_ACEOF
6876 #define HAVE_PTSNAME 1
6877 _ACEOF
6880 done
6883 for ac_func in hstrerror
6884 do :
6885 ac_fn_cxx_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
6886 if test "x$ac_cv_func_hstrerror" = x""yes; then :
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_HSTRERROR 1
6889 _ACEOF
6892 done
6895 for ac_func in get_fpc_csr
6896 do :
6897 ac_fn_cxx_check_func "$LINENO" "get_fpc_csr" "ac_cv_func_get_fpc_csr"
6898 if test "x$ac_cv_func_get_fpc_csr" = x""yes; then :
6899 cat >>confdefs.h <<_ACEOF
6900 #define HAVE_GET_FPC_CSR 1
6901 _ACEOF
6904 done
6909 ###############################################################################
6911 # Check which command line options are supported by $C_COMPILER.
6913 if test "$C_COMP_GNUC" = yes; then
6915 ########## Using gcc...
6917 # Determine which gcc version is being used.
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $C_COMPILER's preprocessor evaluates (__GNUC__*100+__GNUC_MINOR__)>=402&&(__GNUC__*100+__GNUC_MINOR__)<=403" >&5
6920 $as_echo_n "checking how $C_COMPILER's preprocessor evaluates (__GNUC__*100+__GNUC_MINOR__)>=402&&(__GNUC__*100+__GNUC_MINOR__)<=403... " >&6; }
6921 if test "${GCC_42_OR_43+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6925 rm -f conftest.$ac_ext
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6929 main ()
6931 #if (__GNUC__*100+__GNUC_MINOR__)>=402&&(__GNUC__*100+__GNUC_MINOR__)<=403
6932 #else
6933 choke me
6934 #endif
6937 return 0;
6939 _ACEOF
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; then
6945 GCC_42_OR_43="yes"
6946 else
6947 GCC_42_OR_43=""
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_42_OR_43" >&5
6952 $as_echo "$GCC_42_OR_43" >&6; }
6954 # preprocessor options:
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -no-cpp-precomp" >&5
6956 $as_echo_n "checking whether $C_COMPILER accepts -no-cpp-precomp... " >&6; }
6957 if test "${DASH_no_cpp_precomp+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6961 rm -f conftest.$ac_ext
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6965 main ()
6967 return 0;
6969 _ACEOF
6970 ac_test_CFLAGS=${CFLAGS+set}
6971 ac_test_CXXFLAGS=${CXXFLAGS+set}
6972 ac_save_CFLAGS=$CFLAGS
6973 ac_save_CXXFLAGS=$CXXFLAGS
6974 CFLAGS="-no-cpp-precomp"
6975 CXXFLAGS="-no-cpp-precomp"
6976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; then
6981 DASH_no_cpp_precomp=" -no-cpp-precomp"
6982 else
6983 DASH_no_cpp_precomp=""
6985 if test "$ac_test_CFLAGS" = set; then
6986 CFLAGS=$ac_save_CFLAGS
6988 if test "$ac_test_CXXFLAGS" = set; then
6989 CXXFLAGS=$ac_save_CXXFLAGS
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_no_cpp_precomp" >&5
6994 $as_echo "$DASH_no_cpp_precomp" >&6; }
6996 # debugging options:
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -Wall" >&5
6998 $as_echo_n "checking whether $C_COMPILER accepts -Wall... " >&6; }
6999 if test "${DASH_Wall+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7003 rm -f conftest.$ac_ext
7004 cat >conftest.$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7007 main ()
7009 return 0;
7011 _ACEOF
7012 ac_test_CFLAGS=${CFLAGS+set}
7013 ac_test_CXXFLAGS=${CXXFLAGS+set}
7014 ac_save_CFLAGS=$CFLAGS
7015 ac_save_CXXFLAGS=$CXXFLAGS
7016 CFLAGS="-Wall"
7017 CXXFLAGS="-Wall"
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7020 ac_status=$?
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); }; then
7023 DASH_Wall=" -Wall"
7024 else
7025 DASH_Wall=""
7027 if test "$ac_test_CFLAGS" = set; then
7028 CFLAGS=$ac_save_CFLAGS
7030 if test "$ac_test_CXXFLAGS" = set; then
7031 CXXFLAGS=$ac_save_CXXFLAGS
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_Wall" >&5
7036 $as_echo "$DASH_Wall" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -W" >&5
7038 $as_echo_n "checking whether $C_COMPILER accepts -W... " >&6; }
7039 if test "${DASH_W+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7043 rm -f conftest.$ac_ext
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7047 main ()
7049 return 0;
7051 _ACEOF
7052 ac_test_CFLAGS=${CFLAGS+set}
7053 ac_test_CXXFLAGS=${CXXFLAGS+set}
7054 ac_save_CFLAGS=$CFLAGS
7055 ac_save_CXXFLAGS=$CXXFLAGS
7056 CFLAGS="-W"
7057 CXXFLAGS="-W"
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; then
7063 DASH_W=" -W"
7064 else
7065 DASH_W=""
7067 if test "$ac_test_CFLAGS" = set; then
7068 CFLAGS=$ac_save_CFLAGS
7070 if test "$ac_test_CXXFLAGS" = set; then
7071 CXXFLAGS=$ac_save_CXXFLAGS
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_W" >&5
7076 $as_echo "$DASH_W" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -Wno-unused" >&5
7078 $as_echo_n "checking whether $C_COMPILER accepts -Wno-unused... " >&6; }
7079 if test "${DASH_Wno_unused+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7083 rm -f conftest.$ac_ext
7084 cat >conftest.$ac_ext <<_ACEOF
7085 #line $LINENO "configure"
7087 main ()
7089 return 0;
7091 _ACEOF
7092 ac_test_CFLAGS=${CFLAGS+set}
7093 ac_test_CXXFLAGS=${CXXFLAGS+set}
7094 ac_save_CFLAGS=$CFLAGS
7095 ac_save_CXXFLAGS=$CXXFLAGS
7096 CFLAGS="-Wno-unused"
7097 CXXFLAGS="-Wno-unused"
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; then
7103 DASH_Wno_unused=" -Wno-unused"
7104 else
7105 DASH_Wno_unused=""
7107 if test "$ac_test_CFLAGS" = set; then
7108 CFLAGS=$ac_save_CFLAGS
7110 if test "$ac_test_CXXFLAGS" = set; then
7111 CXXFLAGS=$ac_save_CXXFLAGS
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_Wno_unused" >&5
7116 $as_echo "$DASH_Wno_unused" >&6; }
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
7118 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
7119 if test "${DASH_g+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7123 rm -f conftest.$ac_ext
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line $LINENO "configure"
7127 main ()
7129 return 0;
7131 _ACEOF
7132 ac_test_CFLAGS=${CFLAGS+set}
7133 ac_test_CXXFLAGS=${CXXFLAGS+set}
7134 ac_save_CFLAGS=$CFLAGS
7135 ac_save_CXXFLAGS=$CXXFLAGS
7136 CFLAGS="-g"
7137 CXXFLAGS="-g"
7138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139 (eval $ac_link) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; then
7143 DASH_g=" -g"
7144 else
7145 DASH_g=""
7147 if test "$ac_test_CFLAGS" = set; then
7148 CFLAGS=$ac_save_CFLAGS
7150 if test "$ac_test_CXXFLAGS" = set; then
7151 CXXFLAGS=$ac_save_CXXFLAGS
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
7156 $as_echo "$DASH_g" >&6; }
7158 # profiling options:
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -p" >&5
7160 $as_echo_n "checking whether $C_COMPILER accepts -p... " >&6; }
7161 if test "${DASH_p+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7165 rm -f conftest.$ac_ext
7166 cat >conftest.$ac_ext <<_ACEOF
7167 #line $LINENO "configure"
7169 main ()
7171 return 0;
7173 _ACEOF
7174 ac_test_CFLAGS=${CFLAGS+set}
7175 ac_test_CXXFLAGS=${CXXFLAGS+set}
7176 ac_save_CFLAGS=$CFLAGS
7177 ac_save_CXXFLAGS=$CXXFLAGS
7178 CFLAGS="-p"
7179 CXXFLAGS="-p"
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; then
7185 DASH_p=" -p"
7186 else
7187 DASH_p=""
7189 if test "$ac_test_CFLAGS" = set; then
7190 CFLAGS=$ac_save_CFLAGS
7192 if test "$ac_test_CXXFLAGS" = set; then
7193 CXXFLAGS=$ac_save_CXXFLAGS
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_p" >&5
7198 $as_echo "$DASH_p" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -pg" >&5
7200 $as_echo_n "checking whether $C_COMPILER accepts -pg... " >&6; }
7201 if test "${DASH_pg+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7205 rm -f conftest.$ac_ext
7206 cat >conftest.$ac_ext <<_ACEOF
7207 #line $LINENO "configure"
7209 main ()
7211 return 0;
7213 _ACEOF
7214 ac_test_CFLAGS=${CFLAGS+set}
7215 ac_test_CXXFLAGS=${CXXFLAGS+set}
7216 ac_save_CFLAGS=$CFLAGS
7217 ac_save_CXXFLAGS=$CXXFLAGS
7218 CFLAGS="-pg"
7219 CXXFLAGS="-pg"
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; then
7225 DASH_pg=" -pg"
7226 else
7227 DASH_pg=""
7229 if test "$ac_test_CFLAGS" = set; then
7230 CFLAGS=$ac_save_CFLAGS
7232 if test "$ac_test_CXXFLAGS" = set; then
7233 CXXFLAGS=$ac_save_CXXFLAGS
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_pg" >&5
7238 $as_echo "$DASH_pg" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -ftest-coverage" >&5
7240 $as_echo_n "checking whether $C_COMPILER accepts -ftest-coverage... " >&6; }
7241 if test "${DASH_ftest_coverage+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7245 rm -f conftest.$ac_ext
7246 cat >conftest.$ac_ext <<_ACEOF
7247 #line $LINENO "configure"
7249 main ()
7251 return 0;
7253 _ACEOF
7254 ac_test_CFLAGS=${CFLAGS+set}
7255 ac_test_CXXFLAGS=${CXXFLAGS+set}
7256 ac_save_CFLAGS=$CFLAGS
7257 ac_save_CXXFLAGS=$CXXFLAGS
7258 CFLAGS="-ftest-coverage"
7259 CXXFLAGS="-ftest-coverage"
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; then
7265 DASH_ftest_coverage=" -ftest-coverage"
7266 else
7267 DASH_ftest_coverage=""
7269 if test "$ac_test_CFLAGS" = set; then
7270 CFLAGS=$ac_save_CFLAGS
7272 if test "$ac_test_CXXFLAGS" = set; then
7273 CXXFLAGS=$ac_save_CXXFLAGS
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_ftest_coverage" >&5
7278 $as_echo "$DASH_ftest_coverage" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fprofile-arcs" >&5
7280 $as_echo_n "checking whether $C_COMPILER accepts -fprofile-arcs... " >&6; }
7281 if test "${DASH_fprofile_arcs+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7285 rm -f conftest.$ac_ext
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7289 main ()
7291 return 0;
7293 _ACEOF
7294 ac_test_CFLAGS=${CFLAGS+set}
7295 ac_test_CXXFLAGS=${CXXFLAGS+set}
7296 ac_save_CFLAGS=$CFLAGS
7297 ac_save_CXXFLAGS=$CXXFLAGS
7298 CFLAGS="-fprofile-arcs"
7299 CXXFLAGS="-fprofile-arcs"
7300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7301 (eval $ac_link) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; then
7305 DASH_fprofile_arcs=" -fprofile-arcs"
7306 else
7307 DASH_fprofile_arcs=""
7309 if test "$ac_test_CFLAGS" = set; then
7310 CFLAGS=$ac_save_CFLAGS
7312 if test "$ac_test_CXXFLAGS" = set; then
7313 CXXFLAGS=$ac_save_CXXFLAGS
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fprofile_arcs" >&5
7318 $as_echo "$DASH_fprofile_arcs" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fbranch-probabilities" >&5
7320 $as_echo_n "checking whether $C_COMPILER accepts -fbranch-probabilities... " >&6; }
7321 if test "${DASH_fbranch_probabilities+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7325 rm -f conftest.$ac_ext
7326 cat >conftest.$ac_ext <<_ACEOF
7327 #line $LINENO "configure"
7329 main ()
7331 return 0;
7333 _ACEOF
7334 ac_test_CFLAGS=${CFLAGS+set}
7335 ac_test_CXXFLAGS=${CXXFLAGS+set}
7336 ac_save_CFLAGS=$CFLAGS
7337 ac_save_CXXFLAGS=$CXXFLAGS
7338 CFLAGS="-fbranch-probabilities"
7339 CXXFLAGS="-fbranch-probabilities"
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; then
7345 DASH_fbranch_probabilities=" -fbranch-probabilities"
7346 else
7347 DASH_fbranch_probabilities=""
7349 if test "$ac_test_CFLAGS" = set; then
7350 CFLAGS=$ac_save_CFLAGS
7352 if test "$ac_test_CXXFLAGS" = set; then
7353 CXXFLAGS=$ac_save_CXXFLAGS
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fbranch_probabilities" >&5
7358 $as_echo "$DASH_fbranch_probabilities" >&6; }
7360 # optimization options:
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -O1" >&5
7362 $as_echo_n "checking whether $C_COMPILER accepts -O1... " >&6; }
7363 if test "${DASH_O1+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7367 rm -f conftest.$ac_ext
7368 cat >conftest.$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7371 main ()
7373 return 0;
7375 _ACEOF
7376 ac_test_CFLAGS=${CFLAGS+set}
7377 ac_test_CXXFLAGS=${CXXFLAGS+set}
7378 ac_save_CFLAGS=$CFLAGS
7379 ac_save_CXXFLAGS=$CXXFLAGS
7380 CFLAGS="-O1"
7381 CXXFLAGS="-O1"
7382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; then
7387 DASH_O1=" -O1"
7388 else
7389 DASH_O1=""
7391 if test "$ac_test_CFLAGS" = set; then
7392 CFLAGS=$ac_save_CFLAGS
7394 if test "$ac_test_CXXFLAGS" = set; then
7395 CXXFLAGS=$ac_save_CXXFLAGS
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_O1" >&5
7400 $as_echo "$DASH_O1" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fno-math-errno" >&5
7402 $as_echo_n "checking whether $C_COMPILER accepts -fno-math-errno... " >&6; }
7403 if test "${DASH_fno_math_errno+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7407 rm -f conftest.$ac_ext
7408 cat >conftest.$ac_ext <<_ACEOF
7409 #line $LINENO "configure"
7411 main ()
7413 return 0;
7415 _ACEOF
7416 ac_test_CFLAGS=${CFLAGS+set}
7417 ac_test_CXXFLAGS=${CXXFLAGS+set}
7418 ac_save_CFLAGS=$CFLAGS
7419 ac_save_CXXFLAGS=$CXXFLAGS
7420 CFLAGS="-fno-math-errno"
7421 CXXFLAGS="-fno-math-errno"
7422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7423 (eval $ac_link) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; then
7427 DASH_fno_math_errno=" -fno-math-errno"
7428 else
7429 DASH_fno_math_errno=""
7431 if test "$ac_test_CFLAGS" = set; then
7432 CFLAGS=$ac_save_CFLAGS
7434 if test "$ac_test_CXXFLAGS" = set; then
7435 CXXFLAGS=$ac_save_CXXFLAGS
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fno_math_errno" >&5
7440 $as_echo "$DASH_fno_math_errno" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fschedule-insns2" >&5
7442 $as_echo_n "checking whether $C_COMPILER accepts -fschedule-insns2... " >&6; }
7443 if test "${DASH_fschedule_insns2+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7447 rm -f conftest.$ac_ext
7448 cat >conftest.$ac_ext <<_ACEOF
7449 #line $LINENO "configure"
7451 main ()
7453 return 0;
7455 _ACEOF
7456 ac_test_CFLAGS=${CFLAGS+set}
7457 ac_test_CXXFLAGS=${CXXFLAGS+set}
7458 ac_save_CFLAGS=$CFLAGS
7459 ac_save_CXXFLAGS=$CXXFLAGS
7460 CFLAGS="-fschedule-insns2"
7461 CXXFLAGS="-fschedule-insns2"
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463 (eval $ac_link) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; then
7467 DASH_fschedule_insns2=" -fschedule-insns2"
7468 else
7469 DASH_fschedule_insns2=""
7471 if test "$ac_test_CFLAGS" = set; then
7472 CFLAGS=$ac_save_CFLAGS
7474 if test "$ac_test_CXXFLAGS" = set; then
7475 CXXFLAGS=$ac_save_CXXFLAGS
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fschedule_insns2" >&5
7480 $as_echo "$DASH_fschedule_insns2" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fno-trapping-math" >&5
7482 $as_echo_n "checking whether $C_COMPILER accepts -fno-trapping-math... " >&6; }
7483 if test "${DASH_fno_trapping_math+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7487 rm -f conftest.$ac_ext
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7491 main ()
7493 return 0;
7495 _ACEOF
7496 ac_test_CFLAGS=${CFLAGS+set}
7497 ac_test_CXXFLAGS=${CXXFLAGS+set}
7498 ac_save_CFLAGS=$CFLAGS
7499 ac_save_CXXFLAGS=$CXXFLAGS
7500 CFLAGS="-fno-trapping-math"
7501 CXXFLAGS="-fno-trapping-math"
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; then
7507 DASH_fno_trapping_math=" -fno-trapping-math"
7508 else
7509 DASH_fno_trapping_math=""
7511 if test "$ac_test_CFLAGS" = set; then
7512 CFLAGS=$ac_save_CFLAGS
7514 if test "$ac_test_CXXFLAGS" = set; then
7515 CXXFLAGS=$ac_save_CXXFLAGS
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fno_trapping_math" >&5
7520 $as_echo "$DASH_fno_trapping_math" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fno-strict-aliasing" >&5
7522 $as_echo_n "checking whether $C_COMPILER accepts -fno-strict-aliasing... " >&6; }
7523 if test "${DASH_fno_strict_aliasing+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7527 rm -f conftest.$ac_ext
7528 cat >conftest.$ac_ext <<_ACEOF
7529 #line $LINENO "configure"
7531 main ()
7533 return 0;
7535 _ACEOF
7536 ac_test_CFLAGS=${CFLAGS+set}
7537 ac_test_CXXFLAGS=${CXXFLAGS+set}
7538 ac_save_CFLAGS=$CFLAGS
7539 ac_save_CXXFLAGS=$CXXFLAGS
7540 CFLAGS="-fno-strict-aliasing"
7541 CXXFLAGS="-fno-strict-aliasing"
7542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543 (eval $ac_link) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; then
7547 DASH_fno_strict_aliasing=" -fno-strict-aliasing"
7548 else
7549 DASH_fno_strict_aliasing=""
7551 if test "$ac_test_CFLAGS" = set; then
7552 CFLAGS=$ac_save_CFLAGS
7554 if test "$ac_test_CXXFLAGS" = set; then
7555 CXXFLAGS=$ac_save_CXXFLAGS
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fno_strict_aliasing" >&5
7560 $as_echo "$DASH_fno_strict_aliasing" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fwrapv" >&5
7562 $as_echo_n "checking whether $C_COMPILER accepts -fwrapv... " >&6; }
7563 if test "${DASH_fwrapv+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7567 rm -f conftest.$ac_ext
7568 cat >conftest.$ac_ext <<_ACEOF
7569 #line $LINENO "configure"
7571 main ()
7573 return 0;
7575 _ACEOF
7576 ac_test_CFLAGS=${CFLAGS+set}
7577 ac_test_CXXFLAGS=${CXXFLAGS+set}
7578 ac_save_CFLAGS=$CFLAGS
7579 ac_save_CXXFLAGS=$CXXFLAGS
7580 CFLAGS="-fwrapv"
7581 CXXFLAGS="-fwrapv"
7582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7583 (eval $ac_link) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; then
7587 DASH_fwrapv=" -fwrapv"
7588 else
7589 DASH_fwrapv=""
7591 if test "$ac_test_CFLAGS" = set; then
7592 CFLAGS=$ac_save_CFLAGS
7594 if test "$ac_test_CXXFLAGS" = set; then
7595 CXXFLAGS=$ac_save_CXXFLAGS
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fwrapv" >&5
7600 $as_echo "$DASH_fwrapv" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fomit-frame-pointer" >&5
7602 $as_echo_n "checking whether $C_COMPILER accepts -fomit-frame-pointer... " >&6; }
7603 if test "${DASH_fomit_frame_pointer+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7607 rm -f conftest.$ac_ext
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7611 main ()
7613 return 0;
7615 _ACEOF
7616 ac_test_CFLAGS=${CFLAGS+set}
7617 ac_test_CXXFLAGS=${CXXFLAGS+set}
7618 ac_save_CFLAGS=$CFLAGS
7619 ac_save_CXXFLAGS=$CXXFLAGS
7620 CFLAGS="-fomit-frame-pointer"
7621 CXXFLAGS="-fomit-frame-pointer"
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>&5
7624 ac_status=$?
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; then
7627 DASH_fomit_frame_pointer=" -fomit-frame-pointer"
7628 else
7629 DASH_fomit_frame_pointer=""
7631 if test "$ac_test_CFLAGS" = set; then
7632 CFLAGS=$ac_save_CFLAGS
7634 if test "$ac_test_CXXFLAGS" = set; then
7635 CXXFLAGS=$ac_save_CXXFLAGS
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fomit_frame_pointer" >&5
7640 $as_echo "$DASH_fomit_frame_pointer" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fno-move-loop-invariants" >&5
7642 $as_echo_n "checking whether $C_COMPILER accepts -fno-move-loop-invariants... " >&6; }
7643 if test "${DASH_fno_move_loop_invariants+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7647 rm -f conftest.$ac_ext
7648 cat >conftest.$ac_ext <<_ACEOF
7649 #line $LINENO "configure"
7651 main ()
7653 return 0;
7655 _ACEOF
7656 ac_test_CFLAGS=${CFLAGS+set}
7657 ac_test_CXXFLAGS=${CXXFLAGS+set}
7658 ac_save_CFLAGS=$CFLAGS
7659 ac_save_CXXFLAGS=$CXXFLAGS
7660 CFLAGS="-fno-move-loop-invariants"
7661 CXXFLAGS="-fno-move-loop-invariants"
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; then
7667 DASH_fno_move_loop_invariants=" -fno-move-loop-invariants"
7668 else
7669 DASH_fno_move_loop_invariants=""
7671 if test "$ac_test_CFLAGS" = set; then
7672 CFLAGS=$ac_save_CFLAGS
7674 if test "$ac_test_CXXFLAGS" = set; then
7675 CXXFLAGS=$ac_save_CXXFLAGS
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fno_move_loop_invariants" >&5
7680 $as_echo "$DASH_fno_move_loop_invariants" >&6; }
7682 # It isn't clear these are useful:
7683 # AC_CHECK_C_COMPILER_OPT(-fexpensive-optimizations,DASH_fexpensive_optimizations)
7684 # AC_CHECK_C_COMPILER_OPT(-fforce-addr,DASH_fforce_addr)
7685 # AC_CHECK_C_COMPILER_OPT(-fpeephole2,DASH_fpeephole2)
7686 # AC_CHECK_C_COMPILER_OPT(-falign-jumps,DASH_falign_jumps)
7687 # AC_CHECK_C_COMPILER_OPT(-falign-functions,DASH_falign_functions)
7688 # AC_CHECK_C_COMPILER_OPT(-fno-function-cse,DASH_fno_function_cse)
7689 # AC_CHECK_C_COMPILER_OPT(-ftree-copyrename,DASH_ftree_copyrename)
7690 # AC_CHECK_C_COMPILER_OPT(-ftree-fre,DASH_ftree_fre)
7691 # AC_CHECK_C_COMPILER_OPT(-ftree-dce,DASH_ftree_dce)
7692 # AC_CHECK_C_COMPILER_OPT(-fschedule-interblock,DASH_fschedule_interblock)
7693 # AC_CHECK_C_COMPILER_OPT(-fregmove,DASH_fregmove)
7694 # AC_CHECK_C_COMPILER_OPT(-fgcse-las,DASH_fgcse_las)
7695 # AC_CHECK_C_COMPILER_OPT(-freorder-functions,DASH_freorder_functions)
7696 # AC_CHECK_C_COMPILER_OPT(-fcaller-saves,DASH_fcaller_saves)
7697 # AC_CHECK_C_COMPILER_OPT(-fno-if-conversion2,DASH_fno_if_conversion2)
7698 # AC_CHECK_C_COMPILER_OPT(-foptimize-sibling-calls,DASH_foptimize_sibling_calls)
7699 # AC_CHECK_C_COMPILER_OPT(-fcse-skip-blocks,DASH_fcse_skip_blocks)
7700 # AC_CHECK_C_COMPILER_OPT(-funit-at-a-time,DASH_funit_at_a_time)
7701 # AC_CHECK_C_COMPILER_OPT(-finline-functions,DASH_finline_functions)
7703 if test "$ENABLE_GCC_OPTS" = yes; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fmodulo-sched" >&5
7705 $as_echo_n "checking whether $C_COMPILER accepts -fmodulo-sched... " >&6; }
7706 if test "${DASH_fmodulo_sched+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7710 rm -f conftest.$ac_ext
7711 cat >conftest.$ac_ext <<_ACEOF
7712 #line $LINENO "configure"
7714 main ()
7716 return 0;
7718 _ACEOF
7719 ac_test_CFLAGS=${CFLAGS+set}
7720 ac_test_CXXFLAGS=${CXXFLAGS+set}
7721 ac_save_CFLAGS=$CFLAGS
7722 ac_save_CXXFLAGS=$CXXFLAGS
7723 CFLAGS="-fmodulo-sched"
7724 CXXFLAGS="-fmodulo-sched"
7725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7726 (eval $ac_link) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; then
7730 DASH_fmodulo_sched=" -fmodulo-sched"
7731 else
7732 DASH_fmodulo_sched=""
7734 if test "$ac_test_CFLAGS" = set; then
7735 CFLAGS=$ac_save_CFLAGS
7737 if test "$ac_test_CXXFLAGS" = set; then
7738 CXXFLAGS=$ac_save_CXXFLAGS
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fmodulo_sched" >&5
7743 $as_echo "$DASH_fmodulo_sched" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -freschedule-modulo-scheduled-loops" >&5
7745 $as_echo_n "checking whether $C_COMPILER accepts -freschedule-modulo-scheduled-loops... " >&6; }
7746 if test "${DASH_freschedule_modulo_scheduled_loops+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7750 rm -f conftest.$ac_ext
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7754 main ()
7756 return 0;
7758 _ACEOF
7759 ac_test_CFLAGS=${CFLAGS+set}
7760 ac_test_CXXFLAGS=${CXXFLAGS+set}
7761 ac_save_CFLAGS=$CFLAGS
7762 ac_save_CXXFLAGS=$CXXFLAGS
7763 CFLAGS="-freschedule-modulo-scheduled-loops"
7764 CXXFLAGS="-freschedule-modulo-scheduled-loops"
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766 (eval $ac_link) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; then
7770 DASH_freschedule_modulo_scheduled_loops=" -freschedule-modulo-scheduled-loops"
7771 else
7772 DASH_freschedule_modulo_scheduled_loops=""
7774 if test "$ac_test_CFLAGS" = set; then
7775 CFLAGS=$ac_save_CFLAGS
7777 if test "$ac_test_CXXFLAGS" = set; then
7778 CXXFLAGS=$ac_save_CXXFLAGS
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_freschedule_modulo_scheduled_loops" >&5
7783 $as_echo "$DASH_freschedule_modulo_scheduled_loops" >&6; }
7787 # code generation options:
7788 case "$target_os" in
7790 mingw*) # no special code generation options needed by MinGW
7793 cygwin*) # no special code generation options needed by cygwin
7796 *) # check for code generation options for other systems
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fPIC" >&5
7798 $as_echo_n "checking whether $C_COMPILER accepts -fPIC... " >&6; }
7799 if test "${DASH_fPIC+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7803 rm -f conftest.$ac_ext
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7807 main ()
7809 return 0;
7811 _ACEOF
7812 ac_test_CFLAGS=${CFLAGS+set}
7813 ac_test_CXXFLAGS=${CXXFLAGS+set}
7814 ac_save_CFLAGS=$CFLAGS
7815 ac_save_CXXFLAGS=$CXXFLAGS
7816 CFLAGS="-fPIC"
7817 CXXFLAGS="-fPIC"
7818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; then
7823 DASH_fPIC=" -fPIC"
7824 else
7825 DASH_fPIC=""
7827 if test "$ac_test_CFLAGS" = set; then
7828 CFLAGS=$ac_save_CFLAGS
7830 if test "$ac_test_CXXFLAGS" = set; then
7831 CXXFLAGS=$ac_save_CXXFLAGS
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fPIC" >&5
7836 $as_echo "$DASH_fPIC" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fpic" >&5
7838 $as_echo_n "checking whether $C_COMPILER accepts -fpic... " >&6; }
7839 if test "${DASH_fpic+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7843 rm -f conftest.$ac_ext
7844 cat >conftest.$ac_ext <<_ACEOF
7845 #line $LINENO "configure"
7847 main ()
7849 return 0;
7851 _ACEOF
7852 ac_test_CFLAGS=${CFLAGS+set}
7853 ac_test_CXXFLAGS=${CXXFLAGS+set}
7854 ac_save_CFLAGS=$CFLAGS
7855 ac_save_CXXFLAGS=$CXXFLAGS
7856 CFLAGS="-fpic"
7857 CXXFLAGS="-fpic"
7858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; then
7863 DASH_fpic=" -fpic"
7864 else
7865 DASH_fpic=""
7867 if test "$ac_test_CFLAGS" = set; then
7868 CFLAGS=$ac_save_CFLAGS
7870 if test "$ac_test_CXXFLAGS" = set; then
7871 CXXFLAGS=$ac_save_CXXFLAGS
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fpic" >&5
7876 $as_echo "$DASH_fpic" >&6; }
7878 esac
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fno-common" >&5
7880 $as_echo_n "checking whether $C_COMPILER accepts -fno-common... " >&6; }
7881 if test "${DASH_fno_common+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7885 rm -f conftest.$ac_ext
7886 cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7889 main ()
7891 return 0;
7893 _ACEOF
7894 ac_test_CFLAGS=${CFLAGS+set}
7895 ac_test_CXXFLAGS=${CXXFLAGS+set}
7896 ac_save_CFLAGS=$CFLAGS
7897 ac_save_CXXFLAGS=$CXXFLAGS
7898 CFLAGS="-fno-common"
7899 CXXFLAGS="-fno-common"
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; then
7905 DASH_fno_common=" -fno-common"
7906 else
7907 DASH_fno_common=""
7909 if test "$ac_test_CFLAGS" = set; then
7910 CFLAGS=$ac_save_CFLAGS
7912 if test "$ac_test_CXXFLAGS" = set; then
7913 CXXFLAGS=$ac_save_CXXFLAGS
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fno_common" >&5
7918 $as_echo "$DASH_fno_common" >&6; }
7920 # machine specific options:
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -mieee" >&5
7922 $as_echo_n "checking whether $C_COMPILER accepts -mieee... " >&6; }
7923 if test "${DASH_mieee+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7927 rm -f conftest.$ac_ext
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7931 main ()
7933 return 0;
7935 _ACEOF
7936 ac_test_CFLAGS=${CFLAGS+set}
7937 ac_test_CXXFLAGS=${CXXFLAGS+set}
7938 ac_save_CFLAGS=$CFLAGS
7939 ac_save_CXXFLAGS=$CXXFLAGS
7940 CFLAGS="-mieee"
7941 CXXFLAGS="-mieee"
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; then
7947 DASH_mieee=" -mieee"
7948 else
7949 DASH_mieee=""
7951 if test "$ac_test_CFLAGS" = set; then
7952 CFLAGS=$ac_save_CFLAGS
7954 if test "$ac_test_CXXFLAGS" = set; then
7955 CXXFLAGS=$ac_save_CXXFLAGS
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_mieee" >&5
7960 $as_echo "$DASH_mieee" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -mieee-with-inexact" >&5
7962 $as_echo_n "checking whether $C_COMPILER accepts -mieee-with-inexact... " >&6; }
7963 if test "${DASH_mieee_with_inexact+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7967 rm -f conftest.$ac_ext
7968 cat >conftest.$ac_ext <<_ACEOF
7969 #line $LINENO "configure"
7971 main ()
7973 return 0;
7975 _ACEOF
7976 ac_test_CFLAGS=${CFLAGS+set}
7977 ac_test_CXXFLAGS=${CXXFLAGS+set}
7978 ac_save_CFLAGS=$CFLAGS
7979 ac_save_CXXFLAGS=$CXXFLAGS
7980 CFLAGS="-mieee-with-inexact"
7981 CXXFLAGS="-mieee-with-inexact"
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983 (eval $ac_link) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; then
7987 DASH_mieee_with_inexact=" -mieee-with-inexact"
7988 else
7989 DASH_mieee_with_inexact=""
7991 if test "$ac_test_CFLAGS" = set; then
7992 CFLAGS=$ac_save_CFLAGS
7994 if test "$ac_test_CXXFLAGS" = set; then
7995 CXXFLAGS=$ac_save_CXXFLAGS
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_mieee_with_inexact" >&5
8000 $as_echo "$DASH_mieee_with_inexact" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -mieee-fp" >&5
8002 $as_echo_n "checking whether $C_COMPILER accepts -mieee-fp... " >&6; }
8003 if test "${DASH_mieee_fp+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8007 rm -f conftest.$ac_ext
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8011 main ()
8013 return 0;
8015 _ACEOF
8016 ac_test_CFLAGS=${CFLAGS+set}
8017 ac_test_CXXFLAGS=${CXXFLAGS+set}
8018 ac_save_CFLAGS=$CFLAGS
8019 ac_save_CXXFLAGS=$CXXFLAGS
8020 CFLAGS="-mieee-fp"
8021 CXXFLAGS="-mieee-fp"
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; then
8027 DASH_mieee_fp=" -mieee-fp"
8028 else
8029 DASH_mieee_fp=""
8031 if test "$ac_test_CFLAGS" = set; then
8032 CFLAGS=$ac_save_CFLAGS
8034 if test "$ac_test_CXXFLAGS" = set; then
8035 CXXFLAGS=$ac_save_CXXFLAGS
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_mieee_fp" >&5
8040 $as_echo "$DASH_mieee_fp" >&6; }
8042 # linking options:
8043 case "$target_os" in
8045 mingw*) # no special options needed by MinGW
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
8047 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
8048 if test "${DASH_shared+set}" = set; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8052 rm -f conftest.$ac_ext
8053 cat >conftest.$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8056 main ()
8058 return 0;
8060 _ACEOF
8061 ac_test_CFLAGS=${CFLAGS+set}
8062 ac_test_CXXFLAGS=${CXXFLAGS+set}
8063 ac_save_CFLAGS=$CFLAGS
8064 ac_save_CXXFLAGS=$CXXFLAGS
8065 CFLAGS="-shared$DASH_fPIC$DASH_fpic"
8066 CXXFLAGS="-shared$DASH_fPIC$DASH_fpic"
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; then
8072 DASH_shared=" -shared"
8073 else
8074 DASH_shared=""
8076 if test "$ac_test_CFLAGS" = set; then
8077 CFLAGS=$ac_save_CFLAGS
8079 if test "$ac_test_CXXFLAGS" = set; then
8080 CXXFLAGS=$ac_save_CXXFLAGS
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
8085 $as_echo "$DASH_shared" >&6; }
8088 cygwin*) # no special options needed by cygwin
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
8090 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
8091 if test "${DASH_shared+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8095 rm -f conftest.$ac_ext
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8099 main ()
8101 return 0;
8103 _ACEOF
8104 ac_test_CFLAGS=${CFLAGS+set}
8105 ac_test_CXXFLAGS=${CXXFLAGS+set}
8106 ac_save_CFLAGS=$CFLAGS
8107 ac_save_CXXFLAGS=$CXXFLAGS
8108 CFLAGS="-shared$DASH_fPIC$DASH_fpic"
8109 CXXFLAGS="-shared$DASH_fPIC$DASH_fpic"
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111 (eval $ac_link) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; then
8115 DASH_shared=" -shared"
8116 else
8117 DASH_shared=""
8119 if test "$ac_test_CFLAGS" = set; then
8120 CFLAGS=$ac_save_CFLAGS
8122 if test "$ac_test_CXXFLAGS" = set; then
8123 CXXFLAGS=$ac_save_CXXFLAGS
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
8128 $as_echo "$DASH_shared" >&6; }
8131 solaris*) # check for options needed by Solaris
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
8133 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
8134 if test "${DASH_shared+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8138 rm -f conftest.$ac_ext
8139 cat >conftest.$ac_ext <<_ACEOF
8140 #line $LINENO "configure"
8142 main ()
8144 return 0;
8146 _ACEOF
8147 ac_test_CFLAGS=${CFLAGS+set}
8148 ac_test_CXXFLAGS=${CXXFLAGS+set}
8149 ac_save_CFLAGS=$CFLAGS
8150 ac_save_CXXFLAGS=$CXXFLAGS
8151 CFLAGS="-shared$DASH_fPIC$DASH_fpic"
8152 CXXFLAGS="-shared$DASH_fPIC$DASH_fpic"
8153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154 (eval $ac_link) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; then
8158 DASH_shared=" -shared"
8159 else
8160 DASH_shared=""
8162 if test "$ac_test_CFLAGS" = set; then
8163 CFLAGS=$ac_save_CFLAGS
8165 if test "$ac_test_CXXFLAGS" = set; then
8166 CXXFLAGS=$ac_save_CXXFLAGS
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
8171 $as_echo "$DASH_shared" >&6; }
8174 hpux*) # check for options needed by HP-UX
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
8176 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
8177 if test "${DASH_shared+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8181 rm -f conftest.$ac_ext
8182 cat >conftest.$ac_ext <<_ACEOF
8183 #line $LINENO "configure"
8185 main ()
8187 return 0;
8189 _ACEOF
8190 ac_test_CFLAGS=${CFLAGS+set}
8191 ac_test_CXXFLAGS=${CXXFLAGS+set}
8192 ac_save_CFLAGS=$CFLAGS
8193 ac_save_CXXFLAGS=$CXXFLAGS
8194 CFLAGS="-shared$DASH_fPIC$DASH_fpic"
8195 CXXFLAGS="-shared$DASH_fPIC$DASH_fpic"
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197 (eval $ac_link) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; then
8201 DASH_shared=" -shared"
8202 else
8203 DASH_shared=""
8205 if test "$ac_test_CFLAGS" = set; then
8206 CFLAGS=$ac_save_CFLAGS
8208 if test "$ac_test_CXXFLAGS" = set; then
8209 CXXFLAGS=$ac_save_CXXFLAGS
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
8214 $as_echo "$DASH_shared" >&6; }
8217 darwin*) # check for special options added by Apple
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -dynamiclib" >&5
8219 $as_echo_n "checking whether $C_COMPILER accepts -dynamiclib... " >&6; }
8220 if test "${DASH_dynamiclib+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8224 rm -f conftest.$ac_ext
8225 cat >conftest.$ac_ext <<_ACEOF
8226 #line $LINENO "configure"
8228 main ()
8230 return 0;
8232 _ACEOF
8233 ac_test_CFLAGS=${CFLAGS+set}
8234 ac_test_CXXFLAGS=${CXXFLAGS+set}
8235 ac_save_CFLAGS=$CFLAGS
8236 ac_save_CXXFLAGS=$CXXFLAGS
8237 CFLAGS="-dynamiclib"
8238 CXXFLAGS="-dynamiclib"
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240 (eval $ac_link) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; then
8244 DASH_dynamiclib=" -dynamiclib"
8245 else
8246 DASH_dynamiclib=""
8248 if test "$ac_test_CFLAGS" = set; then
8249 CFLAGS=$ac_save_CFLAGS
8251 if test "$ac_test_CXXFLAGS" = set; then
8252 CXXFLAGS=$ac_save_CXXFLAGS
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_dynamiclib" >&5
8257 $as_echo "$DASH_dynamiclib" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -bundle" >&5
8259 $as_echo_n "checking whether $C_COMPILER accepts -bundle... " >&6; }
8260 if test "${DASH_bundle+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8264 rm -f conftest.$ac_ext
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8268 main ()
8270 return 0;
8272 _ACEOF
8273 ac_test_CFLAGS=${CFLAGS+set}
8274 ac_test_CXXFLAGS=${CXXFLAGS+set}
8275 ac_save_CFLAGS=$CFLAGS
8276 ac_save_CXXFLAGS=$CXXFLAGS
8277 CFLAGS="-bundle"
8278 CXXFLAGS="-bundle"
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; then
8284 DASH_bundle=" -bundle"
8285 else
8286 DASH_bundle=""
8288 if test "$ac_test_CFLAGS" = set; then
8289 CFLAGS=$ac_save_CFLAGS
8291 if test "$ac_test_CXXFLAGS" = set; then
8292 CXXFLAGS=$ac_save_CXXFLAGS
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_bundle" >&5
8297 $as_echo "$DASH_bundle" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -flat_namespace -undefined suppress" >&5
8299 $as_echo_n "checking whether $C_COMPILER accepts -flat_namespace -undefined suppress... " >&6; }
8300 if test "${DASH_flat_namespace_undefined_suppress+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8304 rm -f conftest.$ac_ext
8305 cat >conftest.$ac_ext <<_ACEOF
8306 #line $LINENO "configure"
8308 main ()
8310 return 0;
8312 _ACEOF
8313 ac_test_CFLAGS=${CFLAGS+set}
8314 ac_test_CXXFLAGS=${CXXFLAGS+set}
8315 ac_save_CFLAGS=$CFLAGS
8316 ac_save_CXXFLAGS=$CXXFLAGS
8317 CFLAGS="-flat_namespace -undefined suppress"
8318 CXXFLAGS="-flat_namespace -undefined suppress"
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; then
8324 DASH_flat_namespace_undefined_suppress=" -flat_namespace -undefined suppress"
8325 else
8326 DASH_flat_namespace_undefined_suppress=""
8328 if test "$ac_test_CFLAGS" = set; then
8329 CFLAGS=$ac_save_CFLAGS
8331 if test "$ac_test_CXXFLAGS" = set; then
8332 CXXFLAGS=$ac_save_CXXFLAGS
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_flat_namespace_undefined_suppress" >&5
8337 $as_echo "$DASH_flat_namespace_undefined_suppress" >&6; }
8340 *) # for other systems
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -rdynamic" >&5
8342 $as_echo_n "checking whether $C_COMPILER accepts -rdynamic... " >&6; }
8343 if test "${DASH_rdynamic+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8347 rm -f conftest.$ac_ext
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8351 main ()
8353 return 0;
8355 _ACEOF
8356 ac_test_CFLAGS=${CFLAGS+set}
8357 ac_test_CXXFLAGS=${CXXFLAGS+set}
8358 ac_save_CFLAGS=$CFLAGS
8359 ac_save_CXXFLAGS=$CXXFLAGS
8360 CFLAGS="-rdynamic"
8361 CXXFLAGS="-rdynamic"
8362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8363 (eval $ac_link) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; then
8367 DASH_rdynamic=" -rdynamic"
8368 else
8369 DASH_rdynamic=""
8371 if test "$ac_test_CFLAGS" = set; then
8372 CFLAGS=$ac_save_CFLAGS
8374 if test "$ac_test_CXXFLAGS" = set; then
8375 CXXFLAGS=$ac_save_CXXFLAGS
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_rdynamic" >&5
8380 $as_echo "$DASH_rdynamic" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
8382 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
8383 if test "${DASH_shared+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8387 rm -f conftest.$ac_ext
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8391 main ()
8393 return 0;
8395 _ACEOF
8396 ac_test_CFLAGS=${CFLAGS+set}
8397 ac_test_CXXFLAGS=${CXXFLAGS+set}
8398 ac_save_CFLAGS=$CFLAGS
8399 ac_save_CXXFLAGS=$CXXFLAGS
8400 CFLAGS="-shared$DASH_fPIC$DASH_fpic"
8401 CXXFLAGS="-shared$DASH_fPIC$DASH_fpic"
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; then
8407 DASH_shared=" -shared"
8408 else
8409 DASH_shared=""
8411 if test "$ac_test_CFLAGS" = set; then
8412 CFLAGS=$ac_save_CFLAGS
8414 if test "$ac_test_CXXFLAGS" = set; then
8415 CXXFLAGS=$ac_save_CXXFLAGS
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
8420 $as_echo "$DASH_shared" >&6; }
8422 esac
8424 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
8426 case "$target_os" in
8427 darwin*) # avoid the default C preprocessor which is setup for Objective-C
8428 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_no_cpp_precomp"
8430 esac
8432 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_Wno_unused"
8434 if test "$ENABLE_DEBUG" = yes; then
8435 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
8438 if test "$ENABLE_PROFILE" = yes; then
8439 if test "x$DASH_pg" != x; then
8440 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_pg"
8441 else
8442 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_p"
8446 if test "$ENABLE_DEBUG" != yes; then
8447 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_O1$DASH_fno_math_errno$DASH_fschedule_insns2"
8450 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fno_trapping_math$DASH_fno_strict_aliasing$DASH_fwrapv"
8452 # It isn't clear these are useful:
8453 # FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fno_trapping_math$DASH_fno_strict_aliasing$DASH_fwrapv$DASH_fexpensive_optimizations$DASH_fforce_addr$DASH_fpeephole2$DASH_falign_jumps$DASH_falign_functions$DASH_fno_function_cse$DASH_ftree_copyrename$DASH_ftree_fre$DASH_ftree_dce$DASH_fschedule_interblock$DASH_fregmove$DASH_fgcse_las$DASH_freorder_functions$DASH_fcaller_saves$DASH_fno_if_conversion2$DASH_foptimize_sibling_calls$DASH_fcse_skip_blocks$DASH_funit_at_a_time$DASH_finline_functions"
8455 if test "$ENABLE_GCC_OPTS" = yes; then
8456 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fmodulo_sched$DASH_freschedule_modulo_scheduled_loops"
8459 case "$target_os" in
8461 mingw*) # MinGW's setjmp seems to need the frame pointer
8464 *) # other systems are fine as far as I can tell
8465 if test "$ENABLE_DEBUG" != yes -a "$ENABLE_PROFILE" != yes; then
8466 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fomit_frame_pointer"
8469 esac
8471 ENABLE_GCC_MOVE_LOOP_INVARIANTS=yes
8472 if test "$ENABLE_SINGLE_HOST" = yes; then
8473 if test "$GCC_42_OR_43" = yes; then
8474 ENABLE_GCC_MOVE_LOOP_INVARIANTS=no
8478 if test "$ENABLE_GCC_MOVE_LOOP_INVARIANTS" != yes; then
8479 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fno_move_loop_invariants"
8482 if test "$ENABLE_FEEDBACK1" = yes -o "$ENABLE_COVERAGE" = yes; then
8483 $as_echo "#define ___DONT_UNLOAD_DYN_CODE 1" >>confdefs.h
8485 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_fprofile_arcs"
8486 if test "$ENABLE_COVERAGE" = yes; then
8487 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_ftest_coverage"
8491 if test "$ENABLE_FEEDBACK2" = yes; then
8492 $as_echo "#define ___DONT_UNLOAD_DYN_CODE 1" >>confdefs.h
8494 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_fbranch_probabilities"
8497 if test "x$DASH_fPIC" != x; then
8498 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fPIC"
8499 else
8500 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fpic"
8503 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fno_common"
8505 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_mieee$DASH_mieee_with_inexact$DASH_mieee_fp"
8507 case "$target_os" in
8509 darwin*) # check for special options added by Apple
8510 FLAGS_DYN="$FLAGS_DYN$DASH_bundle"
8511 FLAGS_LIB="$FLAGS_LIB$DASH_dynamiclib -install_name \$(libdir)/\$(LIBRARY)"
8512 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_flat_namespace_undefined_suppress"
8515 *) # for other systems
8516 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_rdynamic$DASH_shared"
8517 FLAGS_EXE="$FLAGS_EXE$DASH_rdynamic"
8519 esac
8521 else if test "$C_COMP_VISUALC" = yes; then
8523 ########## Microsoft Visual C++ compiler
8525 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE -nologo -Oityb1 -MT -D_CRT_SECURE_NO_DEPRECATE"
8526 FLAGS_DYN="$FLAGS_DYN -LD"
8528 #else if test "$C_COMP_WATCOMC" = yes; then
8529 #else if test "$C_COMP_BORLANDC" = yes; then
8531 else
8533 ########## Need to guess the C compiler from the OS...
8535 case "$target_os" in
8537 solaris*) ########## Probably using the Sun Workshop C/C++ compiler...
8539 # debugging options:
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
8541 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
8542 if test "${DASH_g+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8546 rm -f conftest.$ac_ext
8547 cat >conftest.$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8550 main ()
8552 return 0;
8554 _ACEOF
8555 ac_test_CFLAGS=${CFLAGS+set}
8556 ac_test_CXXFLAGS=${CXXFLAGS+set}
8557 ac_save_CFLAGS=$CFLAGS
8558 ac_save_CXXFLAGS=$CXXFLAGS
8559 CFLAGS="-g"
8560 CXXFLAGS="-g"
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562 (eval $ac_link) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; then
8566 DASH_g=" -g"
8567 else
8568 DASH_g=""
8570 if test "$ac_test_CFLAGS" = set; then
8571 CFLAGS=$ac_save_CFLAGS
8573 if test "$ac_test_CXXFLAGS" = set; then
8574 CXXFLAGS=$ac_save_CXXFLAGS
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
8579 $as_echo "$DASH_g" >&6; }
8581 # profiling options:
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -p" >&5
8583 $as_echo_n "checking whether $C_COMPILER accepts -p... " >&6; }
8584 if test "${DASH_p+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8588 rm -f conftest.$ac_ext
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8592 main ()
8594 return 0;
8596 _ACEOF
8597 ac_test_CFLAGS=${CFLAGS+set}
8598 ac_test_CXXFLAGS=${CXXFLAGS+set}
8599 ac_save_CFLAGS=$CFLAGS
8600 ac_save_CXXFLAGS=$CXXFLAGS
8601 CFLAGS="-p"
8602 CXXFLAGS="-p"
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; then
8608 DASH_p=" -p"
8609 else
8610 DASH_p=""
8612 if test "$ac_test_CFLAGS" = set; then
8613 CFLAGS=$ac_save_CFLAGS
8615 if test "$ac_test_CXXFLAGS" = set; then
8616 CXXFLAGS=$ac_save_CXXFLAGS
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_p" >&5
8621 $as_echo "$DASH_p" >&6; }
8623 # optimization options:
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -xO2" >&5
8625 $as_echo_n "checking whether $C_COMPILER accepts -xO2... " >&6; }
8626 if test "${DASH_xO2+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8630 rm -f conftest.$ac_ext
8631 cat >conftest.$ac_ext <<_ACEOF
8632 #line $LINENO "configure"
8634 main ()
8636 return 0;
8638 _ACEOF
8639 ac_test_CFLAGS=${CFLAGS+set}
8640 ac_test_CXXFLAGS=${CXXFLAGS+set}
8641 ac_save_CFLAGS=$CFLAGS
8642 ac_save_CXXFLAGS=$CXXFLAGS
8643 CFLAGS="-xO2"
8644 CXXFLAGS="-xO2"
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; then
8650 DASH_xO2=" -xO2"
8651 else
8652 DASH_xO2=""
8654 if test "$ac_test_CFLAGS" = set; then
8655 CFLAGS=$ac_save_CFLAGS
8657 if test "$ac_test_CXXFLAGS" = set; then
8658 CXXFLAGS=$ac_save_CXXFLAGS
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_xO2" >&5
8663 $as_echo "$DASH_xO2" >&6; }
8665 # code generation options:
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -KPIC" >&5
8667 $as_echo_n "checking whether $C_COMPILER accepts -KPIC... " >&6; }
8668 if test "${DASH_KPIC+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8672 rm -f conftest.$ac_ext
8673 cat >conftest.$ac_ext <<_ACEOF
8674 #line $LINENO "configure"
8676 main ()
8678 return 0;
8680 _ACEOF
8681 ac_test_CFLAGS=${CFLAGS+set}
8682 ac_test_CXXFLAGS=${CXXFLAGS+set}
8683 ac_save_CFLAGS=$CFLAGS
8684 ac_save_CXXFLAGS=$CXXFLAGS
8685 CFLAGS="-KPIC"
8686 CXXFLAGS="-KPIC"
8687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8688 (eval $ac_link) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; then
8692 DASH_KPIC=" -KPIC"
8693 else
8694 DASH_KPIC=""
8696 if test "$ac_test_CFLAGS" = set; then
8697 CFLAGS=$ac_save_CFLAGS
8699 if test "$ac_test_CXXFLAGS" = set; then
8700 CXXFLAGS=$ac_save_CXXFLAGS
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_KPIC" >&5
8705 $as_echo "$DASH_KPIC" >&6; }
8707 # linking options:
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -G" >&5
8709 $as_echo_n "checking whether $C_COMPILER accepts -G... " >&6; }
8710 if test "${DASH_G+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8714 rm -f conftest.$ac_ext
8715 cat >conftest.$ac_ext <<_ACEOF
8716 #line $LINENO "configure"
8718 main ()
8720 return 0;
8722 _ACEOF
8723 ac_test_CFLAGS=${CFLAGS+set}
8724 ac_test_CXXFLAGS=${CXXFLAGS+set}
8725 ac_save_CFLAGS=$CFLAGS
8726 ac_save_CXXFLAGS=$CXXFLAGS
8727 CFLAGS="-G"
8728 CXXFLAGS="-G"
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; then
8734 DASH_G=" -G"
8735 else
8736 DASH_G=""
8738 if test "$ac_test_CFLAGS" = set; then
8739 CFLAGS=$ac_save_CFLAGS
8741 if test "$ac_test_CXXFLAGS" = set; then
8742 CXXFLAGS=$ac_save_CXXFLAGS
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_G" >&5
8747 $as_echo "$DASH_G" >&6; }
8749 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
8751 if test "$ENABLE_DEBUG" = yes; then
8752 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
8755 if test "$ENABLE_PROFILE" = yes; then
8756 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_p"
8759 if test "$ENABLE_DEBUG" != yes; then
8760 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_xO2"
8763 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_KPIC"
8765 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_G"
8768 osf*) ########## Probably using the Compaq Tru64 UNIX C/C++ compiler...
8770 # debugging options:
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
8772 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
8773 if test "${DASH_g+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8777 rm -f conftest.$ac_ext
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line $LINENO "configure"
8781 main ()
8783 return 0;
8785 _ACEOF
8786 ac_test_CFLAGS=${CFLAGS+set}
8787 ac_test_CXXFLAGS=${CXXFLAGS+set}
8788 ac_save_CFLAGS=$CFLAGS
8789 ac_save_CXXFLAGS=$CXXFLAGS
8790 CFLAGS="-g"
8791 CXXFLAGS="-g"
8792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793 (eval $ac_link) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; then
8797 DASH_g=" -g"
8798 else
8799 DASH_g=""
8801 if test "$ac_test_CFLAGS" = set; then
8802 CFLAGS=$ac_save_CFLAGS
8804 if test "$ac_test_CXXFLAGS" = set; then
8805 CXXFLAGS=$ac_save_CXXFLAGS
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
8810 $as_echo "$DASH_g" >&6; }
8812 # profiling options:
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -p" >&5
8814 $as_echo_n "checking whether $C_COMPILER accepts -p... " >&6; }
8815 if test "${DASH_p+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8819 rm -f conftest.$ac_ext
8820 cat >conftest.$ac_ext <<_ACEOF
8821 #line $LINENO "configure"
8823 main ()
8825 return 0;
8827 _ACEOF
8828 ac_test_CFLAGS=${CFLAGS+set}
8829 ac_test_CXXFLAGS=${CXXFLAGS+set}
8830 ac_save_CFLAGS=$CFLAGS
8831 ac_save_CXXFLAGS=$CXXFLAGS
8832 CFLAGS="-p"
8833 CXXFLAGS="-p"
8834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; then
8839 DASH_p=" -p"
8840 else
8841 DASH_p=""
8843 if test "$ac_test_CFLAGS" = set; then
8844 CFLAGS=$ac_save_CFLAGS
8846 if test "$ac_test_CXXFLAGS" = set; then
8847 CXXFLAGS=$ac_save_CXXFLAGS
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_p" >&5
8852 $as_echo "$DASH_p" >&6; }
8854 # optimization options:
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -O2" >&5
8856 $as_echo_n "checking whether $C_COMPILER accepts -O2... " >&6; }
8857 if test "${DASH_O2+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8861 rm -f conftest.$ac_ext
8862 cat >conftest.$ac_ext <<_ACEOF
8863 #line $LINENO "configure"
8865 main ()
8867 return 0;
8869 _ACEOF
8870 ac_test_CFLAGS=${CFLAGS+set}
8871 ac_test_CXXFLAGS=${CXXFLAGS+set}
8872 ac_save_CFLAGS=$CFLAGS
8873 ac_save_CXXFLAGS=$CXXFLAGS
8874 CFLAGS="-O2"
8875 CXXFLAGS="-O2"
8876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; then
8881 DASH_O2=" -O2"
8882 else
8883 DASH_O2=""
8885 if test "$ac_test_CFLAGS" = set; then
8886 CFLAGS=$ac_save_CFLAGS
8888 if test "$ac_test_CXXFLAGS" = set; then
8889 CXXFLAGS=$ac_save_CXXFLAGS
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_O2" >&5
8894 $as_echo "$DASH_O2" >&6; }
8896 # code generation options:
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -ieee" >&5
8898 $as_echo_n "checking whether $C_COMPILER accepts -ieee... " >&6; }
8899 if test "${DASH_ieee+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8903 rm -f conftest.$ac_ext
8904 cat >conftest.$ac_ext <<_ACEOF
8905 #line $LINENO "configure"
8907 main ()
8909 return 0;
8911 _ACEOF
8912 ac_test_CFLAGS=${CFLAGS+set}
8913 ac_test_CXXFLAGS=${CXXFLAGS+set}
8914 ac_save_CFLAGS=$CFLAGS
8915 ac_save_CXXFLAGS=$CXXFLAGS
8916 CFLAGS="-ieee"
8917 CXXFLAGS="-ieee"
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; then
8923 DASH_ieee=" -ieee"
8924 else
8925 DASH_ieee=""
8927 if test "$ac_test_CFLAGS" = set; then
8928 CFLAGS=$ac_save_CFLAGS
8930 if test "$ac_test_CXXFLAGS" = set; then
8931 CXXFLAGS=$ac_save_CXXFLAGS
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_ieee" >&5
8936 $as_echo "$DASH_ieee" >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -call_shared" >&5
8938 $as_echo_n "checking whether $C_COMPILER accepts -call_shared... " >&6; }
8939 if test "${DASH_call_shared+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8943 rm -f conftest.$ac_ext
8944 cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8947 main ()
8949 return 0;
8951 _ACEOF
8952 ac_test_CFLAGS=${CFLAGS+set}
8953 ac_test_CXXFLAGS=${CXXFLAGS+set}
8954 ac_save_CFLAGS=$CFLAGS
8955 ac_save_CXXFLAGS=$CXXFLAGS
8956 CFLAGS="-call_shared"
8957 CXXFLAGS="-call_shared"
8958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8959 (eval $ac_link) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; then
8963 DASH_call_shared=" -call_shared"
8964 else
8965 DASH_call_shared=""
8967 if test "$ac_test_CFLAGS" = set; then
8968 CFLAGS=$ac_save_CFLAGS
8970 if test "$ac_test_CXXFLAGS" = set; then
8971 CXXFLAGS=$ac_save_CXXFLAGS
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_call_shared" >&5
8976 $as_echo "$DASH_call_shared" >&6; }
8977 #AC_CHECK_C_COMPILER_OPT(-taso,DASH_taso)
8979 # linking options:
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
8981 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
8982 if test "${DASH_shared+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8986 rm -f conftest.$ac_ext
8987 cat >conftest.$ac_ext <<_ACEOF
8988 #line $LINENO "configure"
8990 main ()
8992 return 0;
8994 _ACEOF
8995 ac_test_CFLAGS=${CFLAGS+set}
8996 ac_test_CXXFLAGS=${CXXFLAGS+set}
8997 ac_save_CFLAGS=$CFLAGS
8998 ac_save_CXXFLAGS=$CXXFLAGS
8999 CFLAGS="-shared"
9000 CXXFLAGS="-shared"
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; then
9006 DASH_shared=" -shared"
9007 else
9008 DASH_shared=""
9010 if test "$ac_test_CFLAGS" = set; then
9011 CFLAGS=$ac_save_CFLAGS
9013 if test "$ac_test_CXXFLAGS" = set; then
9014 CXXFLAGS=$ac_save_CXXFLAGS
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
9019 $as_echo "$DASH_shared" >&6; }
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -expect_unresolved" >&5
9021 $as_echo_n "checking whether $C_COMPILER accepts -expect_unresolved... " >&6; }
9022 if test "${DASH_expect_unresolved+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9026 rm -f conftest.$ac_ext
9027 cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9030 main ()
9032 return 0;
9034 _ACEOF
9035 ac_test_CFLAGS=${CFLAGS+set}
9036 ac_test_CXXFLAGS=${CXXFLAGS+set}
9037 ac_save_CFLAGS=$CFLAGS
9038 ac_save_CXXFLAGS=$CXXFLAGS
9039 CFLAGS="-expect_unresolved"
9040 CXXFLAGS="-expect_unresolved"
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042 (eval $ac_link) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; then
9046 DASH_expect_unresolved=" -expect_unresolved"
9047 else
9048 DASH_expect_unresolved=""
9050 if test "$ac_test_CFLAGS" = set; then
9051 CFLAGS=$ac_save_CFLAGS
9053 if test "$ac_test_CXXFLAGS" = set; then
9054 CXXFLAGS=$ac_save_CXXFLAGS
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_expect_unresolved" >&5
9059 $as_echo "$DASH_expect_unresolved" >&6; }
9061 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
9063 if test "$ENABLE_DEBUG" = yes; then
9064 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
9067 if test "$ENABLE_PROFILE" = yes; then
9068 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_p"
9071 if test "$ENABLE_DEBUG" != yes; then
9072 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_O2"
9075 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_ieee$DASH_call_shared"
9077 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_shared$DASH_expect_unresolved"
9080 irix*) ########## Probably using the MIPSpro C/C++ compiler...
9082 # debugging options:
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -fullwarn" >&5
9084 $as_echo_n "checking whether $C_COMPILER accepts -fullwarn... " >&6; }
9085 if test "${DASH_fullwarn+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9089 rm -f conftest.$ac_ext
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9093 main ()
9095 return 0;
9097 _ACEOF
9098 ac_test_CFLAGS=${CFLAGS+set}
9099 ac_test_CXXFLAGS=${CXXFLAGS+set}
9100 ac_save_CFLAGS=$CFLAGS
9101 ac_save_CXXFLAGS=$CXXFLAGS
9102 CFLAGS="-fullwarn"
9103 CXXFLAGS="-fullwarn"
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; then
9109 DASH_fullwarn=" -fullwarn"
9110 else
9111 DASH_fullwarn=""
9113 if test "$ac_test_CFLAGS" = set; then
9114 CFLAGS=$ac_save_CFLAGS
9116 if test "$ac_test_CXXFLAGS" = set; then
9117 CXXFLAGS=$ac_save_CXXFLAGS
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_fullwarn" >&5
9122 $as_echo "$DASH_fullwarn" >&6; }
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -woff 1110,1174,1209,1552,3201" >&5
9124 $as_echo_n "checking whether $C_COMPILER accepts -woff 1110,1174,1209,1552,3201... " >&6; }
9125 if test "${DASH_woff_1110_1174_1209_1552_3201+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9129 rm -f conftest.$ac_ext
9130 cat >conftest.$ac_ext <<_ACEOF
9131 #line $LINENO "configure"
9133 main ()
9135 return 0;
9137 _ACEOF
9138 ac_test_CFLAGS=${CFLAGS+set}
9139 ac_test_CXXFLAGS=${CXXFLAGS+set}
9140 ac_save_CFLAGS=$CFLAGS
9141 ac_save_CXXFLAGS=$CXXFLAGS
9142 CFLAGS="-woff 1110,1174,1209,1552,3201"
9143 CXXFLAGS="-woff 1110,1174,1209,1552,3201"
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>&5
9146 ac_status=$?
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); }; then
9149 DASH_woff_1110_1174_1209_1552_3201=" -woff 1110,1174,1209,1552,3201"
9150 else
9151 DASH_woff_1110_1174_1209_1552_3201=""
9153 if test "$ac_test_CFLAGS" = set; then
9154 CFLAGS=$ac_save_CFLAGS
9156 if test "$ac_test_CXXFLAGS" = set; then
9157 CXXFLAGS=$ac_save_CXXFLAGS
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_woff_1110_1174_1209_1552_3201" >&5
9162 $as_echo "$DASH_woff_1110_1174_1209_1552_3201" >&6; }
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
9164 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
9165 if test "${DASH_g+set}" = set; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9169 rm -f conftest.$ac_ext
9170 cat >conftest.$ac_ext <<_ACEOF
9171 #line $LINENO "configure"
9173 main ()
9175 return 0;
9177 _ACEOF
9178 ac_test_CFLAGS=${CFLAGS+set}
9179 ac_test_CXXFLAGS=${CXXFLAGS+set}
9180 ac_save_CFLAGS=$CFLAGS
9181 ac_save_CXXFLAGS=$CXXFLAGS
9182 CFLAGS="-g"
9183 CXXFLAGS="-g"
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; then
9189 DASH_g=" -g"
9190 else
9191 DASH_g=""
9193 if test "$ac_test_CFLAGS" = set; then
9194 CFLAGS=$ac_save_CFLAGS
9196 if test "$ac_test_CXXFLAGS" = set; then
9197 CXXFLAGS=$ac_save_CXXFLAGS
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
9202 $as_echo "$DASH_g" >&6; }
9204 # optimization options:
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -O1" >&5
9206 $as_echo_n "checking whether $C_COMPILER accepts -O1... " >&6; }
9207 if test "${DASH_O1+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9211 rm -f conftest.$ac_ext
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9215 main ()
9217 return 0;
9219 _ACEOF
9220 ac_test_CFLAGS=${CFLAGS+set}
9221 ac_test_CXXFLAGS=${CXXFLAGS+set}
9222 ac_save_CFLAGS=$CFLAGS
9223 ac_save_CXXFLAGS=$CXXFLAGS
9224 CFLAGS="-O1"
9225 CXXFLAGS="-O1"
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; then
9231 DASH_O1=" -O1"
9232 else
9233 DASH_O1=""
9235 if test "$ac_test_CFLAGS" = set; then
9236 CFLAGS=$ac_save_CFLAGS
9238 if test "$ac_test_CXXFLAGS" = set; then
9239 CXXFLAGS=$ac_save_CXXFLAGS
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_O1" >&5
9244 $as_echo "$DASH_O1" >&6; }
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -OPT:Olimit=0" >&5
9246 $as_echo_n "checking whether $C_COMPILER accepts -OPT:Olimit=0... " >&6; }
9247 if test "${DASH_OPT_Olimit_0+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9251 rm -f conftest.$ac_ext
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9255 main ()
9257 return 0;
9259 _ACEOF
9260 ac_test_CFLAGS=${CFLAGS+set}
9261 ac_test_CXXFLAGS=${CXXFLAGS+set}
9262 ac_save_CFLAGS=$CFLAGS
9263 ac_save_CXXFLAGS=$CXXFLAGS
9264 CFLAGS="-OPT:Olimit=0"
9265 CXXFLAGS="-OPT:Olimit=0"
9266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267 (eval $ac_link) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; then
9271 DASH_OPT_Olimit_0=" -OPT:Olimit=0"
9272 else
9273 DASH_OPT_Olimit_0=""
9275 if test "$ac_test_CFLAGS" = set; then
9276 CFLAGS=$ac_save_CFLAGS
9278 if test "$ac_test_CXXFLAGS" = set; then
9279 CXXFLAGS=$ac_save_CXXFLAGS
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_OPT_Olimit_0" >&5
9284 $as_echo "$DASH_OPT_Olimit_0" >&6; }
9286 # code generation options:
9287 #AC_CHECK_C_COMPILER_OPT(-KPIC,DASH_KPIC)
9288 #AC_CHECK_C_COMPILER_OPT(-non_shared,DASH_non_shared)
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -TENV:large_GOT" >&5
9290 $as_echo_n "checking whether $C_COMPILER accepts -TENV:large_GOT... " >&6; }
9291 if test "${DASH_TENV_large_GOT+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9295 rm -f conftest.$ac_ext
9296 cat >conftest.$ac_ext <<_ACEOF
9297 #line $LINENO "configure"
9299 main ()
9301 return 0;
9303 _ACEOF
9304 ac_test_CFLAGS=${CFLAGS+set}
9305 ac_test_CXXFLAGS=${CXXFLAGS+set}
9306 ac_save_CFLAGS=$CFLAGS
9307 ac_save_CXXFLAGS=$CXXFLAGS
9308 CFLAGS="-TENV:large_GOT"
9309 CXXFLAGS="-TENV:large_GOT"
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; then
9315 DASH_TENV_large_GOT=" -TENV:large_GOT"
9316 else
9317 DASH_TENV_large_GOT=""
9319 if test "$ac_test_CFLAGS" = set; then
9320 CFLAGS=$ac_save_CFLAGS
9322 if test "$ac_test_CXXFLAGS" = set; then
9323 CXXFLAGS=$ac_save_CXXFLAGS
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_TENV_large_GOT" >&5
9328 $as_echo "$DASH_TENV_large_GOT" >&6; }
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -OPT:IEEE_comparisons=ON" >&5
9330 $as_echo_n "checking whether $C_COMPILER accepts -OPT:IEEE_comparisons=ON... " >&6; }
9331 if test "${DASH_OPT_IEEE_comparisons_ON+set}" = set; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9335 rm -f conftest.$ac_ext
9336 cat >conftest.$ac_ext <<_ACEOF
9337 #line $LINENO "configure"
9339 main ()
9341 return 0;
9343 _ACEOF
9344 ac_test_CFLAGS=${CFLAGS+set}
9345 ac_test_CXXFLAGS=${CXXFLAGS+set}
9346 ac_save_CFLAGS=$CFLAGS
9347 ac_save_CXXFLAGS=$CXXFLAGS
9348 CFLAGS="-OPT:IEEE_comparisons=ON"
9349 CXXFLAGS="-OPT:IEEE_comparisons=ON"
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; then
9355 DASH_OPT_IEEE_comparisons_ON=" -OPT:IEEE_comparisons=ON"
9356 else
9357 DASH_OPT_IEEE_comparisons_ON=""
9359 if test "$ac_test_CFLAGS" = set; then
9360 CFLAGS=$ac_save_CFLAGS
9362 if test "$ac_test_CXXFLAGS" = set; then
9363 CXXFLAGS=$ac_save_CXXFLAGS
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_OPT_IEEE_comparisons_ON" >&5
9368 $as_echo "$DASH_OPT_IEEE_comparisons_ON" >&6; }
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -OPT:IEEE_NaN_inf=ON" >&5
9370 $as_echo_n "checking whether $C_COMPILER accepts -OPT:IEEE_NaN_inf=ON... " >&6; }
9371 if test "${DASH_OPT_IEEE_NaN_inf_ON+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9375 rm -f conftest.$ac_ext
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9379 main ()
9381 return 0;
9383 _ACEOF
9384 ac_test_CFLAGS=${CFLAGS+set}
9385 ac_test_CXXFLAGS=${CXXFLAGS+set}
9386 ac_save_CFLAGS=$CFLAGS
9387 ac_save_CXXFLAGS=$CXXFLAGS
9388 CFLAGS="-OPT:IEEE_NaN_inf=ON"
9389 CXXFLAGS="-OPT:IEEE_NaN_inf=ON"
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; then
9395 DASH_OPT_IEEE_NaN_inf_ON=" -OPT:IEEE_NaN_inf=ON"
9396 else
9397 DASH_OPT_IEEE_NaN_inf_ON=""
9399 if test "$ac_test_CFLAGS" = set; then
9400 CFLAGS=$ac_save_CFLAGS
9402 if test "$ac_test_CXXFLAGS" = set; then
9403 CXXFLAGS=$ac_save_CXXFLAGS
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_OPT_IEEE_NaN_inf_ON" >&5
9408 $as_echo "$DASH_OPT_IEEE_NaN_inf_ON" >&6; }
9410 # linking options:
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
9412 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
9413 if test "${DASH_shared+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9417 rm -f conftest.$ac_ext
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9421 main ()
9423 return 0;
9425 _ACEOF
9426 ac_test_CFLAGS=${CFLAGS+set}
9427 ac_test_CXXFLAGS=${CXXFLAGS+set}
9428 ac_save_CFLAGS=$CFLAGS
9429 ac_save_CXXFLAGS=$CXXFLAGS
9430 CFLAGS="-shared"
9431 CXXFLAGS="-shared"
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; then
9437 DASH_shared=" -shared"
9438 else
9439 DASH_shared=""
9441 if test "$ac_test_CFLAGS" = set; then
9442 CFLAGS=$ac_save_CFLAGS
9444 if test "$ac_test_CXXFLAGS" = set; then
9445 CXXFLAGS=$ac_save_CXXFLAGS
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
9450 $as_echo "$DASH_shared" >&6; }
9452 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
9454 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_fullwarn$DASH_woff_1110_1174_1209_1552_3201"
9456 if test "$ENABLE_DEBUG" = yes; then
9457 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
9460 if test "$ENABLE_DEBUG" != yes; then
9461 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_O1$DASH_OPT_Olimit_0"
9464 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_TENV_large_GOT$DASH_OPT_IEEE_comparisons_ON$DASH_OPT_IEEE_NaN_inf_ON"
9466 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_shared"
9469 hpux*) ########## Probably using the HP-UX compiler...
9471 # debugging options:
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
9473 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
9474 if test "${DASH_g+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9478 rm -f conftest.$ac_ext
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9482 main ()
9484 return 0;
9486 _ACEOF
9487 ac_test_CFLAGS=${CFLAGS+set}
9488 ac_test_CXXFLAGS=${CXXFLAGS+set}
9489 ac_save_CFLAGS=$CFLAGS
9490 ac_save_CXXFLAGS=$CXXFLAGS
9491 CFLAGS="-g"
9492 CXXFLAGS="-g"
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; then
9498 DASH_g=" -g"
9499 else
9500 DASH_g=""
9502 if test "$ac_test_CFLAGS" = set; then
9503 CFLAGS=$ac_save_CFLAGS
9505 if test "$ac_test_CXXFLAGS" = set; then
9506 CXXFLAGS=$ac_save_CXXFLAGS
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
9511 $as_echo "$DASH_g" >&6; }
9513 # profiling options:
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -p" >&5
9515 $as_echo_n "checking whether $C_COMPILER accepts -p... " >&6; }
9516 if test "${DASH_p+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9520 rm -f conftest.$ac_ext
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9524 main ()
9526 return 0;
9528 _ACEOF
9529 ac_test_CFLAGS=${CFLAGS+set}
9530 ac_test_CXXFLAGS=${CXXFLAGS+set}
9531 ac_save_CFLAGS=$CFLAGS
9532 ac_save_CXXFLAGS=$CXXFLAGS
9533 CFLAGS="-p"
9534 CXXFLAGS="-p"
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; then
9540 DASH_p=" -p"
9541 else
9542 DASH_p=""
9544 if test "$ac_test_CFLAGS" = set; then
9545 CFLAGS=$ac_save_CFLAGS
9547 if test "$ac_test_CXXFLAGS" = set; then
9548 CXXFLAGS=$ac_save_CXXFLAGS
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_p" >&5
9553 $as_echo "$DASH_p" >&6; }
9555 # optimization options:
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -O1" >&5
9557 $as_echo_n "checking whether $C_COMPILER accepts -O1... " >&6; }
9558 if test "${DASH_O1+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9562 rm -f conftest.$ac_ext
9563 cat >conftest.$ac_ext <<_ACEOF
9564 #line $LINENO "configure"
9566 main ()
9568 return 0;
9570 _ACEOF
9571 ac_test_CFLAGS=${CFLAGS+set}
9572 ac_test_CXXFLAGS=${CXXFLAGS+set}
9573 ac_save_CFLAGS=$CFLAGS
9574 ac_save_CXXFLAGS=$CXXFLAGS
9575 CFLAGS="-O1"
9576 CXXFLAGS="-O1"
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; then
9582 DASH_O1=" -O1"
9583 else
9584 DASH_O1=""
9586 if test "$ac_test_CFLAGS" = set; then
9587 CFLAGS=$ac_save_CFLAGS
9589 if test "$ac_test_CXXFLAGS" = set; then
9590 CXXFLAGS=$ac_save_CXXFLAGS
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_O1" >&5
9595 $as_echo "$DASH_O1" >&6; }
9597 # linking options:
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -b" >&5
9599 $as_echo_n "checking whether $C_COMPILER accepts -b... " >&6; }
9600 if test "${DASH_b+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9604 rm -f conftest.$ac_ext
9605 cat >conftest.$ac_ext <<_ACEOF
9606 #line $LINENO "configure"
9608 main ()
9610 return 0;
9612 _ACEOF
9613 ac_test_CFLAGS=${CFLAGS+set}
9614 ac_test_CXXFLAGS=${CXXFLAGS+set}
9615 ac_save_CFLAGS=$CFLAGS
9616 ac_save_CXXFLAGS=$CXXFLAGS
9617 CFLAGS="-b"
9618 CXXFLAGS="-b"
9619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; then
9624 DASH_b=" -b"
9625 else
9626 DASH_b=""
9628 if test "$ac_test_CFLAGS" = set; then
9629 CFLAGS=$ac_save_CFLAGS
9631 if test "$ac_test_CXXFLAGS" = set; then
9632 CXXFLAGS=$ac_save_CXXFLAGS
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_b" >&5
9637 $as_echo "$DASH_b" >&6; }
9639 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
9641 if test "$ENABLE_DEBUG" = yes; then
9642 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
9645 if test "$ENABLE_PROFILE" = yes; then
9646 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_p"
9649 if test "$ENABLE_DEBUG" != yes; then
9650 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_O1"
9653 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_b"
9656 aix*) ########## Probably using the AIX xlC compiler...
9658 # debugging options:
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
9660 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
9661 if test "${DASH_g+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9665 rm -f conftest.$ac_ext
9666 cat >conftest.$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9669 main ()
9671 return 0;
9673 _ACEOF
9674 ac_test_CFLAGS=${CFLAGS+set}
9675 ac_test_CXXFLAGS=${CXXFLAGS+set}
9676 ac_save_CFLAGS=$CFLAGS
9677 ac_save_CXXFLAGS=$CXXFLAGS
9678 CFLAGS="-g"
9679 CXXFLAGS="-g"
9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681 (eval $ac_link) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; then
9685 DASH_g=" -g"
9686 else
9687 DASH_g=""
9689 if test "$ac_test_CFLAGS" = set; then
9690 CFLAGS=$ac_save_CFLAGS
9692 if test "$ac_test_CXXFLAGS" = set; then
9693 CXXFLAGS=$ac_save_CXXFLAGS
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
9698 $as_echo "$DASH_g" >&6; }
9700 # profiling options:
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -p" >&5
9702 $as_echo_n "checking whether $C_COMPILER accepts -p... " >&6; }
9703 if test "${DASH_p+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9707 rm -f conftest.$ac_ext
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9711 main ()
9713 return 0;
9715 _ACEOF
9716 ac_test_CFLAGS=${CFLAGS+set}
9717 ac_test_CXXFLAGS=${CXXFLAGS+set}
9718 ac_save_CFLAGS=$CFLAGS
9719 ac_save_CXXFLAGS=$CXXFLAGS
9720 CFLAGS="-p"
9721 CXXFLAGS="-p"
9722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; then
9727 DASH_p=" -p"
9728 else
9729 DASH_p=""
9731 if test "$ac_test_CFLAGS" = set; then
9732 CFLAGS=$ac_save_CFLAGS
9734 if test "$ac_test_CXXFLAGS" = set; then
9735 CXXFLAGS=$ac_save_CXXFLAGS
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_p" >&5
9740 $as_echo "$DASH_p" >&6; }
9742 # optimization options:
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -O1" >&5
9744 $as_echo_n "checking whether $C_COMPILER accepts -O1... " >&6; }
9745 if test "${DASH_O1+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9749 rm -f conftest.$ac_ext
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9753 main ()
9755 return 0;
9757 _ACEOF
9758 ac_test_CFLAGS=${CFLAGS+set}
9759 ac_test_CXXFLAGS=${CXXFLAGS+set}
9760 ac_save_CFLAGS=$CFLAGS
9761 ac_save_CXXFLAGS=$CXXFLAGS
9762 CFLAGS="-O1"
9763 CXXFLAGS="-O1"
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; then
9769 DASH_O1=" -O1"
9770 else
9771 DASH_O1=""
9773 if test "$ac_test_CFLAGS" = set; then
9774 CFLAGS=$ac_save_CFLAGS
9776 if test "$ac_test_CXXFLAGS" = set; then
9777 CXXFLAGS=$ac_save_CXXFLAGS
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_O1" >&5
9782 $as_echo "$DASH_O1" >&6; }
9784 # linking options:
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -G" >&5
9786 $as_echo_n "checking whether $C_COMPILER accepts -G... " >&6; }
9787 if test "${DASH_G+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9791 rm -f conftest.$ac_ext
9792 cat >conftest.$ac_ext <<_ACEOF
9793 #line $LINENO "configure"
9795 main ()
9797 return 0;
9799 _ACEOF
9800 ac_test_CFLAGS=${CFLAGS+set}
9801 ac_test_CXXFLAGS=${CXXFLAGS+set}
9802 ac_save_CFLAGS=$CFLAGS
9803 ac_save_CXXFLAGS=$CXXFLAGS
9804 CFLAGS="-G"
9805 CXXFLAGS="-G"
9806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9807 (eval $ac_link) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; then
9811 DASH_G=" -G"
9812 else
9813 DASH_G=""
9815 if test "$ac_test_CFLAGS" = set; then
9816 CFLAGS=$ac_save_CFLAGS
9818 if test "$ac_test_CXXFLAGS" = set; then
9819 CXXFLAGS=$ac_save_CXXFLAGS
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_G" >&5
9824 $as_echo "$DASH_G" >&6; }
9826 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
9828 if test "$ENABLE_DEBUG" = yes; then
9829 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
9832 if test "$ENABLE_PROFILE" = yes; then
9833 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_p"
9836 if test "$ENABLE_DEBUG" != yes; then
9837 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_O1"
9840 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_G"
9843 *) ########## Unsupported operating system
9845 { $as_echo "$as_me:${as_lineno-$LINENO}:
9846 *********************************************************************
9847 *** The GCC compiler is not being used and the operating system ***
9848 *** is not one that has been tested with the Gambit-C system. ***
9849 *** The configure script will use certain compiler options that ***
9850 *** may not be correct or sufficient for compiling the system. ***
9851 *** Please report success or failure to gambit@iro.umontreal.ca. ***
9852 *** This will help us support this operating system in the ***
9853 *** future. ***
9854 *********************************************************************
9855 " >&5
9856 $as_echo "$as_me:
9857 *********************************************************************
9858 *** The GCC compiler is not being used and the operating system ***
9859 *** is not one that has been tested with the Gambit-C system. ***
9860 *** The configure script will use certain compiler options that ***
9861 *** may not be correct or sufficient for compiling the system. ***
9862 *** Please report success or failure to gambit@iro.umontreal.ca. ***
9863 *** This will help us support this operating system in the ***
9864 *** future. ***
9865 *********************************************************************
9866 " >&6;}
9868 # debugging options:
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -g" >&5
9870 $as_echo_n "checking whether $C_COMPILER accepts -g... " >&6; }
9871 if test "${DASH_g+set}" = set; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9875 rm -f conftest.$ac_ext
9876 cat >conftest.$ac_ext <<_ACEOF
9877 #line $LINENO "configure"
9879 main ()
9881 return 0;
9883 _ACEOF
9884 ac_test_CFLAGS=${CFLAGS+set}
9885 ac_test_CXXFLAGS=${CXXFLAGS+set}
9886 ac_save_CFLAGS=$CFLAGS
9887 ac_save_CXXFLAGS=$CXXFLAGS
9888 CFLAGS="-g"
9889 CXXFLAGS="-g"
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; then
9895 DASH_g=" -g"
9896 else
9897 DASH_g=""
9899 if test "$ac_test_CFLAGS" = set; then
9900 CFLAGS=$ac_save_CFLAGS
9902 if test "$ac_test_CXXFLAGS" = set; then
9903 CXXFLAGS=$ac_save_CXXFLAGS
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_g" >&5
9908 $as_echo "$DASH_g" >&6; }
9910 # profiling options:
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -p" >&5
9912 $as_echo_n "checking whether $C_COMPILER accepts -p... " >&6; }
9913 if test "${DASH_p+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9917 rm -f conftest.$ac_ext
9918 cat >conftest.$ac_ext <<_ACEOF
9919 #line $LINENO "configure"
9921 main ()
9923 return 0;
9925 _ACEOF
9926 ac_test_CFLAGS=${CFLAGS+set}
9927 ac_test_CXXFLAGS=${CXXFLAGS+set}
9928 ac_save_CFLAGS=$CFLAGS
9929 ac_save_CXXFLAGS=$CXXFLAGS
9930 CFLAGS="-p"
9931 CXXFLAGS="-p"
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; then
9937 DASH_p=" -p"
9938 else
9939 DASH_p=""
9941 if test "$ac_test_CFLAGS" = set; then
9942 CFLAGS=$ac_save_CFLAGS
9944 if test "$ac_test_CXXFLAGS" = set; then
9945 CXXFLAGS=$ac_save_CXXFLAGS
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_p" >&5
9950 $as_echo "$DASH_p" >&6; }
9952 # optimization options:
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -O1" >&5
9954 $as_echo_n "checking whether $C_COMPILER accepts -O1... " >&6; }
9955 if test "${DASH_O1+set}" = set; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9959 rm -f conftest.$ac_ext
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9963 main ()
9965 return 0;
9967 _ACEOF
9968 ac_test_CFLAGS=${CFLAGS+set}
9969 ac_test_CXXFLAGS=${CXXFLAGS+set}
9970 ac_save_CFLAGS=$CFLAGS
9971 ac_save_CXXFLAGS=$CXXFLAGS
9972 CFLAGS="-O1"
9973 CXXFLAGS="-O1"
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; then
9979 DASH_O1=" -O1"
9980 else
9981 DASH_O1=""
9983 if test "$ac_test_CFLAGS" = set; then
9984 CFLAGS=$ac_save_CFLAGS
9986 if test "$ac_test_CXXFLAGS" = set; then
9987 CXXFLAGS=$ac_save_CXXFLAGS
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_O1" >&5
9992 $as_echo "$DASH_O1" >&6; }
9994 # linking options:
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $C_COMPILER accepts -shared" >&5
9996 $as_echo_n "checking whether $C_COMPILER accepts -shared... " >&6; }
9997 if test "${DASH_shared+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10001 rm -f conftest.$ac_ext
10002 cat >conftest.$ac_ext <<_ACEOF
10003 #line $LINENO "configure"
10005 main ()
10007 return 0;
10009 _ACEOF
10010 ac_test_CFLAGS=${CFLAGS+set}
10011 ac_test_CXXFLAGS=${CXXFLAGS+set}
10012 ac_save_CFLAGS=$CFLAGS
10013 ac_save_CXXFLAGS=$CXXFLAGS
10014 CFLAGS="-shared"
10015 CXXFLAGS="-shared"
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; then
10021 DASH_shared=" -shared"
10022 else
10023 DASH_shared=""
10025 if test "$ac_test_CFLAGS" = set; then
10026 CFLAGS=$ac_save_CFLAGS
10028 if test "$ac_test_CXXFLAGS" = set; then
10029 CXXFLAGS=$ac_save_CXXFLAGS
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DASH_shared" >&5
10034 $as_echo "$DASH_shared" >&6; }
10036 # determine which flags to add to CFLAGS, CXXFLAGS and LDFLAGS
10038 if test "$ENABLE_DEBUG" = yes; then
10039 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_g"
10042 if test "$ENABLE_PROFILE" = yes; then
10043 FLAGS_OBJ_DYN_LIB_EXE="$FLAGS_OBJ_DYN_LIB_EXE$DASH_p"
10046 if test "$ENABLE_DEBUG" != yes; then
10047 FLAGS_OBJ_DYN="$FLAGS_OBJ_DYN$DASH_O1"
10050 FLAGS_DYN_LIB="$FLAGS_DYN_LIB$DASH_shared"
10052 esac
10057 if test "$ENABLE_CPLUSPLUS" = yes; then
10058 CORCXXFLAGS="$CXXFLAGS"
10059 else
10060 CORCXXFLAGS="$CFLAGS"
10063 FLAGS_OBJ="$CORCXXFLAGS $FLAGS_OBJ $FLAGS_OBJ_DYN $FLAGS_OBJ_DYN_LIB_EXE"
10064 FLAGS_DYN="$LDFLAGS $CORCXXFLAGS $FLAGS_DYN $FLAGS_OBJ_DYN $FLAGS_OBJ_DYN_LIB_EXE $FLAGS_DYN_LIB"
10065 FLAGS_LIB="$LDFLAGS $CORCXXFLAGS $FLAGS_LIB $FLAGS_OBJ_DYN_LIB_EXE $FLAGS_DYN_LIB"
10066 #FLAGS_EXE="$LDFLAGS $CORCXXFLAGS $FLAGS_EXE $FLAGS_OBJ_DYN_LIB_EXE"
10067 FLAGS_EXE="$LDFLAGS $FLAGS_OBJ $FLAGS_EXE"
10089 ###############################################################################
10093 ###############################################################################
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10096 $as_echo_n "checking for X... " >&6; }
10099 # Check whether --with-x was given.
10100 if test "${with_x+set}" = set; then :
10101 withval=$with_x;
10104 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10105 if test "x$with_x" = xno; then
10106 # The user explicitly disabled X.
10107 have_x=disabled
10108 else
10109 case $x_includes,$x_libraries in #(
10110 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10111 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 # One or both of the vars are not set, and there is no cached value.
10115 ac_x_includes=no ac_x_libraries=no
10116 rm -f -r conftest.dir
10117 if mkdir conftest.dir; then
10118 cd conftest.dir
10119 cat >Imakefile <<'_ACEOF'
10120 incroot:
10121 @echo incroot='${INCROOT}'
10122 usrlibdir:
10123 @echo usrlibdir='${USRLIBDIR}'
10124 libdir:
10125 @echo libdir='${LIBDIR}'
10126 _ACEOF
10127 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10128 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10129 for ac_var in incroot usrlibdir libdir; do
10130 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10131 done
10132 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10133 for ac_extension in a so sl dylib la dll; do
10134 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10135 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10136 ac_im_usrlibdir=$ac_im_libdir; break
10138 done
10139 # Screen out bogus values from the imake configuration. They are
10140 # bogus both because they are the default anyway, and because
10141 # using them would break gcc on systems where it needs fixed includes.
10142 case $ac_im_incroot in
10143 /usr/include) ac_x_includes= ;;
10144 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10145 esac
10146 case $ac_im_usrlibdir in
10147 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10148 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10149 esac
10151 cd ..
10152 rm -f -r conftest.dir
10155 # Standard set of common directories for X headers.
10156 # Check X11 before X11Rn because it is often a symlink to the current release.
10157 ac_x_header_dirs='
10158 /usr/X11/include
10159 /usr/X11R7/include
10160 /usr/X11R6/include
10161 /usr/X11R5/include
10162 /usr/X11R4/include
10164 /usr/include/X11
10165 /usr/include/X11R7
10166 /usr/include/X11R6
10167 /usr/include/X11R5
10168 /usr/include/X11R4
10170 /usr/local/X11/include
10171 /usr/local/X11R7/include
10172 /usr/local/X11R6/include
10173 /usr/local/X11R5/include
10174 /usr/local/X11R4/include
10176 /usr/local/include/X11
10177 /usr/local/include/X11R7
10178 /usr/local/include/X11R6
10179 /usr/local/include/X11R5
10180 /usr/local/include/X11R4
10182 /usr/X386/include
10183 /usr/x386/include
10184 /usr/XFree86/include/X11
10186 /usr/include
10187 /usr/local/include
10188 /usr/unsupported/include
10189 /usr/athena/include
10190 /usr/local/x11r5/include
10191 /usr/lpp/Xamples/include
10193 /usr/openwin/include
10194 /usr/openwin/share/include'
10196 if test "$ac_x_includes" = no; then
10197 # Guess where to find include files, by looking for Xlib.h.
10198 # First, try using that file with no special directory specified.
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201 #include <X11/Xlib.h>
10202 _ACEOF
10203 if ac_fn_cxx_try_cpp "$LINENO"; then :
10204 # We can compile using X headers with no special include directory.
10205 ac_x_includes=
10206 else
10207 for ac_dir in $ac_x_header_dirs; do
10208 if test -r "$ac_dir/X11/Xlib.h"; then
10209 ac_x_includes=$ac_dir
10210 break
10212 done
10214 rm -f conftest.err conftest.$ac_ext
10215 fi # $ac_x_includes = no
10217 if test "$ac_x_libraries" = no; then
10218 # Check for the libraries.
10219 # See if we find them without any special options.
10220 # Don't add to $LIBS permanently.
10221 ac_save_LIBS=$LIBS
10222 LIBS="-lX11 $LIBS"
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 #include <X11/Xlib.h>
10227 main ()
10229 XrmInitialize ()
10231 return 0;
10233 _ACEOF
10234 if ac_fn_cxx_try_link "$LINENO"; then :
10235 LIBS=$ac_save_LIBS
10236 # We can link X programs with no special library path.
10237 ac_x_libraries=
10238 else
10239 LIBS=$ac_save_LIBS
10240 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10242 # Don't even attempt the hair of trying to link an X program!
10243 for ac_extension in a so sl dylib la dll; do
10244 if test -r "$ac_dir/libX11.$ac_extension"; then
10245 ac_x_libraries=$ac_dir
10246 break 2
10248 done
10249 done
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 fi # $ac_x_libraries = no
10255 case $ac_x_includes,$ac_x_libraries in #(
10256 no,* | *,no | *\'*)
10257 # Didn't find X, or a directory has "'" in its name.
10258 ac_cv_have_x="have_x=no";; #(
10260 # Record where we found X for the cache.
10261 ac_cv_have_x="have_x=yes\
10262 ac_x_includes='$ac_x_includes'\
10263 ac_x_libraries='$ac_x_libraries'"
10264 esac
10266 ;; #(
10267 *) have_x=yes;;
10268 esac
10269 eval "$ac_cv_have_x"
10270 fi # $with_x != no
10272 if test "$have_x" != yes; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10274 $as_echo "$have_x" >&6; }
10275 no_x=yes
10276 else
10277 # If each of the values was on the command line, it overrides each guess.
10278 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10279 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10280 # Update the cache value to reflect the command line values.
10281 ac_cv_have_x="have_x=yes\
10282 ac_x_includes='$x_includes'\
10283 ac_x_libraries='$x_libraries'"
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10285 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10288 if test "$no_x" = yes; then
10289 # Not all programs may use this symbol, but it does not hurt to define it.
10291 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
10293 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10294 else
10295 if test -n "$x_includes"; then
10296 X_CFLAGS="$X_CFLAGS -I$x_includes"
10299 # It would also be nice to do this for all -L options, not just this one.
10300 if test -n "$x_libraries"; then
10301 X_LIBS="$X_LIBS -L$x_libraries"
10302 # For Solaris; some versions of Sun CC require a space after -R and
10303 # others require no space. Words are not sufficient . . . .
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
10305 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
10306 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10307 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
10308 ac_cxx_werror_flag=yes
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10313 main ()
10317 return 0;
10319 _ACEOF
10320 if ac_fn_cxx_try_link "$LINENO"; then :
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 X_LIBS="$X_LIBS -R$x_libraries"
10324 else
10325 LIBS="$ac_xsave_LIBS -R $x_libraries"
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h. */
10330 main ()
10334 return 0;
10336 _ACEOF
10337 if ac_fn_cxx_try_link "$LINENO"; then :
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339 $as_echo "yes" >&6; }
10340 X_LIBS="$X_LIBS -R $x_libraries"
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
10343 $as_echo "neither works" >&6; }
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10348 rm -f core conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
10351 LIBS=$ac_xsave_LIBS
10354 # Check for system-dependent libraries X programs must link with.
10355 # Do this before checking for the system-independent R6 libraries
10356 # (-lICE), since we may need -lsocket or whatever for X linking.
10358 if test "$ISC" = yes; then
10359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10360 else
10361 # Martyn Johnson says this is needed for Ultrix, if the X
10362 # libraries were built with DECnet support. And Karl Berry says
10363 # the Alpha needs dnet_stub (dnet does not exist).
10364 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char XOpenDisplay ();
10376 main ()
10378 return XOpenDisplay ();
10380 return 0;
10382 _ACEOF
10383 if ac_fn_cxx_try_link "$LINENO"; then :
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10387 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10388 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-ldnet $LIBS"
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char dnet_ntoa ();
10404 main ()
10406 return dnet_ntoa ();
10408 return 0;
10410 _ACEOF
10411 if ac_fn_cxx_try_link "$LINENO"; then :
10412 ac_cv_lib_dnet_dnet_ntoa=yes
10413 else
10414 ac_cv_lib_dnet_dnet_ntoa=no
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10421 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10422 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10426 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
10428 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
10429 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 ac_check_lib_save_LIBS=$LIBS
10433 LIBS="-ldnet_stub $LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char dnet_ntoa ();
10445 main ()
10447 return dnet_ntoa ();
10449 return 0;
10451 _ACEOF
10452 if ac_fn_cxx_try_link "$LINENO"; then :
10453 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10454 else
10455 ac_cv_lib_dnet_stub_dnet_ntoa=no
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10462 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
10463 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
10464 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS="$ac_xsave_LIBS"
10473 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10474 # to get the SysV transport functions.
10475 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10476 # needs -lnsl.
10477 # The nsl library prevents programs from opening the X display
10478 # on Irix 5.2, according to T.E. Dickey.
10479 # The functions gethostbyname, getservbyname, and inet_addr are
10480 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10481 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10482 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
10486 if test $ac_cv_func_gethostbyname = no; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10488 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10489 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 ac_check_lib_save_LIBS=$LIBS
10493 LIBS="-lnsl $LIBS"
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10497 /* Override any GCC internal prototype to avoid an error.
10498 Use char because int might match the return type of a GCC
10499 builtin and then its argument prototype would still apply. */
10500 #ifdef __cplusplus
10501 extern "C"
10502 #endif
10503 char gethostbyname ();
10505 main ()
10507 return gethostbyname ();
10509 return 0;
10511 _ACEOF
10512 if ac_fn_cxx_try_link "$LINENO"; then :
10513 ac_cv_lib_nsl_gethostbyname=yes
10514 else
10515 ac_cv_lib_nsl_gethostbyname=no
10517 rm -f core conftest.err conftest.$ac_objext \
10518 conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10522 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10523 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
10524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10527 if test $ac_cv_lib_nsl_gethostbyname = no; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
10529 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
10530 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lbsd $LIBS"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char gethostbyname ();
10546 main ()
10548 return gethostbyname ();
10550 return 0;
10552 _ACEOF
10553 if ac_fn_cxx_try_link "$LINENO"; then :
10554 ac_cv_lib_bsd_gethostbyname=yes
10555 else
10556 ac_cv_lib_bsd_gethostbyname=no
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
10563 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
10564 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
10565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10571 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10572 # socket/setsockopt and other routines are undefined under SCO ODT
10573 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10574 # on later versions), says Simon Leinen: it contains gethostby*
10575 # variants that don't use the name server (or something). -lsocket
10576 # must be given before -lnsl if both are needed. We assume that
10577 # if connect needs -lnsl, so does gethostbyname.
10578 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
10579 if test "x$ac_cv_func_connect" = x""yes; then :
10583 if test $ac_cv_func_connect = no; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
10585 $as_echo_n "checking for connect in -lsocket... " >&6; }
10586 if test "${ac_cv_lib_socket_connect+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char connect ();
10602 main ()
10604 return connect ();
10606 return 0;
10608 _ACEOF
10609 if ac_fn_cxx_try_link "$LINENO"; then :
10610 ac_cv_lib_socket_connect=yes
10611 else
10612 ac_cv_lib_socket_connect=no
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_lib_save_LIBS
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
10619 $as_echo "$ac_cv_lib_socket_connect" >&6; }
10620 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
10621 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10626 # Guillermo Gomez says -lposix is necessary on A/UX.
10627 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
10628 if test "x$ac_cv_func_remove" = x""yes; then :
10632 if test $ac_cv_func_remove = no; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
10634 $as_echo_n "checking for remove in -lposix... " >&6; }
10635 if test "${ac_cv_lib_posix_remove+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lposix $LIBS"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10643 /* Override any GCC internal prototype to avoid an error.
10644 Use char because int might match the return type of a GCC
10645 builtin and then its argument prototype would still apply. */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char remove ();
10651 main ()
10653 return remove ();
10655 return 0;
10657 _ACEOF
10658 if ac_fn_cxx_try_link "$LINENO"; then :
10659 ac_cv_lib_posix_remove=yes
10660 else
10661 ac_cv_lib_posix_remove=no
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
10668 $as_echo "$ac_cv_lib_posix_remove" >&6; }
10669 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
10670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10675 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10676 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
10677 if test "x$ac_cv_func_shmat" = x""yes; then :
10681 if test $ac_cv_func_shmat = no; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
10683 $as_echo_n "checking for shmat in -lipc... " >&6; }
10684 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-lipc $LIBS"
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10692 /* Override any GCC internal prototype to avoid an error.
10693 Use char because int might match the return type of a GCC
10694 builtin and then its argument prototype would still apply. */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 char shmat ();
10700 main ()
10702 return shmat ();
10704 return 0;
10706 _ACEOF
10707 if ac_fn_cxx_try_link "$LINENO"; then :
10708 ac_cv_lib_ipc_shmat=yes
10709 else
10710 ac_cv_lib_ipc_shmat=no
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
10717 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
10718 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
10719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10725 # Check for libraries that X11R6 Xt/Xaw programs need.
10726 ac_save_LDFLAGS=$LDFLAGS
10727 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10728 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10729 # check for ICE first), but we must link in the order -lSM -lICE or
10730 # we get undefined symbols. So assume we have SM if we have ICE.
10731 # These have to be linked with before -lX11, unlike the other
10732 # libraries we check for below, so use a different variable.
10733 # John Interrante, Karl Berry
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
10735 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
10736 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
10738 else
10739 ac_check_lib_save_LIBS=$LIBS
10740 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10744 /* Override any GCC internal prototype to avoid an error.
10745 Use char because int might match the return type of a GCC
10746 builtin and then its argument prototype would still apply. */
10747 #ifdef __cplusplus
10748 extern "C"
10749 #endif
10750 char IceConnectionNumber ();
10752 main ()
10754 return IceConnectionNumber ();
10756 return 0;
10758 _ACEOF
10759 if ac_fn_cxx_try_link "$LINENO"; then :
10760 ac_cv_lib_ICE_IceConnectionNumber=yes
10761 else
10762 ac_cv_lib_ICE_IceConnectionNumber=no
10764 rm -f core conftest.err conftest.$ac_objext \
10765 conftest$ac_exeext conftest.$ac_ext
10766 LIBS=$ac_check_lib_save_LIBS
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10769 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
10770 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
10771 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10774 LDFLAGS=$ac_save_LDFLAGS
10780 #AC_SYS_INTERPRETER
10781 #AC_SYS_LARGEFILE
10782 #AC_SYS_POSIX_TERMIOS
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10785 $as_echo_n "checking whether ln -s works... " >&6; }
10786 LN_S=$as_ln_s
10787 if test "$LN_S" = "ln -s"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789 $as_echo "yes" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10792 $as_echo "no, using $LN_S" >&6; }
10795 if test -n "$ac_tool_prefix"; then
10796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 if test -n "$RANLIB"; then
10804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10805 else
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10817 done
10818 done
10819 IFS=$as_save_IFS
10823 RANLIB=$ac_cv_prog_RANLIB
10824 if test -n "$RANLIB"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10826 $as_echo "$RANLIB" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10834 if test -z "$ac_cv_prog_RANLIB"; then
10835 ac_ct_RANLIB=$RANLIB
10836 # Extract the first word of "ranlib", so it can be a program name with args.
10837 set dummy ranlib; ac_word=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 if test -n "$ac_ct_RANLIB"; then
10844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10845 else
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10853 ac_cv_prog_ac_ct_RANLIB="ranlib"
10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10857 done
10858 done
10859 IFS=$as_save_IFS
10863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10864 if test -n "$ac_ct_RANLIB"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10866 $as_echo "$ac_ct_RANLIB" >&6; }
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10872 if test "x$ac_ct_RANLIB" = x; then
10873 RANLIB=":"
10874 else
10875 case $cross_compiling:$ac_tool_warned in
10876 yes:)
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10879 ac_tool_warned=yes ;;
10880 esac
10881 RANLIB=$ac_ct_RANLIB
10883 else
10884 RANLIB="$ac_cv_prog_RANLIB"
10887 RC="git"
10888 GIT="git"
10889 HG="hg"
10891 exe="$EXEEXT"
10892 obj=".$OBJEXT"
10894 case "$target_os" in
10896 mingw*) bat=".bat"
10899 *) bat=""
10901 esac
10903 if test "$ENABLE_SHARED" = yes; then
10905 case "$target_os" in
10908 mingw* | cygwin*)
10909 LIB_PREFIX="lib"
10910 LIB_EXTENSION=".dll"
10911 SETDLPATH="PATH=\"\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${PATH}\""
10914 darwin*) LIB_PREFIX="lib"
10915 LIB_EXTENSION=".dylib"
10916 SETDLPATH="DYLD_LIBRARY_PATH=\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${DYLD_LIBRARY_PATH}"
10919 hpux*) LIB_PREFIX="lib"
10920 LIB_EXTENSION=".so"
10921 SETDLPATH="SHLIB_PATH=\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${SHLIB_PATH}"
10924 aix*) LIB_PREFIX="lib"
10925 LIB_EXTENSION=".so"
10926 SETDLPATH="LIBPATH=\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${LIBPATH}"
10929 *) LIB_PREFIX="lib"
10930 LIB_EXTENSION=".so"
10931 SETDLPATH="LD_LIBRARY_PATH=\$(rootfromhere)/lib:\$(rootfromhere)/gsi:\$(rootfromhere)/gsc:\${LD_LIBRARY_PATH}"
10933 esac
10935 MAKE_LIBRARY='$(C_COMPILER) $(FLAGS_LIB) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_LIBS) $(LIBS)'
10936 MAKE_LIBRARY_FOR_INSTALL='$(C_COMPILER) $(FLAGS_LIB) -o $(LIBRARY) $(LIBRARY_OBJECTS) $(MAKE_LIBRARY_FOR_INSTALL_LIBS) $(LIBS)'
10937 FIXLIB=':'
10938 LINK_FOR_INSTALL='$(C_COMPILER) $(FLAGS_EXE) $(EXECUTABLE_OBJECTS) $(LINK_FOR_INSTALL_LIBS) $(LIBS) -o $(EXECUTABLE)'
10940 else
10942 SETDLPATH=""
10944 if test "$C_COMP_VISUALC" = yes; then
10946 ########## Microsoft Visual C++ compiler
10948 LIB_PREFIX="lib"
10949 LIB_EXTENSION=".lib"
10950 MAKE_LIBRARY='lib -out:$(LIBRARY) $(LIBRARY_OBJECTS)'
10951 MAKE_LIBRARY_FOR_INSTALL=':'
10952 FIXLIB=':'
10953 LINK_FOR_INSTALL=':'
10955 # else if test "$C_COMP_WATCOMC" = yes; then
10956 # else if test "$C_COMP_BORLANDC" = yes; then
10958 else
10960 ########## Other C compiler
10962 LIB_PREFIX="lib"
10963 LIB_EXTENSION=".a"
10964 MAKE_LIBRARY='ar rc $(LIBRARY) $(LIBRARY_OBJECTS) && $(RANLIB) $(LIBRARY)'
10965 MAKE_LIBRARY_FOR_INSTALL=':'
10966 FIXLIB='$(RANLIB)'
10967 LINK_FOR_INSTALL=':'
10973 if test "$ENABLE_VERSIONNED_LIBS" = no; then
10975 LIB_SUFFIX=""
10977 else
10979 if test "$ENABLE_VERSIONNED_LIBS" = yes; then
10981 LIB_SUFFIX=`echo -$PACKAGE_VERSION | sed -e 's/\./_/g'`
10983 else
10985 LIB_SUFFIX="$ENABLE_VERSIONNED_LIBS"
10991 GAMBCLIB="gambc$LIB_SUFFIX"
10992 GAMBCGSCLIB="gambcgsc$LIB_SUFFIX"
10993 GAMBCGSILIB="gambcgsi$LIB_SUFFIX"
10995 if test "yes" = yes; then
10997 GAMBCLIB_LOC=""
10998 GAMBCLIB_LINK="\"\${GAMBCDIR_LIB}/$LIB_PREFIX$GAMBCLIB$LIB_EXTENSION\""
11000 GAMBCGSILIB_LOC=""
11001 GAMBCGSILIB_LINK="\"\${GAMBCDIR_LIB_GSI}/$LIB_PREFIX$GAMBCGSILIB$LIB_EXTENSION\" \"\${GAMBCDIR_LIB}/$LIB_PREFIX$GAMBCLIB$LIB_EXTENSION\""
11003 GAMBCGSCLIB_LOC=""
11004 GAMBCGSCLIB_LINK="\"\${GAMBCDIR_LIB_GSC}/$LIB_PREFIX$GAMBCGSCLIB$LIB_EXTENSION\" \"\${GAMBCDIR_LIB}/$LIB_PREFIX$GAMBCLIB$LIB_EXTENSION\""
11006 else
11008 GAMBCLIB_LOC="-L\"\${GAMBCDIR_LIB}\""
11009 GAMBCLIB_LINK="-l$GAMBCLIB"
11011 GAMBCGSILIB_LOC="-L\"\${GAMBCDIR_LIB_GSI}\" -L\"\${GAMBCDIR_LIB}\""
11012 GAMBCGSILIB_LINK="-l$GAMBCGSILIB -l$GAMBCLIB"
11014 GAMBCGSCLIB_LOC="-L\"\${GAMBCDIR_LIB_GSC}\" -L\"\${GAMBCDIR_LIB}\""
11015 GAMBCGSCLIB_LINK="-l$GAMBCGSCLIB -l$GAMBCLIB"
11019 if test "$C_COMP_VISUALC" = yes; then
11021 ########## Microsoft Visual C++ compiler
11023 BUILD_OBJ="\${C_COMPILER} \${FLAGS_OBJ} \${DEFS_OBJ} -I\"\${GAMBCDIR_INCLUDE}\" -c -Fo\"\${BUILD_OBJ_OUTPUT_FILENAME}\" \${BUILD_OBJ_CC_OPTIONS} \${BUILD_OBJ_INPUT_FILENAMES}"
11025 BUILD_DYN="\${C_COMPILER} \${FLAGS_DYN} \${DEFS_DYN} -I\"\${GAMBCDIR_INCLUDE}\" -Fe\"\${BUILD_DYN_OUTPUT_FILENAME}\" \${BUILD_DYN_CC_OPTIONS} \${BUILD_DYN_LD_OPTIONS_PRELUDE} \${BUILD_DYN_INPUT_FILENAMES} \${BUILD_DYN_LD_OPTIONS}"
11027 BUILD_LIB="echo BUILD_LIB not yet implemented"
11029 BUILD_EXE="\${C_COMPILER} \${FLAGS_EXE} \${DEFS_EXE} -I\"\${GAMBCDIR_INCLUDE}\" ${GAMBCLIB_LOC} -Fe\"\${BUILD_EXE_OUTPUT_FILENAME}\" \${BUILD_EXE_CC_OPTIONS} \${BUILD_EXE_LD_OPTIONS_PRELUDE} \${BUILD_EXE_INPUT_FILENAMES} ${GAMBCLIB_LINK} \${LIBS} \${BUILD_EXE_LD_OPTIONS}"
11031 else
11033 BUILD_OBJ="\${C_COMPILER} \${FLAGS_OBJ} \${DEFS_OBJ} -I\"\${GAMBCDIR_INCLUDE}\" -c -o \"\${BUILD_OBJ_OUTPUT_FILENAME}\" \${BUILD_OBJ_CC_OPTIONS} \${BUILD_OBJ_INPUT_FILENAMES}"
11035 BUILD_DYN="\${C_COMPILER} \${FLAGS_DYN} \${DEFS_DYN} -I\"\${GAMBCDIR_INCLUDE}\" -o \"\${BUILD_DYN_OUTPUT_FILENAME}\" \${BUILD_DYN_CC_OPTIONS} \${BUILD_DYN_LD_OPTIONS_PRELUDE} \${BUILD_DYN_INPUT_FILENAMES} \${BUILD_DYN_LD_OPTIONS}"
11037 BUILD_LIB="echo BUILD_LIB not yet implemented"
11039 BUILD_EXE="\${C_COMPILER} \${FLAGS_EXE} \${DEFS_EXE} -I\"\${GAMBCDIR_INCLUDE}\" ${GAMBCLIB_LOC} -o \"\${BUILD_EXE_OUTPUT_FILENAME}\" \${BUILD_EXE_CC_OPTIONS} \${BUILD_EXE_LD_OPTIONS_PRELUDE} \${BUILD_EXE_INPUT_FILENAMES} ${GAMBCLIB_LINK} \${LIBS} \${BUILD_EXE_LD_OPTIONS}"
11043 # The following code for making installed libraries may benefit from
11044 # a rewrite so that it reuses the "BUILD_XXX" command infrastructure.
11046 if test "$ENABLE_ABSOLUTE_SHARED_LIBS" = yes; then
11048 MAKE_LIBRARY_FOR_INSTALL_LIBS='$$t_libdir/$(LIB_PREFIX)$(GAMBCLIB)$(LIB_EXTENSION)'
11049 LINK_FOR_INSTALL_GSI_LIBS='$$t_libdir/$(LIB_PREFIX)$(GAMBCGSILIB)$(LIB_EXTENSION) $$t_libdir/$(LIB_PREFIX)$(GAMBCLIB)$(LIB_EXTENSION)'
11050 LINK_FOR_INSTALL_GSC_LIBS='$$t_libdir/$(LIB_PREFIX)$(GAMBCGSCLIB)$(LIB_EXTENSION) $$t_libdir/$(LIB_PREFIX)$(GAMBCLIB)$(LIB_EXTENSION)'
11052 else
11054 MAKE_LIBRARY_FOR_INSTALL_LIBS='-L$(rootfromhere)/lib -l$(GAMBCLIB)'
11055 LINK_FOR_INSTALL_GSI_LIBS='-L. -L$(rootfromhere)/lib -l$(GAMBCGSILIB) -l$(GAMBCLIB)'
11056 LINK_FOR_INSTALL_GSC_LIBS='-L. -L$(rootfromhere)/lib -l$(GAMBCGSCLIB) -l$(GAMBCLIB)'
11060 ###############################################################################
11062 # Determine what prefix and suffix are added to function names by the
11063 # C compiler or linker.
11065 case "$target_os" in
11067 mingw*) # empty prefix and suffix
11070 cygwin*) # empty prefix and suffix
11073 *) # for other systems
11075 ac_link_obj_file='$C_COMPILER $FLAGS_DYN $DEFS_DYN -Iinclude -o conftest.o1 conftest.$ac_ext >&5'
11077 rm -f conftest.$ac_ext conftest.o1 conftest1.sed
11079 cat >conftest.$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11081 #define ___VERSION 400000
11082 #define ___MODULE_NAME " GAMBCCHECKMODULEPREFIXSUFFIX"
11083 #define ___LINKER_ID ____20_GAMBCCHECKMODULEPREFIXSUFFIX
11084 #define ___MH_PROC ___H__20_GAMBCCHECKMODULEPREFIXSUFFIX
11085 #define ___SCRIPT_LINE 0
11086 #define ___MAX_CHR 0x10ffff
11087 #define ___VOIDSTAR_WIDTH ___LONG_WIDTH
11088 #include "gambit.h.in"
11090 ___BEGIN_MOD1
11091 ___END_MOD1
11092 ___BEGIN_MOD2
11093 ___END_MOD2
11094 _ACEOF
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link_obj_file\"") >&5
11097 (eval $ac_link_obj_file) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; then
11102 cat >conftest1.sed <<_ACEOF
11103 /^.* \([a-zA-Z0-9_$]*\)____20_GAMBCCHECKMODULEPREFIXSUFFIX\([a-zA-Z0-9_$]*\)$/s//#define ___IMPORTED_ID_PREFIX "\1"\\
11104 #define ___IMPORTED_ID_SUFFIX "\2"/p
11105 _ACEOF
11107 # The nm program will extract the symbols in the object file
11108 # conftest.o1. The following option is used:
11109 # -g shows the external symbols only (to avoid confusion with
11110 # internal symbols generated by the compiler)
11111 nm -g conftest.o1 | sed -n -f conftest1.sed | sed -n -e "1,2p" >>confdefs.h
11115 esac
11117 ###############################################################################
11119 # Determine where the installation directories are located.
11121 if test "$prefix" = NONE; then
11122 prefix="/usr/local/$PACKAGE_NAME"
11125 if test "$ENABLE_MULTIPLE_VERSIONS" = yes; then
11126 prefix="$prefix/$PACKAGE_VERSION"
11129 if test "$bindir" = "\${exec_prefix}/bin"; then
11130 bindir="\${prefix}/bin"
11133 if test "$includedir" = "\${prefix}/include"; then
11134 includedir="\${prefix}/include"
11137 if test "$libdir" = "\${exec_prefix}/lib"; then
11138 libdir="\${prefix}/lib"
11141 if test "$docdir" = "\${datarootdir}/doc/\${PACKAGE_TARNAME}"; then
11142 docdir="\${prefix}/doc"
11145 if test "$infodir" = "\${datarootdir}/info"; then
11146 infodir="\${prefix}/info"
11149 if test "$datadir" = "\${datarootdir}"; then
11150 datadir="\${prefix}/share"
11153 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR=\"\\\"$prefix\\\"\""
11155 if test "$ENABLE_SYMLINKS" != yes; then
11157 if test "$bindir" != "\${prefix}/bin"; then
11158 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR_BIN=\"\\\"$bindir\\\"\""
11161 if test "$includedir" != "\${prefix}/include"; then
11162 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR_INCLUDE=\"\\\"$includedir\\\"\""
11165 if test "$libdir" != "\${prefix}/lib"; then
11166 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR_LIB=\"\\\"$libdir\\\"\""
11169 if test "$docdir" != "\${prefix}/doc"; then
11170 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR_DOC=\"\\\"$docdir\\\"\""
11173 if test "$infodir" != "\${prefix}/info"; then
11174 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR_INFO=\"\\\"$infodir\\\"\""
11177 if test "$datadir" != "\${prefix}/share"; then
11178 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___GAMBCDIR_SHARE=\"\\\"$datadir\\\"\""
11183 emacsdir="\${datadir}/emacs/site-lisp"
11185 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___SYS_TYPE_CPU=\"\\\"$target_cpu\\\"\""
11186 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___SYS_TYPE_VENDOR=\"\\\"$target_vendor\\\"\""
11187 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___SYS_TYPE_OS=\"\\\"$target_os\\\"\""
11188 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___CONFIGURE_COMMAND=\"\\\"$CONFIGURE_COMMAND\\\"\""
11189 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___OBJ_EXTENSION=\"\\\"$obj\\\"\""
11190 GAMBCLIB_DEFS="$GAMBCLIB_DEFS -D___EXE_EXTENSION=\"\\\"$exe\\\"\""
11192 ###############################################################################
11194 # Escape strings before substitution.
11196 ESC_MF="sed -e s/\\\\\\\$/\\\$\\\$/g"
11197 ESC_SH="sed -e s/\\\\/\\\\\\\\\\\\\\\\/g -e s/\\\"/\\\\\\\"/g -e s/\\\$/\\\\\\\$/g -e s/^/\"/ -e s/$/\"/"
11198 ESC_ECHO="sed -e s/\\\\/\\\\\\\\\\\\\\\\/g -e s/\\\"/\\\\\\\"/g -e s/^/\"/ -e s/$/\"/"
11199 ESC_BAT="sed -e s/\${/%%/g -e s/}/%%/g"
11200 ESC_ECHO_BAT="sed -e s/\${/%/g -e s/}/%/g"
11202 C_COMPILER_MF=`echo "$C_COMPILER" | $ESC_MF`
11203 C_PREPROC_MF=`echo "$C_PREPROC" | $ESC_MF`
11205 FLAGS_OBJ_MF=`echo "$FLAGS_OBJ" | $ESC_MF`
11206 FLAGS_DYN_MF=`echo "$FLAGS_DYN" | $ESC_MF`
11207 FLAGS_LIB_MF=`echo "$FLAGS_LIB" | $ESC_MF`
11208 FLAGS_EXE_MF=`echo "$FLAGS_EXE" | $ESC_MF`
11210 DEFS_OBJ_MF=`echo "$DEFS_OBJ" | $ESC_MF`
11211 DEFS_DYN_MF=`echo "$DEFS_DYN" | $ESC_MF`
11212 DEFS_LIB_MF=`echo "$DEFS_LIB" | $ESC_MF`
11213 DEFS_EXE_MF=`echo "$DEFS_EXE" | $ESC_MF`
11215 BUILD_OBJ_MF=`echo "$BUILD_OBJ" | $ESC_MF`
11216 BUILD_DYN_MF=`echo "$BUILD_DYN" | $ESC_MF`
11217 BUILD_LIB_MF=`echo "$BUILD_LIB" | $ESC_MF`
11218 BUILD_EXE_MF=`echo "$BUILD_EXE" | $ESC_MF`
11220 DEFS_MF=`echo "$DEFS" | $ESC_MF`
11221 LIBS_MF=`echo "$LIBS" | $ESC_MF`
11222 GAMBCLIB_DEFS_MF=`echo "$GAMBCLIB_DEFS" | $ESC_MF`
11223 GAMBCLIB_MF=`echo "$GAMBCLIB" | $ESC_MF`
11224 GAMBCGSCLIB_MF=`echo "$GAMBCGSCLIB" | $ESC_MF`
11225 GAMBCGSILIB_MF=`echo "$GAMBCGSILIB" | $ESC_MF`
11226 LIB_PREFIX_MF=`echo "$LIB_PREFIX" | $ESC_MF`
11227 LIB_EXTENSION_MF=`echo "$LIB_EXTENSION" | $ESC_MF`
11229 C_COMPILER_SH=`echo "$C_COMPILER" | $ESC_SH`
11230 C_PREPROC_SH=`echo "$C_PREPROC" | $ESC_SH`
11232 FLAGS_OBJ_SH=`echo "$FLAGS_OBJ" | $ESC_SH`
11233 FLAGS_DYN_SH=`echo "$FLAGS_DYN" | $ESC_SH`
11234 FLAGS_LIB_SH=`echo "$FLAGS_LIB" | $ESC_SH`
11235 FLAGS_EXE_SH=`echo "$FLAGS_EXE" | $ESC_SH`
11237 DEFS_OBJ_SH=`echo "$DEFS_OBJ" | $ESC_SH`
11238 DEFS_DYN_SH=`echo "$DEFS_DYN" | $ESC_SH`
11239 DEFS_LIB_SH=`echo "$DEFS_LIB" | $ESC_SH`
11240 DEFS_EXE_SH=`echo "$DEFS_EXE" | $ESC_SH`
11242 BUILD_OBJ_SH=`echo "$BUILD_OBJ" | $ESC_SH`
11243 BUILD_DYN_SH=`echo "$BUILD_DYN" | $ESC_SH`
11244 BUILD_LIB_SH=`echo "$BUILD_LIB" | $ESC_SH`
11245 BUILD_EXE_SH=`echo "$BUILD_EXE" | $ESC_SH`
11247 DEFS_SH=`echo "$DEFS" | $ESC_SH`
11248 LIBS_SH=`echo "$LIBS" | $ESC_SH`
11249 GAMBCLIB_DEFS_SH=`echo "$GAMBCLIB_DEFS" | $ESC_SH`
11250 GAMBCLIB_SH=`echo "$GAMBCLIB" | $ESC_SH`
11251 GAMBCGSCLIB_SH=`echo "$GAMBCGSCLIB" | $ESC_SH`
11252 GAMBCGSILIB_SH=`echo "$GAMBCGSILIB" | $ESC_SH`
11253 LIB_PREFIX_SH=`echo "$LIB_PREFIX" | $ESC_SH`
11254 LIB_EXTENSION_SH=`echo "$LIB_EXTENSION" | $ESC_SH`
11256 C_COMPILER_BAT=`echo "$C_COMPILER" | $ESC_BAT`
11257 C_PREPROC_BAT=`echo "$C_PREPROC" | $ESC_BAT`
11259 FLAGS_OBJ_BAT=`echo "$FLAGS_OBJ" | $ESC_BAT`
11260 FLAGS_DYN_BAT=`echo "$FLAGS_DYN" | $ESC_BAT`
11261 FLAGS_LIB_BAT=`echo "$FLAGS_LIB" | $ESC_BAT`
11262 FLAGS_EXE_BAT=`echo "$FLAGS_EXE" | $ESC_BAT`
11264 DEFS_OBJ_BAT=`echo "$DEFS_OBJ" | $ESC_BAT`
11265 DEFS_DYN_BAT=`echo "$DEFS_DYN" | $ESC_BAT`
11266 DEFS_LIB_BAT=`echo "$DEFS_LIB" | $ESC_BAT`
11267 DEFS_EXE_BAT=`echo "$DEFS_EXE" | $ESC_BAT`
11269 BUILD_OBJ_BAT=`echo "$BUILD_OBJ" | $ESC_BAT`
11270 BUILD_DYN_BAT=`echo "$BUILD_DYN" | $ESC_BAT`
11271 BUILD_LIB_BAT=`echo "$BUILD_LIB" | $ESC_BAT`
11272 BUILD_EXE_BAT=`echo "$BUILD_EXE" | $ESC_BAT`
11274 DEFS_BAT=`echo "$DEFS" | $ESC_BAT`
11275 LIBS_BAT=`echo "$LIBS" | $ESC_BAT`
11276 GAMBCLIB_DEFS_BAT=`echo "$GAMBCLIB_DEFS" | $ESC_BAT`
11277 GAMBCLIB_BAT=`echo "$GAMBCLIB" | $ESC_BAT`
11278 GAMBCGSCLIB_BAT=`echo "$GAMBCGSCLIB" | $ESC_BAT`
11279 GAMBCGSILIB_BAT=`echo "$GAMBCGSILIB" | $ESC_BAT`
11280 LIB_PREFIX_BAT=`echo "$LIB_PREFIX" | $ESC_BAT`
11281 LIB_EXTENSION_BAT=`echo "$LIB_EXTENSION" | $ESC_BAT`
11283 BUILD_OBJ_ECHO=`echo "$BUILD_OBJ" | $ESC_ECHO`
11284 BUILD_DYN_ECHO=`echo "$BUILD_DYN" | $ESC_ECHO`
11285 BUILD_LIB_ECHO=`echo "$BUILD_LIB" | $ESC_ECHO`
11286 BUILD_EXE_ECHO=`echo "$BUILD_EXE" | $ESC_ECHO`
11288 BUILD_OBJ_ECHO_BAT=`echo "$BUILD_OBJ" | $ESC_ECHO_BAT`
11289 BUILD_DYN_ECHO_BAT=`echo "$BUILD_DYN" | $ESC_ECHO_BAT`
11290 BUILD_LIB_ECHO_BAT=`echo "$BUILD_LIB" | $ESC_ECHO_BAT`
11291 BUILD_EXE_ECHO_BAT=`echo "$BUILD_EXE" | $ESC_ECHO_BAT`
11293 ###############################################################################
11295 if test "$srcdir" = "."; then
11296 srcdirpfx=""
11297 else
11298 srcdirpfx="\$(srcdir)/"
11301 INSTALL='$(rootfromhere)/install-sh -c'
11302 INSTALL_DATA='$(rootfromhere)/install-sh -c -m 644'
11303 INSTALL_LIB='$(rootfromhere)/install-sh -c -m 644'
11304 INSTALL_PROGRAM='$(rootfromhere)/install-sh -c -m 755'
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11422 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11423 set x ${MAKE-make}
11424 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11425 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 cat >conftest.make <<\_ACEOF
11429 SHELL = /bin/sh
11430 all:
11431 @echo '@@@%%%=$(MAKE)=@@@%%%'
11432 _ACEOF
11433 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11434 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11435 *@@@%%%=?*=@@@%%%*)
11436 eval ac_cv_prog_make_${ac_make}_set=yes;;
11438 eval ac_cv_prog_make_${ac_make}_set=no;;
11439 esac
11440 rm -f conftest.make
11442 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445 SET_MAKE=
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449 SET_MAKE="MAKE=${MAKE-make}"
11453 ac_config_files="$ac_config_files makefile include/makefile include/gambit.h lib/makefile lib/guide/guidepro lib/guide/makefile lib/guide/images/makefile gsi/makefile gsc/makefile bin/makefile bin/gambc-cc.bat.unix bin/gambc-cc.bat.windows bin/gambc-doc.bat.unix bin/gambc-doc.bat.windows misc/makefile doc/makefile tests/makefile examples/makefile examples/distr-comp/makefile examples/pi/makefile examples/ring/makefile examples/web-repl/makefile examples/web-server/makefile examples/tcltk/makefile examples/Xlib-simple/makefile examples/pthread/makefile examples/misc/makefile prebuilt/makefile prebuilt/macosx/makefile prebuilt/macosx/build-phase2 prebuilt/windows/makefile prebuilt/windows/build-phase2"
11455 cat >confcache <<\_ACEOF
11456 # This file is a shell script that caches the results of configure
11457 # tests run on this system so they can be shared between configure
11458 # scripts and configure runs, see configure's option --config-cache.
11459 # It is not useful on other systems. If it contains results you don't
11460 # want to keep, you may remove or edit it.
11462 # config.status only pays attention to the cache file if you give it
11463 # the --recheck option to rerun configure.
11465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11467 # following values.
11469 _ACEOF
11471 # The following way of writing the cache mishandles newlines in values,
11472 # but we know of no workaround that is simple, portable, and efficient.
11473 # So, we kill variables containing newlines.
11474 # Ultrix sh set writes to stderr and can't be redirected directly,
11475 # and sets the high bit in the cache file unless we assign to the vars.
11477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11478 eval ac_val=\$$ac_var
11479 case $ac_val in #(
11480 *${as_nl}*)
11481 case $ac_var in #(
11482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11484 esac
11485 case $ac_var in #(
11486 _ | IFS | as_nl) ;; #(
11487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11488 *) { eval $ac_var=; unset $ac_var;} ;;
11489 esac ;;
11490 esac
11491 done
11493 (set) 2>&1 |
11494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11495 *${as_nl}ac_space=\ *)
11496 # `set' does not quote correctly, so add quotes: double-quote
11497 # substitution turns \\\\ into \\, and sed turns \\ into \.
11498 sed -n \
11499 "s/'/'\\\\''/g;
11500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11501 ;; #(
11503 # `set' quotes correctly as required by POSIX, so do not add quotes.
11504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11506 esac |
11507 sort
11509 sed '
11510 /^ac_cv_env_/b end
11511 t clear
11512 :clear
11513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11514 t end
11515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11516 :end' >>confcache
11517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11518 if test -w "$cache_file"; then
11519 test "x$cache_file" != "x/dev/null" &&
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11521 $as_echo "$as_me: updating cache $cache_file" >&6;}
11522 cat confcache >$cache_file
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11525 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11528 rm -f confcache
11530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11531 # Let make expand exec_prefix.
11532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11534 DEFS=-DHAVE_CONFIG_H
11536 ac_libobjs=
11537 ac_ltlibobjs=
11538 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11539 # 1. Remove the extension, and $U if already installed.
11540 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11541 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11543 # will be set to the directory where LIBOBJS objects are built.
11544 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11545 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11546 done
11547 LIBOBJS=$ac_libobjs
11549 LTLIBOBJS=$ac_ltlibobjs
11553 : ${CONFIG_STATUS=./config.status}
11554 ac_write_fail=0
11555 ac_clean_files_save=$ac_clean_files
11556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11558 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11559 as_write_fail=0
11560 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11561 #! $SHELL
11562 # Generated by $as_me.
11563 # Run this file to recreate the current configuration.
11564 # Compiler output produced by configure, useful for debugging
11565 # configure, is in config.log if it exists.
11567 debug=false
11568 ac_cs_recheck=false
11569 ac_cs_silent=false
11571 SHELL=\${CONFIG_SHELL-$SHELL}
11572 export SHELL
11573 _ASEOF
11574 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11575 ## -------------------- ##
11576 ## M4sh Initialization. ##
11577 ## -------------------- ##
11579 # Be more Bourne compatible
11580 DUALCASE=1; export DUALCASE # for MKS sh
11581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11582 emulate sh
11583 NULLCMD=:
11584 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11585 # is contrary to our usage. Disable this feature.
11586 alias -g '${1+"$@"}'='"$@"'
11587 setopt NO_GLOB_SUBST
11588 else
11589 case `(set -o) 2>/dev/null` in #(
11590 *posix*) :
11591 set -o posix ;; #(
11592 *) :
11594 esac
11598 as_nl='
11600 export as_nl
11601 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11602 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11603 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11604 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11605 # Prefer a ksh shell builtin over an external printf program on Solaris,
11606 # but without wasting forks for bash or zsh.
11607 if test -z "$BASH_VERSION$ZSH_VERSION" \
11608 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11609 as_echo='print -r --'
11610 as_echo_n='print -rn --'
11611 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11612 as_echo='printf %s\n'
11613 as_echo_n='printf %s'
11614 else
11615 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11616 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11617 as_echo_n='/usr/ucb/echo -n'
11618 else
11619 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11620 as_echo_n_body='eval
11621 arg=$1;
11622 case $arg in #(
11623 *"$as_nl"*)
11624 expr "X$arg" : "X\\(.*\\)$as_nl";
11625 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11626 esac;
11627 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11629 export as_echo_n_body
11630 as_echo_n='sh -c $as_echo_n_body as_echo'
11632 export as_echo_body
11633 as_echo='sh -c $as_echo_body as_echo'
11636 # The user is always right.
11637 if test "${PATH_SEPARATOR+set}" != set; then
11638 PATH_SEPARATOR=:
11639 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11640 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11641 PATH_SEPARATOR=';'
11646 # IFS
11647 # We need space, tab and new line, in precisely that order. Quoting is
11648 # there to prevent editors from complaining about space-tab.
11649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11650 # splitting by setting IFS to empty value.)
11651 IFS=" "" $as_nl"
11653 # Find who we are. Look in the path if we contain no directory separator.
11654 case $0 in #((
11655 *[\\/]* ) as_myself=$0 ;;
11656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11662 done
11663 IFS=$as_save_IFS
11666 esac
11667 # We did not find ourselves, most probably we were run as `sh COMMAND'
11668 # in which case we are not to be found in the path.
11669 if test "x$as_myself" = x; then
11670 as_myself=$0
11672 if test ! -f "$as_myself"; then
11673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11674 exit 1
11677 # Unset variables that we do not need and which cause bugs (e.g. in
11678 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11679 # suppresses any "Segmentation fault" message there. '((' could
11680 # trigger a bug in pdksh 5.2.14.
11681 for as_var in BASH_ENV ENV MAIL MAILPATH
11682 do eval test x\${$as_var+set} = xset \
11683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11684 done
11685 PS1='$ '
11686 PS2='> '
11687 PS4='+ '
11689 # NLS nuisances.
11690 LC_ALL=C
11691 export LC_ALL
11692 LANGUAGE=C
11693 export LANGUAGE
11695 # CDPATH.
11696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11699 # as_fn_error ERROR [LINENO LOG_FD]
11700 # ---------------------------------
11701 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11702 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11703 # script with status $?, using 1 if that was 0.
11704 as_fn_error ()
11706 as_status=$?; test $as_status -eq 0 && as_status=1
11707 if test "$3"; then
11708 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11711 $as_echo "$as_me: error: $1" >&2
11712 as_fn_exit $as_status
11713 } # as_fn_error
11716 # as_fn_set_status STATUS
11717 # -----------------------
11718 # Set $? to STATUS, without forking.
11719 as_fn_set_status ()
11721 return $1
11722 } # as_fn_set_status
11724 # as_fn_exit STATUS
11725 # -----------------
11726 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11727 as_fn_exit ()
11729 set +e
11730 as_fn_set_status $1
11731 exit $1
11732 } # as_fn_exit
11734 # as_fn_unset VAR
11735 # ---------------
11736 # Portably unset VAR.
11737 as_fn_unset ()
11739 { eval $1=; unset $1;}
11741 as_unset=as_fn_unset
11742 # as_fn_append VAR VALUE
11743 # ----------------------
11744 # Append the text in VALUE to the end of the definition contained in VAR. Take
11745 # advantage of any shell optimizations that allow amortized linear growth over
11746 # repeated appends, instead of the typical quadratic growth present in naive
11747 # implementations.
11748 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11749 eval 'as_fn_append ()
11751 eval $1+=\$2
11753 else
11754 as_fn_append ()
11756 eval $1=\$$1\$2
11758 fi # as_fn_append
11760 # as_fn_arith ARG...
11761 # ------------------
11762 # Perform arithmetic evaluation on the ARGs, and store the result in the
11763 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11764 # must be portable across $(()) and expr.
11765 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11766 eval 'as_fn_arith ()
11768 as_val=$(( $* ))
11770 else
11771 as_fn_arith ()
11773 as_val=`expr "$@" || test $? -eq 1`
11775 fi # as_fn_arith
11778 if expr a : '\(a\)' >/dev/null 2>&1 &&
11779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11780 as_expr=expr
11781 else
11782 as_expr=false
11785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11786 as_basename=basename
11787 else
11788 as_basename=false
11791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11792 as_dirname=dirname
11793 else
11794 as_dirname=false
11797 as_me=`$as_basename -- "$0" ||
11798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11799 X"$0" : 'X\(//\)$' \| \
11800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11801 $as_echo X/"$0" |
11802 sed '/^.*\/\([^/][^/]*\)\/*$/{
11803 s//\1/
11806 /^X\/\(\/\/\)$/{
11807 s//\1/
11810 /^X\/\(\/\).*/{
11811 s//\1/
11814 s/.*/./; q'`
11816 # Avoid depending upon Character Ranges.
11817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11820 as_cr_digits='0123456789'
11821 as_cr_alnum=$as_cr_Letters$as_cr_digits
11823 ECHO_C= ECHO_N= ECHO_T=
11824 case `echo -n x` in #(((((
11825 -n*)
11826 case `echo 'xy\c'` in
11827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11828 xy) ECHO_C='\c';;
11829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11830 ECHO_T=' ';;
11831 esac;;
11833 ECHO_N='-n';;
11834 esac
11836 rm -f conf$$ conf$$.exe conf$$.file
11837 if test -d conf$$.dir; then
11838 rm -f conf$$.dir/conf$$.file
11839 else
11840 rm -f conf$$.dir
11841 mkdir conf$$.dir 2>/dev/null
11843 if (echo >conf$$.file) 2>/dev/null; then
11844 if ln -s conf$$.file conf$$ 2>/dev/null; then
11845 as_ln_s='ln -s'
11846 # ... but there are two gotchas:
11847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11849 # In both cases, we have to default to `cp -p'.
11850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11851 as_ln_s='cp -p'
11852 elif ln conf$$.file conf$$ 2>/dev/null; then
11853 as_ln_s=ln
11854 else
11855 as_ln_s='cp -p'
11857 else
11858 as_ln_s='cp -p'
11860 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11861 rmdir conf$$.dir 2>/dev/null
11864 # as_fn_mkdir_p
11865 # -------------
11866 # Create "$as_dir" as a directory, including parents if necessary.
11867 as_fn_mkdir_p ()
11870 case $as_dir in #(
11871 -*) as_dir=./$as_dir;;
11872 esac
11873 test -d "$as_dir" || eval $as_mkdir_p || {
11874 as_dirs=
11875 while :; do
11876 case $as_dir in #(
11877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11878 *) as_qdir=$as_dir;;
11879 esac
11880 as_dirs="'$as_qdir' $as_dirs"
11881 as_dir=`$as_dirname -- "$as_dir" ||
11882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11883 X"$as_dir" : 'X\(//\)[^/]' \| \
11884 X"$as_dir" : 'X\(//\)$' \| \
11885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11886 $as_echo X"$as_dir" |
11887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11888 s//\1/
11891 /^X\(\/\/\)[^/].*/{
11892 s//\1/
11895 /^X\(\/\/\)$/{
11896 s//\1/
11899 /^X\(\/\).*/{
11900 s//\1/
11903 s/.*/./; q'`
11904 test -d "$as_dir" && break
11905 done
11906 test -z "$as_dirs" || eval "mkdir $as_dirs"
11907 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11910 } # as_fn_mkdir_p
11911 if mkdir -p . 2>/dev/null; then
11912 as_mkdir_p='mkdir -p "$as_dir"'
11913 else
11914 test -d ./-p && rmdir ./-p
11915 as_mkdir_p=false
11918 if test -x / >/dev/null 2>&1; then
11919 as_test_x='test -x'
11920 else
11921 if ls -dL / >/dev/null 2>&1; then
11922 as_ls_L_option=L
11923 else
11924 as_ls_L_option=
11926 as_test_x='
11927 eval sh -c '\''
11928 if test -d "$1"; then
11929 test -d "$1/.";
11930 else
11931 case $1 in #(
11932 -*)set "./$1";;
11933 esac;
11934 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11935 ???[sx]*):;;*)false;;esac;fi
11936 '\'' sh
11939 as_executable_p=$as_test_x
11941 # Sed expression to map a string onto a valid CPP name.
11942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11944 # Sed expression to map a string onto a valid variable name.
11945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11948 exec 6>&1
11949 ## ----------------------------------- ##
11950 ## Main body of $CONFIG_STATUS script. ##
11951 ## ----------------------------------- ##
11952 _ASEOF
11953 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11956 # Save the log message, to keep $0 and so on meaningful, and to
11957 # report actual input values of CONFIG_FILES etc. instead of their
11958 # values after options handling.
11959 ac_log="
11960 This file was extended by Gambit-C $as_me v4.5.3, which was
11961 generated by GNU Autoconf 2.64. Invocation command line was
11963 CONFIG_FILES = $CONFIG_FILES
11964 CONFIG_HEADERS = $CONFIG_HEADERS
11965 CONFIG_LINKS = $CONFIG_LINKS
11966 CONFIG_COMMANDS = $CONFIG_COMMANDS
11967 $ $0 $@
11969 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11972 _ACEOF
11974 case $ac_config_files in *"
11975 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11976 esac
11978 case $ac_config_headers in *"
11979 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11980 esac
11983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11984 # Files that config.status was made for.
11985 config_files="$ac_config_files"
11986 config_headers="$ac_config_headers"
11988 _ACEOF
11990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11991 ac_cs_usage="\
11992 \`$as_me' instantiates files and other configuration actions
11993 from templates according to the current configuration. Unless the files
11994 and actions are specified as TAGs, all are instantiated by default.
11996 Usage: $0 [OPTION]... [TAG]...
11998 -h, --help print this help, then exit
11999 -V, --version print version number and configuration settings, then exit
12000 -q, --quiet, --silent
12001 do not print progress messages
12002 -d, --debug don't remove temporary files
12003 --recheck update $as_me by reconfiguring in the same conditions
12004 --file=FILE[:TEMPLATE]
12005 instantiate the configuration file FILE
12006 --header=FILE[:TEMPLATE]
12007 instantiate the configuration header FILE
12009 Configuration files:
12010 $config_files
12012 Configuration headers:
12013 $config_headers
12015 Report bugs to <gambit@iro.umontreal.ca>."
12017 _ACEOF
12018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12019 ac_cs_version="\\
12020 Gambit-C config.status v4.5.3
12021 configured by $0, generated by GNU Autoconf 2.64,
12022 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12024 Copyright (C) 2009 Free Software Foundation, Inc.
12025 This config.status script is free software; the Free Software Foundation
12026 gives unlimited permission to copy, distribute and modify it."
12028 ac_pwd='$ac_pwd'
12029 srcdir='$srcdir'
12030 test -n "\$AWK" || AWK=awk
12031 _ACEOF
12033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12034 # The default lists apply if the user does not specify any file.
12035 ac_need_defaults=:
12036 while test $# != 0
12038 case $1 in
12039 --*=*)
12040 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12041 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12042 ac_shift=:
12045 ac_option=$1
12046 ac_optarg=$2
12047 ac_shift=shift
12049 esac
12051 case $ac_option in
12052 # Handling of the options.
12053 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12054 ac_cs_recheck=: ;;
12055 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12056 $as_echo "$ac_cs_version"; exit ;;
12057 --debug | --debu | --deb | --de | --d | -d )
12058 debug=: ;;
12059 --file | --fil | --fi | --f )
12060 $ac_shift
12061 case $ac_optarg in
12062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12063 esac
12064 as_fn_append CONFIG_FILES " '$ac_optarg'"
12065 ac_need_defaults=false;;
12066 --header | --heade | --head | --hea )
12067 $ac_shift
12068 case $ac_optarg in
12069 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12070 esac
12071 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12072 ac_need_defaults=false;;
12073 --he | --h)
12074 # Conflict between --help and --header
12075 as_fn_error "ambiguous option: \`$1'
12076 Try \`$0 --help' for more information.";;
12077 --help | --hel | -h )
12078 $as_echo "$ac_cs_usage"; exit ;;
12079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12081 ac_cs_silent=: ;;
12083 # This is an error.
12084 -*) as_fn_error "unrecognized option: \`$1'
12085 Try \`$0 --help' for more information." ;;
12087 *) as_fn_append ac_config_targets " $1"
12088 ac_need_defaults=false ;;
12090 esac
12091 shift
12092 done
12094 ac_configure_extra_args=
12096 if $ac_cs_silent; then
12097 exec 6>/dev/null
12098 ac_configure_extra_args="$ac_configure_extra_args --silent"
12101 _ACEOF
12102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12103 if \$ac_cs_recheck; then
12104 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12105 shift
12106 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12107 CONFIG_SHELL='$SHELL'
12108 export CONFIG_SHELL
12109 exec "\$@"
12112 _ACEOF
12113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12114 exec 5>>config.log
12116 echo
12117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12118 ## Running $as_me. ##
12119 _ASBOX
12120 $as_echo "$ac_log"
12121 } >&5
12123 _ACEOF
12124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12125 _ACEOF
12127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12129 # Handling of arguments.
12130 for ac_config_target in $ac_config_targets
12132 case $ac_config_target in
12133 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
12134 "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
12135 "include/makefile") CONFIG_FILES="$CONFIG_FILES include/makefile" ;;
12136 "include/gambit.h") CONFIG_FILES="$CONFIG_FILES include/gambit.h" ;;
12137 "lib/makefile") CONFIG_FILES="$CONFIG_FILES lib/makefile" ;;
12138 "lib/guide/guidepro") CONFIG_FILES="$CONFIG_FILES lib/guide/guidepro" ;;
12139 "lib/guide/makefile") CONFIG_FILES="$CONFIG_FILES lib/guide/makefile" ;;
12140 "lib/guide/images/makefile") CONFIG_FILES="$CONFIG_FILES lib/guide/images/makefile" ;;
12141 "gsi/makefile") CONFIG_FILES="$CONFIG_FILES gsi/makefile" ;;
12142 "gsc/makefile") CONFIG_FILES="$CONFIG_FILES gsc/makefile" ;;
12143 "bin/makefile") CONFIG_FILES="$CONFIG_FILES bin/makefile" ;;
12144 "bin/gambc-cc.bat.unix") CONFIG_FILES="$CONFIG_FILES bin/gambc-cc.bat.unix" ;;
12145 "bin/gambc-cc.bat.windows") CONFIG_FILES="$CONFIG_FILES bin/gambc-cc.bat.windows" ;;
12146 "bin/gambc-doc.bat.unix") CONFIG_FILES="$CONFIG_FILES bin/gambc-doc.bat.unix" ;;
12147 "bin/gambc-doc.bat.windows") CONFIG_FILES="$CONFIG_FILES bin/gambc-doc.bat.windows" ;;
12148 "misc/makefile") CONFIG_FILES="$CONFIG_FILES misc/makefile" ;;
12149 "doc/makefile") CONFIG_FILES="$CONFIG_FILES doc/makefile" ;;
12150 "tests/makefile") CONFIG_FILES="$CONFIG_FILES tests/makefile" ;;
12151 "examples/makefile") CONFIG_FILES="$CONFIG_FILES examples/makefile" ;;
12152 "examples/distr-comp/makefile") CONFIG_FILES="$CONFIG_FILES examples/distr-comp/makefile" ;;
12153 "examples/pi/makefile") CONFIG_FILES="$CONFIG_FILES examples/pi/makefile" ;;
12154 "examples/ring/makefile") CONFIG_FILES="$CONFIG_FILES examples/ring/makefile" ;;
12155 "examples/web-repl/makefile") CONFIG_FILES="$CONFIG_FILES examples/web-repl/makefile" ;;
12156 "examples/web-server/makefile") CONFIG_FILES="$CONFIG_FILES examples/web-server/makefile" ;;
12157 "examples/tcltk/makefile") CONFIG_FILES="$CONFIG_FILES examples/tcltk/makefile" ;;
12158 "examples/Xlib-simple/makefile") CONFIG_FILES="$CONFIG_FILES examples/Xlib-simple/makefile" ;;
12159 "examples/pthread/makefile") CONFIG_FILES="$CONFIG_FILES examples/pthread/makefile" ;;
12160 "examples/misc/makefile") CONFIG_FILES="$CONFIG_FILES examples/misc/makefile" ;;
12161 "prebuilt/makefile") CONFIG_FILES="$CONFIG_FILES prebuilt/makefile" ;;
12162 "prebuilt/macosx/makefile") CONFIG_FILES="$CONFIG_FILES prebuilt/macosx/makefile" ;;
12163 "prebuilt/macosx/build-phase2") CONFIG_FILES="$CONFIG_FILES prebuilt/macosx/build-phase2" ;;
12164 "prebuilt/windows/makefile") CONFIG_FILES="$CONFIG_FILES prebuilt/windows/makefile" ;;
12165 "prebuilt/windows/build-phase2") CONFIG_FILES="$CONFIG_FILES prebuilt/windows/build-phase2" ;;
12167 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12168 esac
12169 done
12172 # If the user did not use the arguments to specify the items to instantiate,
12173 # then the envvar interface is used. Set only those that are not.
12174 # We use the long form for the default assignment because of an extremely
12175 # bizarre bug on SunOS 4.1.3.
12176 if $ac_need_defaults; then
12177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12181 # Have a temporary directory for convenience. Make it in the build tree
12182 # simply because there is no reason against having it here, and in addition,
12183 # creating and moving files from /tmp can sometimes cause problems.
12184 # Hook for its removal unless debugging.
12185 # Note that there is a small window in which the directory will not be cleaned:
12186 # after its creation but before its name has been assigned to `$tmp'.
12187 $debug ||
12189 tmp=
12190 trap 'exit_status=$?
12191 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12193 trap 'as_fn_exit 1' 1 2 13 15
12195 # Create a (secure) tmp directory for tmp files.
12198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12199 test -n "$tmp" && test -d "$tmp"
12200 } ||
12202 tmp=./conf$$-$RANDOM
12203 (umask 077 && mkdir "$tmp")
12204 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12206 # Set up the scripts for CONFIG_FILES section.
12207 # No need to generate them if there are no CONFIG_FILES.
12208 # This happens for instance with `./config.status config.h'.
12209 if test -n "$CONFIG_FILES"; then
12212 ac_cr=`echo X | tr X '\015'`
12213 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12214 # But we know of no other shell where ac_cr would be empty at this
12215 # point, so we can use a bashism as a fallback.
12216 if test "x$ac_cr" = x; then
12217 eval ac_cr=\$\'\\r\'
12219 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12220 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12221 ac_cs_awk_cr='\r'
12222 else
12223 ac_cs_awk_cr=$ac_cr
12226 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12227 _ACEOF
12231 echo "cat >conf$$subs.awk <<_ACEOF" &&
12232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12233 echo "_ACEOF"
12234 } >conf$$subs.sh ||
12235 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12236 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12237 ac_delim='%!_!# '
12238 for ac_last_try in false false false false false :; do
12239 . ./conf$$subs.sh ||
12240 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12242 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12243 if test $ac_delim_n = $ac_delim_num; then
12244 break
12245 elif $ac_last_try; then
12246 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12247 else
12248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12250 done
12251 rm -f conf$$subs.sh
12253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12254 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12255 _ACEOF
12256 sed -n '
12258 s/^/S["/; s/!.*/"]=/
12261 s/^[^!]*!//
12262 :repl
12263 t repl
12264 s/'"$ac_delim"'$//
12265 t delim
12268 s/\(.\{148\}\).*/\1/
12269 t more1
12270 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12273 b repl
12274 :more1
12275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12278 s/.\{148\}//
12279 t nl
12280 :delim
12282 s/\(.\{148\}\).*/\1/
12283 t more2
12284 s/["\\]/\\&/g; s/^/"/; s/$/"/
12287 :more2
12288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12291 s/.\{148\}//
12292 t delim
12293 ' <conf$$subs.awk | sed '
12294 /^[^""]/{
12296 s/\n//
12298 ' >>$CONFIG_STATUS || ac_write_fail=1
12299 rm -f conf$$subs.awk
12300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12301 _ACAWK
12302 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12303 for (key in S) S_is_set[key] = 1
12304 FS = "\a"
12308 line = $ 0
12309 nfields = split(line, field, "@")
12310 substed = 0
12311 len = length(field[1])
12312 for (i = 2; i < nfields; i++) {
12313 key = field[i]
12314 keylen = length(key)
12315 if (S_is_set[key]) {
12316 value = S[key]
12317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12318 len += length(value) + length(field[++i])
12319 substed = 1
12320 } else
12321 len += 1 + keylen
12324 print line
12327 _ACAWK
12328 _ACEOF
12329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12330 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12331 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12332 else
12334 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12335 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12336 _ACEOF
12338 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12339 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12340 # trailing colons and then remove the whole line if VPATH becomes empty
12341 # (actually we leave an empty line to preserve line numbers).
12342 if test "x$srcdir" = x.; then
12343 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12344 s/:*\$(srcdir):*/:/
12345 s/:*\${srcdir}:*/:/
12346 s/:*@srcdir@:*/:/
12347 s/^\([^=]*=[ ]*\):*/\1/
12348 s/:*$//
12349 s/^[^=]*=[ ]*$//
12353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12354 fi # test -n "$CONFIG_FILES"
12356 # Set up the scripts for CONFIG_HEADERS section.
12357 # No need to generate them if there are no CONFIG_HEADERS.
12358 # This happens for instance with `./config.status Makefile'.
12359 if test -n "$CONFIG_HEADERS"; then
12360 cat >"$tmp/defines.awk" <<\_ACAWK ||
12361 BEGIN {
12362 _ACEOF
12364 # Transform confdefs.h into an awk script `defines.awk', embedded as
12365 # here-document in config.status, that substitutes the proper values into
12366 # config.h.in to produce config.h.
12368 # Create a delimiter string that does not exist in confdefs.h, to ease
12369 # handling of long lines.
12370 ac_delim='%!_!# '
12371 for ac_last_try in false false :; do
12372 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12373 if test -z "$ac_t"; then
12374 break
12375 elif $ac_last_try; then
12376 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12377 else
12378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12380 done
12382 # For the awk script, D is an array of macro values keyed by name,
12383 # likewise P contains macro parameters if any. Preserve backslash
12384 # newline sequences.
12386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12387 sed -n '
12388 s/.\{148\}/&'"$ac_delim"'/g
12389 t rset
12390 :rset
12391 s/^[ ]*#[ ]*define[ ][ ]*/ /
12392 t def
12394 :def
12395 s/\\$//
12396 t bsnl
12397 s/["\\]/\\&/g
12398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12399 D["\1"]=" \3"/p
12400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12402 :bsnl
12403 s/["\\]/\\&/g
12404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12405 D["\1"]=" \3\\\\\\n"\\/p
12406 t cont
12407 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12408 t cont
12410 :cont
12412 s/.\{148\}/&'"$ac_delim"'/g
12413 t clear
12414 :clear
12415 s/\\$//
12416 t bsnlc
12417 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12419 :bsnlc
12420 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12421 b cont
12422 ' <confdefs.h | sed '
12423 s/'"$ac_delim"'/"\\\
12424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12427 for (key in D) D_is_set[key] = 1
12428 FS = "\a"
12430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12431 line = \$ 0
12432 split(line, arg, " ")
12433 if (arg[1] == "#") {
12434 defundef = arg[2]
12435 mac1 = arg[3]
12436 } else {
12437 defundef = substr(arg[1], 2)
12438 mac1 = arg[2]
12440 split(mac1, mac2, "(") #)
12441 macro = mac2[1]
12442 prefix = substr(line, 1, index(line, defundef) - 1)
12443 if (D_is_set[macro]) {
12444 # Preserve the white space surrounding the "#".
12445 print prefix "define", macro P[macro] D[macro]
12446 next
12447 } else {
12448 # Replace #undef with comments. This is necessary, for example,
12449 # in the case of _POSIX_SOURCE, which is predefined and required
12450 # on some systems where configure will not decide to define it.
12451 if (defundef == "undef") {
12452 print "/*", prefix defundef, macro, "*/"
12453 next
12457 { print }
12458 _ACAWK
12459 _ACEOF
12460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12461 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12462 fi # test -n "$CONFIG_HEADERS"
12465 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12466 shift
12467 for ac_tag
12469 case $ac_tag in
12470 :[FHLC]) ac_mode=$ac_tag; continue;;
12471 esac
12472 case $ac_mode$ac_tag in
12473 :[FHL]*:*);;
12474 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12475 :[FH]-) ac_tag=-:-;;
12476 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12477 esac
12478 ac_save_IFS=$IFS
12479 IFS=:
12480 set x $ac_tag
12481 IFS=$ac_save_IFS
12482 shift
12483 ac_file=$1
12484 shift
12486 case $ac_mode in
12487 :L) ac_source=$1;;
12488 :[FH])
12489 ac_file_inputs=
12490 for ac_f
12492 case $ac_f in
12493 -) ac_f="$tmp/stdin";;
12494 *) # Look for the file first in the build tree, then in the source tree
12495 # (if the path is not absolute). The absolute path cannot be DOS-style,
12496 # because $ac_f cannot contain `:'.
12497 test -f "$ac_f" ||
12498 case $ac_f in
12499 [\\/$]*) false;;
12500 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12501 esac ||
12502 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12503 esac
12504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12505 as_fn_append ac_file_inputs " '$ac_f'"
12506 done
12508 # Let's still pretend it is `configure' which instantiates (i.e., don't
12509 # use $as_me), people would be surprised to read:
12510 # /* config.h. Generated by config.status. */
12511 configure_input='Generated from '`
12512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12513 `' by configure.'
12514 if test x"$ac_file" != x-; then
12515 configure_input="$ac_file. $configure_input"
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12517 $as_echo "$as_me: creating $ac_file" >&6;}
12519 # Neutralize special characters interpreted by sed in replacement strings.
12520 case $configure_input in #(
12521 *\&* | *\|* | *\\* )
12522 ac_sed_conf_input=`$as_echo "$configure_input" |
12523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12524 *) ac_sed_conf_input=$configure_input;;
12525 esac
12527 case $ac_tag in
12528 *:-:* | *:-) cat >"$tmp/stdin" \
12529 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12530 esac
12532 esac
12534 ac_dir=`$as_dirname -- "$ac_file" ||
12535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12536 X"$ac_file" : 'X\(//\)[^/]' \| \
12537 X"$ac_file" : 'X\(//\)$' \| \
12538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12539 $as_echo X"$ac_file" |
12540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12541 s//\1/
12544 /^X\(\/\/\)[^/].*/{
12545 s//\1/
12548 /^X\(\/\/\)$/{
12549 s//\1/
12552 /^X\(\/\).*/{
12553 s//\1/
12556 s/.*/./; q'`
12557 as_dir="$ac_dir"; as_fn_mkdir_p
12558 ac_builddir=.
12560 case "$ac_dir" in
12561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12564 # A ".." for each directory in $ac_dir_suffix.
12565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12566 case $ac_top_builddir_sub in
12567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12569 esac ;;
12570 esac
12571 ac_abs_top_builddir=$ac_pwd
12572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12573 # for backward compatibility:
12574 ac_top_builddir=$ac_top_build_prefix
12576 case $srcdir in
12577 .) # We are building in place.
12578 ac_srcdir=.
12579 ac_top_srcdir=$ac_top_builddir_sub
12580 ac_abs_top_srcdir=$ac_pwd ;;
12581 [\\/]* | ?:[\\/]* ) # Absolute name.
12582 ac_srcdir=$srcdir$ac_dir_suffix;
12583 ac_top_srcdir=$srcdir
12584 ac_abs_top_srcdir=$srcdir ;;
12585 *) # Relative name.
12586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12587 ac_top_srcdir=$ac_top_build_prefix$srcdir
12588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12589 esac
12590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12593 case $ac_mode in
12596 # CONFIG_FILE
12599 _ACEOF
12601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12602 # If the template does not know about datarootdir, expand it.
12603 # FIXME: This hack should be removed a few years after 2.60.
12604 ac_datarootdir_hack=; ac_datarootdir_seen=
12605 ac_sed_dataroot='
12606 /datarootdir/ {
12610 /@datadir@/p
12611 /@docdir@/p
12612 /@infodir@/p
12613 /@localedir@/p
12614 /@mandir@/p'
12615 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12616 *datarootdir*) ac_datarootdir_seen=yes;;
12617 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12619 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12620 _ACEOF
12621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622 ac_datarootdir_hack='
12623 s&@datadir@&$datadir&g
12624 s&@docdir@&$docdir&g
12625 s&@infodir@&$infodir&g
12626 s&@localedir@&$localedir&g
12627 s&@mandir@&$mandir&g
12628 s&\\\${datarootdir}&$datarootdir&g' ;;
12629 esac
12630 _ACEOF
12632 # Neutralize VPATH when `$srcdir' = `.'.
12633 # Shell code in configure.ac might set extrasub.
12634 # FIXME: do we really want to maintain this feature?
12635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12636 ac_sed_extra="$ac_vpsub
12637 $extrasub
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12642 s|@configure_input@|$ac_sed_conf_input|;t t
12643 s&@top_builddir@&$ac_top_builddir_sub&;t t
12644 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12645 s&@srcdir@&$ac_srcdir&;t t
12646 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12647 s&@top_srcdir@&$ac_top_srcdir&;t t
12648 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12649 s&@builddir@&$ac_builddir&;t t
12650 s&@abs_builddir@&$ac_abs_builddir&;t t
12651 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12652 $ac_datarootdir_hack
12654 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12655 || as_fn_error "could not create $ac_file" "$LINENO" 5
12657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12661 which seems to be undefined. Please make sure it is defined." >&5
12662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12663 which seems to be undefined. Please make sure it is defined." >&2;}
12665 rm -f "$tmp/stdin"
12666 case $ac_file in
12667 -) cat "$tmp/out" && rm -f "$tmp/out";;
12668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12669 esac \
12670 || as_fn_error "could not create $ac_file" "$LINENO" 5
12674 # CONFIG_HEADER
12676 if test x"$ac_file" != x-; then
12678 $as_echo "/* $configure_input */" \
12679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12680 } >"$tmp/config.h" \
12681 || as_fn_error "could not create $ac_file" "$LINENO" 5
12682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12684 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12685 else
12686 rm -f "$ac_file"
12687 mv "$tmp/config.h" "$ac_file" \
12688 || as_fn_error "could not create $ac_file" "$LINENO" 5
12690 else
12691 $as_echo "/* $configure_input */" \
12692 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12693 || as_fn_error "could not create -" "$LINENO" 5
12698 esac
12700 done # for ac_tag
12703 as_fn_exit 0
12704 _ACEOF
12705 ac_clean_files=$ac_clean_files_save
12707 test $ac_write_fail = 0 ||
12708 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12711 # configure is writing to config.log, and then calls config.status.
12712 # config.status does its own redirection, appending to config.log.
12713 # Unfortunately, on DOS this fails, as config.log is still kept open
12714 # by configure, so config.status won't be able to write to it; its
12715 # output is simply discarded. So we exec the FD to /dev/null,
12716 # effectively closing config.log, so it can be properly (re)opened and
12717 # appended to by config.status. When coming back to configure, we
12718 # need to make the FD available again.
12719 if test "$no_create" != yes; then
12720 ac_cs_success=:
12721 ac_config_status_args=
12722 test "$silent" = yes &&
12723 ac_config_status_args="$ac_config_status_args --quiet"
12724 exec 5>/dev/null
12725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12726 exec 5>>config.log
12727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12728 # would make configure fail if this is the last instruction.
12729 $ac_cs_success || as_fn_exit $?
12731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12737 if test "$ENABLE_SINGLE_HOST" != yes; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}:
12739 **************************************************************************
12740 *** The option \"--enable-single-host\" was not specified to the ***
12741 *** configure script. The Gambit-C system will compile correctly but ***
12742 *** the code generated by the C compiler will be suboptimal and the ***
12743 *** executables will run considerably slower than if ***
12744 *** \"--enable-single-host\" is specified. On the other hand the build ***
12745 *** process will be faster and require less memory. If you have lots ***
12746 *** of RAM memory (>= 500 Mbytes) and you are willing to wait for the ***
12747 *** longer build try the configure option \"--enable-single-host\". ***
12748 **************************************************************************
12749 " >&5
12750 $as_echo "$as_me:
12751 **************************************************************************
12752 *** The option \"--enable-single-host\" was not specified to the ***
12753 *** configure script. The Gambit-C system will compile correctly but ***
12754 *** the code generated by the C compiler will be suboptimal and the ***
12755 *** executables will run considerably slower than if ***
12756 *** \"--enable-single-host\" is specified. On the other hand the build ***
12757 *** process will be faster and require less memory. If you have lots ***
12758 *** of RAM memory (>= 500 Mbytes) and you are willing to wait for the ***
12759 *** longer build try the configure option \"--enable-single-host\". ***
12760 **************************************************************************
12761 " >&6;}
12764 if test "$C_COMP_GNUC" = yes; then
12766 if test "$ENABLE_GCC_MOVE_LOOP_INVARIANTS" != yes; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}:
12768 **************************************************************************
12769 *** The GCC compiler that is being used has problems compiling Gambit ***
12770 *** generated code when the normal set of C compiler optimizations are ***
12771 *** enabled and the configure flag \"--enable-single-host\" is ***
12772 *** specified. It can take over 20 GBytes of virtual memory to ***
12773 *** compile some files. For this reason the GCC compiler optimization ***
12774 *** which performs loop invariant code motion has been disabled by ***
12775 *** adding the GCC command line option \"-fno-move-loop-invariants\". ***
12776 *** This greatly reduces compile time space requirements and it has a ***
12777 *** small impact on overall run time performance, but for some tight ***
12778 *** loops the effect is larger. If you want to avoid this problem ***
12779 *** then upgrade your version of GCC to 4.4 (or above hopefully) or ***
12780 *** downgrade to a version prior to 4.2 . ***
12781 **************************************************************************
12782 " >&5
12783 $as_echo "$as_me:
12784 **************************************************************************
12785 *** The GCC compiler that is being used has problems compiling Gambit ***
12786 *** generated code when the normal set of C compiler optimizations are ***
12787 *** enabled and the configure flag \"--enable-single-host\" is ***
12788 *** specified. It can take over 20 GBytes of virtual memory to ***
12789 *** compile some files. For this reason the GCC compiler optimization ***
12790 *** which performs loop invariant code motion has been disabled by ***
12791 *** adding the GCC command line option \"-fno-move-loop-invariants\". ***
12792 *** This greatly reduces compile time space requirements and it has a ***
12793 *** small impact on overall run time performance, but for some tight ***
12794 *** loops the effect is larger. If you want to avoid this problem ***
12795 *** then upgrade your version of GCC to 4.4 (or above hopefully) or ***
12796 *** downgrade to a version prior to 4.2 . ***
12797 **************************************************************************
12798 " >&6;}
12801 # if test "$ENABLE_GCC_OPTS" != yes; then
12802 # AC_MSG_NOTICE([
12803 #**************************************************************************
12804 #*** The GCC compiler is being used but the option "--enable-gcc-opts" ***
12805 #*** was not specified to the configure script. The Gambit-C system ***
12806 #*** will compile correctly but the code generated by the GCC compiler ***
12807 #*** will be suboptimal and the executables will run slightly slower ***
12808 #*** than if "--enable-gcc-opts" is specified. On the other hand the ***
12809 #*** build process will be faster and require less memory. If you have ***
12810 #*** lots of RAM memory (>= 2 Gbytes) and you are willing to wait for ***
12811 #*** the longer build try the configure option "--enable-gcc-opts". ***
12812 #**************************************************************************
12814 # fi