You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.1 KiB

dnl Process this file with autoconf to produce a configure script.
AC_INIT(ipc.c)
AM_INIT_AUTOMAKE(e16keyedit, 0.3)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
dnl Checks for libraries.
AC_ARG_ENABLE(gtk2,
[ --enable-gtk2=[no/yes] enables the gtk2 GUI (default=yes)],,
enable_gtk2=yes)
if [ ! test "x$enable_gtk2" != "xyes"]; then
pkg_modules="gtk+-2.0 >= 2.0.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
CFLAGS="$CFLAGS $PACKAGE_CFLAGS"
LIBS="$LIBS $PACKAGE_LIBS"
AC_DEFINE(ENABLE_GTK2, , [Define to enable gtk2 support])
else
if !(gtk-config --version >/dev/null 2>&1); then
AC_MSG_ERROR([Gtk+ is required.])
else
CFLAGS="$CFLAGS `gtk-config --cflags`"
LIBS="$LIBS `gtk-config --libs`"
fi
fi
AC_SUBST(ENABLE_GTK2)
dnl Checks for header files.
AC_PATH_X
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_OUTPUT(Makefile)