"Fossies" - the Fresh Open Source Software Archive

Member "inotify-tools-3.20.11.0/configure.ac" (13 Nov 2020, 2305 Bytes) of package /linux/privat/inotify-tools-3.20.11.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.ac": 3.20.2.2_vs_3.20.11.0.

    1 # -*- Autoconf -*-
    2 # Process this file with autoconf to produce a configure script.
    3 
    4 AC_PREREQ(2.59)
    5 AC_INIT([inotify-tools], [3.20.11.0])
    6 AC_CONFIG_AUX_DIR([config])
    7 AC_CONFIG_SRCDIR([src/inotifywait.c])
    8 AC_CONFIG_HEADERS([config.h])
    9 AC_CONFIG_HEADERS([libinotifytools/src/inotifytools/inotify.h])
   10 AC_CONFIG_MACRO_DIR([m4])
   11 AC_DEFINE([_GNU_SOURCE], [], [For a few GNU-specific functions])
   12 AC_PROG_MAKE_SET
   13 
   14 # Checks for programs.
   15 AC_PROG_CC
   16 AM_INIT_AUTOMAKE
   17 LT_INIT
   18 
   19 AC_PATH_PROG(DOXYGEN, doxygen, NO_DOXYGEN)
   20 
   21 AC_ARG_ENABLE(doxygen,
   22     AS_HELP_STRING([--enable-doxygen],[enable libinotifytools API docs generation]),
   23     DOXYGEN_ENABLE=$enableval,
   24    [if test "$DOXYGEN" != NO_DOXYGEN; then
   25         DOXYGEN_ENABLE=yes
   26     else
   27         DOXYGEN_ENABLE=no
   28     fi]
   29 )
   30 
   31 if test "$DOXYGEN_ENABLE" = "yes" && test "$DOXYGEN" = "NO_DOXYGEN"; then
   32 	AC_MSG_ERROR([Cannot find doxygen!  Make sure it is in PATH.])
   33 fi
   34 
   35 if test "$DOXYGEN_ENABLE" = "no"; then
   36 	DOXYGEN=NO_DOXYGEN
   37 fi
   38 AM_CONDITIONAL([DOXYGEN_ENABLE], test x$DOXYGEN != xNO_DOXYGEN )
   39 
   40 AC_ARG_ENABLE(static-binary,
   41     AS_HELP_STRING([--enable-static-binary],[enable static linking of binaries]),
   42     STATIC_BINARY_ENABLE=$enableval, STATIC_BINARY_ENABLE=no)
   43 AM_CONDITIONAL([STATIC_BINARY_ENABLE], test "$STATIC_BINARY_ENABLE" = "yes")
   44 
   45 
   46 # Checks for libraries.
   47 
   48 # Checks for header files.
   49 AC_CHECK_HEADERS([sys/inotify.h mcheck.h])
   50 AC_LANG(C)
   51 AC_MSG_CHECKING([whether sys/inotify.h actually works])
   52 AC_COMPILE_IFELSE(
   53   [AC_LANG_PROGRAM([[#include <sys/inotify.h>]],
   54                   [[return (-1 == inotify_init());]]
   55   )],
   56   [AC_MSG_RESULT([yup]); AC_DEFINE([SYS_INOTIFY_H_EXISTS_AND_WORKS],[1],[sys/inotify.h exists and works correctly])],
   57   [AC_MSG_RESULT([nope, using own inotify headers])]
   58 )
   59 
   60 # Checks for typedefs, structures, and compiler characteristics.
   61 AC_C_CONST
   62 AC_C_INLINE
   63 
   64 # Checks for library functions.
   65 AC_CHECK_FUNCS([daemon])
   66 
   67 # Set variables used in man page templates
   68 MAN_DATE=$(date -u -r ChangeLog +'%Y-%m-%d')
   69 MAN_PACKAGE_VERSION=$PACKAGE_VERSION
   70 AC_SUBST([MAN_DATE])
   71 AC_SUBST([MAN_PACKAGE_VERSION])
   72 
   73 # Output...
   74 AC_CONFIG_FILES([
   75   Makefile
   76   src/Makefile
   77   man/Makefile
   78   man/inotifywait.1
   79   man/inotifywatch.1
   80   libinotifytools/Makefile
   81   libinotifytools/src/Makefile
   82   libinotifytools/src/inotifytools/Makefile
   83 ])
   84 AC_OUTPUT