diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | Makefile.in | 6 | ||||
-rw-r--r-- | config.h.in | 3 | ||||
-rwxr-xr-x | configure | 105 | ||||
-rw-r--r-- | configure.ac | 13 | ||||
-rw-r--r-- | doc/reference/Makefile.in | 2 | ||||
-rw-r--r-- | lib/Makefile.in | 2 | ||||
-rw-r--r-- | libcrystfel/Makefile.in | 2 |
8 files changed, 131 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index ab85a6af..03c7096f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -72,9 +72,11 @@ src_partialator_SOURCES = src/partialator.c src/post-refinement.c \ if HAVE_CAIRO if HAVE_PANGO +if HAVE_PANGOCAIRO src_partialator_SOURCES += src/scaling-report.c endif endif +endif tests_list_check_SOURCES = tests/list_check.c diff --git a/Makefile.in b/Makefile.in index 79ccb5fa..1fa2bf8c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -55,7 +55,7 @@ TESTS = tests/list_check$(EXEEXT) tests/first_merge_check \ @HAVE_OPENCL_TRUE@am__append_3 = src/cl-utils.c src/diffraction-gpu.c @HAVE_OPENCL_TRUE@am__append_4 = tests/gpu_sim_check @HAVE_OPENCL_TRUE@am__append_5 = tests/gpu_sim_check -@HAVE_CAIRO_TRUE@@HAVE_PANGO_TRUE@am__append_6 = src/scaling-report.c +@HAVE_CAIRO_TRUE@@HAVE_PANGOCAIRO_TRUE@@HAVE_PANGO_TRUE@am__append_6 = src/scaling-report.c subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ @@ -137,7 +137,7 @@ src_partial_sim_DEPENDENCIES = $(top_builddir)/lib/libgnu.a \ $(top_builddir)/libcrystfel/libcrystfel.la am__src_partialator_SOURCES_DIST = src/partialator.c \ src/post-refinement.c src/hrs-scaling.c src/scaling-report.c -@HAVE_CAIRO_TRUE@@HAVE_PANGO_TRUE@am__objects_1 = src/scaling-report.$(OBJEXT) +@HAVE_CAIRO_TRUE@@HAVE_PANGOCAIRO_TRUE@@HAVE_PANGO_TRUE@am__objects_1 = src/scaling-report.$(OBJEXT) am_src_partialator_OBJECTS = src/partialator.$(OBJEXT) \ src/post-refinement.$(OBJEXT) src/hrs-scaling.$(OBJEXT) \ $(am__objects_1) @@ -475,6 +475,8 @@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ +PangoCairo_CFLAGS = @PangoCairo_CFLAGS@ +PangoCairo_LIBS = @PangoCairo_LIBS@ Pango_CFLAGS = @Pango_CFLAGS@ Pango_LIBS = @Pango_LIBS@ RANLIB = @RANLIB@ diff --git a/config.h.in b/config.h.in index e7824e51..2b7e683d 100644 --- a/config.h.in +++ b/config.h.in @@ -88,6 +88,9 @@ /* Define to 1 if Pango is available */ #undef HAVE_PANGO +/* Define to 1 if PangoCairo is available */ +#undef HAVE_PANGOCAIRO + /* Define to 1 if memmem is declared even after undefining macros. */ #undef HAVE_RAW_DECL_MEMMEM @@ -634,6 +634,8 @@ HAVE_FFTW_FALSE HAVE_FFTW_TRUE HAVE_PANGO_FALSE HAVE_PANGO_TRUE +HAVE_PANGOCAIRO_FALSE +HAVE_PANGOCAIRO_TRUE HAVE_CAIRO_FALSE HAVE_CAIRO_TRUE BUILD_HDFSEE_FALSE @@ -646,6 +648,8 @@ GDK_pixbuf_2_LIBS GDK_pixbuf_2_CFLAGS GDK_pixbuf_LIBS GDK_pixbuf_CFLAGS +PangoCairo_LIBS +PangoCairo_CFLAGS Pango_LIBS Pango_CFLAGS Cairo_LIBS @@ -899,6 +903,8 @@ Cairo_CFLAGS Cairo_LIBS Pango_CFLAGS Pango_LIBS +PangoCairo_CFLAGS +PangoCairo_LIBS GDK_pixbuf_CFLAGS GDK_pixbuf_LIBS GDK_pixbuf_2_CFLAGS @@ -1584,6 +1590,10 @@ Some influential environment variables: Pango_CFLAGS C compiler flags for Pango, overriding pkg-config Pango_LIBS linker flags for Pango, overriding pkg-config + PangoCairo_CFLAGS + C compiler flags for PangoCairo, overriding pkg-config + PangoCairo_LIBS + linker flags for PangoCairo, overriding pkg-config GDK_pixbuf_CFLAGS C compiler flags for GDK_pixbuf, overriding pkg-config GDK_pixbuf_LIBS @@ -13654,6 +13664,85 @@ $as_echo "#define HAVE_PANGO 1" >>confdefs.h fi +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PangoCairo" >&5 +$as_echo_n "checking for PangoCairo... " >&6; } + +if test -n "$PangoCairo_CFLAGS"; then + pkg_cv_PangoCairo_CFLAGS="$PangoCairo_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo\""; } >&5 + ($PKG_CONFIG --exists --print-errors "pangocairo") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PangoCairo_CFLAGS=`$PKG_CONFIG --cflags "pangocairo" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$PangoCairo_LIBS"; then + pkg_cv_PangoCairo_LIBS="$PangoCairo_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo\""; } >&5 + ($PKG_CONFIG --exists --print-errors "pangocairo") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PangoCairo_LIBS=`$PKG_CONFIG --libs "pangocairo" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + PangoCairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo" 2>&1` + else + PangoCairo_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$PangoCairo_PKG_ERRORS" >&5 + + + have_pangocairo=false + +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + + have_pangocairo=false + +else + PangoCairo_CFLAGS=$pkg_cv_PangoCairo_CFLAGS + PangoCairo_LIBS=$pkg_cv_PangoCairo_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + have_pangocairo=true + +$as_echo "#define HAVE_PANGOCAIRO 1" >>confdefs.h + + +fi + + else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 @@ -14121,6 +14210,15 @@ else fi + if test x$have_pangocairo = xtrue; then + HAVE_PANGOCAIRO_TRUE= + HAVE_PANGOCAIRO_FALSE='#' +else + HAVE_PANGOCAIRO_TRUE='#' + HAVE_PANGOCAIRO_FALSE= +fi + + if test x$have_pango = xtrue; then HAVE_PANGO_TRUE= HAVE_PANGO_FALSE='#' @@ -14202,6 +14300,7 @@ MAIN_CFLAGS="$CFLAGS $HDF5_CFLAGS $GSL_CFLAGS $OPENCL_CFLAGS -pthread" MAIN_CFLAGS="$MAIN_CFLAGS $GTK_CFLAGS $LIBTIFF_CFLAGS -D_GNU_SOURCE " MAIN_CFLAGS="$MAIN_CFLAGS $libPNG_CFLAGS $Cairo_CFLAGS $GDK_pixbuf_CFLAGS" MAIN_CFLAGS="$MAIN_CFLAGS $GDK_pixbuf_2_CFLAGS $FFTW_CFLAGS $Pango_CFLAGS" +MAIN_CFLAGS="$MAIN_CFLAGS $PangoCairo_CFLAGS" LIBCRYSTFEL_CFLAGS="$CFLAGS $HDF5_CFLAGS $GSL_CFLAGS $FFTW_CFLAGS" @@ -14210,7 +14309,7 @@ LIBCRYSTFEL_CFLAGS="$CFLAGS $HDF5_CFLAGS $GSL_CFLAGS $FFTW_CFLAGS" MAIN_LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS $OPENCL_LIBS -pthread" MAIN_LIBS="$MAIN_LIBS $LIBTIFF_LIBS $libPNG_LIBS $Cairo_LIBS $GDK_pixbuf_LIBS" MAIN_LIBS="$MAIN_LIBS $GDK_pixbuf_2_LIBS $TIMER_LIBS $FFTW_LIBS" -MAIN_LIBS="$MAIN_LIBS $Pango_LIBS $LDFLAGS" +MAIN_LIBS="$MAIN_LIBS $Pango_LIBS $PangoCairo_LIBS $LDFLAGS" LIBCRYSTFEL_LIBS="$LIBS $HDF5_LIBS $GSL_LIBS $FFTW_LIBS $LDFLAGS" @@ -14610,6 +14709,10 @@ if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_PANGOCAIRO_TRUE}" && test -z "${HAVE_PANGOCAIRO_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PANGOCAIRO\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_PANGO_TRUE}" && test -z "${HAVE_PANGO_FALSE}"; then as_fn_error $? "conditional \"HAVE_PANGO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 diff --git a/configure.ac b/configure.ac index 9590ae62..1f496744 100644 --- a/configure.ac +++ b/configure.ac @@ -204,6 +204,14 @@ AS_IF([test "x$enable_pango" != "xno"], ], [ have_pango=false ]) + PKG_CHECK_MODULES([PangoCairo], [pangocairo], + [ + have_pangocairo=true + AC_DEFINE([HAVE_PANGOCAIRO], [1], + [Define to 1 if PangoCairo is available]) + ], [ + have_pangocairo=false + ]) ], [ AC_MSG_RESULT([no]) ]) @@ -266,6 +274,8 @@ AM_CONDITIONAL([BUILD_HDFSEE], test x$have_gdk_pixbuf = xtrue \ AM_CONDITIONAL([HAVE_CAIRO], test x$have_cairo = xtrue) +AM_CONDITIONAL([HAVE_PANGOCAIRO], test x$have_pangocairo = xtrue) + AM_CONDITIONAL([HAVE_PANGO], test x$have_pango = xtrue) AM_CONDITIONAL([HAVE_FFTW], test x$have_fftw = xtrue) @@ -277,6 +287,7 @@ MAIN_CFLAGS="$CFLAGS $HDF5_CFLAGS $GSL_CFLAGS $OPENCL_CFLAGS -pthread" MAIN_CFLAGS="$MAIN_CFLAGS $GTK_CFLAGS $LIBTIFF_CFLAGS -D_GNU_SOURCE " MAIN_CFLAGS="$MAIN_CFLAGS $libPNG_CFLAGS $Cairo_CFLAGS $GDK_pixbuf_CFLAGS" MAIN_CFLAGS="$MAIN_CFLAGS $GDK_pixbuf_2_CFLAGS $FFTW_CFLAGS $Pango_CFLAGS" +MAIN_CFLAGS="$MAIN_CFLAGS $PangoCairo_CFLAGS" AC_SUBST([MAIN_CFLAGS]) LIBCRYSTFEL_CFLAGS="$CFLAGS $HDF5_CFLAGS $GSL_CFLAGS $FFTW_CFLAGS" @@ -285,7 +296,7 @@ AC_SUBST([LIBCRYSTFEL_CFLAGS]) MAIN_LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS $OPENCL_LIBS -pthread" MAIN_LIBS="$MAIN_LIBS $LIBTIFF_LIBS $libPNG_LIBS $Cairo_LIBS $GDK_pixbuf_LIBS" MAIN_LIBS="$MAIN_LIBS $GDK_pixbuf_2_LIBS $TIMER_LIBS $FFTW_LIBS" -MAIN_LIBS="$MAIN_LIBS $Pango_LIBS $LDFLAGS" +MAIN_LIBS="$MAIN_LIBS $Pango_LIBS $PangoCairo_LIBS $LDFLAGS" AC_SUBST([MAIN_LIBS]) LIBCRYSTFEL_LIBS="$LIBS $HDF5_LIBS $GSL_LIBS $FFTW_LIBS $LDFLAGS" diff --git a/doc/reference/Makefile.in b/doc/reference/Makefile.in index 96411ecb..6136165e 100644 --- a/doc/reference/Makefile.in +++ b/doc/reference/Makefile.in @@ -214,6 +214,8 @@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ +PangoCairo_CFLAGS = @PangoCairo_CFLAGS@ +PangoCairo_LIBS = @PangoCairo_LIBS@ Pango_CFLAGS = @Pango_CFLAGS@ Pango_LIBS = @Pango_LIBS@ RANLIB = @RANLIB@ diff --git a/lib/Makefile.in b/lib/Makefile.in index f345d548..ba56be44 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -296,6 +296,8 @@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ +PangoCairo_CFLAGS = @PangoCairo_CFLAGS@ +PangoCairo_LIBS = @PangoCairo_LIBS@ Pango_CFLAGS = @Pango_CFLAGS@ Pango_LIBS = @Pango_LIBS@ RANLIB = @RANLIB@ diff --git a/libcrystfel/Makefile.in b/libcrystfel/Makefile.in index 62696f8b..f07bd5dd 100644 --- a/libcrystfel/Makefile.in +++ b/libcrystfel/Makefile.in @@ -269,6 +269,8 @@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ PRAGMA_COLUMNS = @PRAGMA_COLUMNS@ PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@ +PangoCairo_CFLAGS = @PangoCairo_CFLAGS@ +PangoCairo_LIBS = @PangoCairo_LIBS@ Pango_CFLAGS = @Pango_CFLAGS@ Pango_LIBS = @Pango_LIBS@ RANLIB = @RANLIB@ |