;; 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 (canonicalize (cadr p)))]
        [else (error "unknown configuration parameter name" param)]))

;; Kludge: Replace '@' in pathnames based on the directory of the
;; executable.  We assume '@' only appears as this special prefix of
;; pathnames.  Must be in sync with print_output in gauche-config.c
;; generated above.
(define (canonicalize str)
  (cond-expand
    [gauche.os.windows
     ;; NB: we pass closure in the 3rd arg, since the replacement string
     ;; may contain backslashes and confuse regexp-replace-all.
     (regexp-replace-all #/@/ str (^m (%gauche-runtime-directory)))]
    [else str]))

(define *configurations*
  (quote
   (("-V"  "0.9.6")
    ("-I"  "-I/usr/pkg/lib/gauche-0.9/0.9.6/include")
    ("-L"  "-L/usr/pkg/lib/gauche-0.9/0.9.6/powerpc--netbsd ")
    ("--ac"  "/usr/pkg/share/gauche-0.9/0.9.6/")
    ("-l"  "-lgauche-0.9 -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' 'PKG_CONFIG=' 'PKG_CONFIG_PATH=' 'PKG_CONFIG_LIBDIR=/tmp/pkgbuild/lang/gauche/work.powerpc/.buildlink/lib/pkgconfig:/tmp/pkgbuild/lang/gauche/work.powerpc/.buildlink/share/pkgconfig' 'CC=gcc' 'CFLAGS=-O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include' 'LDFLAGS=-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.9/0.9.6/include")
    ("--siteincdir"   "/usr/pkg/lib/gauche-0.9/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.9/site/include")
    ("--syslibdir"    "/usr/pkg/share/gauche-0.9/0.9.6/lib")
    ("--sitelibdir"   "/usr/pkg/share/gauche-0.9/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.9/site/lib")
    ("--sysarchdir"   "/usr/pkg/lib/gauche-0.9/0.9.6/powerpc--netbsd")
    ("--sitearchdir"  "/usr/pkg/lib/gauche-0.9/site/powerpc--netbsd")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/powerpc--netbsd")
    ("--mandir"       "/usr/pkg/man")
    ("--infodir"      "/usr/pkg/info")
    ("--arch"         "powerpc--netbsd")

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

    ("--default-cflags"  "-O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include")

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

