Follow upstream changes -- rest
[git-darcs-import.git] / src / Autoconf.lhs.in
blob5d0e0cd75ba75ce89855d79829e9fa226891997f
2 % System dependent information generated by Autoconf.
4 % @configure_input@
6 \begin{code}
7 {-# LANGUAGE CPP #-}
8 {-# OPTIONS -cpp #-}
10 module Autoconf ( have_libcurl, have_libwww, have_HTTP,
11 use_color, use_mmap, darcs_version, sendmail_path, have_sendmail,
12 have_mapi, diff_program,
13 path_separator, big_endian,
14 ) where
16 import ThisVersion ( darcs_version )
18 {-# INLINE have_libcurl #-}
19 have_libcurl :: Bool
20 #ifdef HAVE_CURL
21 have_libcurl = True
22 #else
23 have_libcurl = False
24 #endif
26 {-# INLINE have_libwww #-}
27 have_libwww :: Bool
28 #ifdef HAVE_LIBWWW
29 have_libwww = True
30 #else
31 have_libwww = False
32 #endif
34 {-# INLINE have_HTTP #-}
35 have_HTTP :: Bool
36 have_HTTP = @HAVE_HTTP@
38 {-# INLINE use_color #-}
39 use_color :: Bool
40 use_color = @USE_COLOR@
42 {-# INLINE use_mmap #-}
43 use_mmap :: Bool
44 use_mmap = @USE_MMAP@
46 {-# INLINE sendmail_path #-}
47 sendmail_path :: String
48 sendmail_path = "@SENDMAIL@"
50 {-# INLINE have_sendmail #-}
51 have_sendmail :: Bool
52 have_sendmail = @HAVE_SENDMAIL@
54 {-# INLINE have_mapi #-}
55 have_mapi :: Bool
56 have_mapi = @HAVE_MAPI@
58 {-# INLINE diff_program #-}
59 diff_program :: String
60 diff_program = "@DIFF@"
62 {-# INLINE path_separator #-}
63 path_separator :: Char
64 #ifdef WIN32
65 path_separator = '\\'
66 #else
67 path_separator = '/'
68 #endif
70 {-# INLINE big_endian #-}
71 big_endian :: Bool
72 big_endian = @BIGENDIAN@
73 \end{code}