dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(rawstudio, 1.1) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AM_PROG_LIBTOOL AC_CONFIG_MACRO_DIR([m4]) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_PROG_CXX AC_HEADER_STDC AC_ARG_ENABLE(experimental, AS_HELP_STRING( [--enable-experimental], [Enable experimental code (default: disabled)]), [EXPERIMENTAL=yes] ) AC_DEFUN([AX_CHECK_COMPILER_FLAGS], [AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1]) dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname: AS_LITERAL_IF([$1], [AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1]), [ ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS _AC_LANG_PREFIX[]FLAGS="$1" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes, AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no) _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])], [ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS _AC_LANG_PREFIX[]FLAGS="$1" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes, eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no) _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS]) eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1]) AC_MSG_RESULT($ax_check_compiler_flags) if test "x$ax_check_compiler_flags" = xyes; then m4_default([$2], :) else m4_default([$3], :) fi ])dnl AX_CHECK_COMPILER_FLAGS if test "$EXPERIMENTAL" == "yes"; then AC_DEFINE([EXPERIMENTAL],[1],[Enable experimental code]) fi dnl libjpeg if test -z "$LIBJPEG"; then AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, jpeg_ok=yes, jpeg_ok=no) if test "$jpeg_ok" = yes; then AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no) if test "$jpeg_ok" = yes; then LIBJPEG='-ljpeg' else AC_MSG_ERROR([*** JPEG header files not found.]) fi else AC_MSG_ERROR([*** Rawstudio requires libjpeg.]) fi fi AC_SUBST(LIBJPEG) dnl libtiff if test -z "$LIBTIFF"; then AC_CHECK_LIB(tiff, TIFFOpen, tiff_ok=yes, tiff_ok=no) if test "$tiff_ok" = yes; then AC_CHECK_HEADER(tiffio.h, tiff_ok=yes, tiff_ok=no) if test "$tiff_ok" = yes; then LIBTIFF='-ltiff' else AC_MSG_ERROR([*** libtiff header files not found.]) fi else AC_MSG_ERROR([*** Rawstudio requires libtiff.]) fi fi AC_SUBST(LIBTIFF) pkg_modules="gtk+-2.0 >= 2.8.0 libxml-2.0 >= 2.4 gconf-2.0 >= 2.0 lcms dbus-1 exiv2 fftw3f lensfun libcurl flickcurl sqlite3 libssl" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) GETTEXT_PACKAGE=rawstudio AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) dnl Add the languages which your application supports here. ALL_LINGUAS="cs da de en fr it nb pl ru fi es sv nl pt_BR ca hu" AM_GLIB_GNU_GETTEXT AC_CHECK_FUNCS(memmem) AX_CHECK_COMPILER_FLAGS("-msse2", [_CAN_COMPILE_SSE2=yes], [_CAN_COMPILE_SSE2=no]) AX_CHECK_COMPILER_FLAGS("-msse4.1", [_CAN_COMPILE_SSE4_1=yes],[_CAN_COMPILE_SSE4_1=no]) AM_CONDITIONAL(CAN_COMPILE_SSE4_1, test "$_CAN_COMPILE_SSE4_1" = yes) AM_CONDITIONAL(CAN_COMPILE_SSE2, test "$_CAN_COMPILE_SSE2" = yes) AC_OUTPUT([ Makefile librawstudio/Makefile librawstudio/rawstudio-1.1.pc plugins/Makefile plugins/cache/Makefile plugins/colorspace-adobergb/Makefile plugins/colorspace-prophoto/Makefile plugins/colorspace-srgb/Makefile plugins/colorspace-transform/Makefile plugins/crop/Makefile plugins/dcp/Makefile plugins/demosaic/Makefile plugins/denoise/Makefile plugins/exposure-mask/Makefile plugins/fuji-rotate/Makefile plugins/input-file/Makefile plugins/input-image16/Makefile plugins/lensfun/Makefile plugins/load-dcraw/Makefile plugins/load-gdk/Makefile plugins/load-rawspeed/Makefile plugins/meta-ciff/Makefile plugins/meta-mrw/Makefile plugins/meta-raf/Makefile plugins/meta-tiff/Makefile plugins/meta-x3f/Makefile plugins/output-jpegfile/Makefile plugins/output-pngfile/Makefile plugins/output-picasa/Makefile plugins/output-facebook/Makefile plugins/output-flickr/Makefile plugins/output-tifffile/Makefile plugins/resample/Makefile plugins/rotate/Makefile src/Makefile po/Makefile.in pixmaps/Makefile profiles/Makefile ])