1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00
rofi/configure.ac

82 lines
2.2 KiB
Text
Raw Normal View History

2015-09-06 10:45:30 -04:00
AC_INIT([rofi], [0.15.8-devel], [qball@gmpclient.org])
2014-03-17 13:00:09 -04:00
2014-03-18 03:59:42 -04:00
AC_CONFIG_SRCDIR([source/rofi.c])
2014-03-17 13:00:09 -04:00
AC_CONFIG_HEADER([config.h])
2014-03-18 03:59:42 -04:00
##
# Setup automake to be silent and in foreign mode.
##
2015-03-02 16:23:55 -05:00
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects dist-xz])
2014-03-17 19:11:46 -04:00
AM_SILENT_RULES([yes])
2014-03-17 13:00:09 -04:00
2014-03-18 03:59:42 -04:00
##
# Check for compiler
##
2015-02-18 08:00:19 -05:00
AC_PROG_CC([clang gcc cc])
AC_PROG_CC_C99
AM_PROG_CC_C_O
2014-03-17 13:00:09 -04:00
AC_USE_SYSTEM_EXTENSIONS
2014-03-17 18:57:49 -04:00
2014-08-28 18:01:36 -04:00
dnl ---------------------------------------------------------------------
dnl Enable source code coverage reporting for GCC
dnl ---------------------------------------------------------------------
AC_ARG_ENABLE(gcov,
[ --enable-gcov Enable source code coverage testing using gcov],
[CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
2015-09-14 02:57:10 -04:00
2015-09-14 03:01:05 -04:00
dnl ---------------------------------------------------------------------
dnl Disable window mode
dnl ---------------------------------------------------------------------
2015-09-14 02:57:10 -04:00
AC_ARG_ENABLE([windowmode],
2015-09-14 03:01:05 -04:00
AC_HELP_STRING([--disable-windowmode],[Disable window mode]))
2015-09-14 02:57:10 -04:00
AS_IF([ test "x$enable_windowmode" != "xno"], [
AC_DEFINE([WINDOW_MODE],[1],[Enable the window mode])
])
##
# I3 check
##
AC_ARG_ENABLE(i3support,
[AS_HELP_STRING([--disable-i3support], [Disable check for i3 support])])
AS_IF([test "x$enable_i3support" != xno && test "x$enable_windowmode" != "xno"],[
AC_CHECK_HEADERS([i3/ipc.h], [i3_header=yes; break;])
])
2014-03-17 14:15:42 -04:00
##
# Check dependencies
##
2014-03-17 13:00:09 -04:00
PKG_PROG_PKG_CONFIG
2015-09-16 10:14:14 -04:00
PKG_CHECK_MODULES([xft], [xft])
PKG_CHECK_MODULES([x11], [x11])
2014-03-17 13:00:09 -04:00
PKG_CHECK_MODULES([xinerama], [xinerama])
2015-09-16 10:14:14 -04:00
PKG_CHECK_MODULES([pango], [pango pangoxft])
PKG_CHECK_MODULES([libsn], [libstartup-notification-1.0])
2014-03-17 13:00:09 -04:00
2015-02-22 17:04:08 -05:00
AC_SUBST([EXTRA_CFLAGS], ["-Wall -Wextra -Wparentheses -Winline -pedantic"])
2014-03-17 13:00:09 -04:00
AC_CONFIG_FILES([Makefile ])
2014-03-17 13:00:09 -04:00
AC_OUTPUT
dnl -----------------------------------------------
dnl Some output to easily spot if I3 is enabled.
dnl -----------------------------------------------
echo ""
echo "-------------------------------------"
if test x$i3_header = xyes; then
echo "I3 support: Enabled"
else
echo "I3 support: Disabled"
fi
echo "-------------------------------------"
echo "Now type 'make' to build"
echo ""