xaizek / pinfo (License: GPLv2 only) (since 2018-12-07)
Console-based info and manual pages reader, which adds interactive navigation to man pages.
Commit 415ac4312984f918bb526fe95b178df04b5d4364

clean up configure.ac
Author: bas@zoetekouw.net
Author date (UTC): 2017-08-10 07:46
Committer name: bas@zoetekouw.net
Committer date (UTC): 2017-08-10 07:46
Parent(s): 938a74f4c70ef89899c3ac92d5e44ed65b1c6feb
Signing key:
Tree: 494bd374253135e915d7b6f4ac583d3f1fdf6eec
File Lines added Lines deleted
configure.ac 10 20
src/Makefile.am 2 1
src/pinfo.c 1 1
File configure.ac changed (mode: 100644) (index b2353c5..ef9c098)
25 25 # #
26 26
27 27 # init # init
28 AC_INIT([pinfo],[0.6.10],[pinfo-devel@lists.alioth.debian.org])
28 AC_INIT([pinfo],[0.6.10],[https://github.com/baszoetekouw/pinfo])
29 29 # require a recent autoconf # require a recent autoconf
30 30 AC_PREREQ([2.57]) AC_PREREQ([2.57])
31 31 # for identification of derived ./configure scripts # for identification of derived ./configure scripts
 
... ... AC_CONFIG_SRCDIR([src/pinfo.c])
40 40 # helper scripts are in tools/ # helper scripts are in tools/
41 41 AC_CONFIG_AUX_DIR([tools]) AC_CONFIG_AUX_DIR([tools])
42 42
43 # The fairly useless --with-tags option to configure requires that
44 # C++ and F77 support be invoked; this makes configure horribly
45 # slow. Obliterating this macro pries the feature out of libtool 1.5; it
46 # is removed in 1.6 in favour of a different scheme.
47 m4_define([_LT_AC_TAGCONFIG], [])
48 43
49 44 # init automake # init automake
50 45 AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
51 # disable automatic rebuilding of ./configure, Makefile.in, etc
52 AM_MAINTAINER_MODE
46 # enable automatic rebuilding of ./configure, Makefile.in, and generation of # version.texi
47 AM_MAINTAINER_MODE([enable])
53 48 # include the m4 stuff in tools/macros # include the m4 stuff in tools/macros
54 49 AM_ACLOCAL_INCLUDE(macros) AM_ACLOCAL_INCLUDE(macros)
55 50
 
... ... AM_ACLOCAL_INCLUDE(macros)
59 54 #################################################### ####################################################
60 55 # find C compiler # find C compiler
61 56 AC_PROG_CC AC_PROG_CC
57 AC_PROG_CC_C99
62 58
63 59 # set correct LIBS for (almost obsolete) INTERACTIVE UNIX # set correct LIBS for (almost obsolete) INTERACTIVE UNIX
64 60 AC_ISC_POSIX AC_ISC_POSIX
 
... ... if test "x$LOCALEDIR" = "x"; then
179 175 LOCALEDIR='$(prefix)/share/locale' LOCALEDIR='$(prefix)/share/locale'
180 176 fi fi
181 177 fi fi
178 AC_SUBST(LOCALEDIR)
182 179
183 180
184 181 #################################################### ####################################################
 
... ... fi
189 186 AC_ARG_ENABLE(showcursor, AC_ARG_ENABLE(showcursor,
190 187 [ --enable-cursor enable cursor when working with pinfo [default=no]], , ) [ --enable-cursor enable cursor when working with pinfo [default=no]], , )
191 188 if test "x$enable_showcursor" != "xyes" ; then if test "x$enable_showcursor" != "xyes" ; then
192 AC_DEFINE(HIDECURSOR,FALSE,[don't show cursor])
189 AC_DEFINE(HIDECURSOR,FALSE,[don't show cursor]) #'
193 190 else else
194 AC_DEFINE(HIDECURSOR,TRUE,[don't show cursor])
191 AC_DEFINE(HIDECURSOR,TRUE,[don't show cursor]) #'
195 192 fi fi
196 193
197 194 # If pinfo is too slow, the below definition will resign from dynamical # If pinfo is too slow, the below definition will resign from dynamical
 
... ... AC_ARG_ENABLE(use_static,
202 199 [ --disable-static enable using static buffers ], , [ --disable-static enable using static buffers ], ,
203 200 enable_use_static=yes) enable_use_static=yes)
204 201 if test "x$enable_use_static" = "xyes" ; then if test "x$enable_use_static" = "xyes" ; then
205 AC_DEFINE(___USE_STATIC___, 1, [don't use dynamic buffer])
202 AC_DEFINE(___USE_STATIC___, 1, [don't use dynamic buffer]) #'
206 203 fi fi
207 204
208 205 # do you want to use regexp searches? # do you want to use regexp searches?
 
... ... AC_ARG_WITH(regexp_search,
211 208 [ --with-regexp-search use regular expression search [default=yes]]) [ --with-regexp-search use regular expression search [default=yes]])
212 209 if test "x$with_regexp_search" = "xno"; then if test "x$with_regexp_search" = "xno"; then
213 210 AC_DEFINE(___DONT_USE_REGEXP_SEARCH___,1, AC_DEFINE(___DONT_USE_REGEXP_SEARCH___,1,
214 [Don't use regexp search engine])
211 [Don't use regexp search engine]) #'
215 212 fi fi
216 213
217 214
 
... ... fi
220 217 #################################################### ####################################################
221 218 ## destination dirs ## destination dirs
222 219 #################################################### ####################################################
223 CONFIGDIR=${sysconfdir}/pinforc
224 ## TODO: have this put in config.h instead of passing it on the command line
225 CPPFLAGS="$CPPFLAGS -DCONFIGDIR=\\\"${sysconfdir}/pinforc\\\" -DLOCALEDIR=\\\"${LOCALEDIR}\\\""
226 ## TODO: looks evil
227 MANDIR="`eval MANDIR=$mandir;echo $MANDIR|sed -e \"s#NONE#$ac_default_prefix#\"`"
228
229
230 220
231 221 ##TODO: replace these by PACKAGE_VERSION and PACKAGE_NAME ##TODO: replace these by PACKAGE_VERSION and PACKAGE_NAME
232 222 AC_DEFINE_UNQUOTED(VERSION,"$VERSION",[Package version]) AC_DEFINE_UNQUOTED(VERSION,"$VERSION",[Package version])
 
... ... AC_CONFIG_FILES([
243 233 Makefile Makefile
244 234 doc/Makefile doc/Makefile
245 235 macros/Makefile macros/Makefile
246 src/Makefile
236 src/Makefile
247 237 pinfo.spec pinfo.spec
248 238 po/Makefile.in po/Makefile.in
249 239 src/pinforc src/pinforc
File src/Makefile.am changed (mode: 100644) (index f558049..178abbc)
... ... pinfo_LDADD = \
68 68 $(pinfo_SIGBLOCK_OBJ) @READLINE_LIBS@ $(INTLLIBS) \ $(pinfo_SIGBLOCK_OBJ) @READLINE_LIBS@ $(INTLLIBS) \
69 69 @CURSES_LIBS@ @CURSES_LIBS@
70 70
71 pinfo_CFLAGS = @CURSES_FLAGS@ @CURSES_INCLUDES@ @WCHAR_FLAGS@
71 pinfo_CFLAGS = @CURSES_FLAGS@ @CURSES_INCLUDES@ @WCHAR_FLAGS@ \
72 -DLOCALEDIR=\"@LOCALEDIR@\" -DCONFIGDIR=\"$(sysconfdir)/pinforc\"
72 73
73 74 pinfo_DEPENDENCIES = $(pinfo_READLINE_OBJ)\ pinfo_DEPENDENCIES = $(pinfo_READLINE_OBJ)\
74 75 $(pinfo_SNPRINTF_OBJ)\ $(pinfo_SNPRINTF_OBJ)\
File src/pinfo.c changed (mode: 100644) (index 431e149..82dca81)
25 25 #include <getopt.h> #include <getopt.h>
26 26 #endif #endif
27 27
28 char *version = VERSION;
28 char *version = PACKAGE_VERSION;
29 29 int DontHandleWithoutTagTable = 0; int DontHandleWithoutTagTable = 0;
30 30
31 31 /* currently viewed filename */ /* currently viewed filename */
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/pinfo

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/pinfo

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master