configure.ac (scrot-0.8) | : | configure.ac (scrot-1.6.tar.bz2) | ||
---|---|---|---|---|
dnl Process this file with autoconf to create configure. | dnl Process this file with autoconf to create configure. | |||
AC_INIT | AC_INIT([scrot], [1.6], [https://github.com/resurrecting-open-source-projects/sc | |||
rot/issues], | ||||
[],[https://github.com/resurrecting-open-source-projects/scrot]) | ||||
AC_CONFIG_SRCDIR([src/main.c]) | AC_CONFIG_SRCDIR([src/main.c]) | |||
AM_INIT_AUTOMAKE(scrot, 0.8) | AM_INIT_AUTOMAKE(dist-bzip2) | |||
AM_CONFIG_HEADER(src/config.h) | AC_CONFIG_HEADER([src/config.h]) | |||
AX_PREFIX_CONFIG_H([src/scrot_config.h]) | ||||
# Checks for programs. | ||||
AC_PROG_CC | AC_PROG_CC | |||
AM_PROG_CC_STDC | AM_PROG_CC_STDC | |||
AC_C_CONST | ||||
AC_PROG_INSTALL | AC_PROG_INSTALL | |||
AC_PROG_MAKE_SET | AC_PROG_MAKE_SET | |||
AM_MAINTAINER_MODE | AM_MAINTAINER_MODE | |||
AC_PATH_GENERIC(giblib, 1.2.3, [ | # Checks for libraries. | |||
AC_SUBST(GIBLIB_LIBS) | PKG_CHECK_MODULES([X11], [x11]) | |||
AC_SUBST(GIBLIB_CFLAGS) ], | PKG_CHECK_MODULES([XCOMPOSITE], [xcomposite]) | |||
AC_MSG_ERROR(Cannot find giblib: Is giblib-config in the path?) ) | PKG_CHECK_MODULES([XEXT], [xext]) | |||
PKG_CHECK_MODULES([XFIXES], [xfixes]) | ||||
LIBS="$LIBS -lm" | PKG_CHECK_MODULES([IMLIB2], [imlib2]) | |||
GIBLIB_LIBS=`giblib-config --libs` | ||||
GIBLIB_CFLAGS=`giblib-config --cflags` | # Checks for header files. | |||
AC_SUBST(GIBLIB_LIBS) | AC_PATH_X | |||
AC_SUBST(GIBLIB_CFLAGS) | AC_CHECK_HEADERS([stdint.h sys/time.h unistd.h]) | |||
AC_CHECK_FUNC(getopt_long,,[LIBOBJS="$LIBOBJS getopt.o getopt1.o"]) | # Checks for typedefs, structures, and compiler characteristics. | |||
AC_SUBST(LIBOBJS) | AC_CHECK_HEADER_STDBOOL | |||
AC_C_INLINE | ||||
AC_CONFIG_FILES([Makefile \ | AC_C_CONST | |||
scrot.spec \ | AC_TYPE_SIZE_T | |||
src/Makefile \ | AC_CHECK_TYPES([ptrdiff_t]) | |||
]) | ||||
# Required: Checks for library functions. | ||||
AC_FUNC_MALLOC | ||||
AC_CHECK_FUNCS([getopt_long getsubopt atexit gethostname memset select strchr st | ||||
rdup strerror strpbrk strrchr strtol],, | ||||
AC_MSG_ERROR([required functions are not present.])) | ||||
# Optional: Checks for library functions. | ||||
AC_CHECK_FUNCS([strndup]) | ||||
m4_pattern_forbid([^AX_],[=> GNU autoconf-archive not present. <=]) | ||||
AC_CONFIG_FILES([Makefile src/Makefile]) | ||||
AC_OUTPUT | AC_OUTPUT | |||
End of changes. 5 change blocks. | ||||
23 lines changed or deleted | 37 lines changed or added |