+DOCUMENTATION=yes
+AC_ARG_ENABLE(documentation,
+ [ --enable-documentation build Documentation. Default: on],
+ [DOCUMENTATION=$enableval])
+AC_SUBST(DOCUMENTATION)
+
+gui_b=no
+AC_ARG_ENABLE(gui,
+ [ --enable-gui compile with experimental GNOME output. Default: off],
+ [gui_b=$enableval])
+
+std_string=yes
+AC_ARG_ENABLE(std-string,
+ [ --enable-std-string compile with std::string. Default: on],
+ [std_string=$enableval])
+if test "$std_string" = "yes"; then
+ # Store in config.make rather than in config.hh and have every
+ # source file depend on that.
+ DEFINES="$DEFINES -DSTD_STRING=1"
+fi
+
+std_vector=no
+AC_ARG_ENABLE(std-string,
+ [ --enable-std-vector compile with experimental std::vector. Default: off],
+ [std_vector=$enableval])
+if test "$std_vector" = "yes"; then
+ # Store in config.make rather than in config.hh and have every
+ # source file depend on that.
+ DEFINES="$DEFINES -DSTD_VECTOR=1"
+fi
+
+NCSB_DIR=unknown
+AC_ARG_WITH(ncsb-dir,
+[ --with-ncsb-dir=DIR location of Century Schoolbook fonts
+ Default: detect with locate(1)],
+ [NCSB_DIR=$withval])
+
+
+reloc_b=no
+AC_ARG_ENABLE(relocation,
+ [ --enable-relocation compile with dynamic relocation. Default: off],
+ [reloc_b=$enableval])
+
+FRAMEWORKDIR=".."
+AC_ARG_WITH(framework-dir,
+ [ --with-framework-dir=DIR
+ relative location of framework],[
+ if test "$withval" = "yes" -o "$withval" = "no"; then
+ AC_MSG_WARN(Usage: --with-framework-dir=../lib/FRAMEWORK/DIR)
+ else
+ FRAMEWORKDIR="${withval}"
+ LDFLAGS="$LDFLAGS -Wl,--rpath,'\$\${ORIGIN}/$FRAMEWORKDIR/lib'"
+ fi
+ ])
+AC_DEFINE_UNQUOTED(FRAMEWORKDIR, ["${FRAMEWORKDIR}"])
+
+LINK_GXX_STATICALLY=no
+AC_ARG_ENABLE(static-gxx,
+ [ --enable-static-gxx link libstdc++.a statically. Default: off],
+ [LINK_GXX_STATICALLY=$enableval])
+AC_SUBST(LINK_GXX_STATICALLY)
+