#!/usr/bin/env gosh
;; Configuring libuuid
;; Run ./configure (or gosh ./configure) to generate Makefiles.

(use gauche.configure)

(cf-init-gauche-extension)

(cf-check-headers '("uuid/uuid.h"))

(define *have-libuuid* #f)
(cf-search-libs "uuid_get_template" '("uuid")
                :if-found (^z  ; can be #f, if fn is available by default
                           (set! *have-libuuid* (boolean z))))

(unless *have-libuuid*
  (cf-msg-error "libuuid is not found.  Configure aborted."))

;; Output
(cf-output-default)

;; Local variables:
;; mode: scheme
;; end:
