1 AC_INIT(sbcl, 1.0.12.17, dherring@at.tentpost.dot.com)
2 # change out my email to www.sbcl.org if/when this becomes official
4 # Reduce top-level clutter
5 AC_CONFIG_AUX_DIR([build-aux])
7 AM_INIT_AUTOMAKE([dist-bzip2 foreign no-define nostdinc])
17 # Detect the shared-library settings
20 ## Grovel after libtool has found its standard headers...
21 GROVEL_HEADERS(sysincludes)
22 AC_DEFUN([GROVELDS], [GROVELD([$1], [$sysincludes], m4_default([$2], [no]))])
23 AC_DEFUN([GROVELITS], [GROVELIT([$1], [$sysincludes])])
27 # -lc -ldl -lm -lnsl -lsocket -lrt
28 # -lthr (preferred on BSD?) or -lpthread
31 # Don't actually do much for now; just wrap the existing mechanism.
36 # Cross-compilation -- identify the $build and $host systems
37 # (default runs ./build-aux/config.guess)
44 dnl c.f. make-config.sh
46 # Do we need to bring in undefineds.c?
77 cygwin* | mingw* | win*)
83 AC_MSG_ERROR([unknown OS $host_os])
86 AM_CONDITIONAL([COND_OS_BSD], [test $os = bsd])
87 AM_CONDITIONAL([COND_OS_DARWIN], [test $os = darwin])
88 AM_CONDITIONAL([COND_OS_LINUX], [test $os = linux])
89 AM_CONDITIONAL([COND_OS_OSF1], [test $os = osf1])
90 AM_CONDITIONAL([COND_OS_SUNOS], [test $os = sunos])
91 AM_CONDITIONAL([COND_OS_WINDOWS], [test $os = windows])
121 AC_MSG_ERROR([unknown CPU $host_cpu])
124 AM_CONDITIONAL([COND_CPU_ALPHA], [test $cpu = alpha])
125 AM_CONDITIONAL([COND_CPU_HPPA], [test $cpu = hppa])
126 AM_CONDITIONAL([COND_CPU_MIPS], [test $cpu = mips])
127 AM_CONDITIONAL([COND_CPU_PPC], [test $cpu = ppc])
128 AM_CONDITIONAL([COND_CPU_SPARC], [test $cpu = sparc])
129 AM_CONDITIONAL([COND_CPU_X86], [test $cpu = x86])
130 AM_CONDITIONAL([COND_CPU_X86_64], [test $cpu = x86_64])
132 AM_CONDITIONAL([COND_PORT_INCOMPLETE], [test $port_incomplete = yes])
136 AC_ARG_ENABLE([threading],
137 AS_HELP_STRING([--disable-threading], [Threading is enabled by default.]),
138 [ENABLE_THREADING=$enableval],
139 [ENABLE_THREADING=yes])
140 AC_ARG_WITH([thread-lib],
141 AS_HELP_STRING([--with-thread-lib=@<:@lib@:>@],
142 [Specify a threading library to use. @<:@lib=pthread or thr; \
143 default is autodetect@:>@]),
149 if test $ENABLE_THREADING = yes
151 AC_MSG_ERROR([threading was enabled, but --with-thread-lib=no])
155 WITH_THREAD_LIB=$withval
161 SET_LISP_FEATURES($os, $cpu)
163 AC_CONFIG_FILES([Makefile src/runtime/Makefile])