;; 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 (replace-install-dir (cadr p)))]
        [else (error "unknown configuration parameter name" param)]))

(define (replace-install-dir str)
  (let1 ss (string-split str #\@)
    (if (length<=? ss 1)
      str
      (if-let1 d ((with-module gauche.internal %gauche-runtime-directory))
        (string-join ss d)
        (error "Couldn't obtain installation directory.")))))

(define *configurations*
  (quote
   (("-V"  "0.9.14")
    ("-I"  "-I/usr/lib/gauche-0.98/0.9.14/include")
    ("-L"  "-L/usr/lib/gauche-0.98/0.9.14/aarch64-unknown-linux-gnu ")
    ("--ac"  "/usr/share/gauche-0.98/0.9.14/")
    ("-l"  "-lgauche-0.98 -lcrypt -lrt -lm  -lpthread")
    ("--cc"  "gcc")
    ("--reconfigure"  "./configure  '--prefix=/usr' '--with-slib=/usr/share/slib' '--with-tls' 'CFLAGS=-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -ffat-lto-objects -w' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' 'CPPFLAGS='")

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

    ("--incdirs"      "/usr/lib/gauche-0.98/0.9.14/include:/usr/lib/gauche-0.98/site/include")
    ("--archdirs"      "/usr/lib/gauche-0.98/0.9.14/aarch64-unknown-linux-gnu:/usr/lib/gauche-0.98/site/aarch64-unknown-linux-gnu")
    ("--local-incdir"  "")
    ("--local-libdir"  "")

    ("--default-cflags"  "-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -ffat-lto-objects -w -Wall -Wextra -Wno-unused-label")

    ("--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.98.so")
    ("--static-libs"     "-lgauche-static-0.98   -lgdbm -lgdbm -lgdbm_compat -lgdbm -lgdbm_compat -lz    -lcrypt -lrt -lm  -lpthread")
    )))

