"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.ac" between
tmux-3.2.tar.gz and tmux-3.2a.tar.gz

About: tmux is a terminal multiplexer that lets you switch easily between several programs in one terminal.

configure.ac  (tmux-3.2):configure.ac  (tmux-3.2a)
# configure.ac # configure.ac
AC_INIT([tmux], 3.2) AC_INIT([tmux], 3.2a)
AC_PREREQ([2.60]) AC_PREREQ([2.60])
AC_CONFIG_AUX_DIR(etc) AC_CONFIG_AUX_DIR(etc)
AC_CONFIG_LIBOBJ_DIR(compat) AC_CONFIG_LIBOBJ_DIR(compat)
AM_INIT_AUTOMAKE([foreign subdir-objects]) AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CANONICAL_HOST AC_CANONICAL_HOST
# When CFLAGS isn't set at this stage and gcc is detected by the macro below, # When CFLAGS isn't set at this stage and gcc is detected by the macro below,
# autoconf will automatically use CFLAGS="-O2 -g". Prevent that by using an # autoconf will automatically use CFLAGS="-O2 -g". Prevent that by using an
skipping to change at line 37 skipping to change at line 37
AC_HELP_STRING(--enable-fuzzing, build fuzzers) AC_HELP_STRING(--enable-fuzzing, build fuzzers)
) )
AC_ARG_VAR( AC_ARG_VAR(
FUZZING_LIBS, FUZZING_LIBS,
AC_HELP_STRING(libraries to link fuzzing targets with) AC_HELP_STRING(libraries to link fuzzing targets with)
) )
# Set up convenient fuzzing defaults before initializing compiler. # Set up convenient fuzzing defaults before initializing compiler.
if test "x$enable_fuzzing" = xyes; then if test "x$enable_fuzzing" = xyes; then
AC_DEFINE(NEED_FUZZING) AC_DEFINE(NEED_FUZZING)
test "x$CC" == x && CC=clang test "x$CC" = x && CC=clang
test "x$FUZZING_LIBS" == x && \ test "x$FUZZING_LIBS" = x && \
FUZZING_LIBS="-fsanitize=fuzzer" FUZZING_LIBS="-fsanitize=fuzzer"
test "x$SAVED_CFLAGS" == x && \ test "x$SAVED_CFLAGS" = x && \
AM_CFLAGS="-g -fsanitize=fuzzer-no-link,address" AM_CFLAGS="-g -fsanitize=fuzzer-no-link,address"
fi fi
# Set up the compiler in two different ways and say yes we may want to install. # Set up the compiler in two different ways and say yes we may want to install.
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_C_O AM_PROG_CC_C_O
AC_PROG_CC_C99 AC_PROG_CC_C99
AC_PROG_CPP AC_PROG_CPP
AC_PROG_EGREP AC_PROG_EGREP
AC_PROG_INSTALL AC_PROG_INSTALL
skipping to change at line 153 skipping to change at line 153
getline \ getline \
getprogname \ getprogname \
memmem \ memmem \
setenv \ setenv \
setproctitle \ setproctitle \
strcasestr \ strcasestr \
strlcat \ strlcat \
strlcpy \ strlcpy \
strndup \ strndup \
strsep \ strsep \
strtonum \
]) ])
AC_FUNC_STRNLEN AC_FUNC_STRNLEN
# Check if strtonum works.
AC_MSG_CHECKING([for working strtonum])
AC_RUN_IFELSE([AC_LANG_PROGRAM(
[#include <stdlib.h>],
[return (strtonum("0", 0, 1, NULL) == 0 ? 0 : 1);]
)],
[AC_DEFINE(HAVE_STRTONUM) AC_MSG_RESULT(yes)],
[AC_LIBOBJ(strtonum) AC_MSG_RESULT(no)]
)
# Clang sanitizers wrap reallocarray even if it isn't available on the target # Clang sanitizers wrap reallocarray even if it isn't available on the target
# system. When compiled it always returns NULL and crashes the program. To # system. When compiled it always returns NULL and crashes the program. To
# detect this we need a more complicated test. # detect this we need a more complicated test.
AC_MSG_CHECKING([for working reallocarray]) AC_MSG_CHECKING([for working reallocarray])
AC_RUN_IFELSE([AC_LANG_PROGRAM( AC_RUN_IFELSE([AC_LANG_PROGRAM(
[#include <stdlib.h>], [#include <stdlib.h>],
[return (reallocarray(NULL, 1, 1) == NULL);] [return (reallocarray(NULL, 1, 1) == NULL);]
)], )],
AC_MSG_RESULT(yes), AC_MSG_RESULT(yes),
[AC_LIBOBJ(reallocarray) AC_MSG_RESULT([no])],
[AC_LIBOBJ(reallocarray) AC_MSG_RESULT([no])] [AC_LIBOBJ(reallocarray) AC_MSG_RESULT([no])]
) )
AC_MSG_CHECKING([for working recallocarray]) AC_MSG_CHECKING([for working recallocarray])
AC_RUN_IFELSE([AC_LANG_PROGRAM( AC_RUN_IFELSE([AC_LANG_PROGRAM(
[#include <stdlib.h>], [#include <stdlib.h>],
[return (recallocarray(NULL, 1, 1, 1) == NULL);] [return (recallocarray(NULL, 1, 1, 1) == NULL);]
)], )],
AC_MSG_RESULT(yes), AC_MSG_RESULT(yes),
[AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])],
[AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])] [AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])]
) )
# Look for clock_gettime. Must come before event_init. # Look for clock_gettime. Must come before event_init.
AC_SEARCH_LIBS(clock_gettime, rt) AC_SEARCH_LIBS(clock_gettime, rt)
# Always use our getopt because 1) glibc's doesn't enforce argument order 2) # Always use our getopt because 1) glibc's doesn't enforce argument order 2)
# musl does not set optarg to NULL for flags without arguments (although it is # musl does not set optarg to NULL for flags without arguments (although it is
# not required to, but it is helpful) 3) there are probably other weird # not required to, but it is helpful) 3) there are probably other weird
# implementations. # implementations.
 End of changes. 7 change blocks. 
5 lines changed or deleted 16 lines changed or added

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