"Fossies" - the Fresh Open Source Software Archive

Member "xbindkeys-1.8.7/configure.ac" (23 May 2020, 1918 Bytes) of package /linux/privat/xbindkeys-1.8.7.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.

    1 dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(xbindkeys, 1.8.7, hocwp@free.fr)
    3 AC_PREREQ(2.54)
    4 AC_COPYRIGHT(Copyright (C) Philippe Brochard <hocwp@free.fr>)
    5 
    6 # Automake
    7 AM_INIT_AUTOMAKE()
    8 AM_MAINTAINER_MODE
    9 
   10 AC_CONFIG_SRCDIR([xbindkeys.c])
   11 AM_CONFIG_HEADER(config.h)
   12 
   13 dnl Checks for programs.
   14 AC_PROG_CC
   15 AC_PROG_INSTALL
   16 AC_PROG_MAKE_SET
   17 AC_PROG_AWK
   18 
   19 dnl Checks for libraries.
   20 dnl there are none here...see the X libraries section below!
   21 
   22 dnl Checks for header files.
   23 AC_PATH_X
   24 AC_PATH_XTRA
   25 AC_HEADER_STDC
   26 AC_HEADER_SYS_WAIT
   27 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
   28 
   29 dnl Checks for X libraries.
   30 LIBS_saved="$LIBS"
   31 LIBS=
   32 AC_CHECK_LIB(X11, XCreateWindow,, [
   33 	AC_MSG_WARN([Xbindkeys depends on the X11 libraries!])
   34 ], $LIBS_saved $X_LIBS)
   35 X_LIBS="$X_LIBS $LIBS"
   36 LIBS="$LIBS_saved"
   37 
   38 
   39 dnl disable fork+exec start
   40 use_fork=yes
   41 
   42 AC_ARG_ENABLE( fork,
   43 [  --disable-fork       No fork+exec to launch program (Use a system call instead)],
   44    use_fork="${enableval}")
   45 
   46 FORK_FLAG=""
   47 if test "$use_fork" = yes; then
   48    FORK_FLAG="-DFORK_FLAG=1"
   49 fi
   50 
   51 AC_SUBST(FORK_FLAG)
   52 
   53 
   54 dnl disable xbindkeys_show install
   55 use_tk=yes
   56 
   57 AC_ARG_ENABLE(tk,
   58 [  --disable-tk    Do not install xbindkeys_show (prevent tk dependency)],
   59    use_tk="${enableval}")
   60 
   61 AM_CONDITIONAL(TK, test x$use_tk = xyes)
   62 
   63 
   64 dnl disable guile config file
   65 use_guile=yes
   66 
   67 AC_ARG_ENABLE( guile,
   68 [  --disable-guile       Disable scheme/guile configuration file style ],
   69    use_guile="${enableval}")
   70 
   71 GUILE_FLAG=""
   72 
   73 if test "$use_guile" = yes; then
   74    GUILE_FLAGS
   75    GUILE_FLAG="-DGUILE_FLAG=1"
   76 fi
   77 
   78 AM_CONDITIONAL(GUILE, test x$use_guile = xyes)
   79 
   80 AC_SUBST(GUILE_FLAG)
   81 
   82 # Checks for typedefs, structures, and compiler characteristics.
   83 AC_TYPE_PID_T
   84 
   85 
   86 # Checks for library functions.
   87 AC_FUNC_FORK
   88 AC_FUNC_MALLOC
   89 AC_TYPE_SIGNAL
   90 AC_CHECK_FUNCS([strcasecmp strchr strrchr strstr strtol])
   91 
   92 dnl final output
   93 AC_CONFIG_FILES([Makefile])
   94 AC_OUTPUT