summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-02 16:02:02 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-02 16:02:02 +0200
commitcdbeb824282ac6e58860b73c4cb6d933e2afaac7 (patch)
tree0ad8a320d19d746d18aa66054fd03e705368228d /configure.ac
parentf4d1fd48ab08f4a8ac417cec5496c84b5f55afce (diff)
downloadberyl-premerge-cdbeb824282ac6e58860b73c4cb6d933e2afaac7.tar.gz
beryl-premerge-cdbeb824282ac6e58860b73c4cb6d933e2afaac7.tar.bz2
added preliminary build system (most likely doesn't work yet)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac133
1 files changed, 133 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..ba74332
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,133 @@
+AC_PREREQ(2.57)
+
+AC_INIT([compiz-plugins-beryl],esyscmd(. ./VERSION;echo -n $VERSION), [maniac@beryl-project.org])
+
+AC_DEFINE_UNQUOTED(VERSION,"$VERSION",[Version])
+
+#AC_CONFIG_AUX_DIR(config)
+
+AM_INIT_AUTOMAKE([1.9 dist-bzip2])
+AC_CONFIG_HEADER([config.h])
+AM_MAINTAINER_MODE
+
+AC_ISC_POSIX
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_LIBTOOL
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
+IT_PROG_INTLTOOL([0.35.0])
+AC_SUBST(ALL_LINGUAS)
+AM_GLIB_GNU_GETTEXT
+GETTEXT_PACKAGE=beryl-plugins
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
+AC_SUBST(GETTEXT_PACKAGE)
+
+if test "x$GCC" = "xyes"; then
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wall[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wall" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wpointer-arith[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wstrict-prototypes[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wstrict-prototypes" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wmissing-prototypes[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wmissing-declarations[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-Wnested-externs[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -Wnested-externs" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-fno-strict-aliasing[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
+ esac
+
+ if test "x$enable_ansi" = "xyes"; then
+ case " $CFLAGS " in
+ *[[\ \ ]]-ansi[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -ansi" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[[\ \ ]]-pedantic[[\ \ ]]*) ;;
+ *) CFLAGS="$CFLAGS -pedantic" ;;
+ esac
+ fi
+fi
+
+AC_C_BIGENDIAN
+
+plugindir=$libdir/beryl
+AC_SUBST(plugindir)
+
+imagedir=$datadir/beryl
+AC_SUBST(imagedir)
+
+dnl ============================================================
+dnl Check for the pkg-config path.
+if test x"$PKG_CONFIG_PATH" = x; then
+ PKG_CONFIG_PATH=${prefix}/lib/pkgconfig
+ else
+ PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:${PKG_CONFIG_PATH}
+fi
+export PKG_CONFIG_PATH
+AC_SUBST(PKG_CONFIG_PATH)
+AC_MSG_NOTICE([Using PKG_CONFIG_PATH=$PKG_CONFIG_PATH])
+
+PKG_CHECK_MODULES(COMPIZ, compiz)
+PKG_CHECK_MODULES(BCOP, bcop)
+
+AC_MSG_CHECKING(for GL_CFLAGS)
+AC_ARG_WITH(gl-cflags, [ --with-gl-cflags=CFLAGS ],
+ [GL_CFLAGS="$withval"],
+ [GL_CFLAGS=""])
+
+AC_MSG_RESULT($GL_CFLAGS)
+AC_MSG_CHECKING(for GL_LIBS)
+AC_ARG_WITH(gl-libs, [ --with-gl-libs=LIBS ],
+ [GL_LIBS="$withval"],
+ [GL_LIBS="-lGL"])
+AC_MSG_RESULT($GL_LIBS)
+
+AC_SUBST(GL_CFLAGS)
+AC_SUBST(GL_LIBS)
+
+PKG_CHECK_MODULES(GLIB, glib-2.0)
+
+AC_ARG_ENABLE(text,
+ [ --disable-text Disable text plugin],
+ [use_texte=$enableval], [use_text=yes])
+
+if test "x$use_text" = "xyes"; then
+ PKG_CHECK_MODULES(TEXT, cairo-xlib-xrender pangocairo cairo >= 1.0, [use_text=yes], [use_text=no])
+fi
+
+AM_CONDITIONAL(TEXT_PLUGIN, test "x$use_text" = "xyes")
+if test "$use_text" = yes; then
+ AC_DEFINE(USE_TEXT, 1, [Build text plugin])
+fi
+PKG_CHECK_MODULES(LIBRSVG, [cairo >= 1.0 librsvg-2.0 >= 2.14.0])
+
+AC_OUTPUT([
+Makefile
+src/Makefile
+src/group/Makefile
+po/Makefile.in
+])