;; 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.")))))

(define *configurations*
  (quote
   (("-V"  "0.9.10")
    ("-I"  "-I/usr/pkg/lib/gauche-0.97/0.9.10/include")
    ("-L"  "-L/usr/pkg/lib/gauche-0.97/0.9.10/powerpc--netbsd ")
    ("--ac"  "/usr/pkg/share/gauche-0.97/0.9.10/")
    ("-l"  "-lgauche-0.97 -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--enable-multibyte=utf8' '--with-slib=/usr/pkg/share/slib' '--enable-threads=pthreads' '--with-iconv=/usr' '--with-zlib=/usr' '--prefix=/usr/pkg' '--build=powerpc--netbsd' '--host=powerpc--netbsd' '--infodir=/usr/pkg/info' '--mandir=/usr/pkg/man' 'build_alias=powerpc--netbsd' 'host_alias=powerpc--netbsd' 'CC=gcc' 'CFLAGS=-O2 -I/usr/pkg/include -I/usr/include' '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'")

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

    ("--incdirs"      "/usr/pkg/lib/gauche-0.97/0.9.10/include:/usr/pkg/lib/gauche-0.97/site/include")
    ("--archdirs"      "/usr/pkg/lib/gauche-0.97/0.9.10/powerpc--netbsd:/usr/pkg/lib/gauche-0.97/site/powerpc--netbsd")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

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

    ("--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.97.so")
    ("--static-libs"     "-lgauche-static-0.97   -lgdbm   -lz    -lcrypt -lutil -lrt -lm  -lpthread")
    )))

