| configure.ac (57f49b00) | configure.ac (498ce991) |
|---|---|
| 1dnl /****************************************************************** 2dnl * vi:set sw=3 ts=3 et: 3dnl * 4dnl * Name: configure.in 5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland 6dnl * Date: $Date: 2008-09-08 07:38:40 $ 7dnl * 8dnl * Desc: This file serves as input for the GNU autoconf package --- 202 unchanged lines hidden (view full) --- 211],,enable_cairo=no) 212AC_ARG_WITH(system-cairo, 213[ --with-system-cairo Use Cairo libraries already on system 214],,) 215AC_ARG_ENABLE(cairo-canvas, 216[ --disable-cairo-canvas Determines whether to build the Cairo canvas on 217 platforms where Cairo is available. 218],,enable_cairo_canvas=yes) | 1dnl /****************************************************************** 2dnl * vi:set sw=3 ts=3 et: 3dnl * 4dnl * Name: configure.in 5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland 6dnl * Date: $Date: 2008-09-08 07:38:40 $ 7dnl * 8dnl * Desc: This file serves as input for the GNU autoconf package --- 202 unchanged lines hidden (view full) --- 211],,enable_cairo=no) 212AC_ARG_WITH(system-cairo, 213[ --with-system-cairo Use Cairo libraries already on system 214],,) 215AC_ARG_ENABLE(cairo-canvas, 216[ --disable-cairo-canvas Determines whether to build the Cairo canvas on 217 platforms where Cairo is available. 218],,enable_cairo_canvas=yes) |
| 219AC_ARG_ENABLE(librsvg, 220[ --enable-librsvg Determines whether to use librsvg library on 221 platforms where librsvg is available. 222 (actually, it is possible to build with 223 --disable-librsvg and to still have SVG support 224 within a running soffice instance, since this 225 dependency is a runtime only dependency. 226 To have SVG suppport at runtime, the librsvg, the cairo 227 and the gobject library - and all depending libraries 228 as well - need to be accessible by the running soffice 229 instance. 230 The intention of defaulting this flag to yes is to 231 indicate this fact to the build maintainer) 232],,enable_librsvg=yes) | |
| 233AC_ARG_ENABLE(opengl, 234[ --enable-opengl Determines whether to build the OpenGL 3D slide 235 transitions component 236],,enable_opengl=no) 237AC_ARG_ENABLE(dbus, 238[ --enable-dbus Determines whether to enable presentation mode 239 screensaver control under GNOME via DBUS 240],,enable_dbus=no) --- 718 unchanged lines hidden (view full) --- 959dnl The following is a list of supported systems. 960dnl Sequential to keep the logic very simple 961dnl These values may be checked and reset later. 962dnl =================================================================== 963case "$build_os" in 964 solaris*) 965 test_gtk=yes 966 test_cairo=yes | 219AC_ARG_ENABLE(opengl, 220[ --enable-opengl Determines whether to build the OpenGL 3D slide 221 transitions component 222],,enable_opengl=no) 223AC_ARG_ENABLE(dbus, 224[ --enable-dbus Determines whether to enable presentation mode 225 screensaver control under GNOME via DBUS 226],,enable_dbus=no) --- 718 unchanged lines hidden (view full) --- 945dnl The following is a list of supported systems. 946dnl Sequential to keep the logic very simple 947dnl These values may be checked and reset later. 948dnl =================================================================== 949case "$build_os" in 950 solaris*) 951 test_gtk=yes 952 test_cairo=yes |
| 967 test_librsvg=yes | |
| 968 test_kde=yes 969 test_cups=yes 970 test_randr=yes 971 test_freetype=yes 972 test_gstreamer=yes 973 _os=SunOS 974 AC_PATH_PROG( GNUTAR, gtar,,$PATH:/usr/sfw/bin) 975 if test -z "$GNUTAR"; then --- 18 unchanged lines hidden (view full) --- 994 AC_MSG_RESULT([ok ($build_cpu)]) 995 else 996 AC_MSG_ERROR([only sparc and i386 processors are supported]) 997 fi 998 ;; 999 linux-gnu*|k*bsd*-gnu*) 1000 test_gtk=yes 1001 test_cairo=yes | 953 test_kde=yes 954 test_cups=yes 955 test_randr=yes 956 test_freetype=yes 957 test_gstreamer=yes 958 _os=SunOS 959 AC_PATH_PROG( GNUTAR, gtar,,$PATH:/usr/sfw/bin) 960 if test -z "$GNUTAR"; then --- 18 unchanged lines hidden (view full) --- 979 AC_MSG_RESULT([ok ($build_cpu)]) 980 else 981 AC_MSG_ERROR([only sparc and i386 processors are supported]) 982 fi 983 ;; 984 linux-gnu*|k*bsd*-gnu*) 985 test_gtk=yes 986 test_cairo=yes |
| 1002 test_librsvg=yes | |
| 1003 test_kde=yes 1004 test_kde4=yes 1005 test_cups=yes 1006 test_randr=yes 1007 test_freetype=yes 1008 test_gstreamer=yes 1009 _os=Linux 1010 ;; 1011 gnu) 1012 test_cups=no 1013 _os=GNU 1014 ;; 1015 cygwin*) # Windows 1016 test_cups=no 1017 test_cairo=yes | 987 test_kde=yes 988 test_kde4=yes 989 test_cups=yes 990 test_randr=yes 991 test_freetype=yes 992 test_gstreamer=yes 993 _os=Linux 994 ;; 995 gnu) 996 test_cups=no 997 _os=GNU 998 ;; 999 cygwin*) # Windows 1000 test_cups=no 1001 test_cairo=yes |
| 1018 test_librsvg=no | |
| 1019 test_freetype=no 1020 test_gstreamer=no 1021 _os=WINNT 1022 ;; 1023 darwin*) # Mac OS X 1024 test_cups=yes 1025 test_gtk=yes 1026 test_cairo=yes | 1002 test_freetype=no 1003 test_gstreamer=no 1004 _os=WINNT 1005 ;; 1006 darwin*) # Mac OS X 1007 test_cups=yes 1008 test_gtk=yes 1009 test_cairo=yes |
| 1027 test_librsvg=no | |
| 1028 test_randr=no 1029 test_freetype=no 1030 test_gstreamer=no 1031 _os=Darwin 1032 if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then 1033 AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray]) 1034 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn 1035 enable_systray=no 1036 fi 1037 ;; 1038 os2*) 1039 test_x=no 1040 test_cups=no 1041 test_randr=no 1042 test_gtk=no | 1010 test_randr=no 1011 test_freetype=no 1012 test_gstreamer=no 1013 _os=Darwin 1014 if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then 1015 AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray]) 1016 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn 1017 enable_systray=no 1018 fi 1019 ;; 1020 os2*) 1021 test_x=no 1022 test_cups=no 1023 test_randr=no 1024 test_gtk=no |
| 1043 test_librsvg=no | |
| 1044 test_freetype=no 1045 test_gstreamer=no 1046 _os=OS2 1047 ;; 1048 freebsd*) 1049 test_gtk=yes 1050 test_cairo=yes | 1025 test_freetype=no 1026 test_gstreamer=no 1027 _os=OS2 1028 ;; 1029 freebsd*) 1030 test_gtk=yes 1031 test_cairo=yes |
| 1051 test_librsvg=yes | |
| 1052 test_kde=yes 1053 test_kde4=yes 1054 test_cups=yes 1055 test_randr=yes 1056 test_freetype=yes 1057 test_gstreamer=yes 1058 AC_MSG_CHECKING([the FreeBSD operating system release]) 1059 if test -n "$with_os_version"; then --- 19 unchanged lines hidden (view full) --- 1079 osf) 1080 test_cups=no 1081 test_randr=no 1082 _os=OSF1 1083 ;; 1084 netbsd) 1085 test_gtk=yes 1086 test_cairo=yes | 1032 test_kde=yes 1033 test_kde4=yes 1034 test_cups=yes 1035 test_randr=yes 1036 test_freetype=yes 1037 test_gstreamer=yes 1038 AC_MSG_CHECKING([the FreeBSD operating system release]) 1039 if test -n "$with_os_version"; then --- 19 unchanged lines hidden (view full) --- 1059 osf) 1060 test_cups=no 1061 test_randr=no 1062 _os=OSF1 1063 ;; 1064 netbsd) 1065 test_gtk=yes 1066 test_cairo=yes |
| 1087 test_librsvg=yes | |
| 1088 test_kde=yes 1089 test_kde4=yes 1090 test_cups=no 1091 test_randr=yes 1092 test_freetype=yes 1093 test_gstreamer=yes 1094 PTHREAD_CFLAGS="-pthread" 1095 PTHREAD_LIBS="-pthread -lpthread" --- 4844 unchanged lines hidden (view full) --- 5940 5941ENABLE_CAIRO_CANVAS="FALSE" 5942if test "$enable_cairo_canvas" = "yes" -a "$ENABLE_CAIRO" = "TRUE" ; then 5943 ENABLE_CAIRO_CANVAS="TRUE" 5944fi 5945AC_SUBST(ENABLE_CAIRO_CANVAS) 5946 5947dnl =================================================================== | 1067 test_kde=yes 1068 test_kde4=yes 1069 test_cups=no 1070 test_randr=yes 1071 test_freetype=yes 1072 test_gstreamer=yes 1073 PTHREAD_CFLAGS="-pthread" 1074 PTHREAD_LIBS="-pthread -lpthread" --- 4844 unchanged lines hidden (view full) --- 5919 5920ENABLE_CAIRO_CANVAS="FALSE" 5921if test "$enable_cairo_canvas" = "yes" -a "$ENABLE_CAIRO" = "TRUE" ; then 5922 ENABLE_CAIRO_CANVAS="TRUE" 5923fi 5924AC_SUBST(ENABLE_CAIRO_CANVAS) 5925 5926dnl =================================================================== |
| 5948dnl Check whether the librsvg libraries are available. 5949dnl =================================================================== 5950 5951ENABLE_LIBRSVG="" 5952LIBRSVG_CFLAGS="" 5953LIBRSVG_LIBS="" 5954 5955if test "$test_librsvg" = "yes"; then 5956 AC_MSG_CHECKING([whether to use librsvg]) 5957 if test "x$enable_librsvg" != "xno" ; then 5958 PKG_CHECK_MODULES( LIBRSVG, librsvg-2.0 >= 2.14,,AC_MSG_ERROR([requirements to build with librsvg support not met. Use --disable-librsvg or install the missing packages])) 5959 ENABLE_LIBRSVG="TRUE" 5960 AC_MSG_RESULT([yes]) 5961 else 5962 AC_MSG_RESULT([no]) 5963 fi 5964fi 5965 5966AC_SUBST(ENABLE_LIBRSVG) 5967AC_SUBST(LIBRSVG_CFLAGS) 5968AC_SUBST(LIBRSVG_LIBS) 5969 5970dnl =================================================================== | |
| 5971dnl Check whether the OpenGL libraries are available 5972dnl =================================================================== 5973 5974AC_MSG_CHECKING([whether to build the OpenGL Transitions component]) 5975ENABLE_OPENGL= 5976 5977if test "x$enable_opengl" != "xno" ; then 5978 AC_MSG_RESULT([yes]) --- 785 unchanged lines hidden (view full) --- 6764 AC_MSG_RESULT([no, libXinerama not found or wrong architecture.]) 6765 fi 6766else 6767 AC_MSG_RESULT([no]) 6768fi 6769AC_SUBST(USE_XINERAMA) 6770AC_SUBST(XINERAMA_LINK) 6771 | 5927dnl Check whether the OpenGL libraries are available 5928dnl =================================================================== 5929 5930AC_MSG_CHECKING([whether to build the OpenGL Transitions component]) 5931ENABLE_OPENGL= 5932 5933if test "x$enable_opengl" != "xno" ; then 5934 AC_MSG_RESULT([yes]) --- 785 unchanged lines hidden (view full) --- 6720 AC_MSG_RESULT([no, libXinerama not found or wrong architecture.]) 6721 fi 6722else 6723 AC_MSG_RESULT([no]) 6724fi 6725AC_SUBST(USE_XINERAMA) 6726AC_SUBST(XINERAMA_LINK) 6727 |
| 6772if test "$ENABLE_LIBRSVG" = "TRUE" 6773then | |
| 6774dnl =================================================================== | 6728dnl =================================================================== |
| 6775dnl Test whether to build librsvg or rely on the system version | 6729dnl always rely on the system version of gdk-pixbuf |
| 6776dnl =================================================================== | 6730dnl =================================================================== |
| 6777AC_MSG_CHECKING([whether to build own version of librsvg]) | |
| 6778 | 6731 |
| 6779case "$_os" in 6780 WINNT*) # Windows 6781 SYSTEM_LIBRSVG=NO 6782 AC_MSG_RESULT([yes]) 6783 ;; 6784 Darwin*) 6785 SYSTEM_LIBRSVG=NO 6786 AC_MSG_RESULT([yes]) 6787 ;; 6788 *) 6789 SYSTEM_LIBRSVG=YES 6790 AC_MSG_RESULT([no]) 6791 ;; 6792esac 6793AC_SUBST(SYSTEM_LIBRSVG) 6794 6795dnl =================================================================== 6796dnl Test whether to build gdk-pixbuf or rely on the system version 6797dnl =================================================================== 6798AC_MSG_CHECKING([whether to build own version of gdk-pixbuf]) 6799 6800case "$_os" in 6801 WINNT*) # Windows 6802 SYSTEM_GDKPIXBUF=NO 6803 AC_MSG_RESULT([yes]) 6804 ;; 6805 Darwin*) 6806 SYSTEM_GDKPIXBUF=NO 6807 AC_MSG_RESULT([yes]) 6808 ;; 6809 *) 6810 SYSTEM_GDKPIXBUF=YES 6811 AC_MSG_RESULT([no]) 6812 ;; 6813esac | 6732SYSTEM_GDKPIXBUF=YES |
| 6814AC_SUBST(SYSTEM_GDKPIXBUF) 6815 6816dnl =================================================================== | 6733AC_SUBST(SYSTEM_GDKPIXBUF) 6734 6735dnl =================================================================== |
| 6817dnl Test whether to build glib or rely on the system version | 6736dnl always rely on the system version of glib |
| 6818dnl =================================================================== | 6737dnl =================================================================== |
| 6819AC_MSG_CHECKING([whether to build own version of glib]) | |
| 6820 | 6738 |
| 6821case "$_os" in 6822 WINNT*) # Windows 6823 SYSTEM_GLIB=NO 6824 AC_MSG_RESULT([yes]) 6825 ;; 6826 Darwin*) 6827 SYSTEM_GLIB=NO 6828 AC_MSG_RESULT([yes]) 6829 ;; 6830 *) 6831 SYSTEM_GLIB=YES 6832 AC_MSG_RESULT([no]) 6833 ;; 6834esac | 6739SYSTEM_GLIB=YES |
| 6835AC_SUBST(SYSTEM_GLIB) 6836 6837dnl =================================================================== | 6740AC_SUBST(SYSTEM_GLIB) 6741 6742dnl =================================================================== |
| 6838dnl Test whether to build gettext or rely on the system version | 6743dnl always rely on the system version of gettext |
| 6839dnl =================================================================== | 6744dnl =================================================================== |
| 6840AC_MSG_CHECKING([whether to build own version of gettext]) | |
| 6841 | 6745 |
| 6842case "$_os" in 6843 WINNT*) # Windows 6844 SYSTEM_GETTEXT=NO 6845 AC_MSG_RESULT([yes]) 6846 ;; 6847 Darwin*) 6848 SYSTEM_GETTEXT=NO 6849 AC_MSG_RESULT([yes]) 6850 ;; 6851 *) 6852 SYSTEM_GETTEXT=YES 6853 AC_MSG_RESULT([no]) 6854 ;; 6855esac | 6746SYSTEM_GETTEXT=YES |
| 6856AC_SUBST(SYSTEM_GETTEXT) 6857 6858dnl =================================================================== | 6747AC_SUBST(SYSTEM_GETTEXT) 6748 6749dnl =================================================================== |
| 6859dnl Test whether to build libcroco or rely on the system version | 6750dnl always rely on the system version of pango |
| 6860dnl =================================================================== | 6751dnl =================================================================== |
| 6861AC_MSG_CHECKING([whether to build own version of libcroco]) | |
| 6862 | 6752 |
| 6863case "$_os" in 6864 WINNT*) # Windows 6865 SYSTEM_LIBCROCO=NO 6866 AC_MSG_RESULT([yes]) 6867 ;; 6868 Darwin*) 6869 SYSTEM_LIBCROCO=NO 6870 AC_MSG_RESULT([yes]) 6871 ;; 6872 *) 6873 SYSTEM_LIBCROCO=YES 6874 AC_MSG_RESULT([no]) 6875 ;; 6876esac 6877AC_SUBST(SYSTEM_LIBCROCO) 6878 6879dnl =================================================================== 6880dnl Test whether to build pango or rely on the system version 6881dnl =================================================================== 6882AC_MSG_CHECKING([whether to build own version of pango]) 6883 6884case "$_os" in 6885 WINNT*) # Windows 6886 SYSTEM_PANGO=NO 6887 AC_MSG_RESULT([yes]) 6888 ;; 6889 Darwin*) 6890 SYSTEM_PANGO=NO 6891 AC_MSG_RESULT([yes]) 6892 ;; 6893 *) 6894 SYSTEM_PANGO=YES 6895 AC_MSG_RESULT([no]) 6896 ;; 6897esac | 6753SYSTEM_PANGO=YES |
| 6898AC_SUBST(SYSTEM_PANGO) 6899 6900dnl =================================================================== | 6754AC_SUBST(SYSTEM_PANGO) 6755 6756dnl =================================================================== |
| 6901dnl Test whether to build libgsf or rely on the system version 6902dnl =================================================================== 6903AC_MSG_CHECKING([whether to build own version of libgsf]) 6904 6905case "$_os" in 6906 WINNT*) # Windows 6907 SYSTEM_LIBGSF=NO 6908 AC_MSG_RESULT([yes]) 6909 ;; 6910 *) 6911 SYSTEM_LIBGSF=YES 6912 AC_MSG_RESULT([no]) 6913 ;; 6914esac 6915AC_SUBST(SYSTEM_LIBGSF) 6916else 6917 SYSTEM_LIBGSF=YES 6918 AC_SUBST(SYSTEM_LIBGSF) 6919 SYSTEM_LIBRSVG=YES 6920 AC_SUBST(SYSTEM_LIBRSVG) 6921 SYSTEM_GDKPIXBUF=YES 6922 AC_SUBST(SYSTEM_GDKPIXBUF) 6923 SYSTEM_GLIB=YES 6924 AC_SUBST(SYSTEM_GLIB) 6925 SYSTEM_GETTEXT=YES 6926 AC_SUBST(SYSTEM_GETTEXT) 6927 SYSTEM_LIBCROCO=YES 6928 AC_SUBST(SYSTEM_LIBCROCO) 6929 SYSTEM_PANGO=YES 6930 AC_SUBST(SYSTEM_PANGO) 6931fi 6932 6933dnl =================================================================== | |
| 6934dnl Test whether to build libpng or rely on the system version 6935dnl =================================================================== 6936AC_MSG_CHECKING([whether to build own version of libpng]) 6937 6938case "$_os" in 6939 WINNT*) # Windows 6940 SYSTEM_LIBPNG=NO 6941 AC_MSG_RESULT([yes]) --- 460 unchanged lines hidden --- | 6757dnl Test whether to build libpng or rely on the system version 6758dnl =================================================================== 6759AC_MSG_CHECKING([whether to build own version of libpng]) 6760 6761case "$_os" in 6762 WINNT*) # Windows 6763 SYSTEM_LIBPNG=NO 6764 AC_MSG_RESULT([yes]) --- 460 unchanged lines hidden --- |