"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.ac" between
scrot-1.7.tar.bz2 and scrot-1.8.tar.gz

About: scrot (SCReenshOT) is a simple command line screen capture utility using imlib2 to grab and save images.

configure.ac  (scrot-1.7.tar.bz2):configure.ac  (scrot-1.8)
dnl Process this file with autoconf to create configure. dnl Process this file with autoconf to create configure.
AC_INIT([scrot], [1.7], [https://github.com/resurrecting-open-source-projects/sc AC_INIT([scrot], [1.8],
rot/issues], [https://github.com/resurrecting-open-source-projects/scrot/issues],,
[],[https://github.com/resurrecting-open-source-projects/scrot]) [https://github.com/resurrecting-open-source-projects/scrot])
AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_SRCDIR([src/scrot.c])
AM_INIT_AUTOMAKE(dist-bzip2) AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_HEADERS([src/config.h])
AX_PREFIX_CONFIG_H([src/scrot_config.h])
# Checks for programs. # Checks for programs.
orig_CFLAGS="${CFLAGS}" # Save CFLAGS before AC_PROG_CC sets them.
AC_PROG_CC AC_PROG_CC
AC_PROG_INSTALL AC_PROG_INSTALL
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
m4_pattern_forbid([^AX_],[=> GNU autoconf-archive not present. <=])
AS_IF([test "x$orig_CFLAGS" = "x"], [
CFLAGS=""
SCROT_FLAGS="-O2 -flto -g -Wall -Wextra -Wpedantic"
AX_APPEND_COMPILE_FLAGS(["$SCROT_FLAGS"])
AX_APPEND_LINK_FLAGS(["$SCROT_FLAGS"])
])
# Checks for libraries. # Checks for libraries.
PKG_CHECK_MODULES([X11], [x11]) PKG_CHECK_MODULES([X11], [x11])
PKG_CHECK_MODULES([XCOMPOSITE], [xcomposite]) PKG_CHECK_MODULES([XCOMPOSITE], [xcomposite])
PKG_CHECK_MODULES([XEXT], [xext]) PKG_CHECK_MODULES([XEXT], [xext])
PKG_CHECK_MODULES([XFIXES], [xfixes]) PKG_CHECK_MODULES([XFIXES], [xfixes])
PKG_CHECK_MODULES([XINERAMA], [xinerama])
PKG_CHECK_MODULES([IMLIB2], [imlib2]) PKG_CHECK_MODULES([IMLIB2], [imlib2])
AC_ARG_WITH([libbsd], AC_ARG_WITH([libbsd],
AS_HELP_STRING([--without-libbsd], [Error when BSD functions are not found]) ) AS_HELP_STRING([--without-libbsd], [Error when BSD functions are not found]) )
AC_CHECK_FUNCS([strlcpy strlcat err errx],, [LIBBSD_NEEDED=yes]) AC_CHECK_FUNCS([strlcpy strlcat err errx warn warnx],, [LIBBSD_NEEDED=yes])
AC_CHECK_HEADERS([sys/queue.h],, [LIBBSD_NEEDED=yes])
AS_IF([test "x$LIBBSD_NEEDED" = "xyes"], [ AS_IF([test "x$LIBBSD_NEEDED" = "xyes"], [
AS_IF([test "x$with_libbsd" = "xno"], [ AS_IF([test "x$with_libbsd" = "xno"], [
AC_MSG_ERROR([BSD functions not found and --without-libbsd was used]) AC_MSG_ERROR([BSD functions not found and --without-libbsd was used])
]) ])
PKG_CHECK_MODULES([LIBBSD], [libbsd-overlay],, PKG_CHECK_MODULES([LIBBSD], [libbsd-overlay],,
[AC_MSG_ERROR([BSD functions not found, libbsd is required])]) [AC_MSG_ERROR([BSD functions not found, libbsd is required])])
]) ])
AC_SUBST([LIBS], ["$X11_LIBS $XCOMPOSITE_LIBS $XEXT_LIBS $XFIXES_LIBS \ AC_SUBST([LIBS], ["$X11_LIBS $XCOMPOSITE_LIBS $XEXT_LIBS $XFIXES_LIBS \
$IMLIB2_LIBS $LIBBSD_LIBS $LIBS"]) $XINERAMA_LIBS $IMLIB2_LIBS $LIBBSD_LIBS $LIBS"])
AC_SUBST([CPPFLAGS], ["$X11_CFLAGS $XCOMPOSITE_CFLAGS $XEXT_CFLAGS \ AC_SUBST([CPPFLAGS], ["$X11_CFLAGS $XCOMPOSITE_CFLAGS $XEXT_CFLAGS \
$XFIXES_CFLAGS $IMLIB2_CFLAGS $LIBBSD_CFLAGS $CPPFLAGS"]) $XFIXES_CFLAGS $XINERAMA_CFLAGS $IMLIB2_CFLAGS $LIBBSD_CFLAGS $CPPFLAGS"])
# Checks for header files. # Checks for header files.
AC_CHECK_HEADERS([stdint.h sys/time.h unistd.h]) AC_CHECK_HEADERS([stdint.h sys/time.h unistd.h])
# Required: Checks for library functions. # Required: Checks for library functions.
AC_CHECK_FUNCS([getopt_long getsubopt gethostname select strdup strerror strndup strtol],, AC_CHECK_FUNCS([getopt_long getsubopt gethostname select strdup strerror strndup strtol],,
AC_MSG_ERROR([required functions are not present.])) AC_MSG_ERROR([required functions are not present.]))
m4_pattern_forbid([^AX_],[=> GNU autoconf-archive not present. <=])
AC_CONFIG_FILES([Makefile src/Makefile]) AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT AC_OUTPUT
 End of changes. 9 change blocks. 
12 lines changed or deleted 20 lines changed or added

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