1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
AC_INIT(sass.cmod) 
AC_CONFIG_HEADERS(config.h) 
# AC_ARG_WITH(sass,     [  --with(out)-sass       Support for SASS],[],[with_sass=yes]) 
AC_MODULE_INIT() 
 
AH_TEMPLATE([HAVE_LIBSASS_LANGUAGE_VERSION], 
            [Define to 1 if libsass has sass_language_version()]) 
 
AH_TEMPLATE([HAVE_LIBSASS_DELETE_OPTIONS], 
            [Define to 1 if libsass has sass_delete_options()]) 
 
CMOD_LIBS="-lsass" 
CMOD_CFLAGS="" 
 
AC_HAVE_HEADERS(inttypes.h) 
AC_CHECK_HEADERS([sass.h]) 
 
# 
# Check for features in libsass 
# 
AC_SEARCH_LIBS(sass_language_version, sass, 
  [ AC_DEFINE([HAVE_LIBSASS_LANGUAGE_VERSION], [1]) ]) 
 
AC_SEARCH_LIBS(sass_delete_options, sass, 
  [ AC_DEFINE([HAVE_LIBSASS_LANGUAGE_VERSION], [1]) ]) 
 
 
AC_SUBST(CMOD_CFLAGS) 
AC_SUBST(CMOD_LIBS) 
 
AC_OUTPUT(Makefile)