~peter-pearse/ubuntu/natty/guile-1.8/prop001

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2009-07-20 19:39:17 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090720193917-s0985l9wxihwoscl
Tags: 1.8.7+1-1ubuntu1
* Merge from Debian unstable, remaining changes: (LP: #401816)
  - Build with -Wno-error.
  - Build with thread support. Some guile-using programs like autogen need it.
  - Add debian/guile-1.8-libs.shlibs: Thread support breaks ABI, bump the soname.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
define(GUILE_CONFIGURE_COPYRIGHT,[[
6
6
 
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.
8
8
 
9
9
This file is part of GUILE
10
10
 
86
86
AC_PROG_LIBTOOL
87
87
AC_CHECK_LIB([ltdl], [lt_dlinit], ,
88
88
  [AC_MSG_ERROR([libltdl not found.  See README.])])
89
 
 
90
 
AC_SUBST(DLPREOPEN)
 
89
AC_CHECK_HEADER([ltdl.h], [],
 
90
  [AC_MSG_ERROR([<ltdl.h> not found.  See README.])])
91
91
 
92
92
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
93
93
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
159
159
 
160
160
if test "$enable_deprecated" = no; then
161
161
  SCM_I_GSC_ENABLE_DEPRECATED=0
 
162
  warn_default=no
162
163
else
163
164
  if test "$enable_deprecated" = yes || test "$enable_deprecated" = ""; then
164
165
    warn_default=summary
168
169
    warn_default=$enable_deprecated
169
170
  fi
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
172
fi
 
173
AC_DEFINE_UNQUOTED(SCM_WARN_DEPRECATED_DEFAULT, "$warn_default",
 
174
[Define this to control the default warning level for deprecated features.])
174
175
 
175
176
AC_ARG_ENABLE(elisp,
176
177
  [  --disable-elisp         omit Emacs Lisp support],,
221
222
    ;;
222
223
esac
223
224
 
 
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'.
 
228
 
 
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).
 
232
case "$host_cpu" in
 
233
alpha*)
 
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>
 
237
  AC_MSG_RESULT([no])
 
238
  if test -n "$GCC"; then
 
239
    # GCC has the option -mieee.
 
240
    CPPFLAGS="$CPPFLAGS -mieee"
 
241
  else
 
242
    # Compaq (ex-DEC) C has the option -ieee.
 
243
    CPPFLAGS="$CPPFLAGS -ieee"
 
244
  fi
 
245
  ;;
 
246
sh*)
 
247
  AC_MSG_RESULT([no])
 
248
  if test -n "$GCC"; then
 
249
    # GCC has the option -mieee.
 
250
    CPPFLAGS="$CPPFLAGS -mieee"
 
251
  fi
 
252
  ;;
 
253
*)
 
254
  AC_MSG_RESULT([yes])
 
255
  ;;
 
256
esac
 
257
 
 
258
 
224
259
#--------------------------------------------------------------------
225
260
 
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
622
659
#
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 \
627
 
direct.h strings.h])
 
664
direct.h strings.h machine/fpu.h])
628
665
 
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'
 
772
#       anyway.
 
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'.
732
781
#
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])
736
785
 
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.])
1033
1082
fi
1034
1083
 
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.)
1044
 
 
1045
 
AC_SYS_RESTARTABLE_SYSCALLS
1046
 
 
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 ||
1246
1283
 
1247
1284
    build_pthread_support="yes"
1248
1285
 
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"])
1254
1292
 
1255
1293
    old_CFLAGS="$CFLAGS"
1256
1294
    CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
1527
1565
  doc/tutorial/Makefile
1528
1566
  emacs/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
1538
1569
  ice-9/Makefile
1539
 
  ice-9/debugger/Makefile
1540
 
  ice-9/debugging/Makefile
1541
1570
  lang/Makefile
1542
 
  lang/elisp/Makefile
1543
 
  lang/elisp/internals/Makefile
1544
 
  lang/elisp/primitives/Makefile
1545
1571
  libguile/Makefile
1546
1572
  oop/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])
1570
1598
 
1571
1599
AC_OUTPUT
1572
1600