5
5
define(GUILE_CONFIGURE_COPYRIGHT,[[
7
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
9
9
This file is part of GUILE
87
87
AC_CHECK_LIB([ltdl], [lt_dlinit], ,
88
88
[AC_MSG_ERROR([libltdl not found. See README.])])
89
AC_CHECK_HEADER([ltdl.h], [],
90
[AC_MSG_ERROR([<ltdl.h> not found. See README.])])
92
92
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
93
93
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
168
169
warn_default=$enable_deprecated
170
171
SCM_I_GSC_ENABLE_DEPRECATED=1
171
AC_DEFINE_UNQUOTED(SCM_WARN_DEPRECATED_DEFAULT, "$warn_default",
172
[Define this to control the default warning level for deprecated features.])
173
AC_DEFINE_UNQUOTED(SCM_WARN_DEPRECATED_DEFAULT, "$warn_default",
174
[Define this to control the default warning level for deprecated features.])
175
176
AC_ARG_ENABLE(elisp,
176
177
[ --disable-elisp omit Emacs Lisp support],,
225
AC_MSG_CHECKING([whether the compiler defaults to IEEE floating point behavior])
226
# The following snippet was taken from Gnulib's `fpieee'. See also the definition
227
# of `guile_NaN' in `numbers.c'.
229
# IEEE behaviour is the default on all CPUs except Alpha and SH
230
# (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
231
# and the GCC 4.1.2 manual).
234
# On Alpha systems, a compiler option provides the behaviour.
235
# See the ieee(3) manual page, also available at
236
# <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
238
if test -n "$GCC"; then
239
# GCC has the option -mieee.
240
CPPFLAGS="$CPPFLAGS -mieee"
242
# Compaq (ex-DEC) C has the option -ieee.
243
CPPFLAGS="$CPPFLAGS -ieee"
248
if test -n "$GCC"; then
249
# GCC has the option -mieee.
250
CPPFLAGS="$CPPFLAGS -mieee"
224
259
#--------------------------------------------------------------------
226
261
dnl Check for dynamic linking
618
653
# Reasons for testing:
619
654
# complex.h - new in C99
620
655
# fenv.h - available in C99, but not older systems
656
# machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in
657
# this file instead of <fenv.h>
621
658
# process.h - mingw specific
623
660
AC_CHECK_HEADERS([complex.h fenv.h io.h libc.h limits.h malloc.h memory.h process.h string.h \
624
661
regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \
625
662
sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
626
663
sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
664
direct.h strings.h machine/fpu.h])
629
666
# "complex double" is new in C99, and "complex" is only a keyword if
630
667
# <complex.h> is included
729
766
# the DECL is checked because Solaris 10 doens't have in any header
730
767
# strncasecmp - on NetBSD 1.6 the symbol is available in libc but the
731
768
# declaration cannot be found
769
# unsetenv - on Tru64 5.1b the symbol is available in libc but the
770
# declaration is only found if `_BSD' is defined; it's marked as
771
# discouraged in <stdlib.h> and has type `void' instead of `int'
773
# hstrerror - on Tru64 5.1b the symbol is available in libc but the
774
# declaration isn't anywhere.
775
# cuserid - on Tru64 5.1b the declaration is documented to be available
776
# only with `_XOPEN_SOURCE' or some such.
777
# flock - on Tru64 5.1b the declaration is available from <sys/fcntl.h>
778
# but only if `_BSD' is defined.
779
# vsnprintf - on AIX 5.3, the declaration is only visible with
780
# `_XOPEN_SOURCE >= 500' or `_ISOC99_SOURCE'.
733
782
AC_CHECK_HEADERS(crypt.h netdb.h pthread.h sys/param.h sys/resource.h sys/file.h)
734
783
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
735
AC_CHECK_DECLS([sethostname, strncasecmp])
784
AC_CHECK_DECLS([sethostname, strncasecmp, unsetenv, hstrerror, cuserid, flock, vsnprintf])
737
786
# crypt() may or may not be available, for instance in some countries there
738
787
# are restrictions on cryptography.
1032
1081
AC_DEFINE(LOCALTIME_CACHE, 1, [Define if localtime caches the TZ setting.])
1035
dnl Test whether system calls are restartable by default on the
1036
dnl current system. If they are not, we put a loop around every system
1037
dnl call to check for EINTR (see SCM_SYSCALL) and do not attempt to
1038
dnl change from the default behaviour. On the other hand, if signals
1039
dnl are restartable then the loop is not installed and when libguile
1040
dnl initialises it also resets the behaviour of each signal to cause a
1041
dnl restart (in case a different runtime had a different default
1042
dnl behaviour for some reason: e.g., different versions of linux seem
1043
dnl to behave differently.)
1045
AC_SYS_RESTARTABLE_SYSCALLS
1047
1084
if test "$enable_regex" = yes; then
1048
1085
if test "$ac_cv_header_regex_h" = yes ||
1049
1086
test "$ac_cv_header_rxposix_h" = yes ||
1247
1284
build_pthread_support="yes"
1249
ACX_PTHREAD(CC="$PTHREAD_CC"
1250
LIBS="$PTHREAD_LIBS $LIBS"
1251
SCM_I_GSC_USE_PTHREAD_THREADS=1
1252
with_threads="pthreads",
1253
with_threads="null")
1286
ACX_PTHREAD([CC="$PTHREAD_CC"
1287
LIBS="$PTHREAD_LIBS $LIBS"
1288
SCM_I_GSC_USE_PTHREAD_THREADS=1
1289
with_threads="pthreads"],
1290
[with_threads="null"
1291
build_pthread_support="no"])
1255
1293
old_CFLAGS="$CFLAGS"
1256
1294
CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
1527
1565
doc/tutorial/Makefile
1529
1567
examples/Makefile
1530
examples/box-dynamic-module/Makefile
1531
examples/box-dynamic/Makefile
1532
examples/box-module/Makefile
1533
examples/box/Makefile
1534
examples/modules/Makefile
1535
examples/safe/Makefile
1536
examples/scripts/Makefile
1537
1568
guile-config/Makefile
1539
ice-9/debugger/Makefile
1540
ice-9/debugging/Makefile
1543
lang/elisp/internals/Makefile
1544
lang/elisp/primitives/Makefile
1545
1571
libguile/Makefile
1547
1573
oop/goops/Makefile
1567
1593
[chmod +x libguile/guile-snarf-docs])
1568
1594
AC_CONFIG_FILES([test-suite/standalone/test-use-srfi],
1569
1595
[chmod +x test-suite/standalone/test-use-srfi])
1596
AC_CONFIG_FILES([test-suite/standalone/test-fast-slot-ref],
1597
[chmod +x test-suite/standalone/test-fast-slot-ref])