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])
15 # Detect the shared-library settings
19 # -lc -ldl -lm -lnsl -lsocket -lrt
20 # -lthr (preferred on BSD?) or -lpthread
23 # Don't actually do much for now; just wrap the existing mechanism.
28 # Cross-compilation -- identify the $build and $host systems
29 # (default runs ./build-aux/config.guess)
32 # Auto-detect a lisp to compile with
34 AS_HELP_STRING([--with-lisp=path], [Name of or absolute path to the lisp \
35 which should bootstrap SBCL. @<:@default=search for sbcl, cmucl, lisp@:>@]),
43 dnl c.f. make-config.sh
45 # Do we need to bring in undefineds.c?
76 cygwin* | mingw* | win*)
82 AC_MSG_ERROR([unknown OS $host_os])
85 AM_CONDITIONAL([COND_OS_BSD], [test $os = bsd])
86 AM_CONDITIONAL([COND_OS_DARWIN], [test $os = darwin])
87 AM_CONDITIONAL([COND_OS_LINUX], [test $os = linux])
88 AM_CONDITIONAL([COND_OS_OSF1], [test $os = osf1])
89 AM_CONDITIONAL([COND_OS_SUNOS], [test $os = sunos])
90 AM_CONDITIONAL([COND_OS_WINDOWS], [test $os = windows])
120 AC_MSG_ERROR([unknown CPU $host_cpu])
123 AM_CONDITIONAL([COND_CPU_ALPHA], [test $cpu = alpha])
124 AM_CONDITIONAL([COND_CPU_HPPA], [test $cpu = hppa])
125 AM_CONDITIONAL([COND_CPU_MIPS], [test $cpu = mips])
126 AM_CONDITIONAL([COND_CPU_PPC], [test $cpu = ppc])
127 AM_CONDITIONAL([COND_CPU_SPARC], [test $cpu = sparc])
128 AM_CONDITIONAL([COND_CPU_X86], [test $cpu = x86])
129 AM_CONDITIONAL([COND_CPU_X86_64], [test $cpu = x86_64])
131 AM_CONDITIONAL([COND_PORT_INCOMPLETE], [test $port_incomplete = yes])
135 AC_ARG_ENABLE([threading],
136 AS_HELP_STRING([--disable-threading], [Threading is enabled by default.]),
137 [ENABLE_THREADING=$enableval],
138 [ENABLE_THREADING=yes])
139 AC_ARG_WITH([thread-lib],
140 AS_HELP_STRING([--with-thread-lib=@<:@lib@:>@],
141 [Specify a threading library to use. @<:@lib=pthread or thr; \
142 default is autodetect@:>@]),
148 if test $ENABLE_THREADING = yes
150 AC_MSG_ERROR([threading was enabled, but --with-thread-lib=no])
154 WITH_THREAD_LIB=$withval
160 SET_LISP_FEATURES($os, $cpu)
162 AC_CONFIG_FILES([Makefile src/runtime/Makefile])