configure.ac 47 KB

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