@@ -7,15 +7,17 @@ AC_INIT([libsass], m4_esyscmd_s([./version.sh]), [
[email protected] ])
77AC_CONFIG_SRCDIR ( [ ast.hpp] ) 
88AC_CONFIG_MACRO_DIR ( [ m4] ) 
99AC_CONFIG_HEADERS ( [ config.h] ) 
10+ AC_CONFIG_FILES ( [ sass_version.h] ) 
1011AC_CONFIG_AUX_DIR ( [ script] ) 
11- AM_INIT_AUTOMAKE ( [ foreign parallel-tests] ) 
12+ #  These are flags passed to automake
13+ #  Though they look like gcc flags!
14+ AM_INIT_AUTOMAKE ( [ foreign parallel-tests -Wall] ) 
1215m4_ifdef ( [ AM_SILENT_RULES ] [ AM_SILENT_RULES ([ no] ] ) 
13- LT_INIT
1416
1517#  Checks for programs.
1618AC_PROG_CXX 
17- 
1819AC_LANG ( [ C++] ) 
20+ LT_INIT([ dlopen] 
1921
2022#  Checks for header files.
2123AC_CHECK_HEADERS ( [ unistd.h] ) 
@@ -31,6 +33,17 @@ AC_CHECK_FUNCS([floor getcwd strtol])
3133AC_ARG_ENABLE ( tests , AS_HELP_STRING ( [ --enable-tests] [ enable testing the build] ) ,
3234              [ enable_tests="$enableval"] [ enable_tests=no] ) 
3335
36+ AS_CASE ( [ $host] [ *-*-mingw32] [ is_mingw32=yes] [ is_mingw32=no] ) 
37+ AM_CONDITIONAL(COMPILER_IS_MINGW32, test "x$is_mingw32" = "xyes")
38+ 
39+ dnl  The dlopen() function is in the C library for *BSD and in
40+ dnl  libdl on GLIBC-based systems
41+ if test "x$is_mingw32" != "xyes"; then
42+   AC_SEARCH_LIBS ( [ dlopen] [ dl dld] [ ] [ 
43+     AC_MSG_ERROR ( [ unable to find the dlopen() function] )  
44+   ]  ) 
45+ fi
46+ 
3447if test "x$enable_tests" = "xyes"; then
3548  AC_PROG_CC 
3649  AC_PROG_AWK 
107120
108121AM_CONDITIONAL(ENABLE_COVERAGE, test "x$enable_cov" = "xyes")
109122
110- AS_CASE ( [ $host] [ *-*-mingw32] [ is_mingw32=yes] [ is_mingw32=no] ) 
111- AM_CONDITIONAL(COMPILER_IS_MINGW32, test "x$is_mingw32" = "xyes")
123+ AC_SUBST ( PACKAGE_VERSION ) 
112124
113125AC_MSG_NOTICE ( [ Building libsass ($VERSION)] ) 
114126
0 commit comments