;; 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/lib/gauche-0.9/0.9.6/include")
    ("-L"  "-L/usr/lib/gauche-0.9/0.9.6/x86_64-pc-linux-gnu ")
    ("--ac"  "/usr/share/gauche-0.9/0.9.6/")
    ("-l"  "-lgauche-0.9 -ldl -lcrypt -lutil -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--enable-multibyte=utf-8' '--prefix=/usr' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'")

    ("--prefix"       "/usr")
    ("--sysincdir"    "/usr/lib/gauche-0.9/0.9.6/include")
    ("--siteincdir"   "/usr/lib/gauche-0.9/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.9/site/include")
    ("--syslibdir"    "/usr/share/gauche-0.9/0.9.6/lib")
    ("--sitelibdir"   "/usr/share/gauche-0.9/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.9/site/lib")
    ("--sysarchdir"   "/usr/lib/gauche-0.9/0.9.6/x86_64-pc-linux-gnu")
    ("--sitearchdir"  "/usr/lib/gauche-0.9/site/x86_64-pc-linux-gnu")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/x86_64-pc-linux-gnu")
    ("--mandir"       "/usr/share/man")
    ("--infodir"      "/usr/share/info")
    ("--arch"         "x86_64-pc-linux-gnu")

    ("--incdirs"      "/usr/lib/gauche-0.9/0.9.6/include:/usr/lib/gauche-0.9/site/include")
    ("--archdirs"      "/usr/lib/gauche-0.9/0.9.6/x86_64-pc-linux-gnu:/usr/lib/gauche-0.9/site/x86_64-pc-linux-gnu")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt")

    ("--object-suffix"   "o")
    ("--executable-suffix"  "")
    ("--rpath-flag"      "-Wl,--rpath=")
    ("--so-suffix"       "so")
    ("--so-cflags"       "-fPIC")
    ("--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 -lgdbm_compat -lz -ldl -lcrypt -lutil -lrt -lm -lpthread")
    )))

