;; 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-sun-solaris2.11 ")
    ("--ac"  "/opt/local/share/gauche-0.9/0.9.4/")
    ("-l"  "-lgauche-0.9 -lnsl -lsocket -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure '--enable-multibyte=utf8' '--with-slib=/opt/local/share/slib' '--enable-threads=pthreads' '--with-iconv=/opt/local' '--with-iconv-lib=iconv' '--with-libiconv-prefix=/opt/local' '--prefix=/opt/local' '--build=x86_64-sun-solaris2.11' '--host=x86_64-sun-solaris2.11' '--infodir=/opt/local/info' '--mandir=/opt/local/man' 'build_alias=x86_64-sun-solaris2.11' 'host_alias=x86_64-sun-solaris2.11' 'CC=gcc' 'CFLAGS=-O2 -pipe -O2 -I/opt/local/include -I/usr/include' 'LDFLAGS=-L/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 -Wl,-R/opt/local/gcc47/lib/gcc/x86_64-sun-solaris2.11/4.7.3 -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64' 'LIBS=' 'CPPFLAGS=-I/opt/local/include -I/usr/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-sun-solaris2.11")
    ("--sitearchdir"  "/opt/local/lib/gauche-0.9/site/x86_64-sun-solaris2.11")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/x86_64-sun-solaris2.11")
    ("--mandir"       "/opt/local/man")
    ("--infodir"      "/opt/local/info")
    ("--arch"         "x86_64-sun-solaris2.11")

    ("--incdirs"      "/opt/local/lib/gauche-0.9/0.9.4/include:/opt/local/lib/gauche-0.9/site/include")
    ("--archdirs"      "/opt/local/lib/gauche-0.9/0.9.4/x86_64-sun-solaris2.11:/opt/local/lib/gauche-0.9/site/x86_64-sun-solaris2.11")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -pipe -O2 -I/opt/local/include -I/usr/include -D_XOPEN_SOURCE=600 -D__EXTENSIONS__")

    ("--object-suffix"   "o")
    ("--executable-suffix"  "")
    ("--rpath-flag"      "-Wl,--rpath -Wl,")
    ("--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")
    )))

