⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 db.* (pronounced dee-be star) is an advanced, high performance, small footprint embedded database fo
💻 IN
字号:
#                                               -*- Autoconf -*-# Process this file with autoconf to produce a configure script.AC_PREREQ(2.57)AC_INIT(db.star, 2.1, support@ittia.com)AC_CONFIG_AUX_DIR([config])AC_CANONICAL_SYSTEMAM_INIT_AUTOMAKE([foreign])AM_MAINTAINER_MODEAC_CONFIG_SRCDIR([include/db.star.h])AM_CONFIG_HEADER([include/psp_config.h])dnl AC_ARG_PROGRAM# Checks for programs.AC_PROG_CCAC_PROG_LN_SAM_PROG_LIBTOOLAC_PROG_GCC_TRADITIONALAM_PROG_LEXAC_PROG_YACCAC_SUBST(LIBTOOL_DEPS)AC_ARG_ENABLE(debug,    AS_HELP_STRING([--enable-debug], [turn on debugging]),    [case ${enableval} in        yes) debug=true;;        no) debug=false;;        *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug);;     esac],     [debug=false])AM_CONDITIONAL(DEBUG, test x$debug = xtrue)AC_ARG_ENABLE(threads,    AS_HELP_STRING([--disable-threads], [turn off thread support]),    [case ${enableval} in        yes) thread=true;;        no) thread=false;;        *) AC_MSG_ERROR(bad value ${enableval} for --enable-thread);;     esac],     [thread=true])AM_CONDITIONAL(THREAD, test x$thread = xtrue)# Checks for libraries.if test x$thread = xtrue; then    AC_CHECK_LIB([pthread], [pthread_create], [], [thread=false])fiAC_ARG_ENABLE(console,    AS_HELP_STRING([--disable-console], [turn off console utilities support]),    [case ${enableval} in        yes) console=true;;        no) console=false;;        *) AC_MSG_ERROR(bad value ${enableval} for --enable-console);;     esac],     [console=true])# Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS([fcntl.h limits.h mntent.h stddef.h stdlib.h])AC_CHECK_HEADERS([string.h sys/file.h sys/time.h termio.h unistd.h])AC_CHECK_HEADERS([values.h wchar.h wctype.h])# Check for terminal io librarydnl TODO: build console tools only if terminal library is foundif test x$console = xtrue; thentermlibs=AC_CHECK_HEADERS([termcap.h],[termlibs="$termlibs termcap"])AC_CHECK_HEADERS([ncurses.h],[termlibs="$termlibs ncurses"])console=falsefor lib in $termlibs; do    AC_CHECK_LIB([$lib],[tgoto],[AC_SUBST(TERMLIB,[-l$lib]) console=true; break])donefi# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_OFF_TAC_TYPE_SIZE_TAC_HEADER_TIMEAC_STRUCT_TM# Checks for library functions.AC_FUNC_CLOSEDIR_VOIDAC_FUNC_FORKAC_FUNC_GETMNTENTdnl AC_FUNC_MALLOC/AC_FUNC_REALLOC causes to redefined malloc asdnl rpl_malloc/rpl_realloc on uCLibcdnl AC_FUNC_MALLOCdnl AC_FUNC_REALLOCAC_FUNC_MEMCMPAC_FUNC_SELECT_ARGTYPESAC_FUNC_SETVBUF_REVERSEDAC_TYPE_SIGNALAC_FUNC_STATAC_FUNC_VPRINTFAC_CHECK_FUNCS([alarm clock_gettime getcwd getmntent gettimeofday])AC_CHECK_FUNCS([memmove memset strchr strerror strrchr])AC_CONFIG_FILES([Makefile                 psp/Makefile                 runtime/Makefile                 include/Makefile                 dbedit/Makefile                 dal/Makefile                 dbimp/Makefile                 ida/Makefile                 lm/Makefile                 utility/Makefile                 docs/Makefile                 db.ecos/Makefile                 test/Makefile                 examples/Makefile                 examples/bom/Makefile                 examples/sales/Makefile                 examples/tims/Makefile                 db.star.spec])AC_CONFIG_FILES([db.ecos/make-package.sh],[chmod +x db.ecos/make-package.sh])AC_ARG_ENABLE(net,    AS_HELP_STRING([--disable-net], [turn off network support for lock manager]),    [case ${enableval} in        yes) net=true;;        no) net=false;;        *) AC_MSG_ERROR(bad value ${enableval} for --enable-net);;     esac],     [net=true])if test x$net = xtrue; then    AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h sys/socket.h],        [],        [net=false; break])fiif test x$net = xtrue; then    AC_CHECK_FUNCS([gethostbyname gethostname inet_ntoa select socket],        [],        [net=false; break])fiif test x$net = xtrue; then    AC_DEFINE(PSP_NET_SUPPORT,[],[Enables network protocol support])    psp_objects="$psp_objects psptcpux.lo"fiAC_ARG_ENABLE(stdio,    AS_HELP_STRING([--disable-stdio], [turn off FILE support in psp]),    [case ${enableval} in        yes) stdio=true;;        no) stdio=false;;        *) AC_MSG_ERROR(bad value ${enableval} for --enable-stdio);;     esac],     [stdio=true])if test x$stdio = xtrue; then    AC_DEFINE(PSP_STDIO_SUPPORT,[],[define to enable PSP stdio support])ficase "$host" in    *ecos*) psp_objects="$psp_objects pspecos.lo" ;;    *) psp_objects="$psp_objects psplinux.lo" ;;esacif test x$thread = xtrue ; then    psp_objects="$psp_objects pspposix.lo"    AC_DEFINE(PSP_THREAD_SUPPORT,[],[Enables thread and mutex support in PSP])else    psp_objects="$psp_objects pspnosync.lo"fiAC_SUBST([psp_objects])if test x$console = xtrue; thenconsole_tools="console ida"elseconsole_tools=""fidnl Create tools subsetAC_ARG_ENABLE(tools,    AS_HELP_STRING([--enable-tools=LIST], [list of utility programs to build]),    [tools=${enableval}],    [tools="dbedit lm dal dbimp $console_tools datdump \dbcheck dbclrlb dbexp dchain ddlp initdb keybuild \keydump keypack lmclear lmping prdbd"])DBEDIT=LM=DDLP_TOOL=DAL=DBIMP=IDA=CONSOLE=DATDUMP=DBCHECK=DBCLRLB=DBEXP=DCHAIN=INITDB=KEYBUILD=KEYDUMP=KEYPACK=LMCLEAR=LMPING=PRDBD=for i in $tools; do    case $i in    dbedit) DBEDIT=dbedit;;    lm) LM=lm;;    ddlp) DDLP_TOOL=ddlp;;    dal) DAL=dal;;    dbimp) DBIMP=dbimp;;    ida) IDA=ida;;    console) CONSOLE=console;;    datdump) DATDUMP=datdump;;    dbcheck) DBCHECK=dbcheck;;    dbclrlb) DBCLRLB=dbclrlb;;    dbexp) DBEXP=dbexp;;    dchain) DCHAIN=dchain;;    initdb) INITDB=initdb;;    keybuild) KEYBUILD=keybuild;;    keydump) KEYDUMP=keydump;;    keypack) KEYPACK=keypack;;    lmclear) LMCLEAR=lmclear;;    lmping) LMPING=lmping;;    prdbd) PRDBD=prdbd;;    esacdoneAC_SUBST(DBEDIT)AC_SUBST(LM)AC_SUBST(DDLP_TOOL)AC_SUBST(DAL)AC_SUBST(DBIMP)AC_SUBST(IDA)AC_SUBST(CONSOLE)AC_SUBST(DATDUMP)AC_SUBST(DBCHECK)AC_SUBST(DBCLRLB)AC_SUBST(DBEXP)AC_SUBST(DCHAIN)AC_SUBST(INITDB)AC_SUBST(KEYBUILD)AC_SUBST(KEYDUMP)AC_SUBST(KEYPACK)AC_SUBST(LMCLEAR)AC_SUBST(LMPING)AC_SUBST(PRDBD)dnl Option to build example programsAC_ARG_ENABLE(examples,    AS_HELP_STRING([--enable-examples=LIST], [list of examples to build]),    [examples=${enableval}],    [examples="bom sales tims"])BOM=SALES=TIMS=for i in $examples; do    case $i in    bom) BOM=bom;;    sales) SALES=sales;;    tims) TIMS=tims;;    esacdoneAC_SUBST(BOM)AC_SUBST(SALES)AC_SUBST(TIMS)#AC_ARG_VAR(DDLP, [Location of native ddlp utility (use when cross-compiling)])dnl propogate package versionfunction subst_version(){    LIB_VERSION=$1    LIB_REVISION=$2        AC_SUBST(LIB_VERSION)    AC_SUBST(LIB_REVISION)}subst_version ${PACKAGE_VERSION//./ }AC_OUTPUTecho ""echo "db.* build configuration"echo ""echo "    target: $target"echo "    host: $host"echo "    build: $build"echo "    package version: $PACKAGE_VERSION"echo "    lib version: $LIB_VERSION"echo "    lib revision: $LIB_REVISION"echo "    build tools: $tools"echo "    build examples: $examples"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -