Commit Graph

41 Commits

Author SHA1 Message Date
Timothy Stack
8f7b08c9c5 [logfile] add notes for automatic decisions and fix compile errors
Fixes #864
2021-05-30 13:33:05 -07:00
Timothy Stack
dd9465cd10 [readline] some fixes for match display 2021-03-23 09:35:02 -07:00
Timothy Stack
f36954741d [build] use -fprofile-abs-path 2021-01-29 23:43:22 -08:00
Timothy Stack
49ebde5953 [build] remove pcrecpp and other stuff
Linking against a binary c++ lib suuuucckkkkkssss...
2021-01-29 11:12:02 -08:00
Timothy Stack
59665368ee [autoconf] check for libarchive 2020-10-20 22:53:59 -07:00
Suresh Sundriyal
091f3c04b4 [build] Get rid of configure errors 2020-09-22 17:23:51 -07:00
Suresh Sundriyal
d118a60a36 [cross-compile] Allow build artifacts to be built with build compilers.
While cross-compiling; bin2c and ptimec need to run during build on the
build-host. Currently; the host compiler is picked and the generated
binaries cannont be exec'ed causing the build to fail.

The change fixes the bin2c and ptimec compilation units to use the
build host compatible compiler.
2020-09-18 10:03:12 -07:00
Timothy Stack
84a7079e3f [main] capture stderr only after initscr() and fix curl configure detection 2020-09-02 15:39:27 -07:00
Timothy Stack
186cae4658 [build] add -static-libstdc++ and -static-libgcc by default
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-11 07:41:55 -07:00
Timothy Stack
fa296fca1b [listview] get a batch of rows from the source instead of a single one at a time
Also: bump to c++14 and added a helper template for creating sqlite virtual tables
2017-03-14 06:05:46 -07:00
Timothy Stack
44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
2016-12-05 16:34:30 -08:00
Suresh Sundriyal
6663740c5e [secure-mode] Disallow ATTACH statements completely.
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.

There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
2016-05-04 20:21:01 -07:00
Suresh Sundriyal
a13047a9ed [secure-mode] Check to see if URIs are enabled.
Check to see if URIs are enabled or not before continuing on with the
file uri checks.
2016-05-03 02:11:33 -07:00
Timothy Stack
27f300b677 [sql] some more json-related updates/fixes 2015-12-09 21:20:49 -08:00
Timothy Stack
6e0026dabc if curl-config --static-libs returns nothing, use the regular --libs option 2015-12-04 20:07:33 -08:00
Suresh Sundriyal
cca2669e31 [cURL] Allow libcurl to be dynamically linked in on OS X.
This fixes tstack/lnav#253

The libcurl.m4 macros will still continue to look for a static archive
for libcurl but if one is not found and the binary is being compiled on
OS X, they will pick up the dynamic library if one is available.
2015-09-12 23:48:56 -07:00
Timothy Stack
9555ad911a more build fixes 2015-08-02 07:41:09 -07:00
Timothy Stack
248dd78f63 [config] some libcurl changes for static linking 2015-07-25 07:01:29 -07:00
Timothy Stack
879bbd581e [pt] rough draft of tail for papertrail 2015-07-06 20:53:42 -07:00
Suresh Sundriyal
7e8a3f06f2 [build] Remove the mangled C++ symbol check. 2015-04-07 21:55:57 -07:00
Suresh Sundriyal
65959bab47 [build] Stop adding to the environment variables.
The AutoMake scripts honor the SQLITE3_XXX flags already. There is no need to
keep adding stuff to the environment variables.
2015-04-07 20:22:42 -07:00
Suresh Sundriyal
b53e3f2401 [build] Get rid of warnings from autoreconf.
* Remove some of the obsolete macros.
* Use AC_CONFIG_MACRO_DIR to allow compatibility with older versions of
  autoconf.
* Remove AU_ALIAS from curses macro.
2015-04-01 01:04:12 -07:00
Suresh Sundriyal
b9c8e18611 [build] Revert the LIBS variable after readline checks. 2015-03-29 01:53:29 -07:00
Suresh Sundriyal
707ccce9c0 [build] Stop readline macro from polluting the environment variables. 2015-03-29 01:19:51 -07:00
Suresh Sundriyal
2554f19b23 [build] macro refactor 2015-03-27 04:34:25 -07:00
Suresh Sundriyal
9f1da30515 [build] Add the '-pthread' to the list of extra libraries.
Instead of setting it manually.
2015-03-27 04:14:39 -07:00
Suresh Sundriyal
a903873f1b [build] Add '-pthread' to sqlite macro.
On some systems, sqlite3 requires pthread libraries to be linked in. Add
the flag so that autoconf can successfully compile and look for
'sqlite3_open'.
2015-03-26 20:40:41 -07:00
Suresh Sundriyal
a3bdb2355d [build] Fix the check for editline in readline macro. 2015-03-26 18:51:48 -07:00
Suresh Sundriyal
fcdc67eda9 Remove quotes from LNAV_ADDTO arguments. 2015-03-26 17:11:23 -07:00
Suresh Sundriyal
9aaf5d12c3 [build] Make readline macro depend on curses. 2015-03-24 00:21:11 -07:00
Suresh Sundriyal
de7024e820 [yajl macro] Remove unnecessary addition to libs. 2015-03-23 15:13:38 -07:00
Suresh Sundriyal
c83371c74e Fix the filename in pcre macro 2015-03-23 03:43:10 -07:00
Suresh Sundriyal
649f486d13 [File headers] Add some headers to m4 files.
Add the license and copyright headers to m4 files.
2015-03-23 03:23:05 -07:00
Suresh Sundriyal
13c6b82f8c [build] Fix SQLite3 realted m4 macros.
The current macro does not seem to honor the CFLAGS and LDFLAGS
variables if '--with-sqlite3=yes' is used. Fix this and some of
the other cruft in the macro.
2015-03-23 03:22:59 -07:00
Suresh Sundriyal
263ece0d93 Remove the check for libreadline.a
Do a standard check for libreadline and use '-lreadline' as usual.
2015-03-21 00:20:35 -07:00
Suresh Sundriyal
f52d9641ed [build] Make sure readline has the necessary symbols.
On FreeBSD variant, readline functionality is provided by editline which
is almost compatible but not quite. We could do a specific check for
editline but if editline adds the functionality in the future, this
check will still continue to fail. Instead look for one of the symbols
currently missing in editline as a sanity check.
2015-03-20 20:50:14 -07:00
Suresh Sundriyal
31c4669a8a [build] Fix the 'readline' ac macro.
The macro does not track the include directory when it is passed in
using the '--with-readline=/foo/bar' invocation of '--with-readline'
flag.

This change should fix the problem. I've tried to keep the functionality
exactly the same as before and converted the script to pure M4sh, which
should produce a more portable configure script.
2015-03-20 17:17:30 -07:00
Suresh Sundriyal
df5045a64c [build] break up lnav.m4 based on the functionality 2015-03-20 13:21:44 -07:00
Suresh Sundriyal
8031a83290 [build] Reimplement yajl m4 macro using only M4sh. 2015-03-19 03:49:45 -07:00
Suresh Sundriyal
fdf73c5744 [build] Add yajl related macros. 2015-03-14 01:57:31 -07:00
Suresh Sundriyal
7886ddbb12 [build] Move/Refactor aclocal macros.
* Move all the m4 macros in to their own directory.
* Rename 'ax_with_jemalloc.m4' -> 'lnav_with_jemalloc.m4' because
  'ax_with_*' is a convention for third-party aclocal macros in the
  official archives.
* Rename the methods to be more lnav specific.
2015-03-12 23:47:34 -07:00