module AutoConf where
+split :: String -> [String]
+split str =
+ case span (/= ',') str of
+ (x, []) -> [x]
+ (x, _:xs) -> x:split xs
+
packageVersion :: String
packageVersion = "PACKAGE_VERSION"
versionFull :: String
versionFull = "VERSION_FULL"
+dirVersion :: String
+dirVersion = "DIRVERSION"
+
localstatedir :: String
localstatedir = "LOCALSTATEDIR"
exportDir = "EXPORT_DIR"
osSearchPath :: [String]
-osSearchPath = OS_SEARCH_PATH[]
+osSearchPath = split OS_SEARCH_PATH
esSearchPath :: [String]
-esSearchPath = ES_SEARCH_PATH[]
+esSearchPath = split ES_SEARCH_PATH
xenBootloader :: String
xenBootloader = "XEN_BOOTLOADER"
sharedFileStorageDir = "SHARED_FILE_STORAGE_DIR"
iallocatorSearchPath :: [String]
-iallocatorSearchPath = IALLOCATOR_SEARCH_PATH[]
+iallocatorSearchPath = split IALLOCATOR_SEARCH_PATH
kvmPath :: String
kvmPath = "KVM_PATH"
ipPath = "IP_PATH"
socatPath :: String
-socatPath = "SOCAT"
+socatPath = "SOCAT_PATH"
socatUseEscape :: Bool
socatUseEscape = SOCAT_USE_ESCAPE
pkglibdir :: String
pkglibdir = "PKGLIBDIR"
+sharedir :: String
+sharedir = "SHAREDIR"
+
+versionedsharedir :: String
+versionedsharedir = "VERSIONEDSHAREDIR"
+
drbdBarriers :: String
drbdBarriers = "DRBD_BARRIERS"
enableMond :: Bool
enableMond = ENABLE_MOND
+hasGnuLn :: Bool
+hasGnuLn = HAS_GNU_LN
+
-- Write dictionary with man page name as the key and the section
-- number as the value
manPages :: [(String, Int)]