Branch: Tag:

2018-03-08

2018-03-08 18:14:24 by Pontus Östlund <ponost@roxen.com>

Some configure stuff done. All aint 100% yet, but good enough.

1:   AC_INIT(sass.cmod) - AC_ARG_WITH(sass, [ --with(out)-sass Support for SASS],[],[with_sass=yes]) + AC_ARG_WITH(sass, +  [--with(out)-sass Support for SASS], +  [], +  [with_sass=yes]) + AC_ARG_WITH(sass-debug, +  [--with-sass-debug For dev purposes], +  [with_sass_debug=yes], +  [with_sass_debug=no]) +    AC_MODULE_INIT()      AC_CONFIG_HEADERS(config.h)    - PIKE_FEATURE_NODEP(Sass) +    PIKE_FEATURE_WITHOUT(Sass) - AC_HAVE_HEADERS(inttypes.h) +    AC_CHECK_HEADERS([sass.h]) - AC_DEFINE(HAVE_LIBSASS, [], [True if LIBSASS is available]) +     - if test x"$ac_cv_header_sass_h" != "xyes"; then + if test "x$ac_cv_header_sass_h" != "xyes"; then    with_sass="no"   fi    - if test x$with_sass = xyes; then -  AC_DEFINE(HAVE_LIBSASS) + if test "x$with_sass" = "x"; then +  with_sass="yes" + fi    -  + AS_IF([test "x$with_sass_debug" = "xyes" ], [ +  AC_DEFINE(PIKE_SASS_DEBUG, [1], [Defined if --with-sass-debug]) +  ]) +  + if test "x$with_sass" = "xyes"; then +  PIKE_FEATURE_NODEP(Sass) +     CMOD_LIBS=" -lsass"    CMOD_CFLAGS=""   
28:    #    AC_CHECK_LIB(sass, sass_delete_options, [    LIBS="${LIBS-} -lsass" -  AC_DEFINE(HAVE_LIBSASS_DELETE_OPTIONS, [1], [Defined if sass_delete_options is available ]) +  AC_DEFINE(HAVE_LIBSASS_DELETE_OPTIONS, [1], +  [Defined if sass_delete_options is available ])    ])       AC_CHECK_LIB(sass, libsass_language_version, [    LIBS="${LIBS-} -lsass" -  AC_DEFINE(HAVE_LIBSASS_LANGUAGE_VERSION, [1], [True if libsass_language_version() is available]) +  AC_DEFINE(HAVE_LIBSASS_LANGUAGE_VERSION, [1], +  [True if libsass_language_version() is available])    ])