;; 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.4")
    ("-I"  "-I/opt/local/lib/gauche-0.9/0.9.4/include")
    ("-L"  "-L/opt/local/lib/gauche-0.9/0.9.4/x86_64-apple-darwin10.8.0 -L/opt/local/lib")
    ("--ac"  "/opt/local/share/gauche-0.9/0.9.4/")
    ("-l"  "-lgauche-0.9 -lm  -lpthread")
    ("--cc"  "/usr/bin/gcc-4.2 -std=gnu99")
    ("--reconfigure"  "./configure '--prefix=/opt/local' '--with-local=/opt/local' '--enable-multibyte=utf-8' '--with-iconv=/opt/local' '--with-slib=/opt/local/lib/slib' '--enable-threads=pthreads' '--enable-ipv6' 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' 'CPPFLAGS=-I/opt/local/include'")

    ("--prefix"       "/opt/local")
    ("--sysincdir"    "/opt/local/lib/gauche-0.9/0.9.4/include")
    ("--siteincdir"   "/opt/local/lib/gauche-0.9/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.9/site/include")
    ("--syslibdir"    "/opt/local/share/gauche-0.9/0.9.4/lib")
    ("--sitelibdir"   "/opt/local/share/gauche-0.9/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.9/site/lib")
    ("--sysarchdir"   "/opt/local/lib/gauche-0.9/0.9.4/x86_64-apple-darwin10.8.0")
    ("--sitearchdir"  "/opt/local/lib/gauche-0.9/site/x86_64-apple-darwin10.8.0")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/x86_64-apple-darwin10.8.0")
    ("--mandir"       "/opt/local/share/man")
    ("--infodir"      "/opt/local/share/info")
    ("--arch"         "x86_64-apple-darwin10.8.0")

    ("--incdirs"      "/opt/local/lib/gauche-0.9/0.9.4/include:/opt/local/lib/gauche-0.9/site/include:/opt/local/include")
    ("--archdirs"      "/opt/local/lib/gauche-0.9/0.9.4/x86_64-apple-darwin10.8.0:/opt/local/lib/gauche-0.9/site/x86_64-apple-darwin10.8.0:/opt/local/lib")
    ("--local-incdir"  "-I/opt/local/include")
    ("--local-libdir"  "-L/opt/local/lib")

    ("--default-cflags"  "-pipe -Os -arch x86_64")

    ("--object-suffix"   "o")
    ("--executable-suffix"  "")
    ("--rpath-flag"      "")
    ("--so-suffix"       "so")
    ("--so-cflags"       "-no-cpp-precomp -fPIC -fno-common")
    ("--so-ldflags"      "-bundle -flat_namespace -undefined suppress -o")
    ("--so-libs"         "")
    ("--dylib-suffix"    "dylib")
    ("--dylib-ldflags"   "-dynamiclib -o")
    ("--libgauche-so"    "libgauche-0.9.dylib")
    )))

