view src/config.sml.in @ 2174:ce312cad5ecd

Use correct OpenSSL thread safety macros on OS X (closes #209) Create an Autoconf test to determine if pthread_t is a pointer or scalar type, and use the appropriate CRYPTO_THREADID_set macro based on the result.
author Benjamin Barenblat <bbaren at mit.edu>
date Sun, 20 Sep 2015 17:46:07 -0400
parents c414850f206f
children
line wrap: on
line source
structure Config :> CONFIG = struct

val builddir = "@abs_top_builddir@"

val bin = "@BIN@"
val srclib = "@SRCLIB@"
val lib = "@LIB@"
val includ = "@INCLUDE@"
val sitelisp = "@SITELISP@"

val ccompiler = "@CC@"
val ccArgs = "@CCARGS@"

val openssl = "@OPENSSL_LDFLAGS@ @OPENSSL_LIBS@"

(* Something is rotten in the state of Ubuntu 11.10, so here's a manual fix that I hope doesn't break other platforms. *)
val openssl =
    let
        val tokens = String.tokens Char.isSpace openssl
    in
        if List.exists (fn s => s = "-lssl") tokens then
            String.concatWith " " (List.filter (fn s => s <> "-lssl") tokens @ ["-lssl"])
        else
            openssl
    end

val pgheader = "@PGHEADER@"
val msheader = "@MSHEADER@"
val sqheader = "@SQHEADER@"

val versionNumber  = "@VERSION@"
val versionString  = "The Ur/Web compiler, version " ^ versionNumber

val pthreadCflags = "@PTHREAD_CFLAGS@"
val pthreadLibs = "@PTHREAD_LIBS@"

end