diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..7f2f9a5 --- /dev/null +++ b/configure.ac @@ -0,0 +1,47 @@ +AC_PREREQ(2.61) + +AC_INIT(io-psd, 0.1.0, nospam@nowhere.com) +AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip]) +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) + +AC_CONFIG_SRCDIR([.]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) + +# Checks for programs +AC_PROG_CC +AC_PROG_CXX +AM_PROG_CC_C_O +AC_PROG_LIBTOOL +PKG_PROG_PKG_CONFIG + +# Checks for libraries +PKG_CHECK_MODULES(GLIB, glib-2.0) +PKG_CHECK_MODULES(GMODULE, gmodule-2.0) +PKG_CHECK_MODULES(GDKPIXBUF, gdk-pixbuf-2.0) + +GDK_PIXBUF_DIR=`$PKG_CONFIG --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0` +if test -z "$GDK_PIXBUF_DIR" ; then + GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` + GDK_PIXBUF_DIR="$libdir/gtk-2.0/$GTK_VERSION/loaders" +fi +AC_SUBST(GDK_PIXBUF_DIR) + +# Checks for header files0 +AC_HEADER_STDC +AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) + +AC_OUTPUT( +Makefile +) + +echo " +Configuration for $PACKAGE $VERSION: +------------------------------------------- + + Install prefix .....: $prefix + Module directory ...: $GDK_PIXBUF_DIR + + Now type 'make' to build $PACKAGE $VERSION, + and then 'make install' for installation. +" |