;; 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.3.3")
    ("-I"  "-I/usr/local/lib/gauche-0.9/0.9.3.3/include")
    ("-L"  "-L/usr/local/lib/gauche-0.9/0.9.3.3/amd64-portbld-freebsd8.3 ")
    ("--ac"  "/usr/local/share/gauche-0.9/0.9.3.3/")
    ("-l"  "-lgauche-0.9 -lcrypt -lutil -lm  -pthread")
    ("--cc"  "cc -std=gnu99")
    ("--reconfigure"  "./configure  '--enable-tls=none' '--with-iconv=/usr/local' '--with-slib=/wrkdirs/usr/ports/lang/gauche/work' '--enable-threads=pthreads' '--enable-multibyte=utf-8' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.3' 'build_alias=amd64-portbld-freebsd8.3' 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing' 'LDFLAGS=' 'CPPFLAGS=' 'CPP=cpp'")

    ("--prefix"       "/usr/local")
    ("--sysincdir"    "/usr/local/lib/gauche-0.9/0.9.3.3/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.3.3/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.3.3/amd64-portbld-freebsd8.3")
    ("--sitearchdir"  "/usr/local/lib/gauche-0.9/site/amd64-portbld-freebsd8.3")
    ("--pkgarchdir"   "${libdir}/gauche-0.9/site/amd64-portbld-freebsd8.3")
    ("--mandir"       "/usr/local/man")
    ("--infodir"      "/usr/local/info")
    ("--arch"         "amd64-portbld-freebsd8.3")

    ("--incdirs"      "/usr/local/lib/gauche-0.9/0.9.3.3/include")
    ("--archdirs"      "/usr/local/lib/gauche-0.9/0.9.3.3/amd64-portbld-freebsd8.3")
    ("--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")
    )))

