mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk
This commit is contained in:
commit
e4fb8b184b
|
@ -4,7 +4,13 @@
|
|||
*.8
|
||||
*.pc
|
||||
|
||||
libev/BUILD
|
||||
libev/.libs/
|
||||
libev/config.h
|
||||
libev/ev.lo
|
||||
libev/event.lo
|
||||
libev/libev.la
|
||||
libev/libtool
|
||||
libev/stamp-h1
|
||||
|
||||
icu/BUILD
|
||||
icu/source/bin/
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# ------------------------------------------------------------------------------
|
||||
# External Projects used by ArangoDB
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
include(ExternalProject)
|
||||
|
||||
macro(import_target tname tdep tinclude tpath)
|
||||
|
|
|
@ -324,6 +324,7 @@
|
|||
],
|
||||
},
|
||||
}],
|
||||
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH']}],
|
||||
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
||||
or OS=="netbsd" or OS=="aix"', {
|
||||
'target_defaults': {
|
||||
|
@ -335,11 +336,12 @@
|
|||
'-pthread',
|
||||
'-fno-exceptions',
|
||||
'-pedantic',
|
||||
'-m64',
|
||||
# Don't warn about the "struct foo f = {0};" initialization pattern.
|
||||
'-Wno-missing-field-initializers',
|
||||
],
|
||||
'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++11' ],
|
||||
'ldflags': [ '-pthread', ],
|
||||
'ldflags': [ '-pthread', '-march=x86-64', '-m64'],
|
||||
'conditions': [
|
||||
[ 'host_arch=="ppc64" and OS!="aix"', {
|
||||
'cflags': [ '-mminimal-toc' ],
|
||||
|
|
|
@ -897,6 +897,7 @@
|
|||
},
|
||||
},
|
||||
}],
|
||||
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH'], 'ldflags': ['-march=x86-64', '-m64']}],
|
||||
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
||||
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
|
||||
v8_target_arch=="ia32"', {
|
||||
|
@ -974,7 +975,7 @@
|
|||
or OS=="netbsd" or OS=="qnx" or OS=="aix"', {
|
||||
'conditions': [
|
||||
[ 'v8_no_strict_aliasing==1', {
|
||||
'cflags': [ '-fno-strict-aliasing' ],
|
||||
'cflags': [ '-fno-strict-aliasing -m64' ],
|
||||
}],
|
||||
], # conditions
|
||||
}],
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
'libraries': [ '-lreadline', ],
|
||||
'sources': [ 'd8-readline.cc' ],
|
||||
}],
|
||||
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH'], 'ldflags': ['-march=x86-64', '-m64']}],
|
||||
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \
|
||||
or OS=="openbsd" or OS=="solaris" or OS=="android" \
|
||||
or OS=="qnx" or OS=="aix")', {
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
'U_STATIC_IMPLEMENTATION',
|
||||
],
|
||||
}],
|
||||
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
|
||||
['OS=="solaris"', {'defines': ['_GLIBCXX_USE_C99_MATH'], 'cflags': ['-m64']}],
|
||||
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS!="solaris" \
|
||||
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
|
||||
(target_arch=="arm" or target_arch=="ia32" or \
|
||||
target_arch=="mipsel")', {
|
||||
|
|
|
@ -1518,7 +1518,8 @@
|
|||
]},
|
||||
],
|
||||
['OS=="solaris"', {
|
||||
'link_settings': {
|
||||
'defines': ['_GLIBCXX_USE_C99_MATH'],
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'-lnsl -lrt',
|
||||
]},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Makefile.in generated by automake 1.14.1 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.15 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1994-2014 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -16,7 +16,17 @@
|
|||
|
||||
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
|
@ -79,17 +89,15 @@ PRE_UNINSTALL = :
|
|||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
subdir = .
|
||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
||||
$(top_srcdir)/configure $(am__configure_deps) \
|
||||
$(srcdir)/config.h.in mkinstalldirs depcomp $(include_HEADERS) \
|
||||
README compile config.guess config.sub install-sh missing \
|
||||
ltmain.sh
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/libev.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
|
||||
$(am__configure_deps) $(include_HEADERS) $(am__DIST_COMMON)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
|
@ -203,6 +211,9 @@ ETAGS = etags
|
|||
CTAGS = ctags
|
||||
CSCOPE = cscope
|
||||
AM_RECURSIVE_TARGETS = cscope
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in README \
|
||||
compile config.guess config.sub depcomp install-sh ltmain.sh \
|
||||
missing mkinstalldirs
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
|
@ -233,6 +244,10 @@ CCDEPMODE = @CCDEPMODE@
|
|||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
|
@ -289,6 +304,7 @@ abs_top_builddir = @abs_top_builddir@
|
|||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
|
@ -331,7 +347,11 @@ sbindir = @sbindir@
|
|||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
@ -367,7 +387,6 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
|
|||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
|
@ -658,15 +677,15 @@ dist-xz: distdir
|
|||
$(am__post_remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
@echo WARNING: "Support for shar distribution archives is" \
|
||||
"deprecated." >&2
|
||||
@echo WARNING: "Support for distribution archives compressed with" \
|
||||
"legacy program 'compress' is deprecated." >&2
|
||||
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__post_remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
@echo WARNING: "Support for distribution archives compressed with" \
|
||||
"legacy program 'compress' is deprecated." >&2
|
||||
@echo WARNING: "Support for shar distribution archives is" \
|
||||
"deprecated." >&2
|
||||
@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__post_remove_distdir)
|
||||
|
@ -702,17 +721,17 @@ distcheck: dist
|
|||
esac
|
||||
chmod -R a-w $(distdir)
|
||||
chmod u+w $(distdir)
|
||||
mkdir $(distdir)/_build $(distdir)/_inst
|
||||
mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build \
|
||||
&& ../configure \
|
||||
&& $(am__cd) $(distdir)/_build/sub \
|
||||
&& ../../configure \
|
||||
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
--srcdir=.. --prefix="$$dc_install_base" \
|
||||
--srcdir=../.. --prefix="$$dc_install_base" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
|
@ -900,6 +919,8 @@ uninstall-man: uninstall-man3
|
|||
uninstall-am uninstall-includeHEADERS uninstall-libLTLIBRARIES \
|
||||
uninstall-man uninstall-man3
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
ev.3: ev.pod
|
||||
pod2man -n LIBEV -r "libev-$(VERSION)" -c "libev - high performance full featured event loop" -s3 <$< >$@
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
|
||||
# generated automatically by aclocal 1.15 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -8622,7 +8622,7 @@ m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
|||
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
||||
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
||||
|
||||
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -8634,10 +8634,10 @@ m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
|||
# generated from the m4 files accompanying Automake X.Y.
|
||||
# (This private macro should not be called outside this file.)
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
||||
[am__api_version='1.14'
|
||||
[am__api_version='1.15'
|
||||
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
||||
dnl require some minimum version. Point them to the right macro.
|
||||
m4_if([$1], [1.14.1], [],
|
||||
m4_if([$1], [1.15], [],
|
||||
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
||||
])
|
||||
|
||||
|
@ -8653,14 +8653,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|||
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
||||
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.14.1])dnl
|
||||
[AM_AUTOMAKE_VERSION([1.15])dnl
|
||||
m4_ifndef([AC_AUTOCONF_VERSION],
|
||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
||||
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
||||
|
||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -8712,7 +8712,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -8743,7 +8743,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -8934,7 +8934,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
|
|||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9010,7 +9010,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|||
|
||||
# Do all the work for Automake. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9100,8 +9100,8 @@ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|||
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
||||
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
||||
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
||||
# We need awk for the "check" target. The system "awk" is bad on
|
||||
# some platforms.
|
||||
# We need awk for the "check" target (and possibly the TAP driver). The
|
||||
# system "awk" is bad on some platforms.
|
||||
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
|
@ -9175,6 +9175,9 @@ END
|
|||
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
||||
fi
|
||||
fi
|
||||
dnl The trailing newline in this macro's definition is deliberate, for
|
||||
dnl backward compatibility and to allow trailing 'dnl'-style comments
|
||||
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
||||
])
|
||||
|
||||
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
||||
|
@ -9204,7 +9207,7 @@ for _am_header in $config_headers :; do
|
|||
done
|
||||
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
||||
|
||||
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9215,7 +9218,7 @@ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co
|
|||
# Define $install_sh.
|
||||
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
if test x"${install_sh}" != xset; then
|
||||
if test x"${install_sh+set}" != xset; then
|
||||
case $am_aux_dir in
|
||||
*\ * | *\ *)
|
||||
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
||||
|
@ -9225,7 +9228,7 @@ if test x"${install_sh}" != xset; then
|
|||
fi
|
||||
AC_SUBST([install_sh])])
|
||||
|
||||
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9247,7 +9250,7 @@ AC_SUBST([am__leading_dot])])
|
|||
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
||||
# From Jim Meyering
|
||||
|
||||
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9282,7 +9285,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9332,7 +9335,7 @@ rm -f confinc confmf
|
|||
|
||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9371,7 +9374,7 @@ fi
|
|||
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9400,7 +9403,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
|
|||
AC_DEFUN([_AM_IF_OPTION],
|
||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9447,7 +9450,7 @@ AC_LANG_POP([C])])
|
|||
# For backward compatibility.
|
||||
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
||||
|
||||
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9466,7 +9469,7 @@ AC_DEFUN([AM_RUN_LOG],
|
|||
|
||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9547,7 +9550,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|||
rm -f conftest.file
|
||||
])
|
||||
|
||||
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9607,7 +9610,7 @@ AC_SUBST([AM_BACKSLASH])dnl
|
|||
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
||||
])
|
||||
|
||||
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9635,7 +9638,7 @@ fi
|
|||
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||
|
||||
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
@ -9654,7 +9657,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|||
|
||||
# Check how to create a tarball. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
|
||||
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,18 +3,29 @@ AC_INIT
|
|||
orig_CFLAGS="$CFLAGS"
|
||||
|
||||
AC_CONFIG_SRCDIR([ev_epoll.c])
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
AC_CANONICAL_TARGET
|
||||
|
||||
dnl also update ev.h!
|
||||
AM_INIT_AUTOMAKE(libev,4.22)
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXXCPP
|
||||
AC_PROG_CC($list_cc)
|
||||
AC_PROG_CXX($list_cxx)
|
||||
AC_PROG_CPP
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_RANLIB
|
||||
|
||||
dnl Supply default CFLAGS, if not specified
|
||||
if test -z "$orig_CFLAGS"; then
|
||||
if test x$GCC = xyes; then
|
||||
CFLAGS="-g -O3"
|
||||
CFLAGS="-g -O3 "
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,17 +1,30 @@
|
|||
# General -----------------------------------------------------------------------
|
||||
# ------------------------------------------------------------------------------
|
||||
# General
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
if (APPLE)
|
||||
if (NOT DEFINED CMAKE_C_COMPILER)
|
||||
set(CMAKE_C_COMPILER /usr/bin/clang)
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED CMAKE_CXX_COMPILER)
|
||||
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
project(ArangoDB CXX C ASM)
|
||||
set (ArangoDB_VERSION_MAJOR 3)
|
||||
set (ArangoDB_VERSION_MINOR 0)
|
||||
|
||||
if (POLICY CMP0037)
|
||||
cmake_policy(SET CMP0037 NEW)
|
||||
endif ()
|
||||
|
||||
|
||||
set(ARANGODB_DISPLAY_NAME "ArangoDB")
|
||||
set(ARANGODB_URL_INFO_ABOUT "http://www.arangodb.org")
|
||||
set(ARANGODB_CONTACT "hackers@arangodb.org")
|
||||
|
||||
set(ARANGODB_VERSION_MAJOR "3")
|
||||
set(ARANGODB_VERSION_MINOR "0")
|
||||
set(ARANGODB_VERSION_REVISION "0-devel")
|
||||
|
@ -20,11 +33,11 @@ set(ARANGODB_VERSION
|
|||
"${ARANGODB_VERSION_MAJOR}.${ARANGODB_VERSION_MINOR}.${ARANGODB_VERSION_REVISION}")
|
||||
|
||||
configure_file (
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/build.h.in"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/build.h")
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/lib/Basics/build.h.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/lib/Basics/build.h")
|
||||
|
||||
configure_file (
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/VERSION.in"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/lib/Basics/VERSION.in"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/VERSION")
|
||||
|
||||
set(ARANGODB_FRIENDLY_STRING "ArangoDB - the multi-model database")
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "usage $0 outfile"
|
||||
exit 1
|
||||
fi
|
||||
out="$1"
|
||||
|
||||
rm -f completions-template
|
||||
|
||||
cat << 'EOF' > completions-template
|
||||
_PROGNAME()
|
||||
{
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
opts="PROGOPTS"
|
||||
|
||||
if [[ ${cur} == -* ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
complete -o default -F _PROGNAME PROGNAME
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
echo "" > $out
|
||||
|
||||
for progname in arangob arangosh arangoimp arangodump arangorestore arangod
|
||||
do
|
||||
# find the executable
|
||||
# check if the executable exists
|
||||
if [[ -f "bin/$progname" ]]; then
|
||||
executable="bin/$progname"
|
||||
|
||||
# setup the help command string
|
||||
command="--help"
|
||||
if [ "x$progname" == "xarangod" ]; then
|
||||
command="--help-all"
|
||||
fi
|
||||
|
||||
# set up the list of completions for the executable
|
||||
completions="`\"$executable\" $command | grep -o \"^\\ \\+--[a-z-]\\+\\(\\.[a-z0-9-]\\+\\)\\?\" | xargs`"
|
||||
|
||||
sed -e "s/PROGNAME/$progname/g" -e "s/PROGOPTS/$completions/g" completions-template >> $out
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f completions-template
|
||||
|
||||
echo "completions stored in file $out"
|
||||
echo "now copy this file to /etc/bash_completion.d/arangodb"
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "usage $0 outfile"
|
||||
exit 1
|
||||
fi
|
||||
out="$1"
|
||||
|
||||
echo "" > $out
|
||||
|
||||
for progname in arangob arangosh arangoimp arangodump arangorestore arangod
|
||||
do
|
||||
# find the executable
|
||||
# check if the executable exists
|
||||
if [[ -f "bin/$progname" ]]; then
|
||||
executable="bin/$progname"
|
||||
|
||||
# setup the help command string
|
||||
command="--help"
|
||||
if [ "x$progname" == "xarangod" ]; then
|
||||
command="--help-all"
|
||||
fi
|
||||
|
||||
# set up the list of completions for the executable
|
||||
# completions="`\"$executable\" $command | grep -o \"^\\ \\+--[a-z-]\\+\\(\\.[a-z0-9-]\\+\\)\\?\" | sed -e \"s/^/complete --command $progname -a /g\"`"
|
||||
echo "# completions for $progname" >> "$out"
|
||||
|
||||
completions="`\"$executable\" $command`"
|
||||
(echo "$completions" | grep "^ " | awk '/^ --/{if (x)print x;x="";}{x=(!x)?$0:x" "$0;}END{print x;}' | sed -e "s/ \+/ /g" | sed -e "s/(default:.*)//g" | sed -e "s/(current:.*)//g" | sed -e "s/<[a-zA-Z0-9]\+>//g" | tr -d "'" | sed -e "s/^ \+--\([a-zA-Z0-9.\-]\+\) \+\(.\+\)$/complete --command $progname -l '\\1' -d '\\2'/g" | sed -e "s/ \+'$/'/g") >> "$out"
|
||||
|
||||
echo "" >> "$out"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "completions stored in file $out"
|
||||
echo "now copy this file to /etc/bash_completion.d/arangodb"
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
SCRIPT="$1"
|
||||
SOURCE="$2"
|
||||
DEST="$3"
|
||||
|
||||
python "$SCRIPT" "$SOURCE" "$DEST.tmp"
|
||||
if cmp -s $DEST ${DEST}.tmp; then
|
||||
rm ${DEST}.tmp
|
||||
else
|
||||
mv ${DEST}.tmp $DEST
|
||||
fi
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/bash
|
||||
INFO="$1"
|
||||
FILE="$2"
|
||||
|
||||
if test ! -f "$FILE"; then
|
||||
version=`fgrep PACKAGE_VERSION Makefile | awk '{print $3}'`
|
||||
echo "#define TRIAGENS_VERSION \"$version\"" > ${FILE}
|
||||
fi
|
||||
|
||||
DIR=`dirname $INFO`
|
||||
|
||||
if test -d ${DIR}/.svn; then
|
||||
revision=`(cd $DIR && svnversion)`
|
||||
else
|
||||
if test ! -f "$INFO"; then
|
||||
revision="exported"
|
||||
else
|
||||
revision=`grep 'Revision:' $INFO | awk '{print $2}'`
|
||||
fi
|
||||
fi
|
||||
|
||||
if test -z "$revision"; then
|
||||
echo "$0: cannot read revision from file $INFO"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
version=`sed -e 's:.*"\([^[]*[^ []\).*":\1:' $FILE`
|
||||
|
||||
if test -z "$version"; then
|
||||
echo "$0: cannot read revision from file $FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "#define TRIAGENS_VERSION \"$version [$revision]\"" > ${FILE}.tmp
|
||||
|
||||
if cmp -s $FILE ${FILE}.tmp; then
|
||||
rm ${FILE}.tmp
|
||||
else
|
||||
mv ${FILE}.tmp $FILE
|
||||
fi
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/bash
|
||||
INFO="$1"
|
||||
|
||||
echo "volatile char * BUILD_INFO ="
|
||||
|
||||
if test -f "$INFO"; then
|
||||
grep 'Revision:' $INFO | awk '{print " \"$Revision: " $2 " $\""}'
|
||||
grep 'Repository UUID:' $INFO | awk '{print " \"$Source: " $3 " $\""}'
|
||||
grep 'Last Changed Date:' $INFO | awk '{print " \"$Date: " $4 " " $5 " " $6 " $\""}'
|
||||
else
|
||||
echo ' "$Revision$"'
|
||||
echo ' "$Source$"'
|
||||
echo ' "$Date$"'
|
||||
fi
|
||||
|
||||
echo ";"
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
SCRIPT="$1"
|
||||
SOURCE="$2"
|
||||
DEST="$3"
|
||||
|
||||
python "$SCRIPT" "$SOURCE" "$DEST.tmp"
|
||||
if cmp -s $DEST ${DEST}.tmp; then
|
||||
rm ${DEST}.tmp
|
||||
else
|
||||
mv ${DEST}.tmp $DEST
|
||||
fi
|
|
@ -1,125 +0,0 @@
|
|||
/* config/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* static programs have broken cxa_guard */
|
||||
#undef BROKEN_CXA_GUARD
|
||||
|
||||
/* Define to 1 if you have the `backtrace' function. */
|
||||
#undef HAVE_BACKTRACE
|
||||
|
||||
/* do we have clock_gettime? */
|
||||
#undef HAVE_CLOCK_GETTIME
|
||||
|
||||
/* do we have clock_get_time? */
|
||||
#undef HAVE_CLOCK_GET_TIME
|
||||
|
||||
/* define if the compiler supports basic C++11 syntax */
|
||||
#undef HAVE_CXX11
|
||||
|
||||
/* Define to 1 if you have the `futimes' function. */
|
||||
#undef HAVE_FUTIMES
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <openssl/ssl.h> header file. */
|
||||
#undef HAVE_OPENSSL_SSL_H
|
||||
|
||||
/* Define if you have POSIX threads libraries and header files. */
|
||||
#undef HAVE_PTHREAD
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* true if SSLv23_method return SSL_METHOD const* */
|
||||
#undef OPENSSL_NEEDS_CONST
|
||||
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to necessary symbol if this constant uses a non-standard name on
|
||||
your system. */
|
||||
#undef PTHREAD_CREATE_JOINABLE
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* "" */
|
||||
#undef TRI_CONFIGURE_COMMAND
|
||||
|
||||
/* "" */
|
||||
#undef TRI_CONFIGURE_FLAGS
|
||||
|
||||
/* "" */
|
||||
#undef TRI_CONFIGURE_OPTIONS
|
||||
|
||||
/* true if failure testing ins enabled */
|
||||
#undef TRI_ENABLE_FAILURE_TESTS
|
||||
|
||||
/* true if maintainer mode is enabled */
|
||||
#undef TRI_ENABLE_MAINTAINER_MODE
|
||||
|
||||
/* true if tcmalloc is used */
|
||||
#undef TRI_HAVE_TCMALLOC
|
||||
|
||||
/* true if we have the linux splice api */
|
||||
#undef TRI_LINUX_SPLICE
|
||||
|
||||
/* "" */
|
||||
#undef TRI_REPOSITORY_VERSION
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
||||
`char[]'. */
|
||||
#undef YYTEXT_POINTER
|
||||
|
||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
# define _DARWIN_USE_64_BIT_INODE 1
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#undef _FILE_OFFSET_BITS
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
#undef _LARGE_FILES
|
|
@ -1,92 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Detects which OS and if it is Linux then it will detect which Linux Distribution.
|
||||
|
||||
echo "........................................................"
|
||||
echo ". Detect OS and Distribution ."
|
||||
echo "........................................................"
|
||||
echo
|
||||
|
||||
OS=`uname -s`
|
||||
REV=`uname -r`
|
||||
MACH=`uname -m`
|
||||
|
||||
if [ "${OS}" = "Darwin" ] ; then
|
||||
DIST="MacOSX"
|
||||
RELEASE=$(sw_vers | grep "ProductVersion" | awk '{ print $2}' )
|
||||
KERNEL=$(uname -v | awk '{ print $11}')
|
||||
CODENAME="Darwin"
|
||||
|
||||
elif [ "${OS}" = "Linux" ] ; then
|
||||
KERNEL=`uname -r`
|
||||
|
||||
# use "lsb_release"
|
||||
DIST=$(lsb_release -d 2>/dev/null| awk '{ print $2 }')
|
||||
DIST2=$(lsb_release -d 2>/dev/null| awk '{ print $3 }')
|
||||
if [ "x${DIST2}" = "xMint" ] ; then
|
||||
DIST="LinuxMint"
|
||||
fi
|
||||
|
||||
RELEASE=$(lsb_release -r 2>/dev/null | awk '{ print $2 }')
|
||||
CODENAME=$(lsb_release -c 2>/dev/null | awk '{ print $2 }')
|
||||
|
||||
if [ "x${DIST}" = "x" ] ; then
|
||||
# use special files:
|
||||
|
||||
if [ -f /etc/redhat-release ] ; then
|
||||
DIST=$( cat /etc/redhat-release | awk '{ print $1}' )
|
||||
RELEASE=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//`
|
||||
CODENAME=`cat /etc/redhat-release | sed s/.*\(// | sed s/\)//`
|
||||
|
||||
elif [ -f /etc/SuSE-release ] ; then
|
||||
DIST=$(cat /etc/SuSE-release | tr "\n" ' '| awk '{ print $1}')
|
||||
RELEASE=$(cat /etc/SuSE-release | tr "\n" ' ' | sed s/.*VERSION\ =\ // | awk '{ print $1}')
|
||||
CODENAME=$(cat /etc/SuSE-release | tr "\n" ' ' | sed s/.*CODENAME\ =\ // | awk '{ print $1}')
|
||||
|
||||
elif [ -f /etc/mandrake-release ] ; then
|
||||
DIST='Mandrake'
|
||||
RELEASE=`cat /etc/mandrake-release | sed s/.*release\ // | sed s/\ .*//`
|
||||
CODENAME=`cat /etc/mandrake-release | sed s/.*\(// | sed s/\)//`
|
||||
|
||||
elif [ -f /etc/debian_version ] ; then
|
||||
DIST="Debian"
|
||||
RELEASE=`cat /etc/debian_version`
|
||||
|
||||
elif [ -f /etc/os-release ] ; then
|
||||
ID=$(cat /etc/os-release | tr "\n" ' ' | sed s/.*ID=// | awk '{ print $1}')
|
||||
if [ "${ID}" = "arch" ] ; then
|
||||
DIST='ArchLinux'
|
||||
RELEASE="current"
|
||||
CODENAME="arch"
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "x${CODENAME}" = "x" ] ; then
|
||||
CODENAME="unknown"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
OSSTR="${OS} ${DIST} ${RELEASE} ${MACH} (${CODENAME} ${KERNEL})"
|
||||
|
||||
echo ${OSSTR}
|
||||
echo "........................................................"
|
||||
echo "TRI_OS=\"${OS}\""
|
||||
echo "TRI_DIST=\"${DIST}\""
|
||||
echo "TRI_RELEASE=\"${RELEASE}\""
|
||||
echo "TRI_MACH=\"${MACH}\""
|
||||
echo "TRI_CODENAME=\"${CODENAME}\""
|
||||
echo "TRI_KERNEL=\"${KERNEL}\""
|
||||
echo "TRI_OS_LONG=\"${OS}-${DIST}-${RELEASE}-${MACH}\""
|
||||
|
||||
TRI_OS=${OS}
|
||||
TRI_DIST=${DIST}
|
||||
TRI_RELEASE=${RELEASE}
|
||||
TRI_MACH=${MACH}
|
||||
TRI_CODENAME=${CODENAME}
|
||||
TRI_KERNEL=${KERNEL}
|
||||
TRI_OSSTR=${OSSTR}
|
||||
TRI_OS_LONG="${OS}-${DIST}-${RELEASE}-${MACH}"
|
||||
|
||||
echo "........................................................"
|
|
@ -1,188 +0,0 @@
|
|||
import csv, sys, os.path, re
|
||||
|
||||
# wrap text after x characters
|
||||
def wrap(string, width=80, ind1=0, ind2=0, prefix=''):
|
||||
string = prefix + ind1 * " " + string
|
||||
newstring = ""
|
||||
string = string.replace("\n", " ")
|
||||
|
||||
while len(string) > width:
|
||||
marker = width - 1
|
||||
while not string[marker].isspace():
|
||||
marker = marker - 1
|
||||
|
||||
newline = string[0:marker] + "\n"
|
||||
newstring = newstring + newline
|
||||
string = prefix + ind2 * " " + string[marker + 1:]
|
||||
|
||||
return newstring + string
|
||||
|
||||
|
||||
# generate javascript file from errors
|
||||
def genJsFile(errors):
|
||||
jslint = "/*jshint maxlen: 240 */\n/*global require */\n\n"
|
||||
|
||||
out = jslint \
|
||||
+ prologue\
|
||||
+ "(function () {\n"\
|
||||
+ " \"use strict\";\n"\
|
||||
+ " var internal = require(\"internal\");\n"\
|
||||
+ "\n"\
|
||||
+ " internal.errors = {\n"
|
||||
|
||||
# print individual errors
|
||||
i = 0
|
||||
for e in errors:
|
||||
name = "\"" + e[0] + "\""
|
||||
msg = e[2].replace("\n", " ").replace("\\", "").replace("\"", "\\\"")
|
||||
out = out\
|
||||
+ " " + name.ljust(30) + " : { \"code\" : " + e[1] + ", \"message\" : \"" + msg + "\" }"
|
||||
|
||||
i = i + 1
|
||||
|
||||
if i < len(errors):
|
||||
out = out + ",\n"
|
||||
else:
|
||||
out = out + "\n"
|
||||
|
||||
|
||||
out = out\
|
||||
+ " };\n"\
|
||||
+ "}());\n"\
|
||||
+ "\n"
|
||||
|
||||
return out
|
||||
|
||||
|
||||
# generate C implementation file from errors
|
||||
def genCFile(errors, filename):
|
||||
|
||||
headerfile = os.path.splitext(filename)[0] + ".h"
|
||||
|
||||
impl = prologue\
|
||||
+ "#include \"Basics/Common.h\"\n"\
|
||||
+ "#include \"" + headerfile + "\"\n"\
|
||||
+ "\n"\
|
||||
+ "void TRI_InitializeErrorMessages () {\n"
|
||||
|
||||
# print individual errors
|
||||
for e in errors:
|
||||
msg = e[2].replace("\n", " ").replace("\\", "").replace("\"", "\\\"")
|
||||
impl = impl\
|
||||
+ " REG_ERROR(" + e[0] + ", \"" + msg + "\");\n"
|
||||
|
||||
impl = impl\
|
||||
+ "}\n"
|
||||
|
||||
return impl
|
||||
|
||||
|
||||
# generate C header file from errors
|
||||
def genCHeaderFile(errors):
|
||||
wiki = "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// Error codes and meanings\n"\
|
||||
+ "///\n"\
|
||||
+ "/// The following errors might be raised when running ArangoDB:\n"\
|
||||
+ "///\n"
|
||||
|
||||
for e in errors:
|
||||
wiki = wiki\
|
||||
+ "/// - " + e[1] + ": @LIT{" + e[2].replace("%", "\%").replace("<", "\<").replace(">", "\>") + "}\n"\
|
||||
+ wrap(e[3], 80, 0, 0, "/// ") + "\n"
|
||||
|
||||
wiki = wiki\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"
|
||||
|
||||
header = "\n"\
|
||||
+ "#ifndef TRIAGENS_BASICS_VOC_ERRORS_H\n"\
|
||||
+ "#define TRIAGENS_BASICS_VOC_ERRORS_H 1\n"\
|
||||
+ "\n"\
|
||||
+ wiki\
|
||||
+ "\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief helper macro to define an error string\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"\
|
||||
+ "#define REG_ERROR(id, label) TRI_set_errno_string(TRI_ ## id, label);\n"\
|
||||
+ "\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief register all errors for ArangoDB\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"\
|
||||
+ "void TRI_InitializeErrorMessages ();\n"\
|
||||
+ "\n"
|
||||
|
||||
# print individual errors
|
||||
for e in errors:
|
||||
header = header\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief " + e[1] + ": " + e[0] + "\n"\
|
||||
+ "///\n"\
|
||||
+ wrap(e[2], 80, 0, 0, "/// ").replace("<", "\<").replace(">", "\>") + "\n"\
|
||||
+ "///\n"\
|
||||
+ wrap(e[3], 80, 0, 0, "/// ") + "\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"\
|
||||
+ "#define TRI_" + e[0].ljust(61) + " (" + e[1] + ")\n"\
|
||||
+ "\n"
|
||||
|
||||
header = header\
|
||||
+ "#endif\n"\
|
||||
+ "\n"
|
||||
|
||||
return header
|
||||
|
||||
|
||||
# define some globals
|
||||
prologue = "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief auto-generated file generated from errors.dat\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print >> sys.stderr, "usage: %s <sourcefile> <outfile>" % sys.argv[0]
|
||||
sys.exit()
|
||||
|
||||
source = sys.argv[1]
|
||||
|
||||
# read input file
|
||||
errors = csv.reader(open(source, "rb"))
|
||||
errorsList = []
|
||||
|
||||
r1 = re.compile(r'^#.*')
|
||||
|
||||
for e in errors:
|
||||
if len(e) == 0:
|
||||
continue
|
||||
|
||||
if r1.match(e[0]):
|
||||
continue
|
||||
|
||||
if e[0] == "" or e[1] == "" or e[2] == "" or e[3] == "":
|
||||
print >> sys.stderr, "invalid error declaration file: %s" % (source)
|
||||
sys.exit()
|
||||
|
||||
errorsList.append(e)
|
||||
|
||||
outfile = sys.argv[2]
|
||||
extension = os.path.splitext(outfile)[1]
|
||||
filename = outfile
|
||||
|
||||
if extension == ".tmp":
|
||||
filename = os.path.splitext(outfile)[0]
|
||||
extension = os.path.splitext(filename)[1]
|
||||
|
||||
if extension == ".js":
|
||||
out = genJsFile(errorsList)
|
||||
elif extension == ".h":
|
||||
out = genCHeaderFile(errorsList)
|
||||
elif extension == ".cpp":
|
||||
out = genCFile(errorsList, filename)
|
||||
else:
|
||||
print >> sys.stderr, "usage: %s <sourcefile> <outfile>" % sys.argv[0]
|
||||
sys.exit()
|
||||
|
||||
outFile = open(outfile, "wb")
|
||||
outFile.write(out);
|
||||
outFile.close()
|
||||
|
|
@ -1,172 +0,0 @@
|
|||
import csv, sys, os.path, re
|
||||
|
||||
# wrap text after x characters
|
||||
def wrap(string, width=80, ind1=0, ind2=0, prefix=''):
|
||||
string = prefix + ind1 * " " + string
|
||||
newstring = ""
|
||||
string = string.replace("\n", " ")
|
||||
|
||||
while len(string) > width:
|
||||
marker = width - 1
|
||||
while not string[marker].isspace():
|
||||
marker = marker - 1
|
||||
|
||||
newline = string[0:marker] + "\n"
|
||||
newstring = newstring + newline
|
||||
string = prefix + ind2 * " " + string[marker + 1:]
|
||||
|
||||
return newstring + string
|
||||
|
||||
|
||||
# generate javascript file from mimetypes
|
||||
def genJsFile(types):
|
||||
jslint = "/*jslint indent: 2,\n"\
|
||||
" nomen: true,\n"\
|
||||
" maxlen: 100,\n"\
|
||||
" sloppy: true,\n"\
|
||||
" vars: true,\n"\
|
||||
" white: true,\n"\
|
||||
" plusplus: true */\n"\
|
||||
"/*global exports */\n\n"
|
||||
|
||||
out = jslint \
|
||||
+ prologue\
|
||||
+ "exports.mimeTypes = {\n"
|
||||
|
||||
extensions = { }
|
||||
# print individual mimetypes
|
||||
i = 0
|
||||
for t in types:
|
||||
extension = t[0]
|
||||
mimetype = t[1]
|
||||
out = out + " \"" + extension + "\": [ \"" + mimetype + "\", " + t[2] + " ]"
|
||||
|
||||
if not mimetype in extensions:
|
||||
extensions[mimetype] = [ ]
|
||||
|
||||
extensions[mimetype].append(extension)
|
||||
i = i + 1
|
||||
|
||||
if i < len(types):
|
||||
out = out + ", \n"
|
||||
else:
|
||||
out = out + "\n"
|
||||
|
||||
out = out + "};\n\n"
|
||||
|
||||
# print extensions
|
||||
out = out + "exports.extensions = {\n"
|
||||
i = 0
|
||||
for e in extensions:
|
||||
|
||||
out = out + " \"" + e + "\": [ \"" + "\", \"".join(extensions[e]) + "\" ]"
|
||||
i = i + 1
|
||||
|
||||
if i < len(extensions):
|
||||
out = out + ", \n"
|
||||
else:
|
||||
out = out + "\n"
|
||||
|
||||
out = out + "};\n\n"
|
||||
|
||||
return out
|
||||
|
||||
|
||||
# generate C header file from errors
|
||||
def genCHeaderFile(types):
|
||||
header = "\n"\
|
||||
+ "#ifndef TRIAGENS_BASICS_VOC_MIMETYPES_H\n"\
|
||||
+ "#define TRIAGENS_BASICS_VOC_MIMETYPES_H 1\n"\
|
||||
+ "\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief initialize mimetypes\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"\
|
||||
+ "void TRI_InitializeEntriesMimetypes ();\n"\
|
||||
+ "\n"\
|
||||
+ "#endif\n"\
|
||||
+ "\n"
|
||||
|
||||
return header
|
||||
|
||||
|
||||
# generate C implementation file from mimetypes
|
||||
def genCFile(types, filename):
|
||||
|
||||
headerfile = os.path.splitext(filename)[0] + ".h"
|
||||
|
||||
impl = prologue\
|
||||
+ "#include \"Basics/Common.h\"\n"\
|
||||
+ "#include \"Basics/mimetypes.h\"\n"\
|
||||
+ "#include \"" + headerfile + "\"\n"\
|
||||
+ "\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief initialize mimetypes\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"\
|
||||
+ "void TRI_InitializeEntriesMimetypes () {\n"
|
||||
|
||||
# print individual types
|
||||
for t in types:
|
||||
impl = impl + " TRI_RegisterMimetype(\"" + t[0] + "\", \"" + t[1] + "\", " + t[2] + ");\n"
|
||||
|
||||
impl = impl\
|
||||
+ "}\n"
|
||||
|
||||
return impl
|
||||
|
||||
|
||||
# define some globals
|
||||
prologue = "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "/// @brief auto-generated file generated from mimetypes.dat\n"\
|
||||
+ "////////////////////////////////////////////////////////////////////////////////\n"\
|
||||
+ "\n"
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print >> sys.stderr, "usage: %s <sourcefile> <outfile>" % sys.argv[0]
|
||||
sys.exit()
|
||||
|
||||
source = sys.argv[1]
|
||||
|
||||
# read input file
|
||||
mimetypes = csv.reader(open(source, "rb"))
|
||||
types = []
|
||||
|
||||
r1 = re.compile(r'^#.*')
|
||||
|
||||
for t in mimetypes:
|
||||
if len(t) == 0:
|
||||
continue
|
||||
|
||||
if r1.match(t[0]):
|
||||
continue
|
||||
|
||||
t[2] = t[2].strip()
|
||||
if t[0] == "" or t[1] == "" or not (t[2] == "true" or t[2] == "false"):
|
||||
print >> sys.stderr, "invalid mimetypes declaration file: %s" % (source)
|
||||
sys.exit()
|
||||
|
||||
types.append(t)
|
||||
|
||||
outfile = sys.argv[2]
|
||||
extension = os.path.splitext(outfile)[1]
|
||||
filename = outfile
|
||||
|
||||
if extension == ".tmp":
|
||||
filename = os.path.splitext(outfile)[0]
|
||||
extension = os.path.splitext(filename)[1]
|
||||
|
||||
if extension == ".js":
|
||||
out = genJsFile(types)
|
||||
elif extension == ".h":
|
||||
out = genCHeaderFile(types)
|
||||
elif extension == ".cpp":
|
||||
out = genCFile(types, filename)
|
||||
else:
|
||||
print >> sys.stderr, "usage: %s <sourcefile> <outfile>" % sys.argv[0]
|
||||
sys.exit()
|
||||
|
||||
outFile = open(outfile, "wb")
|
||||
outFile.write(out);
|
||||
outFile.close()
|
||||
|
762
configure.ac
762
configure.ac
|
@ -1,762 +0,0 @@
|
|||
dnl ============================================================================
|
||||
dnl ArangoDB (c) ArangoDB GmbH
|
||||
dnl ============================================================================
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- ArangoDB GmbH Build Environment
|
||||
dnl ============================================================================
|
||||
|
||||
AC_INIT([ArangoDB GmbH], [3.0.0-devel], [info@arangodb.com], [arangodb], [https://www.arangodb.com])
|
||||
|
||||
CURRENT_DIR=`pwd`
|
||||
|
||||
AC_MSG_NOTICE([configure started in '$CURRENT_DIR])
|
||||
AC_MSG_NOTICE([with CC='$CC'])
|
||||
AC_MSG_NOTICE([with CXX='$CXX'])
|
||||
AC_MSG_NOTICE([with CPPFLAGS='$CPPFLAGS'])
|
||||
AC_MSG_NOTICE([with CFLAGS='$CFLAGS'])
|
||||
AC_MSG_NOTICE([with CXXFLAGS='$CXXFLAGS'])
|
||||
AC_MSG_NOTICE([with LDFLAGS='$LDFLAGS'])
|
||||
|
||||
AC_CONFIG_AUX_DIR([config])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
AC_CANONICAL_TARGET
|
||||
|
||||
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
|
||||
|
||||
m4_include([m4/configure.basics])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl grab the configure command, options and flags and store them in m4 variables
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test `expr -- [$]0 : "'.*"` = 0; then
|
||||
TRI_CONFIGURE_COMMAND="$TRI_CONFIGURE_COMMAND '[$]0'"
|
||||
else
|
||||
TRI_CONFIGURE_COMMAND="$TRI_CONFIGURE_COMMAND [$]0"
|
||||
fi
|
||||
|
||||
TRI_CONFIGURE_OPTIONS="$ac_configure_args"
|
||||
|
||||
for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
|
||||
eval val=\$$var
|
||||
if test -n "$val"; then
|
||||
TRI_CONFIGURE_FLAGS="$TRI_CONFIGURE_FLAGS $var='$val'"
|
||||
fi
|
||||
done
|
||||
|
||||
AC_SUBST(TRI_CONFIGURE_COMMAND)
|
||||
AC_SUBST(TRI_CONFIGURE_OPTIONS)
|
||||
AC_SUBST(TRI_CONFIGURE_FLAGS)
|
||||
|
||||
AC_DEFINE_UNQUOTED(TRI_CONFIGURE_COMMAND, "$TRI_CONFIGURE_COMMAND", "" , [configure command])
|
||||
AC_DEFINE_UNQUOTED(TRI_CONFIGURE_OPTIONS, "$TRI_CONFIGURE_OPTIONS", "" , [configure options])
|
||||
AC_DEFINE_UNQUOTED(TRI_CONFIGURE_FLAGS, "$TRI_CONFIGURE_FLAGS", "" , [configure flags])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl grab the git version number if available
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test -d ".git"; then
|
||||
TRI_REPOSITORY_VERSION=`git describe --all --tags --long --abbrev=40 --dirty="-dirty" 2> /dev/null`
|
||||
else
|
||||
TRI_REPOSITORY_VERSION=""
|
||||
fi
|
||||
|
||||
AC_SUBST(TRI_REPOSITORY_VERSION)
|
||||
AC_DEFINE_UNQUOTED(TRI_REPOSITORY_VERSION, "$TRI_REPOSITORY_VERSION", "" , [repository version])
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- CHECKING THE ENVIRONMENT
|
||||
dnl ============================================================================
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl python
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if python -c '
|
||||
import sys
|
||||
if sys.version_info.major != 2:
|
||||
exit(0)
|
||||
else:
|
||||
exit(1)
|
||||
'; then
|
||||
echo "Compiling V8 requires a python version 2; please adjust your " `which python`
|
||||
exit 1
|
||||
fi
|
||||
PYTHON_EXECUTABLE=`which python`
|
||||
AC_SUBST(PYTHON_EXECUTABLE)
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl check for special OS like MacOS X or FreeBSD
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
tr_DARWIN="no"
|
||||
tr_FREEBSD="no"
|
||||
tr_SOLARIS="no"
|
||||
tr_ARM="no"
|
||||
|
||||
case $target in
|
||||
*-apple-darwin*)
|
||||
tr_DARWIN="yes"
|
||||
;;
|
||||
|
||||
*-*-freebsd*)
|
||||
tr_FREEBSD="yes"
|
||||
;;
|
||||
|
||||
*-*-solaris*)
|
||||
tr_SOLARIS="yes"
|
||||
CC="gcc -std=gnu99"
|
||||
CPPFLAGS=" -I/opt/local/include -L/opt/local/lib"
|
||||
CXXFLAGS="-static-libstdc++ -D_GLIBCXX_USE_C99"
|
||||
LDFLAGS="-Wl,-rpath,/opt/local/lib,-lnsl,-lsocket -L/opt/local/lib"
|
||||
LIBEV_FLAGS="${LIBEV_FLAGS} -D _REENTRANT=1 -D HAVE_PORT_H=1 -D EV_USE_PORT=1 -D EV_USE_INOTIFY=0 -D EV_USE_EVENTFD=0"
|
||||
;;
|
||||
|
||||
armv7l-*-linux-gnueabihf)
|
||||
CXXFLAGS="${CXXFLAGS} -O0"
|
||||
tr_ARM="yes"
|
||||
tr_ARM7="yes"
|
||||
;;
|
||||
|
||||
armv6l-*-linux-gnueabihf)
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl special flags for Arm V6 (pi)
|
||||
dnl ----------------------------------------------------------------------------
|
||||
CPPFLAGS="${CPPFLAGS} -O0 -DUSE_EABI_HARDFLOAT -march=armv6 -mfloat-abi=hard"
|
||||
CXXFLAGS="${CXXFLAGS} -O0"
|
||||
tr_ARM="yes"
|
||||
tr_ARM6="yes"
|
||||
;;
|
||||
esac
|
||||
|
||||
AM_CONDITIONAL(ENABLE_DARWIN, test "x$tr_DARWIN" = xyes)
|
||||
AM_CONDITIONAL(ENABLE_FREEBSD, test "x$tr_FREEBSD" = xyes)
|
||||
AM_CONDITIONAL(ENABLE_SOLARIS, test "x$tr_SOLARIS" = xyes)
|
||||
AM_CONDITIONAL(ENABLE_ARM, test "x$tr_ARM" = xyes)
|
||||
AM_CONDITIONAL(ENABLE_ARMV6, test "x$tr_ARM6" = xyes)
|
||||
AM_CONDITIONAL(ENABLE_ARMV7, test "x$tr_ARM7" = xyes)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl checks for compiler and basic settings
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
AC_MSG_NOTICE([CHECKING C/C++ COMPILER AND LINKER])
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
|
||||
case $target in
|
||||
*-*-cygwin)
|
||||
LDFLAGS="$LDFLAGS -Wl,--enable-auto-import"
|
||||
enable_static="yes"
|
||||
enable_shared="no"
|
||||
|
||||
list_cc="[gcc-5 gcc-4 gcc-3 gcc cc]"
|
||||
list_cxx="[g++-5 g++-4 g++-3 g++ cxx]"
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
list_cc="[${CC} gcc clang cc]"
|
||||
list_cxx="[${CXX} g++ clang++ cxx]"
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_PROG_CXXCPP
|
||||
AC_PROG_CC($list_cc)
|
||||
AC_PROG_CXX($list_cxx)
|
||||
AC_PROG_CPP
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_MAKE_SET
|
||||
AC_PROG_RANLIB
|
||||
|
||||
AX_CXX_COMPILE_STDCXX_11(noext, mandatory)
|
||||
AX_CXX_CHECK_UNORDERED_MAP_EMPLACE
|
||||
AX_COMPILER_VENDOR
|
||||
|
||||
if test "$ax_cv_c_compiler_vendor" == "gnu"; then
|
||||
echo "GNU"
|
||||
fi
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl bits
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
tr_BITS=32
|
||||
|
||||
case $target_cpu in
|
||||
amd64*)
|
||||
tr_BITS=64
|
||||
;;
|
||||
|
||||
x86_64*)
|
||||
tr_BITS=64
|
||||
;;
|
||||
esac
|
||||
|
||||
TRI_BITS="$tr_BITS"
|
||||
AC_SUBST(TRI_BITS)
|
||||
|
||||
CPPFLAGS="${CPPFLAGS} -DTRI_BITS=${TRI_BITS}"
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl options C/C++ standard
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test x$GCC == xyes; then
|
||||
# try to select the correct C standard: gnu90 is nice, because it warns about constructs
|
||||
# the Visual Studio Compiler does not like
|
||||
|
||||
GCCSTD=""
|
||||
|
||||
TRI_TRY_CC_OPTION([-std=gnu90],
|
||||
[GCCSTD="-std=gnu90"],
|
||||
[TRI_TRY_CC_OPTION([-std=gnu89],
|
||||
[GCCSTD="-std=gnu89"])])
|
||||
|
||||
GXXSTD=""
|
||||
|
||||
TRI_TRY_CXX_OPTION([-std=c++11],
|
||||
[GXXSTD="-std=c++11"])
|
||||
|
||||
CFLAGS="${GCCSTD} ${CFLAGS}"
|
||||
CXXFLAGS="${GXXSTD} ${CXXFLAGS}"
|
||||
fi
|
||||
|
||||
if test x$tr_DARWIN == xyes; then
|
||||
TRI_TRY_CXX_OPTION([-stdlib=libc++],
|
||||
[tr_CXX_HAS_STDLIB="yes"],
|
||||
[tr_CXX_HAS_STDLIB="no"])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(CXX_HAS_STDLIB, test "x$tr_CXX_HAS_STDLIB" = "xyes")
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl error & warnings && C/C++ standard
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(error-on-warning,
|
||||
AS_HELP_STRING([--enable-error-on-warning], [treat warnings as errors (default: no)]),
|
||||
[tr_WERROR="${enableval:-yes}"],
|
||||
[tr_WERROR=no]
|
||||
)
|
||||
|
||||
CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS"
|
||||
|
||||
if test x$GCC == xyes; then
|
||||
WALL="-Wall -Winit-self -Wno-long-long -Wno-variadic-macros"
|
||||
|
||||
if test x$tr_WERROR == xyes; then
|
||||
WALL="${WALL} -Werror"
|
||||
fi
|
||||
|
||||
if test x$tr_DARWIN == xyes; then
|
||||
WALL="${WALL} -Wno-deprecated-declarations"
|
||||
fi
|
||||
|
||||
WALLC="${WALL} -Wshadow -Wstrict-prototypes -Wdeclaration-after-statement"
|
||||
WALLCXX="${WALL} -Woverloaded-virtual"
|
||||
|
||||
TRI_TRY_CXX_OPTION([-Wstrict-null-sentinel],
|
||||
[WALLCXX="${WALLCXX} -Wstrict-null-sentinel"])
|
||||
|
||||
# suppress warnings about unused compiler options.
|
||||
# this is useful for clang as it complains about -std=... in linking
|
||||
TRI_TRY_CXX_OPTION([-Qunused-arguments],
|
||||
[WALLCXX="${WALLCXX} -Qunused-arguments"])
|
||||
|
||||
|
||||
CFLAGS="${CFLAGS} ${WALLC}"
|
||||
CXXFLAGS="${CXXFLAGS} ${WALLCXX}"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl option for gnu style include
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(isystem,
|
||||
AS_HELP_STRING([--enable-isystem], [enables the use of -isystem instead of -I for system headers (default: no)]),
|
||||
[tr_ISYSTEM="${enableval:-yes}"],
|
||||
[tr_ISYSTEM=no]
|
||||
)
|
||||
|
||||
if test x$GCC == xyes; then
|
||||
INCPREFIX="-isystem " # note that the trailing blank is important
|
||||
else
|
||||
INCPREFIX="-I"
|
||||
fi
|
||||
|
||||
if test "x$tr_ISYSTEM" = "xno"; then
|
||||
INCPREFIX="-I"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl use the gold linker
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(gold,
|
||||
AS_HELP_STRING([--enable-gold], [use new gold linker (default: no)]),
|
||||
[tr_GOLD="${enableval:-yes}"],
|
||||
[tr_GOLD=no]
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_GOLD, test "x$tr_GOLD" = xyes)
|
||||
|
||||
if test "x$tr_GOLD" = xyes; then
|
||||
CFLAGS="$CFLAGS -fuse-ld=gold"
|
||||
CXXFLAGS="$CXXFLAGS -fuse-ld=gold"
|
||||
fi
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- SUB SYSTEMS
|
||||
dnl ============================================================================
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl etcd
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(all-in-one-etcd,
|
||||
AS_HELP_STRING([--enable-all-in-one-etcd], [use supplied etcd from 3rdParty directory (default: yes)]),
|
||||
[tr_ALL_IN_ONE_ETCD="${enableval:-yes}"],
|
||||
[tr_ALL_IN_ONE_ETCD=yes]
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_ALL_IN_ONE_ETCD, test "x$tr_ALL_IN_ONE_ETCD" = xyes)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl go
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(internal-go,
|
||||
AS_HELP_STRING([--enable-internal-go], [use go binaries from 3rdParty directory (default: no)]),
|
||||
[tr_INTERNAL_GO="${enableval:-yes}"],
|
||||
[tr_INTERNAL_GO=no]
|
||||
GOPROG=x$tr_INTERNAL_GO
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_INTERNAL_GO, test "x$tr_INTERNAL_GO" = xyes)
|
||||
|
||||
if test "x$tr_INTERNAL_GO" = "xno"; then
|
||||
AC_CHECK_PROG(GO, go, go)
|
||||
if test "x$GO" = "x"; then
|
||||
AC_MSG_WARN([no go executable found.])
|
||||
BASIC_INFO="$BASIC_INFO|GO BINARY: not found"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|GO BINARY: $GO"
|
||||
fi
|
||||
GOPROG=$GO
|
||||
else
|
||||
GOPROG=go
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(GO_AVAILABLE, test "x$GOPROG" != x)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl use relative path
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(relative,
|
||||
AS_HELP_STRING([--enable-relative], [all path are relative to the binary (default: no)]),
|
||||
[tr_RELATIVE="${enableval:-yes}"],
|
||||
[tr_RELATIVE=no]
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_RELATIVE, test "x$tr_RELATIVE" = xyes)
|
||||
|
||||
if test "x$tr_RELATIVE" != xno; then
|
||||
BASIC_INFO="$BASIC_INFO|RELATIVE PATHS: enabled"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|RELATIVE PATHS: disabled"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl rt
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
m4_include([m4/clock_gettime])
|
||||
AC_CLOCK()
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl splice
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_CHECKING([whether your system knows about splice()])
|
||||
AC_TRY_COMPILE([
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
],
|
||||
[
|
||||
ssize_t sent, pipesize;
|
||||
int fd, SplicePipe[2];
|
||||
pipesize = splice(fd, NULL,
|
||||
SplicePipe[1], NULL,
|
||||
1,
|
||||
SPLICE_F_MORE | SPLICE_F_MOVE|SPLICE_F_NONBLOCK);
|
||||
],
|
||||
[
|
||||
ok_splice=yes
|
||||
AC_DEFINE_UNQUOTED(TRI_LINUX_SPLICE, 1, [true if we have the linux splice api])
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_SUBST(TRI_LINUX_SPLICE)
|
||||
],
|
||||
[
|
||||
ok_splice=no
|
||||
AC_MSG_RESULT([no])
|
||||
]
|
||||
)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl load sub systems
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
m4_include([m4/configure.largefile])
|
||||
m4_include([m4/configure.threads])
|
||||
m4_include([m4/configure.documentation])
|
||||
m4_include([m4/configure.coverage])
|
||||
m4_include([m4/configure.maintainer])
|
||||
|
||||
AC_CHECK_FUNCS([futimes])
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- EXTERNAL LIBRARIES
|
||||
dnl ============================================================================
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl boost
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
BOOST_VERSION="1.58.0"
|
||||
BOOST_CPPFLAGS="-I${srcdir}/3rdParty/boost/${BOOST_VERSION}"
|
||||
|
||||
AC_ARG_ENABLE(boost-tests,
|
||||
AS_HELP_STRING([--enable-boost-tests], [generate the unittests based on boost (default: $USE_MAINTAINER_MODE)]),
|
||||
[tr_BOOST_TESTS="${enableval:-yes}"],
|
||||
[tr_BOOST_TESTS="$USE_MAINTAINER_MODE"]
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_BOOST_TESTS, test "x$tr_BOOST_TESTS" = xyes)
|
||||
|
||||
AC_SUBST(BOOST_VERSION)
|
||||
AC_SUBST(BOOST_CPPFLAGS)
|
||||
|
||||
LIB_INFO="$LIB_INFO|BOOST: 3rdParty version"
|
||||
LIB_INFO="$LIB_INFO|BOOST VERSION: ${BOOST_VERSION}"
|
||||
LIB_INFO="$LIB_INFO|BOOST_CPPFLAGS: ${BOOST_CPPFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|BOOST_TESTS: ${tr_BOOST_TESTS}"
|
||||
LIB_INFO="$LIB_INFO|."
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl v8
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
V8_VERSION="4.3.61"
|
||||
V8_DIR=V8-${V8_VERSION}
|
||||
|
||||
V8_CPPFLAGS="-I${srcdir}/3rdParty/${V8_DIR}/include -DTRI_V8_VERSION='\"${V8_VERSION}\"'"
|
||||
V8_LDFLAGS=""
|
||||
V8_TARGET="native"
|
||||
|
||||
v8_lib_dir=""
|
||||
|
||||
AC_ARG_ENABLE(v8-debug,
|
||||
AS_HELP_STRING([--enable-v8-debug], [build debug version of V8 (default: no)]),
|
||||
[tr_V8_DEBUG="${enableval:-yes}"],
|
||||
[tr_V8_DEBUG=no]
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_V8_DEBUG, test "x$tr_V8_DEBUG" = xyes)
|
||||
|
||||
if test x$tr_ARM == xyes; then
|
||||
if test x$tr_V8_DEBUG == xyes; then
|
||||
V8_TARGET="arm.debug"
|
||||
else
|
||||
V8_TARGET="arm.release"
|
||||
fi
|
||||
|
||||
v8_lib_dir="${srcdir}/3rdParty/${V8_DIR}/out/$V8_TARGET/obj.target/tools/gyp"
|
||||
|
||||
elif test x$tr_DARWIN == xyes; then
|
||||
if test "x$tr_BITS" == x64; then
|
||||
if test x$tr_V8_DEBUG == xyes; then
|
||||
V8_TARGET="x64.debug"
|
||||
else
|
||||
V8_TARGET="x64.release"
|
||||
fi
|
||||
else
|
||||
if test x$tr_V8_DEBUG == xyes; then
|
||||
V8_TARGET="ia32.debug"
|
||||
else
|
||||
V8_TARGET="ia32.release"
|
||||
fi
|
||||
fi
|
||||
|
||||
v8_lib_dir="${srcdir}/3rdParty/${V8_DIR}/out/$V8_TARGET"
|
||||
|
||||
else
|
||||
if test "x$tr_BITS" == x64; then
|
||||
if test x$tr_V8_DEBUG == xyes; then
|
||||
V8_TARGET="x64.debug"
|
||||
else
|
||||
V8_TARGET="x64.release"
|
||||
fi
|
||||
else
|
||||
if test x$tr_V8_DEBUG == xyes; then
|
||||
V8_TARGET="ia32.debug"
|
||||
else
|
||||
V8_TARGET="ia32.release"
|
||||
fi
|
||||
fi
|
||||
|
||||
v8_lib_dir="${srcdir}/3rdParty/${V8_DIR}/out/$V8_TARGET/obj.target/tools/gyp"
|
||||
fi
|
||||
|
||||
V8_LIBS="${v8_lib_dir}/libv8_base.a ${v8_lib_dir}/libv8_libbase.a ${v8_lib_dir}/libv8_libplatform.a ${v8_lib_dir}/libv8_nosnapshot.a"
|
||||
|
||||
if test "x$tr_FREEBSD" == xyes; then
|
||||
V8_LIBS="$V8_LIBS -lexecinfo"
|
||||
fi
|
||||
|
||||
AC_SUBST(V8_VERSION)
|
||||
AC_SUBST(V8_DIR)
|
||||
AC_SUBST(V8_CPPFLAGS)
|
||||
AC_SUBST(V8_LDFLAGS)
|
||||
AC_SUBST(V8_LIBS)
|
||||
AC_SUBST(V8_TARGET)
|
||||
|
||||
LIB_INFO="$LIB_INFO|V8: 3rdParty version"
|
||||
LIB_INFO="$LIB_INFO|V8 VERSION: ${V8_VERSION}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|V8_TARGET: ${V8_TARGET}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|V8_CPPFLAGS: ${V8_CPPFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|V8_LDFLAGS: ${V8_LDFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|V8_LIBS: ${V8_LIBS}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|."
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl icu (after v8)
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
ICU_VERSION="52.2"
|
||||
ICU_CPPFLAGS="-D_REENTRANT -I${srcdir}/3rdParty/${V8_DIR}/third_party/icu/source/common -I${srcdir}/3rdParty/${V8_DIR}/third_party/icu/source/i18n -I${srcdir}/3rdParty/${V8_DIR}/third_party/icu/source/io"
|
||||
ICU_LDFLAGS=""
|
||||
|
||||
if test "x$tr_DARWIN" = xyes; then
|
||||
icu_lib_dir="${srcdir}/3rdParty/${V8_DIR}/out/$V8_TARGET"
|
||||
else
|
||||
icu_lib_dir="${srcdir}/3rdParty/${V8_DIR}/out/$V8_TARGET/obj.target/third_party/icu"
|
||||
fi
|
||||
|
||||
ICU_LIBS="-ldl -lm ${icu_lib_dir}/libicui18n.a ${icu_lib_dir}/libicuuc.a ${icu_lib_dir}/libicudata.a -ldl -lm"
|
||||
|
||||
AC_SUBST(ICU_CPPFLAGS)
|
||||
AC_SUBST(ICU_LDFLAGS)
|
||||
AC_SUBST(ICU_LIBS)
|
||||
|
||||
ICU_CPPFLAGS="${ICU_CPPFLAGS}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|ICU: 3rdParty version"
|
||||
LIB_INFO="$LIB_INFO|ICU VERSION: ${ICU_VERSION}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|ICU_CPPFLAGS: ${ICU_CPPFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|ICU_LDFLAGS: ${ICU_LDFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|ICU_LIBS: ${ICU_LIBS}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|."
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl libev
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
LIBEV_VERSION="4.11"
|
||||
|
||||
LIBEV_CPPFLAGS="-I${srcdir}/3rdParty/libev -DTRI_LIBEV_VERSION='\"${LIBEV_VERSION}\"'"
|
||||
LIBEV_CPPFLAGS="${LIBEV_CPPFLAGS}"
|
||||
LIBEV_LDFLAGS=""
|
||||
LIBEV_LIBS="${srcdir}/3rdParty/libev/BUILD/.libs/libev.a"
|
||||
LIBEV_FLAGS="${LIBEV_FLAGS}"
|
||||
|
||||
AC_SUBST(LIBEV_VERSION)
|
||||
AC_SUBST(LIBEV_CPPFLAGS)
|
||||
AC_SUBST(LIBEV_LDFLAGS)
|
||||
AC_SUBST(LIBEV_LIBS)
|
||||
AC_SUBST(LIBEV_FLAGS)
|
||||
|
||||
LIB_INFO="$LIB_INFO|LIBEV: 3rdParty version"
|
||||
LIB_INFO="$LIB_INFO|LIBEV VERSION: ${LIBEV_VERSION}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|LIBEV_CPPFLAGS: ${LIBEV_CPPFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|LIBEV_LDFLAGS: ${LIBEV_LDFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|LIBEV_LIBS: ${LIBEV_LIBS}"
|
||||
LIB_INFO="$LIB_INFO|LIBEV_FLAGS: ${LIBEV_FLAGS}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|."
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl math
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
m4_include([m4/external.math])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl repl console
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
AC_MSG_NOTICE([CHECKING FOR CONSOLE SUPPORT])
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
CONSOLE_CPPFLAGS="-I${srcdir}/3rdParty/linenoise-ng/include -I${srcdir}/3rdParty/linenoise-ng/src"
|
||||
|
||||
AC_SUBST(CONSOLE_CPPFLAGS)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl tcmalloc
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(tcmalloc,
|
||||
AS_HELP_STRING([--enable-tcmalloc], [use system-installed tcmalloc library (default: no)]),
|
||||
[tr_TCMALLOC="${enableval:-yes}"],
|
||||
[tr_TCMALLOC=no]
|
||||
)
|
||||
|
||||
if test "x$tr_TCMALLOC" = "xyes"; then
|
||||
AC_MSG_CHECKING([tcmalloc])
|
||||
|
||||
AC_SEARCH_LIBS([tc_malloc], [tcmalloc tcmalloc_minimal tcmalloc_debug], [ ], [ AC_MSG_ERROR([unable to find the tc_malloc library function]) ])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(ENABLE_TCMALLOC, test "x$tr_TCMALLOC" = xyes)
|
||||
|
||||
if test "x$tr_TCMALLOC" = "xyes"; then
|
||||
TCMALLOC_LIBS="-ltcmalloc"
|
||||
fi
|
||||
AC_SUBST(TCMALLOC_LIBS)
|
||||
|
||||
if test "x$tr_TCMALLOC" = "xyes"; then
|
||||
AC_DEFINE_UNQUOTED(TRI_HAVE_TCMALLOC, 1, [true if tcmalloc is used])
|
||||
|
||||
BASIC_INFO="$BASIC_INFO|TCMALLOC support: enabled ($TCMALLOC_LIBS)"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|TCMALLOC support: disabled"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl openssl
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
m4_include([m4/external.openssl])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl zlib
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
ZLIB_VERSION="1.2.7"
|
||||
|
||||
ZLIB_CPPFLAGS=""
|
||||
ZLIB_LDFLAGS=""
|
||||
ZLIB_LIBS="${srcdir}/3rdParty/zlib-${ZLIB_VERSION}/libz.a"
|
||||
|
||||
AC_SUBST(ZLIB_VERSION)
|
||||
AC_SUBST(ZLIB_CPPFLAGS)
|
||||
AC_SUBST(ZLIB_LDFLAGS)
|
||||
AC_SUBST(ZLIB_LIBS)
|
||||
|
||||
LIB_INFO="$LIB_INFO|ZLIB: 3rdParty version"
|
||||
LIB_INFO="$LIB_INFO|ZLIB VERSION: ${ZLIB_VERSION}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|ZLIB_CPPFLAGS: ${ZLIB_CPPFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|ZLIB_LDFLAGS: ${ZLIB_LDFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|ZLIB_LIBS: ${ZLIB_LIBS}"
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- GENERATE FILES
|
||||
dnl ============================================================================
|
||||
|
||||
BUILD_H="\$(top_srcdir)/build.h"
|
||||
AC_SUBST(BUILD_H)
|
||||
|
||||
AC_CONFIG_FILES([Makefile Installation/MacOSX/Bundle/Info.plist])
|
||||
AC_CONFIG_HEADER([config/config.h lib/Basics/local-configuration.h])
|
||||
AC_OUTPUT
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- GENERATE INFO
|
||||
dnl ============================================================================
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl information
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test "x$BASIC_INFO" != "x"; then
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
echo $BASIC_INFO | tr "|" "\n" | sort | while read a; do
|
||||
if test "x$a" != "x"; then
|
||||
AC_MSG_NOTICE([$[]a])
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if test "x$LIB_INFO" != "x"; then
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
echo $LIB_INFO | tr "|" "\n" | while read a; do
|
||||
if test "x$a" != "x"; then
|
||||
AC_MSG_NOTICE([$[]a])
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if test "x$TOOL_INFO" != "x"; then
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
echo $TOOL_INFO | tr "|" "\n" | sort | while read a; do
|
||||
if test "x$a" != "x"; then
|
||||
AC_MSG_NOTICE([$[]a])
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
AC_MSG_NOTICE([REPOSITORY VERSION: ${TRI_REPOSITORY_VERSION}])
|
||||
AC_MSG_NOTICE([BITS: ${TRI_BITS}])
|
||||
AC_MSG_NOTICE([CPPFLAGS: ${CPPFLAGS}])
|
||||
AC_MSG_NOTICE([CFLAGS: ${CFLAGS}])
|
||||
AC_MSG_NOTICE([CXXFLAGS: ${CXXFLAGS}])
|
||||
AC_MSG_NOTICE([LDFLAGS: ${LDFLAGS}])
|
||||
AC_MSG_NOTICE([LIBS: ${LIBS}])
|
||||
|
||||
CC_VERSION=`${CC} --version 2>&1`
|
||||
AC_MSG_NOTICE([CC: ${CC}])
|
||||
AC_MSG_NOTICE([CC VERSION: ${CC_VERSION}])
|
||||
CXX_VERSION=`${CXX} --version 2>&1`
|
||||
AC_MSG_NOTICE([CXX: ${CXX}])
|
||||
AC_MSG_NOTICE([CXX VERSION: ${CXX_VERSION}])
|
||||
|
||||
echo $FLAG_INFO | tr "|" "\n" | while read a; do
|
||||
if test "x$a" != "x"; then
|
||||
AC_MSG_NOTICE([$[]a])
|
||||
fi
|
||||
done
|
||||
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
dnl ============================================================================
|
||||
dnl --SECTION-- END-OF-FILE
|
||||
dnl ============================================================================
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(dnl [a-zA-Z]\\|dnl --SECTION--\\)"
|
||||
dnl End:
|
|
@ -20341,17 +20341,26 @@ window.ArangoUsers = Backbone.Collection.extend({
|
|||
|
||||
this.collection.each(function(model) {
|
||||
|
||||
$('#collection_' + model.get("name")).find('.corneredBadge').removeClass('loaded unloaded');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').addClass(model.get("status"));
|
||||
if (!model.get("locked")) {
|
||||
$('#collection_' + model.get("name")).find('.corneredBadge').removeClass('loaded unloaded');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').addClass(model.get("status"));
|
||||
}
|
||||
|
||||
if (model.get("locked") || model.get("status") === 'loading') {
|
||||
$('#collection_' + model.get("name")).addClass('locked');
|
||||
if (model.get("locked")) {
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("desc"));
|
||||
}
|
||||
else {
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('#collection_' + model.get("name")).removeClass('locked');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
if ($('#collection_' + model.get("name") + ' .corneredBadge').hasClass('inProgress')) {
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').removeClass('inProgress');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').addClass('loaded');
|
||||
}
|
||||
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,3 +1,3 @@
|
|||
<script src="sharedLibs.js?version=1455877794814"></script>
|
||||
<script src="libs.js?version=1455877794814"></script>
|
||||
<script src="app.js?version=1455877794814"></script>
|
||||
<script src="sharedLibs.js?version=1455882035132"></script>
|
||||
<script src="libs.js?version=1455882035132"></script>
|
||||
<script src="app.js?version=1455882035132"></script>
|
||||
|
|
|
@ -264,9 +264,11 @@
|
|||
<%= model.get('desc') %>
|
||||
</div>
|
||||
<% } else if (model.get('status') === "loaded" || model.get('status') === 'unloaded') { %>
|
||||
<div class="corneredBadge <%= model.get('status') %>">
|
||||
<%= model.get('status') %>
|
||||
</div>
|
||||
<% if (!model.get('locked')) { %>
|
||||
<div class="corneredBadge <%= model.get('status') %>">
|
||||
<%= model.get('status') %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -2347,10 +2349,7 @@ if (list.length > 0) {
|
|||
|
||||
</ul></script><script id="progressBase.ejs" type="text/template"><div class="progress-view">
|
||||
<div class="progress-content">
|
||||
<!--<i style="visibility:hidden" class="fa fa-spinner fa-spin"></i>-->
|
||||
<div class="pong-loader">
|
||||
Loading…
|
||||
</div>
|
||||
<div class="pong-spinner"><i /></div>
|
||||
</div>
|
||||
<div class="progress-message">
|
||||
<div class="progress-text"></div>
|
||||
|
@ -2736,4 +2735,4 @@ var cutByResolution = function (str) {
|
|||
</div>
|
||||
|
||||
<div id="workMonitorContent" class="innerContent">
|
||||
</div></script></head><body><nav class="navbar"><div class="resizecontainer"><div class="navlogo"><a class="logo" href="#"><img class="arangodbLogo" src="img/arangodb_logo_small.png"></a></div><div id="progressPlaceholderIcon"></div><div class="statmenu" id="statisticBar"></div><div class="usermenu" id="userBar" style="float:right"></div><div class="notificationmenu" id="notificationBar" style="float:right"></div><div class="navmenu" id="navigationBar"></div></div></nav><div class="centralRow resizecontainer"><div id="content" class="centralContent"></div></div><div id="modalPlaceholder"></div><div id="progressPlaceholder" style="display:none"></div><footer class="footer"><div class="resizecontainer" id="footerBar"></div></footer><div class="arangoFrame" style=""><div class="outerDiv"><div class="innerDiv"></div></div></div><script src="sharedLibs.js?version=1455877794814"></script><script src="libs.js?version=1455877794814"></script><script src="app.js?version=1455877794814"></script></body></html>
|
||||
</div></script></head><body><nav class="navbar"><div class="resizecontainer"><div class="navlogo"><a class="logo" href="#"><img class="arangodbLogo" src="img/arangodb_logo_small.png"></a></div><div id="progressPlaceholderIcon"></div><div class="statmenu" id="statisticBar"></div><div class="usermenu" id="userBar" style="float:right"></div><div class="notificationmenu" id="notificationBar" style="float:right"></div><div class="navmenu" id="navigationBar"></div></div></nav><div class="centralRow resizecontainer"><div id="content" class="centralContent"></div></div><div id="modalPlaceholder"></div><div id="progressPlaceholder" style="display:none"></div><footer class="footer"><div class="resizecontainer" id="footerBar"></div></footer><div class="arangoFrame" style=""><div class="outerDiv"><div class="innerDiv"></div></div></div><script src="sharedLibs.js?version=1455882035132"></script><script src="libs.js?version=1455882035132"></script><script src="app.js?version=1455882035132"></script></body></html>
|
Binary file not shown.
|
@ -300,9 +300,11 @@
|
|||
<%= model.get('desc') %>
|
||||
</div>
|
||||
<% } else if (model.get('status') === "loaded" || model.get('status') === 'unloaded') { %>
|
||||
<div class="corneredBadge <%= model.get('status') %>">
|
||||
<%= model.get('status') %>
|
||||
</div>
|
||||
<% if (!model.get('locked')) { %>
|
||||
<div class="corneredBadge <%= model.get('status') %>">
|
||||
<%= model.get('status') %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -2520,10 +2522,7 @@ if (list.length > 0) {
|
|||
<script id="progressBase.ejs" type="text/template">
|
||||
<div class="progress-view">
|
||||
<div class="progress-content">
|
||||
<!--<i style="visibility:hidden" class="fa fa-spinner fa-spin"></i>-->
|
||||
<div class="pong-loader">
|
||||
Loading…
|
||||
</div>
|
||||
<div class="pong-spinner"><i /></div>
|
||||
</div>
|
||||
<div class="progress-message">
|
||||
<div class="progress-text"></div>
|
||||
|
@ -3000,9 +2999,9 @@ var cutByResolution = function (str) {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="sharedLibs.js?version=1455877794814"></script>
|
||||
<script src="libs.js?version=1455877794814"></script>
|
||||
<script src="app.js?version=1455877794814"></script>
|
||||
<script src="sharedLibs.js?version=1455882035132"></script>
|
||||
<script src="libs.js?version=1455882035132"></script>
|
||||
<script src="app.js?version=1455882035132"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -7507,7 +7507,6 @@ input.gv-radio-button {
|
|||
|
||||
.progress-view {
|
||||
background-color: #363c39;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 2px;
|
||||
color: #fff;
|
||||
height: 188px;
|
||||
|
@ -7517,8 +7516,7 @@ input.gv-radio-button {
|
|||
top: 50%;
|
||||
width: 300px; }
|
||||
.progress-view .progress-content {
|
||||
margin-left: 90px;
|
||||
margin-top: 10px; }
|
||||
border: 5px solid #fff; }
|
||||
.progress-view .progress-content .fa-spinner {
|
||||
font-size: 100pt; }
|
||||
.progress-view .progress-message {
|
||||
|
@ -7527,7 +7525,7 @@ input.gv-radio-button {
|
|||
color: #fff;
|
||||
font-weight: 200;
|
||||
height: 44px;
|
||||
margin-top: 33px;
|
||||
margin-top: -25px;
|
||||
padding-top: 3px;
|
||||
text-align: center; }
|
||||
.progress-view .progress-text {
|
||||
|
@ -7547,231 +7545,64 @@ input.gv-radio-button {
|
|||
margin-left: 10px;
|
||||
margin-top: 7px; }
|
||||
|
||||
.pong-loader {
|
||||
margin-left: 17px;
|
||||
margin-top: 35px; }
|
||||
|
||||
@-moz-keyframes pong-loader {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 0; }
|
||||
25% {
|
||||
left: 65px;
|
||||
top: 20px; }
|
||||
50% {
|
||||
left: 5px; }
|
||||
62.5% {
|
||||
top: 50px; }
|
||||
75% {
|
||||
left: 65px;
|
||||
top: 70%; }
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 0%; } }
|
||||
|
||||
@-webkit-keyframes pong-loader {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 0; }
|
||||
25% {
|
||||
left: 65px;
|
||||
top: 20px; }
|
||||
50% {
|
||||
left: 5px; }
|
||||
62.5% {
|
||||
top: 50px; }
|
||||
75% {
|
||||
left: 65px;
|
||||
top: 70%; }
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 0%; } }
|
||||
|
||||
@keyframes pong-loader {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 0; }
|
||||
25% {
|
||||
left: 65px;
|
||||
top: 20px; }
|
||||
50% {
|
||||
left: 5px; }
|
||||
62.5% {
|
||||
top: 50px; }
|
||||
75% {
|
||||
left: 65px;
|
||||
top: 70%; }
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 0%; } }
|
||||
|
||||
@-moz-keyframes pong-loader-paddle-1 {
|
||||
0% {
|
||||
-moz-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
25% {
|
||||
-moz-box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
50% {
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
62.5% {
|
||||
-moz-box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
75% {
|
||||
-moz-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
100% {
|
||||
-moz-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; } }
|
||||
|
||||
@-webkit-keyframes pong-loader-paddle-1 {
|
||||
0% {
|
||||
-webkit-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
25% {
|
||||
-webkit-box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
50% {
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
62.5% {
|
||||
-webkit-box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
75% {
|
||||
-webkit-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
100% {
|
||||
-webkit-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; } }
|
||||
|
||||
@keyframes pong-loader-paddle-1 {
|
||||
0% {
|
||||
-moz-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
25% {
|
||||
-moz-box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 15px 0 0, inset #353c39 0 -25px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
50% {
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
62.5% {
|
||||
-moz-box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 10px 0 0, inset #353c39 0 -30px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
75% {
|
||||
-moz-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
100% {
|
||||
-moz-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 5px 0 0, inset #353c39 0 -35px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0; } }
|
||||
|
||||
@-moz-keyframes pong-loader-paddle-2 {
|
||||
0% {
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
50% {
|
||||
-moz-box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
62.5% {
|
||||
-moz-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
75% {
|
||||
-moz-box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
100% {
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; } }
|
||||
|
||||
@-webkit-keyframes pong-loader-paddle-2 {
|
||||
0% {
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
50% {
|
||||
-webkit-box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
62.5% {
|
||||
-webkit-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
75% {
|
||||
-webkit-box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
100% {
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; } }
|
||||
|
||||
@keyframes pong-loader-paddle-2 {
|
||||
0% {
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
50% {
|
||||
-moz-box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 30px 0 0, inset #353c39 0 -10px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
62.5% {
|
||||
-moz-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 40px 0 0, inset #353c39 0 0 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
75% {
|
||||
-moz-box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 20px 0 0, inset #353c39 0 -20px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; }
|
||||
100% {
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 3px 0 0 0, inset #8cdb8b -10px 0 0 0; } }
|
||||
|
||||
.pong-loader:not(:required) {
|
||||
-moz-animation: pong-loader-paddle-1 1500ms infinite linear;
|
||||
-webkit-animation: pong-loader-paddle-1 1500ms infinite linear;
|
||||
animation: pong-loader-paddle-1 1500ms infinite linear;
|
||||
background: #353c39;
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
display: inline-block;
|
||||
height: 60px;
|
||||
overflow: hidden;
|
||||
.pong-spinner {
|
||||
height: 100px;
|
||||
margin: 50px auto;
|
||||
position: relative;
|
||||
text-indent: 100%;
|
||||
width: 80px; }
|
||||
width: 200px; }
|
||||
.pong-spinner i {
|
||||
animation: ball 2s infinite linear;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
height: 10px;
|
||||
position: absolute;
|
||||
width: 10px; }
|
||||
|
||||
.pong-loader:not(:required):before {
|
||||
-moz-animation: pong-loader-paddle-2 1500ms infinite linear;
|
||||
-webkit-animation: pong-loader-paddle-2 1500ms infinite linear;
|
||||
animation: pong-loader-paddle-2 1500ms infinite linear;
|
||||
-moz-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
-webkit-box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
box-shadow: inset #353c39 0 0 0 0, inset #353c39 0 -40px 0 0, inset #353c39 -3px 0 0 0, inset #8cdb8b -10px 0 0 0;
|
||||
.pong-spinner:before,
|
||||
.pong-spinner:after {
|
||||
animation: left-player 2s infinite linear;
|
||||
background: #fff;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
height: 30px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 10px; }
|
||||
width: 5px; }
|
||||
|
||||
.pong-loader:not(:required):after {
|
||||
-moz-animation: pong-loader 1500ms infinite linear;
|
||||
-webkit-animation: pong-loader 1500ms infinite linear;
|
||||
animation: pong-loader 1500ms infinite linear;
|
||||
background: #8cdb8b;
|
||||
-moz-border-radius: 50%;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 10px;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 10px; }
|
||||
.pong-spinner:after {
|
||||
animation: right-player 2s infinite linear;
|
||||
right: 0; }
|
||||
|
||||
@keyframes left-player {
|
||||
0% {
|
||||
top: 0; }
|
||||
50% {
|
||||
top: 70px; }
|
||||
100% {
|
||||
top: 0; } }
|
||||
|
||||
@keyframes right-player {
|
||||
0% {
|
||||
top: 70px; }
|
||||
50% {
|
||||
top: 0; }
|
||||
100% {
|
||||
top: 70px; } }
|
||||
|
||||
@keyframes ball {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 20px; }
|
||||
25% {
|
||||
left: 190px;
|
||||
top: 50px; }
|
||||
50% {
|
||||
left: 5px;
|
||||
top: 80px; }
|
||||
75% {
|
||||
left: 190px;
|
||||
top: 50px; }
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 20px; } }
|
||||
|
||||
.application-detail-view section.info {
|
||||
float: left;
|
||||
|
|
Binary file not shown.
|
@ -18,9 +18,11 @@
|
|||
<%= model.get('desc') %>
|
||||
</div>
|
||||
<% } else if (model.get('status') === "loaded" || model.get('status') === 'unloaded') { %>
|
||||
<div class="corneredBadge <%= model.get('status') %>">
|
||||
<%= model.get('status') %>
|
||||
</div>
|
||||
<% if (!model.get('locked')) { %>
|
||||
<div class="corneredBadge <%= model.get('status') %>">
|
||||
<%= model.get('status') %>
|
||||
</div>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
<script id="progressBase.ejs" type="text/template">
|
||||
<div class="progress-view">
|
||||
<div class="progress-content">
|
||||
<!--<i style="visibility:hidden" class="fa fa-spinner fa-spin"></i>-->
|
||||
<div class="pong-loader">
|
||||
Loading…
|
||||
</div>
|
||||
<div class="pong-spinner"><i /></div>
|
||||
</div>
|
||||
<div class="progress-message">
|
||||
<div class="progress-text"></div>
|
||||
|
|
|
@ -43,17 +43,26 @@
|
|||
|
||||
this.collection.each(function(model) {
|
||||
|
||||
$('#collection_' + model.get("name")).find('.corneredBadge').removeClass('loaded unloaded');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').addClass(model.get("status"));
|
||||
if (!model.get("locked")) {
|
||||
$('#collection_' + model.get("name")).find('.corneredBadge').removeClass('loaded unloaded');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').addClass(model.get("status"));
|
||||
}
|
||||
|
||||
if (model.get("locked") || model.get("status") === 'loading') {
|
||||
$('#collection_' + model.get("name")).addClass('locked');
|
||||
if (model.get("locked")) {
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("desc"));
|
||||
}
|
||||
else {
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$('#collection_' + model.get("name")).removeClass('locked');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
if ($('#collection_' + model.get("name") + ' .corneredBadge').hasClass('inProgress')) {
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').text(model.get("status"));
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').removeClass('inProgress');
|
||||
$('#collection_' + model.get("name") + ' .corneredBadge').addClass('loaded');
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
.progress-view {
|
||||
background-color: $c-progress-bg;
|
||||
border: 1px solid $c-white;
|
||||
border-radius: 2px;
|
||||
color: $c-nav-bg;
|
||||
height: 188px;
|
||||
|
@ -21,9 +20,9 @@
|
|||
width: 300px;
|
||||
|
||||
.progress-content {
|
||||
margin-left: 90px;
|
||||
margin-top: 10px;
|
||||
|
||||
border: 5px solid $c-white;
|
||||
|
||||
.fa-spinner {
|
||||
font-size: 100pt;
|
||||
}
|
||||
|
@ -36,7 +35,7 @@
|
|||
color: $c-white;
|
||||
font-weight: 200;
|
||||
height: 44px;
|
||||
margin-top: 33px;
|
||||
margin-top: -25px;
|
||||
padding-top: 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -66,326 +65,71 @@
|
|||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.pong-loader {
|
||||
margin-left: 17px;
|
||||
margin-top: 35px;
|
||||
}
|
||||
|
||||
@-moz-keyframes pong-loader {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
25% {
|
||||
left: 65px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
50% {
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
75% {
|
||||
left: 65px;
|
||||
top: 70%;
|
||||
}
|
||||
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 0%;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes pong-loader {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
25% {
|
||||
left: 65px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
50% {
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
75% {
|
||||
left: 65px;
|
||||
top: 70%;
|
||||
}
|
||||
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 0%;
|
||||
}
|
||||
}
|
||||
@keyframes pong-loader {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
25% {
|
||||
left: 65px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
50% {
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
75% {
|
||||
left: 65px;
|
||||
top: 70%;
|
||||
}
|
||||
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 0%;
|
||||
}
|
||||
}
|
||||
@-moz-keyframes pong-loader-paddle-1 {
|
||||
0% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
25% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
75% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes pong-loader-paddle-1 {
|
||||
0% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
25% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
75% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
}
|
||||
@keyframes pong-loader-paddle-1 {
|
||||
0% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
25% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 15px 0 0, inset $c-progress-shadow 0 -25px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 10px 0 0, inset $c-progress-shadow 0 -30px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
75% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 5px 0 0, inset $c-progress-shadow 0 -35px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
}
|
||||
@-moz-keyframes pong-loader-paddle-2 {
|
||||
0% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
75% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes pong-loader-paddle-2 {
|
||||
0% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
75% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
}
|
||||
@keyframes pong-loader-paddle-2 {
|
||||
0% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 30px 0 0, inset $c-progress-shadow 0 -10px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
62.5% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 40px 0 0, inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
75% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 20px 0 0, inset $c-progress-shadow 0 -20px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow 3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.pong-loader:not(:required) {
|
||||
-moz-animation: pong-loader-paddle-1 1500ms infinite linear;
|
||||
-webkit-animation: pong-loader-paddle-1 1500ms infinite linear;
|
||||
animation: pong-loader-paddle-1 1500ms infinite linear;
|
||||
background: $c-progress-shadow;
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
display: inline-block;
|
||||
height: 60px;
|
||||
overflow: hidden;
|
||||
.pong-spinner {
|
||||
height: 100px;
|
||||
margin: 50px auto;
|
||||
position: relative;
|
||||
text-indent: 100%;
|
||||
width: 80px;
|
||||
width: 200px;
|
||||
|
||||
i {
|
||||
animation: ball 2s infinite linear;
|
||||
background: $c-white;
|
||||
border-radius: 10px;
|
||||
height: 10px;
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.pong-loader:not(:required):before {
|
||||
-moz-animation: pong-loader-paddle-2 1500ms infinite linear;
|
||||
-webkit-animation: pong-loader-paddle-2 1500ms infinite linear;
|
||||
animation: pong-loader-paddle-2 1500ms infinite linear;
|
||||
-moz-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
-webkit-box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
box-shadow: inset $c-progress-shadow 0 0 0 0, inset $c-progress-shadow 0 -40px 0 0, inset $c-progress-shadow -3px 0 0 0, inset $c-progress-shadow-2 -10px 0 0 0;
|
||||
.pong-spinner:before,
|
||||
.pong-spinner:after {
|
||||
animation: left-player 2s infinite linear;
|
||||
background: $c-white;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
height: 30px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 10px;
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
.pong-loader:not(:required):after {
|
||||
-moz-animation: pong-loader 1500ms infinite linear;
|
||||
-webkit-animation: pong-loader 1500ms infinite linear;
|
||||
animation: pong-loader 1500ms infinite linear;
|
||||
background: $c-progress-shadow-2;
|
||||
-moz-border-radius: 50%;
|
||||
-webkit-border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
display: block;
|
||||
height: 10px;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 10px;
|
||||
.pong-spinner:after {
|
||||
animation: right-player 2s infinite linear;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
@keyframes left-player {
|
||||
0% { top: 0; }
|
||||
50% { top: 70px; }
|
||||
100% { top: 0; }
|
||||
}
|
||||
@keyframes right-player {
|
||||
0% { top: 70px; }
|
||||
50% { top: 0; }
|
||||
100% { top: 70px; }
|
||||
}
|
||||
@keyframes ball {
|
||||
0% {
|
||||
left: 5px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
25% {
|
||||
left: 190px;
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
50% {
|
||||
left: 5px;
|
||||
top: 80px;
|
||||
}
|
||||
|
||||
75% {
|
||||
left: 190px;
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
100% {
|
||||
left: 5px;
|
||||
top: 20px;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,195 +0,0 @@
|
|||
AC_DEFUN([ACX_PTHREAD], [
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
acx_pthread_ok=no
|
||||
|
||||
# We used to check for pthread.h first, but this fails if pthread.h
|
||||
# requires special compiler flags (e.g. on True64 or Sequent).
|
||||
# It gets checked for in the link test anyway.
|
||||
|
||||
# First of all, check if the user has set any of the PTHREAD_LIBS,
|
||||
# etcetera environment variables, and if threads linking works using
|
||||
# them:
|
||||
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
|
||||
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
|
||||
AC_MSG_RESULT($acx_pthread_ok)
|
||||
if test x"$acx_pthread_ok" = xno; then
|
||||
PTHREAD_LIBS=""
|
||||
PTHREAD_CFLAGS=""
|
||||
fi
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
fi
|
||||
|
||||
# We must check for the threads library under a number of different
|
||||
# names; the ordering is very important because some systems
|
||||
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
|
||||
# libraries is broken (non-POSIX).
|
||||
|
||||
# Create a list of thread flags to try. Items starting with a "-" are
|
||||
# C compiler flags, and other items are library names, except for "none"
|
||||
# which indicates that we try without any flags at all, and "pthread-config"
|
||||
# which is a program returning the flags for the Pth emulation library.
|
||||
|
||||
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
|
||||
|
||||
# The ordering *is* (sometimes) important. Some notes on the
|
||||
# individual items follow:
|
||||
|
||||
# pthreads: AIX (must check this before -lpthread)
|
||||
# none: in case threads are in libc; should be tried before -Kthread and
|
||||
# other compiler flags to prevent continual compiler warnings
|
||||
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
|
||||
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
|
||||
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
|
||||
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
|
||||
# -pthreads: Solaris/gcc
|
||||
# -mthreads: Mingw32/gcc, Lynx/gcc
|
||||
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
|
||||
# doesn't hurt to check since this sometimes defines pthreads too;
|
||||
# also defines -D_REENTRANT)
|
||||
# ... -mt is also the pthreads flag for HP/aCC
|
||||
# pthread: Linux, etcetera
|
||||
# --thread-safe: KAI C++
|
||||
# pthread-config: use pthread-config program (for GNU Pth library)
|
||||
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*solaris*)
|
||||
|
||||
# On Solaris (at least, for some versions), libc contains stubbed
|
||||
# (non-functional) versions of the pthreads routines, so link-based
|
||||
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
|
||||
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
|
||||
# a function called by this macro, so we could check for that, but
|
||||
# who knows whether they'll stub that too in a future libc.) So,
|
||||
# we'll just look for -pthreads and -lpthread first:
|
||||
|
||||
acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
|
||||
;;
|
||||
esac
|
||||
|
||||
if test x"$acx_pthread_ok" = xno; then
|
||||
for flag in $acx_pthread_flags; do
|
||||
|
||||
case $flag in
|
||||
none)
|
||||
AC_MSG_CHECKING([whether pthreads work without any flags])
|
||||
;;
|
||||
|
||||
-*)
|
||||
AC_MSG_CHECKING([whether pthreads work with $flag])
|
||||
PTHREAD_CFLAGS="$flag"
|
||||
;;
|
||||
|
||||
pthread-config)
|
||||
AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
|
||||
if test x"$acx_pthread_config" = xno; then continue; fi
|
||||
PTHREAD_CFLAGS="`pthread-config --cflags`"
|
||||
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
|
||||
;;
|
||||
|
||||
*)
|
||||
AC_MSG_CHECKING([for the pthreads library -l$flag])
|
||||
PTHREAD_LIBS="-l$flag"
|
||||
;;
|
||||
esac
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
# Check for various functions. We must include pthread.h,
|
||||
# since some functions may be macros. (On the Sequent, we
|
||||
# need a special flag -Kthread to make this header compile.)
|
||||
# We check for pthread_join because it is in -lpthread on IRIX
|
||||
# while pthread_create is in libc. We check for pthread_attr_init
|
||||
# due to DEC craziness with -lpthreads. We check for
|
||||
# pthread_cleanup_push because it is one of the few pthread
|
||||
# functions on Solaris that doesn't have a non-functional libc stub.
|
||||
# We try pthread_create on general principles.
|
||||
AC_TRY_LINK([#include <pthread.h>],
|
||||
[pthread_t th; pthread_join(th, 0);
|
||||
pthread_attr_init(0); pthread_cleanup_push(0, 0);
|
||||
pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
|
||||
[acx_pthread_ok=yes])
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
AC_MSG_RESULT($acx_pthread_ok)
|
||||
if test "x$acx_pthread_ok" = xyes; then
|
||||
break;
|
||||
fi
|
||||
|
||||
PTHREAD_LIBS=""
|
||||
PTHREAD_CFLAGS=""
|
||||
done
|
||||
fi
|
||||
|
||||
# Various other checks:
|
||||
if test "x$acx_pthread_ok" = xyes; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
|
||||
AC_MSG_CHECKING([for joinable pthread attribute])
|
||||
attr_name=unknown
|
||||
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
|
||||
AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
|
||||
[attr_name=$attr; break])
|
||||
done
|
||||
AC_MSG_RESULT($attr_name)
|
||||
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
|
||||
AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
|
||||
[Define to necessary symbol if this constant
|
||||
uses a non-standard name on your system.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([if more special flags are required for pthreads])
|
||||
flag=no
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
|
||||
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
||||
esac
|
||||
AC_MSG_RESULT(${flag})
|
||||
if test "x$flag" != xno; then
|
||||
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
|
||||
fi
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
# More AIX lossage: must compile with xlc_r or cc_r
|
||||
if test x"$GCC" != xyes; then
|
||||
AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
|
||||
else
|
||||
PTHREAD_CC=$CC
|
||||
fi
|
||||
else
|
||||
PTHREAD_CC="$CC"
|
||||
fi
|
||||
|
||||
AC_SUBST(PTHREAD_LIBS)
|
||||
AC_SUBST(PTHREAD_CFLAGS)
|
||||
AC_SUBST(PTHREAD_CC)
|
||||
|
||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
||||
if test x"$acx_pthread_ok" = xyes; then
|
||||
ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
|
||||
:
|
||||
else
|
||||
acx_pthread_ok=no
|
||||
$2
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
])dnl ACX_PTHREAD
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
dnl @synopsis AX_CXX_CHECK_LIB(libname, include, functioname, action-if, action-if-not, libs)
|
||||
|
||||
AC_DEFUN([AX_CXX_CHECK_LIB],
|
||||
[m4_ifval([$4], , [AH_CHECK_LIB([$1])])dnl
|
||||
AS_LITERAL_IF([$1],
|
||||
[AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$3])],
|
||||
[AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1''_$3])])dnl
|
||||
AC_CACHE_CHECK([for $3 in -l$1], ac_Lib,
|
||||
[ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-l$1 $6 $LIBS"
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
||||
$2
|
||||
],
|
||||
[
|
||||
$3
|
||||
])],
|
||||
[AS_VAR_SET(ac_Lib, yes)],
|
||||
[AS_VAR_SET(ac_Lib, no)])
|
||||
LIBS=$ac_check_lib_save_LIBS])
|
||||
AS_IF([test AS_VAR_GET(ac_Lib) = yes],
|
||||
[m4_default([$4], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1)) LIBS="-l$1 $LIBS"])],
|
||||
[$5])dnl
|
||||
AS_VAR_POPDEF([ac_Lib])dnl
|
||||
])# AC_CHECK_LIB
|
|
@ -1,142 +0,0 @@
|
|||
# ============================================================================
|
||||
# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
|
||||
# ============================================================================
|
||||
#
|
||||
# SYNOPSIS
|
||||
#
|
||||
# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])
|
||||
#
|
||||
# DESCRIPTION
|
||||
#
|
||||
# Check for baseline language coverage in the compiler for the C++11
|
||||
# standard; if necessary, add switches to CXXFLAGS to enable support.
|
||||
#
|
||||
# The first argument, if specified, indicates whether you insist on an
|
||||
# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
|
||||
# -std=c++11). If neither is specified, you get whatever works, with
|
||||
# preference for an extended mode.
|
||||
#
|
||||
# The second argument, if specified 'mandatory' or if left unspecified,
|
||||
# indicates that baseline C++11 support is required and that the macro
|
||||
# should error out if no mode with that support is found. If specified
|
||||
# 'optional', then configuration proceeds regardless, after defining
|
||||
# HAVE_CXX11 if and only if a supporting mode is found.
|
||||
#
|
||||
# LICENSE
|
||||
#
|
||||
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
|
||||
# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
|
||||
# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
|
||||
# Copyright (c) 2014 Alexey Sokolov <sokolov@google.com>
|
||||
#
|
||||
# Copying and distribution of this file, with or without modification, are
|
||||
# permitted in any medium without royalty provided the copyright notice
|
||||
# and this notice are preserved. This file is offered as-is, without any
|
||||
# warranty.
|
||||
|
||||
#serial 4
|
||||
|
||||
m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[
|
||||
template <typename T>
|
||||
struct check
|
||||
{
|
||||
static_assert(sizeof(int) <= sizeof(T), "not big enough");
|
||||
};
|
||||
|
||||
struct Base {
|
||||
virtual void f() {}
|
||||
};
|
||||
struct Child : public Base {
|
||||
virtual void f() override {}
|
||||
};
|
||||
|
||||
typedef check<check<bool>> right_angle_brackets;
|
||||
|
||||
int a;
|
||||
decltype(a) b;
|
||||
|
||||
typedef check<int> check_type;
|
||||
check_type c;
|
||||
check_type&& cr = static_cast<check_type&&>(c);
|
||||
|
||||
auto d = a;
|
||||
auto l = [](){};
|
||||
]])
|
||||
|
||||
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
|
||||
m4_if([$1], [], [],
|
||||
[$1], [ext], [],
|
||||
[$1], [noext], [],
|
||||
[m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl
|
||||
m4_if([$2], [], [ax_cxx_compile_cxx11_required=true],
|
||||
[$2], [mandatory], [ax_cxx_compile_cxx11_required=true],
|
||||
[$2], [optional], [ax_cxx_compile_cxx11_required=false],
|
||||
[m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])
|
||||
AC_LANG_PUSH([C++])dnl
|
||||
ac_success=no
|
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features by default,
|
||||
ax_cv_cxx_compile_cxx11,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
|
||||
[ax_cv_cxx_compile_cxx11=yes],
|
||||
[ax_cv_cxx_compile_cxx11=no])])
|
||||
if test x$ax_cv_cxx_compile_cxx11 = xyes; then
|
||||
ac_success=yes
|
||||
fi
|
||||
|
||||
m4_if([$1], [noext], [], [dnl
|
||||
if test x$ac_success = xno; then
|
||||
for switch in -std=gnu++11 -std=gnu++0x; do
|
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
|
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
|
||||
$cachevar,
|
||||
[ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $switch"
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
|
||||
[eval $cachevar=yes],
|
||||
[eval $cachevar=no])
|
||||
CXXFLAGS="$ac_save_CXXFLAGS"])
|
||||
if eval test x\$$cachevar = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS $switch"
|
||||
ac_success=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi])
|
||||
|
||||
m4_if([$1], [ext], [], [dnl
|
||||
if test x$ac_success = xno; then
|
||||
for switch in -std=c++11 -std=c++0x; do
|
||||
cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
|
||||
AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
|
||||
$cachevar,
|
||||
[ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $switch"
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
|
||||
[eval $cachevar=yes],
|
||||
[eval $cachevar=no])
|
||||
CXXFLAGS="$ac_save_CXXFLAGS"])
|
||||
if eval test x\$$cachevar = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS $switch"
|
||||
ac_success=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi])
|
||||
AC_LANG_POP([C++])
|
||||
if test x$ax_cxx_compile_cxx11_required = xtrue; then
|
||||
if test x$ac_success = xno; then
|
||||
AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.])
|
||||
fi
|
||||
else
|
||||
if test x$ac_success = xno; then
|
||||
HAVE_CXX11=0
|
||||
AC_MSG_NOTICE([No compiler with C++11 support was found])
|
||||
else
|
||||
HAVE_CXX11=1
|
||||
AC_DEFINE(HAVE_CXX11,1,
|
||||
[define if the compiler supports basic C++11 syntax])
|
||||
fi
|
||||
|
||||
AC_SUBST(HAVE_CXX11)
|
||||
fi
|
||||
])
|
|
@ -1,80 +0,0 @@
|
|||
dnl
|
||||
dnl AX_PROG_GPERF (MINIMUM-VERSION)
|
||||
dnl
|
||||
dnl Check for availability of gperf.
|
||||
dnl Abort if not found or if current version is not up to par.
|
||||
dnl
|
||||
|
||||
AC_DEFUN([AX_PROG_GPERF],[
|
||||
AC_PATH_PROG(GPERF, gperf, no)
|
||||
if test "$GPERF" = no; then
|
||||
AC_MSG_ERROR(Could not find gperf)
|
||||
fi
|
||||
min_gperf_version=ifelse([$1], ,2.7,$1)
|
||||
AC_MSG_CHECKING(for gperf - version >= $min_gperf_version)
|
||||
gperf_major_version=`$GPERF --version | head -1 | \
|
||||
sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
||||
gperf_minor_version=`$GPERF --version | head -1 | \
|
||||
sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
||||
no_gperf=""
|
||||
dnl
|
||||
dnl Now check if the installed gperf is sufficiently new.
|
||||
dnl
|
||||
AC_TRY_RUN([
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static char*
|
||||
my_strdup (char *str)
|
||||
{
|
||||
char *new_str;
|
||||
|
||||
if (str)
|
||||
{
|
||||
new_str = malloc ((strlen (str) + 1) * sizeof(char));
|
||||
strcpy (new_str, str);
|
||||
}
|
||||
else
|
||||
new_str = NULL;
|
||||
|
||||
return new_str;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
char *tmp_version;
|
||||
|
||||
int major;
|
||||
int minor;
|
||||
|
||||
/* HP/UX 9 (%@#!) writes to sscanf strings */
|
||||
tmp_version = my_strdup("$min_gperf_version");
|
||||
if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
|
||||
printf ("%s, bad version string\n", "$min_gperf_version");
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (($gperf_major_version > major) ||
|
||||
(($gperf_major_version == major) && ($gperf_minor_version >= minor))) {
|
||||
return 0;
|
||||
} else {
|
||||
printf ("\n");
|
||||
printf ("*** An old version of gperf ($gperf_major_version.$gperf_minor_version) was found.\n");
|
||||
printf ("*** You need a version of gperf newer than %d.%d.%d. The latest version of\n",
|
||||
major, minor);
|
||||
printf ("*** gperf is always available from ftp://ftp.gnu.org.\n");
|
||||
printf ("***\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
],,no_gperf=yes,[/bin/true])
|
||||
if test "x$no_gperf" = x ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
])
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
dnl borrowed from php-fpm configure
|
||||
|
||||
AC_DEFUN([AC_CLOCK],
|
||||
[
|
||||
have_clock_gettime=no
|
||||
|
||||
AC_MSG_CHECKING([for clock_gettime])
|
||||
|
||||
AC_TRY_LINK([ #include <time.h> ], [struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);], [
|
||||
have_clock_gettime=yes
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
|
||||
if test "$have_clock_gettime" = "no"; then
|
||||
AC_MSG_CHECKING([for clock_gettime in -lrt])
|
||||
|
||||
SAVED_LIBS=$LIBS
|
||||
LIBS="$LIBS -lrt"
|
||||
|
||||
AC_TRY_LINK([ #include <time.h> ], [struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);], [
|
||||
have_clock_gettime=yes
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
LIBS="$SAVED_LIBS"
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
fi
|
||||
|
||||
if test "$have_clock_gettime" = "yes"; then
|
||||
AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [do we have clock_gettime?])
|
||||
fi
|
||||
|
||||
have_clock_get_time=no
|
||||
|
||||
if test "$have_clock_gettime" = "no"; then
|
||||
AC_MSG_CHECKING([for clock_get_time])
|
||||
|
||||
AC_TRY_RUN([ #include <mach/mach.h>
|
||||
#include <mach/clock.h>
|
||||
#include <mach/mach_error.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
|
||||
ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
|
||||
|
||||
if (ret != KERN_SUCCESS) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
ret = clock_get_time(aClock, &aTime);
|
||||
if (ret != KERN_SUCCESS) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
], [
|
||||
have_clock_get_time=yes
|
||||
AC_MSG_RESULT([yes])
|
||||
], [
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
fi
|
||||
|
||||
if test "$have_clock_get_time" = "yes"; then
|
||||
AC_DEFINE([HAVE_CLOCK_GET_TIME], 1, [do we have clock_get_time?])
|
||||
fi
|
||||
RT_LIBS=$LIBS
|
||||
AC_SUBST(RT_LIBS)
|
||||
SAVED_LIBS=$LIBS
|
||||
])
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
||||
dnl End:
|
|
@ -1,89 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl checks if the CC compiler supports an option
|
||||
dnl
|
||||
dnl usage: TRI_TRY_CC_OPTION(flag, action-if-ok, action-if-no-ok)
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([TRI_TRY_CC_OPTION],
|
||||
[AC_MSG_CHECKING([$1 for $CC])
|
||||
AS_IF([AC_TRY_COMMAND([${CC} -Werror $1 -xc /dev/null -S -o /dev/null])],
|
||||
AC_MSG_RESULT([yes])
|
||||
[$2],
|
||||
AC_MSG_RESULT([no])
|
||||
[$3])])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl checks if the C++ compiler supports an option
|
||||
dnl
|
||||
dnl usage: TRI_TRY_CXX_OPTION(flag, action-if-ok, action-if-no-ok)
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([TRI_TRY_CXX_OPTION],
|
||||
[AC_MSG_CHECKING([$1] for $CXX)
|
||||
AS_IF([AC_TRY_COMMAND([${CXX} -Werror $1 -xc++ /dev/null -S -o /dev/null])],
|
||||
AC_MSG_RESULT([yes])
|
||||
[$2],
|
||||
AC_MSG_RESULT([no])
|
||||
[$3])])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl generate correct include, either -I oder -isystem
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([TR_INCLUDE],[
|
||||
if test "x$1" != "x"; then
|
||||
if test "x$INCPREFIX" != "x-I"; then
|
||||
$1=`echo $[]$1 | sed -e "s:-I:$INCPREFIX:g"`
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl find absolute path for library
|
||||
dnl
|
||||
dnl usage: TR_LIBRARY(library name)
|
||||
dnl
|
||||
dnl returns: tr_library
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([TR_LIBRARY],[
|
||||
tr_library=""
|
||||
|
||||
for tr_path in $LDFLAGS; do
|
||||
case $tr_path in
|
||||
-L*)
|
||||
path=`echo $tr_path | sed -e 's:^-L::'`
|
||||
if test -f "$path/lib$1.a"; then
|
||||
tr_library="$path/lib$1.a"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl check for std::unordered_map::emplace()
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([AX_CXX_CHECK_UNORDERED_MAP_EMPLACE], [
|
||||
AC_LANG_PUSH([C++])
|
||||
AC_MSG_CHECKING([whether C++ has support for std::unordered_map::emplace()])
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_SOURCE[
|
||||
#include <unordered_map>
|
||||
void test () {
|
||||
std::unordered_map<int, int> x;
|
||||
x.emplace(1, 1);
|
||||
}
|
||||
]],
|
||||
[eval unordered_map_emplace=yes],
|
||||
[eval unordered_map_emplace=no]
|
||||
)
|
||||
AC_MSG_RESULT([$unordered_map_emplace])
|
||||
AC_LANG_POP([C++])
|
||||
if test x$unordered_map_emplace = xno; then
|
||||
AC_MSG_ERROR([C++ has no support for std::unordered_map::emplace()])
|
||||
fi
|
||||
])
|
|
@ -1,44 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl option for converage tool
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(gcov,
|
||||
AS_HELP_STRING([--enable-gcov], [enables gnu coverage (default: no)]),
|
||||
tr_COVERAGE="${enableval:-yes}",
|
||||
tr_COVERAGE=no
|
||||
)
|
||||
|
||||
if test "x$tr_COVERAGE" = xyes; then
|
||||
if test "x$GCC" = xyes; then
|
||||
GCOV_CXXFLAGS="-fprofile-arcs -ftest-coverage"
|
||||
GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
|
||||
GCOV_LDFLAGS=""
|
||||
GCOV_LIBS="-lgcov"
|
||||
else
|
||||
AC_MSG_ERROR([do not how to enable coverage compilation])
|
||||
fi
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(ENABLE_GCOV, test "x$tr_COVERAGE" = xyes)
|
||||
|
||||
AC_SUBST(GCOV_CXXFLAGS)
|
||||
AC_SUBST(GCOV_CFLAGS)
|
||||
AC_SUBST(GCOV_LDFLAGS)
|
||||
AC_SUBST(GCOV_LIBS)
|
||||
|
||||
CFLAGS="${CFLAGS} ${GCOV_CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS} ${GCOV_CXXFLAGS}"
|
||||
LDFLAGS="${LDFLAGS} ${GCOV_LDFLAGS}"
|
||||
LIBS="${LIBS} ${GCOV_LIBS} "
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl informational output
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
if test "x$tr_COVERAGE" = xyes; then
|
||||
FLAG_INFO="$FLAG_INFO|GCOV_CXXFLAGS: ${GCOV_CXXFLAGS}"
|
||||
FLAG_INFO="$FLAG_INFO|GCOV_LDFLAGS: ${GCOV_LDFLAGS}"
|
||||
FLAG_INFO="$FLAG_INFO|GCOV_LIBS: ${GCOV_LIBS}"
|
||||
fi
|
|
@ -1,66 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- DOCUMENTATION
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
AC_MSG_NOTICE([CHECKING FOR DOCUMENTATION UTILS])
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl checks for markdown
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_PATH_PROG([MARKDOWN_EXEC], [markdown], [], [$PATH])
|
||||
|
||||
if test -n "$MARKDOWN_EXEC"; then
|
||||
HAVE_MARKDOWN="YES"
|
||||
else
|
||||
HAVE_MARKDOWN="NO"
|
||||
fi
|
||||
|
||||
AC_SUBST(MARKDOWN_EXEC)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_MARKDOWN, test "x$HAVE_MARKDOWN" = xYES)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl checks for html2text
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_PATH_PROG([HTML2TEXT_EXEC], [html2text], [], [$PATH])
|
||||
|
||||
if test -n "$HTML2TEXT_EXEC"; then
|
||||
HAVE_HTML2TEXT="YES"
|
||||
else
|
||||
HAVE_HTML2TEXT="NO"
|
||||
fi
|
||||
|
||||
AC_SUBST(HTML2TEXT_EXEC)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_HTML2TEXT, test "x$HAVE_HTML2TEXT" = xYES)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl informational output
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test "x$HAVE_MARKDOWN" = xYES; then
|
||||
BASIC_INFO="$BASIC_INFO|MARKDOWN support: enabled ($MARKDOWN_EXEC)"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|MARKDOWN support: disabled"
|
||||
fi
|
||||
|
||||
if test "x$HAVE_HTML2TEXT" = xYES; then
|
||||
BASIC_INFO="$BASIC_INFO|HTML2TEXT support: enabled ($HTML2TEXT_EXEC)"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|HTML2TEXT support: disabled"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- END-OF-FILE
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
||||
dnl End:
|
|
@ -1,11 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl checks for large file support
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_LANG(C)
|
||||
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
AC_LANG(C++)
|
|
@ -1,146 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- MAINTAINER MODE
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
if test "x$USE_MAINTAINER_MODE" = "xyes"; then
|
||||
AC_DEFINE_UNQUOTED(TRI_ENABLE_MAINTAINER_MODE, 1, [true if maintainer mode is enabled])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(ENABLE_MAINTAINER_MODE, test "x$USE_MAINTAINER_MODE" = xyes)
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- FAILURE TESTS
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(failure-tests,
|
||||
AS_HELP_STRING([--enable-failure-tests], [enable failure testing (default: no)]),
|
||||
[tr_FAILURE_TESTS="$enableval"],
|
||||
[tr_FAILURE_TESTS="no"]
|
||||
)
|
||||
|
||||
if test "x$tr_FAILURE_TESTS" = xyes; then
|
||||
if test "x$USE_MAINTAINER_MODE" != "xyes"; then
|
||||
AC_MSG_ERROR([enabling the failure tests requires activating the maintainer mode, too])
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(TRI_ENABLE_FAILURE_TESTS, 1, [true if failure testing ins enabled])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(ENABLE_FAILURE_TESTS, test "x$tr_FAILURE_TESTS" = xyes)
|
||||
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl check for bison
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_WITH(bison,
|
||||
AS_HELP_STRING([--with-bison=EXECUTABLE], [path of the bison executable]),
|
||||
[BISON_PATH="$withval"]
|
||||
)
|
||||
|
||||
if test "x$USE_MAINTAINER_MODE" = xyes; then
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
AC_MSG_NOTICE([CHECKING BISON])
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
|
||||
if test "x$BISON_PATH" = "x"; then
|
||||
AC_CHECK_PROG(BISON, bison, bison)
|
||||
else
|
||||
BISON=$BISON_PATH
|
||||
fi
|
||||
|
||||
tr_bison_usable=no
|
||||
|
||||
if test "x$BISON" != x -a "x$BISON" != "x:"; then
|
||||
AC_MSG_CHECKING([if bison supports required features])
|
||||
|
||||
[tr_bison_version=`$BISON --version | head -1 | sed -e 's:^[^0-9]*::' | awk -F. '{print $1 * 10000 + $2 * 100 + $3}'`]
|
||||
|
||||
if test "$tr_bison_version" -ge 20401; then
|
||||
tr_bison_usable=yes
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($tr_bison_usable)
|
||||
fi
|
||||
|
||||
if test "x$tr_bison_usable" != "xyes"; then
|
||||
AC_MSG_ERROR([Please install bison version 2.4.1 or higher from http://ftp.gnu.org/gnu/bison/])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([BISON version])
|
||||
TRI_BISON_VERSION=`$BISON --version | head -1`
|
||||
AC_MSG_RESULT([$TRI_BISON_VERSION])
|
||||
|
||||
BASIC_INFO="$BASIC_INFO|BISON: ${TRI_BISON_VERSION}"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|BISON: disabled"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl check for flex
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test "x$USE_MAINTAINER_MODE" = xyes; then
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
AC_MSG_NOTICE([CHECKING FLEX])
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
|
||||
AC_PROG_LEX
|
||||
|
||||
tr_flex_usable=no
|
||||
|
||||
if test "x$LEX" != x -a "x$LEX" != "x:"; then
|
||||
AC_MSG_CHECKING([if flex supports required features])
|
||||
|
||||
[tr_flex_version=`$LEX --version | sed -e 's:^[^0-9]*::' | awk -F. '{print $1 * 10000 + $2 * 100 + $3}'`]
|
||||
|
||||
if test "$tr_flex_version" -ge 20535; then
|
||||
tr_flex_usable=yes
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($tr_flex_usable)
|
||||
fi
|
||||
|
||||
if test "x$tr_flex_usable" != "xyes"; then
|
||||
AC_MSG_ERROR([Please install flex version 2.5.35 or higher from http://ftp.gnu.org/gnu/flex/])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([FLEX version])
|
||||
TRI_FLEX_VERSION=`$LEX --version`
|
||||
AC_MSG_RESULT([$TRI_FLEX_VERSION])
|
||||
|
||||
BASIC_INFO="$BASIC_INFO|FLEX: ${TRI_FLEX_VERSION}"
|
||||
else
|
||||
BASIC_INFO="$BASIC_INFO|FLEX: disabled"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl execinfo - for backtraces in the C/C++ parts
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test "x$USE_MAINTAINER_MODE" = xyes; then
|
||||
AC_ARG_WITH(backtrace,
|
||||
[ --with-backtrace enable backtrace dumps],
|
||||
[ if test "x$withval" != "xno" ; then
|
||||
CFLAGS="$CFLAGS -rdynamic "
|
||||
LDFLAGS="$LDFLAGS -rdynamic "
|
||||
SERVER_LDFLAGS="$SERVER_LDFLAGS -rdynamic "
|
||||
AC_CHECK_FUNCS(backtrace)
|
||||
fi
|
||||
]
|
||||
)
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- END-OF-FILE
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(### @brief\\|## --SECTION--\\|# -\\*- \\)"
|
||||
dnl End:
|
|
@ -1,63 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl pthreads
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
AC_MSG_NOTICE([CHECKING FOR PTHREADS])
|
||||
AC_MSG_NOTICE([................................................................................])
|
||||
|
||||
AC_LANG(C)
|
||||
|
||||
ACX_PTHREAD(tr_PTHREAD=yes, tr_PTHREAD=no)
|
||||
|
||||
if test "x$tr_PTHREAD" = xno; then
|
||||
AC_MSG_ERROR([please install the pthread library])
|
||||
fi
|
||||
|
||||
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS}"
|
||||
LDFLAGS="${LDFLAGS} ${PTHREAD_CFLAGS}"
|
||||
LIBS="${LIBS} ${PTHREAD_LIBS} "
|
||||
|
||||
AC_LANG(C++)
|
||||
|
||||
SAVE_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
|
||||
|
||||
AC_MSG_CHECKING([broken __cxa_guard])
|
||||
|
||||
AC_RUN_IFELSE([AC_LANG_PROGRAM(
|
||||
[[
|
||||
#include <pthread.h>
|
||||
#include <string>
|
||||
|
||||
pthread_mutex_t mutex;
|
||||
|
||||
class A {
|
||||
public:
|
||||
std::string& a () {
|
||||
static std::string empty;
|
||||
return empty;
|
||||
}
|
||||
};
|
||||
]],
|
||||
[[
|
||||
pthread_mutex_init(&mutex, 0);
|
||||
A a;
|
||||
a.a();
|
||||
return 0;
|
||||
]])],
|
||||
[tr_cv_broken_cxa_guard=no],
|
||||
[tr_cv_broken_cxa_guard=yes],
|
||||
[tr_cv_broken_cxa_guard=yes])
|
||||
|
||||
AC_MSG_RESULT($tr_cv_broken_cxa_guard)
|
||||
|
||||
LDFLAGS="$SAVE_LDFLAGS"
|
||||
|
||||
if test "x$tr_cv_broken_cxa_guard" = xyes; then
|
||||
AC_DEFINE([BROKEN_CXA_GUARD], [1], [static programs have broken cxa_guard])
|
||||
fi
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- MATH
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
AC_MSG_NOTICE([CHECKING FOR MATH])
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
AC_LANG(C)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl checks for the MATH library
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_CHECK_LIB([m], [sincos], [MATH_LIBS="-lm"], )
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl add substitutions
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_SUBST(MATH_CPPFLAGS)
|
||||
AC_SUBST(MATH_LDFLAGS)
|
||||
AC_SUBST(MATH_LIBS)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl informational output
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
if test "x$tr_MATH" = xyes; then
|
||||
FLAG_INFO="$FLAG_INFO|MATH_CPPFLAGS: ${MATH_CPPFLAGS}"
|
||||
FLAG_INFO="$FLAG_INFO|MATH_LDFLAGS: ${MATH_LDFLAGS}"
|
||||
FLAG_INFO="$FLAG_INFO|MATH_LIBS: ${MATH_LIBS}"
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- END-OF-FILE
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
||||
dnl End:
|
|
@ -1,149 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl option for SSL support
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_ARG_WITH(openssl-inc,
|
||||
AS_HELP_STRING([--with-openssl-inc=DIR], [where the OpenSSL header files are located]),
|
||||
OPENSSL_CPPFLAGS="-I$withval"
|
||||
)
|
||||
|
||||
AC_ARG_WITH(openssl-lib,
|
||||
AS_HELP_STRING([--with-openssl-lib=DIR], [where the OpenSSL library files are located]),
|
||||
OPENSSL_LDFLAGS="-L$withval"
|
||||
)
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl check for OpenSSL
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
AC_MSG_NOTICE([CHECKING FOR OPENSSL])
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
AC_LANG(C)
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl save flags
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS"
|
||||
|
||||
SAVE_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
|
||||
|
||||
SAVE_LIBS="$LIBS"
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl check for header and library
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_CHECK_HEADERS([openssl/ssl.h],,AC_MSG_ERROR([please install the OpenSSL library]))
|
||||
|
||||
AC_CHECK_LIB([crypto], [CRYPTO_num_locks],
|
||||
OPENSSL_LIBS="-lcrypto $OPENSSL_LIBS",
|
||||
AC_MSG_ERROR([please install the OpenSSL library]),
|
||||
[-lz $LIBS])
|
||||
|
||||
AC_CHECK_LIB([ssl], [SSL_get_error],
|
||||
OPENSSL_LIBS="-lssl $OPENSSL_LIBS",
|
||||
AC_CHECK_LIB([ssl], [SSL_get_error],
|
||||
OPENSSL_LIBS="-lssl -ldl $OPENSSL_LIBS",
|
||||
AC_MSG_ERROR([Please install the OpenSSL library]),
|
||||
[-lcrypto -lz -ldl $LIBS])
|
||||
[-lcrypto -lz $LIBS])
|
||||
|
||||
dnl check if SSLv23_method returns a const method
|
||||
AC_MSG_CHECKING([return type of SSLv23_method])
|
||||
LIBS="-lcrypto -lssl -lz -ldl $LIBS"
|
||||
AC_TRY_COMPILE([#include <openssl/ssl.h>],
|
||||
[SSL_METHOD* meth = SSLv23_method();],
|
||||
tr_OPENSSL_NEEDS_CONST=no,
|
||||
tr_OPENSSL_NEEDS_CONST=yes)
|
||||
|
||||
if test "x$tr_OPENSSL_NEEDS_CONST" = "xyes"; then
|
||||
AC_MSG_RESULT([SSL_METHOD const*])
|
||||
AC_DEFINE_UNQUOTED(OPENSSL_NEEDS_CONST, 1, [true if SSLv23_method return SSL_METHOD const*])
|
||||
else
|
||||
AC_MSG_RESULT([SSL_METHOD*])
|
||||
fi
|
||||
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl fix include and static libraries
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
TR_INCLUDE([OPENSSL_CPPFLAGS])
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl add substitutions
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
AC_SUBST(OPENSSL_CPPFLAGS)
|
||||
AC_SUBST(OPENSSL_LDFLAGS)
|
||||
AC_SUBST(OPENSSL_LIBS)
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl grep openssl version number
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
main () {
|
||||
long sdnhg36ed = OPENSSL_VERSION_TEXT
|
||||
;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
AC_MSG_CHECKING([OPENSSL version])
|
||||
eval "$ac_cpp conftest.$ac_ext" | fgrep "long sdnhg36ed" | awk '{print $4 " " $5 " " $6 " " $7 " " $8 " " $9}' > conftest.output
|
||||
TRI_OPENSSL_VERSION=`head -1 conftest.output | sed -e 's: *$::'`
|
||||
AC_MSG_RESULT([$TRI_OPENSSL_VERSION])
|
||||
rm -f conftest*
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl verify version number
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
OPENSSL_WARNING=""
|
||||
|
||||
AC_TRY_COMPILE(
|
||||
[#include <openssl/opensslv.h>
|
||||
],
|
||||
[#if OPENSSL_VERSION_NUMBER < 0x1000107fL
|
||||
#error OpenSSL version is too old ...
|
||||
#endif],
|
||||
[ ],
|
||||
[OPENSSL_WARNING=" WARNING: OpenSSL version should be 1.0.1g or higher"
|
||||
AC_MSG_WARN([OpenSSL version should be 1.0.1g or higher.])
|
||||
])
|
||||
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl restore flags
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
LDFLAGS="$SAVE_LDFLAGS"
|
||||
CPPFLAGS="$SAVE_CPPFLAGS"
|
||||
LIBS="$SAVE_LIBS"
|
||||
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
dnl informational output
|
||||
dnl -----------------------------------------------------------------------------------------
|
||||
|
||||
LIB_INFO="$LIB_INFO|OPENSSL VERSION: ${TRI_OPENSSL_VERSION}${OPENSSL_WARNING}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|OPENSSL_CPPFLAGS: ${OPENSSL_CPPFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|OPENSSL_LDFLAGS: ${OPENSSL_LDFLAGS}"
|
||||
LIB_INFO="$LIB_INFO|OPENSSL_LIBS: ${OPENSSL_LIBS}"
|
||||
|
||||
LIB_INFO="$LIB_INFO|."
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
||||
dnl End:
|
|
@ -1,67 +0,0 @@
|
|||
dnl -*- mode: Autoconf; -*-
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- READLINE
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
AC_MSG_NOTICE([CHECKING FOR READLINE])
|
||||
AC_MSG_NOTICE([--------------------------------------------------------------------------------])
|
||||
|
||||
AC_LANG(C)
|
||||
|
||||
AC_ARG_ENABLE(readline,
|
||||
AS_HELP_STRING([--enable-readline], [enable readline support (default: yes)]),
|
||||
tr_READLINE="$enableval",
|
||||
tr_READLINE="maybe"
|
||||
)
|
||||
|
||||
if test "x$tr_DARWIN" = xyes; then
|
||||
if test "x$tr_READLINE" = xyes; then
|
||||
tr_READLINE="linenoise"
|
||||
elif test "x$tr_READLINE" = xreadline; then
|
||||
tr_READLINE="yes"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(readline,
|
||||
AS_HELP_STRING([--with-readline=DIR], [where the readline library and includes are located]),
|
||||
[READLINE_CPPFLAGS="-I$withval/include"
|
||||
READLINE_LDFLAGS="-L$withval/lib"
|
||||
READLINE="$withval"]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(readline-lib,
|
||||
AS_HELP_STRING([--with-readline-lib=DIR], [where the readline library is located]),
|
||||
[READLINE_LDFLAGS="-L$withval"]
|
||||
)
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl ----------------------------------------------------------------------------
|
||||
dnl --SECTION-- END-OF-FILE
|
||||
dnl ----------------------------------------------------------------------------
|
||||
|
||||
dnl Local Variables:
|
||||
dnl mode: outline-minor
|
||||
dnl outline-regexp: "^\\(dnl --SECTION--\\)"
|
||||
dnl End:
|
Loading…
Reference in New Issue