dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(gjvidtimeline, 0.1.2) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AM_PROG_CC_C_O AC_HEADER_STDC AH_TEMPLATE([HAVE_LASH], [Define as 1 if you have LASH]) AH_TEMPLATE([HAVE_FFMPEG], [Define as 1 if you have ffmpeg]) AH_TEMPLATE([HAVE_LIBLO], [Define as 1 if you have liblo OSC support]) AH_TEMPLATE([HAVE_GMP], [Define as 1 if you have libgmp ]) AH_TEMPLATE([HAVE_IMLIB2], [Define as 1 if you have imlib2 ]) if [ test -d src/ffmpeg ]; then # FIXME: is there an autoconf abstraction for export/setenv ? export PKG_CONFIG_PATH="./src/ffmpeg/:$PKG_CONFIG_PATH" pkg_ffmpeg="libavformat-uninstalled libavcodec-uninstalled" report_ffmpeg="static" else pkg_ffmpeg="libavformat libavcodec" report_ffmpeg="dynamic" fi pkg_modules="gtk+-2.0 >= 2.0.0 freetype2 jack" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) PKG_CHECK_MODULES(LASH, lash-1.0, AC_DEFINE(HAVE_LASH) report_lash="yes" , [ report_lash="no" ]) PKG_CHECK_MODULES(LIBLO, liblo , AC_DEFINE(HAVE_LIBLO) report_liblo="yes" , [ report_liblo="no" ]) PKG_CHECK_MODULES(FFMPEG, [$pkg_ffmpeg], AC_DEFINE(HAVE_FFMPEG) , [ report_ffmpeg="no" ]) PKG_CHECK_MODULES(IMLIB2, imlib2, AC_DEFINE(HAVE_IMLIB2) report_imlib2="yes" , [ report_imlib2="no" ]) #AC_CHECK_LIB([gmp], [mpq_init], AC_DEFINE(HAVE_GMP) report_gmp="yes" ,[ report_gmp="no" ]) AC_CHECK_HEADER(gmp.h, AC_DEFINE(HAVE_GMP) GMP_LIBS="-lgmp" report_gmp="yes" ,[ report_gmp="no" ]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) AC_SUBST(LASH_CFLAGS) AC_SUBST(LASH_LIBS) AC_SUBST(FFMPEG_CFLAGS) AC_SUBST(FFMPEG_LIBS) AC_SUBST(GMP_LIBS) AC_SUBST(LIBLO_CFLAGS) AC_SUBST(LIBLO_LIBS) AC_SUBST(IMLIB2_CFLAGS) AC_SUBST(IMLIB2_LIBS) GETTEXT_PACKAGE=gjvidtimeline AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) dnl Add the languages which your application supports here. ALL_LINGUAS="" AM_GLIB_GNU_GETTEXT AC_OUTPUT([ Makefile src/Makefile po/Makefile.in ]) AC_MSG_NOTICE([ gjvidtimeline configured: ------------------------- installation prefix: $prefix using LASH: $report_lash liblo (OSC): $report_liblo imlib2 RGBA-scaling (experimental): $report_imlib2 linking against FFMPEG: $report_ffmpeg mult. precision arithmetics: $report_gmp type "make" followed my "make install" as root. ])