;; Generated by genconfig.  DO NOT EDIT
(define-module gauche.config
  (export gauche-config))
(select-module gauche.config)

(define (gauche-config param)
  (cond [(assoc param *configurations*) => (^p (replace-install-dir (cadr p)))]
        [else (error "unknown configuration parameter name" param)]))

(define (replace-install-dir str)
  (let1 ss (string-split str #\@)
    (if (length<=? ss 1)
      str
      (if-let1 d ((with-module gauche.internal %gauche-runtime-directory))
        (string-join ss d)
        (error "Couldn't obtain installation directory to complete " str)))))

(define *configurations*
  (quote
   (("-V"  "0.9.15")
    ("-I"  "-I/usr/pkg/lib/gauche-0.98/0.9.15/include")
    ("-L"  "-L/usr/pkg/lib/gauche-0.98/0.9.15/x86_64--netbsd ")
    ("--ac"  "/usr/pkg/share/gauche-0.98/0.9.15/")
    ("-l"  "-lgauche-0.98 -lmbedtls -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--cpp" "gcc -E")
    ("--reconfigure"  "./configure  '--enable-multibyte=utf8' '--with-slib=/usr/pkg/share/slib' '--enable-threads=pthreads' '--with-iconv=/usr' '--with-zlib=/usr' '--prefix=/usr/pkg' '--build=x86_64--netbsd' '--host=x86_64--netbsd' '--infodir=/usr/pkg/info' '--mandir=/usr/pkg/man' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'CC=gcc' 'CFLAGS=-O2 -I/usr/pkg/include -I/usr/include -Dz_off_t=long' 'LDFLAGS=-Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib' 'LIBS=' 'CPPFLAGS=-I/usr/pkg/include -I/usr/include -Dz_off_t=long'")

    ("--prefix"       "/usr/pkg")
    ("--sysincdir"    "/usr/pkg/lib/gauche-0.98/0.9.15/include")
    ("--siteincdir"   "/usr/pkg/lib/gauche-0.98/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.98/site/include")
    ("--syslibdir"    "/usr/pkg/share/gauche-0.98/0.9.15/lib")
    ("--sitelibdir"   "/usr/pkg/share/gauche-0.98/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.98/site/lib")
    ("--sysarchdir"   "/usr/pkg/lib/gauche-0.98/0.9.15/x86_64--netbsd")
    ("--sitearchdir"  "/usr/pkg/lib/gauche-0.98/site/x86_64--netbsd")
    ("--pkgarchdir"   "${libdir}/gauche-0.98/site/x86_64--netbsd")
    ("--mandir"       "/usr/pkg/man")
    ("--infodir"      "/usr/pkg/info")
    ("--arch"         "x86_64--netbsd")

    ("--incdirs"      "/usr/pkg/lib/gauche-0.98/0.9.15/include:/usr/pkg/lib/gauche-0.98/site/include")
    ("--archdirs"      "/usr/pkg/lib/gauche-0.98/0.9.15/x86_64--netbsd:/usr/pkg/lib/gauche-0.98/site/x86_64--netbsd")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -I/usr/pkg/include -I/usr/include -Dz_off_t=long -Wall -Wextra -Wno-unused-label")
    ("--cppflags"        "-I/usr/pkg/include -I/usr/include -Dz_off_t=long ")

    ("--object-suffix"   "o")
    ("--executable-suffix"  "")
    ("--rpath-flag"      "-Wl,--rpath=")
    ("--so-suffix"       "so")
    ("--so-cflags"       "-fPIC -DPIC")
    ("--so-ldflags"      " -shared -o")
    ("--so-libs"         "")
    ("--dylib-suffix"    "so")
    ("--dylib-ldflags"   " -shared -o")
    ("--libgauche-so"    "libgauche-0.98.so")
    ("--static-libs"     "-lgauche-static-0.98   -lgdbm   -lz  -lmbedtls -lmbedx509 -lmbedcrypto   -lmbedtls -lcrypt -lutil -lrt -lm  -lpthread")
    )))

