;; Generated by genconfig.  DO NOT EDIT
(define-module gauche.config
  (use gauche.process)
  (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.2")
    ("-I"  "-I/usr/local/lib/gauche-0.9/0.9.2/include")
    ("-L"  "-L/usr/local/lib/gauche-0.9/0.9.2/amd64-portbld-freebsd8.0 ")
    ("--ac"  "/usr/local/share/gauche-0.9/0.9.2/")
    ("-l"  "-lgauche-0.9 -lcrypt -lutil -lm  -pthread")
    ("--cc"  "cc -std=gnu99")
    ("--reconfigure"  "./configure  '--enable-threads=pthreads' '--enable-multibyte=utf-8' '--with-slib=/usr/local/share/slib' '--with-iconv=/usr/local' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.0' 'build_alias=amd64-portbld-freebsd8.0' 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing' 'LDFLAGS=' 'CPPFLAGS=' 'CPP=cpp'")

    ("--prefix"       "/usr/local")
    ("--sysincdir"    "/usr/local/lib/gauche-0.9/0.9.2/include")
    ("--siteincdir"   "/usr/local/lib/gauche-0.9/site/include")
    ("--pkgincdir"    "${libdir}/gauche-0.9/site/include")
    ("--syslibdir"    "/usr/local/share/gauche-0.9/0.9.2/lib")
    ("--sitelibdir"   "/usr/local/share/gauche-0.9/site/lib")
    ("--pkglibdir"    "${datadir}/gauche-0.9/site/lib")
    ("--sysarchdir"   "/usr/local/lib/gauche-0.9/0.9.2/amd64-portbld-freebsd8.0")
    ("--sitearchdir"  "/usr/local/lib/gauche-0.9/site/amd64-portbld-freebsd8.0")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/amd64-portbld-freebsd8.0")
    ("--mandir"       "/usr/local/man")
    ("--infodir"      "/usr/local/info")
    ("--arch"         "amd64-portbld-freebsd8.0")

    ("--incdirs"      "/usr/local/lib/gauche-0.9/0.9.2/include")
    ("--archdirs"      "/usr/local/lib/gauche-0.9/0.9.2/amd64-portbld-freebsd8.0")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-O2 -pipe -fno-strict-aliasing")

    ("--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")
    )))

