configure.ac 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514
  1. dnl configuration script for Guile
  2. dnl Process this file with autoconf to produce configure.
  3. dnl
  4. define(GUILE_CONFIGURE_COPYRIGHT,[[
  5. Copyright 1998-2022 Free Software Foundation, Inc.
  6. This file is part of Guile.
  7. Guile is free software: you can redistribute it and/or modify it
  8. under the terms of the GNU Lesser General Public License as published
  9. by the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11. Guile is distributed in the hope that it will be useful, but WITHOUT
  12. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  14. License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with Guile. If not, see
  17. <https://www.gnu.org/licenses/>.
  18. ]])
  19. AC_PREREQ(2.64)
  20. AC_INIT([GNU Guile],
  21. m4_esyscmd([build-aux/git-version-gen --match v3.0.\* .tarball-version]),
  22. [bug-guile@gnu.org])
  23. AC_CONFIG_AUX_DIR([build-aux])
  24. AC_CONFIG_MACRO_DIR([m4])
  25. AC_CONFIG_SRCDIR(GUILE-VERSION)
  26. AC_CANONICAL_TARGET
  27. dnl Use `serial-tests' so the output `check-guile' is not hidden
  28. dnl (`parallel-tests' is the default in Automake 1.13.)
  29. dnl `serial-tests' was introduced in Automake 1.12.
  30. AM_INIT_AUTOMAKE([1.12 gnu no-define -Wall -Wno-override \
  31. serial-tests color-tests dist-lzip dist-xz])
  32. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], [AC_SUBST([AM_DEFAULT_VERBOSITY],1)])
  33. AC_COPYRIGHT(GUILE_CONFIGURE_COPYRIGHT)
  34. AC_CONFIG_SRCDIR([GUILE-VERSION])
  35. . $srcdir/GUILE-VERSION
  36. GUILE_VERSION="$PACKAGE_VERSION"
  37. AC_CONFIG_HEADERS([config.h])
  38. AH_TOP(/*GUILE_CONFIGURE_COPYRIGHT*/)
  39. dnl We require the pkg.m4 set of macros from pkg-config.
  40. dnl Make sure it's available.
  41. m4_pattern_forbid([PKG_CHECK_MODULES])
  42. #--------------------------------------------------------------------
  43. AC_LANG([C])
  44. dnl Some more checks for Win32
  45. AC_CANONICAL_HOST
  46. AC_PROG_INSTALL
  47. AC_PROG_CC
  48. AC_MSG_CHECKING([whether the compiler supports -flto])
  49. old_CFLAGS="$CFLAGS"
  50. LTO_CFLAGS="-flto"
  51. CFLAGS="$CFLAGS $LTO_CFLAGS"
  52. AC_LINK_IFELSE([AC_LANG_PROGRAM([int foo;], [])],, [LTO_CFLAGS=])
  53. CFLAGS="$old_CFLAGS"
  54. if test -n "$LTO_CFLAGS"; then
  55. AC_MSG_RESULT([yes])
  56. else
  57. AC_MSG_RESULT([no])
  58. fi
  59. AC_ARG_ENABLE(lto,
  60. [AS_HELP_STRING([--enable-lto]
  61. [enable link-time optimization for libguile])],
  62. [],
  63. [if test -z "$LTO_CFLAGS"; then enable_lto=no; else enable_lto=yes; fi])
  64. case "$enable_lto" in
  65. yes | y)
  66. if test -z "$LTO_CFLAGS"; then
  67. AC_MSG_ERROR([--enable-lto=$enable_lto unsupported for $CC])
  68. fi
  69. CFLAGS="$CFLAGS $LTO_CFLAGS"
  70. AC_MSG_CHECKING([for lto-specific prefix for ar, nm, objcopy, ranlib])
  71. if test "$GCC" = yes; then
  72. TOOLCHAIN_PREFIX=gcc
  73. else
  74. # Assuming LLVM if not GCC. Probably won't hurt.
  75. TOOLCHAIN_PREFIX=llvm
  76. fi
  77. AC_MSG_RESULT([$TOOLCHAIN_PREFIX])
  78. AC_CHECK_TOOLS([AR], [$TOOLCHAIN_PREFIX-ar ar])
  79. AC_CHECK_TOOLS([NM], [$TOOLCHAIN_PREFIX-nm nm])
  80. AC_CHECK_TOOLS([OBJCOPY], [$TOOLCHAIN_PREFIX-objcopy objcopy])
  81. AC_CHECK_TOOLS([RANLIB], [$TOOLCHAIN_PREFIX-ranlib ranlib])
  82. ;;
  83. no | n)
  84. ;;
  85. *)
  86. AC_MSG_ERROR([unexpected --enable-lto=$enable_lto])
  87. ;;
  88. esac
  89. AC_MSG_CHECKING([compiler's C standard])
  90. if test "$ac_prog_cc_stdc" = "c89"; then
  91. AC_MSG_ERROR([Support for C99 required but not found.])
  92. else
  93. AC_MSG_RESULT([$ac_prog_cc_stdc])
  94. fi
  95. # Gnulib uses gperf when building from git
  96. if ! test -f ".tarball-version"; then
  97. AC_CHECK_TOOL([GPERF], [gperf], [no])
  98. if test x"$GPERF" = x"no"; then
  99. AC_MSG_ERROR([Building from git requires gperf. Please install it.])
  100. fi
  101. fi
  102. gl_EARLY
  103. AC_PROG_CPP
  104. AC_PROG_SED
  105. AC_PROG_AWK
  106. AC_PROG_LN_S
  107. AM_PROG_AR
  108. dnl Gnulib.
  109. gl_INIT
  110. dnl We provide our own lib/glthread/lock.h, so let other Gnulib modules
  111. dnl know that we have it. This allows them to be compiled with adequate
  112. dnl locking support. See <http://bugs.gnu.org/14404>.
  113. AC_DEFINE([GNULIB_LOCK], [1],
  114. [Define to allow Gnulib modules to use Guile's locks.])
  115. LT_INIT([dlopen win32-dll])
  116. AM_CONDITIONAL([HAVE_SHARED_LIBRARIES], [test "x$enable_shared" = "xyes"])
  117. # Some systems provide dlopen via libc; others require -ldl.
  118. AC_SEARCH_LIBS([dlopen], [dl])
  119. AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
  120. AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
  121. AM_PATH_LISPDIR
  122. AC_DEFINE_UNQUOTED([HOST_TYPE], ["$host"],
  123. [Define to the host's GNU triplet.])
  124. #--------------------------------------------------------------------
  125. #
  126. # User options (after above tests that may set default CFLAGS etc.)
  127. #
  128. #--------------------------------------------------------------------
  129. GUILE_ERROR_ON_WARNING="no"
  130. AC_ARG_ENABLE(error-on-warning,
  131. [ --enable-error-on-warning treat compile warnings as errors],
  132. [case "${enableval}" in
  133. yes | y) GUILE_ERROR_ON_WARNING="yes" ;;
  134. no | n) GUILE_ERROR_ON_WARNING="no" ;;
  135. *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
  136. esac])
  137. AC_ARG_ENABLE(debug-malloc,
  138. [ --enable-debug-malloc include malloc debugging code],
  139. if test "$enable_debug_malloc" = y || test "$enable_debug_malloc" = yes; then
  140. AC_DEFINE([GUILE_DEBUG_MALLOC], 1,
  141. [Define this if you want to debug scm_must_malloc/realloc/free calls.])
  142. fi)
  143. # Check if JIT is available.
  144. GUILE_ENABLE_JIT
  145. SCM_I_GSC_GUILE_DEBUG=0
  146. AC_ARG_ENABLE(guile-debug,
  147. [AS_HELP_STRING([--enable-guile-debug],
  148. [include internal debugging functions])],
  149. if test "$enable_guile_debug" = y || test "$enable_guile_debug" = yes; then
  150. SCM_I_GSC_GUILE_DEBUG=1
  151. fi)
  152. AC_ARG_ENABLE(posix,
  153. [ --disable-posix omit non-essential POSIX interfaces],,
  154. enable_posix=yes)
  155. AC_ARG_ENABLE(networking,
  156. [ --disable-networking omit networking interfaces],,
  157. enable_networking=yes)
  158. AC_ARG_ENABLE(regex,
  159. [ --disable-regex omit regular expression interfaces],,
  160. enable_regex=yes)
  161. AC_ARG_ENABLE(tmpnam,
  162. AS_HELP_STRING([--disable-tmpnam],[omit POSIX tmpnam]),,
  163. enable_tmpnam=yes)
  164. AC_ARG_ENABLE([deprecated],
  165. AS_HELP_STRING([--disable-deprecated],[omit deprecated features]))
  166. if test "$enable_deprecated" = no; then
  167. SCM_I_GSC_ENABLE_DEPRECATED=0
  168. warn_default=no
  169. else
  170. if test "$enable_deprecated" = yes || test "$enable_deprecated" = ""; then
  171. warn_default=summary
  172. elif test "$enable_deprecated" = shutup; then
  173. warn_default=no
  174. else
  175. warn_default=$enable_deprecated
  176. fi
  177. SCM_I_GSC_ENABLE_DEPRECATED=1
  178. fi
  179. AC_DEFINE_UNQUOTED([SCM_WARN_DEPRECATED_DEFAULT], "$warn_default",
  180. [Define this to control the default warning level for deprecated features.])
  181. dnl Added the following configure option in January 2008 following
  182. dnl investigation of problems with "64" system and library calls on
  183. dnl Darwin (MacOS X). The libguile code (_scm.h) assumes that if a
  184. dnl system has stat64, it will have all the other 64 APIs too; but on
  185. dnl Darwin, stat64 is there but other APIs are missing.
  186. dnl
  187. dnl It also appears, from the Darwin docs, that most system call APIs
  188. dnl there (i.e. the traditional ones _without_ "64" in their names) have
  189. dnl been 64-bit-capable for a long time now, so it isn't necessary to
  190. dnl use "64" versions anyway. For example, Darwin's off_t is 64-bit.
  191. dnl
  192. dnl A similar problem has been reported for HP-UX:
  193. dnl http://www.nabble.com/Building-guile-1.8.2-on-hpux-td13106681.html
  194. dnl
  195. dnl Therefore, and also because a Guile without LARGEFILE64 support is
  196. dnl better than no Guile at all, we provide this option to suppress
  197. dnl trying to use "64" calls.
  198. dnl
  199. dnl It may be that for some 64-bit function on Darwin/HP-UX we do need
  200. dnl to use a "64" call, and hence that by using --without-64-calls we're
  201. dnl missing out on that. If so, someone can work on that in the future.
  202. dnl For now, --without-64-calls allows Guile to build on OSs where it
  203. dnl wasn't building before.
  204. AC_MSG_CHECKING([whether to use system and library "64" calls])
  205. AC_ARG_WITH([64-calls],
  206. AS_HELP_STRING([--without-64-calls],
  207. [don't attempt to use system and library calls with "64" in their names]),
  208. [use_64_calls=$withval],
  209. [use_64_calls=yes
  210. case $host in
  211. *-apple-darwin* )
  212. use_64_calls=no
  213. ;;
  214. powerpc-ibm-aix* )
  215. use_64_calls=no
  216. ;;
  217. esac])
  218. AC_MSG_RESULT($use_64_calls)
  219. case "$use_64_calls" in
  220. y* )
  221. AC_DEFINE([GUILE_USE_64_CALLS], 1,
  222. [Define to 1 in order to try to use "64" versions of system and library calls.])
  223. ;;
  224. esac
  225. #--------------------------------------------------------------------
  226. dnl Check for dynamic linking
  227. use_modules=yes
  228. AC_ARG_WITH(modules,
  229. [ --with-modules[=FILES] Add support for dynamic modules],
  230. use_modules="$withval")
  231. test -z "$use_modules" && use_modules=yes
  232. DLPREOPEN=
  233. if test "$use_modules" != no; then
  234. if test "$use_modules" = yes; then
  235. DLPREOPEN="-dlpreopen force"
  236. else
  237. DLPREOPEN="-export-dynamic"
  238. for module in $use_modules; do
  239. DLPREOPEN="$DLPREOPEN -dlopen $module"
  240. done
  241. fi
  242. fi
  243. dnl files which are destined for separate modules.
  244. if test "$use_modules" != no; then
  245. AC_LIBOBJ([dynl])
  246. AC_DEFINE([HAVE_MODULES], 1,
  247. [Define this if you want support for dynamically loaded modules in Guile.])
  248. fi
  249. if test "$enable_posix" = yes; then
  250. AC_LIBOBJ([posix])
  251. AC_DEFINE([HAVE_POSIX], 1,
  252. [Define this if you want support for non-essential POSIX system calls in Guile.])
  253. fi
  254. if test "$enable_networking" = yes; then
  255. AC_LIBOBJ([net_db])
  256. AC_LIBOBJ([socket])
  257. AC_DEFINE([HAVE_NETWORKING], 1,
  258. [Define this if you want support for networking in Guile.])
  259. fi
  260. if test "$enable_debug_malloc" = yes; then
  261. AC_LIBOBJ([debug-malloc])
  262. fi
  263. AC_CHECK_LIB(uca, __uc_get_ar_bsp)
  264. # "volatile" is used in a couple of tests below.
  265. AC_C_VOLATILE
  266. AC_C_INLINE
  267. if test "$ac_cv_c_inline" != no; then
  268. SCM_I_GSC_C_INLINE="\"${ac_cv_c_inline}\""
  269. else
  270. SCM_I_GSC_C_INLINE=NULL
  271. fi
  272. AC_CHECK_LIB(uca, __uc_get_ar_bsp)
  273. AC_C_BIGENDIAN
  274. AC_C_LABELS_AS_VALUES
  275. AC_CHECK_SIZEOF(char)
  276. AC_CHECK_SIZEOF(unsigned char)
  277. AC_CHECK_SIZEOF(short)
  278. AC_CHECK_SIZEOF(unsigned short)
  279. AC_CHECK_SIZEOF(int)
  280. AC_CHECK_SIZEOF(unsigned int)
  281. AC_CHECK_SIZEOF(long)
  282. AC_CHECK_SIZEOF(unsigned long)
  283. AC_CHECK_SIZEOF(size_t)
  284. AC_CHECK_SIZEOF(long long)
  285. AC_CHECK_SIZEOF(unsigned long long)
  286. AC_CHECK_SIZEOF(__int64)
  287. AC_CHECK_SIZEOF(unsigned __int64)
  288. AC_CHECK_SIZEOF(void *)
  289. AC_CHECK_SIZEOF(intptr_t)
  290. AC_CHECK_SIZEOF(uintptr_t)
  291. AC_CHECK_SIZEOF(ptrdiff_t)
  292. AC_CHECK_SIZEOF(size_t)
  293. AC_CHECK_SIZEOF(off_t)
  294. AC_CHECK_SIZEOF(intmax_t)
  295. if test "$ac_cv_sizeof_long" -gt "$ac_cv_sizeof_void_p"; then
  296. AC_MSG_ERROR(long does not fit into a void*)
  297. fi
  298. if test "$ac_cv_sizeof_ptrdiff_t" -ne 0; then
  299. SCM_I_GSC_T_PTRDIFF='"ptrdiff_t"'
  300. else
  301. SCM_I_GSC_T_PTRDIFF='"long"'
  302. fi
  303. AC_SUBST([SCM_I_GSC_T_PTRDIFF])
  304. AC_CHECK_HEADERS([stdatomic.h])
  305. AC_MSG_CHECKING([for which prebuilt binary set to use during bootstrap])
  306. SCM_PREBUILT_BINARIES=
  307. case "$ac_cv_c_bigendian-$ac_cv_sizeof_void_p" in
  308. yes-8) SCM_PREBUILT_BINARIES=64-bit-big-endian;;
  309. yes-4) SCM_PREBUILT_BINARIES=32-bit-big-endian;;
  310. no-8) SCM_PREBUILT_BINARIES=64-bit-little-endian;;
  311. no-4) SCM_PREBUILT_BINARIES=32-bit-little-endian;;
  312. *) AC_MSG_ERROR([Unexpected endianness+pointer size combination.])
  313. esac
  314. AC_MSG_RESULT($SCM_PREBUILT_BINARIES)
  315. AC_SUBST([SCM_PREBUILT_BINARIES])
  316. AC_HEADER_SYS_WAIT
  317. AC_HEADER_DIRENT
  318. # Reason for checking:
  319. #
  320. # HP-UX 11.11 (at least) doesn't provide `struct dirent64', even
  321. # with `_LARGEFILE64_SOURCE', so check whether it's available.
  322. #
  323. AC_CHECK_MEMBER([struct dirent64.d_name],
  324. [SCM_I_GSC_HAVE_STRUCT_DIRENT64=1], [SCM_I_GSC_HAVE_STRUCT_DIRENT64=0],
  325. [ #ifndef _LARGEFILE64_SOURCE
  326. # define _LARGEFILE64_SOURCE
  327. #endif
  328. /* Per Autoconf manual. */
  329. #include <sys/types.h>
  330. #ifdef HAVE_DIRENT_H
  331. # include <dirent.h>
  332. #else
  333. # define dirent direct
  334. # ifdef HAVE_SYS_NDIR_H
  335. # include <sys/ndir.h>
  336. # endif
  337. # ifdef HAVE_SYS_DIR_H
  338. # include <sys/dir.h>
  339. # endif
  340. # ifdef HAVE_NDIR_H
  341. # include <ndir.h>
  342. # endif
  343. #endif ])
  344. AC_SUBST([SCM_I_GSC_HAVE_STRUCT_DIRENT64])
  345. # Reasons for testing:
  346. # complex.h - new in C99
  347. # fenv.h - available in C99, but not older systems
  348. # machine/fpu.h - on Tru64 5.1b, the declaration of fesetround(3) is in
  349. # this file instead of <fenv.h>
  350. # process.h - mingw specific
  351. # sched.h - missing on MinGW
  352. # sys/sendfile.h - non-POSIX, found in glibc
  353. #
  354. AC_CHECK_HEADERS([complex.h fenv.h io.h memory.h process.h \
  355. sys/dir.h sys/ioctl.h sys/select.h \
  356. sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \
  357. sys/utime.h unistd.h utime.h pwd.h grp.h sys/utsname.h \
  358. direct.h machine/fpu.h sched.h sys/sendfile.h])
  359. # "complex double" is new in C99, and "complex" is only a keyword if
  360. # <complex.h> is included
  361. AC_CHECK_TYPES(complex double,,,
  362. [#if HAVE_COMPLEX_H
  363. #include <complex.h>
  364. #endif])
  365. # On MacOS X <sys/socklen.h> contains socklen_t, so must include that
  366. # when testing.
  367. AC_CHECK_TYPE(socklen_t, ,
  368. [AC_DEFINE_UNQUOTED([socklen_t], int,
  369. [Define to `int' if <sys/socket.h> does not define.])],
  370. [#if HAVE_SYS_TYPES_H
  371. #include <sys/types.h>
  372. #endif
  373. #include <sys/socket.h>
  374. ])
  375. AC_CHECK_TYPES([struct ip_mreq], , , [#include <netinet/in.h>])
  376. AC_TYPE_GETGROUPS
  377. AC_TYPE_MODE_T
  378. dnl Check whether we need -lm.
  379. LT_LIB_M
  380. LIBS="$LIBS $LIBM"
  381. AC_CHECK_FUNCS(gethostbyname)
  382. if test $ac_cv_func_gethostbyname = no; then
  383. AC_CHECK_LIB(nsl, gethostbyname)
  384. fi
  385. AC_CHECK_FUNCS(connect)
  386. if test $ac_cv_func_connect = no; then
  387. AC_CHECK_LIB(socket, connect)
  388. fi
  389. dnl
  390. dnl Check for Winsock and other functionality on Win32 (*not* CygWin)
  391. dnl
  392. EXTRA_DEFS=""
  393. mingw_libpath=false
  394. case $host in
  395. *-*-mingw*)
  396. AC_CHECK_HEADER(winsock2.h, [AC_DEFINE([HAVE_WINSOCK2_H], 1,
  397. [Define if you have the <winsock2.h> header file.])])
  398. AC_CHECK_LIB(ws2_32, main)
  399. AC_LIBOBJ([posix-w32])
  400. if test "$enable_shared" = yes ; then
  401. EXTRA_DEFS="-DSCM_IMPORT"
  402. AC_DEFINE([USE_DLL_IMPORT], 1,
  403. [Define if you need additional CPP macros on Win32 platforms.])
  404. fi
  405. mingw_libpath=true
  406. ;;
  407. esac
  408. AC_SUBST(EXTRA_DEFS)
  409. AM_CONDITIONAL([MINGW_LIBPATH], [test x$mingw_libpath = xtrue])
  410. # Reasons for testing:
  411. # crt_externs.h - Darwin specific
  412. #
  413. AC_CHECK_HEADERS([crt_externs.h])
  414. # Reasons for testing:
  415. # DINFINITY - OSF specific
  416. # DQNAN - OSF specific
  417. # (DINFINITY and DQNAN are actually global variables, not functions)
  418. # chsize - an MS-DOS-ism, found in mingw
  419. # cexp, clog - not in various pre-c99 systems, and note that it's possible
  420. # for gcc to provide the "complex double" type but the system to not
  421. # have functions like cexp and clog
  422. # clog10 - not in mingw (though others like clog and csqrt are)
  423. # fesetround - available in C99, but not older systems
  424. # ftruncate - posix, but probably not older systems (current mingw
  425. # has it as an inline for chsize)
  426. # ioctl - not in mingw.
  427. # gmtime_r - recent posix, not on old systems
  428. # readdir_r - recent posix, not on old systems
  429. # readdir64_r - not available on HP-UX 11.11
  430. # stat64 - SuS largefile stuff, not on old systems
  431. # sysconf - not on old systems
  432. # truncate - not in mingw
  433. # isblank - available as a GNU extension or in C99
  434. # _NSGetEnviron - Darwin specific
  435. # strcoll_l, newlocale, uselocale, utimensat, futimens, fchmodat,
  436. # unlinkat, fchownat, fstatat, openat - POSIX.1-2008
  437. # strtol_l - non-POSIX, found in glibc
  438. # fork - unavailable on Windows
  439. # sched_getaffinity, sched_setaffinity - GNU extensions (glibc)
  440. # sendfile - non-POSIX, found in glibc
  441. # pipe2 - non-POSIX, found in glibc (GNU/Linux and GNU/Hurd)
  442. #
  443. AC_CHECK_FUNCS([DINFINITY DQNAN cexp chsize clog clog10 ctermid \
  444. fesetround ftime ftruncate fchown fchownat fchmod fchdir readlinkat \
  445. fchmodat symlinkat mkdirat renameat unlinkat getcwd geteuid getsid \
  446. gettimeofday getuid getgid gmtime_r ioctl lstat mkdir mkdtemp mknod \
  447. nice readlink rmdir setegid seteuid \
  448. setuid setgid setpgid setsid sigaction siginterrupt stat64 \
  449. strptime symlink sync sysconf tcgetpgrp tcsetpgrp uname waitpid \
  450. strdup usleep on_exit chown link fcntl ttyname getpwent \
  451. getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp \
  452. index bcopy rindex truncate isblank _NSGetEnviron \
  453. strcoll_l strtod_l strtol_l newlocale uselocale utimensat \
  454. fstatat futimens openat \
  455. sched_getaffinity sched_setaffinity sendfile pipe2])
  456. # The newlib C library uses _NL_ prefixed locale langinfo constants.
  457. AC_CHECK_DECLS([_NL_NUMERIC_GROUPING], [], [], [[#include <langinfo.h>]])
  458. # Reasons for testing:
  459. # netdb.h - not in mingw
  460. # sys/param.h - not in mingw
  461. # pthread.h - only available with pthreads. ACX_PTHREAD doesn't
  462. # check this specifically, we need it for the timespec test below.
  463. # pthread_np.h - available on FreeBSD
  464. # sethostname - the function itself check because it's not in mingw,
  465. # the DECL is checked because Solaris 10 doens't have in any header
  466. # hstrerror - on Tru64 5.1b the symbol is available in libc but the
  467. # declaration isn't anywhere.
  468. # cuserid - on Tru64 5.1b the declaration is documented to be available
  469. # only with `_XOPEN_SOURCE' or some such.
  470. #
  471. AC_CHECK_HEADERS([crypt.h netdb.h pthread.h pthread_np.h sys/param.h sys/resource.h sys/file.h sys/mman.h])
  472. AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
  473. AC_CHECK_DECLS([sethostname, hstrerror, cuserid])
  474. # crypt() may or may not be available, for instance in some countries there
  475. # are restrictions on cryptography.
  476. #
  477. # crypt() might be in libc (eg. OpenBSD), or it might be in a separate
  478. # -lcrypt library (eg. Debian GNU/Linux).
  479. #
  480. # On HP-UX 11, crypt() is in libc and there's a dummy libcrypt.a. We must
  481. # be careful to avoid -lcrypt in this case, since libtool will see there's
  482. # only a static libcrypt and decide to build only a static libguile.
  483. #
  484. # AC_SEARCH_LIBS lets us add -lcrypt to LIBS only if crypt() is not in the
  485. # libraries already in that list.
  486. #
  487. AC_SEARCH_LIBS(crypt, crypt,
  488. [AC_DEFINE([HAVE_CRYPT],1,
  489. [Define to 1 if you have the `crypt' function.])])
  490. # When compiling with GCC on some OSs (Solaris, AIX), _Complex_I doesn't
  491. # work; in the reported cases so far, 1.0fi works well instead. According
  492. # to the C99 spec, the complex.h header must provide a working definition
  493. # of _Complex_I, so we always try _Complex_I first. The 1.0fi fallback
  494. # is a workaround for the failure of some systems to conform to C99.
  495. if test "$ac_cv_type_complex_double" = yes; then
  496. AC_MSG_CHECKING([for i])
  497. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  498. #if HAVE_COMPLEX_H
  499. #include <complex.h>
  500. #endif
  501. complex double z;
  502. ]], [[
  503. z = _Complex_I;
  504. ]])],
  505. [AC_DEFINE([GUILE_I],_Complex_I,[The imaginary unit (positive square root of -1).])
  506. AC_MSG_RESULT([_Complex_I])],
  507. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  508. #if HAVE_COMPLEX_H
  509. #include <complex.h>
  510. #endif
  511. complex double z;
  512. ]],[[
  513. z = 1.0fi;
  514. ]])],
  515. [AC_DEFINE([GUILE_I],1.0fi)
  516. AC_MSG_RESULT([1.0fi])],
  517. [ac_cv_type_complex_double=no
  518. AC_MSG_RESULT([not available])])])
  519. fi
  520. # glibc 2.3.6 (circa 2006) and various prior versions had a bug where
  521. # csqrt(-i) returned a negative real part, when it should be positive
  522. # for the principal root.
  523. #
  524. if test "$ac_cv_type_complex_double" = yes; then
  525. AC_CACHE_CHECK([whether csqrt is usable],
  526. guile_cv_use_csqrt,
  527. [AC_RUN_IFELSE([AC_LANG_SOURCE([[
  528. #include <complex.h>
  529. /* "volatile" is meant to prevent gcc from calculating the sqrt as a
  530. constant, we want to test libc. */
  531. volatile complex double z = - _Complex_I;
  532. int
  533. main (void)
  534. {
  535. z = csqrt (z);
  536. if (creal (z) > 0.0)
  537. return 0; /* good */
  538. else
  539. return 1; /* bad */
  540. }]])],
  541. [guile_cv_use_csqrt=yes],
  542. [guile_cv_use_csqrt="no, glibc 2.3 bug"],
  543. [guile_cv_use_csqrt="yes, hopefully (cross-compiling)"])])
  544. case $guile_cv_use_csqrt in
  545. yes*)
  546. AC_DEFINE([HAVE_USABLE_CSQRT], 1, [Define to 1 if csqrt is bug-free])
  547. ;;
  548. esac
  549. fi
  550. # Cygwin and Hurd (circa 2017) and various prior versions defined stub
  551. # versions of the virtual and profiling itimers that would always fail
  552. # when called.
  553. if test "$ac_cv_func_getitimer" = yes; then
  554. AC_CACHE_CHECK([whether getitimer(ITIMER_PROF) is usable],
  555. guile_cv_use_getitimer_prof,
  556. [AC_RUN_IFELSE([AC_LANG_SOURCE([[
  557. #include <sys/time.h>
  558. int
  559. main (void)
  560. {
  561. struct itimerval I;
  562. if (getitimer (ITIMER_PROF, &I) == 0)
  563. return 0; /* good */
  564. else
  565. return 1; /* bad */
  566. }]])],
  567. [guile_cv_use_getitimer_prof=yes],
  568. [guile_cv_use_getitimer_prof=no],
  569. [guile_cv_use_getitimer_prof="yes, hopefully (cross-compiling)"])])
  570. case $guile_cv_use_getitimer_prof in
  571. yes*)
  572. AC_DEFINE([HAVE_USABLE_GETITIMER_PROF], 1, [Define to 1 if getitimer(ITIMER_PROF, ...) is functional])
  573. ;;
  574. esac
  575. AC_CACHE_CHECK([whether getitimer(ITIMER_VIRTUAL) is usable],
  576. guile_cv_use_getitimer_virtual,
  577. [AC_RUN_IFELSE([AC_LANG_SOURCE([[
  578. #include <sys/time.h>
  579. int
  580. main (void)
  581. {
  582. struct itimerval I;
  583. if (getitimer (ITIMER_VIRTUAL, &I) == 0)
  584. return 0; /* good */
  585. else
  586. return 1; /* bad */
  587. }]])],
  588. [guile_cv_use_getitimer_virtual=yes],
  589. [guile_cv_use_getitimer_virtual=no],
  590. [guile_cv_use_getitimer_virtual="yes, hopefully (cross-compiling)"])])
  591. case $guile_cv_use_getitimer_virtual in
  592. yes*)
  593. AC_DEFINE([HAVE_USABLE_GETITIMER_VIRTUAL], 1, [Define to 1 if getitimer(ITIMER_VIRTUAL, ...) is functional])
  594. ;;
  595. esac
  596. fi
  597. AC_CACHE_SAVE
  598. dnl GMP tests
  599. SCM_I_GSC_ENABLE_MINI_GMP=0
  600. AC_ARG_ENABLE(mini-gmp,
  601. [AS_HELP_STRING([--enable-mini-gmp],
  602. [use mini-gmp instead of the full GMP library])])
  603. if test "x$enable_mini_gmp" = xyes || test "x$enable_mini_gmp" = xy; then
  604. SCM_I_GSC_ENABLE_MINI_GMP=1
  605. else
  606. case $host in
  607. x86_64-*-mingw*)
  608. AC_MSG_ERROR([mini-gmp is required; use --enable-mini-gmp])
  609. ;;
  610. *) ;;
  611. esac
  612. AC_LIB_HAVE_LINKFLAGS([gmp],[],[#include <gmp.h>], [mpz_import (0,0,0,0,0,0,0);])
  613. if test "x$HAVE_LIBGMP" != "xyes"; then
  614. AC_MSG_ERROR([GNU MP 4.1 or greater not found; either install it, or pass '--enable-mini-gmp' to use included less-optimal arbitrary-precision integer support.])
  615. fi
  616. if test "x$LIBGMP_PREFIX" != "x"; then
  617. CPPFLAGS="-I$LIBGMP_PREFIX $CPPFLAGS"
  618. fi
  619. AC_CHECK_DECLS([mpz_inits], [], [], [[#include <gmp.h>]])
  620. fi
  621. AC_SUBST([SCM_I_GSC_ENABLE_MINI_GMP])
  622. AM_CONDITIONAL([USE_MINI_GMP], [test "x$enable_mini_gmp" = "xyes"])
  623. dnl GNU libunistring is checked for by Gnulib's `libunistring' module.
  624. if test "x$LTLIBUNISTRING" = "x"; then
  625. AC_MSG_ERROR([GNU libunistring is required, please install it.])
  626. fi
  627. dnl Sloppy check to make sure people aren't trying to use too-old libunistring.
  628. case "$LIBUNISTRING_VERSION" in
  629. 0.9.0 | 0.9.1 | 0.9.2 )
  630. AC_MSG_ERROR([libunistring too old. Please install a recent libunistring (>= 0.9.3).])
  631. ;;
  632. esac
  633. GUILE_LIBUNISTRING_WITH_ICONV_SUPPORT
  634. if test "x$ac_cv_libunistring_with_iconv_support" != "xyes"; then
  635. AC_MSG_ERROR([No iconv support. Please recompile libunistring with iconv enabled.])
  636. fi
  637. dnl Libffi is needed to compile Guile's foreign function interface, but its
  638. dnl interface isn't exposed in Guile's API.
  639. PKG_CHECK_MODULES(LIBFFI, libffi)
  640. AC_SUBST(LIBFFI_CFLAGS)
  641. AC_SUBST(LIBFFI_LIBS)
  642. dnl figure out approriate ffi type for size_t
  643. AC_CHECK_SIZEOF(size_t)
  644. AC_CHECK_SIZEOF(ssize_t)
  645. ffi_size_type=uint$(($ac_cv_sizeof_size_t*8))
  646. ffi_ssize_type=sint$(($ac_cv_sizeof_ssize_t*8))
  647. AC_DEFINE_UNQUOTED([ffi_type_size_t], ffi_type_${ffi_size_type},
  648. [ffi type for size_t])
  649. AC_DEFINE_UNQUOTED([ffi_type_ssize_t], ffi_type_${ffi_ssize_type},
  650. [ffi type for ssize_t])
  651. dnl i18n tests
  652. #AC_CHECK_HEADERS([libintl.h])
  653. #AC_CHECK_FUNCS(gettext)
  654. #if test $ac_cv_func_gettext = no; then
  655. # AC_CHECK_LIB(intl, gettext)
  656. #fi
  657. #AC_CHECK_FUNCS([bindtextdomain textdomain])
  658. AM_GNU_GETTEXT([external], [need-ngettext])
  659. AM_GNU_GETTEXT_VERSION([0.18.1])
  660. ### Some systems don't declare some functions. On such systems, we
  661. ### need to at least provide our own K&R-style declarations.
  662. ### GUILE_FUNC_DECLARED(function, headerfile)
  663. ### Check for a declaration of FUNCTION in HEADERFILE; if it is
  664. ### not there, #define MISSING_FUNCTION_DECL.
  665. AC_DEFUN([GUILE_FUNC_DECLARED], [
  666. AC_CACHE_CHECK(for $1 declaration, guile_cv_func_$1_declared,
  667. AC_EGREP_HEADER($1, $2,
  668. guile_cv_func_$1_declared=yes,
  669. guile_cv_func_$1_declared=no))
  670. if test [x$guile_cv_func_]$1[_declared] = xno; then
  671. AC_DEFINE([MISSING_]translit($1, [a-z], [A-Z])[_DECL], 1,
  672. [Define if the operating system supplies $1 without declaring it.])
  673. fi
  674. ])
  675. GUILE_FUNC_DECLARED(sleep, unistd.h)
  676. GUILE_FUNC_DECLARED(usleep, unistd.h)
  677. AC_CHECK_DECLS([getlogin, alarm])
  678. AC_CHECK_DECLS([strptime],,,
  679. [#define _GNU_SOURCE /* ask glibc to give strptime prototype */
  680. #include <time.h>])
  681. ### On some systems usleep has no return value. If it does have one,
  682. ### we'd like to return it; otherwise, we'll fake it.
  683. AC_CACHE_CHECK([return type of usleep], guile_cv_func_usleep_return_type,
  684. [AC_EGREP_HEADER(changequote(<, >)<void[ ]+usleep>changequote([, ]),
  685. unistd.h,
  686. [guile_cv_func_usleep_return_type=void],
  687. [guile_cv_func_usleep_return_type=int])])
  688. case "$guile_cv_func_usleep_return_type" in
  689. "void" )
  690. AC_DEFINE([USLEEP_RETURNS_VOID], 1,
  691. [Define if the system headers declare usleep to return void.])
  692. ;;
  693. esac
  694. AC_CHECK_HEADER(sys/un.h, have_sys_un_h=1)
  695. if test -n "$have_sys_un_h" ; then
  696. AC_DEFINE([HAVE_UNIX_DOMAIN_SOCKETS], 1,
  697. [Define if the system supports Unix-domain (file-domain) sockets.])
  698. fi
  699. AC_CHECK_FUNCS(getrlimit setrlimit)
  700. AC_CHECK_FUNCS(socketpair getgroups setgroups setpwent pause tzset)
  701. AC_CHECK_FUNCS(sethostent gethostent endhostent dnl
  702. setnetent getnetent endnetent dnl
  703. setprotoent getprotoent endprotoent dnl
  704. setservent getservent endservent dnl
  705. getnetbyaddr getnetbyname dnl
  706. inet_lnaof inet_makeaddr inet_netof hstrerror)
  707. AC_CHECK_MEMBERS([struct sockaddr_in.sin_len],,,
  708. [#ifdef HAVE_SYS_TYPES_H
  709. #include <sys/types.h>
  710. #endif
  711. #include <netinet/in.h>])
  712. AC_MSG_CHECKING(for __libc_stack_end)
  713. AC_CACHE_VAL(guile_cv_have_libc_stack_end,
  714. [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
  715. extern char *__libc_stack_end;]],
  716. [[printf("%p", (char*) __libc_stack_end);]])],
  717. [guile_cv_have_libc_stack_end=yes],
  718. [guile_cv_have_libc_stack_end=no])])
  719. AC_MSG_RESULT($guile_cv_have_libc_stack_end)
  720. if test $guile_cv_have_libc_stack_end = yes; then
  721. AC_DEFINE([HAVE_LIBC_STACK_END], 1,
  722. [Define if you have the __libc_stack_end variable.])
  723. fi
  724. dnl Some systems do not declare this. Some systems do declare it, as a
  725. dnl macro. With cygwin it may be in a DLL.
  726. AC_MSG_CHECKING(whether netdb.h declares h_errno)
  727. AC_CACHE_VAL(guile_cv_have_h_errno,
  728. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]],
  729. [[int a = h_errno;]])],
  730. [guile_cv_have_h_errno=yes],
  731. [guile_cv_have_h_errno=no])])
  732. AC_MSG_RESULT($guile_cv_have_h_errno)
  733. if test $guile_cv_have_h_errno = yes; then
  734. AC_DEFINE([HAVE_H_ERRNO], 1, [Define if h_errno is declared in netdb.h.])
  735. fi
  736. AC_MSG_CHECKING(whether uint32_t is defined)
  737. AC_CACHE_VAL(guile_cv_have_uint32_t,
  738. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
  739. #if HAVE_STDINT_H
  740. #include <stdint.h>
  741. #endif
  742. #ifndef HAVE_NETDB_H
  743. #include <netdb.h>
  744. #endif]],
  745. [[uint32_t a;]])],
  746. [guile_cv_have_uint32_t=yes],
  747. [guile_cv_have_uint32_t=no])])
  748. AC_MSG_RESULT($guile_cv_have_uint32_t)
  749. if test $guile_cv_have_uint32_t = yes; then
  750. AC_DEFINE([HAVE_UINT32_T], 1,
  751. [Define if uint32_t typedef is defined when netdb.h is include.])
  752. fi
  753. AC_MSG_CHECKING(for working IPv6 support)
  754. AC_CACHE_VAL(guile_cv_have_ipv6,
  755. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  756. #ifdef HAVE_SYS_TYPES_H
  757. #include <sys/types.h>
  758. #endif
  759. #include <netinet/in.h>
  760. #include <sys/socket.h>]],
  761. [[struct sockaddr_in6 a; a.sin6_family = AF_INET6;]])],
  762. [guile_cv_have_ipv6=yes],
  763. [guile_cv_have_ipv6=no])])
  764. AC_MSG_RESULT($guile_cv_have_ipv6)
  765. if test $guile_cv_have_ipv6 = yes; then
  766. AC_DEFINE([HAVE_IPV6], 1, [Define if you want support for IPv6.])
  767. fi
  768. # included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
  769. AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id)
  770. AC_CACHE_VAL(guile_cv_have_sin6_scope_id,
  771. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  772. #ifdef HAVE_SYS_TYPES_H
  773. #include <sys/types.h>
  774. #endif
  775. #include <netinet/in.h>]],
  776. [[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;]])],
  777. [guile_cv_have_sin6_scope_id=yes],
  778. [guile_cv_have_sin6_scope_id=no])])
  779. AC_MSG_RESULT($guile_cv_have_sin6_scope_id)
  780. if test $guile_cv_have_sin6_scope_id = yes; then
  781. AC_DEFINE([HAVE_SIN6_SCOPE_ID], 1,
  782. [Define this if your IPv6 has sin6_scope_id in sockaddr_in6 struct.])
  783. fi
  784. # struct sockaddr_in6 field sin_len is only present on BSD systems
  785. AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_len],,,
  786. [#ifdef HAVE_SYS_TYPES_H
  787. #include <sys/types.h>
  788. #endif
  789. #include <netinet/in.h>])
  790. AC_MSG_CHECKING(whether localtime caches TZ)
  791. AC_CACHE_VAL(guile_cv_localtime_cache,
  792. [if test x$ac_cv_func_tzset = xyes; then
  793. AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <time.h>
  794. #include <stdlib.h>
  795. extern char **environ;
  796. unset_TZ ()
  797. {
  798. char **from, **to;
  799. for (to = from = environ; (*to = *from); from++)
  800. if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
  801. to++;
  802. }
  803. char TZ_GMT0[] = "TZ=GMT0";
  804. char TZ_PST8[] = "TZ=PST8";
  805. main()
  806. {
  807. time_t now = time ((time_t *) 0);
  808. int hour_GMT0, hour_unset;
  809. if (putenv (TZ_GMT0) != 0)
  810. exit (1);
  811. hour_GMT0 = localtime (&now)->tm_hour;
  812. unset_TZ ();
  813. hour_unset = localtime (&now)->tm_hour;
  814. if (putenv (TZ_PST8) != 0)
  815. exit (1);
  816. if (localtime (&now)->tm_hour == hour_GMT0)
  817. exit (1);
  818. unset_TZ ();
  819. if (localtime (&now)->tm_hour != hour_unset)
  820. exit (1);
  821. exit (0);
  822. }]])],
  823. [guile_cv_localtime_cache=no],
  824. [guile_cv_localtime_cache=yes],
  825. [# If we have tzset, assume the worst when cross-compiling.
  826. guile_cv_localtime_cache=yes])
  827. else
  828. # If we lack tzset, report that localtime does not cache TZ,
  829. # since we can't invalidate the cache if we don't have tzset.
  830. guile_cv_localtime_cache=no
  831. fi])dnl
  832. AC_MSG_RESULT($guile_cv_localtime_cache)
  833. if test $guile_cv_localtime_cache = yes; then
  834. AC_DEFINE([LOCALTIME_CACHE], 1, [Define if localtime caches the TZ setting.])
  835. fi
  836. if test "$enable_regex" = yes; then
  837. AC_LIBOBJ([regex-posix])
  838. AC_DEFINE([ENABLE_REGEX], 1, [Define when regex support is enabled.])
  839. fi
  840. if test "$enable_tmpnam" = yes; then
  841. AC_DEFINE([ENABLE_TMPNAM], 1, [Define when tmpnam support is enabled.])
  842. fi
  843. AC_REPLACE_FUNCS([strerror memmove])
  844. # Reasons for testing:
  845. # asinh, acosh, atanh, trunc - C99 standard, generally not available on
  846. # older systems
  847. # sincos - GLIBC extension
  848. # __sincos - APPLE extension
  849. #
  850. AC_CHECK_FUNCS(asinh acosh atanh copysign finite sincos __sincos trunc)
  851. # C99 specifies isinf and isnan as macros.
  852. # HP-UX provides only macros, no functions.
  853. # glibc 2.3.2 provides both macros and functions.
  854. # IRIX 6.5 and Solaris 8 only provide functions.
  855. #
  856. # The following tests detect isinf and isnan either as functions or as
  857. # macros from <math.h>. Plain AC_CHECK_FUNCS is insufficient, it doesn't
  858. # use <math.h> so doesn't detect on macro-only systems like HP-UX.
  859. #
  860. AC_MSG_CHECKING([for isinf])
  861. AC_LINK_IFELSE([AC_LANG_SOURCE(
  862. [[#include <math.h>
  863. volatile double x = 0.0;
  864. int main () { return (isinf(x) != 0); }]])],
  865. [AC_MSG_RESULT([yes])
  866. AC_DEFINE([HAVE_ISINF], 1,
  867. [Define to 1 if you have the `isinf' macro or function.])],
  868. [AC_MSG_RESULT([no])])
  869. AC_MSG_CHECKING([for isnan])
  870. AC_LINK_IFELSE([AC_LANG_SOURCE([[
  871. #include <math.h>
  872. volatile double x = 0.0;
  873. int main () { return (isnan(x) != 0); }]])],
  874. [AC_MSG_RESULT([yes])
  875. AC_DEFINE([HAVE_ISNAN], 1,
  876. [Define to 1 if you have the `isnan' macro or function.])],
  877. [AC_MSG_RESULT([no])])
  878. # Reasons for checking:
  879. #
  880. # st_rdev
  881. # st_blksize
  882. # st_blocks not in mingw
  883. # tm_gmtoff BSD+GNU, not in C99
  884. #
  885. # Note AC_STRUCT_ST_BLOCKS is not used here because we don't want the
  886. # AC_LIBOBJ(fileblocks) replacement which that macro gives.
  887. #
  888. AC_CHECK_MEMBERS([struct stat.st_rdev, struct stat.st_blksize, struct stat.st_blocks, struct stat.st_atim, struct stat.st_mtim, struct stat.st_ctim],,,
  889. [#define _GNU_SOURCE
  890. #ifdef HAVE_SYS_STAT_H
  891. # include <sys/stat.h>
  892. #endif
  893. ])
  894. AC_STRUCT_TIMEZONE
  895. AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,
  896. [#include <time.h>
  897. #if HAVE_SYS_TIME_H
  898. # include <sys/time.h>
  899. #endif
  900. ])
  901. GUILE_STRUCT_UTIMBUF
  902. #--------------------------------------------------------------------
  903. #
  904. # What values do the iconv error handlers have?
  905. #
  906. # The only place that we need iconv in our public interfaces is for
  907. # the error handlers, which are just ints. So we weaken our
  908. # dependency by looking up those values at configure-time.
  909. #--------------------------------------------------------------------
  910. GUILE_UNISTRING_ICONVEH_VALUES
  911. #--------------------------------------------------------------------
  912. #
  913. # Which way does the stack grow?
  914. #
  915. # Following code comes from Autoconf 2.69's internal _AC_LIBOBJ_ALLOCA
  916. # macro (/usr/share/autoconf/autoconf/functions.m4). Gnulib has
  917. # very similar code, so in future we could look at using that.
  918. #
  919. # An important detail is that the code involves find_stack_direction
  920. # calling _itself_ - which means that find_stack_direction (or at
  921. # least the second find_stack_direction() call) cannot be inlined.
  922. # If the code could be inlined, that might cause the test to give
  923. # an incorrect answer.
  924. #--------------------------------------------------------------------
  925. SCM_I_GSC_STACK_GROWS_UP=0
  926. AC_RUN_IFELSE([AC_LANG_SOURCE(
  927. [int
  928. find_stack_direction (int *addr, int depth)
  929. {
  930. int dir, dummy = 0;
  931. if (! addr)
  932. addr = &dummy;
  933. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  934. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  935. return dir + dummy;
  936. }
  937. int
  938. main (int argc, char **argv)
  939. {
  940. return find_stack_direction (0, argc + !argv + 20) < 0;
  941. }])],
  942. [SCM_I_GSC_STACK_GROWS_UP=1],
  943. [],
  944. [AC_MSG_WARN(Guessing that stack grows down -- see scmconfig.h)])
  945. #--------------------------------------------------------------------
  946. #
  947. # Boehm's GC library
  948. #
  949. #--------------------------------------------------------------------
  950. AC_MSG_CHECKING(for which bdw-gc pkg-config file to use)
  951. AC_ARG_WITH(bdw_gc, [ --with-bdw-gc=PKG name of BDW-GC pkg-config file],
  952. [bdw_gc="$withval"], [bdw_gc=bdw-gc])
  953. AC_MSG_RESULT($bdw_gc)
  954. PKG_CHECK_MODULES([BDW_GC], [$bdw_gc >= 7.2])
  955. save_LIBS="$LIBS"
  956. LIBS="$BDW_GC_LIBS $LIBS"
  957. CFLAGS="$BDW_GC_CFLAGS $CFLAGS"
  958. # Functions that might not be defined, depending on configuration.
  959. AC_CHECK_FUNCS([GC_pthread_exit GC_pthread_cancel GC_pthread_sigmask])
  960. # Functions from GC 7.3.
  961. AC_CHECK_FUNCS([GC_move_disappearing_link GC_is_heap_ptr])
  962. # See if there's an auxiliary stack, as in ia64.
  963. AC_CHECK_MEMBER([struct GC_stack_base.reg_base],
  964. [SCM_I_GSC_HAVE_AUXILIARY_STACK=1], [SCM_I_GSC_HAVE_AUXILIARY_STACK=0],
  965. [#include <gc/gc.h>])
  966. AC_SUBST([SCM_I_GSC_HAVE_AUXILIARY_STACK])
  967. LIBS="$save_LIBS"
  968. AC_CHECK_SIZEOF(float)
  969. if test "$ac_cv_sizeof_float" -le "$ac_cv_sizeof_long"; then
  970. AC_DEFINE([SCM_SINGLES], 1,
  971. [Define this if floats are the same size as longs.])
  972. fi
  973. AC_MSG_CHECKING(for struct linger)
  974. AC_CACHE_VAL(scm_cv_struct_linger,
  975. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  976. #include <sys/types.h>
  977. #include <sys/socket.h>]],
  978. [[struct linger lgr; lgr.l_linger = 100]])],
  979. [scm_cv_struct_linger="yes"],
  980. [scm_cv_struct_linger="no"]))
  981. AC_MSG_RESULT($scm_cv_struct_linger)
  982. if test $scm_cv_struct_linger = yes; then
  983. AC_DEFINE([HAVE_STRUCT_LINGER], 1,
  984. [Define this if your system defines struct linger, for use with the
  985. getsockopt and setsockopt system calls.])
  986. fi
  987. dnl Check for `struct timespec', for the sake of `gen-scmconfig'. When
  988. dnl building Guile, we always have it, thanks to Gnulib; but scmconfig.h
  989. dnl must tell whether the system has it.
  990. dnl
  991. dnl On MinGW, struct timespec is in <pthread.h>.
  992. AC_MSG_CHECKING(for struct timespec)
  993. AC_CACHE_VAL(scm_cv_struct_timespec,
  994. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  995. #include <time.h>
  996. #if HAVE_PTHREAD_H
  997. #include <pthread.h>
  998. #endif]], [[struct timespec t; t.tv_nsec = 100]])],
  999. [scm_cv_struct_timespec="yes"],
  1000. [scm_cv_struct_timespec="no"]))
  1001. AC_MSG_RESULT($scm_cv_struct_timespec)
  1002. if test $scm_cv_struct_timespec = yes; then
  1003. dnl Don't call it `HAVE_STRUCT_TIMESPEC' because pthread-win32's
  1004. dnl <pthread.h> checks whether that macro is defined.
  1005. AC_DEFINE([HAVE_SYSTEM_STRUCT_TIMESPEC], 1,
  1006. [Define this if your system defines struct timespec via either <time.h> or <pthread.h>.])
  1007. fi
  1008. #--------------------------------------------------------------------
  1009. #
  1010. # Flags for thread support
  1011. #
  1012. #--------------------------------------------------------------------
  1013. SCM_I_GSC_USE_PTHREAD_THREADS=0
  1014. SCM_I_GSC_USE_NULL_THREADS=0
  1015. AC_SUBST([SCM_I_GSC_USE_PTHREAD_THREADS])
  1016. AC_SUBST([SCM_I_GSC_USE_NULL_THREADS])
  1017. ### What thread package has the user asked for?
  1018. AC_ARG_WITH(threads, [ --with-threads thread interface],
  1019. , with_threads=yes)
  1020. AC_SUBST(SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT, 0)
  1021. AC_SUBST(SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER, 0)
  1022. case "$with_threads" in
  1023. "yes" | "pthread" | "pthreads" | "pthread-threads" | "")
  1024. build_pthread_support="yes"
  1025. ACX_PTHREAD([CC="$PTHREAD_CC"
  1026. LIBS="$PTHREAD_LIBS $LIBS"
  1027. SCM_I_GSC_USE_PTHREAD_THREADS=1
  1028. with_threads="pthreads"],
  1029. [with_threads="null"
  1030. build_pthread_support="no"])
  1031. old_CFLAGS="$CFLAGS"
  1032. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  1033. # Reasons for testing:
  1034. # pthread_getattr_np - "np" meaning "non portable" says it
  1035. # all; not present on MacOS X or Solaris 10
  1036. # pthread_get_stackaddr_np - "np" meaning "non portable" says it
  1037. # all; specific to MacOS X
  1038. # pthread_attr_get_np - "np" meaning "non portable" says it
  1039. # all; specific to FreeBSD
  1040. # pthread_sigmask - not available on mingw
  1041. # pthread_cancel - not available on Android (Bionic libc)
  1042. #
  1043. AC_CHECK_FUNCS([pthread_attr_getstack pthread_getattr_np \
  1044. pthread_get_stackaddr_np pthread_attr_get_np pthread_sigmask \
  1045. pthread_cancel])
  1046. # On past versions of Solaris, believe 8 through 10 at least, you
  1047. # had to write "pthread_once_t foo = { PTHREAD_ONCE_INIT };".
  1048. # This is contrary to POSIX:
  1049. # http://www.opengroup.org/onlinepubs/000095399/functions/pthread_once.html
  1050. # Check here if this style is required.
  1051. #
  1052. # glibc (2.3.6 at least) works both with or without braces, so the
  1053. # test checks whether it works without.
  1054. #
  1055. if test "$GCC" = "yes"; then
  1056. # Since GCC only issues a warning for missing braces, so we need
  1057. # `-Werror' to catch it.
  1058. CFLAGS="-Werror -Wmissing-braces $CFLAGS"
  1059. fi
  1060. AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces],
  1061. guile_cv_need_braces_on_pthread_once_init,
  1062. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
  1063. pthread_once_t foo = PTHREAD_ONCE_INIT;]])],
  1064. [guile_cv_need_braces_on_pthread_once_init=no],
  1065. [guile_cv_need_braces_on_pthread_once_init=yes])])
  1066. if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
  1067. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_ONCE_INIT=1
  1068. fi
  1069. # Same problem with `PTHREAD_MUTEX_INITIALIZER', e.g., on IRIX
  1070. # 6.5.30m with GCC 3.3.
  1071. AC_CACHE_CHECK([whether PTHREAD_MUTEX_INITIALIZER needs braces],
  1072. guile_cv_need_braces_on_pthread_mutex_initializer,
  1073. [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
  1074. pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;]])],
  1075. [guile_cv_need_braces_on_pthread_mutex_initializer=no],
  1076. [guile_cv_need_braces_on_pthread_mutex_initializer=yes])])
  1077. if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then
  1078. SCM_I_GSC_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER=1
  1079. fi
  1080. CFLAGS="$old_CFLAGS"
  1081. # On Solaris, sched_yield lives in -lrt.
  1082. AC_SEARCH_LIBS(sched_yield, rt)
  1083. ;;
  1084. esac
  1085. case "$with_threads" in
  1086. "pthreads")
  1087. ;;
  1088. "no" | "null")
  1089. SCM_I_GSC_USE_NULL_THREADS=1
  1090. SCM_I_GSC_HAVE_THREAD_STORAGE_CLASS=0
  1091. with_threads="null-threads"
  1092. ;;
  1093. * )
  1094. AC_MSG_ERROR(invalid value for --with-threads: $with_threads)
  1095. ;;
  1096. esac
  1097. AC_MSG_CHECKING(what kind of threads to support)
  1098. AC_MSG_RESULT($with_threads)
  1099. AM_CONDITIONAL([BUILD_PTHREAD_SUPPORT],
  1100. [test "x$build_pthread_support" = "xyes"])
  1101. if test "$with_threads" = pthreads; then
  1102. dnl Normally Gnulib's 'threadlib' module would define this macro, but
  1103. dnl since we don't use it, define it by ourselves.
  1104. AC_DEFINE([USE_POSIX_THREADS], [1],
  1105. [Define to let Gnulib modules know that we use POSIX threads.])
  1106. AC_MSG_CHECKING([whether pthread_attr_getstack works for the main thread])
  1107. old_CFLAGS="$CFLAGS"
  1108. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  1109. if test "$cross_compiling" = "no"; then
  1110. AC_RUN_IFELSE([AC_LANG_SOURCE([[
  1111. #if HAVE_PTHREAD_ATTR_GETSTACK
  1112. #include <pthread.h>
  1113. int main ()
  1114. {
  1115. pthread_attr_t attr;
  1116. void *start, *end;
  1117. size_t size;
  1118. pthread_getattr_np (pthread_self (), &attr);
  1119. pthread_attr_getstack (&attr, &start, &size);
  1120. end = (char *)start + size;
  1121. if ((void *)&attr < start || (void *)&attr >= end)
  1122. return 1;
  1123. else
  1124. return 0;
  1125. }
  1126. #else
  1127. int main ()
  1128. {
  1129. return 1;
  1130. }
  1131. #endif
  1132. ]])],
  1133. [works=yes
  1134. AC_DEFINE([PTHREAD_ATTR_GETSTACK_WORKS], [1], [Define when pthread_att_get_stack works for the main thread])],
  1135. [works=no],
  1136. [])
  1137. else
  1138. works="assuming it doesn't"
  1139. fi
  1140. CFLAGS="$old_CFLAGS"
  1141. AC_MSG_RESULT($works)
  1142. GUILE_THREAD_LOCAL_STORAGE
  1143. fi # with_threads=pthreads
  1144. ## Cross building
  1145. if test "$cross_compiling" = "yes"; then
  1146. AC_MSG_CHECKING(cc for build)
  1147. ## /usr/bin/cc still uses wrong assembler
  1148. ## CC_FOR_BUILD="${CC_FOR_BUILD-/usr/bincc}"
  1149. CC_FOR_BUILD="${CC_FOR_BUILD-PATH=/usr/bin:$PATH cc}"
  1150. else
  1151. CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
  1152. fi
  1153. ## AC_MSG_CHECKING("if we are cross compiling")
  1154. ## AC_MSG_RESULT($cross_compiling)
  1155. if test "$cross_compiling" = "yes"; then
  1156. AC_MSG_RESULT($CC_FOR_BUILD)
  1157. fi
  1158. ## No need as yet to be more elaborate
  1159. CCLD_FOR_BUILD="$CC_FOR_BUILD"
  1160. AC_SUBST(cross_compiling)
  1161. AC_ARG_VAR(CC_FOR_BUILD,[build system C compiler])
  1162. AC_SUBST(CCLD_FOR_BUILD)
  1163. ## libtool erroneously calls CC_FOR_BUILD HOST_CC;
  1164. ## --HOST is the platform that PACKAGE is compiled for.
  1165. HOST_CC="$CC_FOR_BUILD"
  1166. AC_SUBST(HOST_CC)
  1167. GUILE_CHECK_GUILE_FOR_BUILD
  1168. ## If we're using GCC, add flags to reduce strictness of undefined
  1169. ## behavior, and ask for aggressive warnings.
  1170. GCC_CFLAGS=""
  1171. case "$GCC" in
  1172. yes )
  1173. ## We had -Wstrict-prototypes in here for a bit, but Guile does too
  1174. ## much stuff with generic function pointers for that to really be
  1175. ## less than exasperating.
  1176. ## -Wundef was removed because Gnulib prevented it (see
  1177. ## <http://thread.gmane.org/gmane.lisp.guile.bugs/5329>.)
  1178. ## Build with `-fno-strict-aliasing' and `-fwrapv' to prevent
  1179. ## miscompilation on some platforms. See
  1180. ## <http://lists.gnu.org/archive/html/guile-devel/2012-01/msg00487.html>.
  1181. POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \
  1182. -Wpointer-arith -fno-strict-aliasing -fwrapv"
  1183. # Do this here so we don't screw up any of the tests above that might
  1184. # not be "warning free"
  1185. if test "${GUILE_ERROR_ON_WARNING}" = yes
  1186. then
  1187. POTENTIAL_GCC_CFLAGS="${POTENTIAL_GCC_CFLAGS} -Werror"
  1188. enable_compile_warnings=no
  1189. fi
  1190. for flag in $POTENTIAL_GCC_CFLAGS
  1191. do
  1192. gl_WARN_ADD([$flag], [GCC_CFLAGS])
  1193. done
  1194. ;;
  1195. esac
  1196. AC_SUBST(GCC_CFLAGS)
  1197. # Check for GNU ld's "-z relro".
  1198. GUILE_GNU_LD_RELRO
  1199. LIBLOBJS=""
  1200. for file in $LIBOBJS; do
  1201. file=`echo "$file" | sed 's,\.[[^.]]*$,.lo,'`
  1202. LIBLOBJS="$LIBLOBJS libguile_${GUILE_EFFECTIVE_VERSION}_la-$file"
  1203. done
  1204. ## We also need to create corresponding .doc and .x files
  1205. EXTRA_DOT_DOC_FILES="`echo ${LIB@&t@OBJS} | sed 's,\.[[^.]]* ,.doc ,g;s,\.[[^.]]*$,.doc,'`"
  1206. EXTRA_DOT_X_FILES="`echo ${LIB@&t@OBJS} | sed 's,\.[[^.]]* ,.x ,g;s,\.[[^.]]*$,.x,'`"
  1207. # GNU Readline bindings.
  1208. GUILE_READLINE
  1209. AC_SUBST(GUILE_MAJOR_VERSION)
  1210. AC_SUBST(GUILE_MINOR_VERSION)
  1211. AC_SUBST(GUILE_MICRO_VERSION)
  1212. AC_SUBST(GUILE_EFFECTIVE_VERSION)
  1213. AC_SUBST(GUILE_VERSION)
  1214. #######################################################################
  1215. # library versioning
  1216. AC_SUBST(LIBGUILE_INTERFACE_CURRENT)
  1217. AC_SUBST(LIBGUILE_INTERFACE_REVISION)
  1218. AC_SUBST(LIBGUILE_INTERFACE_AGE)
  1219. AC_SUBST(LIBGUILE_INTERFACE)
  1220. AC_SUBST(LIBGUILE_I18N_MAJOR)
  1221. AC_SUBST(LIBGUILE_I18N_INTERFACE_CURRENT)
  1222. AC_SUBST(LIBGUILE_I18N_INTERFACE_REVISION)
  1223. AC_SUBST(LIBGUILE_I18N_INTERFACE_AGE)
  1224. AC_SUBST(LIBGUILE_I18N_INTERFACE)
  1225. #######################################################################
  1226. dnl Tell guile-config what flags guile users should compile and link
  1227. dnl with, keeping only `-I' flags from $CPPFLAGS.
  1228. GUILE_CFLAGS=""
  1229. next_is_includedir=false
  1230. for flag in $CPPFLAGS
  1231. do
  1232. if $next_is_includedir; then
  1233. GUILE_CFLAGS="$GUILE_CFLAGS -I $flag"
  1234. next_is_includedir=false
  1235. else
  1236. case "$flag" in
  1237. -I) next_is_includedir=true;;
  1238. -I*) GUILE_CFLAGS="$GUILE_CFLAGS $flag";;
  1239. *) ;;
  1240. esac
  1241. fi
  1242. done
  1243. GUILE_CFLAGS="$GUILE_CFLAGS $PTHREAD_CFLAGS"
  1244. GUILE_LIBS="$LIBS"
  1245. AC_SUBST(GUILE_LIBS)
  1246. AC_SUBST(GUILE_CFLAGS)
  1247. AC_SUBST(AWK)
  1248. AC_SUBST(LIBLOBJS)
  1249. AC_SUBST(EXTRA_DOT_DOC_FILES)
  1250. AC_SUBST(EXTRA_DOT_X_FILES)
  1251. dnl See also top_builddir in info node: (libtool)AC_PROG_LIBTOOL
  1252. top_builddir_absolute=`pwd`
  1253. AC_SUBST(top_builddir_absolute)
  1254. top_srcdir_absolute=`(cd $srcdir && pwd)`
  1255. AC_SUBST(top_srcdir_absolute)
  1256. dnl Add -I flag so that lib/glthread/lock.h finds <libguile/threads.h>.
  1257. CPPFLAGS="-I$top_srcdir_absolute $CPPFLAGS"
  1258. dnl `sitedir' goes into libpath.h and the pkg-config file.
  1259. pkgdatadir="$datadir/$PACKAGE_TARNAME"
  1260. sitedir="$pkgdatadir/site/$GUILE_EFFECTIVE_VERSION"
  1261. AC_SUBST([sitedir])
  1262. # Additional SCM_I_GSC definitions are above.
  1263. AC_SUBST([SCM_I_GSC_GUILE_DEBUG])
  1264. AC_SUBST([SCM_I_GSC_ENABLE_DEPRECATED])
  1265. AC_SUBST([SCM_I_GSC_STACK_GROWS_UP])
  1266. AC_SUBST([SCM_I_GSC_C_INLINE])
  1267. AC_CONFIG_FILES([libguile/gen-scmconfig.h])
  1268. AC_CONFIG_FILES([
  1269. Makefile
  1270. am/Makefile
  1271. lib/Makefile
  1272. benchmark-suite/Makefile
  1273. gc-benchmarks/Makefile
  1274. doc/Makefile
  1275. doc/r5rs/Makefile
  1276. doc/ref/Makefile
  1277. emacs/Makefile
  1278. examples/Makefile
  1279. libguile/Makefile
  1280. libguile/version.h
  1281. guile-readline/Makefile
  1282. test-suite/Makefile
  1283. test-suite/standalone/Makefile
  1284. meta/Makefile
  1285. module/Makefile
  1286. stage0/Makefile
  1287. stage1/Makefile
  1288. stage2/Makefile
  1289. prebuilt/Makefile
  1290. prebuilt/x86_64-unknown-linux-gnu/Makefile
  1291. prebuilt/i686-pc-linux-gnu/Makefile
  1292. prebuilt/mips-unknown-linux-gnu/Makefile
  1293. ])
  1294. GUILE_CONFIG_SCRIPT([check-guile])
  1295. GUILE_CONFIG_SCRIPT([benchmark-guile])
  1296. GUILE_CONFIG_SCRIPT([meta/guile])
  1297. GUILE_CONFIG_SCRIPT([meta/build-env])
  1298. GUILE_CONFIG_SCRIPT([meta/uninstalled-env])
  1299. GUILE_CONFIG_SCRIPT([meta/gdb-uninstalled-guile])
  1300. GUILE_CONFIG_SCRIPT([libguile/guile-snarf])
  1301. GUILE_CONFIG_SCRIPT([libguile/guile-snarf-docs])
  1302. GUILE_CONFIG_SCRIPT([test-suite/standalone/test-use-srfi])
  1303. GUILE_CONFIG_SCRIPT([test-suite/standalone/test-fast-slot-ref])
  1304. AC_OUTPUT
  1305. dnl Local Variables:
  1306. dnl comment-start: "dnl "
  1307. dnl comment-end: ""
  1308. dnl comment-start-skip: "\\bdnl\\b\\s *"
  1309. dnl End: