PageRenderTime 81ms CodeModel.GetById 38ms RepoModel.GetById 1ms app.codeStats 1ms

/configure.ac

https://bitbucket.org/markjenkins/libreoffice_ubuntu-debian-fixes
m4 | 12315 lines | 10721 code | 1165 blank | 429 comment | 0 complexity | 9a417b8576e187db20823c6988e69605 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-2.1, BSD-3-Clause-No-Nuclear-License-2014

Large files files are truncated, but you can click here to view the full file

  1. dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; fill-column: 102 -*-
  2. dnl configure.ac serves as input for the GNU autoconf package
  3. dnl in order to create a configure script.
  4. AC_INIT([LibreOffice],[4.1],[],[],[http://documentfoundation.org/])
  5. AC_PREREQ([2.59])
  6. save_CC=$CC
  7. save_CXX=$CXX
  8. BUILD_TYPE="LibO"
  9. SCPDEFS=""
  10. GIT_NEEDED_SUBMODULES=""
  11. LO_PATH= # used by path_munge to construct a PATH variable
  12. PathFormat()
  13. {
  14. formatted_path="$1"
  15. if test "$build_os" = "cygwin"; then
  16. pf_part1=
  17. pf_conv_to_dos=
  18. for pf_part in $formatted_path; do
  19. if test -z "$pf_part1"; then
  20. pf_part1="$pf_part"
  21. else
  22. pf_conv_to_dos="yes"
  23. fi
  24. done
  25. if test "$pf_conv_to_dos" = "yes"; then
  26. formatted_path=`cygpath -d "$formatted_path"`
  27. if test $? -ne 0; then
  28. AC_MSG_ERROR([path conversion failed for "$1".])
  29. fi
  30. fi
  31. fp_count_colon=`echo "$formatted_path" | $GREP -c "[:]"`
  32. fp_count_slash=`echo "$formatted_path" | $GREP -c "[/]"`
  33. if test "$fp_count_slash$fp_count_colon" != "00"; then
  34. if test "$fp_count_colon" = "0"; then
  35. formatted_path=`realpath "$formatted_path"`
  36. if test $? -ne 0; then
  37. AC_MSG_ERROR([realpath failed for "$1".])
  38. fi
  39. fi
  40. formatted_path=`cygpath -m "$formatted_path"`
  41. if test $? -ne 0; then
  42. AC_MSG_ERROR([path conversion failed for "$1".])
  43. fi
  44. fi
  45. fi
  46. }
  47. cat /dev/null > warn
  48. have_WARNINGS="no"
  49. add_warning()
  50. {
  51. if test "$have_WARNINGS" = "no"; then
  52. echo "*************************************" >> warn
  53. have_WARNINGS="yes"
  54. if which tput >/dev/null 2>/dev/null && test `tput colors` -ge 8; then
  55. dnl <esc> as actual byte (U+1b), [ escaped using quadrigraph @<:@
  56. COLORWARN='*@<:@1;33;40m WARNING @<:@0m:'
  57. else
  58. COLORWARN="* WARNING :"
  59. fi
  60. fi
  61. echo "$COLORWARN $@" >> warn
  62. }
  63. if test -n "$SOLARENV"; then
  64. AC_MSG_ERROR([You have sourced config_host.mk in this shell. This may lead to trouble, please run in a fresh (login) shell.])
  65. fi
  66. echo "********************************************************************"
  67. echo "*"
  68. echo "* Running ${PACKAGE_NAME} build configuration."
  69. echo "*"
  70. echo "********************************************************************"
  71. echo ""
  72. dnl ===================================================================
  73. dnl checks build and host OSes
  74. dnl do this before argument processing to allow for platform dependent defaults
  75. dnl ===================================================================
  76. AC_CANONICAL_HOST
  77. AC_PROG_EGREP
  78. # AC_PROG_EGREP doesn't set GREP on all systems as well
  79. AC_PATH_PROG(GREP, grep)
  80. if test "$build_os" = "cygwin"; then
  81. EXEEXT_FOR_BUILD=.exe
  82. SRC_ROOT=`pwd`
  83. PathFormat "$SRC_ROOT"
  84. SRC_ROOT="$formatted_path"
  85. x_Cygwin=
  86. else
  87. EXEEXT_FOR_BUILD=
  88. SRC_ROOT=`pwd`
  89. x_Cygwin=[\#]
  90. fi
  91. AC_SUBST(SRC_ROOT)
  92. AC_SUBST(EXEEXT_FOR_BUILD)
  93. AC_SUBST(x_Cygwin)
  94. if test "z$EUID" = "z0" -a "`uname -o 2>/dev/null`" = "Cygwin"; then
  95. AC_MSG_ERROR([You must build LibreOffice as a normal user - not using an administrative account])
  96. fi
  97. # need sed in os checks...
  98. AC_PATH_PROGS(SED, sed)
  99. if test -z "$SED"; then
  100. AC_MSG_ERROR([install sed to run this script])
  101. fi
  102. dnl ===================================================================
  103. dnl When building for Android the --with-android-ndk is mandatory
  104. dnl ===================================================================
  105. AC_ARG_WITH(android-ndk,
  106. AS_HELP_STRING([--with-android-ndk],
  107. [Specify location of the Android Native Development Kit. Mandatory when building for Android.]),
  108. ,)
  109. AC_ARG_WITH(android-ndk-toolchain-version,
  110. AS_HELP_STRING([--with-android-ndk-toolchain-version],
  111. [Specify which toolchain version to use, of those present in the
  112. Android NDK you are using. Mandatory if the NDK used has several
  113. toolchain versions for the host architecture you are building for.]), ,)
  114. AC_ARG_WITH(android-sdk,
  115. AS_HELP_STRING([--with-android-sdk],
  116. [Specify location of the Android SDK. Mandatory when building for Android.]),
  117. ,)
  118. ANDROID_NDK_HOME=
  119. if test -n "$with_android_ndk"; then
  120. ANDROID_NDK_HOME=$with_android_ndk
  121. # Set up a lot of pre-canned defaults
  122. if test $host_cpu = arm; then
  123. android_cpu=arm
  124. elif test $host_cpu = mips; then
  125. android_cpu=mips
  126. else
  127. # host_cpu is something like "i386" or "i686" I guess, NDK uses
  128. # "x86" in some contexts
  129. android_cpu=x86
  130. fi
  131. ANDROID_ABI_PREBUILT_BIN=`echo $ANDROID_NDK_HOME/toolchains/$android_cpu*-*$with_android_ndk_toolchain_version/prebuilt/*/bin`
  132. # Check if there are several toolchain versions
  133. case "$ANDROID_ABI_PREBUILT_BIN" in
  134. */bin\ */bin*)
  135. AC_MSG_ERROR([Several toolchain versions in NDK, you must specify --with-android-ndk-toolchain-version])
  136. esac
  137. # This stays empty if there is just one version of the toolchain in the NDK
  138. ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR=
  139. case "`echo $ANDROID_NDK_HOME/toolchains/$android_cpu*-*/prebuilt/*/bin`" in
  140. */bin\ */bin*)
  141. # Trailing slash intentional and necessary, compare to how this is used
  142. ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR="${with_android_ndk_toolchain_version}/"
  143. ;;
  144. esac
  145. if test $host_cpu = arm; then
  146. android_gcc_prefix=arm-linux-androideabi
  147. elif test $host_cpu = mips; then
  148. android_gcc_prefix=mipsel-linux-android
  149. elif test -f $ANDROID_ABI_PREBUILT_BIN/i686-android-linux-gcc; then
  150. android_gcc_prefix=i686-android-linux
  151. elif test -f $ANDROID_ABI_PREBUILT_BIN/i686-linux-android-gcc; then
  152. android_gcc_prefix=i686-linux-android
  153. else
  154. AC_MSG_ERROR([Can't figure out the toolchain prefix])
  155. fi
  156. test -z "$SYSBASE" && export SYSBASE=$ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu
  157. test -z "$AR" && AR=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-ar
  158. test -z "$NM" && NM=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-nm
  159. test -z "$OBJDUMP" && OBJDUMP=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-objdump
  160. test -z "$RANLIB" && RANLIB=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-ranlib
  161. test -z "$STRIP" && STRIP=$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-strip
  162. if test $host_cpu = arm; then
  163. ANDROID_APP_ABI=armeabi-v7a
  164. ANDROIDCFLAGS="-march=armv7-a -mfloat-abi=softfp -mthumb -mfpu=neon -Wl,--fix-cortex-a8"
  165. elif test $host_cpu = mips; then
  166. ANDROID_APP_ABI=mips
  167. ANDROIDCFLAGS=""
  168. else # x86
  169. ANDROID_APP_ABI=x86
  170. ANDROIDCFLAGS="-march=atom"
  171. fi
  172. ANDROIDCFLAGS="$ANDROIDCFLAGS -ffunction-sections"
  173. ANDROIDCFLAGS="$ANDROIDCFLAGS -Wno-psabi --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-$android_cpu -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/$ANDROID_APP_ABI"
  174. # When using the 4.6 or newer toolchain, use the gold linker
  175. case "$with_android_ndk_toolchain_version" in
  176. 4.[[6789]]*|[[56789]].*)
  177. # The NDK doesn't have ld.gold for MIPS for some reason
  178. if test "$host_cpu" != mips; then
  179. ANDROIDCFLAGS="$ANDROIDCFLAGS -fuse-ld=gold"
  180. fi
  181. ;;
  182. esac
  183. # gdbserver can be in different locations
  184. if test -f $ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.4.3/prebuilt/gdbserver; then
  185. ANDROID_NDK_GDBSERVER=$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.4.3/prebuilt/gdbserver
  186. elif test -f $ANDROID_NDK_HOME/prebuilt/android-$android_cpu/gdbserver/gdbserver; then
  187. ANDROID_NDK_GDBSERVER=$ANDROID_NDK_HOME/prebuilt/android-$android_cpu/gdbserver/gdbserver
  188. else
  189. AC_MSG_ERROR([Can't find gdbserver for your Android target])
  190. fi
  191. if test $host_cpu = arm; then
  192. ANDROIDCXXFLAGS="$ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/armeabi-v7a/include"
  193. elif test $host_cpu = mips; then
  194. ANDROIDCXXFLAGS="$ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/mips/include"
  195. else # x86
  196. ANDROIDCXXFLAGS="$ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/${ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR}libs/x86/include"
  197. fi
  198. test -z "$CC" && CC="$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-gcc $ANDROIDCFLAGS"
  199. test -z "$CXX" && CXX="$ANDROID_ABI_PREBUILT_BIN/$android_gcc_prefix-g++ $ANDROIDCXXFLAGS"
  200. fi
  201. AC_SUBST(ANDROID_NDK_HOME)
  202. AC_SUBST(ANDROID_NDK_TOOLCHAIN_VERSION_SUBDIR)
  203. AC_SUBST(ANDROID_NDK_GDBSERVER)
  204. AC_SUBST(ANDROID_APP_ABI)
  205. dnl ===================================================================
  206. dnl Also --with-android-sdk is mandatory
  207. dnl ===================================================================
  208. ANDROID_SDK_HOME=
  209. if test -n "$with_android_sdk"; then
  210. ANDROID_SDK_HOME=$with_android_sdk
  211. PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
  212. fi
  213. AC_SUBST(ANDROID_SDK_HOME)
  214. dnl ===================================================================
  215. dnl The following is a list of supported systems.
  216. dnl Sequential to keep the logic very simple
  217. dnl These values may be checked and reset later.
  218. dnl ===================================================================
  219. #defaults unless the os test overrides this:
  220. test_randr=yes
  221. test_xrender=yes
  222. test_cups=yes
  223. test_dbus=yes
  224. test_fontconfig=yes
  225. test_cairo=no
  226. # Default values, as such probably valid just for Linux, set
  227. # differently below just for Mac OSX,but at least better than
  228. # hardcoding these as we used to do. Much of this is duplicated also
  229. # in solenv for old build system and for gbuild, ideally we should
  230. # perhaps define stuff like this only here in configure.ac?
  231. LINKFLAGSSHL="-shared"
  232. PICSWITCH="-fpic"
  233. DLLPOST=".so"
  234. LINKFLAGSNOUNDEFS="-Wl,-z,defs"
  235. case "$host_os" in
  236. solaris*)
  237. test_gtk=yes
  238. build_gstreamer=yes
  239. build_gstreamer_0_10=yes
  240. test_tde=yes
  241. test_kde=yes
  242. test_freetype=yes
  243. test_gstreamer=yes
  244. _os=SunOS
  245. dnl ===========================================================
  246. dnl Check whether we're using Solaris 10 - SPARC or Intel.
  247. dnl ===========================================================
  248. AC_MSG_CHECKING([the Solaris operating system release])
  249. _os_release=`echo $host_os | $SED -e s/solaris2\.//`
  250. if test "$_os_release" -lt "10"; then
  251. AC_MSG_ERROR([use Solaris >= 10 to build LibreOffice])
  252. else
  253. AC_MSG_RESULT([ok ($_os_release)])
  254. fi
  255. dnl Check whether we're using a SPARC or i386 processor
  256. AC_MSG_CHECKING([the processor type])
  257. if test "$host_cpu" = "sparc" -o "$host_cpu" = "i386"; then
  258. AC_MSG_RESULT([ok ($host_cpu)])
  259. else
  260. AC_MSG_ERROR([only SPARC and i386 processors are supported])
  261. fi
  262. ;;
  263. linux-gnu*|k*bsd*-gnu*)
  264. test_gtk=yes
  265. build_gstreamer=yes
  266. build_gstreamer_0_10=yes
  267. test_tde=yes
  268. test_kde=yes
  269. test_kde4=yes
  270. test_freetype=yes
  271. test_unix_quickstarter=yes
  272. _os=Linux
  273. ;;
  274. gnu)
  275. test_randr=no
  276. test_xrender=no
  277. _os=GNU
  278. ;;
  279. cygwin*|interix*|mingw32*)
  280. # When building on Windows normally with MSVC under Cygwin,
  281. # configure thinks that the host platform (the platform the
  282. # built code will run on) is Cygwin, even if it obviously is
  283. # Windows, which in Autoconf terminology is called
  284. # "mingw32". (Which is misleading as MinGW is the name of the
  285. # tool-chain, not an operating system.)
  286. # Somewhat confusing, yes. But this configure script doesn't
  287. # look at $host etc that much, it mostly uses its own $_os
  288. # variable, set here in this case statement.
  289. # When cross-compiling to Windows from Unix, the host platform
  290. # is "mingw32" (because in that case it is the MinGW
  291. # tool-chain that is used).
  292. test_cups=no
  293. test_dbus=no
  294. test_randr=no
  295. test_xrender=no
  296. test_freetype=no
  297. test_fontconfig=no
  298. _os=WINNT
  299. use_shl_version="TRUE"
  300. DYNAMIC_CRT="TRUE"
  301. DLLPOST=".dll"
  302. LINKFLAGSNOUNDEFS=
  303. # If the host OS matches "mingw32*", that means we are using the
  304. # MinGW cross-compiler, because we don't see the point in building
  305. # LibreOffice using MinGW on Windows. If you want to build on
  306. # Windows, use MSVC. If you want to use MinGW, surely you want to
  307. # cross-compile (from Linux or some other Unix).
  308. case "$host_os" in
  309. mingw32*)
  310. WITH_MINGW=yes
  311. if test -z "$CC"; then
  312. CC="$host_cpu-$host_vendor-$host_os-gcc"
  313. fi
  314. if test -z "$CXX"; then
  315. CXX="$host_cpu-$host_vendor-$host_os-g++"
  316. fi
  317. ;;
  318. esac
  319. ;;
  320. darwin*) # Mac OS X or iOS
  321. test_gtk=yes
  322. test_randr=no
  323. test_xrender=no
  324. test_freetype=no
  325. test_fontconfig=no
  326. test_dbus=no
  327. if test "$host_cpu" = "arm"; then
  328. _os=iOS
  329. test_gtk=no
  330. test_cups=no
  331. else
  332. _os=Darwin
  333. fi
  334. enable_systray=no
  335. # See comment above the case "$host_os"
  336. LINKFLAGSSHL="-dynamiclib -single_module"
  337. # -fPIC is default
  338. PICSWITCH=""
  339. DLLPOST=".dylib"
  340. # -undefined error is the default
  341. LINKFLAGSNOUNDEFS=""
  342. ;;
  343. freebsd*)
  344. test_gtk=yes
  345. build_gstreamer=yes
  346. build_gstreamer_0_10=yes
  347. test_tde=yes
  348. test_kde=yes
  349. test_kde4=yes
  350. test_freetype=yes
  351. AC_MSG_CHECKING([the FreeBSD operating system release])
  352. if test -n "$with_os_version"; then
  353. OSVERSION="$with_os_version"
  354. else
  355. OSVERSION=`/sbin/sysctl -n kern.osreldate`
  356. fi
  357. AC_MSG_RESULT([found OSVERSION=$OSVERSION])
  358. AC_MSG_CHECKING([which thread library to use])
  359. if test "$OSVERSION" -lt "500016"; then
  360. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  361. PTHREAD_LIBS="-pthread"
  362. elif test "$OSVERSION" -lt "502102"; then
  363. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  364. PTHREAD_LIBS="-lc_r"
  365. else
  366. PTHREAD_CFLAGS=""
  367. PTHREAD_LIBS="-pthread"
  368. fi
  369. AC_MSG_RESULT([$PTHREAD_LIBS])
  370. _os=FreeBSD
  371. ;;
  372. *netbsd*)
  373. test_gtk=yes
  374. build_gstreamer=yes
  375. build_gstreamer_0_10=yes
  376. test_tde=no
  377. test_kde=no
  378. test_kde4=yes
  379. test_freetype=yes
  380. PTHREAD_LIBS="-pthread -lpthread"
  381. _os=NetBSD
  382. ;;
  383. aix*)
  384. test_randr=no
  385. test_freetype=yes
  386. PTHREAD_LIBS=-pthread
  387. _os=AIX
  388. ;;
  389. openbsd*)
  390. test_gtk=yes
  391. test_tde=yes
  392. test_kde=yes
  393. test_freetype=yes
  394. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  395. PTHREAD_LIBS="-pthread"
  396. _os=OpenBSD
  397. ;;
  398. dragonfly*)
  399. test_gtk=yes
  400. build_gstreamer=yes
  401. build_gstreamer_0_10=yes
  402. test_tde=yes
  403. test_kde=yes
  404. test_kde4=yes
  405. test_freetype=yes
  406. PTHREAD_LIBS="-pthread"
  407. _os=DragonFly
  408. ;;
  409. linux-android*)
  410. build_gstreamer=no
  411. build_gstreamer_0_10=no
  412. test_cups=no
  413. test_dbus=no
  414. test_fontconfig=no
  415. test_freetype=no
  416. test_gtk=no
  417. test_tde=no
  418. test_kde=no
  419. test_kde4=no
  420. test_randr=no
  421. test_xrender=no
  422. test_unix_quickstarter=no
  423. _os=Android
  424. if test -z "$with_android_ndk"; then
  425. AC_MSG_ERROR([the --with-android-ndk option is mandatory])
  426. fi
  427. if test -z "$with_android_sdk"; then
  428. AC_MSG_ERROR([the --with-android-sdk option is mandatory])
  429. fi
  430. # Verify that the NDK and SDK options are proper
  431. if test ! -f "$ANDROID_NDK_HOME/platforms/android-9/arch-arm/usr/lib/libc.a"; then
  432. AC_MSG_ERROR([the --with-android-ndk option does not point to an Android NDK])
  433. fi
  434. if test ! -d "$ANDROID_SDK_HOME/platforms"; then
  435. AC_MSG_ERROR([the --with-android-sdk option does not point to an Android SDK])
  436. fi
  437. BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
  438. ;;
  439. *)
  440. AC_MSG_ERROR([$host_os operating system is not suitable to build LibreOffice for!])
  441. ;;
  442. esac
  443. if test "$_os" = "AIX"; then
  444. AC_PATH_PROG(GAWK, gawk)
  445. if test -z "$GAWK"; then
  446. AC_MSG_ERROR([gawk not found in \$PATH])
  447. fi
  448. fi
  449. AC_SUBST(use_shl_version)
  450. AC_SUBST(DYNAMIC_CRT)
  451. AC_SUBST(WITH_MINGW)
  452. AC_SUBST(OSVERSION)
  453. AC_SUBST(PTHREAD_CFLAGS)
  454. AC_SUBST(PTHREAD_LIBS)
  455. ###############################################################################
  456. # Extensions switches --enable/--disable
  457. ###############################################################################
  458. # By default these should be enabled unless having extra dependencies.
  459. # If there is extra dependency over configure options then the enable should
  460. # be automagic based on whether the requiring feature is enabled or not.
  461. # All this options change anything only with --enable-extension-integration.
  462. # The name of this option and its help string makes it sound as if
  463. # extensions are built anyway, just not integrated in the installer,
  464. # if you use --disable-extension-integration. Is that really the
  465. # case?
  466. AC_ARG_ENABLE(extension-integration,
  467. AS_HELP_STRING([--disable-extension-integration],
  468. [Disable integration of the built extensions in the installer of the
  469. product. Use this switch to disable the integration.])
  470. )
  471. AC_ARG_ENABLE(ext-barcode,
  472. AS_HELP_STRING([--enable-ext-barcode],
  473. [Enable the Barcode extension.])
  474. )
  475. AC_ARG_ENABLE(export,
  476. AS_HELP_STRING([--disable-export],
  477. [Disable (some) code for document export. Useful when building viewer-only apps that lack
  478. save/export functionality, to avoid having an excessive amount of code and data used
  479. only for exporrt linked in. Work in progress, use only if you are hacking on it.])
  480. )
  481. AC_ARG_ENABLE(database-connectivity,
  482. AS_HELP_STRING([--disable-database-connectivity],
  483. [Disable various database connectivity. Work in progress, use only if you are hacking on it.])
  484. )
  485. # This doesn't mean not building (or "integrating") extensions
  486. # (although it probably should; i.e. it should imply
  487. # --disable-extension-integration I guess), it means not supporting
  488. # any extension mechanism at all
  489. AC_ARG_ENABLE(extensions,
  490. AS_HELP_STRING([--disable-extensions],
  491. [Disable all add-on extension functionality. Work in progress, use only if you are hacking on it.])
  492. )
  493. AC_ARG_ENABLE(scripting,
  494. AS_HELP_STRING([--disable-scripting],
  495. [Disable BASIC, Java and Python. Work in progress, use only if you are hacking on it.])
  496. )
  497. # This is mainly for Android and iOS, but could potentially be used in some
  498. # special case otherwise, too, so factored out as a separate setting
  499. AC_ARG_ENABLE(dynamic-loading,
  500. AS_HELP_STRING([--disable-dynamic-loading],
  501. [Disable any use of dynamic loading of code. Work in progress, use only if you are hacking on it.])
  502. )
  503. AC_ARG_ENABLE(ext-diagram,
  504. AS_HELP_STRING([--enable-ext-diagram],
  505. [Enable the SmART Gallery (Diagram) extension.])
  506. )
  507. AC_ARG_ENABLE(ext-google-docs,
  508. AS_HELP_STRING([--enable-ext-google-docs],
  509. [Enable the Google Documents extension.])
  510. )
  511. AC_ARG_ENABLE(ext-hunart,
  512. AS_HELP_STRING([--enable-ext-hunart],
  513. [Enable the Hungarian Cross-reference Toolbar extension.])
  514. )
  515. AC_ARG_ENABLE(ext-languagetool,
  516. AS_HELP_STRING([--enable-ext-languagetool],
  517. [Enable the LanguageTool extension.])
  518. )
  519. AC_ARG_ENABLE(ext-mysql-connector,
  520. AS_HELP_STRING([--enable-ext-mysql-connector],
  521. [Enable the build of the MySQL Connector extension.])
  522. )
  523. AC_ARG_ENABLE(ext-nlpsolver,
  524. AS_HELP_STRING([--enable-ext-nlpsolver],
  525. [Enable the NLPSolver extension.])
  526. )
  527. AC_ARG_ENABLE(ext-ct2n,
  528. AS_HELP_STRING([--enable-ext-ct2n],
  529. [Enable the ConvertTextToNumber extension.])
  530. )
  531. AC_ARG_ENABLE(ext-numbertext,
  532. AS_HELP_STRING([--enable-ext-numbertext],
  533. [Enable the Numbertext extension.])
  534. )
  535. AC_ARG_ENABLE(ext-oooblogger,
  536. AS_HELP_STRING([--enable-ext-oooblogger],
  537. [Enable the OOo Blogger extension.])
  538. )
  539. AC_ARG_ENABLE(ext-presenter-minimizer,
  540. AS_HELP_STRING([--disable-ext-presenter-minimizer],
  541. [Disable the Presentation Minimizer extension.])
  542. )
  543. AC_ARG_ENABLE(ext-report-builder,
  544. AS_HELP_STRING([--disable-ext-report-builder],
  545. [Disable the Report Builder extension.])
  546. )
  547. AC_ARG_ENABLE(ext-typo,
  548. AS_HELP_STRING([--enable-ext-typo],
  549. [Enable the Typography Toolbar extension.])
  550. )
  551. AC_ARG_ENABLE(ext-validator,
  552. AS_HELP_STRING([--enable-ext-validator],
  553. [Enable the Validator extension.])
  554. )
  555. AC_ARG_ENABLE(ext-watch-window,
  556. AS_HELP_STRING([--enable-ext-watch-window],
  557. [Enable the Watch Window extension to Calc.])
  558. )
  559. AC_ARG_ENABLE(ext-wiki-publisher,
  560. AS_HELP_STRING([--enable-ext-wiki-publisher],
  561. [Enable the Wiki Publisher extension.])
  562. )
  563. ###############################################################################
  564. dnl ---------- *** ----------
  565. AC_ARG_ENABLE(mergelibs,
  566. AS_HELP_STRING([--enable-mergelibs],
  567. [Enables linking of big, merged, library. Experimental feature tested
  568. only on Linux and Android.])
  569. )
  570. AC_ARG_ENABLE(graphite,
  571. AS_HELP_STRING([--enable-graphite],
  572. [Enables the compilation of Graphite smart font rendering.])
  573. )
  574. AC_ARG_ENABLE(fetch-external,
  575. AS_HELP_STRING([--disable-fetch-external],
  576. [Disables fetching external tarballs from web sources.])
  577. )
  578. AC_ARG_ENABLE(lockdown,
  579. AS_HELP_STRING([--disable-lockdown],
  580. [Disables the gconf integration work in LibreOffice.]),
  581. )
  582. AC_ARG_ENABLE(vba,
  583. AS_HELP_STRING([--disable-vba],
  584. [Disables the vba compatibility feature.])
  585. )
  586. AC_ARG_ENABLE(pch,
  587. AS_HELP_STRING([--enable-pch],
  588. [DEPRECATED : is ignored])
  589. )
  590. AC_ARG_ENABLE(win-mozab-driver,
  591. AS_HELP_STRING([--enable-win-mozab-driver],
  592. [LibreOffice includes a driver to connect to Mozilla
  593. address books under Windows, to build with this version, use this option.])
  594. )
  595. AC_ARG_ENABLE(epm,
  596. AS_HELP_STRING([--enable-epm],
  597. [LibreOffice includes self-packaging code, that requires epm, however epm is
  598. useless for large scale package building.])
  599. )
  600. AC_ARG_ENABLE(odk,
  601. AS_HELP_STRING([--disable-odk],
  602. [LibreOffice includes an ODK, office development kit which some packagers may
  603. wish to build without.])
  604. )
  605. AC_ARG_ENABLE(mathmldtd,
  606. AS_HELP_STRING([--enable-mathmldtd],
  607. [Enable bundling of (modified) MathML 1.01 DTD.])
  608. )
  609. AC_ARG_ENABLE(evolution2,
  610. AS_HELP_STRING([--enable-evolution2],
  611. [Allows the built-in evolution 2 addressbook connectivity build to be
  612. enabled.])
  613. )
  614. AC_ARG_ENABLE(directx,
  615. AS_HELP_STRING([--disable-directx],
  616. [Remove DirectX implementation for the new XCanvas interface.
  617. The DirectX support requires more stuff installed on Windows to
  618. compile. (DirectX SDK, GDI+ libs)])
  619. )
  620. AC_ARG_ENABLE(activex,
  621. AS_HELP_STRING([--disable-activex],
  622. [Disable the use of ActiveX for a Windows build.
  623. This switch is mandatory when using VC++ 2008 Express.])
  624. )
  625. AC_ARG_ENABLE(atl,
  626. AS_HELP_STRING([--disable-atl],
  627. [Disable the use of ATL for a Windows build.])
  628. [
  629. This switch is mandatory when using VC++ 2008 Express.
  630. ],
  631. ,)
  632. AC_ARG_ENABLE(werror,
  633. AS_HELP_STRING([--enable-werror],
  634. [Turn warnings to errors. (Has no effect in modules where the treating
  635. of warnings as errors is disabled explicitly.)]),
  636. ,)
  637. AC_ARG_ENABLE(assert-always-abort,
  638. AS_HELP_STRING([--enable-assert-always-abort],
  639. [make assert() abort even in release code.]),
  640. ,)
  641. AC_ARG_ENABLE(dbgutil,
  642. AS_HELP_STRING([--enable-dbgutil],
  643. [Provide debugging support from --enable-debug and include additional debugging
  644. utilities such as object counting or more expensive checks.
  645. This is the recommended option for developers.
  646. Note that this makes the build ABI incompatible, it is not possible to mix object
  647. files or libraries from a --enable-dbgutil and a --disable-dbgutil build.]))
  648. AC_ARG_ENABLE(debug,
  649. AS_HELP_STRING([--enable-debug],
  650. [Include debugging information, disable compiler optimization and inlining plus
  651. extra debugging code like assertions. Extra large build! (enables -g compiler flag
  652. and dmake debug=true).]))
  653. AC_ARG_ENABLE(selective-debuginfo,
  654. AS_HELP_STRING([--enable-selective-debuginfo],
  655. [If --enable-debug or --enable-dbgutil is used, build debugging information
  656. (-g compiler flag) only for the specified gbuild build targets
  657. (where all means everything, - prepended means not to enable, / appended means
  658. everything in the directory; there is no ordering, more specific overrides
  659. more general, and disabling takes precedence).
  660. Example: --enable-selective-debuginfo="all -sw/ -Library_sc".]))
  661. AC_ARG_ENABLE(symbols,
  662. AS_HELP_STRING([--enable-symbols],
  663. [Include debugging symbols in output while preserve optimization.
  664. This enables -g compiler flag for GCC or equivalent,
  665. without changing anything else compared to productive code.]))
  666. AC_ARG_ENABLE(compiler-plugins,
  667. AS_HELP_STRING([--enable-compiler-plugins],
  668. [Enable compiler plugins that will perform additional checks during
  669. building. Enabled automatically by --enable-dbgutil.]))
  670. AC_ARG_ENABLE(linkoo,
  671. AS_HELP_STRING([--disable-linkoo],
  672. [Disable linkoo for the smoketest installation.]))
  673. AC_ARG_ENABLE(lto,
  674. AS_HELP_STRING([--enable-lto],
  675. [Enable link-time optimization. Suitable for product builds.
  676. Building takes longer but libraries are optimized for speed.
  677. (possible only with gcc-4.5 or later,
  678. better to use gcc-4.6 and 'gold' as linker)]))
  679. AC_ARG_ENABLE(crashdump,
  680. AS_HELP_STRING([--enable-crashdump],
  681. [Enable the crashdump feature.]))
  682. AC_ARG_ENABLE(python,
  683. AS_HELP_STRING([--enable-python=<no/auto/system/internal>],
  684. [Enables or disables Python support at run-time and build-time.
  685. Also specifies what Python to use. 'auto' is the
  686. default. Note that Python can be disabled with
  687. --disable-python or --enable-python=no only if no
  688. translations are required.]))
  689. AC_ARG_ENABLE(gtk,
  690. AS_HELP_STRING([--disable-gtk],
  691. [Determines whether to use Gtk+ vclplug on platforms where Gtk+ is available.]),
  692. ,enable_gtk=yes)
  693. AC_ARG_ENABLE(gtk3,
  694. AS_HELP_STRING([--enable-gtk3],
  695. [Determines whether to use Gtk+ 3.0 vclplug on platforms where Gtk+ 3.0 is available.]),
  696. ,enable_gtk3=no)
  697. AC_ARG_ENABLE(systray,
  698. AS_HELP_STRING([--disable-systray],
  699. [Determines whether to build the systray quickstarter.]),
  700. ,enable_systray=yes)
  701. AC_ARG_ENABLE(split-app-modules,
  702. AS_HELP_STRING([--enable-split-app-modules],
  703. [Split file lists for app modules, e.g. base, calc.
  704. Has effect only with make distro-pack-install]),
  705. ,)
  706. AC_ARG_ENABLE(split-opt-features,
  707. AS_HELP_STRING([--enable-split-opt-features],
  708. [Split file lists for some optional features, .e.g. pyuno, testtool.
  709. Has effect only with make distro-pack-install]),
  710. ,)
  711. AC_ARG_ENABLE(cairo-canvas,
  712. [ --disable-cairo-canvas Determines whether to build the Cairo canvas on
  713. platforms where Cairo is available.
  714. ])
  715. AC_ARG_ENABLE(opengl,
  716. AS_HELP_STRING([--disable-opengl],
  717. [Determines whether to build the OpenGL 3D slide transitions component.]),
  718. ,enable_opengl=yes)
  719. AC_ARG_ENABLE(dbus,
  720. AS_HELP_STRING([--disable-dbus],
  721. [Determines whether to enable features that depend on dbus.
  722. e.g. Presentation mode screensaver control, bluetooth presentation control]),
  723. ,enable_dbus=yes)
  724. AC_ARG_ENABLE(packagekit,
  725. AS_HELP_STRING([--enable-packagekit],
  726. [Determines whether to enable features using packagekit.
  727. Right now that is auto font install]),
  728. ,)
  729. AC_ARG_ENABLE(sdremote,
  730. AS_HELP_STRING([--disable-sdremote],
  731. [Determines whether to enable Impress remote control.]),
  732. ,enable_sdremote=yes)
  733. AC_ARG_ENABLE(sdremote-bluetooth,
  734. AS_HELP_STRING([--disable-sdremote-bluetooth],
  735. [Determines whether to build sdremote with bluetooth support
  736. Requires: dbus]),
  737. ,enable_sdremote_bluetooth=yes)
  738. AC_ARG_ENABLE(gconf,
  739. AS_HELP_STRING([--disable-gconf],
  740. [Determines whether to use the GConf support.]),
  741. ,enable_gconf=yes)
  742. AC_ARG_ENABLE(gnome-vfs,
  743. AS_HELP_STRING([--disable-gnome-vfs],
  744. [Determines whether to use the Gnome Virtual Filing System on platforms
  745. where that VFS is available.]),
  746. ,enable_gnome_vfs=yes)
  747. AC_ARG_ENABLE(gio,
  748. AS_HELP_STRING([--enable-gio],
  749. [Determines whether to use the GIO support.]),
  750. ,enable_gio=no)
  751. AC_ARG_ENABLE(telepathy,
  752. AS_HELP_STRING([--enable-telepathy],
  753. [Determines whether to enable Telepathy for collaboration.]),
  754. ,enable_telepathy=no)
  755. AC_ARG_ENABLE(build-mozab,
  756. AS_HELP_STRING([--disable-build-mozab],
  757. [Use this option if you do not want to build the Mozilla address book
  758. components from the Mozilla source code but take precompiled zips.
  759. Meaningful only after --enable-win-mozab-driver.]),
  760. ,)
  761. AC_ARG_ENABLE(tde,
  762. AS_HELP_STRING([--enable-tde],
  763. [Determines whether to use TQt/TDE vclplug on platforms where TQt and
  764. TDE are available.]),
  765. ,)
  766. AC_ARG_ENABLE(tdeab,
  767. AS_HELP_STRING([--disable-tdeab],
  768. [Disable the TDE address book support.]),
  769. ,
  770. if test "$enable_tde" = "yes"; then
  771. enable_tdeab=yes
  772. fi
  773. )
  774. AC_ARG_ENABLE(kde,
  775. AS_HELP_STRING([--enable-kde],
  776. [Determines whether to use Qt3/KDE3 vclplug on platforms where Qt3 and
  777. KDE3 are available.]),
  778. ,)
  779. AC_ARG_ENABLE(kdeab,
  780. AS_HELP_STRING([--disable-kdeab],
  781. [Disable the KDE3 address book support.]),
  782. ,
  783. if test "$enable_kde" = "yes"; then
  784. enable_kdeab=yes
  785. fi
  786. )
  787. AC_ARG_ENABLE(kde4,
  788. AS_HELP_STRING([--enable-kde4],
  789. [Determines whether to use Qt4/KDE4 vclplug on platforms where Qt4 and
  790. KDE4 are available. May be used with --enable-kde if you want to support
  791. both KDE3 and KDE4.]),
  792. ,)
  793. AC_ARG_ENABLE(headless,
  794. AS_HELP_STRING([--enable-headless],
  795. [Disable building of GUIs to reduce dependencies. Useful for
  796. server usage. Work in progress, use only if you are hacking on
  797. it. Not related to the --headless option.]), ,)
  798. AC_ARG_ENABLE(unix-qstart-libpng,
  799. AS_HELP_STRING([--disable-unix-qstart-libpng],
  800. [On UNIX systems, we have a faster splash app, that can use libpng to
  801. render its splash, if we can safely link to the system libpng then
  802. enabling this is a good idea (ie. for Linux Distro packaging).]),
  803. ,enable_unix_qstart_libpng=yes)
  804. AC_ARG_ENABLE(rpath,
  805. AS_HELP_STRING([--disable-rpath],
  806. [Disable the use of relative paths in shared libraries.]),
  807. ,)
  808. AC_ARG_ENABLE(randr,
  809. AS_HELP_STRING([--disable-randr],
  810. [Disable RandR support in the vcl project.]),
  811. ,enable_randr=yes)
  812. AC_ARG_ENABLE(randr-link,
  813. AS_HELP_STRING([--disable-randr-link],
  814. [Disable linking with libXrandr, instead dynamically open it at runtime.]),
  815. ,enable_randr_link=yes)
  816. AC_ARG_ENABLE(gstreamer,
  817. AS_HELP_STRING([--enable-gstreamer],
  818. [Enable building with the new gstreamer 1.0 avmedia backend.]),
  819. ,enable_gstreamer=no)
  820. AC_ARG_ENABLE(gstreamer-0-10,
  821. AS_HELP_STRING([--disable-gstreamer-0-10],
  822. [Disable building the gstreamer avmedia backend.]),
  823. ,enable_gstreamer_0_10=yes)
  824. AC_ARG_ENABLE(neon,
  825. AS_HELP_STRING([--disable-neon],
  826. [Disable neon and the compilation of webdav binding.]),
  827. ,)
  828. AC_ARG_ENABLE(cve-tests,
  829. AS_HELP_STRING([--disable-cve-tests],
  830. [Prevent CVE tests to be executed]),
  831. ,)
  832. AC_ARG_ENABLE(build-unowinreg,
  833. AS_HELP_STRING([--enable-build-unowinreg],
  834. [Do not use the prebuilt unowinreg.dll. Build it instead. The MinGW C++
  835. compiler is needed on Linux.])
  836. [
  837. Usage: --enable-build-unowinreg
  838. ],
  839. ,)
  840. AC_ARG_ENABLE(verbose,
  841. AS_HELP_STRING([--enable-verbose],
  842. [Increase build verbosity.])[
  843. --disable-verbose Decrease build verbosity.],
  844. ,)
  845. AC_ARG_ENABLE(dependency-tracking,
  846. AS_HELP_STRING([--enable-dependency-tracking],
  847. [Do not reject slow dependency extractors.])[
  848. --disable-dependency-tracking
  849. Disables generation of dependency information.
  850. Speed up one-time builds.],
  851. ,)
  852. AC_ARG_ENABLE(icecream,
  853. AS_HELP_STRING([--enable-icecream],
  854. [Use the 'icecream' distributed compiling tool to speedup the compilation.
  855. It defaults to /opt/icecream for the location of the icecream gcc/g++
  856. wrappers, you can override that using --with-gcc-home=/the/path switch.]),
  857. ,)
  858. AC_ARG_ENABLE(zenity,
  859. AS_HELP_STRING([--disable-zenity],
  860. [Do not display a build icon in the notification area (on unix) during build.]),
  861. ,enable_zenity=yes)
  862. AC_ARG_ENABLE(cups,
  863. AS_HELP_STRING([--disable-cups],
  864. [Do not build cups support.])
  865. )
  866. AC_ARG_ENABLE(ccache,
  867. AS_HELP_STRING([--disable-ccache],
  868. [Do not try to use ccache automatically.
  869. By default, we will try to detect if ccache is available; in that case if
  870. CC/CXX are not yet set, and --enable-icecream is not given, we
  871. attempt to use ccache. --disable-ccache disables ccache completely.
  872. ]),
  873. ,)
  874. AC_ARG_ENABLE(64-bit,
  875. AS_HELP_STRING([--enable-64-bit],
  876. [Build a 64-bit LibreOffice on platforms where the normal and only supported build
  877. is 32-bit. In other words, this option is experimental and possibly quite broken,
  878. use only if you are hacking on 64-bit support.]), ,)
  879. AC_ARG_ENABLE(extra-gallery,
  880. AS_HELP_STRING([--enable-extra-gallery],
  881. [Add extra gallery content.]),
  882. ,)
  883. AC_ARG_ENABLE(extra-template,
  884. AS_HELP_STRING([--enable-extra-template],
  885. [Add extra template content.]),
  886. ,)
  887. AC_ARG_ENABLE(extra-sample,
  888. AS_HELP_STRING([--enable-extra-sample],
  889. [Add extra sample content.]),
  890. ,)
  891. AC_ARG_ENABLE(extra-font,
  892. AS_HELP_STRING([--enable-extra-font],
  893. [Add extra font content.]),
  894. ,)
  895. AC_ARG_ENABLE(lomenubar,
  896. AS_HELP_STRING([--enable-lomenubar],
  897. [Enable global menu support.]),
  898. ,)
  899. AC_ARG_ENABLE(online-update,
  900. AS_HELP_STRING([--enable-online-update],
  901. [Enable the online update service that will check for new versions of
  902. LibreOffice. By default, it is on on Windows and Mac, and off on Linux.]),
  903. ,)
  904. AC_ARG_ENABLE(release-build,
  905. AS_HELP_STRING([--enable-release-build],
  906. [Enable release build.
  907. See http://wiki.documentfoundation.org/DevBuild]),
  908. ,)
  909. AC_ARG_ENABLE(silent-msi,
  910. AS_HELP_STRING([--enable-silent-msi],
  911. [Enable MSI with LIMITUI=1 (silent install).]),
  912. ,)
  913. AC_ARG_ENABLE(postgresql-sdbc,
  914. AS_HELP_STRING([--disable-postgresql-sdbc],
  915. [Disable the build of the PostgreSQL-SDBC driver.])
  916. )
  917. AC_ARG_ENABLE(coretext,
  918. AS_HELP_STRING([--enable-coretext],
  919. [Use CoreText framework on Mac (instead of ATSU).
  920. Known to not work properly, use only if you plan to work on that.]),
  921. )
  922. AC_ARG_ENABLE(winegcc,
  923. AS_HELP_STRING([--enable-winegcc],
  924. [Enable use of winegcc during the build, in order to create msi* tools
  925. needed for MinGW cross-compilation.]),
  926. )
  927. AC_ARG_ENABLE(liblangtag,
  928. AS_HELP_STRING([--disable-liblangtag],
  929. [Disable use of liblangtag, and insted use an own simple
  930. implementation.]),
  931. )
  932. AC_ARG_ENABLE(bogus-pkg-config,
  933. AS_HELP_STRING([--enable-bogus-pkg-config],
  934. [MACOSX only: on MacOSX pkg-config can cause trouble. by default if one is found in the PATH, an error is issued. This flag turn that error into a warning.]),
  935. )
  936. dnl ===================================================================
  937. dnl Optional Packages (--with/without-)
  938. dnl ===================================================================
  939. AC_ARG_WITH(gnu-patch,
  940. AS_HELP_STRING([--with-gnu-patch],
  941. [Specify location of GNU patch on Solaris or FreeBSD.]),
  942. ,)
  943. AC_ARG_WITH(build-platform-configure-options,
  944. [Specify options for the configure script run for the *build* platform in a cross-compilation])
  945. AC_ARG_WITH(gnu-cp,
  946. AS_HELP_STRING([--with-gnu-cp],
  947. [Specify location of GNU cp on Solaris or FreeBSD.]),
  948. ,)
  949. AC_ARG_WITH(external-tar,
  950. AS_HELP_STRING([--with-external-tar=<TARFILE PATH>],
  951. [Specify path to tarfiles manually.]),
  952. TARFILE_LOCATION=$withval ,
  953. )
  954. AC_ARG_WITH(solver-and-workdir-root,
  955. AS_HELP_STRING([--with-solver-and-workdir-root=<PATH>],
  956. [Specify path that contains SOLARVER and WORKDIR directories manually.])
  957. )
  958. AC_ARG_WITH(linked-git,
  959. AS_HELP_STRING([--with-linked-git=<OTHER_CLONE_DIR>],
  960. [Specify another checkout's clonedir to re-use. This makes use of
  961. git-new-workdir, and saves a lot of diskspace when having multiple
  962. trees side-by-side.]),
  963. GIT_LINK_SRC=$withval ,
  964. )
  965. AC_ARG_WITH(vba-package-format,
  966. AS_HELP_STRING([--with-vba-package-format],
  967. [Specify package format for vba compatibility api. Specifying "builtin"
  968. means the api component and associated type library are part of the
  969. installation set. Specifying "extn" creates an uno extension that is
  970. part of the installation set (located in the program directory) that
  971. MUST be optionally registered using either the unopkg executeable or the
  972. extension manager gui.])
  973. [
  974. Note: "builtin" is the default, "extn" can cause
  975. problems.
  976. Usage: --with-vba-package-format="builtin" or
  977. --with-vba-package-format="extn"
  978. ],
  979. ,)
  980. AC_ARG_WITH(theme,
  981. AS_HELP_STRING([--with-theme="theme1 theme2..."],
  982. [Choose which themes to include. By default those themes with an '*' are included.
  983. Possible choices: *crystal, *default (galaxy), *hicontrast, human, industrial, *oxygen, *tango, *tango_testing.]),
  984. ,)
  985. AC_ARG_WITH(helppack-integration,
  986. [
  987. --without-helppack-integration It will not integrate the helppacks to the installer
  988. of the product.
  989. Please use this switch to use the online help or separate help packages.],
  990. ,)
  991. AC_ARG_WITH(fonts,
  992. AS_HELP_STRING([--without-fonts],
  993. [LibreOffice includes some third-party fonts to provide a reliable basis for
  994. help content, templates, samples, etc. When these fonts are already
  995. known to be available on the system then you should use this option.]),
  996. ,)
  997. AC_ARG_WITH(ppds,
  998. AS_HELP_STRING([--without-ppds],
  999. [Removes Postscript Printer definition files from LibreOffice
  1000. installation set, for people building for specific distributions where
  1001. PPDs are known to be already available (every recent distro with CUPS backend).]),
  1002. ,)
  1003. AC_ARG_WITH(afms,
  1004. AS_HELP_STRING([--without-afms],
  1005. [Removes bitmap font files from LibreOffice installation set, for people
  1006. building for specific distributions where AFM files or TrueType Fonts
  1007. are known to be available.]),
  1008. ,)
  1009. AC_ARG_WITH(agfa-monotype-fonts,
  1010. AS_HELP_STRING([--with-agfa-monotype-fonts],
  1011. [This switch should only be enabled for those who have the right
  1012. to use or distribute the proprietary Agfa Monotype
  1013. fonts.]),
  1014. ,)
  1015. AC_ARG_WITH(epm,
  1016. AS_HELP_STRING([--with-epm],
  1017. [Decides which epm to use. Default is to use the one from the system if
  1018. one is built. When either this is not there or you say =internal epm
  1019. will be built.]),
  1020. ,)
  1021. AC_ARG_WITH(package-format,
  1022. AS_HELP_STRING([--with-package-format],
  1023. [Specify package format(s) for LibreOffice installsets. Default is the
  1024. "normal" one of the OS/Distribution. Possible values: aix, bsd, deb,
  1025. inst, tardist, osx, pkg, rpm, setld, native, portable, archive, dmg,
  1026. installed, msi. Example: --with-package-format="deb dmg"]),
  1027. ,)
  1028. AC_ARG_WITH(system-libs,
  1029. AS_HELP_STRING([--with-system-libs],
  1030. [Use libraries already on system -- enables all --with-system-* flags except
  1031. mozilla.]),
  1032. ,)
  1033. AC_ARG_WITH(system-headers,
  1034. AS_HELP_STRING([--with-system-headers],
  1035. [Use headers already on system -- enables all --with-system-* flags for
  1036. external packages whose headers are the only entities used i.e.
  1037. boost/vigra/odbc/sane-header(s).]),,
  1038. [with_system_headers="$with_system_libs"])
  1039. AC_ARG_WITH(system-jars,
  1040. AS_HELP_STRING([--without-system-jars],
  1041. [When building with --with-system-libs, also the needed jars are expected
  1042. on the system. Use this to disable that]),,
  1043. [with_system_jars="$with_system_libs"])
  1044. AC_ARG_WITH(system-stdlibs,
  1045. AS_HELP_STRING([--without-system-stdlibs],
  1046. [Bundle the used libstdc++/libgcc_s into the installation set.]),,
  1047. [with_system_stdlibs="$with_system_libs"])
  1048. AC_ARG_WITH(system-cairo,
  1049. AS_HELP_STRING([--with-system-cairo],
  1050. [Use Cairo libraries already on system.]),,
  1051. [with_system_cairo="$with_system_libs"])
  1052. AC_ARG_WITH(system-graphite,
  1053. AS_HELP_STRING([--with-system-graphite],
  1054. [Use graphite library already installed on system.]),,
  1055. [with_system_graphite="$with_system_libs"])
  1056. AC_ARG_WITH(system-nss,
  1057. AS_HELP_STRING([--with-system-nss],
  1058. [Use NSS/nspr libraries already on system.]),,
  1059. [with_system_nss="$with_system_libs"])
  1060. AC_ARG_WITH(mozilla-toolkit,
  1061. AS_HELP_STRING([--with-mozilla-toolkit],
  1062. [DEPRECATED : is ignored]),
  1063. ,)
  1064. AC_ARG_WITH(myspell-dicts,
  1065. AS_HELP_STRING([--without-myspell-dicts],
  1066. [Removes myspell dictionaries from LibreOffice installation set, for
  1067. people building for specific distributions where the myspell dictionaries
  1068. are installed from other sources.]),
  1069. ,)
  1070. AC_ARG_WITH(system-dicts,
  1071. AS_HELP_STRING([--without-system-dicts],
  1072. [Do not use dictionaries from system paths.]),
  1073. ,)
  1074. AC_ARG_WITH(external-dict-dir,
  1075. AS_HELP_STRING([--with-external-dict-dir],
  1076. [Specify external dictionary dir.]),
  1077. ,)
  1078. AC_ARG_WITH(external-hyph-dir,
  1079. AS_HELP_STRING([--with-external-hyph-dir],
  1080. [Specify external hyphenation pattern dir.]),
  1081. ,)
  1082. AC_ARG_WITH(external-thes-dir,
  1083. AS_HELP_STRING([--with-external-thes-dir],
  1084. [Specify external thesaurus dir.]),
  1085. ,)
  1086. AC_ARG_WITH(system-zlib,
  1087. AS_HELP_STRING([--with-system-zlib],
  1088. [Use zlib already on system.]),,
  1089. [with_system_zlib=auto])
  1090. AC_ARG_WITH(system-openssl,
  1091. AS_HELP_STRING([--with-system-openssl],
  1092. [Use OpenSSL already on system.]),,
  1093. [with_system_openssl="$with_system_libs"])
  1094. AC_ARG_WITH(system-jpeg,
  1095. AS_HELP_STRING([--with-system-jpeg],
  1096. [Use jpeg already on system.]),,
  1097. [with_system_jpeg=auto])
  1098. AC_ARG_WITH(system-clucene,
  1099. AS_HELP_STRING([--with-system-clucene],
  1100. [Use clucene already on system.]),,
  1101. [with_system_clucene="$with_system_libs"])
  1102. AC_ARG_WITH(system-expat,
  1103. AS_HELP_STRING([--with-system-expat],
  1104. [Use expat already on system.]),,
  1105. [with_system_expat="$with_system_libs"])
  1106. AC_ARG_WITH(system-libcmis,
  1107. AS_HELP_STRING([--with-system-libcmis],
  1108. [Use libcmis already on system.]),,
  1109. [with_system_libcmis="$with_system_libs"])
  1110. AC_ARG_WITH(system-lcms2,
  1111. AS_HELP_STRING([--with-system-lcms2],
  1112. [Use littlecms v2 already on system.]),,
  1113. [with_system_lcms2="$with_system_libs"])
  1114. AC_ARG_WITH(system-libcdr,
  1115. AS_HELP_STRING([--with-system-libcdr],
  1116. [Use libcdr already on system.]),,
  1117. [with_system_libcdr="$with_system_libs"])
  1118. AC_ARG_WITH(system-libmspub,
  1119. AS_HELP_STRING([--with-system-libmspub],
  1120. [Use libmspub already on system.]),,
  1121. [with_system_libmspub="$with_system_libs"])
  1122. AC_ARG_WITH(system-libvisio,
  1123. AS_HELP_STRING([--with-system-libvisio],
  1124. [Use libvisio already on system.]),,
  1125. [with_system_libvisio="$with_system_libs"])
  1126. AC_ARG_WITH(system-libwpd,
  1127. AS_HELP_STRING([--with-system-libwpd],
  1128. [Use libwpd already on system.]),,
  1129. [with_system_libwpd="$with_system_libs"])
  1130. AC_ARG_WITH(system-libwps,
  1131. AS_HELP_STRING([--with-system-libwps],
  1132. [Use libwps already on system.]),,
  1133. [with_system_libwps="$with_system_libs"])
  1134. AC_ARG_WITH(system-libwpg,
  1135. AS_HELP_STRING([--with-system-libwpg],
  1136. [Use libwpg already on system.]),,
  1137. [with_system_libwpg="$with_system_libs"])
  1138. AC_ARG_WITH(system-libxml,
  1139. AS_HELP_STRING([--with-system-libxml],
  1140. [Use libxml/libxslt already on system.]),,
  1141. [with_system_libxml=auto])
  1142. AC_ARG_WITH(system-icu,
  1143. AS_HELP_STRING([--with-system-icu],
  1144. [Use icu already on system.]),,
  1145. [with_system_icu="$with_system_libs"])
  1146. AC_ARG_WITH(system-ucpp,
  1147. AS_HELP_STRING([--with-system-ucpp],
  1148. [Use ucpp already on system.]),,
  1149. [])
  1150. AC_ARG_WITH(system-openldap,
  1151. AS_HELP_STRING([--with-system-openldap],
  1152. [Use the OpenLDAP LDAP SDK already on system.]),,
  1153. [with_system_openldap="$with_system_libs"])
  1154. AC_ARG_WITH(system-poppler,
  1155. AS_HELP_STRING([--with-system-poppler],
  1156. [Use system poppler (only needed for PDF import).]),,
  1157. [with_system_poppler="$with_system_libs"])
  1158. AC_ARG_WITH(system-apache-commons,
  1159. AS_HELP_STRING([--with-system-apache-commons],
  1160. [Use Apache commons libraries already on system.]),,
  1161. [with_system_apache_commons="$with_system_jars"])
  1162. AC_ARG_WITH(system-mysql,
  1163. AS_HELP_STRING([--with-system-mysql],
  1164. [Use MySQL libraries already on system, for building the MySQL Connector/LibreOffice
  1165. extension. If the the mysql_config executable is not in PATH, use MYSQLCONFIG to
  1166. point to it.]),,
  1167. [with_system_mysql="$with_system_libs"])
  1168. AC_ARG_WITH(libmysql-path,
  1169. AS_HELP_STRING([--with-libmysql-path],
  1170. [Use Connector/C (libmysql) installation for building the MySQL
  1171. Connector/LibreOffice extension.])
  1172. [
  1173. Usage: --with-libmysql-path=<absolute path to
  1174. your Connector/C installation>
  1175. ],
  1176. ,)
  1177. AC_ARG_WITH(system-mysql-cppconn,
  1178. AS_HELP_STRING([--with-system-mysql-cppconn],
  1179. [Use MySQL C++ Connector libraries already on system.]),,
  1180. [with_system_mysql_cppconn="$with_system_libs"])
  1181. AC_ARG_WITH(system-postgresql,
  1182. AS_HELP_STRING([--with-system-postgresql],
  1183. [Use PostgreSQL libraries already on system, for building the PostgreSQL-SDBC
  1184. driver. If pg_config is not in PATH, use PGCONFIG to point to it.]),,
  1185. [with_system_postgresql="$with_system_libs"])
  1186. AC_ARG_WITH(libpq-path,
  1187. AS_HELP_STRING([--with-libpq-path],
  1188. [Use this PostgreSQL C interface (libpq) installation for building
  1189. the PostgreSQL-SDBC extension.])
  1190. [
  1191. Usage: --with-libpq-path=<absolute path to
  1192. your libq installation>
  1193. ],
  1194. ,)
  1195. AC_ARG_WITH(system-hsqldb,
  1196. AS_HELP_STRING([--with-system-hsqldb],
  1197. [Use hsqldb already on system.]))
  1198. AC_ARG_WITH(hsqldb-jar,
  1199. AS_HELP_STRING([--with-hsqldb-jar=JARFILE],
  1200. [Specify path to jarfile manually.]),
  1201. HSQLDB_JAR=$withval)
  1202. AC_ARG_ENABLE(scripting-beanshell,
  1203. AS_HELP_STRING([--disable-scripting-beanshell],
  1204. [Disable support for scripts in BeanShell.]),
  1205. ,
  1206. )
  1207. AC_ARG_WITH(system-beanshell,
  1208. AS_HELP_STRING([--with-system-beanshell],
  1209. [Use beanshell already on system.]),,
  1210. [with_system_beanshell="$with_system_jars"])
  1211. AC_ARG_WITH(beanshell-jar,
  1212. AS_HELP_STRING([--with-beanshell-jar=JARFILE],
  1213. [Specify path to jarfile manually.]),
  1214. BSH_JAR=$withval)
  1215. AC_ARG_ENABLE(scripting-javascript,
  1216. AS_HELP_STRING([--disable-scripting-javascript],
  1217. [Disable support for scripts in JavaScript.]),
  1218. ,
  1219. )
  1220. AC_ARG_WITH(system-rhino,
  1221. AS_HELP_STRING([--with-system-rhino],
  1222. [Use rhino already on system.]),,)
  1223. # [with_system_rhino="$with_system_jars"])
  1224. # Above is not used as we have different debug interface
  1225. # patched into internal rhino. This code needs to be fixed
  1226. # before we can enable it by default.
  1227. AC_ARG_WITH(rhino-jar,
  1228. AS_HELP_STRING([--with-rhino-jar=JARFILE],
  1229. [Specify path to jarfile manually.]),
  1230. RHINO_JAR=$withval)
  1231. AC_ARG_WITH(commons-codec-jar,
  1232. AS_HELP_STRING([--with-commons-codec-jar=JARFILE],
  1233. [Specify path to jarfile manually.]),
  1234. COMMONS_CODEC_JAR=$withval)
  1235. AC_ARG_WITH(commons-lang-jar,
  1236. AS_HELP_STRING([--with-commons-lang-jar=JARFILE],
  1237. [Specify path to jarfile manually.]),
  1238. COMMONS_LANG_JAR=$withval)
  1239. AC_ARG_WITH(commons-httpclient-jar,
  1240. AS_HELP_STRING([--with-commons-httpclient-jar=JARFILE],
  1241. [Specify path to jarfile manually.]),
  1242. COMMONS_HTTPCLIENT_JAR=$withval)
  1243. AC_ARG_WITH(commons-logging-jar,
  1244. AS_HELP_STRING([--with-commons-logging-jar=JARFILE],
  1245. [Specify path to jarfile manually.]),
  1246. COMMONS_LOGGING_JAR=$withval)
  1247. AC_ARG_WITH(system-servlet-api,
  1248. AS_HELP_STRING([--with-system-servlet-api],
  1249. [Use servlet-api already on system.]),,
  1250. [with_system_servlet_api="$with_system_jars"])
  1251. AC_ARG_WITH(servlet-api-jar,
  1252. AS_HELP_STRING([--with-servlet-api-jar=JARFILE],
  1253. [Specify path to jarfile manually.]),
  1254. SERVLETAPI_JAR=$withval)
  1255. AC_ARG_WITH(system-jfreereport,
  1256. AS_HELP_STRING([--with-system-jfreereport],
  1257. [Use JFreeReport already on system.]),,
  1258. [with_system_jfreereport="$with_system_jars"])
  1259. AC_ARG_WITH(sac-jar,
  1260. AS_HELP_STRING([--with-sac-jar=JARFILE],
  1261. [Specify path to jarfile manually.]),
  1262. SAC_JAR=$withval)
  1263. AC_ARG_WITH(

Large files files are truncated, but you can click here to view the full file