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 |