"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.ac" between
less-530.tar.gz and less-548.tar.gz

About: less is a file pager (a program that displays text files similar to "more" or "pg"). Beta version.

configure.ac  (less-530):configure.ac  (less-548)
skipping to change at line 186 skipping to change at line 186
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_HEADER_TIME AC_HEADER_TIME
# Autoheader templates for symbols defined later by AC_DEFINE. # Autoheader templates for symbols defined later by AC_DEFINE.
AH_TEMPLATE([HAVE_GNU_REGEX], AH_TEMPLATE([HAVE_GNU_REGEX],
[GNU regex library]) [GNU regex library])
AH_TEMPLATE([HAVE_POSIX_REGCOMP], AH_TEMPLATE([HAVE_POSIX_REGCOMP],
[POSIX regcomp() and regex.h]) [POSIX regcomp() and regex.h])
AH_TEMPLATE([HAVE_PCRE], AH_TEMPLATE([HAVE_PCRE],
[PCRE (Perl-compatible regular expression) library]) [PCRE (Perl-compatible regular expression) library])
AH_TEMPLATE([HAVE_PCRE2],
[PCRE2 (Perl-compatible regular expression) library])
AH_TEMPLATE([HAVE_RE_COMP], AH_TEMPLATE([HAVE_RE_COMP],
[BSD re_comp()]) [BSD re_comp()])
AH_TEMPLATE([HAVE_REGCMP], AH_TEMPLATE([HAVE_REGCMP],
[System V regcmp()]) [System V regcmp()])
AH_TEMPLATE([HAVE_V8_REGCOMP], AH_TEMPLATE([HAVE_V8_REGCOMP],
[Henry Spencer V8 regcomp() and regexp.h]) [Henry Spencer V8 regcomp() and regexp.h])
AH_TEMPLATE([NO_REGEX], AH_TEMPLATE([NO_REGEX],
[pattern matching is supported, but without metacharacters.]) [pattern matching is supported, but without metacharacters.])
AH_TEMPLATE([HAVE_REGEXEC2], AH_TEMPLATE([HAVE_REGEXEC2],
[]) [])
skipping to change at line 261 skipping to change at line 263
[struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;], [struct stat s; dev_t dev = s.st_dev; ino_t ino = s.st_ino;],
[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STAT_INO)], [AC_MSG_RESULT(no)]) [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STAT_INO)], [AC_MSG_RESULT(no)])
# Checks for ANSI function prototypes. # Checks for ANSI function prototypes.
AC_MSG_CHECKING(for ANSI function prototypes) AC_MSG_CHECKING(for ANSI function prototypes)
AC_TRY_COMPILE([], [int f(int a) { return a; }], AC_TRY_COMPILE([], [int f(int a) { return a; }],
[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ANSI_PROTOS)], [AC_MSG_RESULT(no)]) [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_ANSI_PROTOS)], [AC_MSG_RESULT(no)])
# Checks for library functions. # Checks for library functions.
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_CHECK_FUNCS([fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod]) AC_CHECK_FUNCS([fsync popen _setjmp sigprocmask sigsetmask snprintf stat system fchmod realpath])
# AC_CHECK_FUNCS may not work for inline functions, so test these separately. # AC_CHECK_FUNCS may not work for inline functions, so test these separately.
AC_MSG_CHECKING(for memcpy) AC_MSG_CHECKING(for memcpy)
AC_TRY_LINK([ AC_TRY_LINK([
#if HAVE_STRING_H #if HAVE_STRING_H
#include <string.h> #include <string.h>
#endif], [memcpy(0,0,0);], #endif], [memcpy(0,0,0);],
[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MEMCPY)], [AC_MSG_RESULT(no)]) [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MEMCPY)], [AC_MSG_RESULT(no)])
AC_MSG_CHECKING(for strchr) AC_MSG_CHECKING(for strchr)
skipping to change at line 396 skipping to change at line 398
fi fi
# Checks for regular expression functions. # Checks for regular expression functions.
have_regex=no have_regex=no
have_posix_regex=unknown have_posix_regex=unknown
supported_regex="" supported_regex=""
# Select a regular expression library. # Select a regular expression library.
WANT_REGEX=auto WANT_REGEX=auto
AC_ARG_WITH(regex, AC_ARG_WITH(regex,
[ --with-regex=LIB select regular expression library (LIB is one of au to,none,gnu,pcre,posix,regcmp,re_comp,regcomp,regcomp-local) [[auto]]], [ --with-regex=LIB select regular expression library (LIB is one of au to,none,gnu,pcre,pcre2,posix,regcmp,re_comp,regcomp,regcomp-local) [[auto]]],
WANT_REGEX="$withval") WANT_REGEX="$withval")
if test $have_regex = no; then if test $have_regex = no; then
if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
# Some versions of Solaris have a regcomp() function, but it doesn't work! # Some versions of Solaris have a regcomp() function, but it doesn't work!
# So we run a test program. If we're cross-compiling, do it the old way. # So we run a test program. If we're cross-compiling, do it the old way.
AC_MSG_CHECKING(for POSIX regcomp) AC_MSG_CHECKING(for POSIX regcomp)
AC_TRY_RUN([ AC_TRY_RUN([
#include <sys/types.h> #include <sys/types.h>
#include <regex.h> #include <regex.h>
skipping to change at line 435 skipping to change at line 437
[regex_t *r; regfree(r);], [regex_t *r; regfree(r);],
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes; supported_regex="$supported_rege x posix") AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes; supported_regex="$supported_rege x posix")
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi fi
fi fi
fi fi
if test $have_regex = no; then if test $have_regex = no; then
if test $WANT_REGEX = auto -o $WANT_REGEX = pcre2; then
AC_CHECK_LIB(pcre2-8, pcre2_compile_8,
[AC_DEFINE(HAVE_PCRE2) LIBS="$LIBS -lpcre2-8" have_regex=yes; supported_regex="$
supported_regex pcre2"], [])
fi
fi
if test $have_regex = no; then
if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
AC_CHECK_LIB(pcre, pcre_compile, AC_CHECK_LIB(pcre, pcre_compile,
[AC_DEFINE(HAVE_PCRE) LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supp orted_regex pcre"], []) [AC_DEFINE(HAVE_PCRE) LIBS="$LIBS -lpcre" have_regex=yes; supported_regex="$supp orted_regex pcre"], [])
fi fi
fi fi
if test $have_regex = no; then if test $have_regex = no; then
if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then if test $WANT_REGEX = auto -o $WANT_REGEX = gnu; then
AC_CHECK_LIB(c, re_compile_pattern, AC_CHECK_LIB(c, re_compile_pattern,
[AC_DEFINE(HAVE_GNU_REGEX) have_regex=yes; supported_regex="$supported_regex gnu "], []) [AC_DEFINE(HAVE_GNU_REGEX) have_regex=yes; supported_regex="$supported_regex gnu "], [])
skipping to change at line 578 skipping to change at line 587
*/ */
#define GLOB (!SECURE) #define GLOB (!SECURE)
/* /*
* PIPEC is 1 if you wish to have the "|" command * PIPEC is 1 if you wish to have the "|" command
* which allows the user to pipe data into a shell command. * which allows the user to pipe data into a shell command.
*/ */
#define PIPEC (!SECURE) #define PIPEC (!SECURE)
/* /*
* LOGFILE is 1 if you wish to allow the -l option (to create log files). * LOGFILE is 1 if you wish to allow the -o option (to create log files).
*/ */
#define LOGFILE (!SECURE) #define LOGFILE (!SECURE)
/* /*
* GNU_OPTIONS is 1 if you wish to support the GNU-style command * GNU_OPTIONS is 1 if you wish to support the GNU-style command
* line options --help and --version. * line options --help and --version.
*/ */
#define GNU_OPTIONS 1 #define GNU_OPTIONS 1
/* /*
 End of changes. 5 change blocks. 
3 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)