configure.ac 47 KB

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