#initial
AC_INIT(configure.in)
#AC_PREREQ(2.52)

#AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")		
		
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(transformer, 0.1)
		
# Standard C and C++ compiler mojo
AC_LANG_C
AC_PROG_CC
AC_PROG_LIBTOOL

# Checks for programs.
#AC_PROG_INSTALL

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h malloc.h strings.h unistd.h dlfcn.h)

# Find the typecheck libraries
PKG_CHECK_MODULES(GNOMEVFS, gnome-vfs-2.0 >= 2.9)
AC_SUBST(GNOMEVFS_CFLAGS)
AC_SUBST(GNOMEVFS_LIBS)

#Find the DevIL library
AC_CHECK_LIB (IL, ilSaveImage, [], [
				echo -n"Error! DevIL Image Library IL not found"
				echo -n "Install DevIL-1.6.7"
				exit -1
				])
AC_CHECK_LIB (ILU, iluGetInteger, [], [
				echo -n "Error! DevIL Image Library ILU not found"
				echo -n "Install DevIL-1.6.7"
				exit -1
				])

# Check for new pluigns if there		

AC_OUTPUT(
Makefile 
src/Makefile
)
