configure.ac 1.01 KB
Newer Older
1 2 3 4 5
dnl -*- Autoconf -*-
 
AC_INIT(guile-log, 0.4.0, [guile-user@gnu.org])
AC_CONFIG_SRCDIR()
AC_CONFIG_AUX_DIR([build-aux])
6
AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
7 8 9 10 11 12 13 14 15 16 17 18
AM_SILENT_RULES([yes])
AC_CONFIG_MACRO_DIR([m4])

LT_INIT
 
AC_CONFIG_HEADER(config.h)

AC_PROG_CC

WARN_CFLAGS=-Wall
AC_ARG_ENABLE([Werror], AC_HELP_STRING([--disable-Werror],[Don't stop the build on errors]),
        [], WARN_CFLAGS="-Wall")
19 20 21 22 23 24 25 26 27 28 29 30 31

AC_ARG_WITH([logical-gc],
	AS_HELP_STRING([--without-logical-gc],
                       [Ignore presence of logical gc and disable it]))

AS_IF([test "x$with_logical_gc" != "xno"],
      AS_IF([test "x$with_logical_gc" != "xyes"],	  
            AC_DEFINE([HAS_NO_GP_GC],[1],[has logical gc]),
	    AC_DEFINE([HAS_GP_GC],[1],[has logical gc])),
      AC_DEFINE([HAS_NO_GP_GC],[1],[has not logical gc]))

            

32 33
AC_SUBST(WARN_CFLAGS)

34

35

36 37
GUILE_PKG([2.2 2.0])
GUILE_PROGS
38 39 40 41 42
 
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([env], [chmod +x env])
AC_CONFIG_FILES(logic/guile-log/src/Makefile)
AC_OUTPUT