configure.ac revision 4a15769b295c4a0fe5355f675e23ab8162c6780b
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl Process this file with autoconf to produce a configure script.
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_PREREQ(2.53)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync# Always use 0.xx+devel instead of 0.xxdevel for the version, e.g. 0.46+devel.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Rationale: (i) placate simple version comparison software such as
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# `dpkg --compare-versions'. (ii) We don't always know what the next
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# version is going to be called until about the time we release it
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync# (whereas we always know what the previous version was called).
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncAC_INIT(inkscape, 0.47+devel)
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncAC_CANONICAL_HOST
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncAC_CONFIG_SRCDIR([src/main.cpp])
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsyncAM_INIT_AUTOMAKE([dist-zip dist-bzip2 tar-pax])
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsyncAC_ARG_ENABLE([lsb], AS_HELP_STRING([--enable-lsb], [LSB-compatible build configuration]), [
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync export CC CXX
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncAM_CONFIG_HEADER(config.h)
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsyncAC_LANG(C++)
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsyncAC_ISC_POSIX
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsyncAM_PROG_CC_STDC
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncAC_PROG_RANLIB
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncAC_PROG_INTLTOOL(0.22)
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncAC_HEADER_STDC
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncINK_BZR_SNAPSHOT_BUILD
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncdnl If automake 1.11 shave the output to look nice
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncm4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncdnl These next few lines are needed only while libcroco is in our source tree.
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsyncAM_PROG_CC_C_O
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsyncif test "$GCC" = "yes"; then
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync # Enable some warnings from gcc.
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync AC_LANG_PUSH(C)
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsync # Generic cpp flags...
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync # What is just plain "-W" ?
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync # Fortify source requires -O2 or higher, which is handled with newer autoconf
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync CPPFLAGS="-W -D_FORTIFY_SOURCE=2 $CPPFLAGS"
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync # Enable format and format security warnings
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync CPPFLAGS="-Wformat -Wformat-security $CPPFLAGS"
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync # Enable all default warnings
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync CPPFLAGS="-Wall $CPPFLAGS"
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync # Test for -Werror=... (introduced some time post-4.0)
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsync # If we hit a format error -- it should be fatal.
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsync AC_MSG_CHECKING([compiler support for -Werror=format-security])
3dc9141e9dc45634498a9b543477bec0bcf5dab8vboxsync ink_svd_CPPFLAGS="$CPPFLAGS"
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync CPPFLAGS="-Werror=format-security $CPPFLAGS"
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), [ink_opt_ok=yes], [ink_opt_ok=no])
66cd15f94910b1afc64c42375d40e01d5d33ad2fvboxsync AC_MSG_RESULT([$ink_opt_ok])
fa8e26644bdce3fe8590a2fd82433dc8bdf55414vboxsync if test "x$ink_opt_ok" != "xyes"; then
fa8e26644bdce3fe8590a2fd82433dc8bdf55414vboxsync CPPFLAGS="$ink_svd_CPPFLAGS"
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsync # C-specific flags...
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync # -Wno-pointer-sign is probably new in gcc 4.0; certainly it isn't accepted
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync # by gcc 2.95.
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_MSG_CHECKING([compiler support for -Wno-pointer-sign])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync ink_svd_CFLAGS="$CFLAGS"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync CFLAGS="-Wno-pointer-sign $CFLAGS"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), [ink_opt_ok=yes], [ink_opt_ok=no])
7ca4727ba2f9e3703771a308b11cd551f3fca4fdvboxsync AC_MSG_RESULT([$ink_opt_ok])
7ca4727ba2f9e3703771a308b11cd551f3fca4fdvboxsync if test "x$ink_opt_ok" != "xyes"; then
2043260aa6abeee8eb8cf0309cebb97ede45851evboxsync CFLAGS="$ink_svd_CFLAGS"
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsync # Linker flags...
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsync # Have linker produce read-only relocations, if it knows how
2043260aa6abeee8eb8cf0309cebb97ede45851evboxsync AC_MSG_CHECKING([linker tolerates -z relro])
e7aa635d70dd0cdf083287ec896fe8cca2775466vboxsync ink_svd_LDFLAGS="$LDFLAGS"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync LDFLAGS="-Wl,-z,relro $LDFLAGS"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_LINK_IFELSE(AC_LANG_PROGRAM([]), [ink_opt_ok=yes], [ink_opt_ok=no])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_MSG_RESULT([$ink_opt_ok])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync if test "x$ink_opt_ok" != "xyes"; then
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync LDFLAGS="$ink_svd_LDFLAGS"
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync AC_LANG_POP
6ba8963f8a097b33938cd6fbcd6b63faf6d26889vboxsync # C++-specific flags are defined further below. Look for CXXFLAGS...
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncdnl Honor aclocal flags
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncdnl Verify our GCC version
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncif test "x$GXX" = "xyes"; then
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync AC_MSG_CHECKING([GNU compiler version])
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync # Don't pass CXXFLAGS to the following CXX command as some
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync # of them can't be specified along with '-v'.
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync cc_version=["`$CXX -v 2>&1 </dev/null |grep 'gcc version' |\
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"]
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync AC_MSG_RESULT([$cc_version])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync # Some version numbers
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync cc_vers_major=`echo $cc_version | cut -f1 -d.`
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync cc_vers_minor=`echo $cc_version | cut -f2 -d.`
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync cc_vers_patch=`echo $cc_version | cut -f3 -d.`
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync test -n "$cc_vers_major" || cc_vers_major=0
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync test -n "$cc_vers_minor" || cc_vers_minor=0
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync test -n "$cc_vers_patch" || cc_vers_patch=0
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch`
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync if test $cc_vers_major -lt 3; then
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_MSG_ERROR([gcc >= 3.0 is needed to compile inkscape])
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# Detect a working version of unordered containers.
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncAC_MSG_CHECKING([TR1 unordered_set usability])
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncAC_COMPILE_IFELSE([
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncint main() {
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync std::tr1::unordered_set<int> i, j;
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync], [unordered_set_works=yes], [unordered_set_works=no])
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncif test "x$unordered_set_works" = "xyes"; then
df409c2a6d13641b0586a36103d015cc8d76da53vboxsync AC_MSG_RESULT([ok])
df409c2a6d13641b0586a36103d015cc8d76da53vboxsync AC_DEFINE(HAVE_TR1_UNORDERED_SET, 1, [Has working standard TR1 unordered_set])
df409c2a6d13641b0586a36103d015cc8d76da53vboxsync AC_MSG_RESULT([not working])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_CHECK_HEADER([boost/unordered_set.hpp], [AC_DEFINE(HAVE_BOOST_UNORDERED_SET, 1, [Boost unordered_set (Boost >= 1.36)])], [])
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncAC_CHECK_HEADER([ext/hash_set], [AC_DEFINE(HAVE_EXT_HASH_SET, 1, [Legacy GNU ext/hash_set])], [])
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# Test whether GCC emits a spurious warning when using boost::optional
df409c2a6d13641b0586a36103d015cc8d76da53vboxsync# If yes, turn off strict aliasing warnings to reduce noise
9868c07279330f31ed91aa986bec707b7e8635a3vboxsync# and allow the legitimate warnings to stand out
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncAC_MSG_CHECKING([for overzealous strict aliasing warnings])
df409c2a6d13641b0586a36103d015cc8d76da53vboxsyncignore_strict_aliasing=no
e4d40e67c9cbfecb0b2ed48eec081648ba3a14bavboxsyncCXXFLAGS_SAVE=$CXXFLAGS
df409c2a6d13641b0586a36103d015cc8d76da53vboxsyncCXXFLAGS="$CXXFLAGS -Werror=strict-aliasing"
df409c2a6d13641b0586a36103d015cc8d76da53vboxsyncAC_COMPILE_IFELSE([
df409c2a6d13641b0586a36103d015cc8d76da53vboxsyncboost::optional<int> x;
9868c07279330f31ed91aa986bec707b7e8635a3vboxsyncint func() {
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync], [ignore_strict_aliasing=no], [ignore_strict_aliasing=yes])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_MSG_RESULT($ignore_strict_aliasing)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncCXXFLAGS=$CXXFLAGS_SAVE
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncif test "x$ignore_strict_aliasing" = "xyes"; then
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync CXXFLAGS="$CXXFLAGS -Wno-strict-aliasing"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl ******************************
b1ae8b1c40ec6bb82e7984b72712df5661332e2cvboxsyncdnl Gettext stuff
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl ******************************
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncGETTEXT_PACKAGE="AC_PACKAGE_NAME"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_SUBST(GETTEXT_PACKAGE)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Translation domain used])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl Add the languages which your application supports here.
6e9e03fceb2e76b576905c4d3faa55ca31555956vboxsyncALL_LINGUAS="am ar az be bg bn br ca ca@valencia cs da de dz el en_AU en_CA en_GB en_US@piglatin eo es_MX es et eu fa fi fr ga gl he hr hu hy id it ja km ko lt mk mn nb ne nl nn pa pl pt_BR pt ro ru rw sk sl sq sr@latin sr sv th tr uk vi zh_CN zh_TW"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAM_GLIB_GNU_GETTEXT
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_PATH_PROG(PKG_CONFIG, pkg-config, no)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncif test "x$PKG_CONFIG" = "xno"; then
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_MSG_ERROR(You have to install pkg-config to compile inkscape.)
a4ab203fe0f52099fa53f52758e83d06f470ac04vboxsyncdnl Find msgfmt. Without this, po/Makefile fails to set MSGFMT on some platforms.
74959ba85f2898a152aed46b41cfe908638f2420vboxsyncAC_PATH_PROG(MSGFMT, msgfmt, msgfmt)
74959ba85f2898a152aed46b41cfe908638f2420vboxsyncAC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
d2c66e0925a76b3636d86b2afb2487fd6f956aebvboxsyncdnl ******************************
d2c66e0925a76b3636d86b2afb2487fd6f956aebvboxsyncdnl Check for OpenMP
d2c66e0925a76b3636d86b2afb2487fd6f956aebvboxsyncdnl Replace this with AC_OPENMP once Autoconf 2.62 is widespread
d2c66e0925a76b3636d86b2afb2487fd6f956aebvboxsyncdnl ******************************
e62e26b69d90d1f29ad146c68606d95cf47340a4vboxsyncAX_OPENMP([openmp_ok=yes],[openmp_ok=no])
2043260aa6abeee8eb8cf0309cebb97ede45851evboxsyncif test "x$openmp_ok" = "xyes"; then
2043260aa6abeee8eb8cf0309cebb97ede45851evboxsync dnl We have it, now set up the flags
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_CHECK_HEADER(omp.h)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl ******************************
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl Check for libpng
0fd850701c4b07dd4cc9074734b8d98f6184055cvboxsyncdnl ******************************
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_CHECK_LIB(png, png_read_info, [AC_CHECK_HEADER(png.h, png_ok=yes, png_ok=yes)], png_ok=no, -lz -lm)
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncif test "x$png_ok" != "xyes"; then
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_MSG_ERROR([libpng >= 1.2 is needed to compile inkscape])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl Handle possible dlopen requirement for libgc
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncdnl Isn't this internal to something in autoconf? Couldn't find it...
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncAC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [lt_cv_dlopen="dlopen"],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [AC_CHECK_LIB([dl], [dlopen],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [AC_CHECK_LIB([svld], [dlopen],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [AC_CHECK_LIB([dld], [dld_link],
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
b1fd0840de05fc2e189d4ea55ba33c2d6b09a4d8vboxsync # To test for the different required libs, I have to
b1fd0840de05fc2e189d4ea55ba33c2d6b09a4d8vboxsync # overcome autoconf's caching system, so I change the
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync # desired function name. They're all in libgc.
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync # The "break" will exit from the top level
6a4586a1a79ef87a9b97119ae350009a258fe924vboxsync # AC_CHECK_HEADERS.
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync AC_CHECK_LIB(gc, GC_init,
b1fd0840de05fc2e189d4ea55ba33c2d6b09a4d8vboxsync [gc_ok=yes;
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync LIBS="-lgc $gc_libs $LIBS";
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync break], [gc_ok=no], [$gc_libs])
6a4586a1a79ef87a9b97119ae350009a258fe924vboxsync gc_libs="-lpthread"
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync AC_CHECK_LIB(gc, GC_malloc,
7a006aff4af0ac1eaed18e272ecc9aeeaf41e4efvboxsync [gc_ok=yes;
b1fd0840de05fc2e189d4ea55ba33c2d6b09a4d8vboxsync LIBS="-lgc $gc_libs $LIBS";
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync break], [gc_ok=no], [$gc_libs])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync gc_libs="$lt_cv_dlopen_libs"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_CHECK_LIB(gc, GC_realloc,
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [gc_ok=yes;
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync LIBS="-lgc $gc_libs $LIBS";
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync break], [gc_ok=no], [$gc_libs])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync gc_libs="-lpthread $lt_cv_dlopen_libs"
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_CHECK_LIB(gc, GC_free,
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [gc_ok=yes;
b1ae8b1c40ec6bb82e7984b72712df5661332e2cvboxsync LIBS="-lgc $gc_libs $LIBS";
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync break], [gc_ok=no], [$gc_libs])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync [gc_ok=no])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsyncif test "x$gc_ok" = "xyes" && test "x$cross_compiling" = "xno" ; then
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_MSG_CHECKING([libgc version 6.4+])
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync AC_RUN_IFELSE(
6831f283dbc5c27bde8a8f8bea179b84a5741697vboxsync [AC_LANG_SOURCE([[
13fdd42f1fc3e519650037a920e6a54c24973866vboxsync #ifdef HAVE_GC_GC_H
01ea175f55740168d1dd0af3277d3b86a30b4f91vboxsync # include <gc.h>
01ea175f55740168d1dd0af3277d3b86a30b4f91vboxsync extern unsigned GC_version;
AC_MSG_ERROR([libgc (the Boehm Conservative Collector) 6.4+, is needed to compile inkscape -- http://www.hpl.hp.com/personal/Hans_Boehm/gc])
AC_CHECK_HEADERS([sys/filio.h])
AC_CHECK_HEADERS([malloc.h])
AC_CHECK_MEMBERS([struct mallinfo.usmblks,
struct mallinfo.fsmblks,
struct mallinfo.uordblks,
struct mallinfo.fordblks,
struct mallinfo.hblkhd],,,
[#include <malloc.h>])
AC_CHECK_HEADER(X11/Xft/Xft.h, xft_ok=yes, xft_ok=no)
XFT_LIBS="-L/usr/X11R6/lib -lXft "
AC_MSG_ERROR([--with-gnome-vfs was specified, but appropriate libgnomevfs development packages could not be found])
AC_HELP_STRING([--without-inkjar], [disable openoffice files (SVG jars)]),[with_ij=$withval], [with_ij=yes])
AC_CHECK_HEADERS(zlib.h)
checkPERL_CFLAGS=`perl -MExtUtils::Embed -e perl_inc 2>/dev/null`
checkPERL_LIBS=`perl -MExtUtils::Embed -e ldopts 2>/dev/null`
checkPYTHON_CFLAGS=`python -c "import distutils.sysconfig ; print '-I%s' % distutils.sysconfig.get_config_var('INCLUDEPY')" 2>/dev/null`
checkPYTHON_LIBS=`python -c "import distutils.sysconfig ; print '%s/%s %s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'),distutils.sysconfig.get_config_var('LIBS'))" 2>/dev/null`
AC_MSG_ERROR([--enable-lcms was specified, but appropriate LittleCms development packages could not be found])
#include <GfxState.h>
dnl AS_HELP_STRING([--enable-inkboard], [enable Inkboard online whiteboard facility (disabled by default)]),
dnl ***********************************************************************************************************
dnl Check for a Cairo version that implements user-fonts feature (with a stable API, that is cairo > 1.7.6),
dnl ***********************************************************************************************************
PKG_CHECK_MODULES(INKSCAPE, gdkmm-2.4 glibmm-2.4 giomm-2.4 gtkmm-2.4 >= 2.10.0 gtk+-2.0 libxml-2.0 >= 2.6.11 libxslt >= 1.0.15 cairo sigc++-2.0 >= $min_sigc_version $ink_spell_pkg gthread-2.0 >= 2.0 libpng >= 1.2 gsl)
#include <Carbon/Carbon.h>
#include <CoreServices/CoreServices.h>
AC_CHECK_HEADERS([boost/concept_check.hpp], [], AC_MSG_ERROR([You need the boost package (e.g. libboost-dev)]))
AC_CHECK_HEADER(popt.h,
AC_CHECK_LIB(aspell, new_aspell_config, [AC_CHECK_HEADER(aspell.h, aspell_ok=yes, aspell_ok=no)], aspell_ok=no, -lz -lm)
AC_MSG_CHECKING(for linker mappings at /proc/self/maps)
if test -e /proc/self/maps; then
AC_MSG_ERROR(/proc/self/maps is not available. Binary relocation cannot be enabled.)
AC_MSG_CHECKING(for linker mappings at /proc/self/maps)
if test -e /proc/self/maps; then
AC_CHECK_HEADERS(ieeefp.h)
AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_HEADERS(libintl.h)
AC_CHECK_HEADERS(stddef.h)
AC_CHECK_HEADERS(sys/time.h)
# One way of selectively disabling the warnings (i.e. only where the
# programmer deliberately isn't using the parameter, e.g. for a callback)
# in src/seltrans.cpp:sp_seltrans_handle_event; this indicates that the
# programmer deliberately has an unused parameter (e.g. because it's used
dnl AC_ARG_ENABLE(libinkscape, AC_HELP_STRING([--enable-libinkscape], [Compile dynamic library (experimental)]), [splib=$enableval], [splib=no])
dnl Define our data paths for config.h
share/icons/application/16x16/Makefile
share/icons/application/22x22/Makefile
share/icons/application/24x24/Makefile
share/icons/application/32x32/Makefile
share/icons/application/48x48/Makefile
share/icons/application/256x256/Makefile