PageRenderTime 51ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 3ms

/libreoffice-3.6.0.2/configure

#
Shell | 16697 lines | 14541 code | 1447 blank | 709 comment | 1383 complexity | 1bbcc5c839bd095b9a052626355da566 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-2.1, AGPL-1.0, BSD-3-Clause-No-Nuclear-License-2014, GPL-3.0, LGPL-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for LibreOffice 3.6.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in #(
  135. *posix*) :
  136. set -o posix ;; #(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1"
  162. if (eval "$as_required") 2>/dev/null; then :
  163. as_have_required=yes
  164. else
  165. as_have_required=no
  166. fi
  167. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  168. else
  169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  170. as_found=false
  171. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  172. do
  173. IFS=$as_save_IFS
  174. test -z "$as_dir" && as_dir=.
  175. as_found=:
  176. case $as_dir in #(
  177. /*)
  178. for as_base in sh bash ksh sh5; do
  179. # Try only shells that exist, to save several forks.
  180. as_shell=$as_dir/$as_base
  181. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  182. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  183. CONFIG_SHELL=$as_shell as_have_required=yes
  184. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. break 2
  186. fi
  187. fi
  188. done;;
  189. esac
  190. as_found=false
  191. done
  192. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  193. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  194. CONFIG_SHELL=$SHELL as_have_required=yes
  195. fi; }
  196. IFS=$as_save_IFS
  197. if test "x$CONFIG_SHELL" != x; then :
  198. # We cannot yet assume a decent shell, so we have to provide a
  199. # neutralization value for shells without unset; and this also
  200. # works around shells that cannot unset nonexistent variables.
  201. # Preserve -v and -x to the replacement shell.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. case $- in # ((((
  207. *v*x* | *x*v* ) as_opts=-vx ;;
  208. *v* ) as_opts=-v ;;
  209. *x* ) as_opts=-x ;;
  210. * ) as_opts= ;;
  211. esac
  212. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  213. fi
  214. if test x$as_have_required = xno; then :
  215. $as_echo "$0: This script requires a shell more modern than all"
  216. $as_echo "$0: the shells that I found on your system."
  217. if test x${ZSH_VERSION+set} = xset ; then
  218. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  219. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  220. else
  221. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  222. $0: including any error possibly output before this
  223. $0: message. Then install a modern shell, or manually run
  224. $0: the script under such a shell if you do have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  340. # ----------------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with STATUS, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$1; test $as_status -eq 0 && as_status=1
  347. if test "$4"; then
  348. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  350. fi
  351. $as_echo "$as_me: error: $2" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='LibreOffice'
  512. PACKAGE_TARNAME='libreoffice'
  513. PACKAGE_VERSION='3.6'
  514. PACKAGE_STRING='LibreOffice 3.6'
  515. PACKAGE_BUGREPORT=''
  516. PACKAGE_URL='http://documentfoundation.org/'
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='LTLIBOBJS
  553. LIBOBJS
  554. LO_PATH
  555. TMP_DIRECTORY
  556. TEMP_DIRECTORY
  557. SOLARLIB_FOR_BUILD
  558. SOLARINC_FOR_BUILD
  559. SOLARLIB
  560. SOLARINC
  561. BUILD_TYPE
  562. WIN_TOUCH
  563. WIN_LS
  564. WIN_GREP
  565. WIN_FIND
  566. MFC_LIB
  567. MFC_INCLUDE
  568. ATL_LIB
  569. ATL_INCLUDE
  570. GMAKE_MODULE_PARALLELISM
  571. GMAKE_PARALLELISM
  572. BUILD_MAX_JOBS
  573. MERGELIBS
  574. ILIB
  575. BUILD_NCPUS
  576. nodep
  577. ENABLE_ZENITY
  578. ZNTY
  579. VERBOSE
  580. DEVINSTALLDIR
  581. INSTALLDIR
  582. DOCDIR
  583. MANDIR
  584. DATADIR
  585. LIBDIR
  586. PREFIXDIR
  587. INSTALLDIRNAME
  588. PRODUCTNAME
  589. WITH_COMPAT_OOWRAPPERS
  590. UNIXWRAPPERNAME
  591. OOO_VENDOR
  592. STARTCENTER_SPACE_BITMAP
  593. STARTCENTER_RTL_RIGHT_BITMAP
  594. STARTCENTER_RTL_LEFT_BITMAP
  595. STARTCENTER_RIGHT_BITMAP
  596. STARTCENTER_LEFT_BITMAP
  597. FLAT_LOGO_SVG
  598. ABOUT_BACKGROUND_SVG
  599. INTRO_BITMAP
  600. PROGRESSFRAMECOLOR
  601. PROGRESSPOSITION
  602. PROGRESSSIZE
  603. PROGRESSBARCOLOR
  604. GIT_LINK_SRC
  605. WITH_POOR_HELP_LOCALIZATIONS
  606. L10N_MODULE
  607. GIT_REPO_NAMES
  608. WITH_LANG_LIST
  609. WITH_LANG
  610. ALL_LANGS
  611. PRODUCTVERSION
  612. DOXYGEN
  613. OOO_JUNIT_JAR
  614. ANT_LIB
  615. ANT_HOME
  616. ANT
  617. JVM_ONE_PATH_CHECK
  618. SYSTEM_LIBPNG
  619. SYSTEM_LIBGSF
  620. SYSTEM_PANGO
  621. SYSTEM_LIBCROCO
  622. SYSTEM_GETTEXT
  623. SYSTEM_GLIB
  624. SYSTEM_GDKPIXBUF
  625. MINGW_PNG15_DLL
  626. MINGW_PIXMAN_DLL
  627. MINGW_FREETYPE_DLL
  628. MINGW_FONTCONFIG_DLL
  629. MINGW_CAIRO_DLL
  630. SYSTEM_CAIRO
  631. CAIRO_LIBS
  632. CAIRO_CFLAGS
  633. SYSTEM_LIBRSVG
  634. ENABLE_LIBRSVG
  635. LIBRSVG_LIBS
  636. LIBRSVG_CFLAGS
  637. XINERAMA_LINK
  638. USE_XINERAMA
  639. SCPDEFS
  640. ENABLE_SILENT_MSI
  641. ENABLE_RELEASE_BUILD
  642. ENABLE_ONLINE_UPDATE
  643. ENABLE_LOMENUBAR
  644. DBUSMENUGTK_LIBS
  645. DBUSMENUGTK_CFLAGS
  646. OXYGENOFFICE_PACK
  647. ENABLE_OXYGENOFFICE
  648. OOOP_FONTS_PACK
  649. WITH_EXTRA_FONT
  650. OOOP_SAMPLES_PACK
  651. WITH_EXTRA_SAMPLE
  652. OOOP_TEMPLATES_PACK
  653. WITH_EXTRA_TEMPLATE
  654. OOOP_GALLERY_PACK
  655. WITH_EXTRA_GALLERY
  656. WITHOUT_AFMS
  657. WITHOUT_PPDS
  658. WITH_AGFA_MONOTYPE_FONTS
  659. WITH_FONTS
  660. SUNTEMPLATES_IT_PACK
  661. SUNTEMPLATES_HU_PACK
  662. SUNTEMPLATES_FR_PACK
  663. SUNTEMPLATES_ES_PACK
  664. SUNTEMPLATES_EN_US_PACK
  665. SUNTEMPLATES_DE_PACK
  666. OOOBLOGGER_EXTENSION_PACK
  667. GOOGLE_DOCS_EXTENSION_PACK
  668. TYPO_EXTENSION_PACK
  669. HUNART_EXTENSION_PACK
  670. NUMBERTEXT_EXTENSION_PACK
  671. CT2N_EXTENSION_PACK
  672. BARCODE_EXTENSION_PACK
  673. VALIDATOR_EXTENSION_PACK
  674. DIAGRAM_EXTENSION_PACK
  675. WATCH_WINDOW_EXTENSION_PACK
  676. WITH_EXTENSION_INTEGRATION
  677. WITH_HELPPACK_INTEGRATION
  678. WITH_THEMES
  679. ENABLE_KAB
  680. ENABLE_TDEAB
  681. ENABLE_EVOAB2
  682. GOBJECT_LIBS
  683. GOBJECT_CFLAGS
  684. ENABLE_LOCKDOWN
  685. KDE_HAVE_GLIB
  686. KDE4_LIBS
  687. KDE4_CFLAGS
  688. KDE_GLIB_LIBS
  689. KDE_GLIB_CFLAGS
  690. MOC4
  691. MOCQT4
  692. QMAKE4
  693. QMAKEQT4
  694. KDE_LIBS
  695. KDE_CFLAGS
  696. TDE_LIBS
  697. TDE_CFLAGS
  698. MOC
  699. ENABLE_SCRIPTING_PYTHON
  700. RHINO_JAR
  701. SYSTEM_RHINO
  702. ENABLE_SCRIPTING_JAVASCRIPT
  703. BSH_JAR
  704. SYSTEM_BSH
  705. ENABLE_SCRIPTING_BEANSHELL
  706. COMMONS_LOGGING_JAR
  707. COMMONS_HTTPCLIENT_JAR
  708. COMMONS_LANG_JAR
  709. COMMONS_CODEC_JAR
  710. SYSTEM_APACHE_COMMONS
  711. LIBSERIALIZER_JAR
  712. LIBFONTS_JAR
  713. LIBREPOSITORY_JAR
  714. LIBFORMULA_JAR
  715. LIBLOADER_JAR
  716. LIBLAYOUT_JAR
  717. LIBBASE_JAR
  718. JFREEREPORT_JAR
  719. FLUTE_JAR
  720. LIBXML_JAR
  721. SAC_JAR
  722. SYSTEM_JFREEREPORT
  723. ENABLE_REPORTBUILDER
  724. SERVLETAPI_JAR
  725. SYSTEM_SERVLETAPI
  726. ENABLE_MEDIAWIKI
  727. SYSTEM_POPPLER
  728. ENABLE_PDFIMPORT
  729. POPPLER_LIBS
  730. POPPLER_CFLAGS
  731. ENABLE_PRESENTER_SCREEN
  732. ENABLE_MINIMIZER
  733. ENABLE_OPENGL
  734. SYSTEM_MESA_HEADERS
  735. ENABLE_GSTREAMER
  736. GSTREAMER_LIBS
  737. GSTREAMER_CFLAGS
  738. ENABLE_CAIRO_CANVAS
  739. SPLIT_OPT_FEATURES
  740. SPLIT_APP_MODULES
  741. ENABLE_QUICKSTART_LIBPNG
  742. LIBPNG_LIBS
  743. LIBPNG_CFLAGS
  744. ENABLE_GTK_PRINT
  745. ENABLE_SYSTRAY_GTK
  746. ENABLE_DBUS
  747. ENABLE_GIO
  748. GIO_LIBS
  749. GIO_CFLAGS
  750. DBUS_LIBS
  751. DBUS_CFLAGS
  752. GTK_PRINT_LIBS
  753. GTK_PRINT_CFLAGS
  754. GTK210_LIBS
  755. GTK210_CFLAGS
  756. GTHREAD_LIBS
  757. GTHREAD_CFLAGS
  758. GTK_LIBS
  759. GTK_CFLAGS
  760. ENABLE_GNOMEVFS
  761. GNOMEVFS_LIBS
  762. GNOMEVFS_CFLAGS
  763. ENABLE_GCONF
  764. GCONF_LIBS
  765. GCONF_CFLAGS
  766. ENABLE_HEADLESS
  767. ENABLE_KDE4
  768. ENABLE_KDE
  769. ENABLE_TDE
  770. ENABLE_GTK
  771. ENABLE_GTK3
  772. GTK3_LIBS
  773. GTK3_CFLAGS
  774. UNZIP
  775. ZIP
  776. ML_EXE
  777. x_GNUCP
  778. GNUPATCH
  779. GNUCP
  780. PATCH
  781. FLEX
  782. ANCIENT_BISON
  783. BISON
  784. DIRECTXSDK_LIB
  785. DIRECTXSDK_HOME
  786. UUIDGEN
  787. WINDOWS_SDK_HOME
  788. SYSTEM_LIBC
  789. HAVE_READDIR_R
  790. HAVE_GETOPT
  791. SYSTEM_LIBEXTTEXTCAT_DATA
  792. SYSTEM_LIBEXTTEXTCAT
  793. LIBEXTTEXTCAT_LIBS
  794. LIBEXTTEXTCAT_CFLAGS
  795. MINGW_LPSOLVE_DLL
  796. SYSTEM_LPSOLVE
  797. MINGW_MYTHES_DLL
  798. SYSTEM_MYTHES
  799. MYTHES_LIBS
  800. MYTHES_CFLAGS
  801. MINGW_HYPHEN_DLL
  802. HYPHEN_LIB
  803. SYSTEM_HYPH
  804. MINGW_HUNSPELL_DLL
  805. SYSTEM_HUNSPELL
  806. HUNSPELL_LIBS
  807. HUNSPELL_CFLAGS
  808. MINGW_SQLITE3_DLL
  809. MINGW_REDLAND_DLL
  810. MINGW_RASQAL_DLL
  811. MINGW_RAPTOR_DLL
  812. SYSTEM_REDLAND
  813. REDLAND_LIBS
  814. REDLAND_CFLAGS
  815. MINGW_CRYPTO_DLL
  816. MINGW_SSL_DLL
  817. SYSTEM_OPENSSL
  818. OPENSSL_LIBS
  819. OPENSSL_CFLAGS
  820. MINGW_TASN1_DLL
  821. MINGW_NEON_DLL
  822. MINGW_GNUTLS_DLL
  823. NEON_VERSION
  824. SYSTEM_NEON
  825. NEON_LIBS
  826. NEON_CFLAGS
  827. DISABLE_NEON
  828. ENABLE_RANDR
  829. XRANDR_DLOPEN
  830. XRANDR_LIBS
  831. XRANDR_CFLAGS
  832. XLIB
  833. XINC
  834. X_EXTRA_LIBS
  835. X_LIBS
  836. X_PRE_LIBS
  837. X_CFLAGS
  838. XMKMF
  839. ENABLE_NSPLUGIN
  840. MINGW_GRAPHITE2_DLL
  841. SYSTEM_GRAPHITE
  842. ENABLE_GRAPHITE
  843. GRAPHITE_LIBS
  844. GRAPHITE_CFLAGS
  845. MINGW_ICUUC_DLL
  846. MINGW_ICUI18N_DLL
  847. MINGW_ICUDATA_DLL
  848. ICU_RECLASSIFIED_PREPEND_SET_EMPTY
  849. ICU_RECLASSIFIED_HEBREW_LETTER
  850. ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER
  851. ICU_RECLASSIFIED_CLOSE_PARENTHESIS
  852. ICU_MICRO
  853. ICU_MINOR
  854. ICU_MAJOR
  855. SYSTEM_ICU
  856. SYSTEM_GENCMN
  857. SYSTEM_GENCCODE
  858. SYSTEM_GENBRK
  859. ICUCONFIG_FOR_BUILD
  860. ICUCONFIG
  861. HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION
  862. SYSTEM_MOZILLA_HEADERS
  863. MOZILLA_HEADERS_LIBS
  864. MOZILLA_HEADERS_CFLAGS
  865. SYSTEM_NSS
  866. NSS_LIBS
  867. NSS_CFLAGS
  868. MOZ_LDAP_CFLAGS
  869. MOZ_LIB_XPCOM
  870. MOZ_LIB
  871. MOZ_INC
  872. MOZ_FLAVOUR
  873. SYSTEM_MOZILLA
  874. MOZILLABUILD
  875. PREBUILD_MOZAB
  876. BUILD_MOZAB
  877. MOZLIBREQ_LIBS
  878. MOZLIBREQ_CFLAGS
  879. MOZILLA_TOOLKIT
  880. MOZILLA_VERSION
  881. MOZILLAXPCOM_LIBS
  882. MOZILLAXPCOM_CFLAGS
  883. WITH_OPENLDAP
  884. WITH_LDAP
  885. ENABLE_XMLSEC
  886. WITH_MOZILLA
  887. SYSTEM_ODBC_HEADERS
  888. SYSTEM_VIGRA
  889. MDDS_CPPFLAGS
  890. SYSTEM_MDDS
  891. SYSTEM_BOOST
  892. MINGW_BOOST_DATE_TIME_DLL
  893. HAVE_BOOST_UNORDERED_MAP
  894. MINGW_SSL3_DLL
  895. MINGW_SSH2_DLL
  896. MINGW_PLDS4_DLL
  897. MINGW_PLC4_DLL
  898. MINGW_NSSUTIL3_DLL
  899. MINGW_NSS3_DLL
  900. MINGW_NSPR4_DLL
  901. MINGW_INTL_DLL
  902. MINGW_IDN_DLL
  903. MINGW_GPG_ERROR_DLL
  904. MINGW_GCRYPT_DLL
  905. MINGW_CURL_DLL
  906. SYSTEM_CURL
  907. CURLCONFIG
  908. CURL_LIBS
  909. CURL_CFLAGS
  910. BUILD_STAX
  911. SAXON_JAR
  912. SYSTEM_SAXON
  913. SERIALIZER_JAR
  914. POSTGRESQL_LIB
  915. POSTGRESQL_INC
  916. SYSTEM_POSTGRESQL
  917. BUILD_POSTGRESQL_SDBC
  918. WITH_GSSAPI
  919. WITH_KRB5
  920. PGCONFIG
  921. HSQLDB_JAR
  922. SYSTEM_HSQLDB
  923. SYSTEM_MYSQL_CPPCONN
  924. LIBMYSQL_PATH
  925. MYSQL_DEFINES
  926. MYSQL_LIB
  927. MYSQL_INC
  928. SYSTEM_MYSQL
  929. MYSQLCONFIG
  930. ENABLE_MYSQLC
  931. MINGW_DB_DLL
  932. DB_CPPLIB
  933. DB_LIB
  934. SYSTEM_DB_CFLAGS
  935. SYSTEM_DB
  936. PYTHON_LIBS
  937. PYTHON_CFLAGS
  938. SYSTEM_PYTHON
  939. BZIP2
  940. pkgpyexecdir
  941. pyexecdir
  942. pkgpythondir
  943. pythondir
  944. PYTHON_PLATFORM
  945. PYTHON_EXEC_PREFIX
  946. PYTHON_PREFIX
  947. PYTHON_VERSION
  948. PYTHON
  949. DISABLE_PYTHON
  950. MINGW_ZLIB_DLL
  951. MINGW_LIBXML_DLL
  952. SYSTEM_LIBXML
  953. XMLLINT
  954. LIBXML_LIBS
  955. LIBXML_CFLAGS
  956. MINGW_ICONV_DLL
  957. MINGW_LIBXSLT_DLL
  958. SYSTEM_LIBXSLT_FOR_BUILD
  959. SYSTEM_LIBXSLT
  960. XSLTPROC
  961. LIBXSLT_LIBS
  962. LIBXSLT_CFLAGS
  963. USE_FT_EMBOLDEN
  964. SYSTEM_LIBWPG
  965. WPG_LIBS
  966. WPG_CFLAGS
  967. SYSTEM_LIBWPS
  968. WPS_LIBS
  969. WPS_CFLAGS
  970. FREETYPE_LIBS
  971. FREETYPE_CFLAGS
  972. SYSTEM_CPPUNIT
  973. CPPUNIT_LIBS
  974. CPPUNIT_CFLAGS
  975. MINGW_LCMS2_DLL
  976. SYSTEM_LCMS2
  977. LCMS2_LIBS
  978. LCMS2_CFLAGS
  979. SYSTEM_LIBWPD
  980. WPD_LIBS
  981. WPD_CFLAGS
  982. SYSTEM_LIBCMIS
  983. LIBCMIS_LIBS
  984. LIBCMIS_CFLAGS
  985. SYSTEM_LIBVISIO
  986. VISIO_LIBS
  987. VISIO_CFLAGS
  988. SYSTEM_LIBCDR
  989. CDR_LIBS
  990. CDR_CFLAGS
  991. MINGW_EXPAT_DLL
  992. SYSTEM_EXPAT
  993. SYSTEM_CLUCENE
  994. CLUCENE_LIBS
  995. CLUCENE_CFLAGS
  996. MINGW_JPEG_DLL
  997. SYSTEM_JPEG
  998. MINGW_MINIZIP_DLL
  999. SYSTEM_MINIZIP
  1000. SYSTEM_ZLIB
  1001. MINIZIP_LIBS
  1002. MINIZIP_CFLAGS
  1003. SYSTEM_STDLIBS
  1004. BUILD_UNOWINREG
  1005. MINGWSTRIP
  1006. MINGWCXX
  1007. GPERF
  1008. PKGFORMAT
  1009. BUILD_EPM
  1010. RPM
  1011. PKGMK
  1012. DPKG
  1013. EPM
  1014. BUILD_DMAKE
  1015. DMAKE
  1016. x_JDKLIB
  1017. x_JAVALIB
  1018. XCLASSPATH
  1019. JDKLIB
  1020. JDK
  1021. JAVA_TARGET_VER
  1022. JAVA_SOURCE_VER
  1023. JAVA_HOME
  1024. JAVAIFLAGS
  1025. JAVAFLAGS
  1026. JAVALIB
  1027. CLASSPATH
  1028. AWTLIB
  1029. JAVADOC
  1030. JAVACISKAFFE
  1031. JAVACISGCJ
  1032. JAVACOMPILER
  1033. JAVAINTERPRETER
  1034. WITH_VC_REDIST
  1035. JITC_PROCESSOR_TYPE
  1036. SOLAR_JAVA
  1037. BUILD_VER_STRING
  1038. ALLOC
  1039. HAVE_POSIX_FALLOCATE
  1040. HAVE_GCC_FNO_ENFORCE_EH_SPECS
  1041. HAVE_GCC_FNO_DEFAULT_INLINE
  1042. HAVE_SFINAE_ANONYMOUS_BROKEN
  1043. HAVE_GCC_VISIBILITY_BROKEN
  1044. HAVE_GCC_VISIBILITY_FEATURE
  1045. HAVE_GCC_AVX
  1046. HAVE_GCC_NO_LONG_DOUBLE
  1047. HAVE_CXX0X
  1048. HAVE_THREADSAFE_STATICS
  1049. GXX_INCLUDE_PATH
  1050. WITH_STLPORT
  1051. EXCEPTIONS
  1052. MINGW_GXXDLL
  1053. MINGW_GCCDLL
  1054. MINGW_SHARED_LIBSTDCPP
  1055. MINGW_SHARED_GXXLIB
  1056. MINGW_SHARED_GCCLIB
  1057. MINGW_CLIB_DIR
  1058. MINGW_LIB_INCLUDE_PATH
  1059. VALGRIND_CFLAGS
  1060. ALIGNOF_DOUBLE
  1061. ALIGNOF_LONG
  1062. ALIGNOF_INT
  1063. ALIGNOF_SHORT
  1064. SIZEOF_POINTER
  1065. SIZEOF_DOUBLE
  1066. SIZEOF_LONGLONG
  1067. SIZEOF_LONG
  1068. SIZEOF_INT
  1069. SIZEOF_SHORT
  1070. LFS_CFLAGS
  1071. WORDS_BIGENDIAN
  1072. CXXCPP
  1073. ac_ct_CXX
  1074. CXXFLAGS
  1075. CXX
  1076. CSC_PATH
  1077. MIDL_PATH
  1078. WINDRES
  1079. DLLTOOL
  1080. STRIP
  1081. RANLIB
  1082. OBJDUMP
  1083. NM
  1084. AR
  1085. PERL
  1086. WITH_LINKER_HASH_STYLE
  1087. HAVE_LD_HASH_STYLE
  1088. GNUMAKE
  1089. HAVE_GNUMAKE_FILE_FUNC
  1090. SHA1SUM
  1091. THES_SYSTEM_DIR
  1092. HYPH_SYSTEM_DIR
  1093. DICT_SYSTEM_DIR
  1094. SYSTEM_DICTS
  1095. WITH_MYSPELL_DICTS
  1096. WITH_BINFILTER
  1097. DO_FETCH_TARBALLS
  1098. TARFILE_LOCATION
  1099. FONTCONFIG_LIBS
  1100. FONTCONFIG_CFLAGS
  1101. PKG_CONFIG_LIBDIR
  1102. PKG_CONFIG_PATH
  1103. PKG_CONFIG
  1104. CPP
  1105. ENABLE_CUPS
  1106. ENABLE_SYMBOLS
  1107. ENABLE_LTO
  1108. DISABLE_LINKOO
  1109. ENABLE_DEBUG_FOR
  1110. ENABLE_DEBUG
  1111. EXTERNAL_WARNINGS_NOT_ERRORS
  1112. ENABLE_CRASHDUMP
  1113. SOURCEVERSION
  1114. UPD
  1115. WORKDIR_FOR_BUILD
  1116. OUTDIR_FOR_BUILD
  1117. MACOSX_DEPLOYMENT_TARGET_FOR_BUILD
  1118. OUTPATH_FOR_BUILD
  1119. INPATH_FOR_BUILD
  1120. CXX_FOR_BUILD
  1121. CC_FOR_BUILD
  1122. CPUNAME_FOR_BUILD
  1123. CPU_FOR_BUILD
  1124. OS_FOR_BUILD
  1125. GUIBASE_FOR_BUILD
  1126. GUI_FOR_BUILD
  1127. COM_FOR_BUILD
  1128. WORKDIR
  1129. SOLARVER
  1130. P_SEP
  1131. OUTPATH
  1132. OUTDIR
  1133. OS
  1134. INPATH
  1135. GUIBASE
  1136. GUI
  1137. EPM_FLAGS
  1138. RTL_ARCH
  1139. RTL_OS
  1140. CPUNAME
  1141. CPU
  1142. COM
  1143. SHOWINCLUDES_PREFIX
  1144. COMEX
  1145. LIBMGR_X64_BINARY
  1146. LINK_X64_BINARY
  1147. CXX_X64_BINARY
  1148. BUILD_X64
  1149. MSPDB_PATH
  1150. PROEXT
  1151. PRODUCT
  1152. HAVE_LD_BSYMBOLIC_FUNCTIONS
  1153. HAVE_GCC_FNO_INLINE
  1154. HAVE_GCC_FINLINE_LIMIT
  1155. HAVE_GCC_GGDB2
  1156. COM_GCC_IS_CLANG
  1157. DISABLE_ATL
  1158. DISABLE_ACTIVEX
  1159. ENABLE_DIRECTX
  1160. CL_X64
  1161. MAC_OS_X_VERSION_MAX_ALLOWED
  1162. MAC_OS_X_VERSION_MIN_REQUIRED
  1163. MACOSX_DEPLOYMENT_TARGET
  1164. MACOSX_SDK_PATH
  1165. FRAMEWORKSHOME
  1166. _cc
  1167. COMPATH
  1168. OBJEXT
  1169. EXEEXT
  1170. ac_ct_CC
  1171. CPPFLAGS
  1172. LDFLAGS
  1173. CFLAGS
  1174. CC
  1175. GCC_HOME
  1176. CCACHE
  1177. SYSBASE
  1178. DISABLE_DYNLOADING
  1179. DISABLE_SCRIPTING
  1180. DISABLE_EXTENSIONS
  1181. DISABLE_DBCONNECTIVITY
  1182. STRIP_COMPONENTS
  1183. GNUTAR
  1184. BASH
  1185. AWK
  1186. FONTCONFIG_TARBALL
  1187. FREETYPE_TARBALL
  1188. PTHREAD_LIBS
  1189. PTHREAD_CFLAGS
  1190. OSVERSION
  1191. WITH_MINGW
  1192. DYNAMIC_CRT
  1193. use_shl_version
  1194. GAWK
  1195. ANDROID_SDK_HOME
  1196. ANDROID_NDK_HOME
  1197. SED
  1198. x_Cygwin
  1199. EXEEXT_FOR_BUILD
  1200. SRC_ROOT
  1201. EGREP
  1202. GREP
  1203. CROSS_COMPILING
  1204. host_os
  1205. host_vendor
  1206. host_cpu
  1207. host
  1208. build_os
  1209. build_vendor
  1210. build_cpu
  1211. build
  1212. target_alias
  1213. host_alias
  1214. build_alias
  1215. LIBS
  1216. ECHO_T
  1217. ECHO_N
  1218. ECHO_C
  1219. DEFS
  1220. mandir
  1221. localedir
  1222. libdir
  1223. psdir
  1224. pdfdir
  1225. dvidir
  1226. htmldir
  1227. infodir
  1228. docdir
  1229. oldincludedir
  1230. includedir
  1231. localstatedir
  1232. sharedstatedir
  1233. sysconfdir
  1234. datadir
  1235. datarootdir
  1236. libexecdir
  1237. sbindir
  1238. bindir
  1239. program_transform_name
  1240. prefix
  1241. exec_prefix
  1242. PACKAGE_URL
  1243. PACKAGE_BUGREPORT
  1244. PACKAGE_STRING
  1245. PACKAGE_VERSION
  1246. PACKAGE_TARNAME
  1247. PACKAGE_NAME
  1248. PATH_SEPARATOR
  1249. SHELL'
  1250. ac_subst_files=''
  1251. ac_user_opts='
  1252. enable_option_checking
  1253. enable_extension_integration
  1254. enable_ext_barcode
  1255. enable_database_connectivity
  1256. enable_extensions
  1257. enable_scripting
  1258. enable_dynamic_loading
  1259. enable_ext_diagram
  1260. enable_ext_google_docs
  1261. enable_ext_hunart
  1262. enable_ext_languagetool
  1263. enable_ext_mysql_connector
  1264. enable_ext_nlpsolver
  1265. enable_ext_ct2n
  1266. enable_ext_numbertext
  1267. enable_ext_oooblogger
  1268. enable_ext_pdfimport
  1269. enable_ext_presenter_console
  1270. enable_ext_presenter_minimizer
  1271. enable_ext_report_builder
  1272. enable_ext_scripting_beanshell
  1273. enable_ext_scripting_javascript
  1274. enable_ext_typo
  1275. enable_ext_validator
  1276. enable_ext_watch_window
  1277. enable_ext_wiki_publisher
  1278. enable_mergelibs
  1279. enable_graphite
  1280. enable_ldap
  1281. enable_fetch_external
  1282. enable_lockdown
  1283. enable_vba
  1284. enable_pch
  1285. enable_mozilla
  1286. enable_epm
  1287. enable_odk
  1288. enable_mathmldtd
  1289. enable_evolution2
  1290. enable_directx
  1291. enable_activex
  1292. enable_atl
  1293. enable_symbols
  1294. enable_werror
  1295. enable_debug
  1296. enable_dbgutil
  1297. enable_linkoo
  1298. enable_lto
  1299. enable_crashdump
  1300. enable_python
  1301. enable_gtk
  1302. enable_gtk3
  1303. enable_systray
  1304. enable_split_app_modules
  1305. enable_split_opt_features
  1306. enable_cairo_canvas
  1307. enable_librsvg
  1308. enable_opengl
  1309. enable_dbus
  1310. enable_gconf
  1311. enable_gnome_vfs
  1312. enable_gio
  1313. enable_build_mozilla
  1314. enable_xmlsec
  1315. enable_tde
  1316. enable_tdeab
  1317. enable_kde
  1318. enable_kdeab
  1319. enable_kde4
  1320. enable_headless
  1321. enable_unix_qstart_libpng
  1322. enable_binfilter
  1323. enable_rpath
  1324. enable_randr
  1325. enable_randr_link
  1326. enable_gstreamer
  1327. enable_neon
  1328. enable_build_unowinreg
  1329. enable_verbose
  1330. enable_dependency_tracking
  1331. enable_icecream
  1332. enable_zenity
  1333. enable_nsplugin
  1334. enable_cups
  1335. enable_ccache
  1336. enable_cl_x64
  1337. enable_extra_gallery
  1338. enable_extra_template
  1339. enable_extra_sample
  1340. enable_extra_font
  1341. enable_oxygenoffice
  1342. enable_lomenubar
  1343. enable_online_update
  1344. enable_release_build
  1345. enable_silent_msi
  1346. enable_postgresql_sdbc
  1347. with_android_ndk
  1348. with_android_sdk
  1349. with_gnu_patch
  1350. with_build_platform_configure_options
  1351. with_gnu_cp
  1352. with_external_tar
  1353. with_solver_and_workdir_root
  1354. with_linked_git
  1355. with_openldap
  1356. with_vba_package_format
  1357. with_theme
  1358. with_helppack_integration
  1359. with_fonts
  1360. with_ppds
  1361. with_afms
  1362. with_agfa_monotype_fonts
  1363. with_epm
  1364. with_package_format
  1365. with_system_libs
  1366. with_system_headers
  1367. with_system_jars
  1368. with_system_stdlibs
  1369. with_system_cairo
  1370. with_system_graphite
  1371. with_system_nss
  1372. with_mozilla_version
  1373. with_mozilla_toolkit
  1374. with_myspell_dicts
  1375. with_system_dicts
  1376. with_external_dict_dir
  1377. with_external_hyph_dir
  1378. with_external_thes_dir
  1379. with_system_zlib
  1380. with_system_openssl
  1381. with_system_jpeg
  1382. with_system_clucene
  1383. with_system_expat
  1384. with_system_libcmis
  1385. with_system_lcms2
  1386. with_system_libcdr
  1387. with_system_libvisio
  1388. with_system_libwpd
  1389. with_system_libwps
  1390. with_system_libwpg
  1391. with_system_libxml
  1392. with_system_icu
  1393. with_system_poppler
  1394. with_system_db
  1395. with_system_apache_commons
  1396. with_system_mysql
  1397. with_libmysql_path
  1398. with_system_mysql_cppconn
  1399. with_system_postgresql
  1400. with_libpq_path
  1401. with_system_hsqldb
  1402. with_hsqldb_jar
  1403. with_system_beanshell
  1404. with_beanshell_jar
  1405. with_system_rhino
  1406. with_rhino_jar
  1407. with_commons_codec_jar
  1408. with_commons_lang_jar
  1409. with_commons_httpclient_jar
  1410. with_commons_logging_jar
  1411. with_system_servlet_api
  1412. with_servlet_api_jar
  1413. with_system_jfreereport
  1414. with_sac_jar
  1415. with_libxml_jar
  1416. with_flute_jar
  1417. with_jfreereport_jar
  1418. with_liblayout_jar
  1419. with_libloader_jar
  1420. with_libformula_jar
  1421. with_librepository_jar
  1422. with_libfonts_jar
  1423. with_libserializer_jar
  1424. with_libbase_jar
  1425. with_system_saxon
  1426. with_saxon_jar
  1427. with_system_odbc
  1428. with_system_sane
  1429. with_system_xextensions_headers
  1430. with_system_mesa_headers
  1431. with_system_curl
  1432. with_system_boost
  1433. with_system_mdds
  1434. with_system_vigra
  1435. with_system_neon
  1436. with_system_hunspell
  1437. with_system_mythes
  1438. with_system_altlinuxhyph
  1439. with_system_lpsolve
  1440. with_system_libexttextcat
  1441. with_system_cppunit
  1442. with_system_redland
  1443. with_system_mozilla
  1444. with_system_mozilla_headers
  1445. with_system_gettext
  1446. with_system_libpng
  1447. with_linker_hash_style
  1448. with_stlport
  1449. with_jdk_home
  1450. with_gxx_include_path
  1451. with_help
  1452. with_java
  1453. with_java_target_version
  1454. with_jvm_path
  1455. with_ant_home
  1456. with_junit
  1457. with_perl_home
  1458. with_doxygen
  1459. with_cl_home
  1460. with_mspdb_path
  1461. with_midl_path
  1462. with_csc_path
  1463. with_dotnet_framework_home
  1464. with_windows_sdk_home
  1465. with_directx_home
  1466. with_mozilla_build
  1467. with_lang
  1468. with_krb5
  1469. with_gssapi
  1470. with_branding
  1471. with_intro_bitmap
  1472. with_intro_progressbar_color
  1473. with_intro_progressbar_size
  1474. with_intro_progressbar_position
  1475. with_intro_progressbar_frame_color
  1476. with_flat_logo_svg
  1477. with_about_background_svg
  1478. with_startcenter_left_bitmap
  1479. with_startcenter_right_bitmap
  1480. with_startcenter_rtl_left_bitmap
  1481. with_startcenter_rtl_right_bitmap
  1482. with_startcenter_space_bitmap
  1483. with_vendor
  1484. with_unix_wrapper
  1485. with_compat_oowrappers
  1486. with_asm_home
  1487. with_os_version
  1488. with_mingw_cross_compiler
  1489. with_build_version
  1490. with_alloc
  1491. with_sun_templates
  1492. with_num_cpus
  1493. with_max_jobs
  1494. with_macosx_sdk
  1495. with_macosx_version_min_required
  1496. with_macosx_version_max_allowed
  1497. with_system_boost_for_build
  1498. with_system_cppunit_for_build
  1499. with_system_db_for_build
  1500. with_system_expat_for_build
  1501. with_system_icu_for_build
  1502. with_system_libxml_for_build
  1503. enable_largefile
  1504. with_x
  1505. '
  1506. ac_precious_vars='build_alias
  1507. host_alias
  1508. target_alias
  1509. CC
  1510. CFLAGS
  1511. LDFLAGS
  1512. LIBS
  1513. CPPFLAGS
  1514. CPP
  1515. PKG_CONFIG
  1516. PKG_CONFIG_PATH
  1517. PKG_CONFIG_LIBDIR
  1518. FONTCONFIG_CFLAGS
  1519. FONTCONFIG_LIBS
  1520. CXX
  1521. CXXFLAGS
  1522. CCC
  1523. CXXCPP
  1524. MINIZIP_CFLAGS
  1525. MINIZIP_LIBS
  1526. CLUCENE_CFLAGS
  1527. CLUCENE_LIBS
  1528. CDR_CFLAGS
  1529. CDR_LIBS
  1530. VISIO_CFLAGS
  1531. VISIO_LIBS
  1532. LIBCMIS_CFLAGS
  1533. LIBCMIS_LIBS
  1534. WPD_CFLAGS
  1535. WPD_LIBS
  1536. LCMS2_CFLAGS
  1537. LCMS2_LIBS
  1538. CPPUNIT_CFLAGS
  1539. CPPUNIT_LIBS
  1540. FREETYPE_CFLAGS
  1541. FREETYPE_LIBS
  1542. WPS_CFLAGS
  1543. WPS_LIBS
  1544. WPG_CFLAGS
  1545. WPG_LIBS
  1546. LIBXSLT_CFLAGS
  1547. LIBXSLT_LIBS
  1548. LIBXML_CFLAGS
  1549. LIBXML_LIBS
  1550. CURL_CFLAGS
  1551. CURL_LIBS
  1552. MOZILLAXPCOM_CFLAGS
  1553. MOZILLAXPCOM_LIBS
  1554. MOZLIBREQ_CFLAGS
  1555. MOZLIBREQ_LIBS
  1556. NSS_CFLAGS
  1557. NSS_LIBS
  1558. MOZILLA_HEADERS_CFLAGS
  1559. MOZILLA_HEADERS_LIBS
  1560. GRAPHITE_CFLAGS
  1561. GRAPHITE_LIBS
  1562. XMKMF
  1563. XRANDR_CFLAGS
  1564. XRANDR_LIBS
  1565. NEON_CFLAGS
  1566. NEON_LIBS
  1567. OPENSSL_CFLAGS
  1568. OPENSSL_LIBS
  1569. REDLAND_CFLAGS
  1570. REDLAND_LIBS
  1571. HUNSPELL_CFLAGS
  1572. HUNSPELL_LIBS
  1573. MYTHES_CFLAGS
  1574. MYTHES_LIBS
  1575. LIBEXTTEXTCAT_CFLAGS
  1576. LIBEXTTEXTCAT_LIBS
  1577. GTK3_CFLAGS
  1578. GTK3_LIBS
  1579. GCONF_CFLAGS
  1580. GCONF_LIBS
  1581. GNOMEVFS_CFLAGS
  1582. GNOMEVFS_LIBS
  1583. GTK_CFLAGS
  1584. GTK_LIBS
  1585. GTHREAD_CFLAGS
  1586. GTHREAD_LIBS
  1587. GTK210_CFLAGS
  1588. GTK210_LIBS
  1589. GTK_PRINT_CFLAGS
  1590. GTK_PRINT_LIBS
  1591. DBUS_CFLAGS
  1592. DBUS_LIBS
  1593. GIO_CFLAGS
  1594. GIO_LIBS
  1595. LIBPNG_CFLAGS
  1596. LIBPNG_LIBS
  1597. GSTREAMER_CFLAGS
  1598. GSTREAMER_LIBS
  1599. POPPLER_CFLAGS
  1600. POPPLER_LIBS
  1601. KDE_GLIB_CFLAGS
  1602. KDE_GLIB_LIBS
  1603. GOBJECT_CFLAGS
  1604. GOBJECT_LIBS
  1605. DBUSMENUGTK_CFLAGS
  1606. DBUSMENUGTK_LIBS
  1607. LIBRSVG_CFLAGS
  1608. LIBRSVG_LIBS
  1609. CAIRO_CFLAGS
  1610. CAIRO_LIBS'
  1611. # Initialize some variables set by options.
  1612. ac_init_help=
  1613. ac_init_version=false
  1614. ac_unrecognized_opts=
  1615. ac_unrecognized_sep=
  1616. # The variables have the same names as the options, with
  1617. # dashes changed to underlines.
  1618. cache_file=/dev/null
  1619. exec_prefix=NONE
  1620. no_create=
  1621. no_recursion=
  1622. prefix=NONE
  1623. program_prefix=NONE
  1624. program_suffix=NONE
  1625. program_transform_name=s,x,x,
  1626. silent=
  1627. site=
  1628. srcdir=
  1629. verbose=
  1630. x_includes=NONE
  1631. x_libraries=NONE
  1632. # Installation directory options.
  1633. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1634. # and all the variables that are supposed to be based on exec_prefix
  1635. # by default will actually change.
  1636. # Use braces instead of parens because sh, perl, etc. also accept them.
  1637. # (The list follows the same order as the GNU Coding Standards.)
  1638. bindir='${exec_prefix}/bin'
  1639. sbindir='${exec_prefix}/sbin'
  1640. libexecdir='${exec_prefix}/libexec'
  1641. datarootdir='${prefix}/share'
  1642. datadir='${datarootdir}'
  1643. sysconfdir='${prefix}/etc'
  1644. sharedstatedir='${prefix}/com'
  1645. localstatedir='${prefix}/var'
  1646. includedir='${prefix}/include'
  1647. oldincludedir='/usr/include'
  1648. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1649. infodir='${datarootdir}/info'
  1650. htmldir='${docdir}'
  1651. dvidir='${docdir}'
  1652. pdfdir='${docdir}'
  1653. psdir='${docdir}'
  1654. libdir='${exec_prefix}/lib'
  1655. localedir='${datarootdir}/locale'
  1656. mandir='${datarootdir}/man'
  1657. ac_prev=
  1658. ac_dashdash=
  1659. for ac_option
  1660. do
  1661. # If the previous option needs an argument, assign it.
  1662. if test -n "$ac_prev"; then
  1663. eval $ac_prev=\$ac_option
  1664. ac_prev=
  1665. continue
  1666. fi
  1667. case $ac_option in
  1668. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1669. *=) ac_optarg= ;;
  1670. *) ac_optarg=yes ;;
  1671. esac
  1672. # Accept the important Cygnus configure options, so we can diagnose typos.
  1673. case $ac_dashdash$ac_option in
  1674. --)
  1675. ac_dashdash=yes ;;
  1676. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1677. ac_prev=bindir ;;
  1678. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1679. bindir=$ac_optarg ;;
  1680. -build | --build | --buil | --bui | --bu)
  1681. ac_prev=build_alias ;;
  1682. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1683. build_alias=$ac_optarg ;;
  1684. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1685. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1686. ac_prev=cache_file ;;
  1687. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1688. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1689. cache_file=$ac_optarg ;;
  1690. --config-cache | -C)
  1691. cache_file=config.cache ;;
  1692. -datadir | --datadir | --datadi | --datad)
  1693. ac_prev=datadir ;;
  1694. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1695. datadir=$ac_optarg ;;
  1696. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1697. | --dataroo | --dataro | --datar)
  1698. ac_prev=datarootdir ;;
  1699. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1700. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1701. datarootdir=$ac_optarg ;;
  1702. -disable-* | --disable-*)
  1703. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1704. # Reject names that are not valid shell variable names.
  1705. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1706. as_fn_error $? "invalid feature name: $ac_useropt"
  1707. ac_useropt_orig=$ac_useropt
  1708. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1709. case $ac_user_opts in
  1710. *"
  1711. "enable_$ac_useropt"
  1712. "*) ;;
  1713. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1714. ac_unrecognized_sep=', ';;
  1715. esac
  1716. eval enable_$ac_useropt=no ;;
  1717. -docdir | --docdir | --docdi | --doc | --do)
  1718. ac_prev=docdir ;;
  1719. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1720. docdir=$ac_optarg ;;
  1721. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1722. ac_prev=dvidir ;;
  1723. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1724. dvidir=$ac_optarg ;;
  1725. -enable-* | --enable-*)
  1726. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1727. # Reject names that are not valid shell variable names.
  1728. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1729. as_fn_error $? "invalid feature name: $ac_useropt"
  1730. ac_useropt_orig=$ac_useropt
  1731. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1732. case $ac_user_opts in
  1733. *"
  1734. "enable_$ac_useropt"
  1735. "*) ;;
  1736. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1737. ac_unrecognized_sep=', ';;
  1738. esac
  1739. eval enable_$ac_useropt=\$ac_optarg ;;
  1740. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1741. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1742. | --exec | --exe | --ex)
  1743. ac_prev=exec_prefix ;;
  1744. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1745. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1746. | --exec=* | --exe=* | --ex=*)
  1747. exec_prefix=$ac_optarg ;;
  1748. -gas | --gas | --ga | --g)
  1749. # Obsolete; use --with-gas.
  1750. with_gas=yes ;;
  1751. -help | --help | --hel | --he | -h)
  1752. ac_init_help=long ;;
  1753. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1754. ac_init_help=recursive ;;
  1755. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1756. ac_init_help=short ;;
  1757. -host | --host | --hos | --ho)
  1758. ac_prev=host_alias ;;
  1759. -host=* | --host=* | --hos=* | --ho=*)
  1760. host_alias=$ac_optarg ;;
  1761. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1762. ac_prev=htmldir ;;
  1763. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1764. | --ht=*)
  1765. htmldir=$ac_optarg ;;
  1766. -includedir | --includedir | --includedi | --included | --include \
  1767. | --includ | --inclu | --incl | --inc)
  1768. ac_prev=includedir ;;
  1769. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1770. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1771. includedir=$ac_optarg ;;
  1772. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1773. ac_prev=infodir ;;
  1774. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1775. infodir=$ac_optarg ;;
  1776. -libdir | --libdir | --libdi | --libd)
  1777. ac_prev=libdir ;;
  1778. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1779. libdir=$ac_optarg ;;
  1780. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1781. | --libexe | --libex | --libe)
  1782. ac_prev=libexecdir ;;
  1783. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1784. | --libexe=* | --libex=* | --libe=*)
  1785. libexecdir=$ac_optarg ;;
  1786. -localedir | --localedir | --localedi | --localed | --locale)
  1787. ac_prev=localedir ;;
  1788. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1789. localedir=$ac_optarg ;;
  1790. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1791. | --localstate | --localstat | --localsta | --localst | --locals)
  1792. ac_prev=localstatedir ;;
  1793. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1794. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1795. localstatedir=$ac_optarg ;;
  1796. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1797. ac_prev=mandir ;;
  1798. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1799. mandir=$ac_optarg ;;
  1800. -nfp | --nfp | --nf)
  1801. # Obsolete; use --without-fp.
  1802. with_fp=no ;;
  1803. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1804. | --no-cr | --no-c | -n)
  1805. no_create=yes ;;
  1806. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1807. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1808. no_recursion=yes ;;
  1809. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1810. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1811. | --oldin | --oldi | --old | --ol | --o)
  1812. ac_prev=oldincludedir ;;
  1813. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1814. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1815. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1816. oldincludedir=$ac_optarg ;;
  1817. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1818. ac_prev=prefix ;;
  1819. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1820. prefix=$ac_optarg ;;
  1821. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1822. | --program-pre | --program-pr | --program-p)
  1823. ac_prev=program_prefix ;;
  1824. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1825. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1826. program_prefix=$ac_optarg ;;
  1827. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1828. | --program-suf | --program-su | --program-s)
  1829. ac_prev=program_suffix ;;
  1830. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1831. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1832. program_suffix=$ac_optarg ;;
  1833. -program-transform-name | --program-transform-name \
  1834. | --program-transform-nam | --program-transform-na \
  1835. | --program-transform-n | --program-transform- \
  1836. | --program-transform | --program-transfor \
  1837. | --program-transfo | --program-transf \
  1838. | --program-trans | --program-tran \
  1839. | --progr-tra | --program-tr | --program-t)
  1840. ac_prev=program_transform_name ;;
  1841. -program-transform-name=* | --program-transform-name=* \
  1842. | --program-transform-nam=* | --program-transform-na=* \
  1843. | --program-transform-n=* | --program-transform-=* \
  1844. | --program-transform=* | --program-transfor=* \
  1845. | --program-transfo=* | --program-transf=* \
  1846. | --program-trans=* | --program-tran=* \
  1847. | --progr-tra=* | --program-tr=* | --program-t=*)
  1848. program_transform_name=$ac_optarg ;;
  1849. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1850. ac_prev=pdfdir ;;
  1851. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1852. pdfdir=$ac_optarg ;;
  1853. -psdir | --psdir | --psdi | --psd | --ps)
  1854. ac_prev=psdir ;;
  1855. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1856. psdir=$ac_optarg ;;
  1857. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1858. | -silent | --silent | --silen | --sile | --sil)
  1859. silent=yes ;;
  1860. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1861. ac_prev=sbindir ;;
  1862. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1863. | --sbi=* | --sb=*)
  1864. sbindir=$ac_optarg ;;
  1865. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1866. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1867. | --sharedst | --shareds | --shared | --share | --shar \
  1868. | --sha | --sh)
  1869. ac_prev=sharedstatedir ;;
  1870. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1871. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1872. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1873. | --sha=* | --sh=*)
  1874. sharedstatedir=$ac_optarg ;;
  1875. -site | --site | --sit)
  1876. ac_prev=site ;;
  1877. -site=* | --site=* | --sit=*)
  1878. site=$ac_optarg ;;
  1879. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1880. ac_prev=srcdir ;;
  1881. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1882. srcdir=$ac_optarg ;;
  1883. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1884. | --syscon | --sysco | --sysc | --sys | --sy)
  1885. ac_prev=sysconfdir ;;
  1886. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1887. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1888. sysconfdir=$ac_optarg ;;
  1889. -target | --target | --targe | --targ | --tar | --ta | --t)
  1890. ac_prev=target_alias ;;
  1891. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1892. target_alias=$ac_optarg ;;
  1893. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1894. verbose=yes ;;
  1895. -version | --version | --versio | --versi | --vers | -V)
  1896. ac_init_version=: ;;
  1897. -with-* | --with-*)
  1898. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1899. # Reject names that are not valid shell variable names.
  1900. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1901. as_fn_error $? "invalid package name: $ac_useropt"
  1902. ac_useropt_orig=$ac_useropt
  1903. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1904. case $ac_user_opts in
  1905. *"
  1906. "with_$ac_useropt"
  1907. "*) ;;
  1908. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1909. ac_unrecognized_sep=', ';;
  1910. esac
  1911. eval with_$ac_useropt=\$ac_optarg ;;
  1912. -without-* | --without-*)
  1913. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1914. # Reject names that are not valid shell variable names.
  1915. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1916. as_fn_error $? "invalid package name: $ac_useropt"
  1917. ac_useropt_orig=$ac_useropt
  1918. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1919. case $ac_user_opts in
  1920. *"
  1921. "with_$ac_useropt"
  1922. "*) ;;
  1923. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1924. ac_unrecognized_sep=', ';;
  1925. esac
  1926. eval with_$ac_useropt=no ;;
  1927. --x)
  1928. # Obsolete; use --with-x.
  1929. with_x=yes ;;
  1930. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1931. | --x-incl | --x-inc | --x-in | --x-i)
  1932. ac_prev=x_includes ;;
  1933. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1934. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1935. x_includes=$ac_optarg ;;
  1936. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1937. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1938. ac_prev=x_libraries ;;
  1939. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1940. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1941. x_libraries=$ac_optarg ;;
  1942. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1943. Try \`$0 --help' for more information"
  1944. ;;
  1945. *=*)
  1946. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1947. # Reject names that are not valid shell variable names.
  1948. case $ac_envvar in #(
  1949. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1950. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1951. esac
  1952. eval $ac_envvar=\$ac_optarg
  1953. export $ac_envvar ;;
  1954. *)
  1955. # FIXME: should be removed in autoconf 3.0.
  1956. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1957. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1958. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1959. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1960. ;;
  1961. esac
  1962. done
  1963. if test -n "$ac_prev"; then
  1964. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1965. as_fn_error $? "missing argument to $ac_option"
  1966. fi
  1967. if test -n "$ac_unrecognized_opts"; then
  1968. case $enable_option_checking in
  1969. no) ;;
  1970. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1971. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1972. esac
  1973. fi
  1974. # Check all directory arguments for consistency.
  1975. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1976. datadir sysconfdir sharedstatedir localstatedir includedir \
  1977. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1978. libdir localedir mandir
  1979. do
  1980. eval ac_val=\$$ac_var
  1981. # Remove trailing slashes.
  1982. case $ac_val in
  1983. */ )
  1984. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1985. eval $ac_var=\$ac_val;;
  1986. esac
  1987. # Be sure to have absolute directory names.
  1988. case $ac_val in
  1989. [\\/$]* | ?:[\\/]* ) continue;;
  1990. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1991. esac
  1992. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1993. done
  1994. # There might be people who depend on the old broken behavior: `$host'
  1995. # used to hold the argument of --host etc.
  1996. # FIXME: To remove some day.
  1997. build=$build_alias
  1998. host=$host_alias
  1999. target=$target_alias
  2000. # FIXME: To remove some day.
  2001. if test "x$host_alias" != x; then
  2002. if test "x$build_alias" = x; then
  2003. cross_compiling=maybe
  2004. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  2005. If a cross compiler is detected then cross compile mode will be used" >&2
  2006. elif test "x$build_alias" != "x$host_alias"; then
  2007. cross_compiling=yes
  2008. fi
  2009. fi
  2010. ac_tool_prefix=
  2011. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  2012. test "$silent" = yes && exec 6>/dev/null
  2013. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  2014. ac_ls_di=`ls -di .` &&
  2015. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  2016. as_fn_error $? "working directory cannot be determined"
  2017. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  2018. as_fn_error $? "pwd does not report name of working directory"
  2019. # Find the source files, if location was not specified.
  2020. if test -z "$srcdir"; then
  2021. ac_srcdir_defaulted=yes
  2022. # Try the directory containing this script, then the parent directory.
  2023. ac_confdir=`$as_dirname -- "$as_myself" ||
  2024. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2025. X"$as_myself" : 'X\(//\)[^/]' \| \
  2026. X"$as_myself" : 'X\(//\)$' \| \
  2027. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  2028. $as_echo X"$as_myself" |
  2029. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2030. s//\1/
  2031. q
  2032. }
  2033. /^X\(\/\/\)[^/].*/{
  2034. s//\1/
  2035. q
  2036. }
  2037. /^X\(\/\/\)$/{
  2038. s//\1/
  2039. q
  2040. }
  2041. /^X\(\/\).*/{
  2042. s//\1/
  2043. q
  2044. }
  2045. s/.*/./; q'`
  2046. srcdir=$ac_confdir
  2047. if test ! -r "$srcdir/$ac_unique_file"; then
  2048. srcdir=..
  2049. fi
  2050. else
  2051. ac_srcdir_defaulted=no
  2052. fi
  2053. if test ! -r "$srcdir/$ac_unique_file"; then
  2054. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  2055. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  2056. fi
  2057. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  2058. ac_abs_confdir=`(
  2059. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  2060. pwd)`
  2061. # When building in place, set srcdir=.
  2062. if test "$ac_abs_confdir" = "$ac_pwd"; then
  2063. srcdir=.
  2064. fi
  2065. # Remove unnecessary trailing slashes from srcdir.
  2066. # Double slashes in file names in object file debugging info
  2067. # mess up M-x gdb in Emacs.
  2068. case $srcdir in
  2069. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  2070. esac
  2071. for ac_var in $ac_precious_vars; do
  2072. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  2073. eval ac_env_${ac_var}_value=\$${ac_var}
  2074. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  2075. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  2076. done
  2077. #
  2078. # Report the --help message.
  2079. #
  2080. if test "$ac_init_help" = "long"; then
  2081. # Omit some internal or obsolete options to make the list less imposing.
  2082. # This message is too long to be a string in the A/UX 3.1 sh.
  2083. cat <<_ACEOF
  2084. \`configure' configures LibreOffice 3.6 to adapt to many kinds of systems.
  2085. Usage: $0 [OPTION]... [VAR=VALUE]...
  2086. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  2087. VAR=VALUE. See below for descriptions of some of the useful variables.
  2088. Defaults for the options are specified in brackets.
  2089. Configuration:
  2090. -h, --help display this help and exit
  2091. --help=short display options specific to this package
  2092. --help=recursive display the short help of all the included packages
  2093. -V, --version display version information and exit
  2094. -q, --quiet, --silent do not print \`checking ...' messages
  2095. --cache-file=FILE cache test results in FILE [disabled]
  2096. -C, --config-cache alias for \`--cache-file=config.cache'
  2097. -n, --no-create do not create output files
  2098. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  2099. Installation directories:
  2100. --prefix=PREFIX install architecture-independent files in PREFIX
  2101. [$ac_default_prefix]
  2102. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  2103. [PREFIX]
  2104. By default, \`make install' will install all the files in
  2105. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  2106. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  2107. for instance \`--prefix=\$HOME'.
  2108. For better control, use the options below.
  2109. Fine tuning of the installation directories:
  2110. --bindir=DIR user executables [EPREFIX/bin]
  2111. --sbindir=DIR system admin executables [EPREFIX/sbin]
  2112. --libexecdir=DIR program executables [EPREFIX/libexec]
  2113. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  2114. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  2115. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  2116. --libdir=DIR object code libraries [EPREFIX/lib]
  2117. --includedir=DIR C header files [PREFIX/include]
  2118. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  2119. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  2120. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  2121. --infodir=DIR info documentation [DATAROOTDIR/info]
  2122. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  2123. --mandir=DIR man documentation [DATAROOTDIR/man]
  2124. --docdir=DIR documentation root [DATAROOTDIR/doc/libreoffice]
  2125. --htmldir=DIR html documentation [DOCDIR]
  2126. --dvidir=DIR dvi documentation [DOCDIR]
  2127. --pdfdir=DIR pdf documentation [DOCDIR]
  2128. --psdir=DIR ps documentation [DOCDIR]
  2129. _ACEOF
  2130. cat <<\_ACEOF
  2131. X features:
  2132. --x-includes=DIR X include files are in DIR
  2133. --x-libraries=DIR X library files are in DIR
  2134. System types:
  2135. --build=BUILD configure for building on BUILD [guessed]
  2136. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  2137. _ACEOF
  2138. fi
  2139. if test -n "$ac_init_help"; then
  2140. case $ac_init_help in
  2141. short | recursive ) echo "Configuration of LibreOffice 3.6:";;
  2142. esac
  2143. cat <<\_ACEOF
  2144. Optional Features:
  2145. --disable-option-checking ignore unrecognized --enable/--with options
  2146. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  2147. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  2148. --disable-extension-integration
  2149. Disable integration of the built extensions in the
  2150. installer of the product. Use this switch to disable
  2151. the integration.
  2152. --enable-ext-barcode Enable the Barcode extension.
  2153. --disable-database-connectivity
  2154. Disable various database connectivity. Work in
  2155. progress, use only if you are hacking on it.
  2156. --disable-extensions Disable all add-on extension functionality. Work in
  2157. progress, use only if you are hacking on it.
  2158. --disable-scripting Disable BASIC, Java and Python. Work in progress,
  2159. use only if you are hacking on it.
  2160. --disable-dynamic-loading
  2161. Disable any use of dynamic loading of code. Work in
  2162. progress, use only if you are hacking on it.
  2163. --enable-ext-diagram Enable the SmART Gallery (Diagram) extension.
  2164. --enable-ext-google-docs
  2165. Enable the Google Documents extension.
  2166. --enable-ext-hunart Enable the Hungarian Cross-reference Toolbar
  2167. extension.
  2168. --enable-ext-languagetool
  2169. Enable the LanguageTool extension.
  2170. --enable-ext-mysql-connector
  2171. Enable the build of the MySQL Connector extension.
  2172. --enable-ext-nlpsolver Enable the NLPSolver extension.
  2173. --enable-ext-ct2n Enable the ConvertTextToNumber extension.
  2174. --enable-ext-numbertext Enable the Numbertext extension.
  2175. --enable-ext-oooblogger Enable the OOo Blogger extension.
  2176. --disable-ext-pdfimport Disable the PDF Import extension.
  2177. --disable-ext-presenter-console
  2178. Disable the Presenter Console extension.
  2179. --disable-ext-presenter-minimizer
  2180. Disable the Presentation Minimizer extension.
  2181. --disable-ext-report-builder
  2182. Disable the Report Builder extension.
  2183. --enable-ext-scripting-beanshell
  2184. Enable support for scripts in BeanShell.
  2185. --enable-ext-scripting-javascript
  2186. Enable support for scripts in JavaScript.
  2187. --enable-ext-typo Enable the Typography Toolbar extension.
  2188. --enable-ext-validator Enable the Validator extension.
  2189. --enable-ext-watch-window
  2190. Enable the Watch Window extension to Calc.
  2191. --enable-ext-wiki-publisher
  2192. Enable the Wiki Publisher extension.
  2193. --enable-mergelibs Enables linking of big merged library used for
  2194. better performance.
  2195. --enable-graphite Enables the compilation of Graphite smart font
  2196. rendering.
  2197. --disable-ldap Disables the use of LDAP backend via
  2198. Netscape/Mozilla or OpenLDAP LDAP SDK
  2199. --disable-fetch-external
  2200. Disables fetching external tarballs from web
  2201. sources.
  2202. --disable-lockdown Disables the gconf integration work in LibreOffice.
  2203. --disable-vba Disables the vba compatibility feature.
  2204. --enable-pch DEPRECATED : is ignored
  2205. --disable-mozilla LibreOffice usually includes a strangely hacked up
  2206. Mozilla binary for your platform, to build without
  2207. this version, use this option.
  2208. --enable-epm LibreOffice includes self-packaging code, that
  2209. requires epm, however epm is useless for large scale
  2210. package building.
  2211. --disable-odk LibreOffice includes an ODK, office development kit
  2212. which some packagers may wish to build without.
  2213. --disable-mathmldtd Disable mathmldtd (useful for distributions that
  2214. want to avoid packaging it).
  2215. --enable-evolution2 Allows the built-in evolution 2 addressbook
  2216. connectivity build to be enabled.
  2217. --disable-directx Remove DirectX implementation for the new XCanvas
  2218. interface. The DirectX support requires more stuff
  2219. installed on Windows to compile. (DirectX SDK, GDI+
  2220. libs)
  2221. --disable-activex Disable the use of ActiveX for a Windows build. This
  2222. switch is mandatory when using VC++ 2008 Express.
  2223. --disable-atl Disable the use of ATL for a Windows build.
  2224. This switch is mandatory when using VC++ 2008 Express.
  2225. --enable-symbols Include debugging symbols in output. WARNING - a
  2226. complete build needs a lot of space (roughly 10 GiB)
  2227. and takes much longer (enables -g compiler flag for
  2228. GCC or equivalent).
  2229. --enable-werror Turn warnings to errors. (Has no effect in modules
  2230. where the treating of warnings as errors is disabled
  2231. explicitly.)
  2232. --enable-debug Include debugging symbols like with
  2233. --enable-symbols, disable compiler optimization and
  2234. inlining plus extra debugging code like assertions.
  2235. Extra large build! (enables -g compiler flag and
  2236. dmake debug=true) If you need even more verbose
  2237. output, build a module with "build -- debug=true
  2238. dbglevel=2". You can also use this switch as
  2239. follows: --enable-debug="all -sw/ -Library_sc" to
  2240. enable symbols only for the specified gbuild-build
  2241. targets (all means everything, - prepended means not
  2242. to enable, / appended means everything in the
  2243. directory, there is no ordering, more specific
  2244. overrides more general, and disabling takes
  2245. precedence).
  2246. --enable-dbgutil Include additional debugging utilities, such as
  2247. assertions, object counting, etc. Larger build.
  2248. Independent from --enable-debug. Note that this
  2249. option makes the build ABI incompatible: It is not
  2250. possible to mix object files or libraries from a
  2251. --enable-dbgutil and a --disable-dbgutil build.
  2252. --disable-linkoo Disable linkoo for the smoketest installation.
  2253. --enable-lto Enable link-time optimization. Suitable for product
  2254. builds. Building takes longer but libraries are
  2255. optimized for speed. (possible only with gcc-4.5 or
  2256. later, better to use gcc-4.6 and 'gold' as linker)
  2257. --enable-crashdump Enable the crashdump feature.
  2258. --enable-python=<no/auto/system/internal>
  2259. Enables or disables Python support at run-time and
  2260. build-time. Also specifies what Python to use.
  2261. 'auto' is the default. Note that Python can be
  2262. disabled with --disable-python or --enable-python=no
  2263. only if no translations are required.
  2264. --disable-gtk Determines whether to use Gtk+ vclplug on platforms
  2265. where Gtk+ is available.
  2266. --disable-gtk3 Determines whether to use Gtk+ 3.0 vclplug on
  2267. platforms where Gtk+ 3.0 is available.
  2268. --disable-systray Determines whether to build the systray
  2269. quickstarter.
  2270. --enable-split-app-modules
  2271. Split file lists for app modules, e.g. base, calc.
  2272. Has effect only with make distro-pack-install
  2273. --enable-split-opt-features
  2274. Split file lists for some optional features, .e.g.
  2275. pyuno, testtool. Has effect only with make
  2276. distro-pack-install
  2277. --disable-cairo-canvas Determines whether to build the Cairo canvas on
  2278. platforms where Cairo is available.
  2279. --enable-librsvg=<no/auto/system/internal/fully-internal>
  2280. Enables or disables use of librsvg to render SVG at
  2281. run-time. Also specificed what librsvg to use.
  2282. 'auto' is the default. 'fully-internal' also forces
  2283. internal versions of libraries (only) librsvg
  2284. depends on (currently GLib, gdk-pixbuf, libcroco,
  2285. libgsf, pango).
  2286. --disable-opengl Determines whether to build the OpenGL 3D slide
  2287. transitions component.
  2288. --enable-dbus Determines whether to enable presentation mode
  2289. screensaver control under GNOME via DBUS.
  2290. --disable-gconf Determines whether to use the GConf support.
  2291. --disable-gnome-vfs Determines whether to use the Gnome Virtual Filing
  2292. System on platforms where that VFS is available.
  2293. --enable-gio Determines whether to use the GIO support.
  2294. --disable-build-mozilla Use this option if you do not want to build the
  2295. Mozilla components from the Mozilla source code but
  2296. take precompiled zips.
  2297. --disable-xmlsec Whether to enable XMLsec for open document signing.
  2298. Be warned, building without XML Security will likely
  2299. give you test failures.
  2300. --enable-tde Determines whether to use TQt/TDE vclplug on
  2301. platforms where TQt and TDE are available.
  2302. --disable-tdeab Disable the TDE address book support.
  2303. --enable-kde Determines whether to use Qt3/KDE3 vclplug on
  2304. platforms where Qt3 and KDE3 are available.
  2305. --disable-kdeab Disable the KDE3 address book support.
  2306. --enable-kde4 Determines whether to use Qt4/KDE4 vclplug on
  2307. platforms where Qt4 and KDE4 are available. May be
  2308. used with --enable-kde if you want to support both
  2309. KDE3 and KDE4.
  2310. --enable-headless Disable building of GUIs to reduce dependencies.
  2311. Useful for server usage. Work in progress, use only
  2312. if you are hacking on it. Not related to the
  2313. --headless option.
  2314. --disable-unix-qstart-libpng
  2315. On UNIX systems, we have a faster splash app, that
  2316. can use libpng to render its splash, if we can
  2317. safely link to the system libpng then enabling this
  2318. is a good idea (ie. for Linux Distro packaging).
  2319. --enable-binfilter Enable legacy binary file formats filters build.
  2320. --disable-rpath Disable the use of relative paths in shared
  2321. libraries.
  2322. --disable-randr Disable RandR support in the vcl project.
  2323. --disable-randr-link Disable linking with libXrandr, instead dynamically
  2324. open it at runtime.
  2325. --disable-gstreamer Disable building the gstreamer avmedia backend.
  2326. --disable-neon Disable neon and the compilation of webdav binding.
  2327. --enable-build-unowinreg
  2328. Do not use the prebuilt unowinreg.dll. Build it
  2329. instead. The MinGW C++ compiler is needed on Linux.
  2330. Usage: --enable-build-unowinreg
  2331. --enable-verbose Increase build verbosity.
  2332. --disable-verbose Decrease build verbosity.
  2333. --enable-dependency-tracking
  2334. Do not reject slow dependency extractors.
  2335. --disable-dependency-tracking
  2336. Disables generation of dependency information.
  2337. Speed up one-time builds.
  2338. --enable-icecream Use the 'icecream' distributed compiling tool to
  2339. speedup the compilation. It defaults to
  2340. /opt/icecream for the location of the icecream
  2341. gcc/g++ wrappers, you can override that using
  2342. --with-gcc-home=/the/path switch.
  2343. --disable-zenity Do not display a build icon in the notification area
  2344. (on unix) during build.
  2345. --disable-nsplugin Do not build nsplugin extension for browser
  2346. embedding.
  2347. --disable-cups Do not build cups support.
  2348. --disable-ccache Do not try to use ccache automatically. By default,
  2349. we will try to detect if ccache is available; in
  2350. that case if CC/CXX are not yet set, and
  2351. --enable-icecream is not given, we attempt to use
  2352. ccache. --disable-ccache disables ccache completely.
  2353. --enable-cl-x64 Build a 64-bit LibreOffice using the Microsoft C/C++
  2354. x64 compiler. Incomplete and doesn't work, use only
  2355. if you are hacking on it.
  2356. --enable-extra-gallery Add extra gallery content.
  2357. --enable-extra-template Add extra template content.
  2358. --enable-extra-sample Add extra sample content.
  2359. --enable-extra-font Add extra font content.
  2360. --enable-oxygenoffice Download OxygenOffice branding and set custom
  2361. settings.
  2362. --enable-lomenubar Enable global menu support.
  2363. --enable-online-update Enable the online update service that will check for
  2364. new versions of LibreOffice. By default, it is on on
  2365. Windows and Mac, and off on Linux.
  2366. --enable-release-build Enable release build. See
  2367. http://wiki.documentfoundation.org/DevBuild
  2368. --enable-silent-msi Enable MSI with LIMITUI=1 (silent install).
  2369. --disable-postgresql-sdbc
  2370. Disable the build of the PostgreSQL-SDBC driver.
  2371. --disable-largefile omit support for large files
  2372. Optional Packages:
  2373. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  2374. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  2375. --with-android-ndk Specify location of the Android Native Development
  2376. Kit. Mandatory when building for Android.
  2377. --with-android-sdk Specify location of the Android SDK. Mandatory when
  2378. building for Android.
  2379. --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD.
  2380. Specify options for the configure script run for the *build* platform in a cross-compilation
  2381. --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD.
  2382. --with-external-tar=<TARFILE PATH>
  2383. Specify path to tarfiles manually.
  2384. --with-solver-and-workdir-root=<PATH>
  2385. Specify path that contains SOLARVER and WORKDIR
  2386. directories manually.
  2387. --with-linked-git=<OTHER_CLONE_DIR>
  2388. Specify another checkout's clonedir to re-use. This
  2389. makes use of git-new-workdir, and saves a lot of
  2390. diskspace when having multiple trees side-by-side.
  2391. --with-openldap Enables the use of the OpenLDAP LDAP SDK instead of
  2392. the Netscape/Mozilla one.
  2393. --with-vba-package-format
  2394. Specify package format for vba compatibility api.
  2395. Specifying "builtin" means the api component and
  2396. associated type library are part of the installation
  2397. set. Specifying "extn" creates an uno extension that
  2398. is part of the installation set (located in the
  2399. program directory) that MUST be optionally
  2400. registered using either the unopkg executeable or
  2401. the extension manager gui.
  2402. Note: "builtin" is the default, "extn" can cause
  2403. problems.
  2404. Usage: --with-vba-package-format="builtin" or
  2405. --with-vba-package-format="extn"
  2406. --with-theme="theme1 theme2..."
  2407. Choose which themes to include. By default those
  2408. themes with an '*' are included. Possible choices:
  2409. *crystal, *default (galaxy), *hicontrast, human,
  2410. industrial, *oxygen, *tango.
  2411. --without-helppack-integration It will not integrate the helppacks to the installer
  2412. of the product.
  2413. Please use this switch to use the online help or separate help packages.
  2414. --without-fonts LibreOffice includes some third-party fonts to
  2415. provide a reliable basis for help content,
  2416. templates, samples, etc. When these fonts are
  2417. already known to be available on the system then you
  2418. should use this option.
  2419. --without-ppds Removes Postscript Printer definition files from
  2420. LibreOffice installation set, for people building
  2421. for specific distributions where PPDs are known to
  2422. be already available (every recent distro with CUPS
  2423. backend).
  2424. --without-afms Removes bitmap font files from LibreOffice
  2425. installation set, for people building for specific
  2426. distributions where AFM files or TrueType Fonts are
  2427. known to be available.
  2428. --with-agfa-monotype-fonts
  2429. This switch should only be enabled for those who
  2430. have the right to use or distribute the proprietary
  2431. Agfa Monotype fonts.
  2432. --with-epm Decides which epm to use. Default is to use the one
  2433. from the system if one is built. When either this is
  2434. not there or you say =internal epm will be built.
  2435. --with-package-format Specify package format(s) for LibreOffice
  2436. installsets. Default is the "normal" one of the
  2437. OS/Distribution. Possible values: aix, bsd, deb,
  2438. inst, tardist, osx, pkg, rpm, setld, native,
  2439. portable, archive, dmg, installed, msi. Example:
  2440. --with-package-format="deb dmg"
  2441. --with-system-libs Use libraries already on system -- enables all
  2442. --with-system-* flags except mozilla.
  2443. --with-system-headers Use headers already on system -- enables all
  2444. --with-system-* flags for external packages whose
  2445. headers are the only entities used i.e.
  2446. boost/vigra/odbc/sane-header(s).
  2447. --without-system-jars When building with --with-system-libs, also the
  2448. needed jars are expected on the system. Use this to
  2449. disable that
  2450. --without-system-stdlibs
  2451. Bundle the used libstdc++/libgcc_s into the
  2452. installation set.
  2453. --with-system-cairo Use Cairo libraries already on system.
  2454. --with-system-graphite Use graphite library already installed on system.
  2455. --with-system-nss Use NSS/nspr libraries already on system.
  2456. --with-mozilla-version Choose which version of Mozilla to use while
  2457. building Mozilla. (default=1.7.5) Note that not all
  2458. versions are supported.
  2459. --with-mozilla-toolkit Choose which GUI toolkit to use while building
  2460. Mozilla components. (default=gtk2)
  2461. --without-myspell-dicts Removes myspell dictionaries from LibreOffice
  2462. installation set, for people building for specific
  2463. distributions where the myspell dictionaries are
  2464. installed from other sources.
  2465. --without-system-dicts Do not use dictionaries from system paths.
  2466. --with-external-dict-dir
  2467. Specify external dictionary dir.
  2468. --with-external-hyph-dir
  2469. Specify external hyphenation pattern dir.
  2470. --with-external-thes-dir
  2471. Specify external thesaurus dir.
  2472. --with-system-zlib Use zlib already on system.
  2473. --with-system-openssl Use OpenSSL already on system.
  2474. --with-system-jpeg Use jpeg already on system.
  2475. --with-system-clucene Use clucene already on system.
  2476. --with-system-expat Use expat already on system.
  2477. --with-system-libcmis Use libcmis already on system.
  2478. --with-system-lcms2 Use littlecms v2 already on system.
  2479. --with-system-libcdr Use libcdr already on system.
  2480. --with-system-libvisio Use libvisio already on system.
  2481. --with-system-libwpd Use libwpd already on system.
  2482. --with-system-libwps Use libwps already on system.
  2483. --with-system-libwpg Use libwpg already on system.
  2484. --with-system-libxml Use libxml/libxslt already on system.
  2485. --with-system-icu Use icu already on system.
  2486. --with-system-poppler Use system poppler. (only needed for pdfimport
  2487. extension)
  2488. --with-system-db Use Berkeley db already on system.
  2489. --with-system-apache-commons
  2490. Use Apache commons libraries already on system.
  2491. --with-system-mysql Use MySQL libraries already on system, for building
  2492. the MySQL Connector/LibreOffice extension. If the
  2493. the mysql_config executable is not in PATH, use
  2494. MYSQLCONFIG to point to it.
  2495. --with-libmysql-path Use Connector/C (libmysql) installation for building
  2496. the MySQL Connector/LibreOffice extension.
  2497. Usage: --with-libmysql-path=<absolute path to
  2498. your Connector/C installation>
  2499. --with-system-mysql-cppconn
  2500. Use MySQL C++ Connector libraries already on system.
  2501. --with-system-postgresql
  2502. Use PostgreSQL libraries already on system, for
  2503. building the PostgreSQL-SDBC driver. If pg_config is
  2504. not in PATH, use PGCONFIG to point to it.
  2505. --with-libpq-path Use this PostgreSQL C interface (libpq) installation
  2506. for building the PostgreSQL-SDBC extension.
  2507. Usage: --with-libpq-path=<absolute path to
  2508. your libq installation>
  2509. --with-system-hsqldb Use hsqldb already on system.
  2510. --with-hsqldb-jar=JARFILE
  2511. Specify path to jarfile manually.
  2512. --with-system-beanshell Use beanshell already on system.
  2513. --with-beanshell-jar=JARFILE
  2514. Specify path to jarfile manually.
  2515. --with-system-rhino Use rhino already on system.
  2516. --with-rhino-jar=JARFILE
  2517. Specify path to jarfile manually.
  2518. --with-commons-codec-jar=JARFILE
  2519. Specify path to jarfile manually.
  2520. --with-commons-lang-jar=JARFILE
  2521. Specify path to jarfile manually.
  2522. --with-commons-httpclient-jar=JARFILE
  2523. Specify path to jarfile manually.
  2524. --with-commons-logging-jar=JARFILE
  2525. Specify path to jarfile manually.
  2526. --with-system-servlet-api
  2527. Use servlet-api already on system.
  2528. --with-servlet-api-jar=JARFILE
  2529. Specify path to jarfile manually.
  2530. --with-system-jfreereport
  2531. Use JFreeReport already on system.
  2532. --with-sac-jar=JARFILE Specify path to jarfile manually.
  2533. --with-libxml-jar=JARFILE
  2534. Specify path to jarfile manually.
  2535. --with-flute-jar=JARFILE
  2536. Specify path to jarfile manually.
  2537. --with-jfreereport-jar=JARFILE
  2538. Specify path to jarfile manually.
  2539. --with-liblayout-jar=JARFILE
  2540. Specify path to jarfile manually.
  2541. --with-libloader-jar=JARFILE
  2542. Specify path to jarfile manually.
  2543. --with-libformula-jar=JARFILE
  2544. Specify path to jarfile manually.
  2545. --with-librepository-jar=JARFILE
  2546. Specify path to jarfile manually.
  2547. --with-libfonts-jar=JARFILE
  2548. Specify path to jarfile manually.
  2549. --with-libserializer-jar=JARFILE
  2550. Specify path to jarfile manually.
  2551. --with-libbase-jar=JARFILE
  2552. Specify path to jarfile manually.
  2553. --with-system-saxon Use saxon already on system.
  2554. --with-saxon-jar=JARFILE
  2555. Specify path to jarfile manually.
  2556. --with-system-odbc Use the odbc headers already on system.
  2557. --with-system-sane Use sane.h already on system.
  2558. --with-system-xextensions-headers
  2559. To build without system X11 extensions headers, use
  2560. --without-system-xextensions-headers. This is
  2561. possibly useful on legacy unix systems which ship
  2562. with the libs but without the headers.
  2563. --with-system-mesa-headers
  2564. Use Mesa headers already on system.
  2565. --with-system-curl Use curl already on system.
  2566. --with-system-boost Use boost already on system.
  2567. --with-system-mdds Use mdds already on system.
  2568. --with-system-vigra Use vigra already on system.
  2569. --with-system-neon Use neon already on system.
  2570. --with-system-hunspell Use libhunspell already on system.
  2571. --with-system-mythes Use mythes already on system.
  2572. --with-system-altlinuxhyph
  2573. Use ALTLinuxhyph already on system.
  2574. --with-system-lpsolve Use lpsolve already on system.
  2575. --with-system-libexttextcat
  2576. Use libexttextcat already on system.
  2577. --with-system-cppunit Use cppunit already on system.
  2578. --with-system-redland Use redland library already on system.
  2579. --with-system-mozilla Use Mozilla already on system. Note that some
  2580. components cannot be built against a contemporary
  2581. Mozilla. The flavour used can be specified by
  2582. --with-system-mozilla=<flavour>. Supported are:
  2583. libxul (default), xulrunner, firefox, seamonkey,
  2584. mozilla, iceape.
  2585. --with-system-mozilla-headers
  2586. Use mozilla headers provided by system instead of
  2587. bundled ones. Used in nsplugin
  2588. --with-system-gettext Use gettext runtime library already on system.
  2589. --with-system-libpng Use libpng already on system.
  2590. --with-linker-hash-style
  2591. Use linker with --hash-style=<style> when linking
  2592. shared objects. Possible values: "sysv", "gnu",
  2593. "both". The default value is "gnu" if supported on
  2594. the build system, and "sysv" otherwise.
  2595. --with-stlport Build the STLPort library for compatibility with old
  2596. extensions for architectures where STLPort used to
  2597. be used.
  2598. --with-jdk-home If you have installed JDK 1.3 or later on your
  2599. system please supply the path here. Note that this
  2600. is not the location of the java command but the
  2601. location of the entire distribution.
  2602. Usage: --with-jdk-home=<absolute path to JDK home>
  2603. --with-gxx-include-path If you want to override the autodetected g++ include
  2604. path.
  2605. Usage: --with-gxx-include-path=<absolute path to
  2606. g++ include dir>
  2607. --with-help Enable the build of help. To build without help, use
  2608. --without-help.
  2609. --with-java Specify the name of the Java interpreter command.
  2610. Typically "java" which is the default. To build
  2611. without support for Java components, applets,
  2612. accessibility or the XML filters written in Java,
  2613. use --without-java or --with-java=no.
  2614. Usage: --with-java==<java command>
  2615. --without-java
  2616. --with-java-target-version
  2617. Generate class files that will work on JVMs with the
  2618. specified version. For example, use
  2619. --with-java-target-version=1.4 to make sure that the
  2620. application will work with JVM 1.4 even when
  2621. compiled with JDK 1.5.
  2622. This option is ignored when you compile with gcj/gij.
  2623. Usage: --with-java-target-version=<jvm version>
  2624. --with-jvm-path Use a specific JVM search path at runtime.
  2625. Usage: --with-jvm-path=<absolute path to parent of jvm home>
  2626. e. g.: --with-jvm-path=/usr/lib/
  2627. to find JRE/JDK in /usr/lib/jvm/
  2628. --with-ant-home If you have installed Jakarta Ant on your system,
  2629. please supply the path here. Note that this is not
  2630. the location of the Ant binary but the location of
  2631. the entire distribution.
  2632. Usage: --with-ant-home=<absolute path to Ant home>
  2633. --with-junit Specifies the JUnit 4 jar file to use for
  2634. JUnit-based tests. --without-junit disables those
  2635. tests. Not relevant in the --without-java case.
  2636. Usage: --with-junit=<absolute path to JUnit 4 jar>
  2637. --with-perl-home If you have installed Perl 5 Distribution, on your
  2638. system, please supply the path here. Note that this
  2639. is not the location of the Perl binary but the
  2640. location of the entire distribution.
  2641. Usage: --with-perl-home=<abs. path to Perl 5 home>
  2642. --with-doxygen Specifies the doxygen executable to use when
  2643. generating ODK C/C++ documentation.
  2644. --without-doxygen disables generation of ODK C/C++
  2645. documentation. Not relevant in the --disable-odk
  2646. case.
  2647. Usage: --with-doxygen=<absolute path to doxygen executable>
  2648. --with-cl-home For Windows NT users, please supply the path for the
  2649. Microsoft C/C++ compiler. Note that this is not the
  2650. location of the compiler binary but the location of
  2651. the entire distribution.
  2652. Usage: --with-cl-home=<absolute path to Microsoft
  2653. C/C++ compiler home>
  2654. --with-mspdb-path For Microsoft C/C++ compiler users, please supply
  2655. the path pointing to the mspdb80.dll (if using
  2656. Visual Studio 2008) or mspdb100.dll (if using Visual
  2657. Studio 2010).
  2658. Usage: --with-mspdb-path=<path to
  2659. mspdb80.dll/mspdb100.dll>
  2660. --with-midl-path For Microsoft compiler users, please supply the path
  2661. pointing to the midl.exe.
  2662. Usage: --with-midl-path=<abs. path to midl.exe>
  2663. --with-csc-path For Windows builds, please supply the path pointing
  2664. to the csc.exe. Usually found automatically when
  2665. building on Windows.
  2666. Usage: --with-csc-path=<abs. path to csc.exe>
  2667. --with-dotnet-framework-home
  2668. For Microsoft compiler users, please supply the path
  2669. pointing to lib/mscoree.lib, usually something like:
  2670. "/cygdrive/c/Program Files/Windows
  2671. SDKs/Windows/v7.0"
  2672. Note that in most cases it will be automatically
  2673. found, though.
  2674. Usage: --with-dotnet-framework-home=<absolute path to .NET
  2675. Framework>
  2676. --with-windows-sdk-home For Windows builds, please supply the path to the
  2677. Windows SDK. Usually found automatically when
  2678. building on Windows.
  2679. Usage: --with-windows-sdk-home=<absolute path to Windows SDK>
  2680. --with-directx-home For Windows users, please supply the path to the
  2681. Microsoft DirectX SDK.
  2682. Usage: --with-directx-home=<absolute path to
  2683. Microsoft DirectX SDK>
  2684. --with-mozilla-build For Windows users, please supply the path to the
  2685. Mozilla build tools.
  2686. Usage: --with-mozilla-build=<absolute path to
  2687. Mozilla build tools>
  2688. At the moment of this writing, an installer for the
  2689. mozilla build tools can be obtained from http://ftp.
  2690. mozilla.org/pub/mozilla.org/mozilla/libraries/win32.
  2691. --with-lang Use this option to build LibreOffice with additional
  2692. language support. English (US) is always included by
  2693. default. Separate multiple languages with space. For
  2694. all languages, use --with-lang=ALL.
  2695. Usage: --with-lang="es sw tu cs sk"
  2696. --with-krb5 Enable MIT Kerberos 5 support in modules that
  2697. support it. By default automatically enabled on
  2698. platforms where a good system Kerberos 5 is
  2699. available.
  2700. --with-gssapi Enable GSSAPI support in modules that support it. By
  2701. default automatically enabled on platforms where a
  2702. good system GSSAPI is available.
  2703. --with-branding Use given path to retrieve all branding images.
  2704. Expects /path/intro.png ...
  2705. /path/backing_rtl_right.png to be there. Individual
  2706. images can be overridden via --with-intro-bitmap ...
  2707. --with-startcenter-rtl-left-bitmap switches.
  2708. Usage: --with-branding=/path/to/images
  2709. --with-intro-bitmap Prefer the specified intro bitmap over the
  2710. the default one.
  2711. Usage: --with-intro-bitmap=/path/my_ooo_intro.png
  2712. --with-intro-progressbar-color Set color of progress bar on intro screen.
  2713. Comma separated RGB values in decimal format.
  2714. Usage: --with-intro-progressbar-color=126,170,23
  2715. --with-intro-progressbar-size Set size of progress bar on intro screen.
  2716. Comma separated values in decimal format.
  2717. Usage: --with-intro-progressbar-size=319,10
  2718. --with-intro-progressbar-position Set position of progress bar on intro screen.
  2719. Comma separated values in decimal format.
  2720. Usage: --with-intro-progressbar-position=164,225
  2721. --with-intro-progressbar-frame-color Set color of progress bar frame on intro screen.
  2722. Comma separated RGB values in decimal format.
  2723. Usage: --with-intro-progressbar-frame-color=207,208,211
  2724. --with-flat-logo-svg Allows specification of the flat Logo SVG.
  2725. Usage: --with-flat-logo-svg=/path/my_flat_logo.svg
  2726. --with-about-background-svg Allows specification of the background SVG for the About dialog.
  2727. Usage: --with-about-background-svg=/path/my_libo_about.svg
  2728. --with-startcenter-left-bitmap Similarly to --with-intro-bitmap, this allows
  2729. specification of bitmap for the Start center.
  2730. Usage: --with-startcenter-left-bitmap=/path/my_backing_left.png
  2731. --with-startcenter-right-bitmap Similarly to --with-intro-bitmap, this allows
  2732. specification of bitmap for the Start center.
  2733. Usage: --with-startcenter-right-bitmap=/path/my_backing_right.png
  2734. --with-startcenter-rtl-left-bitmap Similarly to --with-intro-bitmap, this allows
  2735. specification of bitmap for the Start center.
  2736. Usage: --with-startcenter-rtl-left-bitmap=/path/my_backing_rtl_left.png
  2737. --with-startcenter-rtl-right-bitmap Similarly to --with-intro-bitmap, this allows
  2738. specification of bitmap for the Start center.
  2739. Usage: --with-startcenter-rtl-right-bitmap=/path/my_backing_rtl_right.png
  2740. --with-startcenter-space-bitmap Similarly to --with-intro-bitmap, this allows
  2741. specification of bitmap for the Start center.
  2742. Usage: --with-startcenter-space-bitmap=/path/my_backing_space.png
  2743. --with-vendor Set vendor of the build.
  2744. Usage: --with-vendor="John the Builder"
  2745. --with-unix-wrapper Redefines the name of the UNIX wrapper that will be
  2746. used in the desktop files and in the
  2747. desktop-integration RPMs.
  2748. Usage: --with-unix-wrapper=ooffice
  2749. --with-compat-oowrappers
  2750. Install oo* wrappers in parallel with lo* ones to
  2751. keep backward compatibility. Has effect only with
  2752. make distro-pack-install
  2753. --with-asm-home For Windows, please supply the path for the ml.exe
  2754. or ml64.exe assembler.
  2755. Usage: --with-asm-home=<path to assembler directory>
  2756. --with-os-version For FreeBSD users, use this option option to
  2757. override the detected OSVERSION.
  2758. Usage: --with-os-version=<OSVERSION>
  2759. --with-mingw-cross-compiler
  2760. Specify the MinGW cross-compiler to use.
  2761. Usage: --with-mingw-cross-compiler=<mingw32-g++ command>
  2762. When building on the ODK on Unix and building unowinreg.dll,
  2763. specify the MinGW C++ cross-compiler.
  2764. --with-build-version Allows the builder to add a custom version tag that
  2765. will appear in the Help/About box for QA purposes.
  2766. Usage: --with-build-version="Built by Jim"
  2767. --with-alloc Define which allocator to build with (choices are
  2768. oo, system, tcmalloc, jemalloc). Note that on
  2769. FreeBSD/NetBSD system==jemalloc
  2770. --with-sun-templates Integrate Sun template packages.
  2771. --with-num-cpus Number of build processes/cpus to use (number of
  2772. projects that will build at the same time).
  2773. Multi-process/multi-cpu builds can save a lot of
  2774. time on multi-cpu machines. Defaults to the number
  2775. of CPUs on the machine.
  2776. --with-max-jobs Maximum number of jobs that will be issued at the
  2777. same time per dmake or gbuild subproject. The real
  2778. number of the jobs is affected by the
  2779. --with-num-cpus too, it can get up to CPUS*max_jobs.
  2780. Defaults to 1, unless you configure
  2781. --enable-icecream - then to 10.
  2782. --with-macosx-sdk Use a specific SDK for building.
  2783. Usage: --with-macosx-sdk=<version>
  2784. e. g.: --with-macosx-sdk=10.4
  2785. there are 3 options to controle the MacOSX build:
  2786. --with-macosx-sdk (refered as 'sdl' below)
  2787. --with-macosx-version-min-required (refered as 'min' below)
  2788. --with-macosx-version-max-allowed (refered as 'max' below)
  2789. the connection between these value and the default they take is as follow:
  2790. ( ? means not specified on the command line, constraint: x <= y <= z)
  2791. ==========================================
  2792. command line || config result
  2793. ==========================================
  2794. min | max | sdk || min | max | sdk |
  2795. ? | ? | ? || 10.4 | 10.4 | 10.4 |
  2796. ? | ? | 10.x || 10.4 | 10.4 | 10.x |
  2797. ? | 10.x | ? || 10.4 | 10.x | 10.x |
  2798. ? | 10.x | 10.y || 10.4 | 10.x | 10.y |
  2799. 10.x | ? | ? || 10.x | 10.x | 10.x |
  2800. 10.x | ? | 10.y || 10.x | 10.x | 10.y |
  2801. 10.x | 10.y | ? || 10.x | 10.y | 10.y |
  2802. 10.x | 10.y | 10.z || 10.x | 10.y | 10.z |
  2803. see: http://developer.apple.com/library/mac/#technotes/tn2064/_index.html
  2804. for a detailled technical explanation of these variables
  2805. Note: MACOSX_DEPLOYMENT_TARGET will be set to the value of 'min'.
  2806. --with-macosx-version-min-required
  2807. set the minimum OS version needed to run the built
  2808. LibreOffice
  2809. Usage: --with-macosx-version-min-required=<version>
  2810. e. g.: --with-macos-version-min-required=10.4
  2811. see --with-macosx-sdk for more info
  2812. --with-macosx-version-max-allowed
  2813. set the maximum allowed OS version the LibreOffice
  2814. compilation can use APIs from
  2815. Usage: --with-macosx-version-max-allowed=<version>
  2816. e. g.: --with-macos-version-max-allowed=10.6
  2817. see --with-macosx-sdk for more info
  2818. --with-system-boost-for-build
  2819. Use boost already on system for build tools
  2820. (cross-compilation only).
  2821. --with-system-cppunit-for-build
  2822. Use cppunit already on system for build tools
  2823. (cross-compilation only).
  2824. --with-system-db-for-build
  2825. Use db already on system for build tools
  2826. (cross-compilation only).
  2827. --with-system-expat-for-build
  2828. Use expat already on system for build tools
  2829. (cross-compilation only).
  2830. --with-system-icu-for-build=yes/no/force
  2831. Use icu already on system for build tools
  2832. (cross-compilation only).
  2833. --with-system-libxml-for-build
  2834. Use libxml/libxslt already on system for build tools
  2835. (cross-compilation only).
  2836. --with-x use the X Window System
  2837. Some influential environment variables:
  2838. CC C compiler command
  2839. CFLAGS C compiler flags
  2840. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  2841. nonstandard directory <lib dir>
  2842. LIBS libraries to pass to the linker, e.g. -l<library>
  2843. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  2844. you have headers in a nonstandard directory <include dir>
  2845. CPP C preprocessor
  2846. PKG_CONFIG path to pkg-config utility
  2847. PKG_CONFIG_PATH
  2848. directories to add to pkg-config's search path
  2849. PKG_CONFIG_LIBDIR
  2850. path overriding pkg-config's built-in search path
  2851. FONTCONFIG_CFLAGS
  2852. C compiler flags for FONTCONFIG, overriding pkg-config
  2853. FONTCONFIG_LIBS
  2854. linker flags for FONTCONFIG, overriding pkg-config
  2855. CXX C++ compiler command
  2856. CXXFLAGS C++ compiler flags
  2857. CXXCPP C++ preprocessor
  2858. MINIZIP_CFLAGS
  2859. C compiler flags for MINIZIP, overriding pkg-config
  2860. MINIZIP_LIBS
  2861. linker flags for MINIZIP, overriding pkg-config
  2862. CLUCENE_CFLAGS
  2863. C compiler flags for CLUCENE, overriding pkg-config
  2864. CLUCENE_LIBS
  2865. linker flags for CLUCENE, overriding pkg-config
  2866. CDR_CFLAGS C compiler flags for CDR, overriding pkg-config
  2867. CDR_LIBS linker flags for CDR, overriding pkg-config
  2868. VISIO_CFLAGS
  2869. C compiler flags for VISIO, overriding pkg-config
  2870. VISIO_LIBS linker flags for VISIO, overriding pkg-config
  2871. LIBCMIS_CFLAGS
  2872. C compiler flags for LIBCMIS, overriding pkg-config
  2873. LIBCMIS_LIBS
  2874. linker flags for LIBCMIS, overriding pkg-config
  2875. WPD_CFLAGS C compiler flags for WPD, overriding pkg-config
  2876. WPD_LIBS linker flags for WPD, overriding pkg-config
  2877. LCMS2_CFLAGS
  2878. C compiler flags for LCMS2, overriding pkg-config
  2879. LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
  2880. CPPUNIT_CFLAGS
  2881. C compiler flags for CPPUNIT, overriding pkg-config
  2882. CPPUNIT_LIBS
  2883. linker flags for CPPUNIT, overriding pkg-config
  2884. FREETYPE_CFLAGS
  2885. C compiler flags for FREETYPE, overriding pkg-config
  2886. FREETYPE_LIBS
  2887. linker flags for FREETYPE, overriding pkg-config
  2888. WPS_CFLAGS C compiler flags for WPS, overriding pkg-config
  2889. WPS_LIBS linker flags for WPS, overriding pkg-config
  2890. WPG_CFLAGS C compiler flags for WPG, overriding pkg-config
  2891. WPG_LIBS linker flags for WPG, overriding pkg-config
  2892. LIBXSLT_CFLAGS
  2893. C compiler flags for LIBXSLT, overriding pkg-config
  2894. LIBXSLT_LIBS
  2895. linker flags for LIBXSLT, overriding pkg-config
  2896. LIBXML_CFLAGS
  2897. C compiler flags for LIBXML, overriding pkg-config
  2898. LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
  2899. CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
  2900. CURL_LIBS linker flags for CURL, overriding pkg-config
  2901. MOZILLAXPCOM_CFLAGS
  2902. C compiler flags for MOZILLAXPCOM, overriding pkg-config
  2903. MOZILLAXPCOM_LIBS
  2904. linker flags for MOZILLAXPCOM, overriding pkg-config
  2905. MOZLIBREQ_CFLAGS
  2906. C compiler flags for MOZLIBREQ, overriding pkg-config
  2907. MOZLIBREQ_LIBS
  2908. linker flags for MOZLIBREQ, overriding pkg-config
  2909. NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
  2910. NSS_LIBS linker flags for NSS, overriding pkg-config
  2911. MOZILLA_HEADERS_CFLAGS
  2912. C compiler flags for MOZILLA_HEADERS, overriding pkg-config
  2913. MOZILLA_HEADERS_LIBS
  2914. linker flags for MOZILLA_HEADERS, overriding pkg-config
  2915. GRAPHITE_CFLAGS
  2916. C compiler flags for GRAPHITE, overriding pkg-config
  2917. GRAPHITE_LIBS
  2918. linker flags for GRAPHITE, overriding pkg-config
  2919. XMKMF Path to xmkmf, Makefile generator for X Window System
  2920. XRANDR_CFLAGS
  2921. C compiler flags for XRANDR, overriding pkg-config
  2922. XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
  2923. NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
  2924. NEON_LIBS linker flags for NEON, overriding pkg-config
  2925. OPENSSL_CFLAGS
  2926. C compiler flags for OPENSSL, overriding pkg-config
  2927. OPENSSL_LIBS
  2928. linker flags for OPENSSL, overriding pkg-config
  2929. REDLAND_CFLAGS
  2930. C compiler flags for REDLAND, overriding pkg-config
  2931. REDLAND_LIBS
  2932. linker flags for REDLAND, overriding pkg-config
  2933. HUNSPELL_CFLAGS
  2934. C compiler flags for HUNSPELL, overriding pkg-config
  2935. HUNSPELL_LIBS
  2936. linker flags for HUNSPELL, overriding pkg-config
  2937. MYTHES_CFLAGS
  2938. C compiler flags for MYTHES, overriding pkg-config
  2939. MYTHES_LIBS linker flags for MYTHES, overriding pkg-config
  2940. LIBEXTTEXTCAT_CFLAGS
  2941. C compiler flags for LIBEXTTEXTCAT, overriding pkg-config
  2942. LIBEXTTEXTCAT_LIBS
  2943. linker flags for LIBEXTTEXTCAT, overriding pkg-config
  2944. GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
  2945. GTK3_LIBS linker flags for GTK3, overriding pkg-config
  2946. GCONF_CFLAGS
  2947. C compiler flags for GCONF, overriding pkg-config
  2948. GCONF_LIBS linker flags for GCONF, overriding pkg-config
  2949. GNOMEVFS_CFLAGS
  2950. C compiler flags for GNOMEVFS, overriding pkg-config
  2951. GNOMEVFS_LIBS
  2952. linker flags for GNOMEVFS, overriding pkg-config
  2953. GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
  2954. GTK_LIBS linker flags for GTK, overriding pkg-config
  2955. GTHREAD_CFLAGS
  2956. C compiler flags for GTHREAD, overriding pkg-config
  2957. GTHREAD_LIBS
  2958. linker flags for GTHREAD, overriding pkg-config
  2959. GTK210_CFLAGS
  2960. C compiler flags for GTK210, overriding pkg-config
  2961. GTK210_LIBS linker flags for GTK210, overriding pkg-config
  2962. GTK_PRINT_CFLAGS
  2963. C compiler flags for GTK_PRINT, overriding pkg-config
  2964. GTK_PRINT_LIBS
  2965. linker flags for GTK_PRINT, overriding pkg-config
  2966. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  2967. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  2968. GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
  2969. GIO_LIBS linker flags for GIO, overriding pkg-config
  2970. LIBPNG_CFLAGS
  2971. C compiler flags for LIBPNG, overriding pkg-config
  2972. LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  2973. GSTREAMER_CFLAGS
  2974. C compiler flags for GSTREAMER, overriding pkg-config
  2975. GSTREAMER_LIBS
  2976. linker flags for GSTREAMER, overriding pkg-config
  2977. POPPLER_CFLAGS
  2978. C compiler flags for POPPLER, overriding pkg-config
  2979. POPPLER_LIBS
  2980. linker flags for POPPLER, overriding pkg-config
  2981. KDE_GLIB_CFLAGS
  2982. C compiler flags for KDE_GLIB, overriding pkg-config
  2983. KDE_GLIB_LIBS
  2984. linker flags for KDE_GLIB, overriding pkg-config
  2985. GOBJECT_CFLAGS
  2986. C compiler flags for GOBJECT, overriding pkg-config
  2987. GOBJECT_LIBS
  2988. linker flags for GOBJECT, overriding pkg-config
  2989. DBUSMENUGTK_CFLAGS
  2990. C compiler flags for DBUSMENUGTK, overriding pkg-config
  2991. DBUSMENUGTK_LIBS
  2992. linker flags for DBUSMENUGTK, overriding pkg-config
  2993. LIBRSVG_CFLAGS
  2994. C compiler flags for LIBRSVG, overriding pkg-config
  2995. LIBRSVG_LIBS
  2996. linker flags for LIBRSVG, overriding pkg-config
  2997. CAIRO_CFLAGS
  2998. C compiler flags for CAIRO, overriding pkg-config
  2999. CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
  3000. Use these variables to override the choices made by `configure' or to help
  3001. it to find libraries and programs with nonstandard names/locations.
  3002. Report bugs to the package provider.
  3003. LibreOffice home page: <http://documentfoundation.org/>.
  3004. _ACEOF
  3005. ac_status=$?
  3006. fi
  3007. if test "$ac_init_help" = "recursive"; then
  3008. # If there are subdirs, report their specific --help.
  3009. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  3010. test -d "$ac_dir" ||
  3011. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  3012. continue
  3013. ac_builddir=.
  3014. case "$ac_dir" in
  3015. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3016. *)
  3017. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  3018. # A ".." for each directory in $ac_dir_suffix.
  3019. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  3020. case $ac_top_builddir_sub in
  3021. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3022. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3023. esac ;;
  3024. esac
  3025. ac_abs_top_builddir=$ac_pwd
  3026. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  3027. # for backward compatibility:
  3028. ac_top_builddir=$ac_top_build_prefix
  3029. case $srcdir in
  3030. .) # We are building in place.
  3031. ac_srcdir=.
  3032. ac_top_srcdir=$ac_top_builddir_sub
  3033. ac_abs_top_srcdir=$ac_pwd ;;
  3034. [\\/]* | ?:[\\/]* ) # Absolute name.
  3035. ac_srcdir=$srcdir$ac_dir_suffix;
  3036. ac_top_srcdir=$srcdir
  3037. ac_abs_top_srcdir=$srcdir ;;
  3038. *) # Relative name.
  3039. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  3040. ac_top_srcdir=$ac_top_build_prefix$srcdir
  3041. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  3042. esac
  3043. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  3044. cd "$ac_dir" || { ac_status=$?; continue; }
  3045. # Check for guested configure.
  3046. if test -f "$ac_srcdir/configure.gnu"; then
  3047. echo &&
  3048. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  3049. elif test -f "$ac_srcdir/configure"; then
  3050. echo &&
  3051. $SHELL "$ac_srcdir/configure" --help=recursive
  3052. else
  3053. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  3054. fi || ac_status=$?
  3055. cd "$ac_pwd" || { ac_status=$?; break; }
  3056. done
  3057. fi
  3058. test -n "$ac_init_help" && exit $ac_status
  3059. if $ac_init_version; then
  3060. cat <<\_ACEOF
  3061. LibreOffice configure 3.6
  3062. generated by GNU Autoconf 2.68
  3063. Copyright (C) 2010 Free Software Foundation, Inc.
  3064. This configure script is free software; the Free Software Foundation
  3065. gives unlimited permission to copy, distribute and modify it.
  3066. _ACEOF
  3067. exit
  3068. fi
  3069. ## ------------------------ ##
  3070. ## Autoconf initialization. ##
  3071. ## ------------------------ ##
  3072. # ac_fn_c_try_compile LINENO
  3073. # --------------------------
  3074. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  3075. ac_fn_c_try_compile ()
  3076. {
  3077. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3078. rm -f conftest.$ac_objext
  3079. if { { ac_try="$ac_compile"
  3080. case "(($ac_try" in
  3081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3082. *) ac_try_echo=$ac_try;;
  3083. esac
  3084. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3085. $as_echo "$ac_try_echo"; } >&5
  3086. (eval "$ac_compile") 2>conftest.err
  3087. ac_status=$?
  3088. if test -s conftest.err; then
  3089. grep -v '^ *+' conftest.err >conftest.er1
  3090. cat conftest.er1 >&5
  3091. mv -f conftest.er1 conftest.err
  3092. fi
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3094. test $ac_status = 0; } && {
  3095. test -z "$ac_c_werror_flag" ||
  3096. test ! -s conftest.err
  3097. } && test -s conftest.$ac_objext; then :
  3098. ac_retval=0
  3099. else
  3100. $as_echo "$as_me: failed program was:" >&5
  3101. sed 's/^/| /' conftest.$ac_ext >&5
  3102. ac_retval=1
  3103. fi
  3104. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3105. as_fn_set_status $ac_retval
  3106. } # ac_fn_c_try_compile
  3107. # ac_fn_c_try_link LINENO
  3108. # -----------------------
  3109. # Try to link conftest.$ac_ext, and return whether this succeeded.
  3110. ac_fn_c_try_link ()
  3111. {
  3112. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3113. rm -f conftest.$ac_objext conftest$ac_exeext
  3114. if { { ac_try="$ac_link"
  3115. case "(($ac_try" in
  3116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3117. *) ac_try_echo=$ac_try;;
  3118. esac
  3119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3120. $as_echo "$ac_try_echo"; } >&5
  3121. (eval "$ac_link") 2>conftest.err
  3122. ac_status=$?
  3123. if test -s conftest.err; then
  3124. grep -v '^ *+' conftest.err >conftest.er1
  3125. cat conftest.er1 >&5
  3126. mv -f conftest.er1 conftest.err
  3127. fi
  3128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3129. test $ac_status = 0; } && {
  3130. test -z "$ac_c_werror_flag" ||
  3131. test ! -s conftest.err
  3132. } && test -s conftest$ac_exeext && {
  3133. test "$cross_compiling" = yes ||
  3134. $as_test_x conftest$ac_exeext
  3135. }; then :
  3136. ac_retval=0
  3137. else
  3138. $as_echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. ac_retval=1
  3141. fi
  3142. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  3143. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  3144. # interfere with the next link command; also delete a directory that is
  3145. # left behind by Apple's compiler. We do this before executing the actions.
  3146. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3147. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3148. as_fn_set_status $ac_retval
  3149. } # ac_fn_c_try_link
  3150. # ac_fn_c_try_cpp LINENO
  3151. # ----------------------
  3152. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  3153. ac_fn_c_try_cpp ()
  3154. {
  3155. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3156. if { { ac_try="$ac_cpp conftest.$ac_ext"
  3157. case "(($ac_try" in
  3158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3159. *) ac_try_echo=$ac_try;;
  3160. esac
  3161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3162. $as_echo "$ac_try_echo"; } >&5
  3163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  3164. ac_status=$?
  3165. if test -s conftest.err; then
  3166. grep -v '^ *+' conftest.err >conftest.er1
  3167. cat conftest.er1 >&5
  3168. mv -f conftest.er1 conftest.err
  3169. fi
  3170. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3171. test $ac_status = 0; } > conftest.i && {
  3172. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3173. test ! -s conftest.err
  3174. }; then :
  3175. ac_retval=0
  3176. else
  3177. $as_echo "$as_me: failed program was:" >&5
  3178. sed 's/^/| /' conftest.$ac_ext >&5
  3179. ac_retval=1
  3180. fi
  3181. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3182. as_fn_set_status $ac_retval
  3183. } # ac_fn_c_try_cpp
  3184. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  3185. # -------------------------------------------------------
  3186. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  3187. # the include files in INCLUDES and setting the cache variable VAR
  3188. # accordingly.
  3189. ac_fn_c_check_header_mongrel ()
  3190. {
  3191. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3192. if eval \${$3+:} false; then :
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3194. $as_echo_n "checking for $2... " >&6; }
  3195. if eval \${$3+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. fi
  3198. eval ac_res=\$$3
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3200. $as_echo "$ac_res" >&6; }
  3201. else
  3202. # Is the header compilable?
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  3204. $as_echo_n "checking $2 usability... " >&6; }
  3205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3206. /* end confdefs.h. */
  3207. $4
  3208. #include <$2>
  3209. _ACEOF
  3210. if ac_fn_c_try_compile "$LINENO"; then :
  3211. ac_header_compiler=yes
  3212. else
  3213. ac_header_compiler=no
  3214. fi
  3215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  3217. $as_echo "$ac_header_compiler" >&6; }
  3218. # Is the header present?
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  3220. $as_echo_n "checking $2 presence... " >&6; }
  3221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3222. /* end confdefs.h. */
  3223. #include <$2>
  3224. _ACEOF
  3225. if ac_fn_c_try_cpp "$LINENO"; then :
  3226. ac_header_preproc=yes
  3227. else
  3228. ac_header_preproc=no
  3229. fi
  3230. rm -f conftest.err conftest.i conftest.$ac_ext
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  3232. $as_echo "$ac_header_preproc" >&6; }
  3233. # So? What about this header?
  3234. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  3235. yes:no: )
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  3237. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  3239. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  3240. ;;
  3241. no:yes:* )
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  3243. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  3245. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  3247. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  3249. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  3251. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  3252. ;;
  3253. esac
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3255. $as_echo_n "checking for $2... " >&6; }
  3256. if eval \${$3+:} false; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  3259. eval "$3=\$ac_header_compiler"
  3260. fi
  3261. eval ac_res=\$$3
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3263. $as_echo "$ac_res" >&6; }
  3264. fi
  3265. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3266. } # ac_fn_c_check_header_mongrel
  3267. # ac_fn_c_try_run LINENO
  3268. # ----------------------
  3269. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  3270. # that executables *can* be run.
  3271. ac_fn_c_try_run ()
  3272. {
  3273. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3274. if { { ac_try="$ac_link"
  3275. case "(($ac_try" in
  3276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3277. *) ac_try_echo=$ac_try;;
  3278. esac
  3279. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3280. $as_echo "$ac_try_echo"; } >&5
  3281. (eval "$ac_link") 2>&5
  3282. ac_status=$?
  3283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3284. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  3285. { { case "(($ac_try" in
  3286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3287. *) ac_try_echo=$ac_try;;
  3288. esac
  3289. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3290. $as_echo "$ac_try_echo"; } >&5
  3291. (eval "$ac_try") 2>&5
  3292. ac_status=$?
  3293. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3294. test $ac_status = 0; }; }; then :
  3295. ac_retval=0
  3296. else
  3297. $as_echo "$as_me: program exited with status $ac_status" >&5
  3298. $as_echo "$as_me: failed program was:" >&5
  3299. sed 's/^/| /' conftest.$ac_ext >&5
  3300. ac_retval=$ac_status
  3301. fi
  3302. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3303. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3304. as_fn_set_status $ac_retval
  3305. } # ac_fn_c_try_run
  3306. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  3307. # -------------------------------------------------------
  3308. # Tests whether HEADER exists and can be compiled using the include files in
  3309. # INCLUDES, setting the cache variable VAR accordingly.
  3310. ac_fn_c_check_header_compile ()
  3311. {
  3312. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3314. $as_echo_n "checking for $2... " >&6; }
  3315. if eval \${$3+:} false; then :
  3316. $as_echo_n "(cached) " >&6
  3317. else
  3318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3319. /* end confdefs.h. */
  3320. $4
  3321. #include <$2>
  3322. _ACEOF
  3323. if ac_fn_c_try_compile "$LINENO"; then :
  3324. eval "$3=yes"
  3325. else
  3326. eval "$3=no"
  3327. fi
  3328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3329. fi
  3330. eval ac_res=\$$3
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3332. $as_echo "$ac_res" >&6; }
  3333. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3334. } # ac_fn_c_check_header_compile
  3335. # ac_fn_cxx_try_compile LINENO
  3336. # ----------------------------
  3337. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  3338. ac_fn_cxx_try_compile ()
  3339. {
  3340. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3341. rm -f conftest.$ac_objext
  3342. if { { ac_try="$ac_compile"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3348. $as_echo "$ac_try_echo"; } >&5
  3349. (eval "$ac_compile") 2>conftest.err
  3350. ac_status=$?
  3351. if test -s conftest.err; then
  3352. grep -v '^ *+' conftest.err >conftest.er1
  3353. cat conftest.er1 >&5
  3354. mv -f conftest.er1 conftest.err
  3355. fi
  3356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3357. test $ac_status = 0; } && {
  3358. test -z "$ac_cxx_werror_flag" ||
  3359. test ! -s conftest.err
  3360. } && test -s conftest.$ac_objext; then :
  3361. ac_retval=0
  3362. else
  3363. $as_echo "$as_me: failed program was:" >&5
  3364. sed 's/^/| /' conftest.$ac_ext >&5
  3365. ac_retval=1
  3366. fi
  3367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3368. as_fn_set_status $ac_retval
  3369. } # ac_fn_cxx_try_compile
  3370. # ac_fn_cxx_try_cpp LINENO
  3371. # ------------------------
  3372. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  3373. ac_fn_cxx_try_cpp ()
  3374. {
  3375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3376. if { { ac_try="$ac_cpp conftest.$ac_ext"
  3377. case "(($ac_try" in
  3378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3379. *) ac_try_echo=$ac_try;;
  3380. esac
  3381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3382. $as_echo "$ac_try_echo"; } >&5
  3383. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  3384. ac_status=$?
  3385. if test -s conftest.err; then
  3386. grep -v '^ *+' conftest.err >conftest.er1
  3387. cat conftest.er1 >&5
  3388. mv -f conftest.er1 conftest.err
  3389. fi
  3390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3391. test $ac_status = 0; } > conftest.i && {
  3392. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  3393. test ! -s conftest.err
  3394. }; then :
  3395. ac_retval=0
  3396. else
  3397. $as_echo "$as_me: failed program was:" >&5
  3398. sed 's/^/| /' conftest.$ac_ext >&5
  3399. ac_retval=1
  3400. fi
  3401. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3402. as_fn_set_status $ac_retval
  3403. } # ac_fn_cxx_try_cpp
  3404. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  3405. # --------------------------------------------
  3406. # Tries to find the compile-time value of EXPR in a program that includes
  3407. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  3408. # computed
  3409. ac_fn_c_compute_int ()
  3410. {
  3411. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3412. if test "$cross_compiling" = yes; then
  3413. # Depending upon the size, compute the lo and hi bounds.
  3414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3415. /* end confdefs.h. */
  3416. $4
  3417. int
  3418. main ()
  3419. {
  3420. static int test_array [1 - 2 * !(($2) >= 0)];
  3421. test_array [0] = 0
  3422. ;
  3423. return 0;
  3424. }
  3425. _ACEOF
  3426. if ac_fn_c_try_compile "$LINENO"; then :
  3427. ac_lo=0 ac_mid=0
  3428. while :; do
  3429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3430. /* end confdefs.h. */
  3431. $4
  3432. int
  3433. main ()
  3434. {
  3435. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  3436. test_array [0] = 0
  3437. ;
  3438. return 0;
  3439. }
  3440. _ACEOF
  3441. if ac_fn_c_try_compile "$LINENO"; then :
  3442. ac_hi=$ac_mid; break
  3443. else
  3444. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  3445. if test $ac_lo -le $ac_mid; then
  3446. ac_lo= ac_hi=
  3447. break
  3448. fi
  3449. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  3450. fi
  3451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3452. done
  3453. else
  3454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3455. /* end confdefs.h. */
  3456. $4
  3457. int
  3458. main ()
  3459. {
  3460. static int test_array [1 - 2 * !(($2) < 0)];
  3461. test_array [0] = 0
  3462. ;
  3463. return 0;
  3464. }
  3465. _ACEOF
  3466. if ac_fn_c_try_compile "$LINENO"; then :
  3467. ac_hi=-1 ac_mid=-1
  3468. while :; do
  3469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3470. /* end confdefs.h. */
  3471. $4
  3472. int
  3473. main ()
  3474. {
  3475. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  3476. test_array [0] = 0
  3477. ;
  3478. return 0;
  3479. }
  3480. _ACEOF
  3481. if ac_fn_c_try_compile "$LINENO"; then :
  3482. ac_lo=$ac_mid; break
  3483. else
  3484. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  3485. if test $ac_mid -le $ac_hi; then
  3486. ac_lo= ac_hi=
  3487. break
  3488. fi
  3489. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  3490. fi
  3491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3492. done
  3493. else
  3494. ac_lo= ac_hi=
  3495. fi
  3496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3497. fi
  3498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3499. # Binary search between lo and hi bounds.
  3500. while test "x$ac_lo" != "x$ac_hi"; do
  3501. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  3502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3503. /* end confdefs.h. */
  3504. $4
  3505. int
  3506. main ()
  3507. {
  3508. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  3509. test_array [0] = 0
  3510. ;
  3511. return 0;
  3512. }
  3513. _ACEOF
  3514. if ac_fn_c_try_compile "$LINENO"; then :
  3515. ac_hi=$ac_mid
  3516. else
  3517. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  3518. fi
  3519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3520. done
  3521. case $ac_lo in #((
  3522. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  3523. '') ac_retval=1 ;;
  3524. esac
  3525. else
  3526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3527. /* end confdefs.h. */
  3528. $4
  3529. static long int longval () { return $2; }
  3530. static unsigned long int ulongval () { return $2; }
  3531. #include <stdio.h>
  3532. #include <stdlib.h>
  3533. int
  3534. main ()
  3535. {
  3536. FILE *f = fopen ("conftest.val", "w");
  3537. if (! f)
  3538. return 1;
  3539. if (($2) < 0)
  3540. {
  3541. long int i = longval ();
  3542. if (i != ($2))
  3543. return 1;
  3544. fprintf (f, "%ld", i);
  3545. }
  3546. else
  3547. {
  3548. unsigned long int i = ulongval ();
  3549. if (i != ($2))
  3550. return 1;
  3551. fprintf (f, "%lu", i);
  3552. }
  3553. /* Do not output a trailing newline, as this causes \r\n confusion
  3554. on some platforms. */
  3555. return ferror (f) || fclose (f) != 0;
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. if ac_fn_c_try_run "$LINENO"; then :
  3561. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  3562. else
  3563. ac_retval=1
  3564. fi
  3565. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3566. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3567. rm -f conftest.val
  3568. fi
  3569. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3570. as_fn_set_status $ac_retval
  3571. } # ac_fn_c_compute_int
  3572. # ac_fn_cxx_try_link LINENO
  3573. # -------------------------
  3574. # Try to link conftest.$ac_ext, and return whether this succeeded.
  3575. ac_fn_cxx_try_link ()
  3576. {
  3577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3578. rm -f conftest.$ac_objext conftest$ac_exeext
  3579. if { { ac_try="$ac_link"
  3580. case "(($ac_try" in
  3581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3582. *) ac_try_echo=$ac_try;;
  3583. esac
  3584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3585. $as_echo "$ac_try_echo"; } >&5
  3586. (eval "$ac_link") 2>conftest.err
  3587. ac_status=$?
  3588. if test -s conftest.err; then
  3589. grep -v '^ *+' conftest.err >conftest.er1
  3590. cat conftest.er1 >&5
  3591. mv -f conftest.er1 conftest.err
  3592. fi
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3594. test $ac_status = 0; } && {
  3595. test -z "$ac_cxx_werror_flag" ||
  3596. test ! -s conftest.err
  3597. } && test -s conftest$ac_exeext && {
  3598. test "$cross_compiling" = yes ||
  3599. $as_test_x conftest$ac_exeext
  3600. }; then :
  3601. ac_retval=0
  3602. else
  3603. $as_echo "$as_me: failed program was:" >&5
  3604. sed 's/^/| /' conftest.$ac_ext >&5
  3605. ac_retval=1
  3606. fi
  3607. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  3608. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  3609. # interfere with the next link command; also delete a directory that is
  3610. # left behind by Apple's compiler. We do this before executing the actions.
  3611. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3613. as_fn_set_status $ac_retval
  3614. } # ac_fn_cxx_try_link
  3615. # ac_fn_c_check_func LINENO FUNC VAR
  3616. # ----------------------------------
  3617. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  3618. ac_fn_c_check_func ()
  3619. {
  3620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3622. $as_echo_n "checking for $2... " >&6; }
  3623. if eval \${$3+:} false; then :
  3624. $as_echo_n "(cached) " >&6
  3625. else
  3626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3627. /* end confdefs.h. */
  3628. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  3629. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3630. #define $2 innocuous_$2
  3631. /* System header to define __stub macros and hopefully few prototypes,
  3632. which can conflict with char $2 (); below.
  3633. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3634. <limits.h> exists even on freestanding compilers. */
  3635. #ifdef __STDC__
  3636. # include <limits.h>
  3637. #else
  3638. # include <assert.h>
  3639. #endif
  3640. #undef $2
  3641. /* Override any GCC internal prototype to avoid an error.
  3642. Use char because int might match the return type of a GCC
  3643. builtin and then its argument prototype would still apply. */
  3644. #ifdef __cplusplus
  3645. extern "C"
  3646. #endif
  3647. char $2 ();
  3648. /* The GNU C library defines this for functions which it implements
  3649. to always fail with ENOSYS. Some functions are actually named
  3650. something starting with __ and the normal name is an alias. */
  3651. #if defined __stub_$2 || defined __stub___$2
  3652. choke me
  3653. #endif
  3654. int
  3655. main ()
  3656. {
  3657. return $2 ();
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. if ac_fn_c_try_link "$LINENO"; then :
  3663. eval "$3=yes"
  3664. else
  3665. eval "$3=no"
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext \
  3668. conftest$ac_exeext conftest.$ac_ext
  3669. fi
  3670. eval ac_res=\$$3
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3672. $as_echo "$ac_res" >&6; }
  3673. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3674. } # ac_fn_c_check_func
  3675. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  3676. # ---------------------------------------------------------
  3677. # Tests whether HEADER exists and can be compiled using the include files in
  3678. # INCLUDES, setting the cache variable VAR accordingly.
  3679. ac_fn_cxx_check_header_compile ()
  3680. {
  3681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3683. $as_echo_n "checking for $2... " >&6; }
  3684. if eval \${$3+:} false; then :
  3685. $as_echo_n "(cached) " >&6
  3686. else
  3687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3688. /* end confdefs.h. */
  3689. $4
  3690. #include <$2>
  3691. _ACEOF
  3692. if ac_fn_cxx_try_compile "$LINENO"; then :
  3693. eval "$3=yes"
  3694. else
  3695. eval "$3=no"
  3696. fi
  3697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3698. fi
  3699. eval ac_res=\$$3
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3701. $as_echo "$ac_res" >&6; }
  3702. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3703. } # ac_fn_cxx_check_header_compile
  3704. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  3705. # ---------------------------------------------------------
  3706. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  3707. # the include files in INCLUDES and setting the cache variable VAR
  3708. # accordingly.
  3709. ac_fn_cxx_check_header_mongrel ()
  3710. {
  3711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3712. if eval \${$3+:} false; then :
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3714. $as_echo_n "checking for $2... " >&6; }
  3715. if eval \${$3+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. fi
  3718. eval ac_res=\$$3
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3720. $as_echo "$ac_res" >&6; }
  3721. else
  3722. # Is the header compilable?
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  3724. $as_echo_n "checking $2 usability... " >&6; }
  3725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3726. /* end confdefs.h. */
  3727. $4
  3728. #include <$2>
  3729. _ACEOF
  3730. if ac_fn_cxx_try_compile "$LINENO"; then :
  3731. ac_header_compiler=yes
  3732. else
  3733. ac_header_compiler=no
  3734. fi
  3735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  3737. $as_echo "$ac_header_compiler" >&6; }
  3738. # Is the header present?
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  3740. $as_echo_n "checking $2 presence... " >&6; }
  3741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3742. /* end confdefs.h. */
  3743. #include <$2>
  3744. _ACEOF
  3745. if ac_fn_cxx_try_cpp "$LINENO"; then :
  3746. ac_header_preproc=yes
  3747. else
  3748. ac_header_preproc=no
  3749. fi
  3750. rm -f conftest.err conftest.i conftest.$ac_ext
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  3752. $as_echo "$ac_header_preproc" >&6; }
  3753. # So? What about this header?
  3754. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  3755. yes:no: )
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  3757. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  3759. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  3760. ;;
  3761. no:yes:* )
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  3763. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  3765. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  3767. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  3769. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  3771. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  3772. ;;
  3773. esac
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  3775. $as_echo_n "checking for $2... " >&6; }
  3776. if eval \${$3+:} false; then :
  3777. $as_echo_n "(cached) " >&6
  3778. else
  3779. eval "$3=\$ac_header_compiler"
  3780. fi
  3781. eval ac_res=\$$3
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3783. $as_echo "$ac_res" >&6; }
  3784. fi
  3785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3786. } # ac_fn_cxx_check_header_mongrel
  3787. # ac_fn_cxx_try_run LINENO
  3788. # ------------------------
  3789. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  3790. # that executables *can* be run.
  3791. ac_fn_cxx_try_run ()
  3792. {
  3793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3794. if { { ac_try="$ac_link"
  3795. case "(($ac_try" in
  3796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3797. *) ac_try_echo=$ac_try;;
  3798. esac
  3799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3800. $as_echo "$ac_try_echo"; } >&5
  3801. (eval "$ac_link") 2>&5
  3802. ac_status=$?
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3804. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  3805. { { case "(($ac_try" in
  3806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3807. *) ac_try_echo=$ac_try;;
  3808. esac
  3809. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3810. $as_echo "$ac_try_echo"; } >&5
  3811. (eval "$ac_try") 2>&5
  3812. ac_status=$?
  3813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3814. test $ac_status = 0; }; }; then :
  3815. ac_retval=0
  3816. else
  3817. $as_echo "$as_me: program exited with status $ac_status" >&5
  3818. $as_echo "$as_me: failed program was:" >&5
  3819. sed 's/^/| /' conftest.$ac_ext >&5
  3820. ac_retval=$ac_status
  3821. fi
  3822. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  3823. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3824. as_fn_set_status $ac_retval
  3825. } # ac_fn_cxx_try_run
  3826. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  3827. # ----------------------------------------------------
  3828. # Tries to find if the field MEMBER exists in type AGGR, after including
  3829. # INCLUDES, setting cache variable VAR accordingly.
  3830. ac_fn_c_check_member ()
  3831. {
  3832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  3834. $as_echo_n "checking for $2.$3... " >&6; }
  3835. if eval \${$4+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3839. /* end confdefs.h. */
  3840. $5
  3841. int
  3842. main ()
  3843. {
  3844. static $2 ac_aggr;
  3845. if (ac_aggr.$3)
  3846. return 0;
  3847. ;
  3848. return 0;
  3849. }
  3850. _ACEOF
  3851. if ac_fn_c_try_compile "$LINENO"; then :
  3852. eval "$4=yes"
  3853. else
  3854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3855. /* end confdefs.h. */
  3856. $5
  3857. int
  3858. main ()
  3859. {
  3860. static $2 ac_aggr;
  3861. if (sizeof ac_aggr.$3)
  3862. return 0;
  3863. ;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. if ac_fn_c_try_compile "$LINENO"; then :
  3868. eval "$4=yes"
  3869. else
  3870. eval "$4=no"
  3871. fi
  3872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3873. fi
  3874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3875. fi
  3876. eval ac_res=\$$4
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3878. $as_echo "$ac_res" >&6; }
  3879. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  3880. } # ac_fn_c_check_member
  3881. cat >config.log <<_ACEOF
  3882. This file contains any messages produced by compilers while
  3883. running configure, to aid debugging if configure makes a mistake.
  3884. It was created by LibreOffice $as_me 3.6, which was
  3885. generated by GNU Autoconf 2.68. Invocation command line was
  3886. $ $0 $@
  3887. _ACEOF
  3888. exec 5>>config.log
  3889. {
  3890. cat <<_ASUNAME
  3891. ## --------- ##
  3892. ## Platform. ##
  3893. ## --------- ##
  3894. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  3895. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  3896. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  3897. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  3898. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  3899. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  3900. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  3901. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  3902. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  3903. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  3904. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  3905. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  3906. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  3907. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  3908. _ASUNAME
  3909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3910. for as_dir in $PATH
  3911. do
  3912. IFS=$as_save_IFS
  3913. test -z "$as_dir" && as_dir=.
  3914. $as_echo "PATH: $as_dir"
  3915. done
  3916. IFS=$as_save_IFS
  3917. } >&5
  3918. cat >&5 <<_ACEOF
  3919. ## ----------- ##
  3920. ## Core tests. ##
  3921. ## ----------- ##
  3922. _ACEOF
  3923. # Keep a trace of the command line.
  3924. # Strip out --no-create and --no-recursion so they do not pile up.
  3925. # Strip out --silent because we don't want to record it for future runs.
  3926. # Also quote any args containing shell meta-characters.
  3927. # Make two passes to allow for proper duplicate-argument suppression.
  3928. ac_configure_args=
  3929. ac_configure_args0=
  3930. ac_configure_args1=
  3931. ac_must_keep_next=false
  3932. for ac_pass in 1 2
  3933. do
  3934. for ac_arg
  3935. do
  3936. case $ac_arg in
  3937. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  3938. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3939. | -silent | --silent | --silen | --sile | --sil)
  3940. continue ;;
  3941. *\'*)
  3942. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3943. esac
  3944. case $ac_pass in
  3945. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  3946. 2)
  3947. as_fn_append ac_configure_args1 " '$ac_arg'"
  3948. if test $ac_must_keep_next = true; then
  3949. ac_must_keep_next=false # Got value, back to normal.
  3950. else
  3951. case $ac_arg in
  3952. *=* | --config-cache | -C | -disable-* | --disable-* \
  3953. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  3954. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  3955. | -with-* | --with-* | -without-* | --without-* | --x)
  3956. case "$ac_configure_args0 " in
  3957. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  3958. esac
  3959. ;;
  3960. -* ) ac_must_keep_next=true ;;
  3961. esac
  3962. fi
  3963. as_fn_append ac_configure_args " '$ac_arg'"
  3964. ;;
  3965. esac
  3966. done
  3967. done
  3968. { ac_configure_args0=; unset ac_configure_args0;}
  3969. { ac_configure_args1=; unset ac_configure_args1;}
  3970. # When interrupted or exit'd, cleanup temporary files, and complete
  3971. # config.log. We remove comments because anyway the quotes in there
  3972. # would cause problems or look ugly.
  3973. # WARNING: Use '\'' to represent an apostrophe within the trap.
  3974. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  3975. trap 'exit_status=$?
  3976. # Save into config.log some information that might help in debugging.
  3977. {
  3978. echo
  3979. $as_echo "## ---------------- ##
  3980. ## Cache variables. ##
  3981. ## ---------------- ##"
  3982. echo
  3983. # The following way of writing the cache mishandles newlines in values,
  3984. (
  3985. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  3986. eval ac_val=\$$ac_var
  3987. case $ac_val in #(
  3988. *${as_nl}*)
  3989. case $ac_var in #(
  3990. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3991. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3992. esac
  3993. case $ac_var in #(
  3994. _ | IFS | as_nl) ;; #(
  3995. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3996. *) { eval $ac_var=; unset $ac_var;} ;;
  3997. esac ;;
  3998. esac
  3999. done
  4000. (set) 2>&1 |
  4001. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  4002. *${as_nl}ac_space=\ *)
  4003. sed -n \
  4004. "s/'\''/'\''\\\\'\'''\''/g;
  4005. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  4006. ;; #(
  4007. *)
  4008. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4009. ;;
  4010. esac |
  4011. sort
  4012. )
  4013. echo
  4014. $as_echo "## ----------------- ##
  4015. ## Output variables. ##
  4016. ## ----------------- ##"
  4017. echo
  4018. for ac_var in $ac_subst_vars
  4019. do
  4020. eval ac_val=\$$ac_var
  4021. case $ac_val in
  4022. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  4023. esac
  4024. $as_echo "$ac_var='\''$ac_val'\''"
  4025. done | sort
  4026. echo
  4027. if test -n "$ac_subst_files"; then
  4028. $as_echo "## ------------------- ##
  4029. ## File substitutions. ##
  4030. ## ------------------- ##"
  4031. echo
  4032. for ac_var in $ac_subst_files
  4033. do
  4034. eval ac_val=\$$ac_var
  4035. case $ac_val in
  4036. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  4037. esac
  4038. $as_echo "$ac_var='\''$ac_val'\''"
  4039. done | sort
  4040. echo
  4041. fi
  4042. if test -s confdefs.h; then
  4043. $as_echo "## ----------- ##
  4044. ## confdefs.h. ##
  4045. ## ----------- ##"
  4046. echo
  4047. cat confdefs.h
  4048. echo
  4049. fi
  4050. test "$ac_signal" != 0 &&
  4051. $as_echo "$as_me: caught signal $ac_signal"
  4052. $as_echo "$as_me: exit $exit_status"
  4053. } >&5
  4054. rm -f core *.core core.conftest.* &&
  4055. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  4056. exit $exit_status
  4057. ' 0
  4058. for ac_signal in 1 2 13 15; do
  4059. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  4060. done
  4061. ac_signal=0
  4062. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  4063. rm -f -r conftest* confdefs.h
  4064. $as_echo "/* confdefs.h */" > confdefs.h
  4065. # Predefined preprocessor variables.
  4066. cat >>confdefs.h <<_ACEOF
  4067. #define PACKAGE_NAME "$PACKAGE_NAME"
  4068. _ACEOF
  4069. cat >>confdefs.h <<_ACEOF
  4070. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  4071. _ACEOF
  4072. cat >>confdefs.h <<_ACEOF
  4073. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  4074. _ACEOF
  4075. cat >>confdefs.h <<_ACEOF
  4076. #define PACKAGE_STRING "$PACKAGE_STRING"
  4077. _ACEOF
  4078. cat >>confdefs.h <<_ACEOF
  4079. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  4080. _ACEOF
  4081. cat >>confdefs.h <<_ACEOF
  4082. #define PACKAGE_URL "$PACKAGE_URL"
  4083. _ACEOF
  4084. # Let the site file select an alternate cache file if it wants to.
  4085. # Prefer an explicitly selected file to automatically selected ones.
  4086. ac_site_file1=NONE
  4087. ac_site_file2=NONE
  4088. if test -n "$CONFIG_SITE"; then
  4089. # We do not want a PATH search for config.site.
  4090. case $CONFIG_SITE in #((
  4091. -*) ac_site_file1=./$CONFIG_SITE;;
  4092. */*) ac_site_file1=$CONFIG_SITE;;
  4093. *) ac_site_file1=./$CONFIG_SITE;;
  4094. esac
  4095. elif test "x$prefix" != xNONE; then
  4096. ac_site_file1=$prefix/share/config.site
  4097. ac_site_file2=$prefix/etc/config.site
  4098. else
  4099. ac_site_file1=$ac_default_prefix/share/config.site
  4100. ac_site_file2=$ac_default_prefix/etc/config.site
  4101. fi
  4102. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  4103. do
  4104. test "x$ac_site_file" = xNONE && continue
  4105. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  4107. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  4108. sed 's/^/| /' "$ac_site_file" >&5
  4109. . "$ac_site_file" \
  4110. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4111. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4112. as_fn_error $? "failed to load site script $ac_site_file
  4113. See \`config.log' for more details" "$LINENO" 5; }
  4114. fi
  4115. done
  4116. if test -r "$cache_file"; then
  4117. # Some versions of bash will fail to source /dev/null (special files
  4118. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  4119. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  4121. $as_echo "$as_me: loading cache $cache_file" >&6;}
  4122. case $cache_file in
  4123. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  4124. *) . "./$cache_file";;
  4125. esac
  4126. fi
  4127. else
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  4129. $as_echo "$as_me: creating cache $cache_file" >&6;}
  4130. >$cache_file
  4131. fi
  4132. # Check that the precious variables saved in the cache have kept the same
  4133. # value.
  4134. ac_cache_corrupted=false
  4135. for ac_var in $ac_precious_vars; do
  4136. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  4137. eval ac_new_set=\$ac_env_${ac_var}_set
  4138. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  4139. eval ac_new_val=\$ac_env_${ac_var}_value
  4140. case $ac_old_set,$ac_new_set in
  4141. set,)
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  4143. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  4144. ac_cache_corrupted=: ;;
  4145. ,set)
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  4147. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  4148. ac_cache_corrupted=: ;;
  4149. ,);;
  4150. *)
  4151. if test "x$ac_old_val" != "x$ac_new_val"; then
  4152. # differences in whitespace do not lead to failure.
  4153. ac_old_val_w=`echo x $ac_old_val`
  4154. ac_new_val_w=`echo x $ac_new_val`
  4155. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  4157. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  4158. ac_cache_corrupted=:
  4159. else
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  4161. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  4162. eval $ac_var=\$ac_old_val
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  4165. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  4167. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  4168. fi;;
  4169. esac
  4170. # Pass precious variables to config.status.
  4171. if test "$ac_new_set" = set; then
  4172. case $ac_new_val in
  4173. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  4174. *) ac_arg=$ac_var=$ac_new_val ;;
  4175. esac
  4176. case " $ac_configure_args " in
  4177. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  4178. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  4179. esac
  4180. fi
  4181. done
  4182. if $ac_cache_corrupted; then
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4184. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  4186. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  4187. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  4188. fi
  4189. ## -------------------- ##
  4190. ## Main body of script. ##
  4191. ## -------------------- ##
  4192. ac_ext=c
  4193. ac_cpp='$CPP $CPPFLAGS'
  4194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4197. save_CC=$CC
  4198. save_CXX=$CXX
  4199. BUILD_TYPE="LibO"
  4200. SCPDEFS=""
  4201. GIT_REPO_NAMES=""
  4202. LO_PATH= # used by path_munge to construct a PATH variable
  4203. PathFormat()
  4204. {
  4205. formatted_path="$1"
  4206. if test "$build_os" = "cygwin"; then
  4207. pf_part1=
  4208. pf_conv_to_dos=
  4209. for pf_part in $formatted_path; do
  4210. if test -z "$pf_part1"; then
  4211. pf_part1="$pf_part"
  4212. else
  4213. pf_conv_to_dos="yes"
  4214. fi
  4215. done
  4216. if test "$pf_conv_to_dos" = "yes"; then
  4217. formatted_path=`cygpath -d "$formatted_path"`
  4218. if test $? -ne 0; then
  4219. as_fn_error $? "path conversion failed for \"$1\"." "$LINENO" 5
  4220. fi
  4221. fi
  4222. fp_count_colon=`echo "$formatted_path" | $GREP -c ":"`
  4223. fp_count_slash=`echo "$formatted_path" | $GREP -c "/"`
  4224. if test "$fp_count_slash$fp_count_colon" != "00"; then
  4225. if test "$fp_count_colon" = "0"; then
  4226. formatted_path=`realpath "$formatted_path"`
  4227. if test $? -ne 0; then
  4228. as_fn_error $? "realpath failed for \"$1\"." "$LINENO" 5
  4229. fi
  4230. fi
  4231. formatted_path=`cygpath -m "$formatted_path"`
  4232. if test $? -ne 0; then
  4233. as_fn_error $? "path conversion failed for \"$1\"." "$LINENO" 5
  4234. fi
  4235. fi
  4236. fi
  4237. }
  4238. if test -n "$SOLARENV" ; then
  4239. as_fn_error $? "You have sourced config_host.mk in this shell. This may lead to trouble, please run in a fresh (login) shell." "$LINENO" 5
  4240. fi
  4241. echo "********************************************************************"
  4242. echo "*"
  4243. echo "* Running ${PACKAGE_NAME} build configuration."
  4244. echo "*"
  4245. echo "********************************************************************"
  4246. echo ""
  4247. ac_aux_dir=
  4248. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4249. if test -f "$ac_dir/install-sh"; then
  4250. ac_aux_dir=$ac_dir
  4251. ac_install_sh="$ac_aux_dir/install-sh -c"
  4252. break
  4253. elif test -f "$ac_dir/install.sh"; then
  4254. ac_aux_dir=$ac_dir
  4255. ac_install_sh="$ac_aux_dir/install.sh -c"
  4256. break
  4257. elif test -f "$ac_dir/shtool"; then
  4258. ac_aux_dir=$ac_dir
  4259. ac_install_sh="$ac_aux_dir/shtool install -c"
  4260. break
  4261. fi
  4262. done
  4263. if test -z "$ac_aux_dir"; then
  4264. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4265. fi
  4266. # These three variables are undocumented and unsupported,
  4267. # and are intended to be withdrawn in a future Autoconf release.
  4268. # They can cause serious problems if a builder's source tree is in a directory
  4269. # whose full name contains unusual characters.
  4270. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4271. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4272. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4273. # Make sure we can run config.sub.
  4274. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4275. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4277. $as_echo_n "checking build system type... " >&6; }
  4278. if ${ac_cv_build+:} false; then :
  4279. $as_echo_n "(cached) " >&6
  4280. else
  4281. ac_build_alias=$build_alias
  4282. test "x$ac_build_alias" = x &&
  4283. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4284. test "x$ac_build_alias" = x &&
  4285. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4286. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4287. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4288. fi
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4290. $as_echo "$ac_cv_build" >&6; }
  4291. case $ac_cv_build in
  4292. *-*-*) ;;
  4293. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4294. esac
  4295. build=$ac_cv_build
  4296. ac_save_IFS=$IFS; IFS='-'
  4297. set x $ac_cv_build
  4298. shift
  4299. build_cpu=$1
  4300. build_vendor=$2
  4301. shift; shift
  4302. # Remember, the first character of IFS is used to create $*,
  4303. # except with old shells:
  4304. build_os=$*
  4305. IFS=$ac_save_IFS
  4306. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4308. $as_echo_n "checking host system type... " >&6; }
  4309. if ${ac_cv_host+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test "x$host_alias" = x; then
  4313. ac_cv_host=$ac_cv_build
  4314. else
  4315. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4316. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4317. fi
  4318. fi
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4320. $as_echo "$ac_cv_host" >&6; }
  4321. case $ac_cv_host in
  4322. *-*-*) ;;
  4323. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4324. esac
  4325. host=$ac_cv_host
  4326. ac_save_IFS=$IFS; IFS='-'
  4327. set x $ac_cv_host
  4328. shift
  4329. host_cpu=$1
  4330. host_vendor=$2
  4331. shift; shift
  4332. # Remember, the first character of IFS is used to create $*,
  4333. # except with old shells:
  4334. host_os=$*
  4335. IFS=$ac_save_IFS
  4336. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4337. if test "$cross_compiling" = "yes"; then
  4338. CROSS_COMPILING=YES
  4339. else
  4340. CROSS_COMPILING=
  4341. BUILD_TYPE="$BUILD_TYPE NATIVE"
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4344. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4345. if ${ac_cv_path_GREP+:} false; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. if test -z "$GREP"; then
  4349. ac_path_GREP_found=false
  4350. # Loop through the user's path and test for each of PROGNAME-LIST
  4351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4352. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4353. do
  4354. IFS=$as_save_IFS
  4355. test -z "$as_dir" && as_dir=.
  4356. for ac_prog in grep ggrep; do
  4357. for ac_exec_ext in '' $ac_executable_extensions; do
  4358. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4359. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4360. # Check for GNU ac_path_GREP and select it if it is found.
  4361. # Check for GNU $ac_path_GREP
  4362. case `"$ac_path_GREP" --version 2>&1` in
  4363. *GNU*)
  4364. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4365. *)
  4366. ac_count=0
  4367. $as_echo_n 0123456789 >"conftest.in"
  4368. while :
  4369. do
  4370. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4371. mv "conftest.tmp" "conftest.in"
  4372. cp "conftest.in" "conftest.nl"
  4373. $as_echo 'GREP' >> "conftest.nl"
  4374. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4375. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4376. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4377. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4378. # Best one so far, save it but keep looking for a better one
  4379. ac_cv_path_GREP="$ac_path_GREP"
  4380. ac_path_GREP_max=$ac_count
  4381. fi
  4382. # 10*(2^10) chars as input seems more than enough
  4383. test $ac_count -gt 10 && break
  4384. done
  4385. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4386. esac
  4387. $ac_path_GREP_found && break 3
  4388. done
  4389. done
  4390. done
  4391. IFS=$as_save_IFS
  4392. if test -z "$ac_cv_path_GREP"; then
  4393. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4394. fi
  4395. else
  4396. ac_cv_path_GREP=$GREP
  4397. fi
  4398. fi
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4400. $as_echo "$ac_cv_path_GREP" >&6; }
  4401. GREP="$ac_cv_path_GREP"
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4403. $as_echo_n "checking for egrep... " >&6; }
  4404. if ${ac_cv_path_EGREP+:} false; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4408. then ac_cv_path_EGREP="$GREP -E"
  4409. else
  4410. if test -z "$EGREP"; then
  4411. ac_path_EGREP_found=false
  4412. # Loop through the user's path and test for each of PROGNAME-LIST
  4413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4414. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4415. do
  4416. IFS=$as_save_IFS
  4417. test -z "$as_dir" && as_dir=.
  4418. for ac_prog in egrep; do
  4419. for ac_exec_ext in '' $ac_executable_extensions; do
  4420. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4421. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4422. # Check for GNU ac_path_EGREP and select it if it is found.
  4423. # Check for GNU $ac_path_EGREP
  4424. case `"$ac_path_EGREP" --version 2>&1` in
  4425. *GNU*)
  4426. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4427. *)
  4428. ac_count=0
  4429. $as_echo_n 0123456789 >"conftest.in"
  4430. while :
  4431. do
  4432. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4433. mv "conftest.tmp" "conftest.in"
  4434. cp "conftest.in" "conftest.nl"
  4435. $as_echo 'EGREP' >> "conftest.nl"
  4436. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4437. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4438. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4439. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4440. # Best one so far, save it but keep looking for a better one
  4441. ac_cv_path_EGREP="$ac_path_EGREP"
  4442. ac_path_EGREP_max=$ac_count
  4443. fi
  4444. # 10*(2^10) chars as input seems more than enough
  4445. test $ac_count -gt 10 && break
  4446. done
  4447. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4448. esac
  4449. $ac_path_EGREP_found && break 3
  4450. done
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. if test -z "$ac_cv_path_EGREP"; then
  4455. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4456. fi
  4457. else
  4458. ac_cv_path_EGREP=$EGREP
  4459. fi
  4460. fi
  4461. fi
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4463. $as_echo "$ac_cv_path_EGREP" >&6; }
  4464. EGREP="$ac_cv_path_EGREP"
  4465. # AC_PROG_EGREP doesn't set GREP on all systems as well
  4466. # Extract the first word of "grep", so it can be a program name with args.
  4467. set dummy grep; ac_word=$2
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4469. $as_echo_n "checking for $ac_word... " >&6; }
  4470. if ${ac_cv_path_GREP+:} false; then :
  4471. $as_echo_n "(cached) " >&6
  4472. else
  4473. case $GREP in
  4474. [\\/]* | ?:[\\/]*)
  4475. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  4476. ;;
  4477. *)
  4478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4479. for as_dir in $PATH
  4480. do
  4481. IFS=$as_save_IFS
  4482. test -z "$as_dir" && as_dir=.
  4483. for ac_exec_ext in '' $ac_executable_extensions; do
  4484. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4485. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  4486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4487. break 2
  4488. fi
  4489. done
  4490. done
  4491. IFS=$as_save_IFS
  4492. ;;
  4493. esac
  4494. fi
  4495. GREP=$ac_cv_path_GREP
  4496. if test -n "$GREP"; then
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  4498. $as_echo "$GREP" >&6; }
  4499. else
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4501. $as_echo "no" >&6; }
  4502. fi
  4503. if test "$build_os" = "cygwin"; then
  4504. EXEEXT_FOR_BUILD=.exe
  4505. SRC_ROOT=`pwd`
  4506. PathFormat "$SRC_ROOT"
  4507. SRC_ROOT="$formatted_path"
  4508. x_Cygwin=
  4509. else
  4510. EXEEXT_FOR_BUILD=
  4511. SRC_ROOT=`pwd`
  4512. x_Cygwin=\#
  4513. fi
  4514. cat /dev/null > warn
  4515. if test "z$EUID" = "z0" -a "`uname -o 2>/dev/null`" = "Cygwin"; then
  4516. as_fn_error $? "You must build LibreOffice as a normal user - not using an administrative account" "$LINENO" 5
  4517. fi
  4518. # need sed in os checks...
  4519. for ac_prog in sed
  4520. do
  4521. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4522. set dummy $ac_prog; ac_word=$2
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4524. $as_echo_n "checking for $ac_word... " >&6; }
  4525. if ${ac_cv_path_SED+:} false; then :
  4526. $as_echo_n "(cached) " >&6
  4527. else
  4528. case $SED in
  4529. [\\/]* | ?:[\\/]*)
  4530. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  4531. ;;
  4532. *)
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_exec_ext in '' $ac_executable_extensions; do
  4539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4540. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4542. break 2
  4543. fi
  4544. done
  4545. done
  4546. IFS=$as_save_IFS
  4547. ;;
  4548. esac
  4549. fi
  4550. SED=$ac_cv_path_SED
  4551. if test -n "$SED"; then
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  4553. $as_echo "$SED" >&6; }
  4554. else
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4556. $as_echo "no" >&6; }
  4557. fi
  4558. test -n "$SED" && break
  4559. done
  4560. if test -z "$SED"; then
  4561. as_fn_error $? "install sed to run this script" "$LINENO" 5
  4562. fi
  4563. ANDROID_NDK_HOME=
  4564. if test -n "$with_android_ndk"; then
  4565. ANDROID_NDK_HOME=$with_android_ndk
  4566. # Set up a lot of pre-canned defaults
  4567. # What if the NDK at some point starts including several toolchains for different
  4568. # gcc versions (like some 3rd-party improved NDK builds already do)?
  4569. # Then the use of a wildcard below will break.
  4570. ANDROID_ABI_PREBUILT_BIN=`echo $ANDROID_NDK_HOME/toolchains/arm-linux*/prebuilt/*/bin`
  4571. test -z "$SYSBASE" && export SYSBASE=$ANDROID_NDK_HOME/platforms/android-9/arch-arm
  4572. test -z "$AR" && AR=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-ar
  4573. test -z "$NM" && NM=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-nm
  4574. test -z "$OBJDUMP" && OBJDUMP=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-objdump
  4575. test -z "$RANLIB" && RANLIB=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-ranlib
  4576. test -z "$STRIP" && STRIP=$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-strip
  4577. ANDROIDCFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 --sysroot $ANDROID_NDK_HOME/platforms/android-9/arch-arm -L$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a"
  4578. test -z "$CC" && CC="$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-gcc $ANDROIDCFLAGS"
  4579. test -z "$CXX" && CXX="$ANDROID_ABI_PREBUILT_BIN/arm-linux-androideabi-g++ $ANDROIDCFLAGS -I $ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/include -I$ANDROID_NDK_HOME/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include"
  4580. fi
  4581. ANDROID_SDK_HOME=
  4582. if test -n "$with_android_sdk"; then
  4583. ANDROID_SDK_HOME=$with_android_sdk
  4584. PATH="$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools:$PATH"
  4585. fi
  4586. #defaults unless the os test overrides this:
  4587. test_randr=yes
  4588. test_xrender=yes
  4589. test_cups=yes
  4590. test_fontconfig=yes
  4591. test_cairo=yes
  4592. # Default values, as such probably valid just for Linux, set
  4593. # differently below just for Mac OS X,but at least better than
  4594. # hardcoding these as we used to do. Much of this is duplicated also
  4595. # in solenv for old build system and for gbuild, ideally we should
  4596. # perhaps define stuff like this only here in configure.in?
  4597. LINKFLAGSSHL="-shared"
  4598. PICSWITCH="-fpic"
  4599. DLLPOST=".so"
  4600. LINKFLAGSNOUNDEFS="-Wl,-z,defs"
  4601. case "$host_os" in
  4602. solaris*)
  4603. test_gtk=yes
  4604. build_gstreamer=yes
  4605. test_tde=yes
  4606. test_kde=yes
  4607. test_freetype=yes
  4608. test_gstreamer=yes
  4609. _os=SunOS
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Solaris operating system release" >&5
  4611. $as_echo_n "checking the Solaris operating system release... " >&6; }
  4612. _os_release=`echo $host_os | $SED -e s/solaris2\.//`
  4613. if test "$_os_release" -lt "10"; then
  4614. as_fn_error $? "use Solaris >= 10 to build LibreOffice" "$LINENO" 5
  4615. else
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($_os_release)" >&5
  4617. $as_echo "ok ($_os_release)" >&6; }
  4618. fi
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the processor type" >&5
  4620. $as_echo_n "checking the processor type... " >&6; }
  4621. if test "$host_cpu" = "sparc" -o "$host_cpu" = "i386"; then
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($host_cpu)" >&5
  4623. $as_echo "ok ($host_cpu)" >&6; }
  4624. else
  4625. as_fn_error $? "only SPARC and i386 processors are supported" "$LINENO" 5
  4626. fi
  4627. ;;
  4628. linux-gnu*|k*bsd*-gnu*)
  4629. test_gtk=yes
  4630. build_gstreamer=yes
  4631. test_tde=yes
  4632. test_kde=yes
  4633. test_kde4=yes
  4634. test_freetype=yes
  4635. test_unix_quickstarter=yes
  4636. _os=Linux
  4637. ;;
  4638. gnu)
  4639. test_randr=no
  4640. test_xrender=no
  4641. _os=GNU
  4642. ;;
  4643. cygwin*|interix*|mingw32*)
  4644. # When building on Windows normally with MSVC under Cygwin,
  4645. # configure thinks that the host platform (the platform the
  4646. # built code will run on) is Cygwin, even if it obviously is
  4647. # Windows, which in Autoconf terminology is called
  4648. # "mingw32". (Which is misleading as MinGW is the name of the
  4649. # tool-chain, not an operating system.)
  4650. # Somewhat confusing, yes. But this configure script doesn't
  4651. # look at $host etc that much, it mostly uses its own $_os
  4652. # variable, set here in this case statement.
  4653. # When cross-compiling to Windows from Unix, the host platform
  4654. # is "mingw32" (because in that case it is the MinGW
  4655. # tool-chain that is used).
  4656. test_cups=no
  4657. test_randr=no
  4658. test_xrender=no
  4659. test_freetype=no
  4660. test_fontconfig=no
  4661. _os=WINNT
  4662. use_shl_version="TRUE"
  4663. DYNAMIC_CRT="TRUE"
  4664. # If the host OS matches "mingw32*", that means we are using the
  4665. # MinGW cross-compiler, because we don't see the point in building
  4666. # LibreOffice using MinGW on Windows. If you want to build on
  4667. # Windows, use MSVC. If you want to use MinGW, surely you want to
  4668. # cross-compile (from Linux or some other Unix).
  4669. case "$host_os" in
  4670. mingw32*)
  4671. WITH_MINGW=yes
  4672. if test -z "$CC"; then
  4673. CC="$host_cpu-$host_vendor-$host_os-gcc"
  4674. fi
  4675. if test -z "$CXX"; then
  4676. CXX="$host_cpu-$host_vendor-$host_os-g++"
  4677. fi
  4678. ;;
  4679. esac
  4680. ;;
  4681. darwin*) # Mac OS X or iOS
  4682. test_gtk=yes
  4683. test_randr=no
  4684. test_xrender=no
  4685. test_freetype=no
  4686. test_fontconfig=no
  4687. if test "$host_cpu" = "arm"; then
  4688. _os=iOS
  4689. test_gtk=no
  4690. test_cups=no
  4691. else
  4692. _os=Darwin
  4693. fi
  4694. enable_systray=no
  4695. # See comment above the case "$host_os"
  4696. LINKFLAGSSHL="-dynamiclib -single_module"
  4697. # -fPIC is default
  4698. PICSWITCH=""
  4699. DLLPOST=".dylib"
  4700. # -undefined error is the default
  4701. LINKFLAGSNOUNDEFS=""
  4702. ;;
  4703. freebsd*)
  4704. test_gtk=yes
  4705. build_gstreamer=yes
  4706. test_tde=yes
  4707. test_kde=yes
  4708. test_kde4=yes
  4709. test_freetype=yes
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the FreeBSD operating system release" >&5
  4711. $as_echo_n "checking the FreeBSD operating system release... " >&6; }
  4712. if test -n "$with_os_version"; then
  4713. OSVERSION="$with_os_version"
  4714. else
  4715. OSVERSION=`/sbin/sysctl -n kern.osreldate`
  4716. fi
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found OSVERSION=$OSVERSION" >&5
  4718. $as_echo "found OSVERSION=$OSVERSION" >&6; }
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which thread library to use" >&5
  4720. $as_echo_n "checking which thread library to use... " >&6; }
  4721. if test "$OSVERSION" -lt "500016"; then
  4722. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  4723. PTHREAD_LIBS="-pthread"
  4724. elif test "$OSVERSION" -lt "502102"; then
  4725. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  4726. PTHREAD_LIBS="-lc_r"
  4727. else
  4728. PTHREAD_CFLAGS=""
  4729. PTHREAD_LIBS="-pthread"
  4730. fi
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_LIBS" >&5
  4732. $as_echo "$PTHREAD_LIBS" >&6; }
  4733. _os=FreeBSD
  4734. ;;
  4735. *netbsd*)
  4736. test_gtk=yes
  4737. build_gstreamer=yes
  4738. test_tde=no
  4739. test_kde=no
  4740. test_kde4=yes
  4741. test_freetype=yes
  4742. PTHREAD_LIBS="-pthread -lpthread"
  4743. _os=NetBSD
  4744. ;;
  4745. aix*)
  4746. test_randr=no
  4747. test_freetype=yes
  4748. PTHREAD_LIBS=-pthread
  4749. _os=AIX
  4750. ;;
  4751. openbsd*)
  4752. test_gtk=yes
  4753. test_tde=yes
  4754. test_kde=yes
  4755. test_freetype=yes
  4756. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  4757. PTHREAD_LIBS="-pthread"
  4758. _os=OpenBSD
  4759. ;;
  4760. dragonfly*)
  4761. test_gtk=yes
  4762. build_gstreamer=yes
  4763. test_tde=yes
  4764. test_kde=yes
  4765. test_kde4=yes
  4766. test_freetype=yes
  4767. PTHREAD_LIBS="-pthread"
  4768. _os=DragonFly
  4769. ;;
  4770. linux-androideabi*)
  4771. build_gstreamer=no
  4772. test_cups=no
  4773. test_fontconfig=no
  4774. test_freetype=no
  4775. test_gtk=no
  4776. test_tde=no
  4777. test_kde=no
  4778. test_kde4=no
  4779. test_randr=no
  4780. test_xrender=no
  4781. test_unix_quickstarter=no
  4782. _os=Android
  4783. if test -z "$with_android_ndk"; then
  4784. as_fn_error $? "the --with-android-ndk option is mandatory" "$LINENO" 5
  4785. fi
  4786. if test -z "$with_android_sdk"; then
  4787. as_fn_error $? "the --with-android-sdk option is mandatory" "$LINENO" 5
  4788. fi
  4789. # Verify that the NDK and SDK options are proper
  4790. if test ! -f "$ANDROID_NDK_HOME/platforms/android-9/arch-arm/usr/lib/libc.a"; then
  4791. as_fn_error $? "the --with-android-ndk option does not point to an Android NDK" "$LINENO" 5
  4792. fi
  4793. if test ! -f "$ANDROID_SDK_HOME/platforms/android-14/android.jar"; then
  4794. as_fn_error $? "the --with-android-sdk option does not point to an Android SDK" "$LINENO" 5
  4795. fi
  4796. BUILD_TYPE="$BUILD_TYPE FONTCONFIG FREETYPE"
  4797. FREETYPE_TARBALL=dbf2caca1d3afd410a29217a9809d397-freetype-2.4.8.tar.bz2
  4798. FONTCONFIG_TARBALL=77e15a92006ddc2adbb06f840d591c0e-fontconfig-2.8.0.tar.gz
  4799. ;;
  4800. *)
  4801. as_fn_error $? "$host_os operating system is not suitable to build LibreOffice for!" "$LINENO" 5
  4802. ;;
  4803. esac
  4804. if test "$_os" = "AIX"; then
  4805. # Extract the first word of "gawk", so it can be a program name with args.
  4806. set dummy gawk; ac_word=$2
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4808. $as_echo_n "checking for $ac_word... " >&6; }
  4809. if ${ac_cv_path_GAWK+:} false; then :
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. case $GAWK in
  4813. [\\/]* | ?:[\\/]*)
  4814. ac_cv_path_GAWK="$GAWK" # Let the user override the test with a path.
  4815. ;;
  4816. *)
  4817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4818. for as_dir in $PATH
  4819. do
  4820. IFS=$as_save_IFS
  4821. test -z "$as_dir" && as_dir=.
  4822. for ac_exec_ext in '' $ac_executable_extensions; do
  4823. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4824. ac_cv_path_GAWK="$as_dir/$ac_word$ac_exec_ext"
  4825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4826. break 2
  4827. fi
  4828. done
  4829. done
  4830. IFS=$as_save_IFS
  4831. ;;
  4832. esac
  4833. fi
  4834. GAWK=$ac_cv_path_GAWK
  4835. if test -n "$GAWK"; then
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAWK" >&5
  4837. $as_echo "$GAWK" >&6; }
  4838. else
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4840. $as_echo "no" >&6; }
  4841. fi
  4842. if test -z "$GAWK"; then
  4843. as_fn_error $? "gawk not found in \$PATH" "$LINENO" 5
  4844. fi
  4845. fi
  4846. ###############################################################################
  4847. # Extensions switches --enable/--disable
  4848. ###############################################################################
  4849. # By default these should be enabled unless having extra dependencies.
  4850. # If there is extra dependency over configure options then the enable should
  4851. # be automagic based on wether the requiring feature is enabled or not.
  4852. # All this options change anything only with --enable-extension-integration.
  4853. # The name of this option and its help string makes it sound as if
  4854. # extensions are built anyway, just not integrated in the installer,
  4855. # if you use --disable-extension-integration. Is that really the
  4856. # case?
  4857. # Check whether --enable-extension-integration was given.
  4858. if test "${enable_extension_integration+set}" = set; then :
  4859. enableval=$enable_extension_integration;
  4860. fi
  4861. # Check whether --enable-ext-barcode was given.
  4862. if test "${enable_ext_barcode+set}" = set; then :
  4863. enableval=$enable_ext_barcode;
  4864. fi
  4865. # Check whether --enable-database-connectivity was given.
  4866. if test "${enable_database_connectivity+set}" = set; then :
  4867. enableval=$enable_database_connectivity;
  4868. fi
  4869. # This doesn't mean not building (or "integrating") extensions
  4870. # (although it probably should; i.e. it should imply
  4871. # --disable-extension-integration I guess), it means not supporting
  4872. # any extension mechanism at all
  4873. # Check whether --enable-extensions was given.
  4874. if test "${enable_extensions+set}" = set; then :
  4875. enableval=$enable_extensions;
  4876. fi
  4877. # Check whether --enable-scripting was given.
  4878. if test "${enable_scripting+set}" = set; then :
  4879. enableval=$enable_scripting;
  4880. fi
  4881. # This is mainly for iOS, but could potentially be used in some
  4882. # special case otherwise, too, so factored out as a separate setting
  4883. # Check whether --enable-dynamic-loading was given.
  4884. if test "${enable_dynamic_loading+set}" = set; then :
  4885. enableval=$enable_dynamic_loading;
  4886. fi
  4887. # Check whether --enable-ext-diagram was given.
  4888. if test "${enable_ext_diagram+set}" = set; then :
  4889. enableval=$enable_ext_diagram;
  4890. fi
  4891. # Check whether --enable-ext-google-docs was given.
  4892. if test "${enable_ext_google_docs+set}" = set; then :
  4893. enableval=$enable_ext_google_docs;
  4894. fi
  4895. # Check whether --enable-ext-hunart was given.
  4896. if test "${enable_ext_hunart+set}" = set; then :
  4897. enableval=$enable_ext_hunart;
  4898. fi
  4899. # Check whether --enable-ext-languagetool was given.
  4900. if test "${enable_ext_languagetool+set}" = set; then :
  4901. enableval=$enable_ext_languagetool;
  4902. fi
  4903. # Check whether --enable-ext-mysql-connector was given.
  4904. if test "${enable_ext_mysql_connector+set}" = set; then :
  4905. enableval=$enable_ext_mysql_connector;
  4906. fi
  4907. # Check whether --enable-ext-nlpsolver was given.
  4908. if test "${enable_ext_nlpsolver+set}" = set; then :
  4909. enableval=$enable_ext_nlpsolver;
  4910. fi
  4911. # Check whether --enable-ext-ct2n was given.
  4912. if test "${enable_ext_ct2n+set}" = set; then :
  4913. enableval=$enable_ext_ct2n;
  4914. fi
  4915. # Check whether --enable-ext-numbertext was given.
  4916. if test "${enable_ext_numbertext+set}" = set; then :
  4917. enableval=$enable_ext_numbertext;
  4918. fi
  4919. # Check whether --enable-ext-oooblogger was given.
  4920. if test "${enable_ext_oooblogger+set}" = set; then :
  4921. enableval=$enable_ext_oooblogger;
  4922. fi
  4923. # Check whether --enable-ext-pdfimport was given.
  4924. if test "${enable_ext_pdfimport+set}" = set; then :
  4925. enableval=$enable_ext_pdfimport;
  4926. fi
  4927. # Check whether --enable-ext-presenter-console was given.
  4928. if test "${enable_ext_presenter_console+set}" = set; then :
  4929. enableval=$enable_ext_presenter_console;
  4930. fi
  4931. # Check whether --enable-ext-presenter-minimizer was given.
  4932. if test "${enable_ext_presenter_minimizer+set}" = set; then :
  4933. enableval=$enable_ext_presenter_minimizer;
  4934. fi
  4935. # Check whether --enable-ext-report-builder was given.
  4936. if test "${enable_ext_report_builder+set}" = set; then :
  4937. enableval=$enable_ext_report_builder;
  4938. fi
  4939. # Check whether --enable-ext-scripting-beanshell was given.
  4940. if test "${enable_ext_scripting_beanshell+set}" = set; then :
  4941. enableval=$enable_ext_scripting_beanshell;
  4942. fi
  4943. # Check whether --enable-ext-scripting-javascript was given.
  4944. if test "${enable_ext_scripting_javascript+set}" = set; then :
  4945. enableval=$enable_ext_scripting_javascript;
  4946. fi
  4947. # Check whether --enable-ext-typo was given.
  4948. if test "${enable_ext_typo+set}" = set; then :
  4949. enableval=$enable_ext_typo;
  4950. fi
  4951. # Check whether --enable-ext-validator was given.
  4952. if test "${enable_ext_validator+set}" = set; then :
  4953. enableval=$enable_ext_validator;
  4954. fi
  4955. # Check whether --enable-ext-watch-window was given.
  4956. if test "${enable_ext_watch_window+set}" = set; then :
  4957. enableval=$enable_ext_watch_window;
  4958. fi
  4959. # Check whether --enable-ext-wiki-publisher was given.
  4960. if test "${enable_ext_wiki_publisher+set}" = set; then :
  4961. enableval=$enable_ext_wiki_publisher;
  4962. fi
  4963. ###############################################################################
  4964. # Check whether --enable-mergelibs was given.
  4965. if test "${enable_mergelibs+set}" = set; then :
  4966. enableval=$enable_mergelibs;
  4967. fi
  4968. # Check whether --enable-graphite was given.
  4969. if test "${enable_graphite+set}" = set; then :
  4970. enableval=$enable_graphite;
  4971. fi
  4972. # Check whether --enable-ldap was given.
  4973. if test "${enable_ldap+set}" = set; then :
  4974. enableval=$enable_ldap;
  4975. fi
  4976. # Check whether --enable-fetch-external was given.
  4977. if test "${enable_fetch_external+set}" = set; then :
  4978. enableval=$enable_fetch_external;
  4979. fi
  4980. # Check whether --enable-lockdown was given.
  4981. if test "${enable_lockdown+set}" = set; then :
  4982. enableval=$enable_lockdown;
  4983. fi
  4984. # Check whether --enable-vba was given.
  4985. if test "${enable_vba+set}" = set; then :
  4986. enableval=$enable_vba;
  4987. fi
  4988. # Check whether --enable-pch was given.
  4989. if test "${enable_pch+set}" = set; then :
  4990. enableval=$enable_pch;
  4991. fi
  4992. # Check whether --enable-mozilla was given.
  4993. if test "${enable_mozilla+set}" = set; then :
  4994. enableval=$enable_mozilla;
  4995. fi
  4996. # Check whether --enable-epm was given.
  4997. if test "${enable_epm+set}" = set; then :
  4998. enableval=$enable_epm;
  4999. fi
  5000. # Check whether --enable-odk was given.
  5001. if test "${enable_odk+set}" = set; then :
  5002. enableval=$enable_odk;
  5003. fi
  5004. # Check whether --enable-mathmldtd was given.
  5005. if test "${enable_mathmldtd+set}" = set; then :
  5006. enableval=$enable_mathmldtd;
  5007. fi
  5008. # Check whether --enable-evolution2 was given.
  5009. if test "${enable_evolution2+set}" = set; then :
  5010. enableval=$enable_evolution2;
  5011. fi
  5012. # Check whether --enable-directx was given.
  5013. if test "${enable_directx+set}" = set; then :
  5014. enableval=$enable_directx;
  5015. fi
  5016. # Check whether --enable-activex was given.
  5017. if test "${enable_activex+set}" = set; then :
  5018. enableval=$enable_activex;
  5019. fi
  5020. # Check whether --enable-atl was given.
  5021. if test "${enable_atl+set}" = set; then :
  5022. enableval=$enable_atl;
  5023. fi
  5024. # Check whether --enable-symbols was given.
  5025. if test "${enable_symbols+set}" = set; then :
  5026. enableval=$enable_symbols;
  5027. fi
  5028. # Check whether --enable-werror was given.
  5029. if test "${enable_werror+set}" = set; then :
  5030. enableval=$enable_werror;
  5031. fi
  5032. # Check whether --enable-debug was given.
  5033. if test "${enable_debug+set}" = set; then :
  5034. enableval=$enable_debug;
  5035. fi
  5036. # Check whether --enable-dbgutil was given.
  5037. if test "${enable_dbgutil+set}" = set; then :
  5038. enableval=$enable_dbgutil;
  5039. fi
  5040. # Check whether --enable-linkoo was given.
  5041. if test "${enable_linkoo+set}" = set; then :
  5042. enableval=$enable_linkoo;
  5043. fi
  5044. # Check whether --enable-lto was given.
  5045. if test "${enable_lto+set}" = set; then :
  5046. enableval=$enable_lto;
  5047. fi
  5048. # Check whether --enable-crashdump was given.
  5049. if test "${enable_crashdump+set}" = set; then :
  5050. enableval=$enable_crashdump;
  5051. fi
  5052. # Check whether --enable-python was given.
  5053. if test "${enable_python+set}" = set; then :
  5054. enableval=$enable_python;
  5055. fi
  5056. # Check whether --enable-gtk was given.
  5057. if test "${enable_gtk+set}" = set; then :
  5058. enableval=$enable_gtk;
  5059. else
  5060. enable_gtk=yes
  5061. fi
  5062. # Check whether --enable-gtk3 was given.
  5063. if test "${enable_gtk3+set}" = set; then :
  5064. enableval=$enable_gtk3;
  5065. else
  5066. enable_gtk3=no
  5067. fi
  5068. # Check whether --enable-systray was given.
  5069. if test "${enable_systray+set}" = set; then :
  5070. enableval=$enable_systray;
  5071. else
  5072. enable_systray=yes
  5073. fi
  5074. # Check whether --enable-split-app-modules was given.
  5075. if test "${enable_split_app_modules+set}" = set; then :
  5076. enableval=$enable_split_app_modules;
  5077. fi
  5078. # Check whether --enable-split-opt-features was given.
  5079. if test "${enable_split_opt_features+set}" = set; then :
  5080. enableval=$enable_split_opt_features;
  5081. fi
  5082. # Check whether --enable-cairo-canvas was given.
  5083. if test "${enable_cairo_canvas+set}" = set; then :
  5084. enableval=$enable_cairo_canvas;
  5085. fi
  5086. # Check whether --enable-librsvg was given.
  5087. if test "${enable_librsvg+set}" = set; then :
  5088. enableval=$enable_librsvg;
  5089. fi
  5090. # Check whether --enable-opengl was given.
  5091. if test "${enable_opengl+set}" = set; then :
  5092. enableval=$enable_opengl;
  5093. else
  5094. enable_opengl=yes
  5095. fi
  5096. # Check whether --enable-dbus was given.
  5097. if test "${enable_dbus+set}" = set; then :
  5098. enableval=$enable_dbus;
  5099. else
  5100. enable_dbus=no
  5101. fi
  5102. # Check whether --enable-gconf was given.
  5103. if test "${enable_gconf+set}" = set; then :
  5104. enableval=$enable_gconf;
  5105. else
  5106. enable_gconf=yes
  5107. fi
  5108. # Check whether --enable-gnome-vfs was given.
  5109. if test "${enable_gnome_vfs+set}" = set; then :
  5110. enableval=$enable_gnome_vfs;
  5111. else
  5112. enable_gnome_vfs=yes
  5113. fi
  5114. # Check whether --enable-gio was given.
  5115. if test "${enable_gio+set}" = set; then :
  5116. enableval=$enable_gio;
  5117. else
  5118. enable_gio=no
  5119. fi
  5120. # Check whether --enable-build-mozilla was given.
  5121. if test "${enable_build_mozilla+set}" = set; then :
  5122. enableval=$enable_build_mozilla;
  5123. fi
  5124. # Check whether --enable-xmlsec was given.
  5125. if test "${enable_xmlsec+set}" = set; then :
  5126. enableval=$enable_xmlsec;
  5127. fi
  5128. # Check whether --enable-tde was given.
  5129. if test "${enable_tde+set}" = set; then :
  5130. enableval=$enable_tde;
  5131. fi
  5132. # Check whether --enable-tdeab was given.
  5133. if test "${enable_tdeab+set}" = set; then :
  5134. enableval=$enable_tdeab;
  5135. else
  5136. if test "$enable_tde" = "yes"; then
  5137. enable_tdeab=yes;
  5138. fi
  5139. fi
  5140. # Check whether --enable-kde was given.
  5141. if test "${enable_kde+set}" = set; then :
  5142. enableval=$enable_kde;
  5143. fi
  5144. # Check whether --enable-kdeab was given.
  5145. if test "${enable_kdeab+set}" = set; then :
  5146. enableval=$enable_kdeab;
  5147. else
  5148. if test "$enable_kde" = "yes"; then
  5149. enable_kdeab=yes;
  5150. fi
  5151. fi
  5152. # Check whether --enable-kde4 was given.
  5153. if test "${enable_kde4+set}" = set; then :
  5154. enableval=$enable_kde4;
  5155. fi
  5156. # Check whether --enable-headless was given.
  5157. if test "${enable_headless+set}" = set; then :
  5158. enableval=$enable_headless;
  5159. fi
  5160. # Check whether --enable-unix-qstart-libpng was given.
  5161. if test "${enable_unix_qstart_libpng+set}" = set; then :
  5162. enableval=$enable_unix_qstart_libpng;
  5163. else
  5164. enable_unix_qstart_libpng=yes
  5165. fi
  5166. # Check whether --enable-binfilter was given.
  5167. if test "${enable_binfilter+set}" = set; then :
  5168. enableval=$enable_binfilter;
  5169. else
  5170. enable_binfilter=no
  5171. fi
  5172. # Check whether --enable-rpath was given.
  5173. if test "${enable_rpath+set}" = set; then :
  5174. enableval=$enable_rpath;
  5175. fi
  5176. # Check whether --enable-randr was given.
  5177. if test "${enable_randr+set}" = set; then :
  5178. enableval=$enable_randr;
  5179. else
  5180. enable_randr=yes
  5181. fi
  5182. # Check whether --enable-randr-link was given.
  5183. if test "${enable_randr_link+set}" = set; then :
  5184. enableval=$enable_randr_link;
  5185. else
  5186. enable_randr_link=yes
  5187. fi
  5188. # Check whether --enable-gstreamer was given.
  5189. if test "${enable_gstreamer+set}" = set; then :
  5190. enableval=$enable_gstreamer;
  5191. else
  5192. enable_gstreamer=yes
  5193. fi
  5194. # Check whether --enable-neon was given.
  5195. if test "${enable_neon+set}" = set; then :
  5196. enableval=$enable_neon;
  5197. fi
  5198. # Check whether --enable-build-unowinreg was given.
  5199. if test "${enable_build_unowinreg+set}" = set; then :
  5200. enableval=$enable_build_unowinreg;
  5201. fi
  5202. # Check whether --enable-verbose was given.
  5203. if test "${enable_verbose+set}" = set; then :
  5204. enableval=$enable_verbose;
  5205. fi
  5206. # Check whether --enable-dependency-tracking was given.
  5207. if test "${enable_dependency_tracking+set}" = set; then :
  5208. enableval=$enable_dependency_tracking;
  5209. fi
  5210. # Check whether --enable-icecream was given.
  5211. if test "${enable_icecream+set}" = set; then :
  5212. enableval=$enable_icecream;
  5213. fi
  5214. # Check whether --enable-zenity was given.
  5215. if test "${enable_zenity+set}" = set; then :
  5216. enableval=$enable_zenity;
  5217. else
  5218. enable_zenity=yes
  5219. fi
  5220. # Check whether --enable-nsplugin was given.
  5221. if test "${enable_nsplugin+set}" = set; then :
  5222. enableval=$enable_nsplugin;
  5223. fi
  5224. # Check whether --enable-cups was given.
  5225. if test "${enable_cups+set}" = set; then :
  5226. enableval=$enable_cups;
  5227. fi
  5228. # Check whether --enable-ccache was given.
  5229. if test "${enable_ccache+set}" = set; then :
  5230. enableval=$enable_ccache;
  5231. fi
  5232. # Check whether --enable-cl-x64 was given.
  5233. if test "${enable_cl_x64+set}" = set; then :
  5234. enableval=$enable_cl_x64;
  5235. fi
  5236. # Check whether --enable-extra-gallery was given.
  5237. if test "${enable_extra_gallery+set}" = set; then :
  5238. enableval=$enable_extra_gallery;
  5239. fi
  5240. # Check whether --enable-extra-template was given.
  5241. if test "${enable_extra_template+set}" = set; then :
  5242. enableval=$enable_extra_template;
  5243. fi
  5244. # Check whether --enable-extra-sample was given.
  5245. if test "${enable_extra_sample+set}" = set; then :
  5246. enableval=$enable_extra_sample;
  5247. fi
  5248. # Check whether --enable-extra-font was given.
  5249. if test "${enable_extra_font+set}" = set; then :
  5250. enableval=$enable_extra_font;
  5251. fi
  5252. # Check whether --enable-oxygenoffice was given.
  5253. if test "${enable_oxygenoffice+set}" = set; then :
  5254. enableval=$enable_oxygenoffice;
  5255. fi
  5256. # Check whether --enable-lomenubar was given.
  5257. if test "${enable_lomenubar+set}" = set; then :
  5258. enableval=$enable_lomenubar;
  5259. fi
  5260. # Check whether --enable-online-update was given.
  5261. if test "${enable_online_update+set}" = set; then :
  5262. enableval=$enable_online_update;
  5263. fi
  5264. # Check whether --enable-release-build was given.
  5265. if test "${enable_release_build+set}" = set; then :
  5266. enableval=$enable_release_build;
  5267. fi
  5268. # Check whether --enable-silent-msi was given.
  5269. if test "${enable_silent_msi+set}" = set; then :
  5270. enableval=$enable_silent_msi;
  5271. fi
  5272. # Check whether --enable-postgresql-sdbc was given.
  5273. if test "${enable_postgresql_sdbc+set}" = set; then :
  5274. enableval=$enable_postgresql_sdbc;
  5275. fi
  5276. # Check whether --with-android-ndk was given.
  5277. if test "${with_android_ndk+set}" = set; then :
  5278. withval=$with_android_ndk;
  5279. fi
  5280. # Check whether --with-android-sdk was given.
  5281. if test "${with_android_sdk+set}" = set; then :
  5282. withval=$with_android_sdk;
  5283. fi
  5284. # Check whether --with-gnu-patch was given.
  5285. if test "${with_gnu_patch+set}" = set; then :
  5286. withval=$with_gnu_patch;
  5287. fi
  5288. # Check whether --with-build-platform-configure-options was given.
  5289. if test "${with_build_platform_configure_options+set}" = set; then :
  5290. withval=$with_build_platform_configure_options;
  5291. fi
  5292. # Check whether --with-gnu-cp was given.
  5293. if test "${with_gnu_cp+set}" = set; then :
  5294. withval=$with_gnu_cp;
  5295. fi
  5296. # Check whether --with-external-tar was given.
  5297. if test "${with_external_tar+set}" = set; then :
  5298. withval=$with_external_tar; TARFILE_LOCATION=$withval
  5299. fi
  5300. # Check whether --with-solver-and-workdir-root was given.
  5301. if test "${with_solver_and_workdir_root+set}" = set; then :
  5302. withval=$with_solver_and_workdir_root;
  5303. fi
  5304. # Check whether --with-linked-git was given.
  5305. if test "${with_linked_git+set}" = set; then :
  5306. withval=$with_linked_git; GIT_LINK_SRC=$withval
  5307. fi
  5308. # Check whether --with-openldap was given.
  5309. if test "${with_openldap+set}" = set; then :
  5310. withval=$with_openldap;
  5311. fi
  5312. # Check whether --with-vba-package-format was given.
  5313. if test "${with_vba_package_format+set}" = set; then :
  5314. withval=$with_vba_package_format;
  5315. fi
  5316. # Check whether --with-theme was given.
  5317. if test "${with_theme+set}" = set; then :
  5318. withval=$with_theme;
  5319. fi
  5320. # Check whether --with-helppack-integration was given.
  5321. if test "${with_helppack_integration+set}" = set; then :
  5322. withval=$with_helppack_integration;
  5323. fi
  5324. # Check whether --with-fonts was given.
  5325. if test "${with_fonts+set}" = set; then :
  5326. withval=$with_fonts;
  5327. fi
  5328. # Check whether --with-ppds was given.
  5329. if test "${with_ppds+set}" = set; then :
  5330. withval=$with_ppds;
  5331. fi
  5332. # Check whether --with-afms was given.
  5333. if test "${with_afms+set}" = set; then :
  5334. withval=$with_afms;
  5335. fi
  5336. # Check whether --with-agfa-monotype-fonts was given.
  5337. if test "${with_agfa_monotype_fonts+set}" = set; then :
  5338. withval=$with_agfa_monotype_fonts;
  5339. fi
  5340. # Check whether --with-epm was given.
  5341. if test "${with_epm+set}" = set; then :
  5342. withval=$with_epm;
  5343. fi
  5344. # Check whether --with-package-format was given.
  5345. if test "${with_package_format+set}" = set; then :
  5346. withval=$with_package_format;
  5347. fi
  5348. # Check whether --with-system-libs was given.
  5349. if test "${with_system_libs+set}" = set; then :
  5350. withval=$with_system_libs;
  5351. fi
  5352. # Check whether --with-system-headers was given.
  5353. if test "${with_system_headers+set}" = set; then :
  5354. withval=$with_system_headers;
  5355. else
  5356. with_system_headers="$with_system_libs"
  5357. fi
  5358. # Check whether --with-system-jars was given.
  5359. if test "${with_system_jars+set}" = set; then :
  5360. withval=$with_system_jars;
  5361. else
  5362. with_system_jars="$with_system_libs"
  5363. fi
  5364. # Check whether --with-system-stdlibs was given.
  5365. if test "${with_system_stdlibs+set}" = set; then :
  5366. withval=$with_system_stdlibs;
  5367. else
  5368. with_system_stdlibs="$with_system_libs"
  5369. fi
  5370. # Check whether --with-system-cairo was given.
  5371. if test "${with_system_cairo+set}" = set; then :
  5372. withval=$with_system_cairo;
  5373. else
  5374. with_system_cairo="$with_system_libs"
  5375. fi
  5376. # Check whether --with-system-graphite was given.
  5377. if test "${with_system_graphite+set}" = set; then :
  5378. withval=$with_system_graphite;
  5379. else
  5380. with_system_graphite="$with_system_libs"
  5381. fi
  5382. # Check whether --with-system-nss was given.
  5383. if test "${with_system_nss+set}" = set; then :
  5384. withval=$with_system_nss;
  5385. else
  5386. with_system_nss="$with_system_libs"
  5387. fi
  5388. # Check whether --with-mozilla-version was given.
  5389. if test "${with_mozilla_version+set}" = set; then :
  5390. withval=$with_mozilla_version;
  5391. fi
  5392. # Check whether --with-mozilla-toolkit was given.
  5393. if test "${with_mozilla_toolkit+set}" = set; then :
  5394. withval=$with_mozilla_toolkit;
  5395. fi
  5396. # Check whether --with-myspell-dicts was given.
  5397. if test "${with_myspell_dicts+set}" = set; then :
  5398. withval=$with_myspell_dicts;
  5399. fi
  5400. # Check whether --with-system-dicts was given.
  5401. if test "${with_system_dicts+set}" = set; then :
  5402. withval=$with_system_dicts;
  5403. fi
  5404. # Check whether --with-external-dict-dir was given.
  5405. if test "${with_external_dict_dir+set}" = set; then :
  5406. withval=$with_external_dict_dir;
  5407. fi
  5408. # Check whether --with-external-hyph-dir was given.
  5409. if test "${with_external_hyph_dir+set}" = set; then :
  5410. withval=$with_external_hyph_dir;
  5411. fi
  5412. # Check whether --with-external-thes-dir was given.
  5413. if test "${with_external_thes_dir+set}" = set; then :
  5414. withval=$with_external_thes_dir;
  5415. fi
  5416. # Check whether --with-system-zlib was given.
  5417. if test "${with_system_zlib+set}" = set; then :
  5418. withval=$with_system_zlib;
  5419. else
  5420. with_system_zlib=auto
  5421. fi
  5422. # Check whether --with-system-openssl was given.
  5423. if test "${with_system_openssl+set}" = set; then :
  5424. withval=$with_system_openssl;
  5425. else
  5426. with_system_openssl="$with_system_libs"
  5427. fi
  5428. # Check whether --with-system-jpeg was given.
  5429. if test "${with_system_jpeg+set}" = set; then :
  5430. withval=$with_system_jpeg;
  5431. else
  5432. with_system_jpeg=auto
  5433. fi
  5434. # Check whether --with-system-clucene was given.
  5435. if test "${with_system_clucene+set}" = set; then :
  5436. withval=$with_system_clucene;
  5437. else
  5438. with_system_clucene="$with_system_libs"
  5439. fi
  5440. # Check whether --with-system-expat was given.
  5441. if test "${with_system_expat+set}" = set; then :
  5442. withval=$with_system_expat;
  5443. else
  5444. with_system_expat="$with_system_libs"
  5445. fi
  5446. # Check whether --with-system-libcmis was given.
  5447. if test "${with_system_libcmis+set}" = set; then :
  5448. withval=$with_system_libcmis;
  5449. else
  5450. with_system_libcmis="$with_system_libs"
  5451. fi
  5452. # Check whether --with-system-lcms2 was given.
  5453. if test "${with_system_lcms2+set}" = set; then :
  5454. withval=$with_system_lcms2;
  5455. else
  5456. with_system_lcms2="$with_system_libs"
  5457. fi
  5458. # Check whether --with-system-libcdr was given.
  5459. if test "${with_system_libcdr+set}" = set; then :
  5460. withval=$with_system_libcdr;
  5461. else
  5462. with_system_libcdr="$with_system_libs"
  5463. fi
  5464. # Check whether --with-system-libvisio was given.
  5465. if test "${with_system_libvisio+set}" = set; then :
  5466. withval=$with_system_libvisio;
  5467. else
  5468. with_system_libvisio="$with_system_libs"
  5469. fi
  5470. # Check whether --with-system-libwpd was given.
  5471. if test "${with_system_libwpd+set}" = set; then :
  5472. withval=$with_system_libwpd;
  5473. else
  5474. with_system_libwpd="$with_system_libs"
  5475. fi
  5476. # Check whether --with-system-libwps was given.
  5477. if test "${with_system_libwps+set}" = set; then :
  5478. withval=$with_system_libwps;
  5479. else
  5480. with_system_libwps="$with_system_libs"
  5481. fi
  5482. # Check whether --with-system-libwpg was given.
  5483. if test "${with_system_libwpg+set}" = set; then :
  5484. withval=$with_system_libwpg;
  5485. else
  5486. with_system_libwpg="$with_system_libs"
  5487. fi
  5488. # Check whether --with-system-libxml was given.
  5489. if test "${with_system_libxml+set}" = set; then :
  5490. withval=$with_system_libxml;
  5491. else
  5492. with_system_libxml=auto
  5493. fi
  5494. # Check whether --with-system-icu was given.
  5495. if test "${with_system_icu+set}" = set; then :
  5496. withval=$with_system_icu;
  5497. else
  5498. with_system_icu="$with_system_libs"
  5499. fi
  5500. # Check whether --with-system-poppler was given.
  5501. if test "${with_system_poppler+set}" = set; then :
  5502. withval=$with_system_poppler;
  5503. else
  5504. with_system_poppler="$with_system_libs"
  5505. fi
  5506. # Check whether --with-system-db was given.
  5507. if test "${with_system_db+set}" = set; then :
  5508. withval=$with_system_db;
  5509. else
  5510. with_system_db="$with_system_libs"
  5511. fi
  5512. # Check whether --with-system-apache-commons was given.
  5513. if test "${with_system_apache_commons+set}" = set; then :
  5514. withval=$with_system_apache_commons;
  5515. else
  5516. with_system_apache_commons="$with_system_jars"
  5517. fi
  5518. # Check whether --with-system-mysql was given.
  5519. if test "${with_system_mysql+set}" = set; then :
  5520. withval=$with_system_mysql;
  5521. else
  5522. with_system_mysql="$with_system_libs"
  5523. fi
  5524. # Check whether --with-libmysql-path was given.
  5525. if test "${with_libmysql_path+set}" = set; then :
  5526. withval=$with_libmysql_path;
  5527. fi
  5528. # Check whether --with-system-mysql-cppconn was given.
  5529. if test "${with_system_mysql_cppconn+set}" = set; then :
  5530. withval=$with_system_mysql_cppconn;
  5531. else
  5532. with_system_mysql_cppconn="$with_system_libs"
  5533. fi
  5534. # Check whether --with-system-postgresql was given.
  5535. if test "${with_system_postgresql+set}" = set; then :
  5536. withval=$with_system_postgresql;
  5537. else
  5538. with_system_postgresql="$with_system_libs"
  5539. fi
  5540. # Check whether --with-libpq-path was given.
  5541. if test "${with_libpq_path+set}" = set; then :
  5542. withval=$with_libpq_path;
  5543. fi
  5544. # Check whether --with-system-hsqldb was given.
  5545. if test "${with_system_hsqldb+set}" = set; then :
  5546. withval=$with_system_hsqldb;
  5547. else
  5548. with_system_hsqldb="$with_system_jars"
  5549. fi
  5550. # Check whether --with-hsqldb-jar was given.
  5551. if test "${with_hsqldb_jar+set}" = set; then :
  5552. withval=$with_hsqldb_jar; HSQLDB_JAR=$withval
  5553. fi
  5554. # Check whether --with-system-beanshell was given.
  5555. if test "${with_system_beanshell+set}" = set; then :
  5556. withval=$with_system_beanshell;
  5557. else
  5558. with_system_beanshell="$with_system_jars"
  5559. fi
  5560. # Check whether --with-beanshell-jar was given.
  5561. if test "${with_beanshell_jar+set}" = set; then :
  5562. withval=$with_beanshell_jar; BSH_JAR=$withval
  5563. fi
  5564. # Check whether --with-system-rhino was given.
  5565. if test "${with_system_rhino+set}" = set; then :
  5566. withval=$with_system_rhino;
  5567. fi
  5568. # [with_system_rhino="$with_system_jars"])
  5569. # Above is not used as we have different debug interface
  5570. # patched into internal rhino. This code needs to be fixed
  5571. # before we can enable it by default.
  5572. # Check whether --with-rhino-jar was given.
  5573. if test "${with_rhino_jar+set}" = set; then :
  5574. withval=$with_rhino_jar; RHINO_JAR=$withval
  5575. fi
  5576. # Check whether --with-commons-codec-jar was given.
  5577. if test "${with_commons_codec_jar+set}" = set; then :
  5578. withval=$with_commons_codec_jar; COMMONS_CODEC_JAR=$withval
  5579. fi
  5580. # Check whether --with-commons-lang-jar was given.
  5581. if test "${with_commons_lang_jar+set}" = set; then :
  5582. withval=$with_commons_lang_jar; COMMONS_LANG_JAR=$withval
  5583. fi
  5584. # Check whether --with-commons-httpclient-jar was given.
  5585. if test "${with_commons_httpclient_jar+set}" = set; then :
  5586. withval=$with_commons_httpclient_jar; COMMONS_HTTPCLIENT_JAR=$withval
  5587. fi
  5588. # Check whether --with-commons-logging-jar was given.
  5589. if test "${with_commons_logging_jar+set}" = set; then :
  5590. withval=$with_commons_logging_jar; COMMONS_LOGGING_JAR=$withval
  5591. fi
  5592. # Check whether --with-system-servlet-api was given.
  5593. if test "${with_system_servlet_api+set}" = set; then :
  5594. withval=$with_system_servlet_api;
  5595. else
  5596. with_system_servlet_api="$with_system_jars"
  5597. fi
  5598. # Check whether --with-servlet-api-jar was given.
  5599. if test "${with_servlet_api_jar+set}" = set; then :
  5600. withval=$with_servlet_api_jar; SERVLETAPI_JAR=$withval
  5601. fi
  5602. # Check whether --with-system-jfreereport was given.
  5603. if test "${with_system_jfreereport+set}" = set; then :
  5604. withval=$with_system_jfreereport;
  5605. else
  5606. with_system_jfreereport="$with_system_jars"
  5607. fi
  5608. # Check whether --with-sac-jar was given.
  5609. if test "${with_sac_jar+set}" = set; then :
  5610. withval=$with_sac_jar; SAC_JAR=$withval
  5611. fi
  5612. # Check whether --with-libxml-jar was given.
  5613. if test "${with_libxml_jar+set}" = set; then :
  5614. withval=$with_libxml_jar; LIBXML_JAR=$withval
  5615. fi
  5616. # Check whether --with-flute-jar was given.
  5617. if test "${with_flute_jar+set}" = set; then :
  5618. withval=$with_flute_jar; FLUTE_JAR=$withval
  5619. fi
  5620. # Check whether --with-jfreereport-jar was given.
  5621. if test "${with_jfreereport_jar+set}" = set; then :
  5622. withval=$with_jfreereport_jar; JFREEREPORT_JAR=$withval
  5623. fi
  5624. # Check whether --with-liblayout-jar was given.
  5625. if test "${with_liblayout_jar+set}" = set; then :
  5626. withval=$with_liblayout_jar; LIBLAYOUT_JAR=$withval
  5627. fi
  5628. # Check whether --with-libloader-jar was given.
  5629. if test "${with_libloader_jar+set}" = set; then :
  5630. withval=$with_libloader_jar; LIBLOADER_JAR=$withval
  5631. fi
  5632. # Check whether --with-libloader-jar was given.
  5633. if test "${with_libloader_jar+set}" = set; then :
  5634. withval=$with_libloader_jar; LIBLOADER_JAR=$withval
  5635. fi
  5636. # Check whether --with-libformula-jar was given.
  5637. if test "${with_libformula_jar+set}" = set; then :
  5638. withval=$with_libformula_jar; LIBFORMULA_JAR=$withval
  5639. fi
  5640. # Check whether --with-librepository-jar was given.
  5641. if test "${with_librepository_jar+set}" = set; then :
  5642. withval=$with_librepository_jar; LIBREPOSITORY_JAR=$withval
  5643. fi
  5644. # Check whether --with-libfonts-jar was given.
  5645. if test "${with_libfonts_jar+set}" = set; then :
  5646. withval=$with_libfonts_jar; LIBFONTS_JAR=$withval
  5647. fi
  5648. # Check whether --with-libserializer-jar was given.
  5649. if test "${with_libserializer_jar+set}" = set; then :
  5650. withval=$with_libserializer_jar; LIBSERIALIZER_JAR=$withval
  5651. fi
  5652. # Check whether --with-libbase-jar was given.
  5653. if test "${with_libbase_jar+set}" = set; then :
  5654. withval=$with_libbase_jar; LIBBASE_JAR=$withval
  5655. fi
  5656. # Check whether --with-system-saxon was given.
  5657. if test "${with_system_saxon+set}" = set; then :
  5658. withval=$with_system_saxon;
  5659. else
  5660. with_system_saxon="$with_system_jars"
  5661. fi
  5662. # Check whether --with-saxon-jar was given.
  5663. if test "${with_saxon_jar+set}" = set; then :
  5664. withval=$with_saxon_jar; SAXON_JAR=$withval
  5665. fi
  5666. # Check whether --with-system-odbc was given.
  5667. if test "${with_system_odbc+set}" = set; then :
  5668. withval=$with_system_odbc;
  5669. else
  5670. with_system_odbc="$with_system_headers"
  5671. fi
  5672. # Check whether --with-system-sane was given.
  5673. if test "${with_system_sane+set}" = set; then :
  5674. withval=$with_system_sane;
  5675. else
  5676. with_system_sane="$with_system_headers"
  5677. fi
  5678. # Check whether --with-system-xextensions-headers was given.
  5679. if test "${with_system_xextensions_headers+set}" = set; then :
  5680. withval=$with_system_xextensions_headers;
  5681. fi
  5682. # Check whether --with-system-mesa-headers was given.
  5683. if test "${with_system_mesa_headers+set}" = set; then :
  5684. withval=$with_system_mesa_headers;
  5685. else
  5686. with_system_mesa_headers="$with_system_headers"
  5687. fi
  5688. # Check whether --with-system-curl was given.
  5689. if test "${with_system_curl+set}" = set; then :
  5690. withval=$with_system_curl;
  5691. else
  5692. with_system_curl=auto
  5693. fi
  5694. # Check whether --with-system-boost was given.
  5695. if test "${with_system_boost+set}" = set; then :
  5696. withval=$with_system_boost;
  5697. else
  5698. with_system_boost="$with_system_headers"
  5699. fi
  5700. # Check whether --with-system-mdds was given.
  5701. if test "${with_system_mdds+set}" = set; then :
  5702. withval=$with_system_mdds;
  5703. else
  5704. with_system_mdds="$with_system_headers"
  5705. fi
  5706. # Check whether --with-system-vigra was given.
  5707. if test "${with_system_vigra+set}" = set; then :
  5708. withval=$with_system_vigra;
  5709. else
  5710. with_system_vigra="$with_system_headers"
  5711. fi
  5712. # Check whether --with-system-neon was given.
  5713. if test "${with_system_neon+set}" = set; then :
  5714. withval=$with_system_neon;
  5715. else
  5716. with_system_neon="$with_system_libs"
  5717. fi
  5718. # Check whether --with-system-hunspell was given.
  5719. if test "${with_system_hunspell+set}" = set; then :
  5720. withval=$with_system_hunspell;
  5721. else
  5722. with_system_hunspell="$with_system_libs"
  5723. fi
  5724. # Check whether --with-system-mythes was given.
  5725. if test "${with_system_mythes+set}" = set; then :
  5726. withval=$with_system_mythes;
  5727. else
  5728. with_system_mythes="$with_system_libs"
  5729. fi
  5730. # Check whether --with-system-altlinuxhyph was given.
  5731. if test "${with_system_altlinuxhyph+set}" = set; then :
  5732. withval=$with_system_altlinuxhyph;
  5733. else
  5734. with_system_altlinuxhyph="$with_system_libs"
  5735. fi
  5736. # Check whether --with-system-lpsolve was given.
  5737. if test "${with_system_lpsolve+set}" = set; then :
  5738. withval=$with_system_lpsolve;
  5739. else
  5740. with_system_lpsolve="$with_system_libs"
  5741. fi
  5742. # Check whether --with-system-libexttextcat was given.
  5743. if test "${with_system_libexttextcat+set}" = set; then :
  5744. withval=$with_system_libexttextcat;
  5745. else
  5746. with_system_libexttextcat="$with_system_libs"
  5747. fi
  5748. # Check whether --with-system-cppunit was given.
  5749. if test "${with_system_cppunit+set}" = set; then :
  5750. withval=$with_system_cppunit;
  5751. else
  5752. with_system_cppunit="$with_system_libs"
  5753. fi
  5754. # Check whether --with-system-redland was given.
  5755. if test "${with_system_redland+set}" = set; then :
  5756. withval=$with_system_redland;
  5757. else
  5758. with_system_redland="$with_system_libs"
  5759. fi
  5760. # Check whether --with-system-mozilla was given.
  5761. if test "${with_system_mozilla+set}" = set; then :
  5762. withval=$with_system_mozilla; WITH_SYSTEM_MOZILLA=$withval
  5763. else
  5764. WITH_SYSTEM_MOZILLA=no
  5765. fi
  5766. # Check whether --with-system-mozilla-headers was given.
  5767. if test "${with_system_mozilla_headers+set}" = set; then :
  5768. withval=$with_system_mozilla_headers;
  5769. else
  5770. with_system_mozilla_headers="$with_system_headers"
  5771. fi
  5772. # Check whether --with-system-gettext was given.
  5773. if test "${with_system_gettext+set}" = set; then :
  5774. withval=$with_system_gettext;
  5775. else
  5776. with_system_gettext="$with_system_libs"
  5777. fi
  5778. # Check whether --with-system-libpng was given.
  5779. if test "${with_system_libpng+set}" = set; then :
  5780. withval=$with_system_libpng;
  5781. else
  5782. with_system_libpng=auto
  5783. fi
  5784. # Check whether --with-linker-hash-style was given.
  5785. if test "${with_linker_hash_style+set}" = set; then :
  5786. withval=$with_linker_hash_style;
  5787. fi
  5788. # Check whether --with-stlport was given.
  5789. if test "${with_stlport+set}" = set; then :
  5790. withval=$with_stlport; with_stlport=$withval
  5791. else
  5792. with_stlport=auto
  5793. fi
  5794. # Check whether --with-jdk-home was given.
  5795. if test "${with_jdk_home+set}" = set; then :
  5796. withval=$with_jdk_home;
  5797. fi
  5798. # Check whether --with-gxx_include_path was given.
  5799. if test "${with_gxx_include_path+set}" = set; then :
  5800. withval=$with_gxx_include_path;
  5801. fi
  5802. # Check whether --with-help was given.
  5803. if test "${with_help+set}" = set; then :
  5804. withval=$with_help;
  5805. fi
  5806. # Check whether --with-java was given.
  5807. if test "${with_java+set}" = set; then :
  5808. withval=$with_java; test -z "$with_java" -o "$with_java" = "yes" && with_java=java
  5809. else
  5810. with_java=java
  5811. fi
  5812. # Check whether --with-java_target_version was given.
  5813. if test "${with_java_target_version+set}" = set; then :
  5814. withval=$with_java_target_version;
  5815. fi
  5816. # Check whether --with-jvm-path was given.
  5817. if test "${with_jvm_path+set}" = set; then :
  5818. withval=$with_jvm_path;
  5819. fi
  5820. # Check whether --with-ant-home was given.
  5821. if test "${with_ant_home+set}" = set; then :
  5822. withval=$with_ant_home;
  5823. fi
  5824. # Check whether --with-junit was given.
  5825. if test "${with_junit+set}" = set; then :
  5826. withval=$with_junit;
  5827. else
  5828. with_junit=yes
  5829. fi
  5830. # Check whether --with-perl-home was given.
  5831. if test "${with_perl_home+set}" = set; then :
  5832. withval=$with_perl_home;
  5833. fi
  5834. # Check whether --with-doxygen was given.
  5835. if test "${with_doxygen+set}" = set; then :
  5836. withval=$with_doxygen;
  5837. else
  5838. with_doxygen=yes
  5839. fi
  5840. # Check whether --with-cl-home was given.
  5841. if test "${with_cl_home+set}" = set; then :
  5842. withval=$with_cl_home;
  5843. fi
  5844. # Check whether --with-mspdb-path was given.
  5845. if test "${with_mspdb_path+set}" = set; then :
  5846. withval=$with_mspdb_path;
  5847. fi
  5848. # Check whether --with-midl-path was given.
  5849. if test "${with_midl_path+set}" = set; then :
  5850. withval=$with_midl_path;
  5851. fi
  5852. # Check whether --with-csc-path was given.
  5853. if test "${with_csc_path+set}" = set; then :
  5854. withval=$with_csc_path;
  5855. fi
  5856. # Check whether --with-dotnet-framework-home was given.
  5857. if test "${with_dotnet_framework_home+set}" = set; then :
  5858. withval=$with_dotnet_framework_home;
  5859. fi
  5860. # Check whether --with-windows-sdk-home was given.
  5861. if test "${with_windows_sdk_home+set}" = set; then :
  5862. withval=$with_windows_sdk_home;
  5863. fi
  5864. # Check whether --with-directx-home was given.
  5865. if test "${with_directx_home+set}" = set; then :
  5866. withval=$with_directx_home;
  5867. fi
  5868. # Check whether --with-mozilla-build was given.
  5869. if test "${with_mozilla_build+set}" = set; then :
  5870. withval=$with_mozilla_build; MOZILLABUILD=$withval
  5871. fi
  5872. # Check whether --with-lang was given.
  5873. if test "${with_lang+set}" = set; then :
  5874. withval=$with_lang;
  5875. fi
  5876. # Kerberos and GSSAPI used only by PostgreSQL as of LibO 3.5
  5877. # Check whether --with-krb5 was given.
  5878. if test "${with_krb5+set}" = set; then :
  5879. withval=$with_krb5;
  5880. fi
  5881. # Check whether --with-gssapi was given.
  5882. if test "${with_gssapi+set}" = set; then :
  5883. withval=$with_gssapi;
  5884. fi
  5885. # Check whether --with-branding was given.
  5886. if test "${with_branding+set}" = set; then :
  5887. withval=$with_branding;
  5888. fi
  5889. # Check whether --with-intro-bitmap was given.
  5890. if test "${with_intro_bitmap+set}" = set; then :
  5891. withval=$with_intro_bitmap;
  5892. fi
  5893. # Check whether --with-intro-progressbar-color was given.
  5894. if test "${with_intro_progressbar_color+set}" = set; then :
  5895. withval=$with_intro_progressbar_color;
  5896. fi
  5897. # Check whether --with-intro-progressbar-size was given.
  5898. if test "${with_intro_progressbar_size+set}" = set; then :
  5899. withval=$with_intro_progressbar_size;
  5900. fi
  5901. # Check whether --with-intro-progressbar-position was given.
  5902. if test "${with_intro_progressbar_position+set}" = set; then :
  5903. withval=$with_intro_progressbar_position;
  5904. fi
  5905. # Check whether --with-intro-progressbar-frame-color was given.
  5906. if test "${with_intro_progressbar_frame_color+set}" = set; then :
  5907. withval=$with_intro_progressbar_frame_color;
  5908. fi
  5909. # Check whether --with-flat-logo-svg was given.
  5910. if test "${with_flat_logo_svg+set}" = set; then :
  5911. withval=$with_flat_logo_svg;
  5912. fi
  5913. # Check whether --with-about-background-svg was given.
  5914. if test "${with_about_background_svg+set}" = set; then :
  5915. withval=$with_about_background_svg;
  5916. fi
  5917. # Check whether --with-startcenter-left-bitmap was given.
  5918. if test "${with_startcenter_left_bitmap+set}" = set; then :
  5919. withval=$with_startcenter_left_bitmap;
  5920. fi
  5921. # Check whether --with-startcenter-right-bitmap was given.
  5922. if test "${with_startcenter_right_bitmap+set}" = set; then :
  5923. withval=$with_startcenter_right_bitmap;
  5924. fi
  5925. # Check whether --with-startcenter-rtl-left-bitmap was given.
  5926. if test "${with_startcenter_rtl_left_bitmap+set}" = set; then :
  5927. withval=$with_startcenter_rtl_left_bitmap;
  5928. fi
  5929. # Check whether --with-startcenter-rtl-right-bitmap was given.
  5930. if test "${with_startcenter_rtl_right_bitmap+set}" = set; then :
  5931. withval=$with_startcenter_rtl_right_bitmap;
  5932. fi
  5933. # Check whether --with-startcenter-space-bitmap was given.
  5934. if test "${with_startcenter_space_bitmap+set}" = set; then :
  5935. withval=$with_startcenter_space_bitmap;
  5936. fi
  5937. # Check whether --with-vendor was given.
  5938. if test "${with_vendor+set}" = set; then :
  5939. withval=$with_vendor;
  5940. fi
  5941. # Check whether --with-unix-wrapper was given.
  5942. if test "${with_unix_wrapper+set}" = set; then :
  5943. withval=$with_unix_wrapper;
  5944. fi
  5945. # Check whether --with-compat-oowrappers was given.
  5946. if test "${with_compat_oowrappers+set}" = set; then :
  5947. withval=$with_compat_oowrappers;
  5948. fi
  5949. # Check whether --with-asm-home was given.
  5950. if test "${with_asm_home+set}" = set; then :
  5951. withval=$with_asm_home;
  5952. fi
  5953. # Check whether --with-os-version was given.
  5954. if test "${with_os_version+set}" = set; then :
  5955. withval=$with_os_version;
  5956. fi
  5957. # Check whether --with-mingw-cross-compiler was given.
  5958. if test "${with_mingw_cross_compiler+set}" = set; then :
  5959. withval=$with_mingw_cross_compiler;
  5960. fi
  5961. # Check whether --with-build-version was given.
  5962. if test "${with_build_version+set}" = set; then :
  5963. withval=$with_build_version; with_build_version=$withval
  5964. fi
  5965. # Check whether --with-alloc was given.
  5966. if test "${with_alloc+set}" = set; then :
  5967. withval=$with_alloc;
  5968. fi
  5969. # Check whether --with-sun-templates was given.
  5970. if test "${with_sun_templates+set}" = set; then :
  5971. withval=$with_sun_templates;
  5972. fi
  5973. # Check whether --with-num-cpus was given.
  5974. if test "${with_num_cpus+set}" = set; then :
  5975. withval=$with_num_cpus;
  5976. fi
  5977. # Check whether --with-max-jobs was given.
  5978. if test "${with_max_jobs+set}" = set; then :
  5979. withval=$with_max_jobs;
  5980. fi
  5981. # Check whether --with-macosx-sdk was given.
  5982. if test "${with_macosx_sdk+set}" = set; then :
  5983. withval=$with_macosx_sdk;
  5984. fi
  5985. # Check whether --with-macosx-version-min-required was given.
  5986. if test "${with_macosx_version_min_required+set}" = set; then :
  5987. withval=$with_macosx_version_min_required;
  5988. fi
  5989. # Check whether --with-macosx-version-max-allowed was given.
  5990. if test "${with_macosx_version_max_allowed+set}" = set; then :
  5991. withval=$with_macosx_version_max_allowed;
  5992. fi
  5993. # Check whether --with-system-boost-for-build was given.
  5994. if test "${with_system_boost_for_build+set}" = set; then :
  5995. withval=$with_system_boost_for_build;
  5996. fi
  5997. # Check whether --with-system-cppunit-for-build was given.
  5998. if test "${with_system_cppunit_for_build+set}" = set; then :
  5999. withval=$with_system_cppunit_for_build;
  6000. fi
  6001. # Check whether --with-system-db-for-build was given.
  6002. if test "${with_system_db_for_build+set}" = set; then :
  6003. withval=$with_system_db_for_build;
  6004. fi
  6005. # Check whether --with-system-expat-for-build was given.
  6006. if test "${with_system_expat_for_build+set}" = set; then :
  6007. withval=$with_system_expat_for_build;
  6008. fi
  6009. # Check whether --with-system-icu-for-build was given.
  6010. if test "${with_system_icu_for_build+set}" = set; then :
  6011. withval=$with_system_icu_for_build;
  6012. fi
  6013. # Check whether --with-system-libxml-for-build was given.
  6014. if test "${with_system_libxml_for_build+set}" = set; then :
  6015. withval=$with_system_libxml_for_build;
  6016. fi
  6017. pathmunge ()
  6018. {
  6019. if test -n "$1"; then
  6020. if test "$build_os" = "cygwin"; then
  6021. PathFormat "$1"
  6022. new_path=`cygpath -u "$formatted_path"`
  6023. else
  6024. new_path="$1"
  6025. fi
  6026. if ! echo "$LO_PATH" | $EGREP -q "(^|:)$1($|:)"; then
  6027. if test "$2" = "after"; then
  6028. LO_PATH="$LO_PATH:$new_path"
  6029. else
  6030. LO_PATH="$new_path:$LO_PATH"
  6031. fi
  6032. fi
  6033. unset new_path
  6034. fi
  6035. }
  6036. for ac_prog in gawk mawk nawk awk
  6037. do
  6038. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6039. set dummy $ac_prog; ac_word=$2
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6041. $as_echo_n "checking for $ac_word... " >&6; }
  6042. if ${ac_cv_prog_AWK+:} false; then :
  6043. $as_echo_n "(cached) " >&6
  6044. else
  6045. if test -n "$AWK"; then
  6046. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6047. else
  6048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6049. for as_dir in $PATH
  6050. do
  6051. IFS=$as_save_IFS
  6052. test -z "$as_dir" && as_dir=.
  6053. for ac_exec_ext in '' $ac_executable_extensions; do
  6054. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6055. ac_cv_prog_AWK="$ac_prog"
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6057. break 2
  6058. fi
  6059. done
  6060. done
  6061. IFS=$as_save_IFS
  6062. fi
  6063. fi
  6064. AWK=$ac_cv_prog_AWK
  6065. if test -n "$AWK"; then
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6067. $as_echo "$AWK" >&6; }
  6068. else
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6070. $as_echo "no" >&6; }
  6071. fi
  6072. test -n "$AWK" && break
  6073. done
  6074. # Extract the first word of "$AWK", so it can be a program name with args.
  6075. set dummy $AWK; ac_word=$2
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6077. $as_echo_n "checking for $ac_word... " >&6; }
  6078. if ${ac_cv_path_AWK+:} false; then :
  6079. $as_echo_n "(cached) " >&6
  6080. else
  6081. case $AWK in
  6082. [\\/]* | ?:[\\/]*)
  6083. ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
  6084. ;;
  6085. *)
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6093. ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. ;;
  6101. esac
  6102. fi
  6103. AWK=$ac_cv_path_AWK
  6104. if test -n "$AWK"; then
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6106. $as_echo "$AWK" >&6; }
  6107. else
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6109. $as_echo "no" >&6; }
  6110. fi
  6111. if test -z "$AWK"; then
  6112. as_fn_error $? "install awk to run this script" "$LINENO" 5
  6113. fi
  6114. # Extract the first word of "bash", so it can be a program name with args.
  6115. set dummy bash; ac_word=$2
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6117. $as_echo_n "checking for $ac_word... " >&6; }
  6118. if ${ac_cv_path_BASH+:} false; then :
  6119. $as_echo_n "(cached) " >&6
  6120. else
  6121. case $BASH in
  6122. [\\/]* | ?:[\\/]*)
  6123. ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
  6124. ;;
  6125. *)
  6126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6127. for as_dir in $PATH
  6128. do
  6129. IFS=$as_save_IFS
  6130. test -z "$as_dir" && as_dir=.
  6131. for ac_exec_ext in '' $ac_executable_extensions; do
  6132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6133. ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
  6134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6135. break 2
  6136. fi
  6137. done
  6138. done
  6139. IFS=$as_save_IFS
  6140. ;;
  6141. esac
  6142. fi
  6143. BASH=$ac_cv_path_BASH
  6144. if test -n "$BASH"; then
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
  6146. $as_echo "$BASH" >&6; }
  6147. else
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6149. $as_echo "no" >&6; }
  6150. fi
  6151. if test -z "$BASH"; then
  6152. as_fn_error $? "bash not found in \$PATH" "$LINENO" 5
  6153. fi
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU or BSD tar" >&5
  6155. $as_echo_n "checking for GNU or BSD tar... " >&6; }
  6156. for a in $GNUTAR gtar gnutar tar /usr/sfw/bin/gtar; do
  6157. $a --version 2> /dev/null | egrep "GNU|bsdtar" 2>&1 > /dev/null
  6158. if test $? -eq 0; then
  6159. GNUTAR=$a
  6160. break
  6161. fi
  6162. done
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
  6164. $as_echo "$GNUTAR" >&6; }
  6165. if test -z "$GNUTAR"; then
  6166. as_fn_error $? "not found. install GNU or BSD tar." "$LINENO" 5
  6167. fi
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar's option to strip components" >&5
  6169. $as_echo_n "checking for tar's option to strip components... " >&6; }
  6170. $GNUTAR --help 2> /dev/null | egrep "strip-components" 2>&1 >/dev/null
  6171. if test $? -eq 0; then
  6172. STRIP_COMPONENTS="--strip-components"
  6173. else
  6174. $GNUTAR --help 2> /dev/null | egrep "strip-path" 2>&1 >/dev/null
  6175. if test $? -eq 0; then
  6176. STRIP_COMPONENTS="--strip-path"
  6177. else
  6178. STRIP_COMPONENTS="unsupported"
  6179. fi
  6180. fi
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_COMPONENTS" >&5
  6182. $as_echo "$STRIP_COMPONENTS" >&6; }
  6183. if test x$STRIP_COMPONENTS == xunsupported; then
  6184. as_fn_error $? "you need a tar that is able to strip components." "$LINENO" 5
  6185. fi
  6186. if test $_os != iOS -a $_os != Android; then
  6187. BUILD_TYPE="$BUILD_TYPE DESKTOP"
  6188. fi
  6189. if test -z "$enable_database_connectivity"; then
  6190. # Do enable database connectivity for Android for now as otherwise
  6191. # we presumably will get linking errors... We are not as far in
  6192. # the work for iOS, so we might as well disable it for iOS already.
  6193. if test $_os != iOS; then
  6194. enable_database_connectivity=yes
  6195. fi
  6196. fi
  6197. DISABLE_DBCONNECTIVITY=''
  6198. if test "$enable_database_connectivity" = yes; then
  6199. BUILD_TYPE="$BUILD_TYPE DBCONNECTIVITY"
  6200. else
  6201. DISABLE_DBCONNECTIVITY='TRUE'
  6202. SCPDEFS="$SCPDEFS -DDISABLE_DBCONNECTIVITY"
  6203. fi
  6204. if test -z "$enable_extensions"; then
  6205. # For iOS disable extensions unless specifically overridden with
  6206. # --enable-extensions.
  6207. if test $_os != iOS; then
  6208. enable_extensions=yes
  6209. fi
  6210. fi
  6211. DISABLE_EXTENSIONS=''
  6212. if test "$enable_extensions" = yes; then
  6213. BUILD_TYPE="$BUILD_TYPE EXTENSIONS"
  6214. else
  6215. DISABLE_EXTENSIONS='TRUE'
  6216. fi
  6217. if test -z "$enable_scripting"; then
  6218. # Disable scripting for iOS unless specifically overridden
  6219. # with --enable-scripting.
  6220. if test $_os != iOS; then
  6221. enable_scripting=yes
  6222. fi
  6223. fi
  6224. DISABLE_SCRIPTING=''
  6225. if test "$enable_scripting" = yes; then
  6226. BUILD_TYPE="$BUILD_TYPE SCRIPTING"
  6227. else
  6228. DISABLE_SCRIPTING='TRUE'
  6229. SCPDEFS="$SCPDEFS -DDISABLE_SCRIPTING"
  6230. fi
  6231. if test $_os = iOS; then
  6232. # Disable dynamic_loading always for iOS
  6233. enable_dynamic_loading=no
  6234. elif test -z "$enable_dynamic_loading"; then
  6235. # Otherwise enable it unless speficically disabled
  6236. enable_dynamic_loading=yes
  6237. fi
  6238. DISABLE_DYNLOADING=''
  6239. if test "$enable_dynamic_loading" = yes; then
  6240. BUILD_TYPE="$BUILD_TYPE DYNLOADING"
  6241. else
  6242. DISABLE_DYNLOADING='TRUE'
  6243. SCPDEFS="$SCPDEFS -DDISABLE_DYNLOADING"
  6244. fi
  6245. if test -n "${with_solver_and_workdir_root}"; then
  6246. if ! test -d ${with_solver_and_workdir_root}; then
  6247. as_fn_error $? "directory does not exist: ${with_solver_and_workdir_root}" "$LINENO" 5
  6248. fi
  6249. PathFormat "${with_solver_and_workdir_root}"
  6250. # IsValidFilePath in /sal/osl/w32/file_url.cxx rejects "X:\\" breaking idlc
  6251. if echo ${formatted_path} | $GREP -q '/$'; then
  6252. SOLARVER=${formatted_path}solver
  6253. else
  6254. SOLARVER=${formatted_path}/solver
  6255. fi
  6256. else
  6257. SOLARVER=${SRC_ROOT}/solver
  6258. fi
  6259. if test "$build_os" = "cygwin"; then
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cygwin gcc/g++" >&5
  6261. $as_echo_n "checking for Cygwin gcc/g++... " >&6; }
  6262. if which gcc > /dev/null && which g++ > /dev/null; then
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  6264. $as_echo "found" >&6; }
  6265. else
  6266. as_fn_error $? "Cygwin gcc and g++ are needed, please install them." "$LINENO" 5
  6267. fi
  6268. fi
  6269. # remenber SYSBASE value
  6270. if test "$enable_ccache" = "yes" -o \( "$enable_ccache" = "" -a "$enable_icecream" != "yes" -a "$build_os" != "cygwin" \); then
  6271. case "%$CC%$CXX%" in
  6272. # If $CC and/or $CXX already contain "ccache" (possibly suffixed with some verison number etc),
  6273. # assume that's good then
  6274. *%ccache[-_' ']*|*/ccache[-_' ']*)
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: ccache seems to be included in a pre-defined CC and/or CXX" >&5
  6276. $as_echo "$as_me: ccache seems to be included in a pre-defined CC and/or CXX" >&6;}
  6277. ;;
  6278. *)
  6279. # Extract the first word of "ccache", so it can be a program name with args.
  6280. set dummy ccache; ac_word=$2
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6282. $as_echo_n "checking for $ac_word... " >&6; }
  6283. if ${ac_cv_path_CCACHE+:} false; then :
  6284. $as_echo_n "(cached) " >&6
  6285. else
  6286. case $CCACHE in
  6287. [\\/]* | ?:[\\/]*)
  6288. ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
  6289. ;;
  6290. *)
  6291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6292. for as_dir in $PATH
  6293. do
  6294. IFS=$as_save_IFS
  6295. test -z "$as_dir" && as_dir=.
  6296. for ac_exec_ext in '' $ac_executable_extensions; do
  6297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6298. ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
  6299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6300. break 2
  6301. fi
  6302. done
  6303. done
  6304. IFS=$as_save_IFS
  6305. test -z "$ac_cv_path_CCACHE" && ac_cv_path_CCACHE="not found"
  6306. ;;
  6307. esac
  6308. fi
  6309. CCACHE=$ac_cv_path_CCACHE
  6310. if test -n "$CCACHE"; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  6312. $as_echo "$CCACHE" >&6; }
  6313. else
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6315. $as_echo "no" >&6; }
  6316. fi
  6317. if test "$CCACHE" = "not found"; then
  6318. CCACHE=""
  6319. else
  6320. # Need to check for ccache version: otherwise prevents
  6321. # caching of the results (like "-x objective-c++" for Mac)
  6322. if test $_os = Darwin -o $_os = iOS; then
  6323. # Check ccache version
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether version of ccache is suitable" >&5
  6325. $as_echo_n "checking whether version of ccache is suitable... " >&6; }
  6326. CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
  6327. CCACHE_NUMVER=`echo $CCACHE_VERSION | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  6328. if test "$CCACHE_VERSION" = "2.4_OOo" -o "$CCACHE_NUMVER" -ge "030100"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $CCACHE_VERSION" >&5
  6330. $as_echo "yes, $CCACHE_VERSION" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, $CCACHE_VERSION" >&5
  6333. $as_echo "no, $CCACHE_VERSION" >&6; }
  6334. CCACHE=""
  6335. fi
  6336. fi
  6337. fi
  6338. ;;
  6339. esac
  6340. else
  6341. CCACHE=""
  6342. fi
  6343. if test "$CCACHE" != ""; then
  6344. ccache_size_msg=$(ccache -s | tail -n 1 | sed 's/^[^0-9]*//' | sed -e 's/\.[0-9]*//')
  6345. ccache_size=$(echo "$ccache_size_msg" | grep "G" | sed -e 's/G.*$//')
  6346. if test "$ccache_size" = ""; then
  6347. ccache_size=$(echo "$ccache_size_msg" | grep "M" | sed -e 's/\ M.*$//')
  6348. if test "$ccache_size" = ""; then
  6349. ccache_size=0
  6350. fi
  6351. # we could not determine the size or it was less than 1GB -> disable auto-ccache
  6352. if test $ccache_size -lt 1024; then
  6353. CCACHE=""
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection" >&5
  6355. $as_echo "$as_me: WARNING: ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection" >&2;}
  6356. echo "ccache's cache size is less than 1GB using it is counter-producive: auto-ccache detection disabled" >> warn
  6357. else
  6358. # warn that ccache may be too small for debug build
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&5
  6360. $as_echo "$as_me: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&2;}
  6361. echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
  6362. fi
  6363. else
  6364. if test $ccache_size -lt 5; then
  6365. #warn that ccache may be too small for debug build
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&5
  6367. $as_echo "$as_me: WARNING: ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >&2;}
  6368. echo "ccache's cache size is less than 5GB using it may be counter-producive for debug or symbol-enabled build" >> warn
  6369. fi
  6370. fi
  6371. fi
  6372. GCC_HOME_SET="true"
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc home" >&5
  6374. $as_echo_n "checking gcc home... " >&6; }
  6375. if test -z "$with_gcc_home"; then
  6376. if test "$enable_icecream" = "yes"; then
  6377. if test -d "/usr/lib/icecc/bin"; then
  6378. GCC_HOME="/usr/lib/icecc/"
  6379. else
  6380. GCC_HOME="/opt/icecream/"
  6381. fi
  6382. else
  6383. GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
  6384. GCC_HOME_SET="false"
  6385. fi
  6386. else
  6387. GCC_HOME="$with_gcc_home"
  6388. fi
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_HOME" >&5
  6390. $as_echo "$GCC_HOME" >&6; }
  6391. if test "$GCC_HOME_SET" = "true"; then
  6392. if test -z "$CC"; then
  6393. CC="$GCC_HOME/bin/gcc"
  6394. fi
  6395. if test -z "$CXX"; then
  6396. CXX="$GCC_HOME/bin/g++"
  6397. fi
  6398. fi
  6399. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  6400. ac_ext=c
  6401. ac_cpp='$CPP $CPPFLAGS'
  6402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6405. if test -n "$ac_tool_prefix"; then
  6406. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  6407. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6409. $as_echo_n "checking for $ac_word... " >&6; }
  6410. if ${ac_cv_prog_CC+:} false; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. if test -n "$CC"; then
  6414. ac_cv_prog_CC="$CC" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6423. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. fi
  6431. fi
  6432. CC=$ac_cv_prog_CC
  6433. if test -n "$CC"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6435. $as_echo "$CC" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. fi
  6441. if test -z "$ac_cv_prog_CC"; then
  6442. ac_ct_CC=$CC
  6443. # Extract the first word of "gcc", so it can be a program name with args.
  6444. set dummy gcc; ac_word=$2
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6446. $as_echo_n "checking for $ac_word... " >&6; }
  6447. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. if test -n "$ac_ct_CC"; then
  6451. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6452. else
  6453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6454. for as_dir in $PATH
  6455. do
  6456. IFS=$as_save_IFS
  6457. test -z "$as_dir" && as_dir=.
  6458. for ac_exec_ext in '' $ac_executable_extensions; do
  6459. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6460. ac_cv_prog_ac_ct_CC="gcc"
  6461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6462. break 2
  6463. fi
  6464. done
  6465. done
  6466. IFS=$as_save_IFS
  6467. fi
  6468. fi
  6469. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6470. if test -n "$ac_ct_CC"; then
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6472. $as_echo "$ac_ct_CC" >&6; }
  6473. else
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6475. $as_echo "no" >&6; }
  6476. fi
  6477. if test "x$ac_ct_CC" = x; then
  6478. CC=""
  6479. else
  6480. case $cross_compiling:$ac_tool_warned in
  6481. yes:)
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6484. ac_tool_warned=yes ;;
  6485. esac
  6486. CC=$ac_ct_CC
  6487. fi
  6488. else
  6489. CC="$ac_cv_prog_CC"
  6490. fi
  6491. if test -z "$CC"; then
  6492. if test -n "$ac_tool_prefix"; then
  6493. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  6494. set dummy ${ac_tool_prefix}cc; ac_word=$2
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6496. $as_echo_n "checking for $ac_word... " >&6; }
  6497. if ${ac_cv_prog_CC+:} false; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. if test -n "$CC"; then
  6501. ac_cv_prog_CC="$CC" # Let the user override the test.
  6502. else
  6503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6504. for as_dir in $PATH
  6505. do
  6506. IFS=$as_save_IFS
  6507. test -z "$as_dir" && as_dir=.
  6508. for ac_exec_ext in '' $ac_executable_extensions; do
  6509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6510. ac_cv_prog_CC="${ac_tool_prefix}cc"
  6511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6512. break 2
  6513. fi
  6514. done
  6515. done
  6516. IFS=$as_save_IFS
  6517. fi
  6518. fi
  6519. CC=$ac_cv_prog_CC
  6520. if test -n "$CC"; then
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6522. $as_echo "$CC" >&6; }
  6523. else
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6525. $as_echo "no" >&6; }
  6526. fi
  6527. fi
  6528. fi
  6529. if test -z "$CC"; then
  6530. # Extract the first word of "cc", so it can be a program name with args.
  6531. set dummy cc; ac_word=$2
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6533. $as_echo_n "checking for $ac_word... " >&6; }
  6534. if ${ac_cv_prog_CC+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. if test -n "$CC"; then
  6538. ac_cv_prog_CC="$CC" # Let the user override the test.
  6539. else
  6540. ac_prog_rejected=no
  6541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6542. for as_dir in $PATH
  6543. do
  6544. IFS=$as_save_IFS
  6545. test -z "$as_dir" && as_dir=.
  6546. for ac_exec_ext in '' $ac_executable_extensions; do
  6547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6548. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  6549. ac_prog_rejected=yes
  6550. continue
  6551. fi
  6552. ac_cv_prog_CC="cc"
  6553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6554. break 2
  6555. fi
  6556. done
  6557. done
  6558. IFS=$as_save_IFS
  6559. if test $ac_prog_rejected = yes; then
  6560. # We found a bogon in the path, so make sure we never use it.
  6561. set dummy $ac_cv_prog_CC
  6562. shift
  6563. if test $# != 0; then
  6564. # We chose a different compiler from the bogus one.
  6565. # However, it has the same basename, so the bogon will be chosen
  6566. # first if we set CC to just the basename; use the full file name.
  6567. shift
  6568. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  6569. fi
  6570. fi
  6571. fi
  6572. fi
  6573. CC=$ac_cv_prog_CC
  6574. if test -n "$CC"; then
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6576. $as_echo "$CC" >&6; }
  6577. else
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6579. $as_echo "no" >&6; }
  6580. fi
  6581. fi
  6582. if test -z "$CC"; then
  6583. if test -n "$ac_tool_prefix"; then
  6584. for ac_prog in cl.exe
  6585. do
  6586. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6587. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6589. $as_echo_n "checking for $ac_word... " >&6; }
  6590. if ${ac_cv_prog_CC+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. if test -n "$CC"; then
  6594. ac_cv_prog_CC="$CC" # Let the user override the test.
  6595. else
  6596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6597. for as_dir in $PATH
  6598. do
  6599. IFS=$as_save_IFS
  6600. test -z "$as_dir" && as_dir=.
  6601. for ac_exec_ext in '' $ac_executable_extensions; do
  6602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6603. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  6604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6605. break 2
  6606. fi
  6607. done
  6608. done
  6609. IFS=$as_save_IFS
  6610. fi
  6611. fi
  6612. CC=$ac_cv_prog_CC
  6613. if test -n "$CC"; then
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6615. $as_echo "$CC" >&6; }
  6616. else
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6618. $as_echo "no" >&6; }
  6619. fi
  6620. test -n "$CC" && break
  6621. done
  6622. fi
  6623. if test -z "$CC"; then
  6624. ac_ct_CC=$CC
  6625. for ac_prog in cl.exe
  6626. do
  6627. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6628. set dummy $ac_prog; ac_word=$2
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6630. $as_echo_n "checking for $ac_word... " >&6; }
  6631. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. if test -n "$ac_ct_CC"; then
  6635. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6636. else
  6637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6638. for as_dir in $PATH
  6639. do
  6640. IFS=$as_save_IFS
  6641. test -z "$as_dir" && as_dir=.
  6642. for ac_exec_ext in '' $ac_executable_extensions; do
  6643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6644. ac_cv_prog_ac_ct_CC="$ac_prog"
  6645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6646. break 2
  6647. fi
  6648. done
  6649. done
  6650. IFS=$as_save_IFS
  6651. fi
  6652. fi
  6653. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6654. if test -n "$ac_ct_CC"; then
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6656. $as_echo "$ac_ct_CC" >&6; }
  6657. else
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6659. $as_echo "no" >&6; }
  6660. fi
  6661. test -n "$ac_ct_CC" && break
  6662. done
  6663. if test "x$ac_ct_CC" = x; then
  6664. CC=""
  6665. else
  6666. case $cross_compiling:$ac_tool_warned in
  6667. yes:)
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6670. ac_tool_warned=yes ;;
  6671. esac
  6672. CC=$ac_ct_CC
  6673. fi
  6674. fi
  6675. fi
  6676. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6677. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6678. as_fn_error $? "no acceptable C compiler found in \$PATH
  6679. See \`config.log' for more details" "$LINENO" 5; }
  6680. # Provide some information about the compiler.
  6681. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  6682. set X $ac_compile
  6683. ac_compiler=$2
  6684. for ac_option in --version -v -V -qversion; do
  6685. { { ac_try="$ac_compiler $ac_option >&5"
  6686. case "(($ac_try" in
  6687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6688. *) ac_try_echo=$ac_try;;
  6689. esac
  6690. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6691. $as_echo "$ac_try_echo"; } >&5
  6692. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6693. ac_status=$?
  6694. if test -s conftest.err; then
  6695. sed '10a\
  6696. ... rest of stderr output deleted ...
  6697. 10q' conftest.err >conftest.er1
  6698. cat conftest.er1 >&5
  6699. fi
  6700. rm -f conftest.er1 conftest.err
  6701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6702. test $ac_status = 0; }
  6703. done
  6704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end confdefs.h. */
  6706. int
  6707. main ()
  6708. {
  6709. ;
  6710. return 0;
  6711. }
  6712. _ACEOF
  6713. ac_clean_files_save=$ac_clean_files
  6714. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  6715. # Try to create an executable without -o first, disregard a.out.
  6716. # It will help us diagnose broken compilers, and finding out an intuition
  6717. # of exeext.
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  6719. $as_echo_n "checking whether the C compiler works... " >&6; }
  6720. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  6721. # The possible output files:
  6722. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  6723. ac_rmfiles=
  6724. for ac_file in $ac_files
  6725. do
  6726. case $ac_file in
  6727. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  6728. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  6729. esac
  6730. done
  6731. rm -f $ac_rmfiles
  6732. if { { ac_try="$ac_link_default"
  6733. case "(($ac_try" in
  6734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6735. *) ac_try_echo=$ac_try;;
  6736. esac
  6737. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6738. $as_echo "$ac_try_echo"; } >&5
  6739. (eval "$ac_link_default") 2>&5
  6740. ac_status=$?
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6742. test $ac_status = 0; }; then :
  6743. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  6744. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  6745. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  6746. # so that the user can short-circuit this test for compilers unknown to
  6747. # Autoconf.
  6748. for ac_file in $ac_files ''
  6749. do
  6750. test -f "$ac_file" || continue
  6751. case $ac_file in
  6752. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  6753. ;;
  6754. [ab].out )
  6755. # We found the default executable, but exeext='' is most
  6756. # certainly right.
  6757. break;;
  6758. *.* )
  6759. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  6760. then :; else
  6761. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  6762. fi
  6763. # We set ac_cv_exeext here because the later test for it is not
  6764. # safe: cross compilers may not add the suffix if given an `-o'
  6765. # argument, so we may need to know it at that point already.
  6766. # Even if this section looks crufty: it has the advantage of
  6767. # actually working.
  6768. break;;
  6769. * )
  6770. break;;
  6771. esac
  6772. done
  6773. test "$ac_cv_exeext" = no && ac_cv_exeext=
  6774. else
  6775. ac_file=''
  6776. fi
  6777. if test -z "$ac_file"; then :
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6779. $as_echo "no" >&6; }
  6780. $as_echo "$as_me: failed program was:" >&5
  6781. sed 's/^/| /' conftest.$ac_ext >&5
  6782. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6783. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6784. as_fn_error 77 "C compiler cannot create executables
  6785. See \`config.log' for more details" "$LINENO" 5; }
  6786. else
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6788. $as_echo "yes" >&6; }
  6789. fi
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  6791. $as_echo_n "checking for C compiler default output file name... " >&6; }
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  6793. $as_echo "$ac_file" >&6; }
  6794. ac_exeext=$ac_cv_exeext
  6795. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  6796. ac_clean_files=$ac_clean_files_save
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  6798. $as_echo_n "checking for suffix of executables... " >&6; }
  6799. if { { ac_try="$ac_link"
  6800. case "(($ac_try" in
  6801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6802. *) ac_try_echo=$ac_try;;
  6803. esac
  6804. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6805. $as_echo "$ac_try_echo"; } >&5
  6806. (eval "$ac_link") 2>&5
  6807. ac_status=$?
  6808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6809. test $ac_status = 0; }; then :
  6810. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  6811. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  6812. # work properly (i.e., refer to `conftest.exe'), while it won't with
  6813. # `rm'.
  6814. for ac_file in conftest.exe conftest conftest.*; do
  6815. test -f "$ac_file" || continue
  6816. case $ac_file in
  6817. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  6818. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  6819. break;;
  6820. * ) break;;
  6821. esac
  6822. done
  6823. else
  6824. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6826. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  6827. See \`config.log' for more details" "$LINENO" 5; }
  6828. fi
  6829. rm -f conftest conftest$ac_cv_exeext
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  6831. $as_echo "$ac_cv_exeext" >&6; }
  6832. rm -f conftest.$ac_ext
  6833. EXEEXT=$ac_cv_exeext
  6834. ac_exeext=$EXEEXT
  6835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6836. /* end confdefs.h. */
  6837. #include <stdio.h>
  6838. int
  6839. main ()
  6840. {
  6841. FILE *f = fopen ("conftest.out", "w");
  6842. return ferror (f) || fclose (f) != 0;
  6843. ;
  6844. return 0;
  6845. }
  6846. _ACEOF
  6847. ac_clean_files="$ac_clean_files conftest.out"
  6848. # Check that the compiler produces executables we can run. If not, either
  6849. # the compiler is broken, or we cross compile.
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  6851. $as_echo_n "checking whether we are cross compiling... " >&6; }
  6852. if test "$cross_compiling" != yes; then
  6853. { { ac_try="$ac_link"
  6854. case "(($ac_try" in
  6855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6856. *) ac_try_echo=$ac_try;;
  6857. esac
  6858. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6859. $as_echo "$ac_try_echo"; } >&5
  6860. (eval "$ac_link") 2>&5
  6861. ac_status=$?
  6862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6863. test $ac_status = 0; }
  6864. if { ac_try='./conftest$ac_cv_exeext'
  6865. { { case "(($ac_try" in
  6866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6867. *) ac_try_echo=$ac_try;;
  6868. esac
  6869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6870. $as_echo "$ac_try_echo"; } >&5
  6871. (eval "$ac_try") 2>&5
  6872. ac_status=$?
  6873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6874. test $ac_status = 0; }; }; then
  6875. cross_compiling=no
  6876. else
  6877. if test "$cross_compiling" = maybe; then
  6878. cross_compiling=yes
  6879. else
  6880. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6881. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6882. as_fn_error $? "cannot run C compiled programs.
  6883. If you meant to cross compile, use \`--host'.
  6884. See \`config.log' for more details" "$LINENO" 5; }
  6885. fi
  6886. fi
  6887. fi
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  6889. $as_echo "$cross_compiling" >&6; }
  6890. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  6891. ac_clean_files=$ac_clean_files_save
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  6893. $as_echo_n "checking for suffix of object files... " >&6; }
  6894. if ${ac_cv_objext+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. int
  6900. main ()
  6901. {
  6902. ;
  6903. return 0;
  6904. }
  6905. _ACEOF
  6906. rm -f conftest.o conftest.obj
  6907. if { { ac_try="$ac_compile"
  6908. case "(($ac_try" in
  6909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6910. *) ac_try_echo=$ac_try;;
  6911. esac
  6912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6913. $as_echo "$ac_try_echo"; } >&5
  6914. (eval "$ac_compile") 2>&5
  6915. ac_status=$?
  6916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6917. test $ac_status = 0; }; then :
  6918. for ac_file in conftest.o conftest.obj conftest.*; do
  6919. test -f "$ac_file" || continue;
  6920. case $ac_file in
  6921. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  6922. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  6923. break;;
  6924. esac
  6925. done
  6926. else
  6927. $as_echo "$as_me: failed program was:" >&5
  6928. sed 's/^/| /' conftest.$ac_ext >&5
  6929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6931. as_fn_error $? "cannot compute suffix of object files: cannot compile
  6932. See \`config.log' for more details" "$LINENO" 5; }
  6933. fi
  6934. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  6937. $as_echo "$ac_cv_objext" >&6; }
  6938. OBJEXT=$ac_cv_objext
  6939. ac_objext=$OBJEXT
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  6941. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  6942. if ${ac_cv_c_compiler_gnu+:} false; then :
  6943. $as_echo_n "(cached) " >&6
  6944. else
  6945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6946. /* end confdefs.h. */
  6947. int
  6948. main ()
  6949. {
  6950. #ifndef __GNUC__
  6951. choke me
  6952. #endif
  6953. ;
  6954. return 0;
  6955. }
  6956. _ACEOF
  6957. if ac_fn_c_try_compile "$LINENO"; then :
  6958. ac_compiler_gnu=yes
  6959. else
  6960. ac_compiler_gnu=no
  6961. fi
  6962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6963. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  6964. fi
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  6966. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  6967. if test $ac_compiler_gnu = yes; then
  6968. GCC=yes
  6969. else
  6970. GCC=
  6971. fi
  6972. ac_test_CFLAGS=${CFLAGS+set}
  6973. ac_save_CFLAGS=$CFLAGS
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  6975. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  6976. if ${ac_cv_prog_cc_g+:} false; then :
  6977. $as_echo_n "(cached) " >&6
  6978. else
  6979. ac_save_c_werror_flag=$ac_c_werror_flag
  6980. ac_c_werror_flag=yes
  6981. ac_cv_prog_cc_g=no
  6982. CFLAGS="-g"
  6983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6984. /* end confdefs.h. */
  6985. int
  6986. main ()
  6987. {
  6988. ;
  6989. return 0;
  6990. }
  6991. _ACEOF
  6992. if ac_fn_c_try_compile "$LINENO"; then :
  6993. ac_cv_prog_cc_g=yes
  6994. else
  6995. CFLAGS=""
  6996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6997. /* end confdefs.h. */
  6998. int
  6999. main ()
  7000. {
  7001. ;
  7002. return 0;
  7003. }
  7004. _ACEOF
  7005. if ac_fn_c_try_compile "$LINENO"; then :
  7006. else
  7007. ac_c_werror_flag=$ac_save_c_werror_flag
  7008. CFLAGS="-g"
  7009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7010. /* end confdefs.h. */
  7011. int
  7012. main ()
  7013. {
  7014. ;
  7015. return 0;
  7016. }
  7017. _ACEOF
  7018. if ac_fn_c_try_compile "$LINENO"; then :
  7019. ac_cv_prog_cc_g=yes
  7020. fi
  7021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7022. fi
  7023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7024. fi
  7025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7026. ac_c_werror_flag=$ac_save_c_werror_flag
  7027. fi
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  7029. $as_echo "$ac_cv_prog_cc_g" >&6; }
  7030. if test "$ac_test_CFLAGS" = set; then
  7031. CFLAGS=$ac_save_CFLAGS
  7032. elif test $ac_cv_prog_cc_g = yes; then
  7033. if test "$GCC" = yes; then
  7034. CFLAGS="-g -O2"
  7035. else
  7036. CFLAGS="-g"
  7037. fi
  7038. else
  7039. if test "$GCC" = yes; then
  7040. CFLAGS="-O2"
  7041. else
  7042. CFLAGS=
  7043. fi
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  7046. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  7047. if ${ac_cv_prog_cc_c89+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. ac_cv_prog_cc_c89=no
  7051. ac_save_CC=$CC
  7052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7053. /* end confdefs.h. */
  7054. #include <stdarg.h>
  7055. #include <stdio.h>
  7056. #include <sys/types.h>
  7057. #include <sys/stat.h>
  7058. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  7059. struct buf { int x; };
  7060. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  7061. static char *e (p, i)
  7062. char **p;
  7063. int i;
  7064. {
  7065. return p[i];
  7066. }
  7067. static char *f (char * (*g) (char **, int), char **p, ...)
  7068. {
  7069. char *s;
  7070. va_list v;
  7071. va_start (v,p);
  7072. s = g (p, va_arg (v,int));
  7073. va_end (v);
  7074. return s;
  7075. }
  7076. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  7077. function prototypes and stuff, but not '\xHH' hex character constants.
  7078. These don't provoke an error unfortunately, instead are silently treated
  7079. as 'x'. The following induces an error, until -std is added to get
  7080. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  7081. array size at least. It's necessary to write '\x00'==0 to get something
  7082. that's true only with -std. */
  7083. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  7084. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  7085. inside strings and character constants. */
  7086. #define FOO(x) 'x'
  7087. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  7088. int test (int i, double x);
  7089. struct s1 {int (*f) (int a);};
  7090. struct s2 {int (*f) (double a);};
  7091. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  7092. int argc;
  7093. char **argv;
  7094. int
  7095. main ()
  7096. {
  7097. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  7098. ;
  7099. return 0;
  7100. }
  7101. _ACEOF
  7102. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  7103. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  7104. do
  7105. CC="$ac_save_CC $ac_arg"
  7106. if ac_fn_c_try_compile "$LINENO"; then :
  7107. ac_cv_prog_cc_c89=$ac_arg
  7108. fi
  7109. rm -f core conftest.err conftest.$ac_objext
  7110. test "x$ac_cv_prog_cc_c89" != "xno" && break
  7111. done
  7112. rm -f conftest.$ac_ext
  7113. CC=$ac_save_CC
  7114. fi
  7115. # AC_CACHE_VAL
  7116. case "x$ac_cv_prog_cc_c89" in
  7117. x)
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  7119. $as_echo "none needed" >&6; } ;;
  7120. xno)
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  7122. $as_echo "unsupported" >&6; } ;;
  7123. *)
  7124. CC="$CC $ac_cv_prog_cc_c89"
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  7126. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  7127. esac
  7128. if test "x$ac_cv_prog_cc_c89" != xno; then :
  7129. fi
  7130. ac_ext=c
  7131. ac_cpp='$CPP $CPPFLAGS'
  7132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7135. fi
  7136. COMPATH=`dirname "$CC"`
  7137. if test "$COMPATH" = "."; then
  7138. for ac_prog in $CC
  7139. do
  7140. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7141. set dummy $ac_prog; ac_word=$2
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7143. $as_echo_n "checking for $ac_word... " >&6; }
  7144. if ${ac_cv_path_COMPATH+:} false; then :
  7145. $as_echo_n "(cached) " >&6
  7146. else
  7147. case $COMPATH in
  7148. [\\/]* | ?:[\\/]*)
  7149. ac_cv_path_COMPATH="$COMPATH" # Let the user override the test with a path.
  7150. ;;
  7151. *)
  7152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7153. for as_dir in $PATH
  7154. do
  7155. IFS=$as_save_IFS
  7156. test -z "$as_dir" && as_dir=.
  7157. for ac_exec_ext in '' $ac_executable_extensions; do
  7158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7159. ac_cv_path_COMPATH="$as_dir/$ac_word$ac_exec_ext"
  7160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7161. break 2
  7162. fi
  7163. done
  7164. done
  7165. IFS=$as_save_IFS
  7166. ;;
  7167. esac
  7168. fi
  7169. COMPATH=$ac_cv_path_COMPATH
  7170. if test -n "$COMPATH"; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPATH" >&5
  7172. $as_echo "$COMPATH" >&6; }
  7173. else
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7175. $as_echo "no" >&6; }
  7176. fi
  7177. test -n "$COMPATH" && break
  7178. done
  7179. COMPATH=`echo $COMPATH | $SED "s@/[^/:]*\\\$@@"`;
  7180. fi
  7181. COMPATH=`echo $COMPATH | $SED "s@/[Bb][Ii][Nn]\\\$@@"`;
  7182. if test "$_os" = "SunOS"; then
  7183. if test "$CC" = "cc"; then
  7184. for ac_prog in cc
  7185. do
  7186. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7187. set dummy $ac_prog; ac_word=$2
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7189. $as_echo_n "checking for $ac_word... " >&6; }
  7190. if ${ac_cv_path__cc+:} false; then :
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. case $_cc in
  7194. [\\/]* | ?:[\\/]*)
  7195. ac_cv_path__cc="$_cc" # Let the user override the test with a path.
  7196. ;;
  7197. *)
  7198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7199. for as_dir in $PATH
  7200. do
  7201. IFS=$as_save_IFS
  7202. test -z "$as_dir" && as_dir=.
  7203. for ac_exec_ext in '' $ac_executable_extensions; do
  7204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7205. ac_cv_path__cc="$as_dir/$ac_word$ac_exec_ext"
  7206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7207. break 2
  7208. fi
  7209. done
  7210. done
  7211. IFS=$as_save_IFS
  7212. ;;
  7213. esac
  7214. fi
  7215. _cc=$ac_cv_path__cc
  7216. if test -n "$_cc"; then
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cc" >&5
  7218. $as_echo "$_cc" >&6; }
  7219. else
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7221. $as_echo "no" >&6; }
  7222. fi
  7223. test -n "$_cc" && break
  7224. done
  7225. COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the SunStudio C/C++ compiler version" >&5
  7227. $as_echo_n "checking the SunStudio C/C++ compiler version... " >&6; }
  7228. _sunstudio_string=`$CC -V 2>&1 | grep '^cc' | $SED -e 's/.* C //'`
  7229. _sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
  7230. _sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
  7231. if test "$_sunstudio_major" != "5"; then
  7232. as_fn_error $? "found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" "$LINENO" 5
  7233. else
  7234. _sunstudio_minor=`echo $_sunstudio_version | $AWK -F. '{ if ($2 == 5) print "true"; else if ($2 == 7) print "true"; else if ($2 == 8) print "true"; else if ($2 == 9) print "true"; else print "false" }'`
  7235. if test "$_sunstudio_minor" = "false"; then
  7236. as_fn_error $? "found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" "$LINENO" 5
  7237. else
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  7239. $as_echo "checked" >&6; }
  7240. fi
  7241. fi
  7242. fi
  7243. fi
  7244. if test "$_os" = "Darwin"; then
  7245. if test "$with_macosx_version_min_required" = ""; then
  7246. with_macosx_version_min_required="10.4"
  7247. fi
  7248. if test "$with_macosx_version_max_allowed" = ""; then
  7249. with_macosx_version_max_allowed="$with_macosx_version_min_required"
  7250. fi
  7251. if test "$with_macosx_sdk" = ""; then
  7252. with_macosx_sdk="$with_macosx_version_max_allowed"
  7253. fi
  7254. case "$with_macosx_sdk" in
  7255. 10.4)
  7256. MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.4u.sdk"
  7257. if test ! -d "$MACOSX_SDK_PATH"; then
  7258. MACOSX_SDK_PATH="/Developer-old/SDKs/MacOSX10.4u.sdk"
  7259. fi
  7260. if test ! -d "$MACOSX_SDK_PATH"; then
  7261. MACOSX_SDK_PATH="/Xcode3/SDKs/MacOSX10.4u.sdk"
  7262. fi
  7263. macosx_sdk_value="1040"
  7264. ;;
  7265. 10.5)
  7266. MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.5.sdk"
  7267. if test ! -d "$MACOSX_SDK_PATH"; then
  7268. MACOSX_SDK_PATH="/Developer-old/SDKs/MacOSX10.5.sdk"
  7269. fi
  7270. if test ! -d "$MACOSX_SDK_PATH"; then
  7271. MACOSX_SDK_PATH="/Xcode3/SDKs/MacOSX10.5.sdk"
  7272. fi
  7273. macosx_sdk_value="1050"
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a SDK > 10.4 is experimental" >&5
  7275. $as_echo "$as_me: WARNING: Building with a SDK > 10.4 is experimental" >&2;}
  7276. echo "Building with a SDK > 10.4 is experimental" >> warn
  7277. ;;
  7278. 10.6)
  7279. MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.6.sdk"
  7280. if test ! -d "$MACOSX_SDK_PATH"; then
  7281. MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
  7282. fi
  7283. macosx_sdk_value="1060"
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a SDK > 10.4 is experimental" >&5
  7285. $as_echo "$as_me: WARNING: Building with a SDK > 10.4 is experimental" >&2;}
  7286. echo "Building with a SDK > 10.4 is experimental" >> warn
  7287. ;;
  7288. 10.7)
  7289. MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.7.sdk"
  7290. if test ! -d "$MACOSX_SDK_PATH"; then
  7291. MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
  7292. fi
  7293. macosx_sdk_value="1070"
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with SDK 10.7 is known to fail in vcl" >&5
  7295. $as_echo "$as_me: WARNING: Building with SDK 10.7 is known to fail in vcl" >&2;}
  7296. echo "Building with SDK 10.7 is known to fail in vcl" >> warn
  7297. ;;
  7298. *)
  7299. as_fn_error $? "$with_macosx_sdk is not a supported SDK value, supported value are 10.4, 10.5, 10.6 and 10.7" "$LINENO" 5
  7300. ;;
  7301. esac
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the presence of the SDK $with_macosx_sdk" >&5
  7303. $as_echo_n "checking the presence of the SDK $with_macosx_sdk... " >&6; }
  7304. if test -d "$MACOSX_SDK_PATH"; then
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_SDK_PATH ok" >&5
  7306. $as_echo "$MACOSX_SDK_PATH ok" >&6; }
  7307. else
  7308. as_fn_error $? "$MACOSX_SDK_PATH not found" "$LINENO" 5
  7309. fi
  7310. FRAMEWORKSHOME="$MACOSX_SDK_PATH/System/Library/Frameworks";
  7311. MACOSX_DEPLOYMENT_TARGET="$with_macosx_version_min_required"
  7312. case "$with_macosx_version_min_required" in
  7313. 10.4)
  7314. MAC_OS_X_VERSION_MIN_REQUIRED="1040"
  7315. ;;
  7316. 10.5)
  7317. MAC_OS_X_VERSION_MIN_REQUIRED="1050"
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
  7319. $as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
  7320. echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
  7321. if test -z "$save_CC"; then
  7322. CC="gcc-4.2 -m32"
  7323. CXX="g++-4.2 -m32"
  7324. fi
  7325. ;;
  7326. 10.6)
  7327. MAC_OS_X_VERSION_MIN_REQUIRED="1060"
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
  7329. $as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
  7330. echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
  7331. if test -z "$save_CC"; then
  7332. CC="gcc-4.2 -m32"
  7333. CXX="g++-4.2 -m32"
  7334. fi
  7335. ;;
  7336. 10.7)
  7337. MAC_OS_X_VERSION_MIN_REQUIRED="1070"
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&5
  7339. $as_echo "$as_me: WARNING: Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >&2;}
  7340. echo "Building with a minimum version requirement > 10.4 break 10.4 compatibility. do not use for deliverable build" >>warn
  7341. if test -z "$save_CC"; then
  7342. CC="gcc-4.2 -m32"
  7343. CXX="g++-4.2 -m32"
  7344. fi
  7345. ;;
  7346. *)
  7347. as_fn_error $? "with-macosx-version-min-required $with_macosx_version_min_required is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" "$LINENO" 5
  7348. ;;
  7349. esac
  7350. case "$with_macosx_version_max_allowed" in
  7351. 10.4)
  7352. MAC_OS_X_VERSION_MAX_ALLOWED="1040"
  7353. ;;
  7354. 10.5)
  7355. MAC_OS_X_VERSION_MAX_ALLOWED="1050"
  7356. ;;
  7357. 10.6)
  7358. MAC_OS_X_VERSION_MAX_ALLOWED="1060"
  7359. ;;
  7360. 10.7)
  7361. MAC_OS_X_VERSION_MAX_ALLOWED="1070"
  7362. ;;
  7363. *)
  7364. as_fn_error $? "with-macosx-version-max-allowed $with_macosx_version_max_allowed is not a supported value, supported value are 10.4, 10.5, 10.6 and 10.7" "$LINENO" 5
  7365. ;;
  7366. esac
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that macosx-version-min-required is coherent with macosx-version-max-allowed" >&5
  7368. $as_echo_n "checking that macosx-version-min-required is coherent with macosx-version-max-allowed... " >&6; }
  7369. if test $MAC_OS_X_VERSION_MIN_REQUIRED -gt $MAC_OS_X_VERSION_MAX_ALLOWED; then
  7370. as_fn_error $? "the version minimumn required must be inferior or equal to the version maximum allowed" "$LINENO" 5
  7371. else
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7373. $as_echo "ok" >&6; }
  7374. fi
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that macosx-version-max-allowed is coherent macos-with-sdk" >&5
  7376. $as_echo_n "checking that macosx-version-max-allowed is coherent macos-with-sdk... " >&6; }
  7377. if test $MAC_OS_X_VERSION_MAX_ALLOWED -gt $macosx_sdk_value; then
  7378. as_fn_error $? "the version maximum allowed cannot be greater thatn the sdk level" "$LINENO" 5
  7379. else
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7381. $as_echo "ok" >&6; }
  7382. fi
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED" >&5
  7384. $as_echo "$as_me: MAC_OS_X_VERSION_MIN_REQUIRED=$MAC_OS_X_VERSION_MIN_REQUIRED" >&6;}
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED" >&5
  7386. $as_echo "$as_me: MAC_OS_X_VERSION_MAX_ALLOWED=$MAC_OS_X_VERSION_MAX_ALLOWED" >&6;}
  7387. fi
  7388. if test "$_os" = "WINNT" -a "$WITH_MINGW" != yes; then
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a 64-bit LibreOffice" >&5
  7390. $as_echo_n "checking whether to build a 64-bit LibreOffice... " >&6; }
  7391. if test "$enable_cl_x64" = "" -o "$enable_cl_x64" = "no"; then
  7392. CL_X64=""
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7394. $as_echo "no" >&6; }
  7395. else
  7396. CL_X64="TRUE"
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7398. $as_echo "yes" >&6; }
  7399. fi
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use DirectX" >&5
  7401. $as_echo_n "checking whether to use DirectX... " >&6; }
  7402. if test "$enable_directx" = "yes" -o "$enable_directx" = ""; then
  7403. ENABLE_DIRECTX="TRUE"
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7405. $as_echo "yes" >&6; }
  7406. else
  7407. ENABLE_DIRECTX=""
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7409. $as_echo "no" >&6; }
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ActiveX" >&5
  7412. $as_echo_n "checking whether to use ActiveX... " >&6; }
  7413. if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
  7414. DISABLE_ACTIVEX=""
  7415. SCPDEFS="$SCPDEFS -DWITH_ACTIVEX_COMPONENT"
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7417. $as_echo "yes" >&6; }
  7418. else
  7419. DISABLE_ACTIVEX="TRUE"
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7421. $as_echo "no" >&6; }
  7422. fi
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ATL" >&5
  7424. $as_echo_n "checking whether to use ATL... " >&6; }
  7425. if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE" -o "$enable_atl" = ""; then
  7426. DISABLE_ATL=""
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7428. $as_echo "yes" >&6; }
  7429. else
  7430. DISABLE_ATL="TRUE"
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7432. $as_echo "no" >&6; }
  7433. fi
  7434. else
  7435. CL_X64=""
  7436. ENABLE_DIRECTX=""
  7437. DISABLE_ACTIVEX="TRUE"
  7438. DISABLE_ATL="TRUE"
  7439. fi
  7440. if test "$GCC" = "yes"; then
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GCC version" >&5
  7442. $as_echo_n "checking the GCC version... " >&6; }
  7443. _gcc_version=`$CC -dumpversion`
  7444. _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
  7445. GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  7446. if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$GCCVER" -ge "040100"; then
  7447. if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0"; then
  7448. export CC="$GCC_HOME/bin/gcc-4.0"
  7449. # export CC to have it available in set_soenv -> config.guess
  7450. GCCVER2=`$CC -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  7451. if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100"; then
  7452. GCCVER=$GCCVER2
  7453. fi
  7454. fi
  7455. if test "$GCCVER" -ge "040100"; then
  7456. as_fn_error $? "You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly" "$LINENO" 5
  7457. else
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: implicitly using CC=$CC" >&5
  7459. $as_echo "implicitly using CC=$CC" >&6; }
  7460. fi
  7461. else
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc $_gcc_version" >&5
  7463. $as_echo "gcc $_gcc_version" >&6; }
  7464. fi
  7465. fi
  7466. COM_GCC_IS_CLANG=
  7467. if test "$GCC" = "yes"; then
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC is actually Clang" >&5
  7469. $as_echo_n "checking whether GCC is actually Clang... " >&6; }
  7470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7471. /* end confdefs.h. */
  7472. #ifndef __clang__
  7473. you lose
  7474. #endif
  7475. int foo=42;
  7476. _ACEOF
  7477. if ac_fn_c_try_compile "$LINENO"; then :
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7479. $as_echo "yes" >&6; }
  7480. COM_GCC_IS_CLANG=TRUE
  7481. else
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7483. $as_echo "no" >&6; }
  7484. fi
  7485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7486. if test "$COM_GCC_IS_CLANG" = TRUE; then
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Clang version" >&5
  7488. $as_echo_n "checking the Clang version... " >&6; }
  7489. clang_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CC -E -P -`
  7490. CLANG_FULL_VERSION=`echo __clang_version__ | $CC -E -P -`
  7491. CLANGVER=`echo $clang_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  7492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Clang $CLANG_FULL_VERSION, $CLANGVER" >&5
  7493. $as_echo "Clang $CLANG_FULL_VERSION, $CLANGVER" >&6; }
  7494. fi
  7495. fi
  7496. # ===================================================================
  7497. # check various GCC options that Clang does not support now but maybe
  7498. # will somewhen in the future, check them even for GCC, so that the
  7499. # flags are set
  7500. # ===================================================================
  7501. HAVE_GCC_GGDB2=
  7502. HAVE_GCC_FINLINE_LIMIT=
  7503. HAVE_GCC_FNO_INLINE=
  7504. if test "$GCC" = "yes"; then
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ggdb2" >&5
  7506. $as_echo_n "checking whether $CC supports -ggdb2... " >&6; }
  7507. if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
  7508. # Option just ignored and silly warning that isn't a real
  7509. # warning printed
  7510. :
  7511. else
  7512. save_CFLAGS=$CFLAGS
  7513. CFLAGS="$CFLAGS -Werror -ggdb2"
  7514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7515. /* end confdefs.h. */
  7516. int
  7517. main ()
  7518. {
  7519. return 0;
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. if ac_fn_c_try_link "$LINENO"; then :
  7525. HAVE_GCC_GGDB2=TRUE
  7526. fi
  7527. rm -f core conftest.err conftest.$ac_objext \
  7528. conftest$ac_exeext conftest.$ac_ext
  7529. CFLAGS=$save_CFLAGS
  7530. fi
  7531. if test "$HAVE_GCC_GGDB2" = "TRUE"; then
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7533. $as_echo "yes" >&6; }
  7534. else
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7536. $as_echo "no" >&6; }
  7537. fi
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -finline-limit=0" >&5
  7539. $as_echo_n "checking whether $CC supports -finline-limit=0... " >&6; }
  7540. if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
  7541. # As above
  7542. :
  7543. else
  7544. save_CFLAGS=$CFLAGS
  7545. CFLAGS="$CFLAGS -Werror -finline-limit=0"
  7546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7547. /* end confdefs.h. */
  7548. int
  7549. main ()
  7550. {
  7551. return 0;
  7552. ;
  7553. return 0;
  7554. }
  7555. _ACEOF
  7556. if ac_fn_c_try_link "$LINENO"; then :
  7557. HAVE_GCC_FINLINE_LIMIT=TRUE
  7558. fi
  7559. rm -f core conftest.err conftest.$ac_objext \
  7560. conftest$ac_exeext conftest.$ac_ext
  7561. CFLAGS=$save_CFLAGS
  7562. fi
  7563. if test "$HAVE_GCC_FINLINE_LIMIT" = "TRUE"; then
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7565. $as_echo "yes" >&6; }
  7566. else
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7568. $as_echo "no" >&6; }
  7569. fi
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-inline" >&5
  7571. $as_echo_n "checking whether $CC supports -fno-inline... " >&6; }
  7572. if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
  7573. # Ditto
  7574. :
  7575. else
  7576. save_CFLAGS=$CFLAGS
  7577. CFLAGS="$CFLAGS -Werror -fno-inline"
  7578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7579. /* end confdefs.h. */
  7580. int
  7581. main ()
  7582. {
  7583. return 0;
  7584. ;
  7585. return 0;
  7586. }
  7587. _ACEOF
  7588. if ac_fn_c_try_link "$LINENO"; then :
  7589. HAVE_GCC_FNO_INLINE=TRUE
  7590. fi
  7591. rm -f core conftest.err conftest.$ac_objext \
  7592. conftest$ac_exeext conftest.$ac_ext
  7593. CFLAGS=$save_CFLAGS
  7594. fi
  7595. if test "$HAVE_GCC_FNO_INLINE" = "TRUE"; then
  7596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7597. $as_echo "yes" >&6; }
  7598. else
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7600. $as_echo "no" >&6; }
  7601. fi
  7602. fi
  7603. HAVE_LD_BSYMBOLIC_FUNCTIONS=
  7604. if test "$GCC" = "yes"; then
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker support " >&5
  7606. $as_echo_n "checking for -Bsymbolic-functions linker support ... " >&6; }
  7607. bsymbolic_functions_ldflags_save=$LDFLAGS
  7608. LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
  7609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7610. /* end confdefs.h. */
  7611. #include <stdio.h>
  7612. int
  7613. main ()
  7614. {
  7615. printf ("hello world\n");
  7616. ;
  7617. return 0;
  7618. }
  7619. _ACEOF
  7620. if ac_fn_c_try_link "$LINENO"; then :
  7621. HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE
  7622. fi
  7623. rm -f core conftest.err conftest.$ac_objext \
  7624. conftest$ac_exeext conftest.$ac_ext
  7625. if test "$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "TRUE"; then
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found " >&5
  7627. $as_echo "found " >&6; }
  7628. else
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found " >&5
  7630. $as_echo "not found " >&6; }
  7631. fi
  7632. LDFLAGS=$bsymbolic_functions_ldflags_save
  7633. fi
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with additional debug utilities" >&5
  7635. $as_echo_n "checking whether to build with additional debug utilities... " >&6; }
  7636. if test -n "$enable_dbgutil" -a "$enable_dbgutil" != "no"; then
  7637. PROEXT=""
  7638. PRODUCT=""
  7639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7640. $as_echo "yes" >&6; }
  7641. # cppunit and graphite expose STL in public headers
  7642. if test "$with_system_cppunit" = "yes"; then
  7643. as_fn_error $? "--with-system-cppunit conflicts with DBG_UTIL build" "$LINENO" 5
  7644. else
  7645. with_system_cppunit=no
  7646. fi
  7647. if test "$with_system_graphite" = "yes"; then
  7648. as_fn_error $? "--with-system-graphite conflicts with DBG_UTIL build" "$LINENO" 5
  7649. else
  7650. with_system_graphite=no
  7651. fi
  7652. if test "$with_system_mysql_cppconn" = "yes"; then
  7653. as_fn_error $? "--with-system-mysql-cppconn conflicts with DBG_UTIL build" "$LINENO" 5
  7654. else
  7655. with_system_mysql_cppconn=no
  7656. fi
  7657. if test $_os = WINNT -a \
  7658. \( "$enable_mozilla" != no -o \
  7659. "$enable_build_mozilla" != no \); then
  7660. # We can't build against the Mozilla stuff if using _DEBUG, will get linking errors
  7661. # See connectivity/drivers/mozab
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Also disabling Mozilla stuff then" >&5
  7663. $as_echo "$as_me: WARNING: Also disabling Mozilla stuff then" >&2;}
  7664. enable_mozilla=no
  7665. enable_build_mozilla=no
  7666. fi
  7667. else
  7668. PRODUCT="full"
  7669. PROEXT=".pro"
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, full product build" >&5
  7671. $as_echo "no, full product build" >&6; }
  7672. fi
  7673. SHOWINCLUDES_PREFIX=
  7674. if test "$_os" = "WINNT"; then
  7675. if test "$WITH_MINGW" != "yes"; then
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a friendly Microsoft C/C++ compiler installation path" >&5
  7677. $as_echo_n "checking for a friendly Microsoft C/C++ compiler installation path... " >&6; }
  7678. if test -z "$with_cl_home"; then
  7679. vctest=`./oowintool --msvc-productdir`;
  7680. if test "$CL_X64" = ""; then
  7681. if test -x "$vctest/bin/cl.exe"; then
  7682. with_cl_home=$vctest;
  7683. fi
  7684. else
  7685. if test -x "$vctest/bin/amd64/cl.exe"; then
  7686. with_cl_home=$vctest;
  7687. fi
  7688. fi
  7689. else
  7690. with_cl_home=`cygpath -u "$with_cl_home"`
  7691. fi
  7692. with_cl_home=`cygpath -d "$with_cl_home"`
  7693. with_cl_home=`cygpath -u "$with_cl_home"`
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cl_home" >&5
  7695. $as_echo "$with_cl_home" >&6; }
  7696. if test -n "$with_mspdb_path";then
  7697. with_mspdb_path=`cygpath -u "$with_mspdb_path"`
  7698. fi
  7699. if test -e "$with_mspdb_path/mspdb80.dll" -o -e "$with_mspdb_path/mspdb100.dll"; then
  7700. MSPDB_PATH="$with_mspdb_path"
  7701. fi
  7702. if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
  7703. MSPDB_PATH="$with_cl_home/../Common7/IDE"
  7704. fi
  7705. if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
  7706. MSPDB_PATH="$with_cl_home/bin"
  7707. fi
  7708. if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb100.dll"; then
  7709. MSPDB_PATH="$with_cl_home/../Common7/IDE"
  7710. fi
  7711. if test -z "$MSPDB_PATH";then
  7712. # Extract the first word of "mspdb80.dll", so it can be a program name with args.
  7713. set dummy mspdb80.dll; ac_word=$2
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7715. $as_echo_n "checking for $ac_word... " >&6; }
  7716. if ${ac_cv_path_MSPDB_PATH+:} false; then :
  7717. $as_echo_n "(cached) " >&6
  7718. else
  7719. case $MSPDB_PATH in
  7720. [\\/]* | ?:[\\/]*)
  7721. ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
  7722. ;;
  7723. *)
  7724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7725. for as_dir in $PATH
  7726. do
  7727. IFS=$as_save_IFS
  7728. test -z "$as_dir" && as_dir=.
  7729. for ac_exec_ext in '' $ac_executable_extensions; do
  7730. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7731. ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
  7732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7733. break 2
  7734. fi
  7735. done
  7736. done
  7737. IFS=$as_save_IFS
  7738. ;;
  7739. esac
  7740. fi
  7741. MSPDB_PATH=$ac_cv_path_MSPDB_PATH
  7742. if test -n "$MSPDB_PATH"; then
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSPDB_PATH" >&5
  7744. $as_echo "$MSPDB_PATH" >&6; }
  7745. else
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7747. $as_echo "no" >&6; }
  7748. fi
  7749. # Extract the first word of "mspdb100.dll", so it can be a program name with args.
  7750. set dummy mspdb100.dll; ac_word=$2
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7752. $as_echo_n "checking for $ac_word... " >&6; }
  7753. if ${ac_cv_path_MSPDB_PATH+:} false; then :
  7754. $as_echo_n "(cached) " >&6
  7755. else
  7756. case $MSPDB_PATH in
  7757. [\\/]* | ?:[\\/]*)
  7758. ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
  7759. ;;
  7760. *)
  7761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7762. for as_dir in $PATH
  7763. do
  7764. IFS=$as_save_IFS
  7765. test -z "$as_dir" && as_dir=.
  7766. for ac_exec_ext in '' $ac_executable_extensions; do
  7767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7768. ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
  7769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7770. break 2
  7771. fi
  7772. done
  7773. done
  7774. IFS=$as_save_IFS
  7775. ;;
  7776. esac
  7777. fi
  7778. MSPDB_PATH=$ac_cv_path_MSPDB_PATH
  7779. if test -n "$MSPDB_PATH"; then
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSPDB_PATH" >&5
  7781. $as_echo "$MSPDB_PATH" >&6; }
  7782. else
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7784. $as_echo "no" >&6; }
  7785. fi
  7786. MSPDB_PATH=`dirname "$MSPDB_PATH"`
  7787. fi
  7788. if test -z "$MSPDB_PATH"; then
  7789. as_fn_error $? "You need a mspdb80.dllor mspdb100.dll, make sure it is in the path or use --with-mspdb-path" "$LINENO" 5
  7790. fi
  7791. MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
  7792. MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
  7793. PATH="$MSPDB_PATH:$PATH"
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Microsoft C/C++ Compiler" >&5
  7795. $as_echo_n "checking the Microsoft C/C++ Compiler... " >&6; }
  7796. if test -z "$CC"; then
  7797. if test "$CL_X64" = ""; then
  7798. if test -x "$with_cl_home/bin/cl.exe"; then
  7799. CC="$with_cl_home/bin/cl.exe"
  7800. fi
  7801. else
  7802. if test -x "$with_cl_home/bin/amd64/cl.exe"; then
  7803. CC="$with_cl_home/bin/amd64/cl.exe"
  7804. fi
  7805. fi
  7806. if test -z "$CC"; then
  7807. # Extract the first word of "cl.exe", so it can be a program name with args.
  7808. set dummy cl.exe; ac_word=$2
  7809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7810. $as_echo_n "checking for $ac_word... " >&6; }
  7811. if ${ac_cv_path_CC+:} false; then :
  7812. $as_echo_n "(cached) " >&6
  7813. else
  7814. case $CC in
  7815. [\\/]* | ?:[\\/]*)
  7816. ac_cv_path_CC="$CC" # Let the user override the test with a path.
  7817. ;;
  7818. *)
  7819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7820. for as_dir in $PATH
  7821. do
  7822. IFS=$as_save_IFS
  7823. test -z "$as_dir" && as_dir=.
  7824. for ac_exec_ext in '' $ac_executable_extensions; do
  7825. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7826. ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
  7827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7828. break 2
  7829. fi
  7830. done
  7831. done
  7832. IFS=$as_save_IFS
  7833. ;;
  7834. esac
  7835. fi
  7836. CC=$ac_cv_path_CC
  7837. if test -n "$CC"; then
  7838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7839. $as_echo "$CC" >&6; }
  7840. else
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7842. $as_echo "no" >&6; }
  7843. fi
  7844. fi
  7845. # This gives us a posix path with 8.3 filename restrictions
  7846. CC=`cygpath -d "$CC"`
  7847. CC=`cygpath -u "$CC"`
  7848. fi
  7849. if test -n "$CC"; then
  7850. # Remove /cl.exe from CC case insensitive
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($CC)" >&5
  7852. $as_echo "found ($CC)" >&6; }
  7853. if test "$CL_X64" = ""; then
  7854. COMPATH=`echo $CC | $SED -e 's@\/[Bb][Ii][Nn]\/[cC][lL]\.[eE][xX][eE].*@@' -e 's@^.* @@'`
  7855. else
  7856. if test -n "$with_cl_home"; then
  7857. COMPATH=`echo $with_cl_home`
  7858. fi
  7859. fi
  7860. export INCLUDE=`cygpath -d "$COMPATH/Include"`
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Version of Microsoft C/C++ Compiler" >&5
  7862. $as_echo_n "checking the Version of Microsoft C/C++ Compiler... " >&6; }
  7863. # The following finds Microsoft, matches nn.nn.nnnn then pulls numbers out.
  7864. CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ {
  7865. x = match( \\\$0, /..\\...\\...../ )
  7866. CCversion = substr( \\\$0, RSTART, RLENGTH)
  7867. tokencount = split (CCversion,vertoken,\".\")
  7868. for ( i = 1 ; i <= tokencount ; i++ ) {
  7869. printf (\"%04d\",vertoken[i] )
  7870. }
  7871. }"`
  7872. if test "$CCNUMVER" -ge "001600000000"; then
  7873. COMEX=13
  7874. MSVSVER=2010
  7875. elif test "$CCNUMVER" -ge "001500000000"; then
  7876. COMEX=12
  7877. MSVSVER=2008
  7878. else
  7879. as_fn_error $? "Compiler too old. Use Microsoft Visual Studio 2008 or 2010." "$LINENO" 5
  7880. fi
  7881. PathFormat "$COMPATH"
  7882. COMPATH="$formatted_path"
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found compiler version $CCNUMVER (MSVS $MSVSVER)." >&5
  7884. $as_echo "found compiler version $CCNUMVER (MSVS $MSVSVER)." >&6; }
  7885. else
  7886. as_fn_error $? "Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." "$LINENO" 5
  7887. fi
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the dependency generation prefix (cl.exe -showIncludes)" >&5
  7889. $as_echo_n "checking the dependency generation prefix (cl.exe -showIncludes)... " >&6; }
  7890. echo "#include <stdlib.h>" > conftest.c
  7891. SHOWINCLUDES_PREFIX=`$CC -c -showIncludes conftest.c 2>/dev/null | \
  7892. grep 'stdlib\.h' | head -n1 | sed 's/ [[:alpha:]]:.*//'`
  7893. rm -f conftest.c conftest.obj
  7894. if test -z "$SHOWINCLUDES_PREFIX"; then
  7895. as_fn_error $? "cannot determine the -showIncludes prefix" "$LINENO" 5
  7896. else
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SHOWINCLUDES_PREFIX\"" >&5
  7898. $as_echo "\"$SHOWINCLUDES_PREFIX\"" >&6; }
  7899. fi
  7900. # Check for 64-bit (cross-)compiler to use to build the 64-bit
  7901. # version of the Explorer extension (and maybe other small
  7902. # bits, too) needed when installing a 32-bit LibreOffice on a
  7903. # 64-bit OS. The 64-bit Explorer extension is a feature that
  7904. # has been present since long in OOo. Don't confuse it with
  7905. # building LibreOffice itself as 64-bit code, which is
  7906. # unfished work and highly experimental.
  7907. BUILD_X64=
  7908. CXX_X64_BINARY=
  7909. LINK_X64_BINARY=
  7910. LIBMGR_X64_BINARY=
  7911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a x64 compiler and libraries for 64bit ActiveX component" >&5
  7912. $as_echo_n "checking for a x64 compiler and libraries for 64bit ActiveX component... " >&6; }
  7913. if test "$CL_X64" = "" -a -f "$with_cl_home/atlmfc/lib/amd64/atls.lib"; then
  7914. # Prefer native x64 compiler to cross-compiler, in case we are running
  7915. # the build on a 64-bit OS.
  7916. if "$with_cl_home/bin/amd64/cl.exe" -? </dev/null >/dev/null 2>&1; then
  7917. BUILD_X64=TRUE
  7918. CXX_X64_BINARY="$with_cl_home/bin/amd64/cl.exe"
  7919. LINK_X64_BINARY="$with_cl_home/bin/amd64/link.exe"
  7920. LIBMGR_X64_BINARY="$with_cl_home/bin/amd64/lib.exe"
  7921. elif "$with_cl_home/bin/x86_amd64/cl.exe" -? </dev/null >/dev/null 2>&1; then
  7922. BUILD_X64=TRUE
  7923. CXX_X64_BINARY="$with_cl_home/bin/x86_amd64/cl.exe"
  7924. LINK_X64_BINARY="$with_cl_home/bin/x86_amd64/link.exe"
  7925. LIBMGR_X64_BINARY="$with_cl_home/bin/x86_amd64/lib.exe"
  7926. fi
  7927. fi
  7928. if test "$BUILD_X64" = TRUE; then
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  7930. $as_echo "found" >&6; }
  7931. else
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  7933. $as_echo "not found" >&6; }
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Installation set will not contain the 64-bit Explorer extension" >&5
  7935. $as_echo "$as_me: WARNING: Installation set will not contain the 64-bit Explorer extension" >&2;}
  7936. fi
  7937. # These are passed to the environment through set_soenv.in as usual, and then
  7938. # used in set_wntx64.mk
  7939. else
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler is MinGW" >&5
  7941. $as_echo_n "checking the compiler is MinGW... " >&6; }
  7942. MACHINE_PREFIX=`$CC -dumpmachine`
  7943. if echo $MACHINE_PREFIX | $GREP -q mingw32; then
  7944. COMPATH=`echo "$COMPATH" | sed -e 's,/bin$,,'`
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7946. $as_echo "yes" >&6; }
  7947. else
  7948. as_fn_error $? "Compiler is not MinGW." "$LINENO" 5
  7949. fi
  7950. fi
  7951. fi
  7952. PathFormat "$MSPDB_PATH"
  7953. MSPDB_PATH="$formatted_path"
  7954. #
  7955. # prefix C with ccache if needed
  7956. #
  7957. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  7958. if test "$CCACHE" != ""; then
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is already ccached" >&5
  7960. $as_echo_n "checking whether $CC is already ccached... " >&6; }
  7961. ac_ext=c
  7962. ac_cpp='$CPP $CPPFLAGS'
  7963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7966. save_CFLAGS=$CFLAGS
  7967. CFLAGS="$CFLAGS --ccache-skip -O2"
  7968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7969. /* end confdefs.h. */
  7970. int
  7971. main ()
  7972. {
  7973. ;
  7974. return 0;
  7975. }
  7976. _ACEOF
  7977. if ac_fn_c_try_compile "$LINENO"; then :
  7978. use_ccache=yes
  7979. else
  7980. use_ccache=no
  7981. fi
  7982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7983. if test $use_ccache = yes; then
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7985. $as_echo "yes" >&6; }
  7986. else
  7987. CC="$CCACHE $CC"
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7989. $as_echo "no" >&6; }
  7990. fi
  7991. CFLAGS=$save_CFLAGS
  7992. ac_ext=c
  7993. ac_cpp='$CPP $CPPFLAGS'
  7994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7997. fi
  7998. fi
  7999. #
  8000. # determine CPU, CPUNAME, GUI, GUIBASE, ...
  8001. #
  8002. LIB64="lib"
  8003. SOLARINC=
  8004. case "$host_os" in
  8005. aix*)
  8006. COM=GCC
  8007. CPU=P
  8008. CPUNAME=POWERPC
  8009. GUI=UNX
  8010. GUIBASE=unx
  8011. OS=AIX
  8012. RTL_OS=AIX
  8013. RTL_ARCH=PowerPC
  8014. OUTPATH=unxaigppc
  8015. P_SEP=:
  8016. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8017. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8018. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8019. ;;
  8020. cygwin*)
  8021. COM=MSC
  8022. GUI=WNT
  8023. GUIBASE=WIN
  8024. OS=WNT
  8025. RTL_OS=Windows
  8026. P_SEP=";"
  8027. case "$host_cpu" in
  8028. i*86|x86_64)
  8029. if test "$CL_X64" != ""; then
  8030. CPU=X
  8031. CPUNAME=X86_64
  8032. RTL_ARCH=X86_64
  8033. LIB64="lib/x64"
  8034. OUTPATH=wntmscx$COMEX
  8035. else
  8036. CPU=I
  8037. CPUNAME=INTEL
  8038. RTL_ARCH=x86
  8039. OUTPATH=wntmsci$COMEX
  8040. fi
  8041. ;;
  8042. *)
  8043. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8044. ;;
  8045. esac
  8046. SCPDEFS="$SCPDEFS -D_MSC_VER"
  8047. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8048. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8049. ;;
  8050. darwin*)
  8051. COM=GCC
  8052. GUI=UNX
  8053. # Not sure if "Aqua" is the right term to use?
  8054. GUIBASE="aqua"
  8055. OS=MACOSX
  8056. RTL_OS=MacOSX
  8057. P_SEP=:
  8058. case "$host_cpu" in
  8059. arm*)
  8060. CPU=R
  8061. CPUNAME=ARM
  8062. RTL_ARCH=ARM_EABI
  8063. GUIBASE=cocoatouch
  8064. OUTPATH=unxiosr
  8065. OS=IOS;
  8066. ;;
  8067. powerpc*)
  8068. CPU=P
  8069. CPUNAME=POWERPC
  8070. RTL_ARCH=PowerPC
  8071. OUTPATH=unxmacxp
  8072. ;;
  8073. i*86|x86_64)
  8074. CPU=I
  8075. CPUNAME=INTEL
  8076. RTL_ARCH=x86
  8077. OUTPATH=unxmacxi
  8078. ;;
  8079. *)
  8080. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8081. ;;
  8082. esac
  8083. SOLARLIB="-L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8084. ;;
  8085. dragonfly*)
  8086. COM=GCC
  8087. GUI=UNX
  8088. GUIBASE=unx
  8089. OS=DRAGONFLY
  8090. RTL_OS=DragonFly
  8091. OUTPATH=unxdfly
  8092. P_SEP=:
  8093. case "$host_cpu" in
  8094. i*86)
  8095. CPU=I
  8096. CPUNAME=INTEL
  8097. RTL_ARCH=x86
  8098. ;;
  8099. x86_64)
  8100. CPU=X
  8101. CPUNAME=X86_64
  8102. RTL_ARCH=X86_64
  8103. ;;
  8104. *)
  8105. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8106. ;;
  8107. esac
  8108. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8109. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8110. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8111. ;;
  8112. freebsd*)
  8113. COM=GCC
  8114. GUI=UNX
  8115. GUIBASE=unx
  8116. RTL_OS=FreeBSD
  8117. OS=FREEBSD
  8118. OUTPATH=unxfbsd
  8119. P_SEP=:
  8120. case "$host_cpu" in
  8121. i*86)
  8122. CPU=I
  8123. CPUNAME=INTEL
  8124. RTL_ARCH=x86
  8125. OUTPATH=unxfbsdi
  8126. ;;
  8127. x86_64)
  8128. CPU=X
  8129. CPUNAME=X86_64
  8130. RTL_ARCH=X86_64
  8131. ;;
  8132. *)
  8133. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8134. ;;
  8135. esac
  8136. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8137. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8138. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8139. ;;
  8140. kfreebsd*)
  8141. COM=GCC
  8142. GUI=UNX
  8143. GUIBASE=unx
  8144. OS=LINUX
  8145. RTL_OS=kFreeBSD
  8146. case "$host_cpu" in
  8147. i*86)
  8148. CPU=I
  8149. CPUNAME=INTEL
  8150. RTL_ARCH=x86
  8151. OUTPATH=unxkfgi6
  8152. ;;
  8153. x86_64)
  8154. CPU=X
  8155. CPUNAME=X86_64
  8156. RTL_ARCH=X86_64
  8157. LIB64="lib64"
  8158. OUTPATH=unxkfgx6
  8159. ;;
  8160. *)
  8161. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8162. ;;
  8163. esac
  8164. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8165. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8166. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8167. ;;
  8168. linux-gnu*)
  8169. COM=GCC
  8170. GUI=UNX
  8171. GUIBASE=unx
  8172. OS=LINUX
  8173. RTL_OS=Linux
  8174. P_SEP=:
  8175. case "$host_cpu" in
  8176. alpha)
  8177. CPU=L
  8178. CPUNAME=AXP
  8179. RTL_ARCH=ALPHA
  8180. OUTPATH=unxlngaxp
  8181. ;;
  8182. arm*)
  8183. CPU=R
  8184. CPUNAME=ARM
  8185. EPM_FLAGS="-a arm"
  8186. OUTPATH=unxlngr
  8187. RTL_ARCH=ARM_EABI
  8188. case "$host_cpu" in
  8189. arm*-linux)
  8190. RTL_ARCH=ARM_OABI
  8191. ;;
  8192. esac
  8193. ;;
  8194. hppa)
  8195. CPU=H
  8196. CPUNAME=HPPA
  8197. RTL_ARCH=HPPA
  8198. EPM_FLAGS="-a hppa"
  8199. OUTPATH=unxlnghppa
  8200. ;;
  8201. i*86)
  8202. CPU=I
  8203. CPUNAME=INTEL
  8204. RTL_ARCH=x86
  8205. OUTPATH=unxlngi6
  8206. ;;
  8207. ia64)
  8208. CPU=A
  8209. CPUNAME=IA64
  8210. RTL_ARCH=IA64
  8211. OUTPATH=unxlnga
  8212. ;;
  8213. mips)
  8214. CPU=M
  8215. CPUNAME=GODSON
  8216. RTL_ARCH=MIPS_EB
  8217. EPM_FLAGS="-a mips"
  8218. OUTPATH=unxlngmips
  8219. ;;
  8220. mips64)
  8221. CPU=M
  8222. CPUNAME=GODSON
  8223. RTL_ARCH=MIPS_EB
  8224. EPM_FLAGS="-a mips64"
  8225. OUTPATH=unxlngmips
  8226. ;;
  8227. mips64el)
  8228. CPU=M
  8229. CPUNAME=GODSON
  8230. RTL_ARCH=MIPS_EL
  8231. EPM_FLAGS="-a mips64el"
  8232. OUTPATH=unxlngmips
  8233. ;;
  8234. mipsel)
  8235. CPU=M
  8236. CPUNAME=GODSON
  8237. RTL_ARCH=MIPS_EL
  8238. EPM_FLAGS="-a mipsel"
  8239. OUTPATH=unxlngmips
  8240. ;;
  8241. m68k)
  8242. CPU=6
  8243. CPUNAME=M68K
  8244. RTL_ARCH=M68K
  8245. OUTPATH=unxlngm68k
  8246. ;;
  8247. powerpc)
  8248. CPU=P
  8249. CPUNAME=POWERPC
  8250. RTL_ARCH=PowerPC
  8251. OUTPATH=unxlngppc
  8252. ;;
  8253. powerpc64)
  8254. CPU=P
  8255. CPUNAME=POWERPC64
  8256. RTL_ARCH=PowerPC_64
  8257. LIB64="lib64"
  8258. OUTPATH=unxlngppc64
  8259. ;;
  8260. sparc)
  8261. CPU=S
  8262. CPUNAME=SPARC
  8263. RTL_ARCH=SPARC
  8264. OUTPATH=unxlngs
  8265. ;;
  8266. s390)
  8267. CPU=3
  8268. CPUNAME=S390
  8269. RTL_ARCH=S390
  8270. OUTPATH=unxlngs390
  8271. ;;
  8272. s390x)
  8273. CPU=3
  8274. CPUNAME=S390x
  8275. RTL_ARCH=S390x
  8276. LIB64="lib64"
  8277. OUTPATH=unxlngs390x
  8278. ;;
  8279. x86_64)
  8280. CPU=X
  8281. CPUNAME=X86_64
  8282. RTL_ARCH=X86_64
  8283. LIB64="lib64"
  8284. OUTPATH=unxlngx6
  8285. ;;
  8286. *)
  8287. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8288. ;;
  8289. esac
  8290. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8291. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8292. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8293. ;;
  8294. linux-androideabi*)
  8295. COM=GCC
  8296. GUI=UNX
  8297. GUIBASE=android
  8298. OS=ANDROID
  8299. RTL_OS=Android
  8300. P_SEP=:
  8301. case "$host_cpu" in
  8302. arm|armel)
  8303. CPU=R
  8304. CPUNAME=ARM
  8305. RTL_ARCH=ARM_EABI
  8306. OUTPATH=unxandr
  8307. ;;
  8308. *)
  8309. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8310. ;;
  8311. esac
  8312. SOLARINC="$SOLARINC -I$SRC_ROOT/solenv/inc/$OUTPATH"
  8313. SOLARLIB="-L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8314. ;;
  8315. mingw*)
  8316. COM=GCC
  8317. GUI=WNT
  8318. GUIBASE=WIN
  8319. OS=WNT
  8320. RTL_OS=Windows
  8321. P_SEP=:
  8322. case "$host_cpu" in
  8323. i*86|x86_64)
  8324. if test "$CL_X64" != ""; then
  8325. CPU=X
  8326. CPUNAME=X86_64
  8327. RTL_ARCH=X86_84
  8328. OUTPATH=wntgccx$COMEX
  8329. else
  8330. CPU=I
  8331. CPUNAME=INTEL
  8332. RTL_ARCH=x86
  8333. OUTPATH=wntgcci$COMEX
  8334. fi
  8335. ;;
  8336. *)
  8337. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8338. ;;
  8339. esac
  8340. SOLARINC="$SOLARINC -I$SRC_ROOT/solenv/inc/win32 -I$SRC_ROOT/solenv/inc/$OUTPATH"
  8341. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8342. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8343. ;;
  8344. *netbsd*)
  8345. COM=GCC
  8346. GUI=UNX
  8347. GUIBASE=unx
  8348. OS=NETBSD
  8349. RTL_OS=NetBSD
  8350. OUTPATH=unxnbsd
  8351. P_SEP=:
  8352. case "$host_cpu" in
  8353. i*86)
  8354. CPU=I
  8355. CPUNAME=INTEL
  8356. RTL_ARCH=x86
  8357. ;;
  8358. powerpc)
  8359. CPU=P
  8360. CPUNAME=POWERPC
  8361. RTL_ARCH=PowerPC
  8362. ;;
  8363. sparc)
  8364. CPU=S
  8365. CPUNAME=SPARC
  8366. RTL_ARCH=SPARC
  8367. ;;
  8368. x86_64)
  8369. CPU=X
  8370. CPUNAME=X86_64
  8371. RTL_ARCH=X86_64
  8372. ;;
  8373. *)
  8374. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8375. ;;
  8376. esac
  8377. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8378. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8379. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8380. ;;
  8381. openbsd*)
  8382. COM=GCC
  8383. GUI=UNX
  8384. GUIBASE=unx
  8385. OS=OPENBSD
  8386. RTL_OS=OpenBSD
  8387. OUTPATH=unxobsd
  8388. P_SEP=:
  8389. case "$host_cpu" in
  8390. i*86)
  8391. CPU=I
  8392. CPUNAME=INTEL
  8393. RTL_ARCH=x86
  8394. ;;
  8395. x86_64)
  8396. CPU=X
  8397. CPUNAME=X86_64
  8398. RTL_ARCH=X86_64
  8399. ;;
  8400. *)
  8401. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8402. ;;
  8403. esac
  8404. SOLARINC="$SOLARINC -I/usr/local/include"
  8405. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8406. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8407. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8408. SOLARLIB="$SOLARLIB -L/usr/local/lib"
  8409. ;;
  8410. solaris*)
  8411. COM=GCC
  8412. GUI=UNX
  8413. GUIBASE=unx
  8414. OS=SOLARIS
  8415. RTL_OS=Solaris
  8416. P_SEP=:
  8417. case "$host_cpu" in
  8418. i*86)
  8419. CPU=I
  8420. CPUNAME=INTEL
  8421. RTL_ARCH=x86
  8422. OUTPATH=unxsogi
  8423. ;;
  8424. sparc)
  8425. CPU=S
  8426. CPUNAME=SPARC
  8427. RTL_ARCH=SPARC
  8428. OUTPATH=unxsogs
  8429. ;;
  8430. *)
  8431. as_fn_error $? "Unsupported host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  8432. ;;
  8433. esac
  8434. SOLARINC="$SOLARINC -I/usr/local/include"
  8435. SOLARLIB="-L../lib -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8436. SOLARLIB="$SOLARLIB -L${SOLARVER}/${OUTPATH}${PROEXT}/lib"
  8437. SOLARLIB="$SOLARLIB -L$SRC_ROOT/solenv/$OUTPATH/lib"
  8438. SOLARLIB="$SOLARLIB -L$COMPATH/lib"
  8439. SOLARLIB="$SOLARLIB -L/usr/local/bin -L/usr/dt/lib -L/usr/openwin/lib"
  8440. ;;
  8441. *)
  8442. as_fn_error $? "$host_os operating system is not suitable to build LibreOffice for!" "$LINENO" 5
  8443. ;;
  8444. esac
  8445. if test "$enable_headless" = "yes"; then
  8446. GUIBASE=headless
  8447. fi
  8448. INPATH="${OUTPATH}${PROEXT}"
  8449. if test -n "${with_solver_and_workdir_root}"; then
  8450. PathFormat "${with_solver_and_workdir_root}"
  8451. # IsValidFilePath in /sal/osl/w32/file_url.cxx rejects "X:\\" breaking idlc
  8452. if echo ${formatted_path} | $GREP -q '/$'; then
  8453. WORKDIR=${formatted_path}workdir/${INPATH}
  8454. else
  8455. WORKDIR=${formatted_path}/workdir/${INPATH}
  8456. fi
  8457. else
  8458. WORKDIR=${SRC_ROOT}/workdir/${INPATH}
  8459. fi
  8460. OUTDIR="${SOLARVER}/${INPATH}"
  8461. SOLARINC="-I. -I${SOLARVER}/$INPATH/inc/external -I${SOLARVER}/$INPATH/inc -I$SRC_ROOT/solenv/inc $SOLARINC"
  8462. if test "$cross_compiling" = "yes"; then
  8463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD platform configuration" >&5
  8464. $as_echo_n "checking for BUILD platform configuration... " >&6; }
  8465. echo
  8466. rm -rf CONF-FOR-BUILD config_build.mk
  8467. mkdir CONF-FOR-BUILD
  8468. tar cf - \
  8469. bin/repo-list.in \
  8470. config.guess \
  8471. config_host.mk.in \
  8472. configure \
  8473. ooo.lst.in \
  8474. oowintool \
  8475. post_download.in \
  8476. solenv/inc/langlist.mk \
  8477. solenv/inc/postset.mk \
  8478. | (cd CONF-FOR-BUILD && tar xf -)
  8479. (
  8480. unset COM GUI GUIBASE OS CPU CPUNAME
  8481. unset CC CXX SYSBASE CFLAGS
  8482. unset PYTHON_CFLAGS PYTHON_LIBS
  8483. unset AR NM OBJDUMP PKG_CONFIG RANLIB STRIP
  8484. unset CPPUNIT_CFLAGS CPPUNIT_LIBS
  8485. unset LIBXML_CFLAGS LIBXML_LIBS LIBXSLT_CFLAGS LIBXSLT_LIBS XSLTPROC
  8486. test -n "$CC_FOR_BUILD" && export CC="$CC_FOR_BUILD"
  8487. test -n "$CXX_FOR_BUILD" && export CXX="$CXX_FOR_BUILD"
  8488. test -n "$PKG_CONFIG_FOR_BUILD" && export PKG_CONFIG="$PKG_CONFIG_FOR_BUILD"
  8489. cd CONF-FOR-BUILD
  8490. sub_conf_opts=""
  8491. test -n "$enable_ccache" && sub_conf_opts="$sub_conf_opts --enable-ccache=$enable_ccache"
  8492. test -n "$with_ant_home" && sub_conf_opts="$sub_conf_opts --with-ant-home=$with_ant_home"
  8493. test $with_java = no && sub_conf_opts="$sub_conf_opts --without-java"
  8494. test $with_junit = no && sub_conf_opts="$sub_conf_opts --without-junit"
  8495. test -n "$TARFILE_LOCATION" && sub_conf_opts="$sub_conf_opts --with-external-tar=$TARFILE_LOCATION"
  8496. test -n "${with_solver_and_workdir_root}" && sub_conf_opts="$sub_conf_opts --with-solver-and-workdir-root=${with_solver_and_workdir_root}"
  8497. test -n "$with_system_boost_for_build" && sub_conf_opts="$sub_conf_opts --with-system-boost"
  8498. test -n "$with_system_cppunit_for_build" && sub_conf_opts="$sub_conf_opts --with-system-cppunit"
  8499. test -n "$with_system_db_for_build" && sub_conf_opts="$sub_conf_opts --with-system-db"
  8500. test -n "$with_system_expat_for_build" && sub_conf_opts="$sub_conf_opts --with-system-expat"
  8501. test "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" && sub_conf_opts="$sub_conf_opts --with-system-icu"
  8502. test -n "$with_system_libxml_for_build" && sub_conf_opts="$sub_conf_opts --with-system-libxml"
  8503. sub_conf_opts="$sub_conf_opts $with_build_platform_configure_options"
  8504. ./configure \
  8505. --disable-mozilla \
  8506. --disable-build-mozilla \
  8507. --disable-zenity \
  8508. --with-num-cpus="$with_num_cpus" \
  8509. --with-max-jobs="$with_max_jobs" \
  8510. --without-doxygen \
  8511. $sub_conf_opts \
  8512. 2>&1 | sed -e 's/^/ /'
  8513. test -f ./config_host.mk 2>/dev/null || exit
  8514. cp config_host.mk ../config_build.mk
  8515. cp config.log ../config.Build.log
  8516. sed -e 's,=\(.*\),="\1",' < config_host.mk > config_host.sh
  8517. . ./config_host.sh
  8518. for V in COM GUI GUIBASE OS CPU CPUNAME CC CXX GXX_INCLUDE_PATH MACOSX_DEPLOYMENT_TARGET INPATH OUTPATH \
  8519. SYSTEM_LIBXSLT; do
  8520. VV='$'$V
  8521. VV=`eval "echo $VV"`
  8522. if test -n "$VV"; then
  8523. line=${V}_FOR_BUILD='${'${V}_FOR_BUILD:-$VV'}'
  8524. echo "$line" >>build-config
  8525. fi
  8526. done
  8527. for V in OUTDIR LO_PATH SOLARINC SOLARLIB WORKDIR; do
  8528. VV='$'$V
  8529. VV=`eval "echo $VV"`
  8530. VV=`echo $VV | sed -e 's,/CONF-FOR-BUILD,,g'`
  8531. if test -n "$VV"; then
  8532. line="${V}_FOR_BUILD='$VV'"
  8533. echo "$line" >>build-config
  8534. fi
  8535. done
  8536. )
  8537. test -f CONF-FOR-BUILD/build-config || as_fn_error $? "Running configure script for BUILD system failed, see CONF-FOR-BUILD/config.log" "$LINENO" 5
  8538. test -f config_build.mk || as_fn_error $? "A file called config_build.mk was supposed to have been copied here, but it isn't found" "$LINENO" 5
  8539. perl -pi -e 's,/CONF-FOR-BUILD,,g' config_build.mk
  8540. eval `cat CONF-FOR-BUILD/build-config`
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for BUILD platform configuration... done" >&5
  8542. $as_echo "checking for BUILD platform configuration... done" >&6; }
  8543. rm -rf CONF-FOR-BUILD
  8544. else
  8545. CC_FOR_BUILD="$CC"
  8546. CXX_FOR_BUILD="$CXX"
  8547. CC_FOR_BUILD="$CC"
  8548. COM_FOR_BUILD="$COM"
  8549. CPUNAME_FOR_BUILD="$CPUNAME"
  8550. CPU_FOR_BUILD="$CPU"
  8551. CXX_FOR_BUILD="$CXX"
  8552. GUIBASE_FOR_BUILD="$GUIBASE"
  8553. GUI_FOR_BUILD="$GUI"
  8554. INPATH_FOR_BUILD="$INPATH"
  8555. MACOSX_DEPLOYMENT_TARGET_FOR_BUILD="$MACOSX_DEPLOYMENT_TARGET"
  8556. OS_FOR_BUILD="$OS"
  8557. OUTDIR_FOR_BUILD="$OUTDIR"
  8558. OUTPATH_FOR_BUILD="$OUTPATH"
  8559. WORKDIR_FOR_BUILD="$WORKDIR"
  8560. fi
  8561. UPD="`echo 3.6 | sed "s/\.//"`0"
  8562. SOURCEVERSION="OOO$UPD"
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable crashdump feature" >&5
  8564. $as_echo_n "checking whether to enable crashdump feature... " >&6; }
  8565. if test "$enable_crashdump" = "yes"; then
  8566. ENABLE_CRASHDUMP="TRUE"
  8567. BUILD_TYPE="$BUILD_TYPE CRASHREP"
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8569. $as_echo "yes" >&6; }
  8570. else
  8571. ENABLE_CRASHDUMP=""
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8573. $as_echo "no" >&6; }
  8574. fi
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn warnings to errors" >&5
  8576. $as_echo_n "checking whether to turn warnings to errors... " >&6; }
  8577. if test -n "$enable_werror" -a "$enable_werror" != "no"; then
  8578. EXTERNAL_WARNINGS_NOT_ERRORS="FALSE"
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8580. $as_echo "yes" >&6; }
  8581. else
  8582. EXTERNAL_WARNINGS_NOT_ERRORS="TRUE"
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8584. $as_echo "no" >&6; }
  8585. fi
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do a debug build" >&5
  8587. $as_echo_n "checking whether to do a debug build... " >&6; }
  8588. if test -n "$enable_debug" && test "$enable_debug" != "no"; then
  8589. if test "$enable_debug" = "y" || test "$enable_debug" = "yes"; then
  8590. ENABLE_DEBUG="TRUE"
  8591. ENABLE_DEBUG_FOR=all
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8593. $as_echo "yes" >&6; }
  8594. else
  8595. ENABLE_DEBUG=""
  8596. ENABLE_DEBUG_FOR="$enable_debug"
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: for $enable_debug" >&5
  8598. $as_echo "for $enable_debug" >&6; }
  8599. fi
  8600. else
  8601. ENABLE_DEBUG=""
  8602. ENABLE_DEBUG_FOR=""
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8604. $as_echo "no" >&6; }
  8605. fi
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use linkoo for the smoketest installation" >&5
  8607. $as_echo_n "checking whether to use linkoo for the smoketest installation... " >&6; }
  8608. if test "$enable_linkoo" = "no"; then
  8609. DISABLE_LINKOO="TRUE"
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8611. $as_echo "no" >&6; }
  8612. else
  8613. DISABLE_LINKOO=
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8615. $as_echo "yes" >&6; }
  8616. fi
  8617. # Set the ENABLE_LTO variable
  8618. # ===================================================================
  8619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use link-time optimization" >&5
  8620. $as_echo_n "checking whether to use link-time optimization... " >&6; }
  8621. if test -n "$enable_lto" -a "$enable_lto" != "no"; then
  8622. ENABLE_LTO="TRUE"
  8623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8624. $as_echo "yes" >&6; }
  8625. else
  8626. ENABLE_LTO=""
  8627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8628. $as_echo "no" >&6; }
  8629. fi
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include symbols" >&5
  8631. $as_echo_n "checking whether to include symbols... " >&6; }
  8632. if test -n "$enable_symbols" -a "$enable_symbols" != "no"; then
  8633. ENABLE_SYMBOLS="TRUE"
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8635. $as_echo "yes" >&6; }
  8636. else
  8637. ENABLE_SYMBOLS=
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8639. $as_echo "no" >&6; }
  8640. fi
  8641. if test "$enable_headless" = "yes"; then
  8642. # be sure to do not mess with uneeded stuff
  8643. test_randr=no
  8644. test_xrender=no
  8645. test_cups=no
  8646. test_fontconfig=yes
  8647. test_gtk=no
  8648. build_gstreamer=no
  8649. test_tde=no
  8650. test_kde=no
  8651. test_kde4=no
  8652. test_unix_quickstarter=no
  8653. test_cairo=no
  8654. fi
  8655. if test "$enable_cups" = "no"; then
  8656. test_cups=no
  8657. ENABLE_CUPS="NO"
  8658. elif test "$enable_cups" = "yes"; then
  8659. if test $_os = iOS -o $_os = Android; then
  8660. as_fn_error $? "CUPS makes no sense for $_os" "$LINENO" 5
  8661. fi
  8662. ENABLE_CUPS="YES"
  8663. elif test $_os = iOS -o $_os = Android; then
  8664. ENABLE_CUPS=NO
  8665. else
  8666. ENABLE_CUPS="YES"
  8667. fi
  8668. if test "$test_cups" = "yes"; then
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cups support is present" >&5
  8670. $as_echo_n "checking whether cups support is present... " >&6; }
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsPrintFiles in -lcups" >&5
  8672. $as_echo_n "checking for cupsPrintFiles in -lcups... " >&6; }
  8673. if ${ac_cv_lib_cups_cupsPrintFiles+:} false; then :
  8674. $as_echo_n "(cached) " >&6
  8675. else
  8676. ac_check_lib_save_LIBS=$LIBS
  8677. LIBS="-lcups $LIBS"
  8678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8679. /* end confdefs.h. */
  8680. /* Override any GCC internal prototype to avoid an error.
  8681. Use char because int might match the return type of a GCC
  8682. builtin and then its argument prototype would still apply. */
  8683. #ifdef __cplusplus
  8684. extern "C"
  8685. #endif
  8686. char cupsPrintFiles ();
  8687. int
  8688. main ()
  8689. {
  8690. return cupsPrintFiles ();
  8691. ;
  8692. return 0;
  8693. }
  8694. _ACEOF
  8695. if ac_fn_c_try_link "$LINENO"; then :
  8696. ac_cv_lib_cups_cupsPrintFiles=yes
  8697. else
  8698. ac_cv_lib_cups_cupsPrintFiles=no
  8699. fi
  8700. rm -f core conftest.err conftest.$ac_objext \
  8701. conftest$ac_exeext conftest.$ac_ext
  8702. LIBS=$ac_check_lib_save_LIBS
  8703. fi
  8704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cups_cupsPrintFiles" >&5
  8705. $as_echo "$ac_cv_lib_cups_cupsPrintFiles" >&6; }
  8706. if test "x$ac_cv_lib_cups_cupsPrintFiles" = xyes; then :
  8707. :
  8708. fi
  8709. ac_ext=c
  8710. ac_cpp='$CPP $CPPFLAGS'
  8711. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8712. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8713. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  8715. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  8716. # On Suns, sometimes $CPP names a directory.
  8717. if test -n "$CPP" && test -d "$CPP"; then
  8718. CPP=
  8719. fi
  8720. if test -z "$CPP"; then
  8721. if ${ac_cv_prog_CPP+:} false; then :
  8722. $as_echo_n "(cached) " >&6
  8723. else
  8724. # Double quotes because CPP needs to be expanded
  8725. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  8726. do
  8727. ac_preproc_ok=false
  8728. for ac_c_preproc_warn_flag in '' yes
  8729. do
  8730. # Use a header file that comes with gcc, so configuring glibc
  8731. # with a fresh cross-compiler works.
  8732. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8733. # <limits.h> exists even on freestanding compilers.
  8734. # On the NeXT, cc -E runs the code through the compiler's parser,
  8735. # not just through cpp. "Syntax error" is here to catch this case.
  8736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8737. /* end confdefs.h. */
  8738. #ifdef __STDC__
  8739. # include <limits.h>
  8740. #else
  8741. # include <assert.h>
  8742. #endif
  8743. Syntax error
  8744. _ACEOF
  8745. if ac_fn_c_try_cpp "$LINENO"; then :
  8746. else
  8747. # Broken: fails on valid input.
  8748. continue
  8749. fi
  8750. rm -f conftest.err conftest.i conftest.$ac_ext
  8751. # OK, works on sane cases. Now check whether nonexistent headers
  8752. # can be detected and how.
  8753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8754. /* end confdefs.h. */
  8755. #include <ac_nonexistent.h>
  8756. _ACEOF
  8757. if ac_fn_c_try_cpp "$LINENO"; then :
  8758. # Broken: success on invalid input.
  8759. continue
  8760. else
  8761. # Passes both tests.
  8762. ac_preproc_ok=:
  8763. break
  8764. fi
  8765. rm -f conftest.err conftest.i conftest.$ac_ext
  8766. done
  8767. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8768. rm -f conftest.i conftest.err conftest.$ac_ext
  8769. if $ac_preproc_ok; then :
  8770. break
  8771. fi
  8772. done
  8773. ac_cv_prog_CPP=$CPP
  8774. fi
  8775. CPP=$ac_cv_prog_CPP
  8776. else
  8777. ac_cv_prog_CPP=$CPP
  8778. fi
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  8780. $as_echo "$CPP" >&6; }
  8781. ac_preproc_ok=false
  8782. for ac_c_preproc_warn_flag in '' yes
  8783. do
  8784. # Use a header file that comes with gcc, so configuring glibc
  8785. # with a fresh cross-compiler works.
  8786. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8787. # <limits.h> exists even on freestanding compilers.
  8788. # On the NeXT, cc -E runs the code through the compiler's parser,
  8789. # not just through cpp. "Syntax error" is here to catch this case.
  8790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8791. /* end confdefs.h. */
  8792. #ifdef __STDC__
  8793. # include <limits.h>
  8794. #else
  8795. # include <assert.h>
  8796. #endif
  8797. Syntax error
  8798. _ACEOF
  8799. if ac_fn_c_try_cpp "$LINENO"; then :
  8800. else
  8801. # Broken: fails on valid input.
  8802. continue
  8803. fi
  8804. rm -f conftest.err conftest.i conftest.$ac_ext
  8805. # OK, works on sane cases. Now check whether nonexistent headers
  8806. # can be detected and how.
  8807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8808. /* end confdefs.h. */
  8809. #include <ac_nonexistent.h>
  8810. _ACEOF
  8811. if ac_fn_c_try_cpp "$LINENO"; then :
  8812. # Broken: success on invalid input.
  8813. continue
  8814. else
  8815. # Passes both tests.
  8816. ac_preproc_ok=:
  8817. break
  8818. fi
  8819. rm -f conftest.err conftest.i conftest.$ac_ext
  8820. done
  8821. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8822. rm -f conftest.i conftest.err conftest.$ac_ext
  8823. if $ac_preproc_ok; then :
  8824. else
  8825. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8826. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8827. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  8828. See \`config.log' for more details" "$LINENO" 5; }
  8829. fi
  8830. ac_ext=c
  8831. ac_cpp='$CPP $CPPFLAGS'
  8832. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8833. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8834. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8836. $as_echo_n "checking for ANSI C header files... " >&6; }
  8837. if ${ac_cv_header_stdc+:} false; then :
  8838. $as_echo_n "(cached) " >&6
  8839. else
  8840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8841. /* end confdefs.h. */
  8842. #include <stdlib.h>
  8843. #include <stdarg.h>
  8844. #include <string.h>
  8845. #include <float.h>
  8846. int
  8847. main ()
  8848. {
  8849. ;
  8850. return 0;
  8851. }
  8852. _ACEOF
  8853. if ac_fn_c_try_compile "$LINENO"; then :
  8854. ac_cv_header_stdc=yes
  8855. else
  8856. ac_cv_header_stdc=no
  8857. fi
  8858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8859. if test $ac_cv_header_stdc = yes; then
  8860. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8862. /* end confdefs.h. */
  8863. #include <string.h>
  8864. _ACEOF
  8865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8866. $EGREP "memchr" >/dev/null 2>&1; then :
  8867. else
  8868. ac_cv_header_stdc=no
  8869. fi
  8870. rm -f conftest*
  8871. fi
  8872. if test $ac_cv_header_stdc = yes; then
  8873. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8875. /* end confdefs.h. */
  8876. #include <stdlib.h>
  8877. _ACEOF
  8878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8879. $EGREP "free" >/dev/null 2>&1; then :
  8880. else
  8881. ac_cv_header_stdc=no
  8882. fi
  8883. rm -f conftest*
  8884. fi
  8885. if test $ac_cv_header_stdc = yes; then
  8886. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8887. if test "$cross_compiling" = yes; then :
  8888. :
  8889. else
  8890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8891. /* end confdefs.h. */
  8892. #include <ctype.h>
  8893. #include <stdlib.h>
  8894. #if ((' ' & 0x0FF) == 0x020)
  8895. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8896. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8897. #else
  8898. # define ISLOWER(c) \
  8899. (('a' <= (c) && (c) <= 'i') \
  8900. || ('j' <= (c) && (c) <= 'r') \
  8901. || ('s' <= (c) && (c) <= 'z'))
  8902. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8903. #endif
  8904. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8905. int
  8906. main ()
  8907. {
  8908. int i;
  8909. for (i = 0; i < 256; i++)
  8910. if (XOR (islower (i), ISLOWER (i))
  8911. || toupper (i) != TOUPPER (i))
  8912. return 2;
  8913. return 0;
  8914. }
  8915. _ACEOF
  8916. if ac_fn_c_try_run "$LINENO"; then :
  8917. else
  8918. ac_cv_header_stdc=no
  8919. fi
  8920. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8921. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8922. fi
  8923. fi
  8924. fi
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8926. $as_echo "$ac_cv_header_stdc" >&6; }
  8927. if test $ac_cv_header_stdc = yes; then
  8928. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8929. fi
  8930. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8931. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8932. inttypes.h stdint.h unistd.h
  8933. do :
  8934. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8935. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8936. "
  8937. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8938. cat >>confdefs.h <<_ACEOF
  8939. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8940. _ACEOF
  8941. fi
  8942. done
  8943. ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
  8944. if test "x$ac_cv_header_cups_cups_h" = xyes; then :
  8945. $as_echo "#define HAVE_CUPS_H 1" >>confdefs.h
  8946. fi
  8947. if test "$ac_cv_lib_cups_cupsPrintFiles" != "yes" -a "$ac_cv_header_cups_cups_h" != "yes"; then
  8948. as_fn_error $? "Could not find CUPS. Install libcupsys2-dev or cups???-devel." "$LINENO" 5
  8949. fi
  8950. fi
  8951. # fontconfig checks
  8952. if test "$test_fontconfig" = "yes"; then
  8953. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8954. if test -n "$ac_tool_prefix"; then
  8955. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8956. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8958. $as_echo_n "checking for $ac_word... " >&6; }
  8959. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  8960. $as_echo_n "(cached) " >&6
  8961. else
  8962. case $PKG_CONFIG in
  8963. [\\/]* | ?:[\\/]*)
  8964. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8965. ;;
  8966. *)
  8967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8968. for as_dir in $PATH
  8969. do
  8970. IFS=$as_save_IFS
  8971. test -z "$as_dir" && as_dir=.
  8972. for ac_exec_ext in '' $ac_executable_extensions; do
  8973. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8974. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  8975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8976. break 2
  8977. fi
  8978. done
  8979. done
  8980. IFS=$as_save_IFS
  8981. ;;
  8982. esac
  8983. fi
  8984. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8985. if test -n "$PKG_CONFIG"; then
  8986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8987. $as_echo "$PKG_CONFIG" >&6; }
  8988. else
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8990. $as_echo "no" >&6; }
  8991. fi
  8992. fi
  8993. if test -z "$ac_cv_path_PKG_CONFIG"; then
  8994. ac_pt_PKG_CONFIG=$PKG_CONFIG
  8995. # Extract the first word of "pkg-config", so it can be a program name with args.
  8996. set dummy pkg-config; ac_word=$2
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8998. $as_echo_n "checking for $ac_word... " >&6; }
  8999. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  9000. $as_echo_n "(cached) " >&6
  9001. else
  9002. case $ac_pt_PKG_CONFIG in
  9003. [\\/]* | ?:[\\/]*)
  9004. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  9005. ;;
  9006. *)
  9007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9008. for as_dir in $PATH
  9009. do
  9010. IFS=$as_save_IFS
  9011. test -z "$as_dir" && as_dir=.
  9012. for ac_exec_ext in '' $ac_executable_extensions; do
  9013. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9014. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9016. break 2
  9017. fi
  9018. done
  9019. done
  9020. IFS=$as_save_IFS
  9021. ;;
  9022. esac
  9023. fi
  9024. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  9025. if test -n "$ac_pt_PKG_CONFIG"; then
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  9027. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  9028. else
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9030. $as_echo "no" >&6; }
  9031. fi
  9032. if test "x$ac_pt_PKG_CONFIG" = x; then
  9033. PKG_CONFIG=""
  9034. else
  9035. case $cross_compiling:$ac_tool_warned in
  9036. yes:)
  9037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9039. ac_tool_warned=yes ;;
  9040. esac
  9041. PKG_CONFIG=$ac_pt_PKG_CONFIG
  9042. fi
  9043. else
  9044. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  9045. fi
  9046. fi
  9047. if test -n "$PKG_CONFIG"; then
  9048. _pkg_min_version=0.9.0
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  9050. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  9051. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  9052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9053. $as_echo "yes" >&6; }
  9054. else
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9056. $as_echo "no" >&6; }
  9057. PKG_CONFIG=""
  9058. fi
  9059. fi
  9060. pkg_failed=no
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
  9062. $as_echo_n "checking for FONTCONFIG... " >&6; }
  9063. if test -n "$FONTCONFIG_CFLAGS"; then
  9064. pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
  9065. elif test -n "$PKG_CONFIG"; then
  9066. if test -n "$PKG_CONFIG" && \
  9067. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2.0\""; } >&5
  9068. ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 2>&5
  9069. ac_status=$?
  9070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9071. test $ac_status = 0; }; then
  9072. pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>/dev/null`
  9073. else
  9074. pkg_failed=yes
  9075. fi
  9076. else
  9077. pkg_failed=untried
  9078. fi
  9079. if test -n "$FONTCONFIG_LIBS"; then
  9080. pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
  9081. elif test -n "$PKG_CONFIG"; then
  9082. if test -n "$PKG_CONFIG" && \
  9083. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2.0\""; } >&5
  9084. ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2.0") 2>&5
  9085. ac_status=$?
  9086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9087. test $ac_status = 0; }; then
  9088. pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>/dev/null`
  9089. else
  9090. pkg_failed=yes
  9091. fi
  9092. else
  9093. pkg_failed=untried
  9094. fi
  9095. if test $pkg_failed = yes; then
  9096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9097. $as_echo "no" >&6; }
  9098. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9099. _pkg_short_errors_supported=yes
  9100. else
  9101. _pkg_short_errors_supported=no
  9102. fi
  9103. if test $_pkg_short_errors_supported = yes; then
  9104. FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.2.0" 2>&1`
  9105. else
  9106. FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.2.0" 2>&1`
  9107. fi
  9108. # Put the nasty error message in config.log where it belongs
  9109. echo "$FONTCONFIG_PKG_ERRORS" >&5
  9110. as_fn_error $? "Package requirements (fontconfig >= 2.2.0) were not met:
  9111. $FONTCONFIG_PKG_ERRORS
  9112. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9113. installed software in a non-standard prefix.
  9114. Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  9115. and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  9116. See the pkg-config man page for more details." "$LINENO" 5
  9117. elif test $pkg_failed = untried; then
  9118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9119. $as_echo "no" >&6; }
  9120. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9122. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  9123. is in your PATH or set the PKG_CONFIG environment variable to the full
  9124. path to pkg-config.
  9125. Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
  9126. and FONTCONFIG_LIBS to avoid the need to call pkg-config.
  9127. See the pkg-config man page for more details.
  9128. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9129. See \`config.log' for more details" "$LINENO" 5; }
  9130. else
  9131. FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
  9132. FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9134. $as_echo "yes" >&6; }
  9135. fi
  9136. else
  9137. case "$BUILD_TYPE" in
  9138. *FONTCONFIG*)
  9139. FONTCONFIG_LIBS="-lfontconfig"
  9140. ;;
  9141. esac
  9142. fi
  9143. if test -z "$TARFILE_LOCATION"; then
  9144. TARFILE_LOCATION="$SRC_ROOT/src"
  9145. fi
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we want to fetch tarballs" >&5
  9147. $as_echo_n "checking whether we want to fetch tarballs... " >&6; }
  9148. if test "$enable_fetch_external" != "no"; then
  9149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9150. $as_echo "yes" >&6; }
  9151. DO_FETCH_TARBALLS="YES"
  9152. else
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9154. $as_echo "no" >&6; }
  9155. DO_FETCH_TARBALLS="NO"
  9156. fi
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable filters for legacy binary file formats (StarOffice 5.2)" >&5
  9158. $as_echo_n "checking whether to enable filters for legacy binary file formats (StarOffice 5.2)... " >&6; }
  9159. if test "$enable_binfilter" = "no"; then
  9160. WITH_BINFILTER="NO"
  9161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9162. $as_echo "no" >&6; }
  9163. else
  9164. WITH_BINFILTER="YES"
  9165. BUILD_TYPE="$BUILD_TYPE BINFILTER"
  9166. GIT_REPO_NAMES="$GIT_REPO_NAMES binfilter"
  9167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9168. $as_echo "yes" >&6; }
  9169. fi
  9170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build help" >&5
  9171. $as_echo_n "checking whether to build help... " >&6; }
  9172. if test "$with_help" != "no" -a $_os != iOS -a $_os != Android; then
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9174. $as_echo "yes" >&6; }
  9175. BUILD_TYPE="$BUILD_TYPE HELP"
  9176. SCPDEFS="$SCPDEFS -DWITH_HELP"
  9177. GIT_REPO_NAMES="$GIT_REPO_NAMES help"
  9178. else
  9179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9180. $as_echo "no" >&6; }
  9181. fi
  9182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include MySpell dictionaries" >&5
  9183. $as_echo_n "checking whether to include MySpell dictionaries... " >&6; }
  9184. if test -z "$with_myspell_dicts" -o "$with_myspell_dicts" = "yes"; then
  9185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9186. $as_echo "yes" >&6; }
  9187. WITH_MYSPELL_DICTS=YES
  9188. BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
  9189. GIT_REPO_NAMES="$GIT_REPO_NAMES dictionaries"
  9190. else
  9191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9192. $as_echo "no" >&6; }
  9193. WITH_MYSPELL_DICTS=NO
  9194. fi
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dicts from external paths" >&5
  9196. $as_echo_n "checking whether to use dicts from external paths... " >&6; }
  9197. if test -z "$with_system_dicts" -o "$with_system_dicts" != "no"; then
  9198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9199. $as_echo "yes" >&6; }
  9200. SYSTEM_DICTS=YES
  9201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spelling dictionary directory" >&5
  9202. $as_echo_n "checking for spelling dictionary directory... " >&6; }
  9203. if test -n "$with_external_dict_dir"; then
  9204. DICT_SYSTEM_DIR=file://$with_external_dict_dir
  9205. else
  9206. DICT_SYSTEM_DIR=file:///usr/share/hunspell
  9207. if test ! -d /usr/share/hunspell -a -d /usr/share/myspell; then
  9208. DICT_SYSTEM_DIR=file:///usr/share/myspell
  9209. fi
  9210. fi
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DICT_SYSTEM_DIR" >&5
  9212. $as_echo "$DICT_SYSTEM_DIR" >&6; }
  9213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyphenation patterns directory" >&5
  9214. $as_echo_n "checking for hyphenation patterns directory... " >&6; }
  9215. if test -n "$with_external_hyph_dir"; then
  9216. HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
  9217. else
  9218. HYPH_SYSTEM_DIR=file:///usr/share/hyphen
  9219. fi
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPH_SYSTEM_DIR" >&5
  9221. $as_echo "$HYPH_SYSTEM_DIR" >&6; }
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thesaurus directory" >&5
  9223. $as_echo_n "checking for thesaurus directory... " >&6; }
  9224. if test -n "$with_external_thes_dir"; then
  9225. THES_SYSTEM_DIR=file://$with_external_thes_dir
  9226. else
  9227. THES_SYSTEM_DIR=file:///usr/share/mythes
  9228. fi
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THES_SYSTEM_DIR" >&5
  9230. $as_echo "$THES_SYSTEM_DIR" >&6; }
  9231. else
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9233. $as_echo "no" >&6; }
  9234. SYSTEM_DICTS=NO
  9235. fi
  9236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pch feature" >&5
  9237. $as_echo_n "checking whether to enable pch feature... " >&6; }
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, obsolete" >&5
  9239. $as_echo "no, obsolete" >&6; }
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  9241. $as_echo_n "checking for GNU make... " >&6; }
  9242. # try to use our own make if it is available and GNUMAKE was not already defined
  9243. if test -z "$GNUMAKE"; then
  9244. if test -x "/opt/lo/bin/make"; then
  9245. GNUMAKE="/opt/lo/bin/make"
  9246. fi
  9247. fi
  9248. for a in "$MAKE" "$GNUMAKE" make gmake gnumake; do
  9249. if test -n "$a"; then
  9250. $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
  9251. if test $? -eq 0; then
  9252. GNUMAKE=$a
  9253. break
  9254. fi
  9255. fi
  9256. done
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE" >&5
  9258. $as_echo "$GNUMAKE" >&6; }
  9259. if test -z "$GNUMAKE"; then
  9260. as_fn_error $? "not found. install GNU make." "$LINENO" 5
  9261. fi
  9262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU make version" >&5
  9263. $as_echo_n "checking the GNU make version... " >&6; }
  9264. _make_version=`$GNUMAKE --version | grep GNU | $GREP -v GPL | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
  9265. _make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  9266. if test "$_make_longver" -ge "038200"; then
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE $_make_version" >&5
  9268. $as_echo "$GNUMAKE $_make_version" >&6; }
  9269. elif test "$_make_longver" -ge "038100"; then
  9270. if test "$build_os" = "cygwin"; then
  9271. as_fn_error $? "failed ($GNUMAKE version >= 3.82 needed" "$LINENO" 5
  9272. fi
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE $_make_version" >&5
  9274. $as_echo "$GNUMAKE $_make_version" >&6; }
  9275. for ac_prog in sha1sum sha1 shasum
  9276. do
  9277. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9278. set dummy $ac_prog; ac_word=$2
  9279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9280. $as_echo_n "checking for $ac_word... " >&6; }
  9281. if ${ac_cv_path_SHA1SUM+:} false; then :
  9282. $as_echo_n "(cached) " >&6
  9283. else
  9284. case $SHA1SUM in
  9285. [\\/]* | ?:[\\/]*)
  9286. ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
  9287. ;;
  9288. *)
  9289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9290. for as_dir in $PATH
  9291. do
  9292. IFS=$as_save_IFS
  9293. test -z "$as_dir" && as_dir=.
  9294. for ac_exec_ext in '' $ac_executable_extensions; do
  9295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9296. ac_cv_path_SHA1SUM="$as_dir/$ac_word$ac_exec_ext"
  9297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9298. break 2
  9299. fi
  9300. done
  9301. done
  9302. IFS=$as_save_IFS
  9303. ;;
  9304. esac
  9305. fi
  9306. SHA1SUM=$ac_cv_path_SHA1SUM
  9307. if test -n "$SHA1SUM"; then
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  9309. $as_echo "$SHA1SUM" >&6; }
  9310. else
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9312. $as_echo "no" >&6; }
  9313. fi
  9314. test -n "$SHA1SUM" && break
  9315. done
  9316. if test -z "$SHA1SUM"; then
  9317. as_fn_error $? "install the approproate SHA-1 checksumming program for this OS" "$LINENO" 5
  9318. fi
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make bug 20033" >&5
  9320. $as_echo_n "checking for GNU make bug 20033... " >&6; }
  9321. TESTGMAKEBUG20033=`mktemp -d tmp.XXXXXX`
  9322. cat > $TESTGMAKEBUG20033/Makefile << EOF
  9323. A := \$(wildcard *.a)
  9324. .PHONY: all
  9325. all: \$(A:.a=.b)
  9326. @echo survived bug20033. #dont kill these tabs, you will break the Makefile!!!!
  9327. .PHONY: setup
  9328. setup:
  9329. @touch 1.a 2.a 3.a 4.a 5.a 6.a
  9330. define d1
  9331. @echo lala \$(1)
  9332. @sleep 1
  9333. endef
  9334. define d2
  9335. @echo tyty \$(1)
  9336. @sleep 1
  9337. endef
  9338. %.b : %.a
  9339. \$(eval CHECKSUM := \$(word 1,\$(shell cat \$^ | $SHA1SUM))) \$(if \$(wildcard \$(CACHEDIR)/\$(CHECKSUM)),\
  9340. \$(call d1,\$(CHECKSUM)),\
  9341. \$(call d2,\$(CHECKSUM)))
  9342. EOF
  9343. if test -z "`(cd $TESTGMAKEBUG20033 && $GNUMAKE setup && $GNUMAKE -j)|grep survived`"; then
  9344. no_parallelism_make="YES"
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, disable parallelism" >&5
  9346. $as_echo "yes, disable parallelism" >&6; }
  9347. else
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keep parallelism enabled" >&5
  9349. $as_echo "no, keep parallelism enabled" >&6; }
  9350. fi
  9351. rm -rf $TESTGMAKEBUG20033
  9352. else
  9353. as_fn_error $? "failed ($GNUMAKE version >= 3.81 needed" "$LINENO" 5
  9354. fi
  9355. # find if gnumake support file function
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU make supports the 'file' function" >&5
  9357. $as_echo_n "checking whether GNU make supports the 'file' function... " >&6; }
  9358. TESTGMAKEFILEFUNC="`mktemp -d -t tst.XXXXXX`"
  9359. cat > $TESTGMAKEFILEFUNC/Makefile << EOF
  9360. \$(file >test.txt,Success )
  9361. .PHONY: all
  9362. all:
  9363. @cat test.txt
  9364. EOF
  9365. $GNUMAKE -C $TESTGMAKEFILEFUNC 2>/dev/null 1>&2
  9366. if test -f $TESTGMAKEFILEFUNC/test.txt ; then
  9367. HAVE_GNUMAKE_FILE_FUNC="YES"
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9369. $as_echo "yes" >&6; }
  9370. else
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9372. $as_echo "no" >&6; }
  9373. fi
  9374. rm -rf $TESTGMAKEFILEFUNC
  9375. _make_ver_check=`$GNUMAKE --version | grep LibreOffice`;
  9376. STALE_MAKE=
  9377. make_warning=
  9378. if test "$_make_ver_check" = ""; then
  9379. STALE_MAKE=TRUE
  9380. fi
  9381. HAVE_LD_HASH_STYLE=FALSE
  9382. WITH_LINKER_HASH_STYLE=
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style gcc linker support " >&5
  9384. $as_echo_n "checking for --hash-style gcc linker support ... " >&6; }
  9385. if test "$GCC" = "yes"; then
  9386. if test -z "$with_linker_hash_style" -o "$with_linker_hash_style" = "yes"; then
  9387. hash_styles="gnu sysv"
  9388. elif test "$with_linker_hash_style" = "no"; then
  9389. hash_styles=
  9390. else
  9391. hash_styles="$with_linker_hash_style"
  9392. fi
  9393. for hash_style in $hash_styles; do
  9394. test "$HAVE_LD_HASH_STYLE" = "TRUE" && continue
  9395. hash_style_ldflags_save=$LDFLAGS
  9396. LDFLAGS="$LDFLAGS -Wl,--hash-style=$hash_style"
  9397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9398. /* end confdefs.h. */
  9399. #include <stdio.h>
  9400. int
  9401. main ()
  9402. {
  9403. printf ("");
  9404. ;
  9405. return 0;
  9406. }
  9407. _ACEOF
  9408. if ac_fn_c_try_link "$LINENO"; then :
  9409. if ./conftest$EXEEXT; then
  9410. HAVE_LD_HASH_STYLE=TRUE
  9411. WITH_LINKER_HASH_STYLE=$hash_style
  9412. fi
  9413. else
  9414. HAVE_LD_HASH_STYLE=FALSE
  9415. fi
  9416. rm -f core conftest.err conftest.$ac_objext \
  9417. conftest$ac_exeext conftest.$ac_ext
  9418. LDFLAGS=$hash_style_ldflags_save
  9419. done
  9420. if test "$HAVE_LD_HASH_STYLE" = "TRUE"; then
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LINKER_HASH_STYLE " >&5
  9422. $as_echo "$WITH_LINKER_HASH_STYLE " >&6; }
  9423. else
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5
  9425. $as_echo "no " >&6; }
  9426. fi
  9427. LDFLAGS=$hash_style_ldflags_save
  9428. else
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5
  9430. $as_echo "no " >&6; }
  9431. fi
  9432. if test -z "$with_perl_home"; then
  9433. # Extract the first word of "perl", so it can be a program name with args.
  9434. set dummy perl; ac_word=$2
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9436. $as_echo_n "checking for $ac_word... " >&6; }
  9437. if ${ac_cv_path_PERL+:} false; then :
  9438. $as_echo_n "(cached) " >&6
  9439. else
  9440. case $PERL in
  9441. [\\/]* | ?:[\\/]*)
  9442. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  9443. ;;
  9444. *)
  9445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9446. for as_dir in $PATH
  9447. do
  9448. IFS=$as_save_IFS
  9449. test -z "$as_dir" && as_dir=.
  9450. for ac_exec_ext in '' $ac_executable_extensions; do
  9451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9452. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  9453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9454. break 2
  9455. fi
  9456. done
  9457. done
  9458. IFS=$as_save_IFS
  9459. ;;
  9460. esac
  9461. fi
  9462. PERL=$ac_cv_path_PERL
  9463. if test -n "$PERL"; then
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  9465. $as_echo "$PERL" >&6; }
  9466. else
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9468. $as_echo "no" >&6; }
  9469. fi
  9470. else
  9471. test "$build_os" = "cygwin" && with_perl_home=`cygpath -u "$with_perl_home"`
  9472. _perl_path="$with_perl_home/bin/perl"
  9473. if test -x "$_perl_path"; then
  9474. PERL=$_perl_path
  9475. else
  9476. as_fn_error $? "$_perl_path not found" "$LINENO" 5
  9477. fi
  9478. fi
  9479. if test "$PERL"; then
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Perl version" >&5
  9481. $as_echo_n "checking the Perl version... " >&6; }
  9482. ${PERL} -e "exit($]);"
  9483. _perl_version=$?
  9484. if test "$_perl_version" -lt 5; then
  9485. as_fn_error $? "found Perl version \"$_perl_version\", use version 5 of Perl" "$LINENO" 5
  9486. fi
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (perl $_perl_version)" >&5
  9488. $as_echo "checked (perl $_perl_version)" >&6; }
  9489. else
  9490. as_fn_error $? "Perl not found, install version 5 of Perl" "$LINENO" 5
  9491. fi
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required Perl modules" >&5
  9493. $as_echo_n "checking for required Perl modules... " >&6; }
  9494. if `$PERL -e 'use Archive::Zip; use Cwd; use Digest::MD5'`; then
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: all modules found" >&5
  9496. $as_echo "all modules found" >&6; }
  9497. else
  9498. as_fn_error $? "Failed to find some modules" "$LINENO" 5
  9499. fi
  9500. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  9501. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  9502. if test -n "$ac_tool_prefix"; then
  9503. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  9504. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9506. $as_echo_n "checking for $ac_word... " >&6; }
  9507. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9508. $as_echo_n "(cached) " >&6
  9509. else
  9510. case $PKG_CONFIG in
  9511. [\\/]* | ?:[\\/]*)
  9512. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9513. ;;
  9514. *)
  9515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9516. for as_dir in $PATH
  9517. do
  9518. IFS=$as_save_IFS
  9519. test -z "$as_dir" && as_dir=.
  9520. for ac_exec_ext in '' $ac_executable_extensions; do
  9521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9522. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9524. break 2
  9525. fi
  9526. done
  9527. done
  9528. IFS=$as_save_IFS
  9529. ;;
  9530. esac
  9531. fi
  9532. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9533. if test -n "$PKG_CONFIG"; then
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9535. $as_echo "$PKG_CONFIG" >&6; }
  9536. else
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9538. $as_echo "no" >&6; }
  9539. fi
  9540. fi
  9541. if test -z "$ac_cv_path_PKG_CONFIG"; then
  9542. ac_pt_PKG_CONFIG=$PKG_CONFIG
  9543. # Extract the first word of "pkg-config", so it can be a program name with args.
  9544. set dummy pkg-config; ac_word=$2
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9546. $as_echo_n "checking for $ac_word... " >&6; }
  9547. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. case $ac_pt_PKG_CONFIG in
  9551. [\\/]* | ?:[\\/]*)
  9552. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  9553. ;;
  9554. *)
  9555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9556. for as_dir in $PATH
  9557. do
  9558. IFS=$as_save_IFS
  9559. test -z "$as_dir" && as_dir=.
  9560. for ac_exec_ext in '' $ac_executable_extensions; do
  9561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9562. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9564. break 2
  9565. fi
  9566. done
  9567. done
  9568. IFS=$as_save_IFS
  9569. ;;
  9570. esac
  9571. fi
  9572. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  9573. if test -n "$ac_pt_PKG_CONFIG"; then
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  9575. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  9576. else
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9578. $as_echo "no" >&6; }
  9579. fi
  9580. if test "x$ac_pt_PKG_CONFIG" = x; then
  9581. PKG_CONFIG=""
  9582. else
  9583. case $cross_compiling:$ac_tool_warned in
  9584. yes:)
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9587. ac_tool_warned=yes ;;
  9588. esac
  9589. PKG_CONFIG=$ac_pt_PKG_CONFIG
  9590. fi
  9591. else
  9592. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  9593. fi
  9594. fi
  9595. if test -n "$PKG_CONFIG"; then
  9596. _pkg_min_version=0.9.0
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  9598. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  9599. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9601. $as_echo "yes" >&6; }
  9602. else
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9604. $as_echo "no" >&6; }
  9605. PKG_CONFIG=""
  9606. fi
  9607. fi
  9608. fi
  9609. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  9610. # If you use CC=/path/to/compiler/foo-gcc or even CC="ccache
  9611. # /path/to/compiler/foo-gcc" you need to set the AR etc env vars
  9612. # explicitly. Or put /path/to/compiler in PATH yourself.
  9613. if test -n "$ac_tool_prefix"; then
  9614. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  9615. set dummy ${ac_tool_prefix}ar; ac_word=$2
  9616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9617. $as_echo_n "checking for $ac_word... " >&6; }
  9618. if ${ac_cv_prog_AR+:} false; then :
  9619. $as_echo_n "(cached) " >&6
  9620. else
  9621. if test -n "$AR"; then
  9622. ac_cv_prog_AR="$AR" # Let the user override the test.
  9623. else
  9624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9625. for as_dir in $PATH
  9626. do
  9627. IFS=$as_save_IFS
  9628. test -z "$as_dir" && as_dir=.
  9629. for ac_exec_ext in '' $ac_executable_extensions; do
  9630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9631. ac_cv_prog_AR="${ac_tool_prefix}ar"
  9632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9633. break 2
  9634. fi
  9635. done
  9636. done
  9637. IFS=$as_save_IFS
  9638. fi
  9639. fi
  9640. AR=$ac_cv_prog_AR
  9641. if test -n "$AR"; then
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  9643. $as_echo "$AR" >&6; }
  9644. else
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9646. $as_echo "no" >&6; }
  9647. fi
  9648. fi
  9649. if test -z "$ac_cv_prog_AR"; then
  9650. ac_ct_AR=$AR
  9651. # Extract the first word of "ar", so it can be a program name with args.
  9652. set dummy ar; ac_word=$2
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9654. $as_echo_n "checking for $ac_word... " >&6; }
  9655. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. if test -n "$ac_ct_AR"; then
  9659. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  9660. else
  9661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9662. for as_dir in $PATH
  9663. do
  9664. IFS=$as_save_IFS
  9665. test -z "$as_dir" && as_dir=.
  9666. for ac_exec_ext in '' $ac_executable_extensions; do
  9667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9668. ac_cv_prog_ac_ct_AR="ar"
  9669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9670. break 2
  9671. fi
  9672. done
  9673. done
  9674. IFS=$as_save_IFS
  9675. fi
  9676. fi
  9677. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  9678. if test -n "$ac_ct_AR"; then
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  9680. $as_echo "$ac_ct_AR" >&6; }
  9681. else
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9683. $as_echo "no" >&6; }
  9684. fi
  9685. if test "x$ac_ct_AR" = x; then
  9686. AR=""
  9687. else
  9688. case $cross_compiling:$ac_tool_warned in
  9689. yes:)
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9692. ac_tool_warned=yes ;;
  9693. esac
  9694. AR=$ac_ct_AR
  9695. fi
  9696. else
  9697. AR="$ac_cv_prog_AR"
  9698. fi
  9699. if test -n "$ac_tool_prefix"; then
  9700. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  9701. set dummy ${ac_tool_prefix}nm; ac_word=$2
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9703. $as_echo_n "checking for $ac_word... " >&6; }
  9704. if ${ac_cv_prog_NM+:} false; then :
  9705. $as_echo_n "(cached) " >&6
  9706. else
  9707. if test -n "$NM"; then
  9708. ac_cv_prog_NM="$NM" # Let the user override the test.
  9709. else
  9710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9711. for as_dir in $PATH
  9712. do
  9713. IFS=$as_save_IFS
  9714. test -z "$as_dir" && as_dir=.
  9715. for ac_exec_ext in '' $ac_executable_extensions; do
  9716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9717. ac_cv_prog_NM="${ac_tool_prefix}nm"
  9718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9719. break 2
  9720. fi
  9721. done
  9722. done
  9723. IFS=$as_save_IFS
  9724. fi
  9725. fi
  9726. NM=$ac_cv_prog_NM
  9727. if test -n "$NM"; then
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  9729. $as_echo "$NM" >&6; }
  9730. else
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9732. $as_echo "no" >&6; }
  9733. fi
  9734. fi
  9735. if test -z "$ac_cv_prog_NM"; then
  9736. ac_ct_NM=$NM
  9737. # Extract the first word of "nm", so it can be a program name with args.
  9738. set dummy nm; ac_word=$2
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9740. $as_echo_n "checking for $ac_word... " >&6; }
  9741. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  9742. $as_echo_n "(cached) " >&6
  9743. else
  9744. if test -n "$ac_ct_NM"; then
  9745. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  9746. else
  9747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9748. for as_dir in $PATH
  9749. do
  9750. IFS=$as_save_IFS
  9751. test -z "$as_dir" && as_dir=.
  9752. for ac_exec_ext in '' $ac_executable_extensions; do
  9753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9754. ac_cv_prog_ac_ct_NM="nm"
  9755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9756. break 2
  9757. fi
  9758. done
  9759. done
  9760. IFS=$as_save_IFS
  9761. fi
  9762. fi
  9763. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  9764. if test -n "$ac_ct_NM"; then
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  9766. $as_echo "$ac_ct_NM" >&6; }
  9767. else
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9769. $as_echo "no" >&6; }
  9770. fi
  9771. if test "x$ac_ct_NM" = x; then
  9772. NM=""
  9773. else
  9774. case $cross_compiling:$ac_tool_warned in
  9775. yes:)
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9778. ac_tool_warned=yes ;;
  9779. esac
  9780. NM=$ac_ct_NM
  9781. fi
  9782. else
  9783. NM="$ac_cv_prog_NM"
  9784. fi
  9785. if test -n "$ac_tool_prefix"; then
  9786. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9787. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9789. $as_echo_n "checking for $ac_word... " >&6; }
  9790. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9791. $as_echo_n "(cached) " >&6
  9792. else
  9793. if test -n "$OBJDUMP"; then
  9794. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9795. else
  9796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9797. for as_dir in $PATH
  9798. do
  9799. IFS=$as_save_IFS
  9800. test -z "$as_dir" && as_dir=.
  9801. for ac_exec_ext in '' $ac_executable_extensions; do
  9802. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9803. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9805. break 2
  9806. fi
  9807. done
  9808. done
  9809. IFS=$as_save_IFS
  9810. fi
  9811. fi
  9812. OBJDUMP=$ac_cv_prog_OBJDUMP
  9813. if test -n "$OBJDUMP"; then
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9815. $as_echo "$OBJDUMP" >&6; }
  9816. else
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9818. $as_echo "no" >&6; }
  9819. fi
  9820. fi
  9821. if test -z "$ac_cv_prog_OBJDUMP"; then
  9822. ac_ct_OBJDUMP=$OBJDUMP
  9823. # Extract the first word of "objdump", so it can be a program name with args.
  9824. set dummy objdump; ac_word=$2
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9826. $as_echo_n "checking for $ac_word... " >&6; }
  9827. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9828. $as_echo_n "(cached) " >&6
  9829. else
  9830. if test -n "$ac_ct_OBJDUMP"; then
  9831. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9832. else
  9833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9834. for as_dir in $PATH
  9835. do
  9836. IFS=$as_save_IFS
  9837. test -z "$as_dir" && as_dir=.
  9838. for ac_exec_ext in '' $ac_executable_extensions; do
  9839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9840. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9842. break 2
  9843. fi
  9844. done
  9845. done
  9846. IFS=$as_save_IFS
  9847. fi
  9848. fi
  9849. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9850. if test -n "$ac_ct_OBJDUMP"; then
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9852. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9853. else
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9855. $as_echo "no" >&6; }
  9856. fi
  9857. if test "x$ac_ct_OBJDUMP" = x; then
  9858. OBJDUMP=""
  9859. else
  9860. case $cross_compiling:$ac_tool_warned in
  9861. yes:)
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9864. ac_tool_warned=yes ;;
  9865. esac
  9866. OBJDUMP=$ac_ct_OBJDUMP
  9867. fi
  9868. else
  9869. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9870. fi
  9871. if test -n "$ac_tool_prefix"; then
  9872. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  9873. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9875. $as_echo_n "checking for $ac_word... " >&6; }
  9876. if ${ac_cv_prog_RANLIB+:} false; then :
  9877. $as_echo_n "(cached) " >&6
  9878. else
  9879. if test -n "$RANLIB"; then
  9880. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9881. else
  9882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9883. for as_dir in $PATH
  9884. do
  9885. IFS=$as_save_IFS
  9886. test -z "$as_dir" && as_dir=.
  9887. for ac_exec_ext in '' $ac_executable_extensions; do
  9888. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9889. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  9890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9891. break 2
  9892. fi
  9893. done
  9894. done
  9895. IFS=$as_save_IFS
  9896. fi
  9897. fi
  9898. RANLIB=$ac_cv_prog_RANLIB
  9899. if test -n "$RANLIB"; then
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  9901. $as_echo "$RANLIB" >&6; }
  9902. else
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9904. $as_echo "no" >&6; }
  9905. fi
  9906. fi
  9907. if test -z "$ac_cv_prog_RANLIB"; then
  9908. ac_ct_RANLIB=$RANLIB
  9909. # Extract the first word of "ranlib", so it can be a program name with args.
  9910. set dummy ranlib; ac_word=$2
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9912. $as_echo_n "checking for $ac_word... " >&6; }
  9913. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  9914. $as_echo_n "(cached) " >&6
  9915. else
  9916. if test -n "$ac_ct_RANLIB"; then
  9917. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  9918. else
  9919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9920. for as_dir in $PATH
  9921. do
  9922. IFS=$as_save_IFS
  9923. test -z "$as_dir" && as_dir=.
  9924. for ac_exec_ext in '' $ac_executable_extensions; do
  9925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9926. ac_cv_prog_ac_ct_RANLIB="ranlib"
  9927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9928. break 2
  9929. fi
  9930. done
  9931. done
  9932. IFS=$as_save_IFS
  9933. fi
  9934. fi
  9935. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  9936. if test -n "$ac_ct_RANLIB"; then
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  9938. $as_echo "$ac_ct_RANLIB" >&6; }
  9939. else
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9941. $as_echo "no" >&6; }
  9942. fi
  9943. if test "x$ac_ct_RANLIB" = x; then
  9944. RANLIB=""
  9945. else
  9946. case $cross_compiling:$ac_tool_warned in
  9947. yes:)
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9949. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9950. ac_tool_warned=yes ;;
  9951. esac
  9952. RANLIB=$ac_ct_RANLIB
  9953. fi
  9954. else
  9955. RANLIB="$ac_cv_prog_RANLIB"
  9956. fi
  9957. if test -n "$ac_tool_prefix"; then
  9958. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  9959. set dummy ${ac_tool_prefix}strip; ac_word=$2
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9961. $as_echo_n "checking for $ac_word... " >&6; }
  9962. if ${ac_cv_prog_STRIP+:} false; then :
  9963. $as_echo_n "(cached) " >&6
  9964. else
  9965. if test -n "$STRIP"; then
  9966. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9967. else
  9968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9969. for as_dir in $PATH
  9970. do
  9971. IFS=$as_save_IFS
  9972. test -z "$as_dir" && as_dir=.
  9973. for ac_exec_ext in '' $ac_executable_extensions; do
  9974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9975. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  9976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9977. break 2
  9978. fi
  9979. done
  9980. done
  9981. IFS=$as_save_IFS
  9982. fi
  9983. fi
  9984. STRIP=$ac_cv_prog_STRIP
  9985. if test -n "$STRIP"; then
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  9987. $as_echo "$STRIP" >&6; }
  9988. else
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9990. $as_echo "no" >&6; }
  9991. fi
  9992. fi
  9993. if test -z "$ac_cv_prog_STRIP"; then
  9994. ac_ct_STRIP=$STRIP
  9995. # Extract the first word of "strip", so it can be a program name with args.
  9996. set dummy strip; ac_word=$2
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9998. $as_echo_n "checking for $ac_word... " >&6; }
  9999. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. if test -n "$ac_ct_STRIP"; then
  10003. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10004. else
  10005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10006. for as_dir in $PATH
  10007. do
  10008. IFS=$as_save_IFS
  10009. test -z "$as_dir" && as_dir=.
  10010. for ac_exec_ext in '' $ac_executable_extensions; do
  10011. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10012. ac_cv_prog_ac_ct_STRIP="strip"
  10013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10014. break 2
  10015. fi
  10016. done
  10017. done
  10018. IFS=$as_save_IFS
  10019. fi
  10020. fi
  10021. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10022. if test -n "$ac_ct_STRIP"; then
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10024. $as_echo "$ac_ct_STRIP" >&6; }
  10025. else
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10027. $as_echo "no" >&6; }
  10028. fi
  10029. if test "x$ac_ct_STRIP" = x; then
  10030. STRIP=""
  10031. else
  10032. case $cross_compiling:$ac_tool_warned in
  10033. yes:)
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10036. ac_tool_warned=yes ;;
  10037. esac
  10038. STRIP=$ac_ct_STRIP
  10039. fi
  10040. else
  10041. STRIP="$ac_cv_prog_STRIP"
  10042. fi
  10043. if test "$_os" = "WINNT"; then
  10044. if test -n "$ac_tool_prefix"; then
  10045. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10046. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10048. $as_echo_n "checking for $ac_word... " >&6; }
  10049. if ${ac_cv_prog_DLLTOOL+:} false; then :
  10050. $as_echo_n "(cached) " >&6
  10051. else
  10052. if test -n "$DLLTOOL"; then
  10053. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10054. else
  10055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10056. for as_dir in $PATH
  10057. do
  10058. IFS=$as_save_IFS
  10059. test -z "$as_dir" && as_dir=.
  10060. for ac_exec_ext in '' $ac_executable_extensions; do
  10061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10062. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10064. break 2
  10065. fi
  10066. done
  10067. done
  10068. IFS=$as_save_IFS
  10069. fi
  10070. fi
  10071. DLLTOOL=$ac_cv_prog_DLLTOOL
  10072. if test -n "$DLLTOOL"; then
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10074. $as_echo "$DLLTOOL" >&6; }
  10075. else
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10077. $as_echo "no" >&6; }
  10078. fi
  10079. fi
  10080. if test -z "$ac_cv_prog_DLLTOOL"; then
  10081. ac_ct_DLLTOOL=$DLLTOOL
  10082. # Extract the first word of "dlltool", so it can be a program name with args.
  10083. set dummy dlltool; ac_word=$2
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10085. $as_echo_n "checking for $ac_word... " >&6; }
  10086. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  10087. $as_echo_n "(cached) " >&6
  10088. else
  10089. if test -n "$ac_ct_DLLTOOL"; then
  10090. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10091. else
  10092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10093. for as_dir in $PATH
  10094. do
  10095. IFS=$as_save_IFS
  10096. test -z "$as_dir" && as_dir=.
  10097. for ac_exec_ext in '' $ac_executable_extensions; do
  10098. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10099. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10101. break 2
  10102. fi
  10103. done
  10104. done
  10105. IFS=$as_save_IFS
  10106. fi
  10107. fi
  10108. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10109. if test -n "$ac_ct_DLLTOOL"; then
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10111. $as_echo "$ac_ct_DLLTOOL" >&6; }
  10112. else
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10114. $as_echo "no" >&6; }
  10115. fi
  10116. if test "x$ac_ct_DLLTOOL" = x; then
  10117. DLLTOOL=""
  10118. else
  10119. case $cross_compiling:$ac_tool_warned in
  10120. yes:)
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10123. ac_tool_warned=yes ;;
  10124. esac
  10125. DLLTOOL=$ac_ct_DLLTOOL
  10126. fi
  10127. else
  10128. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10129. fi
  10130. if test -n "$ac_tool_prefix"; then
  10131. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10132. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10134. $as_echo_n "checking for $ac_word... " >&6; }
  10135. if ${ac_cv_prog_WINDRES+:} false; then :
  10136. $as_echo_n "(cached) " >&6
  10137. else
  10138. if test -n "$WINDRES"; then
  10139. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10140. else
  10141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10142. for as_dir in $PATH
  10143. do
  10144. IFS=$as_save_IFS
  10145. test -z "$as_dir" && as_dir=.
  10146. for ac_exec_ext in '' $ac_executable_extensions; do
  10147. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10148. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  10149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10150. break 2
  10151. fi
  10152. done
  10153. done
  10154. IFS=$as_save_IFS
  10155. fi
  10156. fi
  10157. WINDRES=$ac_cv_prog_WINDRES
  10158. if test -n "$WINDRES"; then
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10160. $as_echo "$WINDRES" >&6; }
  10161. else
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10163. $as_echo "no" >&6; }
  10164. fi
  10165. fi
  10166. if test -z "$ac_cv_prog_WINDRES"; then
  10167. ac_ct_WINDRES=$WINDRES
  10168. # Extract the first word of "windres", so it can be a program name with args.
  10169. set dummy windres; ac_word=$2
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10171. $as_echo_n "checking for $ac_word... " >&6; }
  10172. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  10173. $as_echo_n "(cached) " >&6
  10174. else
  10175. if test -n "$ac_ct_WINDRES"; then
  10176. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  10177. else
  10178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10179. for as_dir in $PATH
  10180. do
  10181. IFS=$as_save_IFS
  10182. test -z "$as_dir" && as_dir=.
  10183. for ac_exec_ext in '' $ac_executable_extensions; do
  10184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10185. ac_cv_prog_ac_ct_WINDRES="windres"
  10186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10187. break 2
  10188. fi
  10189. done
  10190. done
  10191. IFS=$as_save_IFS
  10192. fi
  10193. fi
  10194. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  10195. if test -n "$ac_ct_WINDRES"; then
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  10197. $as_echo "$ac_ct_WINDRES" >&6; }
  10198. else
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10200. $as_echo "no" >&6; }
  10201. fi
  10202. if test "x$ac_ct_WINDRES" = x; then
  10203. WINDRES=""
  10204. else
  10205. case $cross_compiling:$ac_tool_warned in
  10206. yes:)
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10209. ac_tool_warned=yes ;;
  10210. esac
  10211. WINDRES=$ac_ct_WINDRES
  10212. fi
  10213. else
  10214. WINDRES="$ac_cv_prog_WINDRES"
  10215. fi
  10216. fi
  10217. fi
  10218. if test $_os = Darwin; then
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bogus pkg-config" >&5
  10220. $as_echo_n "checking for bogus pkg-config... " >&6; }
  10221. if test -n "$PKG_CONFIG"; then
  10222. if test "$PKG_CONFIG" = /usr/bin/pkg-config && ls -l /usr/bin/pkg-config | $GREP -q Mono.framework; then
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from Mono" >&5
  10224. $as_echo "yes, from Mono" >&6; }
  10225. else
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from unknown origin" >&5
  10227. $as_echo "yes, from unknown origin" >&6; }
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might have unexpected consequences, please consider hiding $PKG_CONFIG" >&5
  10230. $as_echo "$as_me: WARNING: This might have unexpected consequences, please consider hiding $PKG_CONFIG" >&2;}
  10231. echo "Having a $PKG_CONFIG might have unexpected consequences, please consider hiding it" >>warn
  10232. else
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10234. $as_echo "no" >&6; }
  10235. fi
  10236. fi
  10237. if test "$build_os" = "cygwin"; then
  10238. # Extract the first word of "midl.exe", so it can be a program name with args.
  10239. set dummy midl.exe; ac_word=$2
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10241. $as_echo_n "checking for $ac_word... " >&6; }
  10242. if ${ac_cv_path_MIDL_PATH+:} false; then :
  10243. $as_echo_n "(cached) " >&6
  10244. else
  10245. case $MIDL_PATH in
  10246. [\\/]* | ?:[\\/]*)
  10247. ac_cv_path_MIDL_PATH="$MIDL_PATH" # Let the user override the test with a path.
  10248. ;;
  10249. *)
  10250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10251. for as_dir in $PATH
  10252. do
  10253. IFS=$as_save_IFS
  10254. test -z "$as_dir" && as_dir=.
  10255. for ac_exec_ext in '' $ac_executable_extensions; do
  10256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10257. ac_cv_path_MIDL_PATH="$as_dir/$ac_word$ac_exec_ext"
  10258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10259. break 2
  10260. fi
  10261. done
  10262. done
  10263. IFS=$as_save_IFS
  10264. ;;
  10265. esac
  10266. fi
  10267. MIDL_PATH=$ac_cv_path_MIDL_PATH
  10268. if test -n "$MIDL_PATH"; then
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL_PATH" >&5
  10270. $as_echo "$MIDL_PATH" >&6; }
  10271. else
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10273. $as_echo "no" >&6; }
  10274. fi
  10275. if test -n "$MIDL_PATH";then
  10276. MIDL_PATH=`dirname "$MIDL_PATH"`
  10277. fi
  10278. if test -n "$with_midl_path";then
  10279. with_midl_path=`cygpath -u "$with_midl_path"`
  10280. fi
  10281. if test -x "$with_midl_path/midl.exe"; then
  10282. MIDL_PATH="$with_midl_path"
  10283. fi
  10284. if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
  10285. MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
  10286. fi
  10287. if test -z "$MIDL_PATH"; then
  10288. vstest=`./oowintool --msvs-productdir`;
  10289. if test -x "$vstest/Common7/Tools/Bin/midl.exe"; then
  10290. MIDL_PATH="$vstest/Common7/Tools/Bin"
  10291. fi
  10292. fi
  10293. if test -z "$MIDL_PATH"; then
  10294. winsdktest=`./oowintool --windows-sdk-home`
  10295. if test -x "$winsdktest/Bin/midl.exe"; then
  10296. MIDL_PATH="$winsdktest/Bin"
  10297. fi
  10298. fi
  10299. if test ! -x "$MIDL_PATH/midl.exe"; then
  10300. as_fn_error $? "midl.exe not found. Make sure it's in PATH or use --with-midl-path" "$LINENO" 5
  10301. fi
  10302. # Convert to posix path with 8.3 filename restrictions ( No spaces )
  10303. MIDL_PATH=`cygpath -d "$MIDL_PATH"`
  10304. MIDL_PATH=`cygpath -u "$MIDL_PATH"`
  10305. # Extract the first word of "csc.exe", so it can be a program name with args.
  10306. set dummy csc.exe; ac_word=$2
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10308. $as_echo_n "checking for $ac_word... " >&6; }
  10309. if ${ac_cv_path_CSC_PATH+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. case $CSC_PATH in
  10313. [\\/]* | ?:[\\/]*)
  10314. ac_cv_path_CSC_PATH="$CSC_PATH" # Let the user override the test with a path.
  10315. ;;
  10316. *)
  10317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10318. for as_dir in $PATH
  10319. do
  10320. IFS=$as_save_IFS
  10321. test -z "$as_dir" && as_dir=.
  10322. for ac_exec_ext in '' $ac_executable_extensions; do
  10323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10324. ac_cv_path_CSC_PATH="$as_dir/$ac_word$ac_exec_ext"
  10325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10326. break 2
  10327. fi
  10328. done
  10329. done
  10330. IFS=$as_save_IFS
  10331. ;;
  10332. esac
  10333. fi
  10334. CSC_PATH=$ac_cv_path_CSC_PATH
  10335. if test -n "$CSC_PATH"; then
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC_PATH" >&5
  10337. $as_echo "$CSC_PATH" >&6; }
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10340. $as_echo "no" >&6; }
  10341. fi
  10342. if test -n "$CSC_PATH";then
  10343. CSC_PATH=`dirname "$CSC_PATH"`
  10344. fi
  10345. if test -n "$with_csc_path";then
  10346. with_csc_path=`cygpath -u "$with_csc_path"`
  10347. fi
  10348. if test -x "$with_csc_path/csc.exe"; then
  10349. CSC_PATH="$with_csc_path"
  10350. else
  10351. csctest=`./oowintool --csc-compilerdir`;
  10352. if test -x "$csctest/csc.exe"; then
  10353. CSC_PATH="$csctest"
  10354. fi
  10355. fi
  10356. if test ! -x "$CSC_PATH/csc.exe"; then
  10357. as_fn_error $? "csc.exe not found. Make sure it's in the path or use --with-csc-path" "$LINENO" 5
  10358. fi
  10359. # Convert to posix path with 8.3 filename restrictions ( No spaces )
  10360. CSC_PATH=`cygpath -d "$CSC_PATH"`
  10361. CSC_PATH=`cygpath -u "$CSC_PATH"`
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking .NET Framework" >&5
  10363. $as_echo_n "checking .NET Framework... " >&6; }
  10364. if test -n "$with_dotnet_framework_home"; then
  10365. with_dotnet_framework_home=`cygpath -u "$with_dotnet_framework_home"`
  10366. fi
  10367. if test -f "$with_dotnet_framework_home/lib/mscoree.lib"; then
  10368. DOTNET_FRAMEWORK_HOME="$with_dotnet_framework_home"
  10369. fi
  10370. if test -z "$DOTNET_FRAMEWORK_HOME"; then
  10371. frametest=`./oowintool --dotnetsdk-dir`
  10372. if test -f "$frametest/lib/mscoree.lib"; then
  10373. DOTNET_FRAMEWORK_HOME="$frametest"
  10374. else
  10375. frametest=`./oowintool --windows-sdk-home`
  10376. if test -f "$frametest/lib/mscoree.lib"; then
  10377. DOTNET_FRAMEWORK_HOME="$frametest"
  10378. fi
  10379. fi
  10380. fi
  10381. if test ! -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib"; then
  10382. as_fn_error $? "mscoree.lib (.NET Framework) not found. Make sure you use --with-dotnet-framework-home" "$LINENO" 5
  10383. fi
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  10385. $as_echo "found" >&6; }
  10386. PathFormat "$MIDL_PATH"
  10387. MIDL_PATH="$formatted_path"
  10388. PathFormat "$DOTNET_FRAMEWORK_HOME"
  10389. DOTNET_FRAMEWORK_HOME="$formatted_path"
  10390. PathFormat "$CSC_PATH"
  10391. CSC_PATH="$formatted_path"
  10392. fi
  10393. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10395. $as_echo_n "checking for ANSI C header files... " >&6; }
  10396. if ${ac_cv_header_stdc+:} false; then :
  10397. $as_echo_n "(cached) " >&6
  10398. else
  10399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10400. /* end confdefs.h. */
  10401. #include <stdlib.h>
  10402. #include <stdarg.h>
  10403. #include <string.h>
  10404. #include <float.h>
  10405. int
  10406. main ()
  10407. {
  10408. ;
  10409. return 0;
  10410. }
  10411. _ACEOF
  10412. if ac_fn_c_try_compile "$LINENO"; then :
  10413. ac_cv_header_stdc=yes
  10414. else
  10415. ac_cv_header_stdc=no
  10416. fi
  10417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10418. if test $ac_cv_header_stdc = yes; then
  10419. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10421. /* end confdefs.h. */
  10422. #include <string.h>
  10423. _ACEOF
  10424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10425. $EGREP "memchr" >/dev/null 2>&1; then :
  10426. else
  10427. ac_cv_header_stdc=no
  10428. fi
  10429. rm -f conftest*
  10430. fi
  10431. if test $ac_cv_header_stdc = yes; then
  10432. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10434. /* end confdefs.h. */
  10435. #include <stdlib.h>
  10436. _ACEOF
  10437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10438. $EGREP "free" >/dev/null 2>&1; then :
  10439. else
  10440. ac_cv_header_stdc=no
  10441. fi
  10442. rm -f conftest*
  10443. fi
  10444. if test $ac_cv_header_stdc = yes; then
  10445. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10446. if test "$cross_compiling" = yes; then :
  10447. :
  10448. else
  10449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10450. /* end confdefs.h. */
  10451. #include <ctype.h>
  10452. #include <stdlib.h>
  10453. #if ((' ' & 0x0FF) == 0x020)
  10454. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10455. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10456. #else
  10457. # define ISLOWER(c) \
  10458. (('a' <= (c) && (c) <= 'i') \
  10459. || ('j' <= (c) && (c) <= 'r') \
  10460. || ('s' <= (c) && (c) <= 'z'))
  10461. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10462. #endif
  10463. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10464. int
  10465. main ()
  10466. {
  10467. int i;
  10468. for (i = 0; i < 256; i++)
  10469. if (XOR (islower (i), ISLOWER (i))
  10470. || toupper (i) != TOUPPER (i))
  10471. return 2;
  10472. return 0;
  10473. }
  10474. _ACEOF
  10475. if ac_fn_c_try_run "$LINENO"; then :
  10476. else
  10477. ac_cv_header_stdc=no
  10478. fi
  10479. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10480. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10481. fi
  10482. fi
  10483. fi
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10485. $as_echo "$ac_cv_header_stdc" >&6; }
  10486. if test $ac_cv_header_stdc = yes; then
  10487. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10488. fi
  10489. fi
  10490. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  10491. ac_ext=cpp
  10492. ac_cpp='$CXXCPP $CPPFLAGS'
  10493. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10494. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10495. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10496. if test -z "$CXX"; then
  10497. if test -n "$CCC"; then
  10498. CXX=$CCC
  10499. else
  10500. if test -n "$ac_tool_prefix"; then
  10501. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10502. do
  10503. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10504. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10506. $as_echo_n "checking for $ac_word... " >&6; }
  10507. if ${ac_cv_prog_CXX+:} false; then :
  10508. $as_echo_n "(cached) " >&6
  10509. else
  10510. if test -n "$CXX"; then
  10511. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10512. else
  10513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10514. for as_dir in $PATH
  10515. do
  10516. IFS=$as_save_IFS
  10517. test -z "$as_dir" && as_dir=.
  10518. for ac_exec_ext in '' $ac_executable_extensions; do
  10519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10520. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10522. break 2
  10523. fi
  10524. done
  10525. done
  10526. IFS=$as_save_IFS
  10527. fi
  10528. fi
  10529. CXX=$ac_cv_prog_CXX
  10530. if test -n "$CXX"; then
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10532. $as_echo "$CXX" >&6; }
  10533. else
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10535. $as_echo "no" >&6; }
  10536. fi
  10537. test -n "$CXX" && break
  10538. done
  10539. fi
  10540. if test -z "$CXX"; then
  10541. ac_ct_CXX=$CXX
  10542. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10543. do
  10544. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10545. set dummy $ac_prog; ac_word=$2
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10547. $as_echo_n "checking for $ac_word... " >&6; }
  10548. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10549. $as_echo_n "(cached) " >&6
  10550. else
  10551. if test -n "$ac_ct_CXX"; then
  10552. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10553. else
  10554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10555. for as_dir in $PATH
  10556. do
  10557. IFS=$as_save_IFS
  10558. test -z "$as_dir" && as_dir=.
  10559. for ac_exec_ext in '' $ac_executable_extensions; do
  10560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10561. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10563. break 2
  10564. fi
  10565. done
  10566. done
  10567. IFS=$as_save_IFS
  10568. fi
  10569. fi
  10570. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10571. if test -n "$ac_ct_CXX"; then
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10573. $as_echo "$ac_ct_CXX" >&6; }
  10574. else
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10576. $as_echo "no" >&6; }
  10577. fi
  10578. test -n "$ac_ct_CXX" && break
  10579. done
  10580. if test "x$ac_ct_CXX" = x; then
  10581. CXX="g++"
  10582. else
  10583. case $cross_compiling:$ac_tool_warned in
  10584. yes:)
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10587. ac_tool_warned=yes ;;
  10588. esac
  10589. CXX=$ac_ct_CXX
  10590. fi
  10591. fi
  10592. fi
  10593. fi
  10594. # Provide some information about the compiler.
  10595. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10596. set X $ac_compile
  10597. ac_compiler=$2
  10598. for ac_option in --version -v -V -qversion; do
  10599. { { ac_try="$ac_compiler $ac_option >&5"
  10600. case "(($ac_try" in
  10601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10602. *) ac_try_echo=$ac_try;;
  10603. esac
  10604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10605. $as_echo "$ac_try_echo"; } >&5
  10606. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10607. ac_status=$?
  10608. if test -s conftest.err; then
  10609. sed '10a\
  10610. ... rest of stderr output deleted ...
  10611. 10q' conftest.err >conftest.er1
  10612. cat conftest.er1 >&5
  10613. fi
  10614. rm -f conftest.er1 conftest.err
  10615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10616. test $ac_status = 0; }
  10617. done
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10619. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10620. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10621. $as_echo_n "(cached) " >&6
  10622. else
  10623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10624. /* end confdefs.h. */
  10625. int
  10626. main ()
  10627. {
  10628. #ifndef __GNUC__
  10629. choke me
  10630. #endif
  10631. ;
  10632. return 0;
  10633. }
  10634. _ACEOF
  10635. if ac_fn_cxx_try_compile "$LINENO"; then :
  10636. ac_compiler_gnu=yes
  10637. else
  10638. ac_compiler_gnu=no
  10639. fi
  10640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10641. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10642. fi
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10644. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10645. if test $ac_compiler_gnu = yes; then
  10646. GXX=yes
  10647. else
  10648. GXX=
  10649. fi
  10650. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10651. ac_save_CXXFLAGS=$CXXFLAGS
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10653. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10654. if ${ac_cv_prog_cxx_g+:} false; then :
  10655. $as_echo_n "(cached) " >&6
  10656. else
  10657. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10658. ac_cxx_werror_flag=yes
  10659. ac_cv_prog_cxx_g=no
  10660. CXXFLAGS="-g"
  10661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10662. /* end confdefs.h. */
  10663. int
  10664. main ()
  10665. {
  10666. ;
  10667. return 0;
  10668. }
  10669. _ACEOF
  10670. if ac_fn_cxx_try_compile "$LINENO"; then :
  10671. ac_cv_prog_cxx_g=yes
  10672. else
  10673. CXXFLAGS=""
  10674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10675. /* end confdefs.h. */
  10676. int
  10677. main ()
  10678. {
  10679. ;
  10680. return 0;
  10681. }
  10682. _ACEOF
  10683. if ac_fn_cxx_try_compile "$LINENO"; then :
  10684. else
  10685. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10686. CXXFLAGS="-g"
  10687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10688. /* end confdefs.h. */
  10689. int
  10690. main ()
  10691. {
  10692. ;
  10693. return 0;
  10694. }
  10695. _ACEOF
  10696. if ac_fn_cxx_try_compile "$LINENO"; then :
  10697. ac_cv_prog_cxx_g=yes
  10698. fi
  10699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10700. fi
  10701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10702. fi
  10703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10704. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10705. fi
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10707. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10708. if test "$ac_test_CXXFLAGS" = set; then
  10709. CXXFLAGS=$ac_save_CXXFLAGS
  10710. elif test $ac_cv_prog_cxx_g = yes; then
  10711. if test "$GXX" = yes; then
  10712. CXXFLAGS="-g -O2"
  10713. else
  10714. CXXFLAGS="-g"
  10715. fi
  10716. else
  10717. if test "$GXX" = yes; then
  10718. CXXFLAGS="-O2"
  10719. else
  10720. CXXFLAGS=
  10721. fi
  10722. fi
  10723. ac_ext=c
  10724. ac_cpp='$CPP $CPPFLAGS'
  10725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10728. else
  10729. if test -n "$CC" -a -z "$CXX"; then
  10730. CXX="$CC"
  10731. fi
  10732. fi
  10733. if test "$GXX" = "yes"; then
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU C++ compiler version" >&5
  10735. $as_echo_n "checking the GNU C++ compiler version... " >&6; }
  10736. _gpp_version=`$CXX -dumpversion`
  10737. _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
  10738. if test "$_os" = "Darwin" -a "$with_macosx_sdk" = "10.4" -a "$_gpp_majmin" -ge "401"; then
  10739. if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0"; then
  10740. export CXX="$GCC_HOME/bin/g++-4.0"
  10741. _gpp_majmin_2=`$CXX -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'`
  10742. if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401"; then
  10743. _gpp_majmin=$_gpp_majmin_2
  10744. fi
  10745. fi
  10746. if test "$_gpp_majmin" -ge "401"; then
  10747. as_fn_error $? "You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly" "$LINENO" 5
  10748. else
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: implicitly using CXX=$CXX" >&5
  10750. $as_echo "implicitly using CXX=$CXX" >&6; }
  10751. fi
  10752. else
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (g++ $_gpp_version)" >&5
  10754. $as_echo "checked (g++ $_gpp_version)" >&6; }
  10755. fi
  10756. if test "$_gpp_majmin" = "304"; then
  10757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX has the enum bug" >&5
  10758. $as_echo_n "checking whether $CXX has the enum bug... " >&6; }
  10759. if test "$cross_compiling" = yes; then :
  10760. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10762. as_fn_error $? "cannot run test program while cross compiling
  10763. See \`config.log' for more details" "$LINENO" 5; }
  10764. else
  10765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10766. /* end confdefs.h. */
  10767. extern "C" void abort (void);
  10768. extern "C" void exit (int status);
  10769. enum E { E0, E1, E2, E3, E4, E5 };
  10770. void test (enum E e)
  10771. {
  10772. if (e == E2 || e == E3 || e == E1)
  10773. exit (1);
  10774. }
  10775. int main (void)
  10776. {
  10777. test (E4);
  10778. test (E5);
  10779. test (E0);
  10780. return 0;
  10781. }
  10782. _ACEOF
  10783. if ac_fn_c_try_run "$LINENO"; then :
  10784. as_fn_error $? "your version of the GNU C++ compile has a bug which prevents LibreOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details." "$LINENO" 5
  10785. else
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10787. $as_echo "no" >&6; }
  10788. fi
  10789. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10790. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10791. fi
  10792. fi
  10793. fi
  10794. #
  10795. # prefx CXX with ccache if needed
  10796. #
  10797. if test "$CCACHE" != ""; then
  10798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is already ccached" >&5
  10799. $as_echo_n "checking whether $CXX is already ccached... " >&6; }
  10800. ac_ext=cpp
  10801. ac_cpp='$CXXCPP $CPPFLAGS'
  10802. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10803. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10804. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10805. save_CXXFLAGS=$CXXFLAGS
  10806. CXXFLAGS="$CXXFLAGS --ccache-skip -O2"
  10807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10808. /* end confdefs.h. */
  10809. int
  10810. main ()
  10811. {
  10812. ;
  10813. return 0;
  10814. }
  10815. _ACEOF
  10816. if ac_fn_cxx_try_compile "$LINENO"; then :
  10817. use_ccache=yes
  10818. else
  10819. use_ccache=no
  10820. fi
  10821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10822. if test $use_ccache = yes; then
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10824. $as_echo "yes" >&6; }
  10825. else
  10826. CXX="$CCACHE $CXX"
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10828. $as_echo "no" >&6; }
  10829. fi
  10830. CXXFLAGS=$save_CXXFLAGS
  10831. ac_ext=c
  10832. ac_cpp='$CPP $CPPFLAGS'
  10833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10836. fi
  10837. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  10838. ac_ext=cpp
  10839. ac_cpp='$CXXCPP $CPPFLAGS'
  10840. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10841. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10842. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10844. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10845. if test -z "$CXXCPP"; then
  10846. if ${ac_cv_prog_CXXCPP+:} false; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. # Double quotes because CXXCPP needs to be expanded
  10850. for CXXCPP in "$CXX -E" "/lib/cpp"
  10851. do
  10852. ac_preproc_ok=false
  10853. for ac_cxx_preproc_warn_flag in '' yes
  10854. do
  10855. # Use a header file that comes with gcc, so configuring glibc
  10856. # with a fresh cross-compiler works.
  10857. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10858. # <limits.h> exists even on freestanding compilers.
  10859. # On the NeXT, cc -E runs the code through the compiler's parser,
  10860. # not just through cpp. "Syntax error" is here to catch this case.
  10861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10862. /* end confdefs.h. */
  10863. #ifdef __STDC__
  10864. # include <limits.h>
  10865. #else
  10866. # include <assert.h>
  10867. #endif
  10868. Syntax error
  10869. _ACEOF
  10870. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10871. else
  10872. # Broken: fails on valid input.
  10873. continue
  10874. fi
  10875. rm -f conftest.err conftest.i conftest.$ac_ext
  10876. # OK, works on sane cases. Now check whether nonexistent headers
  10877. # can be detected and how.
  10878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10879. /* end confdefs.h. */
  10880. #include <ac_nonexistent.h>
  10881. _ACEOF
  10882. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10883. # Broken: success on invalid input.
  10884. continue
  10885. else
  10886. # Passes both tests.
  10887. ac_preproc_ok=:
  10888. break
  10889. fi
  10890. rm -f conftest.err conftest.i conftest.$ac_ext
  10891. done
  10892. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10893. rm -f conftest.i conftest.err conftest.$ac_ext
  10894. if $ac_preproc_ok; then :
  10895. break
  10896. fi
  10897. done
  10898. ac_cv_prog_CXXCPP=$CXXCPP
  10899. fi
  10900. CXXCPP=$ac_cv_prog_CXXCPP
  10901. else
  10902. ac_cv_prog_CXXCPP=$CXXCPP
  10903. fi
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10905. $as_echo "$CXXCPP" >&6; }
  10906. ac_preproc_ok=false
  10907. for ac_cxx_preproc_warn_flag in '' yes
  10908. do
  10909. # Use a header file that comes with gcc, so configuring glibc
  10910. # with a fresh cross-compiler works.
  10911. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10912. # <limits.h> exists even on freestanding compilers.
  10913. # On the NeXT, cc -E runs the code through the compiler's parser,
  10914. # not just through cpp. "Syntax error" is here to catch this case.
  10915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10916. /* end confdefs.h. */
  10917. #ifdef __STDC__
  10918. # include <limits.h>
  10919. #else
  10920. # include <assert.h>
  10921. #endif
  10922. Syntax error
  10923. _ACEOF
  10924. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10925. else
  10926. # Broken: fails on valid input.
  10927. continue
  10928. fi
  10929. rm -f conftest.err conftest.i conftest.$ac_ext
  10930. # OK, works on sane cases. Now check whether nonexistent headers
  10931. # can be detected and how.
  10932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10933. /* end confdefs.h. */
  10934. #include <ac_nonexistent.h>
  10935. _ACEOF
  10936. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10937. # Broken: success on invalid input.
  10938. continue
  10939. else
  10940. # Passes both tests.
  10941. ac_preproc_ok=:
  10942. break
  10943. fi
  10944. rm -f conftest.err conftest.i conftest.$ac_ext
  10945. done
  10946. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10947. rm -f conftest.i conftest.err conftest.$ac_ext
  10948. if $ac_preproc_ok; then :
  10949. else
  10950. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10952. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10953. See \`config.log' for more details" "$LINENO" 5; }
  10954. fi
  10955. ac_ext=c
  10956. ac_cpp='$CPP $CPPFLAGS'
  10957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10960. if test "$_os" = "SunOS"; then
  10961. CPP=$CXXCPP
  10962. else
  10963. ac_ext=c
  10964. ac_cpp='$CPP $CPPFLAGS'
  10965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  10969. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  10970. # On Suns, sometimes $CPP names a directory.
  10971. if test -n "$CPP" && test -d "$CPP"; then
  10972. CPP=
  10973. fi
  10974. if test -z "$CPP"; then
  10975. if ${ac_cv_prog_CPP+:} false; then :
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. # Double quotes because CPP needs to be expanded
  10979. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  10980. do
  10981. ac_preproc_ok=false
  10982. for ac_c_preproc_warn_flag in '' yes
  10983. do
  10984. # Use a header file that comes with gcc, so configuring glibc
  10985. # with a fresh cross-compiler works.
  10986. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10987. # <limits.h> exists even on freestanding compilers.
  10988. # On the NeXT, cc -E runs the code through the compiler's parser,
  10989. # not just through cpp. "Syntax error" is here to catch this case.
  10990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10991. /* end confdefs.h. */
  10992. #ifdef __STDC__
  10993. # include <limits.h>
  10994. #else
  10995. # include <assert.h>
  10996. #endif
  10997. Syntax error
  10998. _ACEOF
  10999. if ac_fn_c_try_cpp "$LINENO"; then :
  11000. else
  11001. # Broken: fails on valid input.
  11002. continue
  11003. fi
  11004. rm -f conftest.err conftest.i conftest.$ac_ext
  11005. # OK, works on sane cases. Now check whether nonexistent headers
  11006. # can be detected and how.
  11007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11008. /* end confdefs.h. */
  11009. #include <ac_nonexistent.h>
  11010. _ACEOF
  11011. if ac_fn_c_try_cpp "$LINENO"; then :
  11012. # Broken: success on invalid input.
  11013. continue
  11014. else
  11015. # Passes both tests.
  11016. ac_preproc_ok=:
  11017. break
  11018. fi
  11019. rm -f conftest.err conftest.i conftest.$ac_ext
  11020. done
  11021. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11022. rm -f conftest.i conftest.err conftest.$ac_ext
  11023. if $ac_preproc_ok; then :
  11024. break
  11025. fi
  11026. done
  11027. ac_cv_prog_CPP=$CPP
  11028. fi
  11029. CPP=$ac_cv_prog_CPP
  11030. else
  11031. ac_cv_prog_CPP=$CPP
  11032. fi
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  11034. $as_echo "$CPP" >&6; }
  11035. ac_preproc_ok=false
  11036. for ac_c_preproc_warn_flag in '' yes
  11037. do
  11038. # Use a header file that comes with gcc, so configuring glibc
  11039. # with a fresh cross-compiler works.
  11040. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11041. # <limits.h> exists even on freestanding compilers.
  11042. # On the NeXT, cc -E runs the code through the compiler's parser,
  11043. # not just through cpp. "Syntax error" is here to catch this case.
  11044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11045. /* end confdefs.h. */
  11046. #ifdef __STDC__
  11047. # include <limits.h>
  11048. #else
  11049. # include <assert.h>
  11050. #endif
  11051. Syntax error
  11052. _ACEOF
  11053. if ac_fn_c_try_cpp "$LINENO"; then :
  11054. else
  11055. # Broken: fails on valid input.
  11056. continue
  11057. fi
  11058. rm -f conftest.err conftest.i conftest.$ac_ext
  11059. # OK, works on sane cases. Now check whether nonexistent headers
  11060. # can be detected and how.
  11061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11062. /* end confdefs.h. */
  11063. #include <ac_nonexistent.h>
  11064. _ACEOF
  11065. if ac_fn_c_try_cpp "$LINENO"; then :
  11066. # Broken: success on invalid input.
  11067. continue
  11068. else
  11069. # Passes both tests.
  11070. ac_preproc_ok=:
  11071. break
  11072. fi
  11073. rm -f conftest.err conftest.i conftest.$ac_ext
  11074. done
  11075. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11076. rm -f conftest.i conftest.err conftest.$ac_ext
  11077. if $ac_preproc_ok; then :
  11078. else
  11079. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11080. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11081. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  11082. See \`config.log' for more details" "$LINENO" 5; }
  11083. fi
  11084. ac_ext=c
  11085. ac_cpp='$CPP $CPPFLAGS'
  11086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11089. fi
  11090. fi
  11091. if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then
  11092. # The cast to long int works around a bug in the HP C Compiler
  11093. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11094. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11095. # This bug is HP SR number 8606223364.
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11097. $as_echo_n "checking size of long... " >&6; }
  11098. if ${ac_cv_sizeof_long+:} false; then :
  11099. $as_echo_n "(cached) " >&6
  11100. else
  11101. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11102. else
  11103. if test "$ac_cv_type_long" = yes; then
  11104. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11105. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11106. as_fn_error 77 "cannot compute sizeof (long)
  11107. See \`config.log' for more details" "$LINENO" 5; }
  11108. else
  11109. ac_cv_sizeof_long=0
  11110. fi
  11111. fi
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11114. $as_echo "$ac_cv_sizeof_long" >&6; }
  11115. cat >>confdefs.h <<_ACEOF
  11116. #define SIZEOF_LONG $ac_cv_sizeof_long
  11117. _ACEOF
  11118. # The cast to long int works around a bug in the HP C Compiler
  11119. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11120. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11121. # This bug is HP SR number 8606223364.
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  11123. $as_echo_n "checking size of short... " >&6; }
  11124. if ${ac_cv_sizeof_short+:} false; then :
  11125. $as_echo_n "(cached) " >&6
  11126. else
  11127. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  11128. else
  11129. if test "$ac_cv_type_short" = yes; then
  11130. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11132. as_fn_error 77 "cannot compute sizeof (short)
  11133. See \`config.log' for more details" "$LINENO" 5; }
  11134. else
  11135. ac_cv_sizeof_short=0
  11136. fi
  11137. fi
  11138. fi
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  11140. $as_echo "$ac_cv_sizeof_short" >&6; }
  11141. cat >>confdefs.h <<_ACEOF
  11142. #define SIZEOF_SHORT $ac_cv_sizeof_short
  11143. _ACEOF
  11144. # The cast to long int works around a bug in the HP C Compiler
  11145. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11146. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11147. # This bug is HP SR number 8606223364.
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11149. $as_echo_n "checking size of int... " >&6; }
  11150. if ${ac_cv_sizeof_int+:} false; then :
  11151. $as_echo_n "(cached) " >&6
  11152. else
  11153. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11154. else
  11155. if test "$ac_cv_type_int" = yes; then
  11156. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11157. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11158. as_fn_error 77 "cannot compute sizeof (int)
  11159. See \`config.log' for more details" "$LINENO" 5; }
  11160. else
  11161. ac_cv_sizeof_int=0
  11162. fi
  11163. fi
  11164. fi
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11166. $as_echo "$ac_cv_sizeof_int" >&6; }
  11167. cat >>confdefs.h <<_ACEOF
  11168. #define SIZEOF_INT $ac_cv_sizeof_int
  11169. _ACEOF
  11170. # The cast to long int works around a bug in the HP C Compiler
  11171. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11172. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11173. # This bug is HP SR number 8606223364.
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11175. $as_echo_n "checking size of long long... " >&6; }
  11176. if ${ac_cv_sizeof_long_long+:} false; then :
  11177. $as_echo_n "(cached) " >&6
  11178. else
  11179. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11180. else
  11181. if test "$ac_cv_type_long_long" = yes; then
  11182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11184. as_fn_error 77 "cannot compute sizeof (long long)
  11185. See \`config.log' for more details" "$LINENO" 5; }
  11186. else
  11187. ac_cv_sizeof_long_long=0
  11188. fi
  11189. fi
  11190. fi
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11192. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11193. cat >>confdefs.h <<_ACEOF
  11194. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11195. _ACEOF
  11196. # The cast to long int works around a bug in the HP C Compiler
  11197. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11198. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11199. # This bug is HP SR number 8606223364.
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  11201. $as_echo_n "checking size of double... " >&6; }
  11202. if ${ac_cv_sizeof_double+:} false; then :
  11203. $as_echo_n "(cached) " >&6
  11204. else
  11205. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  11206. else
  11207. if test "$ac_cv_type_double" = yes; then
  11208. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11209. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11210. as_fn_error 77 "cannot compute sizeof (double)
  11211. See \`config.log' for more details" "$LINENO" 5; }
  11212. else
  11213. ac_cv_sizeof_double=0
  11214. fi
  11215. fi
  11216. fi
  11217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  11218. $as_echo "$ac_cv_sizeof_double" >&6; }
  11219. cat >>confdefs.h <<_ACEOF
  11220. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  11221. _ACEOF
  11222. # The cast to long int works around a bug in the HP C Compiler
  11223. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11224. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11225. # This bug is HP SR number 8606223364.
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  11227. $as_echo_n "checking size of void*... " >&6; }
  11228. if ${ac_cv_sizeof_voidp+:} false; then :
  11229. $as_echo_n "(cached) " >&6
  11230. else
  11231. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  11232. else
  11233. if test "$ac_cv_type_voidp" = yes; then
  11234. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11236. as_fn_error 77 "cannot compute sizeof (void*)
  11237. See \`config.log' for more details" "$LINENO" 5; }
  11238. else
  11239. ac_cv_sizeof_voidp=0
  11240. fi
  11241. fi
  11242. fi
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  11244. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  11245. cat >>confdefs.h <<_ACEOF
  11246. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  11247. _ACEOF
  11248. SIZEOF_SHORT=$ac_cv_sizeof_short
  11249. SIZEOF_INT=$ac_cv_sizeof_int
  11250. SIZEOF_LONG=$ac_cv_sizeof_long
  11251. SIZEOF_LONGLONG=$ac_cv_sizeof_long_long
  11252. SIZEOF_DOUBLE=$ac_cv_sizeof_double
  11253. SIZEOF_POINTER=$ac_cv_sizeof_voidp
  11254. # The cast to long int works around a bug in the HP C Compiler,
  11255. # see AC_CHECK_SIZEOF for more information.
  11256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
  11257. $as_echo_n "checking alignment of short... " >&6; }
  11258. if ${ac_cv_alignof_short+:} false; then :
  11259. $as_echo_n "(cached) " >&6
  11260. else
  11261. if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "#include <stddef.h>
  11262. #ifndef offsetof
  11263. # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
  11264. #endif
  11265. typedef struct { char x; short y; } ac__type_alignof_;"; then :
  11266. else
  11267. if test "$ac_cv_type_short" = yes; then
  11268. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11270. as_fn_error 77 "cannot compute alignment of short
  11271. See \`config.log' for more details" "$LINENO" 5; }
  11272. else
  11273. ac_cv_alignof_short=0
  11274. fi
  11275. fi
  11276. fi
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
  11278. $as_echo "$ac_cv_alignof_short" >&6; }
  11279. cat >>confdefs.h <<_ACEOF
  11280. #define ALIGNOF_SHORT $ac_cv_alignof_short
  11281. _ACEOF
  11282. # The cast to long int works around a bug in the HP C Compiler,
  11283. # see AC_CHECK_SIZEOF for more information.
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
  11285. $as_echo_n "checking alignment of int... " >&6; }
  11286. if ${ac_cv_alignof_int+:} false; then :
  11287. $as_echo_n "(cached) " >&6
  11288. else
  11289. if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "#include <stddef.h>
  11290. #ifndef offsetof
  11291. # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
  11292. #endif
  11293. typedef struct { char x; int y; } ac__type_alignof_;"; then :
  11294. else
  11295. if test "$ac_cv_type_int" = yes; then
  11296. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11298. as_fn_error 77 "cannot compute alignment of int
  11299. See \`config.log' for more details" "$LINENO" 5; }
  11300. else
  11301. ac_cv_alignof_int=0
  11302. fi
  11303. fi
  11304. fi
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
  11306. $as_echo "$ac_cv_alignof_int" >&6; }
  11307. cat >>confdefs.h <<_ACEOF
  11308. #define ALIGNOF_INT $ac_cv_alignof_int
  11309. _ACEOF
  11310. # The cast to long int works around a bug in the HP C Compiler,
  11311. # see AC_CHECK_SIZEOF for more information.
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
  11313. $as_echo_n "checking alignment of long... " >&6; }
  11314. if ${ac_cv_alignof_long+:} false; then :
  11315. $as_echo_n "(cached) " >&6
  11316. else
  11317. if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "#include <stddef.h>
  11318. #ifndef offsetof
  11319. # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
  11320. #endif
  11321. typedef struct { char x; long y; } ac__type_alignof_;"; then :
  11322. else
  11323. if test "$ac_cv_type_long" = yes; then
  11324. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11325. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11326. as_fn_error 77 "cannot compute alignment of long
  11327. See \`config.log' for more details" "$LINENO" 5; }
  11328. else
  11329. ac_cv_alignof_long=0
  11330. fi
  11331. fi
  11332. fi
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
  11334. $as_echo "$ac_cv_alignof_long" >&6; }
  11335. cat >>confdefs.h <<_ACEOF
  11336. #define ALIGNOF_LONG $ac_cv_alignof_long
  11337. _ACEOF
  11338. # The cast to long int works around a bug in the HP C Compiler,
  11339. # see AC_CHECK_SIZEOF for more information.
  11340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
  11341. $as_echo_n "checking alignment of double... " >&6; }
  11342. if ${ac_cv_alignof_double+:} false; then :
  11343. $as_echo_n "(cached) " >&6
  11344. else
  11345. if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "#include <stddef.h>
  11346. #ifndef offsetof
  11347. # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
  11348. #endif
  11349. typedef struct { char x; double y; } ac__type_alignof_;"; then :
  11350. else
  11351. if test "$ac_cv_type_double" = yes; then
  11352. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11354. as_fn_error 77 "cannot compute alignment of double
  11355. See \`config.log' for more details" "$LINENO" 5; }
  11356. else
  11357. ac_cv_alignof_double=0
  11358. fi
  11359. fi
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
  11362. $as_echo "$ac_cv_alignof_double" >&6; }
  11363. cat >>confdefs.h <<_ACEOF
  11364. #define ALIGNOF_DOUBLE $ac_cv_alignof_double
  11365. _ACEOF
  11366. ALIGNOF_SHORT=$ac_cv_alignof_short
  11367. ALIGNOF_INT=$ac_cv_alignof_int
  11368. ALIGNOF_LONG=$ac_cv_alignof_long
  11369. ALIGNOF_DOUBLE=$ac_cv_alignof_double
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  11371. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  11372. if ${ac_cv_c_bigendian+:} false; then :
  11373. $as_echo_n "(cached) " >&6
  11374. else
  11375. ac_cv_c_bigendian=unknown
  11376. # See if we're dealing with a universal compiler.
  11377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11378. /* end confdefs.h. */
  11379. #ifndef __APPLE_CC__
  11380. not a universal capable compiler
  11381. #endif
  11382. typedef int dummy;
  11383. _ACEOF
  11384. if ac_fn_c_try_compile "$LINENO"; then :
  11385. # Check for potential -arch flags. It is not universal unless
  11386. # there are at least two -arch flags with different values.
  11387. ac_arch=
  11388. ac_prev=
  11389. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  11390. if test -n "$ac_prev"; then
  11391. case $ac_word in
  11392. i?86 | x86_64 | ppc | ppc64)
  11393. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  11394. ac_arch=$ac_word
  11395. else
  11396. ac_cv_c_bigendian=universal
  11397. break
  11398. fi
  11399. ;;
  11400. esac
  11401. ac_prev=
  11402. elif test "x$ac_word" = "x-arch"; then
  11403. ac_prev=arch
  11404. fi
  11405. done
  11406. fi
  11407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11408. if test $ac_cv_c_bigendian = unknown; then
  11409. # See if sys/param.h defines the BYTE_ORDER macro.
  11410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11411. /* end confdefs.h. */
  11412. #include <sys/types.h>
  11413. #include <sys/param.h>
  11414. int
  11415. main ()
  11416. {
  11417. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  11418. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  11419. && LITTLE_ENDIAN)
  11420. bogus endian macros
  11421. #endif
  11422. ;
  11423. return 0;
  11424. }
  11425. _ACEOF
  11426. if ac_fn_c_try_compile "$LINENO"; then :
  11427. # It does; now see whether it defined to BIG_ENDIAN or not.
  11428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11429. /* end confdefs.h. */
  11430. #include <sys/types.h>
  11431. #include <sys/param.h>
  11432. int
  11433. main ()
  11434. {
  11435. #if BYTE_ORDER != BIG_ENDIAN
  11436. not big endian
  11437. #endif
  11438. ;
  11439. return 0;
  11440. }
  11441. _ACEOF
  11442. if ac_fn_c_try_compile "$LINENO"; then :
  11443. ac_cv_c_bigendian=yes
  11444. else
  11445. ac_cv_c_bigendian=no
  11446. fi
  11447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11448. fi
  11449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11450. fi
  11451. if test $ac_cv_c_bigendian = unknown; then
  11452. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  11453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11454. /* end confdefs.h. */
  11455. #include <limits.h>
  11456. int
  11457. main ()
  11458. {
  11459. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  11460. bogus endian macros
  11461. #endif
  11462. ;
  11463. return 0;
  11464. }
  11465. _ACEOF
  11466. if ac_fn_c_try_compile "$LINENO"; then :
  11467. # It does; now see whether it defined to _BIG_ENDIAN or not.
  11468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11469. /* end confdefs.h. */
  11470. #include <limits.h>
  11471. int
  11472. main ()
  11473. {
  11474. #ifndef _BIG_ENDIAN
  11475. not big endian
  11476. #endif
  11477. ;
  11478. return 0;
  11479. }
  11480. _ACEOF
  11481. if ac_fn_c_try_compile "$LINENO"; then :
  11482. ac_cv_c_bigendian=yes
  11483. else
  11484. ac_cv_c_bigendian=no
  11485. fi
  11486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11487. fi
  11488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11489. fi
  11490. if test $ac_cv_c_bigendian = unknown; then
  11491. # Compile a test program.
  11492. if test "$cross_compiling" = yes; then :
  11493. # Try to guess by grepping values from an object file.
  11494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11495. /* end confdefs.h. */
  11496. short int ascii_mm[] =
  11497. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  11498. short int ascii_ii[] =
  11499. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  11500. int use_ascii (int i) {
  11501. return ascii_mm[i] + ascii_ii[i];
  11502. }
  11503. short int ebcdic_ii[] =
  11504. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  11505. short int ebcdic_mm[] =
  11506. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  11507. int use_ebcdic (int i) {
  11508. return ebcdic_mm[i] + ebcdic_ii[i];
  11509. }
  11510. extern int foo;
  11511. int
  11512. main ()
  11513. {
  11514. return use_ascii (foo) == use_ebcdic (foo);
  11515. ;
  11516. return 0;
  11517. }
  11518. _ACEOF
  11519. if ac_fn_c_try_compile "$LINENO"; then :
  11520. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  11521. ac_cv_c_bigendian=yes
  11522. fi
  11523. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  11524. if test "$ac_cv_c_bigendian" = unknown; then
  11525. ac_cv_c_bigendian=no
  11526. else
  11527. # finding both strings is unlikely to happen, but who knows?
  11528. ac_cv_c_bigendian=unknown
  11529. fi
  11530. fi
  11531. fi
  11532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11533. else
  11534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11535. /* end confdefs.h. */
  11536. $ac_includes_default
  11537. int
  11538. main ()
  11539. {
  11540. /* Are we little or big endian? From Harbison&Steele. */
  11541. union
  11542. {
  11543. long int l;
  11544. char c[sizeof (long int)];
  11545. } u;
  11546. u.l = 1;
  11547. return u.c[sizeof (long int) - 1] == 1;
  11548. ;
  11549. return 0;
  11550. }
  11551. _ACEOF
  11552. if ac_fn_c_try_run "$LINENO"; then :
  11553. ac_cv_c_bigendian=no
  11554. else
  11555. ac_cv_c_bigendian=yes
  11556. fi
  11557. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11558. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11559. fi
  11560. fi
  11561. fi
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  11563. $as_echo "$ac_cv_c_bigendian" >&6; }
  11564. case $ac_cv_c_bigendian in #(
  11565. yes)
  11566. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  11567. ;; #(
  11568. no)
  11569. ;; #(
  11570. universal)
  11571. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  11572. ;; #(
  11573. *)
  11574. as_fn_error $? "unknown endianness
  11575. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  11576. esac
  11577. WORDS_BIGENDIAN=$ac_cv_c_bigendian
  11578. # Check whether --enable-largefile was given.
  11579. if test "${enable_largefile+set}" = set; then :
  11580. enableval=$enable_largefile;
  11581. fi
  11582. if test "$enable_largefile" != no; then
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11584. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11585. if ${ac_cv_sys_largefile_CC+:} false; then :
  11586. $as_echo_n "(cached) " >&6
  11587. else
  11588. ac_cv_sys_largefile_CC=no
  11589. if test "$GCC" != yes; then
  11590. ac_save_CC=$CC
  11591. while :; do
  11592. # IRIX 6.2 and later do not support large files by default,
  11593. # so use the C compiler's -n32 option if that helps.
  11594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11595. /* end confdefs.h. */
  11596. #include <sys/types.h>
  11597. /* Check that off_t can represent 2**63 - 1 correctly.
  11598. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11599. since some C++ compilers masquerading as C compilers
  11600. incorrectly reject 9223372036854775807. */
  11601. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11602. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11603. && LARGE_OFF_T % 2147483647 == 1)
  11604. ? 1 : -1];
  11605. int
  11606. main ()
  11607. {
  11608. ;
  11609. return 0;
  11610. }
  11611. _ACEOF
  11612. if ac_fn_c_try_compile "$LINENO"; then :
  11613. break
  11614. fi
  11615. rm -f core conftest.err conftest.$ac_objext
  11616. CC="$CC -n32"
  11617. if ac_fn_c_try_compile "$LINENO"; then :
  11618. ac_cv_sys_largefile_CC=' -n32'; break
  11619. fi
  11620. rm -f core conftest.err conftest.$ac_objext
  11621. break
  11622. done
  11623. CC=$ac_save_CC
  11624. rm -f conftest.$ac_ext
  11625. fi
  11626. fi
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11628. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11629. if test "$ac_cv_sys_largefile_CC" != no; then
  11630. CC=$CC$ac_cv_sys_largefile_CC
  11631. fi
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11633. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11634. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11635. $as_echo_n "(cached) " >&6
  11636. else
  11637. while :; do
  11638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11639. /* end confdefs.h. */
  11640. #include <sys/types.h>
  11641. /* Check that off_t can represent 2**63 - 1 correctly.
  11642. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11643. since some C++ compilers masquerading as C compilers
  11644. incorrectly reject 9223372036854775807. */
  11645. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11646. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11647. && LARGE_OFF_T % 2147483647 == 1)
  11648. ? 1 : -1];
  11649. int
  11650. main ()
  11651. {
  11652. ;
  11653. return 0;
  11654. }
  11655. _ACEOF
  11656. if ac_fn_c_try_compile "$LINENO"; then :
  11657. ac_cv_sys_file_offset_bits=no; break
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11661. /* end confdefs.h. */
  11662. #define _FILE_OFFSET_BITS 64
  11663. #include <sys/types.h>
  11664. /* Check that off_t can represent 2**63 - 1 correctly.
  11665. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11666. since some C++ compilers masquerading as C compilers
  11667. incorrectly reject 9223372036854775807. */
  11668. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11669. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11670. && LARGE_OFF_T % 2147483647 == 1)
  11671. ? 1 : -1];
  11672. int
  11673. main ()
  11674. {
  11675. ;
  11676. return 0;
  11677. }
  11678. _ACEOF
  11679. if ac_fn_c_try_compile "$LINENO"; then :
  11680. ac_cv_sys_file_offset_bits=64; break
  11681. fi
  11682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11683. ac_cv_sys_file_offset_bits=unknown
  11684. break
  11685. done
  11686. fi
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11688. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11689. case $ac_cv_sys_file_offset_bits in #(
  11690. no | unknown) ;;
  11691. *)
  11692. cat >>confdefs.h <<_ACEOF
  11693. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11694. _ACEOF
  11695. ;;
  11696. esac
  11697. rm -rf conftest*
  11698. if test $ac_cv_sys_file_offset_bits = unknown; then
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11700. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11701. if ${ac_cv_sys_large_files+:} false; then :
  11702. $as_echo_n "(cached) " >&6
  11703. else
  11704. while :; do
  11705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11706. /* end confdefs.h. */
  11707. #include <sys/types.h>
  11708. /* Check that off_t can represent 2**63 - 1 correctly.
  11709. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11710. since some C++ compilers masquerading as C compilers
  11711. incorrectly reject 9223372036854775807. */
  11712. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11713. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11714. && LARGE_OFF_T % 2147483647 == 1)
  11715. ? 1 : -1];
  11716. int
  11717. main ()
  11718. {
  11719. ;
  11720. return 0;
  11721. }
  11722. _ACEOF
  11723. if ac_fn_c_try_compile "$LINENO"; then :
  11724. ac_cv_sys_large_files=no; break
  11725. fi
  11726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11728. /* end confdefs.h. */
  11729. #define _LARGE_FILES 1
  11730. #include <sys/types.h>
  11731. /* Check that off_t can represent 2**63 - 1 correctly.
  11732. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11733. since some C++ compilers masquerading as C compilers
  11734. incorrectly reject 9223372036854775807. */
  11735. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11736. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11737. && LARGE_OFF_T % 2147483647 == 1)
  11738. ? 1 : -1];
  11739. int
  11740. main ()
  11741. {
  11742. ;
  11743. return 0;
  11744. }
  11745. _ACEOF
  11746. if ac_fn_c_try_compile "$LINENO"; then :
  11747. ac_cv_sys_large_files=1; break
  11748. fi
  11749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11750. ac_cv_sys_large_files=unknown
  11751. break
  11752. done
  11753. fi
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11755. $as_echo "$ac_cv_sys_large_files" >&6; }
  11756. case $ac_cv_sys_large_files in #(
  11757. no | unknown) ;;
  11758. *)
  11759. cat >>confdefs.h <<_ACEOF
  11760. #define _LARGE_FILES $ac_cv_sys_large_files
  11761. _ACEOF
  11762. ;;
  11763. esac
  11764. rm -rf conftest*
  11765. fi
  11766. fi
  11767. if test -n "$ac_cv_sys_file_offset_bits" -a "$ac_cv_sys_file_offset_bits" != "no"; then
  11768. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  11769. fi
  11770. if test -n "$ac_cv_sys_large_files" -a "$ac_cv_sys_large_files" != "no"; then
  11771. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
  11772. fi
  11773. else
  11774. # Hardcode for MSVC
  11775. SIZEOF_SHORT=2
  11776. SIZEOF_INT=4
  11777. SIZEOF_LONG=4
  11778. SIZEOF_LONGLONG=8
  11779. if test "$CL_X64" = ""; then
  11780. SIZEOF_POINTER=4
  11781. else
  11782. SIZEOF_POINTER=8
  11783. fi
  11784. ALIGNOF_SHORT=2
  11785. ALIGNOF_INT=4
  11786. ALIGNOF_LONG=4
  11787. ALIGNOF_DOUBLE=8
  11788. WORDS_BIGENDIAN=no
  11789. LFS_CFLAGS=''
  11790. fi
  11791. if test "$cross_compiling" != "yes" -a "$enable_dbgutil" != "no" -a \
  11792. -z "$VALGRIND_CFLAGS"; then
  11793. prev_cppflags=$CPPFLAGS
  11794. CPPFLAGS="-I/usr/include/valgrind"
  11795. ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  11796. if test "x$ac_cv_header_valgrind_h" = xyes; then :
  11797. VALGRIND_CFLAGS=$CPPFLAGS
  11798. else
  11799. unset ac_cv_header_valgrind_h
  11800. fi
  11801. if test -z "$VALGRIND_CFLAGS"; then
  11802. CPPFLAGS="-I/usr/local/include/valgrind"
  11803. ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  11804. if test "x$ac_cv_header_valgrind_h" = xyes; then :
  11805. VALGRIND_CFLAGS=$CPPFLAGS
  11806. fi
  11807. fi
  11808. if test -n "$VALGRIND_CFLAGS"; then
  11809. CPPFLAGS=$VALGRIND_CFLAGS
  11810. ac_fn_c_check_header_mongrel "$LINENO" "memcheck.h" "ac_cv_header_memcheck_h" "$ac_includes_default"
  11811. if test "x$ac_cv_header_memcheck_h" = xyes; then :
  11812. else
  11813. VALGRIND_CFLAGS=""
  11814. fi
  11815. fi
  11816. CPPFLAGS=$prev_cppflags
  11817. fi
  11818. if test "$WITH_MINGW" = "yes"; then
  11819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW include path" >&5
  11820. $as_echo_n "checking for MinGW include path... " >&6; }
  11821. cat >conftest.$ac_ext <<_ACEOF
  11822. #include <stddef.h>
  11823. #include <bits/c++config.h>
  11824. _ACEOF
  11825. _mingw_lib_include_path=`$CXX -E -xc++ conftest.$ac_ext | $SED -n -e '/.*1*"\(.*\)\/stddef.h".*/s//\1/p' -e '/.*1*"\(.*\)\/bits\/c++config.h".*/s//\1/p' | sort -u | xargs echo`
  11826. rm conftest.$ac_ext
  11827. if test -z "$_mingw_lib_include_path"; then
  11828. _mingw_lib_include_path="NO_LIB_INCLUDE"
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no MinGW include path" >&5
  11830. $as_echo "no MinGW include path" >&6; }
  11831. else
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_mingw_lib_include_path" >&5
  11833. $as_echo "$_mingw_lib_include_path" >&6; }
  11834. fi
  11835. MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"
  11836. mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
  11837. MINGW_CLIB_DIR=`dirname $mingw_crtbegin`
  11838. ac_ext=cpp
  11839. ac_cpp='$CXXCPP $CPPFLAGS'
  11840. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11841. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11842. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic libgcc" >&5
  11844. $as_echo_n "checking for dynamic libgcc... " >&6; }
  11845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11846. /* end confdefs.h. */
  11847. #include <iostream>
  11848. using namespace std;
  11849. int
  11850. main ()
  11851. {
  11852. try { throw 42; } catch (int e) { cout << "Yep, " << e << endl; }
  11853. ;
  11854. return 0;
  11855. }
  11856. _ACEOF
  11857. if ac_fn_cxx_try_link "$LINENO"; then :
  11858. MINGW_GCCDLL=`$OBJDUMP -p conftest.exe | grep 'DLL Name: libgcc' | $SED -e 's@.*DLL Name: @@'`
  11859. if test -n "$MINGW_GCCDLL"; then
  11860. MINGW_SHARED_GCCLIB=YES
  11861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGW_GCCDLL" >&5
  11862. $as_echo " $MINGW_GCCDLL" >&6; }
  11863. else
  11864. MINGW_SHARED_GCCLIB=NO
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11866. $as_echo "no" >&6; }
  11867. fi
  11868. else
  11869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11870. $as_echo "no" >&6; }
  11871. fi
  11872. rm -f core conftest.err conftest.$ac_objext \
  11873. conftest$ac_exeext conftest.$ac_ext
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dynamic libstdc++" >&5
  11875. $as_echo_n "checking for dynamic libstdc++... " >&6; }
  11876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11877. /* end confdefs.h. */
  11878. #include <iostream>
  11879. using namespace std;
  11880. int
  11881. main ()
  11882. {
  11883. cout << "Hello there." << endl;
  11884. ;
  11885. return 0;
  11886. }
  11887. _ACEOF
  11888. if ac_fn_cxx_try_link "$LINENO"; then :
  11889. MINGW_GXXDLL=`$OBJDUMP -p conftest.exe | grep 'DLL Name: libstdc++' | $SED -e 's@.*DLL Name: @@'`
  11890. if test -n "$MINGW_GXXDLL"; then
  11891. mingw_gxxdll_root=${MINGW_GXXDLL%.dll}
  11892. mingw_gxxdll_root=${mingw_gxxdll_root#lib}
  11893. MINGW_SHARED_LIBSTDCPP=-l$mingw_gxxdll_root
  11894. MINGW_SHARED_GXXLIB=YES
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGW_GXXDLL" >&5
  11896. $as_echo "$MINGW_GXXDLL" >&6; }
  11897. else
  11898. MINGW_SHARED_GXXLIB=NO
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11900. $as_echo "no" >&6; }
  11901. fi
  11902. else
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11904. $as_echo "no" >&6; }
  11905. fi
  11906. rm -f core conftest.err conftest.$ac_objext \
  11907. conftest$ac_exeext conftest.$ac_ext
  11908. ac_ext=c
  11909. ac_cpp='$CPP $CPPFLAGS'
  11910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11913. fi
  11914. if test "$_os" = "SunOS"; then
  11915. if test "$CC" = "cc"; then
  11916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking SunStudio C++ Compiler" >&5
  11917. $as_echo_n "checking SunStudio C++ Compiler... " >&6; }
  11918. if test "$CXX" != "CC"; then
  11919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SunStudio C++ was not found" >&5
  11920. $as_echo "$as_me: WARNING: SunStudio C++ was not found" >&2;}
  11921. echo "SunStudio C++ was not found" >> warn
  11922. else
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  11924. $as_echo "checked" >&6; }
  11925. fi
  11926. fi
  11927. fi
  11928. if test "$WITH_MINGW" = "yes"; then
  11929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking exception type" >&5
  11930. $as_echo_n "checking exception type... " >&6; }
  11931. ac_ext=cpp
  11932. ac_cpp='$CXXCPP $CPPFLAGS'
  11933. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11934. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11935. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11937. /* end confdefs.h. */
  11938. #include <iostream>
  11939. extern "C" void _Unwind_SjLj_RaiseException(void) __attribute__ ((__noreturn__));
  11940. int
  11941. main ()
  11942. {
  11943. _Unwind_SjLj_RaiseException()
  11944. ;
  11945. return 0;
  11946. }
  11947. _ACEOF
  11948. if ac_fn_cxx_try_link "$LINENO"; then :
  11949. exceptions_type="sjlj"
  11950. else
  11951. exceptions_type="dwarf2"
  11952. fi
  11953. rm -f core conftest.err conftest.$ac_objext \
  11954. conftest$ac_exeext conftest.$ac_ext
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $exceptions_type" >&5
  11956. $as_echo "$exceptions_type" >&6; }
  11957. ac_ext=c
  11958. ac_cpp='$CPP $CPPFLAGS'
  11959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11962. fi
  11963. EXCEPTIONS="$exceptions_type"
  11964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether building STLPort library makes sense" >&5
  11965. $as_echo_n "checking Whether building STLPort library makes sense... " >&6; }
  11966. BUILD_STLPORT="no"
  11967. if test "$_os" = "Linux"; then
  11968. case "$host_cpu" in
  11969. i?86)
  11970. case "$host_os" in
  11971. k*bsd*-gnu*)
  11972. BUILD_STLPORT="no"
  11973. ;;
  11974. *)
  11975. BUILD_STLPORT="yes"
  11976. ;;
  11977. esac
  11978. ;;
  11979. *)
  11980. BUILD_STLPORT="no"
  11981. ;;
  11982. esac
  11983. elif test "$_os" = "SunOS"; then
  11984. BUILD_STLPORT="yes"
  11985. elif test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
  11986. BUILD_STLPORT="yes"
  11987. elif test "$_os" = "FreeBSD"; then
  11988. BUILD_STLPORT="yes"
  11989. fi
  11990. if test "$BUILD_STLPORT" = "yes"; then
  11991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11992. $as_echo "yes" >&6; }
  11993. else
  11994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11995. $as_echo "no" >&6; }
  11996. fi
  11997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether STLPort library will be actually built" >&5
  11998. $as_echo_n "checking Whether STLPort library will be actually built... " >&6; }
  11999. if test "$with_stlport" = "auto" -o "$BUILD_STLPORT" = "no"; then
  12000. with_stlport=$BUILD_STLPORT
  12001. fi
  12002. if test "$with_stlport" = "yes"; then
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12004. $as_echo "yes" >&6; }
  12005. WITH_STLPORT=YES
  12006. SCPDEFS="$SCPDEFS -DWITH_STLPORT"
  12007. BUILD_TYPE="$BUILD_TYPE STLPORT"
  12008. else
  12009. WITH_STLPORT=NO
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12011. $as_echo "no" >&6; }
  12012. fi
  12013. # Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
  12014. # often contains an i386 which is expanded as a macro.
  12015. if test "$GXX" = "yes"; then
  12016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ include path" >&5
  12017. $as_echo_n "checking for g++ include path... " >&6; }
  12018. if test -z "$with_gxx_include_path"; then
  12019. with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - 2>/dev/null | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
  12020. if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
  12021. with_gxx_include_path="/usr/include"
  12022. fi
  12023. if echo $with_gxx_include_path | $GREP -q linux; then
  12024. # workaround for Mandriva - issue 100049
  12025. with_gxx_include_path=`cd -P $with_gxx_include_path && pwd`
  12026. fi
  12027. fi
  12028. if test -z "$with_gxx_include_path"; then
  12029. with_gxx_include_path="NO_GXX_INCLUDE"
  12030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  12031. $as_echo "none" >&6; }
  12032. else
  12033. PathFormat "$with_gxx_include_path"
  12034. with_gxx_include_path="$formatted_path"
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gxx_include_path" >&5
  12036. $as_echo "$with_gxx_include_path" >&6; }
  12037. fi
  12038. else
  12039. with_gxx_include_path="NO_GXX_INCLUDE"
  12040. fi
  12041. GXX_INCLUDE_PATH="$with_gxx_include_path"
  12042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports thread safe statics" >&5
  12043. $as_echo_n "checking whether $CXX supports thread safe statics... " >&6; }
  12044. unset HAVE_THREADSAFE_STATICS
  12045. if test "$GCC" = "yes"; then
  12046. save_CXXFLAGS=$CXXFLAGS
  12047. CXXFLAGS="$CXXFLAGS -fthreadsafe-statics"
  12048. ac_ext=cpp
  12049. ac_cpp='$CXXCPP $CPPFLAGS'
  12050. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12051. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12052. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12054. /* end confdefs.h. */
  12055. int
  12056. main ()
  12057. {
  12058. ;
  12059. return 0;
  12060. }
  12061. _ACEOF
  12062. if ac_fn_cxx_try_compile "$LINENO"; then :
  12063. HAVE_THREADSAFE_STATICS=TRUE
  12064. fi
  12065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12066. ac_ext=c
  12067. ac_cpp='$CPP $CPPFLAGS'
  12068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12071. CXXFLAGS=$save_CXXFLAGS
  12072. if test "$HAVE_THREADSAFE_STATICS" = "TRUE"; then
  12073. if test "$_os" = "Darwin" -o "${GCCVER?}" -lt 040300; then
  12074. unset HAVE_THREADSAFE_STATICS
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken (i.e., no)" >&5
  12076. $as_echo "broken (i.e., no)" >&6; }
  12077. else
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12079. $as_echo "yes" >&6; }
  12080. fi
  12081. else
  12082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12083. $as_echo "no" >&6; }
  12084. fi
  12085. else
  12086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (assuming no)" >&5
  12087. $as_echo "unknown (assuming no)" >&6; }
  12088. fi
  12089. if test "$GCC" = "yes"; then
  12090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5
  12091. $as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; }
  12092. save_CFLAGS=$CFLAGS
  12093. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  12094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12095. /* end confdefs.h. */
  12096. int
  12097. main ()
  12098. {
  12099. return 0;
  12100. ;
  12101. return 0;
  12102. }
  12103. _ACEOF
  12104. if ac_fn_c_try_link "$LINENO"; then :
  12105. HAVE_GCC_VISIBILITY_FEATURE=TRUE
  12106. fi
  12107. rm -f core conftest.err conftest.$ac_objext \
  12108. conftest$ac_exeext conftest.$ac_ext
  12109. CFLAGS=$save_CFLAGS
  12110. if test "$COM_GCC_IS_CLANG" = TRUE -a $_os = Darwin; then
  12111. # It seems that with Apple's Clang, visibility doesn't work as
  12112. # we would want at least in the connectivity and dbaccess
  12113. # modules. This might be because of something peculiar in
  12114. # those modules? Whatever.
  12115. HAVE_GCC_VISIBILITY_FEATURE=
  12116. fi
  12117. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  12118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12119. $as_echo "yes" >&6; }
  12120. else
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12122. $as_echo "no" >&6; }
  12123. fi
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-long-double" >&5
  12125. $as_echo_n "checking whether $CC supports -Wno-long-double... " >&6; }
  12126. save_CFLAGS=$CFLAGS
  12127. CFLAGS="$CFLAGS -Werror -Wno-long-double"
  12128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12129. /* end confdefs.h. */
  12130. int
  12131. main ()
  12132. {
  12133. return 0;
  12134. ;
  12135. return 0;
  12136. }
  12137. _ACEOF
  12138. if ac_fn_c_try_link "$LINENO"; then :
  12139. HAVE_GCC_NO_LONG_DOUBLE=TRUE
  12140. fi
  12141. rm -f core conftest.err conftest.$ac_objext \
  12142. conftest$ac_exeext conftest.$ac_ext
  12143. CFLAGS=$save_CFLAGS
  12144. if test "$HAVE_GCC_NO_LONG_DOUBLE" = "TRUE"; then
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12146. $as_echo "yes" >&6; }
  12147. else
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12149. $as_echo "no" >&6; }
  12150. fi
  12151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mno-avx" >&5
  12152. $as_echo_n "checking whether $CC supports -mno-avx... " >&6; }
  12153. save_CFLAGS=$CFLAGS
  12154. CFLAGS="$CFLAGS -Werror -mno-avx"
  12155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12156. /* end confdefs.h. */
  12157. int
  12158. main ()
  12159. {
  12160. return 0;
  12161. ;
  12162. return 0;
  12163. }
  12164. _ACEOF
  12165. if ac_fn_c_try_link "$LINENO"; then :
  12166. HAVE_GCC_AVX=TRUE
  12167. fi
  12168. rm -f core conftest.err conftest.$ac_objext \
  12169. conftest$ac_exeext conftest.$ac_ext
  12170. CFLAGS=$save_CFLAGS
  12171. if test "$HAVE_GCC_AVX" = "TRUE"; then
  12172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12173. $as_echo "yes" >&6; }
  12174. else
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12176. $as_echo "no" >&6; }
  12177. fi
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=gnu++0x without Language Defect 757" >&5
  12179. $as_echo_n "checking whether $CC supports -std=gnu++0x without Language Defect 757... " >&6; }
  12180. save_CXXFLAGS=$CXXFLAGS
  12181. CXXFLAGS="$CXXFLAGS -std=gnu++0x"
  12182. ac_ext=cpp
  12183. ac_cpp='$CXXCPP $CPPFLAGS'
  12184. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12185. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12188. /* end confdefs.h. */
  12189. #include <stddef.h>
  12190. template <typename T, size_t S> char (&sal_n_array_size( T(&)[S] ))[S];
  12191. namespace
  12192. {
  12193. struct b
  12194. {
  12195. int i;
  12196. int j;
  12197. };
  12198. }
  12199. int
  12200. main ()
  12201. {
  12202. struct a
  12203. {
  12204. int i;
  12205. int j;
  12206. };
  12207. a thinga[]={{0,0}, {1,1}};
  12208. b thingb[]={{0,0}, {1,1}};
  12209. size_t i = sizeof(sal_n_array_size(thinga));
  12210. size_t j = sizeof(sal_n_array_size(thingb));
  12211. return !(i != 0 && j != 0);
  12212. ;
  12213. return 0;
  12214. }
  12215. _ACEOF
  12216. if ac_fn_cxx_try_compile "$LINENO"; then :
  12217. HAVE_CXX0X=TRUE
  12218. fi
  12219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12220. ac_ext=c
  12221. ac_cpp='$CPP $CPPFLAGS'
  12222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12225. CXXFLAGS=$save_CXXFLAGS
  12226. if test "$HAVE_CXX0X" = "TRUE"; then
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12228. $as_echo "yes" >&6; }
  12229. else
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12231. $as_echo "no" >&6; }
  12232. fi
  12233. fi
  12234. HAVE_GCC_VISIBILITY_BROKEN=
  12235. if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \); then
  12236. ac_ext=cpp
  12237. ac_cpp='$CXXCPP $CPPFLAGS'
  12238. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12239. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12240. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12241. save_CPPFLAGS="$CPPFLAGS"
  12242. if test -n "$MACOSX_SDK_PATH"; then
  12243. CPPFLAGS="-isysroot $MACOSX_SDK_PATH $CPPFLAGS"
  12244. fi
  12245. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if STL headers are visibility safe (GCC bug 22482)" >&5
  12247. $as_echo_n "checking if STL headers are visibility safe (GCC bug 22482)... " >&6; }
  12248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12249. /* end confdefs.h. */
  12250. #include <string>
  12251. _ACEOF
  12252. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12253. $EGREP "visibility push" >/dev/null 2>&1; then :
  12254. stlvisok=yes
  12255. else
  12256. stlvisok=no
  12257. fi
  12258. rm -f conftest*
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stlvisok" >&5
  12260. $as_echo "$stlvisok" >&6; }
  12261. if test "$stlvisok" = "no"; then
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&5
  12263. $as_echo "$as_me: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&2;}
  12264. echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
  12265. unset HAVE_GCC_VISIBILITY_FEATURE
  12266. fi
  12267. fi
  12268. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  12269. sharedlink_ldflags_save=$LDFLAGS
  12270. LDFLAGS="$LDFLAGS -fvisibility-inlines-hidden $PICSWITCH $LINKFLAGSSHL"
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc is -fvisibility-inlines-hidden safe with STL headers" >&5
  12272. $as_echo_n "checking if gcc is -fvisibility-inlines-hidden safe with STL headers... " >&6; }
  12273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12274. /* end confdefs.h. */
  12275. #include <sstream>
  12276. using namespace std;
  12277. int
  12278. main ()
  12279. {
  12280. istringstream strm( "test" ); return 0;
  12281. ;
  12282. return 0;
  12283. }
  12284. _ACEOF
  12285. if ac_fn_cxx_try_link "$LINENO"; then :
  12286. # Ugh, surely bad to assume an error message will contain
  12287. # the word "unresolvable", a problem with
  12288. # -fvisibility-inlines-hidden and STL headers might cause
  12289. # some more obscure message on some platform, and anway,
  12290. # the error message could be localised.
  12291. $EGREP -q unresolvable conftest.err;
  12292. if test $? -eq 0; then gccvisok=no; else gccvisok=yes; fi
  12293. else
  12294. gccvisok=no
  12295. fi
  12296. rm -f core conftest.err conftest.$ac_objext \
  12297. conftest$ac_exeext conftest.$ac_ext
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisok" >&5
  12299. $as_echo "$gccvisok" >&6; }
  12300. if test "$gccvisok" = "no"; then
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >&5
  12302. $as_echo "$as_me: WARNING: Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >&2;}
  12303. echo "Your gcc is not -fvisibility-inlines-hidden safe, disabling that." >> warn
  12304. HAVE_GCC_VISIBILITY_BROKEN="TRUE"
  12305. fi
  12306. LDFLAGS=$sharedlink_ldflags_save
  12307. fi
  12308. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE" -a "$HAVE_GCC_VISIBILITY_BROKEN" != "TRUE"; then
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc is -fvisibility-inlines-hidden safe (Clang bug 11250)" >&5
  12310. $as_echo_n "checking if gcc is -fvisibility-inlines-hidden safe (Clang bug 11250)... " >&6; }
  12311. cat > conftestlib1.cc <<_ACEOF
  12312. template<typename T> struct S1 { virtual ~S1() {} virtual void f() {} };
  12313. struct S2: S1<int> { virtual ~S2(); };
  12314. S2::~S2() {}
  12315. _ACEOF
  12316. cat > conftestlib2.cc <<_ACEOF
  12317. template<typename T> struct S1 { virtual ~S1() {} virtual void f() {} };
  12318. struct S2: S1<int> { virtual ~S2(); };
  12319. struct S3: S2 { virtual ~S3(); }; S3::~S3() {}
  12320. _ACEOF
  12321. gccvisinlineshiddenok=yes
  12322. if ! $CXX $CXXFLAGS $CPPFLAGS $LINKFLAGSSHL -fPIC -fvisibility-inlines-hidden conftestlib1.cc -o libconftest1$DLLPOST >/dev/null 2>&5; then
  12323. gccvisinlineshiddenok=no
  12324. else
  12325. if ! $CXX $CXXFLAGS $CPPFLAGS $LINKFLAGSSHL -fPIC -fvisibility-inlines-hidden conftestlib2.cc -L. -lconftest1 $LINKFLAGSNOUNDEFS -o libconftest2$DLLPOST >/dev/null 2>&5; then
  12326. gccvisinlineshiddenok=no
  12327. fi
  12328. fi
  12329. rm -f libconftest1$DLLPOST libconftest2$DLLPOST
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisinlineshiddenok" >&5
  12331. $as_echo "$gccvisinlineshiddenok" >&6; }
  12332. if test "$gccvisinlineshiddenok" = "no"; then
  12333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc/clang is not -fvisibility-inlines-hidden safe, disabling that." >&5
  12334. $as_echo "$as_me: WARNING: Your gcc/clang is not -fvisibility-inlines-hidden safe, disabling that." >&2;}
  12335. echo "Your gcc/clang is not -fvisibility-inlines-hidden safe, disabling that." >> warn
  12336. HAVE_GCC_VISIBILITY_BROKEN="TRUE"
  12337. fi
  12338. fi
  12339. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)" >&5
  12341. $as_echo_n "checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)... " >&6; }
  12342. cat >visibility.cxx <<_ACEOF
  12343. #pragma GCC visibility push(hidden)
  12344. struct __attribute__ ((visibility ("default"))) TestStruct {
  12345. static void Init();
  12346. };
  12347. __attribute__ ((visibility ("default"))) void TestFunc() {
  12348. TestStruct::Init();
  12349. }
  12350. _ACEOF
  12351. if ! $CXX $CXXFLAGS $CPPFLAGS -fpic -S visibility.cxx 2>/dev/null > /dev/null; then
  12352. gccvisbroken=yes
  12353. else
  12354. case "$host_cpu" in
  12355. i?86|x86_64)
  12356. if test "$_os" = "Darwin"; then
  12357. gccvisbroken=no
  12358. else
  12359. if $EGREP -q '@PLT|@GOT' visibility.s; then
  12360. gccvisbroken=no
  12361. else
  12362. gccvisbroken=yes
  12363. fi
  12364. fi
  12365. ;;
  12366. *)
  12367. gccvisbroken=no
  12368. ;;
  12369. esac
  12370. fi
  12371. rm -f visibility.s visibility.cxx
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisbroken" >&5
  12373. $as_echo "$gccvisbroken" >&6; }
  12374. if test "$gccvisbroken" = "yes"; then
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&5
  12376. $as_echo "$as_me: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&2;}
  12377. echo "Your gcc is not -fvisibility=hidden safe. Disabling visibility" >> warn
  12378. unset HAVE_GCC_VISIBILITY_FEATURE
  12379. fi
  12380. fi
  12381. CPPFLAGS="$save_CPPFLAGS"
  12382. ac_ext=c
  12383. ac_cpp='$CPP $CPPFLAGS'
  12384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12387. fi
  12388. HAVE_SFINAE_ANONYMOUS_BROKEN=
  12389. if test \( "$_os" != "WINNT" -o "$WITH_MINGW" = "yes" \); then
  12390. ac_ext=cpp
  12391. ac_cpp='$CXXCPP $CPPFLAGS'
  12392. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12393. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12394. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SFINAE is broken with anonymous types" >&5
  12396. $as_echo_n "checking if SFINAE is broken with anonymous types... " >&6; }
  12397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12398. /* end confdefs.h. */
  12399. enum { AnonymousEnumValue };
  12400. template< typename T > class TestPredicate {};
  12401. template<> class TestPredicate< int > { public: typedef bool Type; };
  12402. template< typename T >
  12403. bool test( const T&, typename TestPredicate< T >::Type = false )
  12404. { return true; };
  12405. void test( ... );
  12406. int
  12407. main ()
  12408. {
  12409. test( 10 );
  12410. test( AnonymousEnumValue );
  12411. ;
  12412. return 0;
  12413. }
  12414. _ACEOF
  12415. if ac_fn_cxx_try_compile "$LINENO"; then :
  12416. sfinae_anonymous_broken=no
  12417. else
  12418. sfinae_anonymous_broken=yes
  12419. fi
  12420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sfinae_anonymous_broken" >&5
  12422. $as_echo "$sfinae_anonymous_broken" >&6; }
  12423. if test "$sfinae_anonymous_broken" = "yes"; then
  12424. HAVE_SFINAE_ANONYMOUS_BROKEN="TRUE"
  12425. fi
  12426. ac_ext=c
  12427. ac_cpp='$CPP $CPPFLAGS'
  12428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12431. fi
  12432. HAVE_GCC_FNO_DEFAULT_INLINE=
  12433. HAVE_GCC_FNO_ENFORCE_EH_SPECS=
  12434. if test "$GCC" = "yes"; then
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fno-default-inline" >&5
  12436. $as_echo_n "checking whether $CXX supports -fno-default-inline... " >&6; }
  12437. if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
  12438. # Option just ignored and silly warning that isn't a real
  12439. # warning printed
  12440. :
  12441. else
  12442. ac_ext=cpp
  12443. ac_cpp='$CXXCPP $CPPFLAGS'
  12444. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12445. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12446. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12447. save_CXXFLAGS=$CXXFLAGS
  12448. CXXFLAGS="$CFLAGS -Werror -fno-default-inline"
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. int
  12452. main ()
  12453. {
  12454. return 0;
  12455. ;
  12456. return 0;
  12457. }
  12458. _ACEOF
  12459. if ac_fn_cxx_try_link "$LINENO"; then :
  12460. HAVE_GCC_FNO_DEFAULT_INLINE=TRUE
  12461. fi
  12462. rm -f core conftest.err conftest.$ac_objext \
  12463. conftest$ac_exeext conftest.$ac_ext
  12464. CXXFLAGS=$save_CXXFLAGS
  12465. ac_ext=c
  12466. ac_cpp='$CPP $CPPFLAGS'
  12467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12470. fi
  12471. if test "$HAVE_GCC_FNO_DEFAULT_INLINE" = "TRUE"; then
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12473. $as_echo "yes" >&6; }
  12474. else
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12476. $as_echo "no" >&6; }
  12477. fi
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fno-enforce-eh-specs" >&5
  12479. $as_echo_n "checking whether $CXX supports -fno-enforce-eh-specs... " >&6; }
  12480. if test -n "$CLANGVER" -a 0"$CLANGVER" -le 30100; then
  12481. # As above
  12482. :
  12483. else
  12484. ac_ext=cpp
  12485. ac_cpp='$CXXCPP $CPPFLAGS'
  12486. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12487. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12488. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12489. save_CXXFLAGS=$CXXFLAGS
  12490. CXXFLAGS="$CFLAGS -Werror -fno-enforce-eh-specs"
  12491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12492. /* end confdefs.h. */
  12493. int
  12494. main ()
  12495. {
  12496. return 0;
  12497. ;
  12498. return 0;
  12499. }
  12500. _ACEOF
  12501. if ac_fn_cxx_try_link "$LINENO"; then :
  12502. HAVE_GCC_FNO_ENFORCE_EH_SPECS=TRUE
  12503. fi
  12504. rm -f core conftest.err conftest.$ac_objext \
  12505. conftest$ac_exeext conftest.$ac_ext
  12506. CXXFLAGS=$save_CXXFLAGS
  12507. ac_ext=c
  12508. ac_cpp='$CPP $CPPFLAGS'
  12509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12512. fi
  12513. if test "$HAVE_GCC_FNO_ENFORCE_EH_SPECS" = "TRUE"; then
  12514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12515. $as_echo "yes" >&6; }
  12516. else
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12518. $as_echo "no" >&6; }
  12519. fi
  12520. fi
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which memory allocator to use" >&5
  12522. $as_echo_n "checking which memory allocator to use... " >&6; }
  12523. if test "$with_alloc" = "system"; then
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  12525. $as_echo "system" >&6; }
  12526. ALLOC="SYS_ALLOC";
  12527. for ac_func in malloc realloc calloc free
  12528. do :
  12529. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12530. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12531. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12532. cat >>confdefs.h <<_ACEOF
  12533. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12534. _ACEOF
  12535. fi
  12536. done
  12537. fi
  12538. if test "$with_alloc" = "tcmalloc"; then
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcmalloc" >&5
  12540. $as_echo "tcmalloc" >&6; }
  12541. if ! echo $host_cpu | $GREP -E 'i[3456]86' 2>/dev/null >/dev/null; then
  12542. as_fn_error $? "tcmalloc only available/usable on ix86" "$LINENO" 5
  12543. fi
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc" >&5
  12545. $as_echo_n "checking for malloc in -ltcmalloc... " >&6; }
  12546. if ${ac_cv_lib_tcmalloc_malloc+:} false; then :
  12547. $as_echo_n "(cached) " >&6
  12548. else
  12549. ac_check_lib_save_LIBS=$LIBS
  12550. LIBS="-ltcmalloc $LIBS"
  12551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12552. /* end confdefs.h. */
  12553. /* Override any GCC internal prototype to avoid an error.
  12554. Use char because int might match the return type of a GCC
  12555. builtin and then its argument prototype would still apply. */
  12556. #ifdef __cplusplus
  12557. extern "C"
  12558. #endif
  12559. char malloc ();
  12560. int
  12561. main ()
  12562. {
  12563. return malloc ();
  12564. ;
  12565. return 0;
  12566. }
  12567. _ACEOF
  12568. if ac_fn_c_try_link "$LINENO"; then :
  12569. ac_cv_lib_tcmalloc_malloc=yes
  12570. else
  12571. ac_cv_lib_tcmalloc_malloc=no
  12572. fi
  12573. rm -f core conftest.err conftest.$ac_objext \
  12574. conftest$ac_exeext conftest.$ac_ext
  12575. LIBS=$ac_check_lib_save_LIBS
  12576. fi
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_malloc" >&5
  12578. $as_echo "$ac_cv_lib_tcmalloc_malloc" >&6; }
  12579. if test "x$ac_cv_lib_tcmalloc_malloc" = xyes; then :
  12580. :
  12581. else
  12582. as_fn_error $? "tcmalloc not found or functional. Install the Google Profiling Tools" "$LINENO" 5
  12583. fi
  12584. ALLOC="TCMALLOC";
  12585. fi
  12586. if test "$with_alloc" = "jemalloc"; then
  12587. if test "$_os" != "FreeBSD" -o "$_os" != "NetBSD"; then
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc" >&5
  12589. $as_echo "jemalloc" >&6; }
  12590. save_CFLAGS=$CFLAGS
  12591. CFLAGS="$CFLAGS -pthread"
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ljemalloc" >&5
  12593. $as_echo_n "checking for malloc in -ljemalloc... " >&6; }
  12594. if ${ac_cv_lib_jemalloc_malloc+:} false; then :
  12595. $as_echo_n "(cached) " >&6
  12596. else
  12597. ac_check_lib_save_LIBS=$LIBS
  12598. LIBS="-ljemalloc $LIBS"
  12599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12600. /* end confdefs.h. */
  12601. /* Override any GCC internal prototype to avoid an error.
  12602. Use char because int might match the return type of a GCC
  12603. builtin and then its argument prototype would still apply. */
  12604. #ifdef __cplusplus
  12605. extern "C"
  12606. #endif
  12607. char malloc ();
  12608. int
  12609. main ()
  12610. {
  12611. return malloc ();
  12612. ;
  12613. return 0;
  12614. }
  12615. _ACEOF
  12616. if ac_fn_c_try_link "$LINENO"; then :
  12617. ac_cv_lib_jemalloc_malloc=yes
  12618. else
  12619. ac_cv_lib_jemalloc_malloc=no
  12620. fi
  12621. rm -f core conftest.err conftest.$ac_objext \
  12622. conftest$ac_exeext conftest.$ac_ext
  12623. LIBS=$ac_check_lib_save_LIBS
  12624. fi
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc" >&5
  12626. $as_echo "$ac_cv_lib_jemalloc_malloc" >&6; }
  12627. if test "x$ac_cv_lib_jemalloc_malloc" = xyes; then :
  12628. :
  12629. else
  12630. as_fn_error $? "jemalloc not found or functional. Install the jemalloc allocator." "$LINENO" 5
  12631. fi
  12632. ALLOC="JEMALLOC";
  12633. CFLAGS=$save_CFLAGS
  12634. else
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  12636. $as_echo "system" >&6; }
  12637. ALLOC="SYS_ALLOC";
  12638. for ac_func in malloc realloc calloc free
  12639. do :
  12640. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12641. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12642. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12643. cat >>confdefs.h <<_ACEOF
  12644. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12645. _ACEOF
  12646. fi
  12647. done
  12648. fi
  12649. fi
  12650. if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12652. $as_echo "internal" >&6; }
  12653. fi
  12654. for ac_func in posix_fallocate
  12655. do :
  12656. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  12657. if test "x$ac_cv_func_posix_fallocate" = xyes; then :
  12658. cat >>confdefs.h <<_ACEOF
  12659. #define HAVE_POSIX_FALLOCATE 1
  12660. _ACEOF
  12661. HAVE_POSIX_FALLOCATE=YES
  12662. else
  12663. HAVE_POSIX_FALLOCATE=NO
  12664. fi
  12665. done
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add custom build version" >&5
  12667. $as_echo_n "checking whether to add custom build version... " >&6; }
  12668. if test "$with_build_version" != ""; then
  12669. BUILD_VER_STRING=$with_build_version
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $BUILD_VER_STRING" >&5
  12671. $as_echo "yes, $BUILD_VER_STRING" >&6; }
  12672. else
  12673. BUILD_VER_STRING=
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12675. $as_echo "no" >&6; }
  12676. fi
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Java support" >&5
  12678. $as_echo_n "checking whether to build with Java support... " >&6; }
  12679. if test "$with_java" != "no"; then
  12680. if test "$DISABLE_SCRIPTING" = TRUE; then
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, overridden by --disable-scripting" >&5
  12682. $as_echo "no, overridden by --disable-scripting" >&6; }
  12683. SOLAR_JAVA=""
  12684. with_java=no
  12685. else
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12687. $as_echo "yes" >&6; }
  12688. SOLAR_JAVA="TRUE"
  12689. fi
  12690. else
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12692. $as_echo "no" >&6; }
  12693. SOLAR_JAVA=""
  12694. fi
  12695. JITC_PROCESSOR_TYPE=""
  12696. if test "$_os" = "Linux" -a "$host_cpu" = "powerpc"; then
  12697. # IBMs JDK needs this...
  12698. JITC_PROCESSOR_TYPE=6
  12699. export JITC_PROCESSOR_TYPE
  12700. fi
  12701. if test $_os = "WINNT"; then
  12702. SCPDEFS="$SCPDEFS -DWITH_VC_REDIST"
  12703. fi
  12704. if test "$SOLAR_JAVA" != ""; then
  12705. # Windows-specific tests
  12706. if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
  12707. if test "$CL_X64" != ""; then
  12708. bitness="64-bit"
  12709. otherbitness="32-bit"
  12710. else
  12711. bitness="32-bit"
  12712. otherbitness="64-bit"
  12713. fi
  12714. if test -z "$with_jdk_home"; then
  12715. # Unfortunately apparently no way to find, if needed, the 64-bit
  12716. # JDK in the Registry from the 32-bit Perl oowintool
  12717. _jdk_home=`./oowintool --jdk-home`
  12718. if test -f "$_jdk_home/lib/jvm.lib" -a -f "$_jdk_home/bin/java.exe"; then
  12719. with_jdk_home="$_jdk_home"
  12720. howfound="found by oowintool"
  12721. else
  12722. as_fn_error $? "No JDK found by oowintool, pass the --with-jdk-home option pointing to a $bitness JDK" "$LINENO" 5
  12723. fi
  12724. else
  12725. test "$build_os" = "cygwin" && with_jdk_home=`cygpath -u "$with_jdk_home"`
  12726. howfound="you passed"
  12727. fi
  12728. fi
  12729. JAVA_HOME=; export JAVA_HOME
  12730. if test -z "$with_jdk_home"; then
  12731. # Extract the first word of "$with_java", so it can be a program name with args.
  12732. set dummy $with_java; ac_word=$2
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12734. $as_echo_n "checking for $ac_word... " >&6; }
  12735. if ${ac_cv_path_JAVAINTERPRETER+:} false; then :
  12736. $as_echo_n "(cached) " >&6
  12737. else
  12738. case $JAVAINTERPRETER in
  12739. [\\/]* | ?:[\\/]*)
  12740. ac_cv_path_JAVAINTERPRETER="$JAVAINTERPRETER" # Let the user override the test with a path.
  12741. ;;
  12742. *)
  12743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12744. for as_dir in $PATH
  12745. do
  12746. IFS=$as_save_IFS
  12747. test -z "$as_dir" && as_dir=.
  12748. for ac_exec_ext in '' $ac_executable_extensions; do
  12749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12750. ac_cv_path_JAVAINTERPRETER="$as_dir/$ac_word$ac_exec_ext"
  12751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12752. break 2
  12753. fi
  12754. done
  12755. done
  12756. IFS=$as_save_IFS
  12757. ;;
  12758. esac
  12759. fi
  12760. JAVAINTERPRETER=$ac_cv_path_JAVAINTERPRETER
  12761. if test -n "$JAVAINTERPRETER"; then
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAINTERPRETER" >&5
  12763. $as_echo "$JAVAINTERPRETER" >&6; }
  12764. else
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12766. $as_echo "no" >&6; }
  12767. fi
  12768. else
  12769. _java_path="$with_jdk_home/bin/$with_java"
  12770. if test -x "$_java_path"; then
  12771. JAVAINTERPRETER=$_java_path
  12772. else
  12773. as_fn_error $? "$_java_path not found, pass --with-jdk-home" "$LINENO" 5
  12774. fi
  12775. fi
  12776. if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
  12777. # Check that the JDK found is correct architecture
  12778. # Why is this necessary, we don't link with any library from the JDK I think,
  12779. shortjdkhome=`cygpath -d "$with_jdk_home"`
  12780. if test "$CL_X64" != "" -a -f "$with_jdk_home/bin/java.exe" -a "`$shortjdkhome/bin/java.exe -version 2>&1 | $GREP -i 64-bit`" = "" >/dev/null; then
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building 64-bit binaries but the JDK $howfound is 32-bit" >&5
  12782. $as_echo "$as_me: WARNING: You are building 64-bit binaries but the JDK $howfound is 32-bit" >&2;}
  12783. as_fn_error $? "You should pass the --with-jdk-home option pointing to a 64-bit JDK" "$LINENO" 5
  12784. elif test "$CL_X64" = "" -a -f "$_jdk_home/bin/java.exe" -a "`$shortjdkhome/bin/java.exe -version 2>&1 | $GREP -i 64-bit`" != "" >/dev/null; then
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&5
  12786. $as_echo "$as_me: WARNING: You are building 32-bit binaries but the JDK $howfound is 64-bit" >&2;}
  12787. as_fn_error $? "You should pass the --with-jdk-home option pointing to a (32-bit) JDK" "$LINENO" 5
  12788. fi
  12789. if test x`echo "$JAVAINTERPRETER" | $GREP -i '\.exe$'` = x; then
  12790. JAVAINTERPRETER="${JAVAINTERPRETER}.exe"
  12791. fi
  12792. JAVAINTERPRETER=`cygpath -d "$JAVAINTERPRETER"`
  12793. JAVAINTERPRETER=`cygpath -u "$JAVAINTERPRETER"`
  12794. elif test "$_os" = "Darwin"; then
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to pass -d32 to Java interpreter" >&5
  12796. $as_echo_n "checking whether to pass -d32 to Java interpreter... " >&6; }
  12797. if "$JAVAINTERPRETER" -d32 >&5 2>&5; then
  12798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12799. $as_echo "yes" >&6; }
  12800. JAVAIFLAGS=-d32
  12801. else
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12803. $as_echo "no" >&6; }
  12804. fi
  12805. fi
  12806. fi
  12807. # Note that JAVA_HOME as for now always means the *build* platform's
  12808. # JAVA_HOME. Whether all the complexity here actually is needed any
  12809. # more or not, no idea.
  12810. if test "$SOLAR_JAVA" != ""; then
  12811. _gij_longver=0
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the installed JDK" >&5
  12813. $as_echo_n "checking the installed JDK... " >&6; }
  12814. if test -n "$JAVAINTERPRETER"; then
  12815. if test `$JAVAINTERPRETER -version 2>&1 | $GREP -c "Kaffe"` -gt 0; then
  12816. as_fn_error $? "No valid check available. Please check the block for your desired java in configure.in" "$LINENO" 5
  12817. elif test `$JAVAINTERPRETER --version 2>&1 | $GREP -c "GNU libgcj"` -gt 0; then
  12818. JDK=gcj
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (gcj)" >&5
  12820. $as_echo "checked (gcj)" >&6; }
  12821. _gij_version=`$JAVAINTERPRETER --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
  12822. _gij_longver=`echo $_gij_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  12823. elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | $GREP -c "BEA"` -gt 0; then
  12824. as_fn_error $? "No valid check available. Please check the block for your desired java in configure.in" "$LINENO" 5
  12825. elif test `$JAVAINTERPRETER -version 2>&1 | $AWK '{ print }' | $GREP -c "IBM"` -gt 0; then
  12826. JDK=ibm
  12827. _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
  12828. _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
  12829. if test "$_jdk_ver" -lt 10500; then
  12830. as_fn_error $? "IBM JDK is too old, you need at least 1.5" "$LINENO" 5
  12831. fi
  12832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (IBM JDK $_jdk)" >&5
  12833. $as_echo "checked (IBM JDK $_jdk)" >&6; }
  12834. if test "$with_jdk_home" = ""; then
  12835. as_fn_error $? "In order to successfully build LibreOffice using the IBM JDK,
  12836. you must use the \"--with-jdk-home\" configure option explicitly" "$LINENO" 5
  12837. fi
  12838. JAVA_HOME=$with_jdk_home
  12839. else
  12840. JDK=sun
  12841. _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
  12842. _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
  12843. if test "$_jdk_ver" -lt 10500; then
  12844. as_fn_error $? "JDK is too old, you need at least 1.5" "$LINENO" 5
  12845. fi
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (JDK $_jdk)" >&5
  12847. $as_echo "checked (JDK $_jdk)" >&6; }
  12848. JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
  12849. if test "$_os" = "WINNT"; then
  12850. JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
  12851. fi
  12852. fi
  12853. else
  12854. as_fn_error $? "Java not found. You need at least jdk-1.5, or gcj-4" "$LINENO" 5
  12855. fi
  12856. else
  12857. JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
  12858. fi
  12859. _java_target_ver="1.5"
  12860. if test "$SOLAR_JAVA" != ""; then
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target Java bytecode version" >&5
  12862. $as_echo_n "checking for target Java bytecode version... " >&6; }
  12863. if test "$JDK" = "gcj" -o "$JDK" = "kaffe"; then
  12864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: default by $JDK" >&5
  12865. $as_echo "default by $JDK" >&6; }
  12866. if test -n "$with_java_target_version" -a "$with_java_target_version" != "no"; then
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value defined by --with-java-target-version is ignored!" >&5
  12868. $as_echo "$as_me: WARNING: Value defined by --with-java-target-version is ignored!" >&2;}
  12869. fi
  12870. else
  12871. if test -n "$with_java_target_version" -a "$with_java_target_version" != "no"; then
  12872. _java_target_ver="$with_java_target_version"
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_java_target_ver" >&5
  12874. $as_echo "$_java_target_ver" >&6; }
  12875. elif test $_jdk_ver -gt 10000; then
  12876. _java_target_ver=`echo "$_jdk_ver" | $AWK '{ maj=substr($0,1,1); min=substr($0,2,2); print int(maj)"."int(min) }'`
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_java_target_ver" >&5
  12878. $as_echo "$_java_target_ver" >&6; }
  12879. else
  12880. as_fn_error $? "Unable to guess Java bytecode version from Java version!" "$LINENO" 5
  12881. fi
  12882. fi
  12883. JAVA_SOURCE_VER="$_java_target_ver"
  12884. JAVA_TARGET_VER="$_java_target_ver"
  12885. fi
  12886. if test "$SOLAR_JAVA" != ""; then
  12887. if test "$JDK" = "gcj"; then
  12888. javacompiler=`echo $with_java | $SED -e "s/gij/gcj/g" | $SED -e "s/java/javac/g"`
  12889. else
  12890. javacompiler="javac"
  12891. fi
  12892. if test -z "$with_jdk_home"; then
  12893. # Extract the first word of "$javacompiler", so it can be a program name with args.
  12894. set dummy $javacompiler; ac_word=$2
  12895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12896. $as_echo_n "checking for $ac_word... " >&6; }
  12897. if ${ac_cv_path_JAVACOMPILER+:} false; then :
  12898. $as_echo_n "(cached) " >&6
  12899. else
  12900. case $JAVACOMPILER in
  12901. [\\/]* | ?:[\\/]*)
  12902. ac_cv_path_JAVACOMPILER="$JAVACOMPILER" # Let the user override the test with a path.
  12903. ;;
  12904. *)
  12905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12906. for as_dir in $PATH
  12907. do
  12908. IFS=$as_save_IFS
  12909. test -z "$as_dir" && as_dir=.
  12910. for ac_exec_ext in '' $ac_executable_extensions; do
  12911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12912. ac_cv_path_JAVACOMPILER="$as_dir/$ac_word$ac_exec_ext"
  12913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12914. break 2
  12915. fi
  12916. done
  12917. done
  12918. IFS=$as_save_IFS
  12919. ;;
  12920. esac
  12921. fi
  12922. JAVACOMPILER=$ac_cv_path_JAVACOMPILER
  12923. if test -n "$JAVACOMPILER"; then
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVACOMPILER" >&5
  12925. $as_echo "$JAVACOMPILER" >&6; }
  12926. else
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12928. $as_echo "no" >&6; }
  12929. fi
  12930. else
  12931. _javac_path="$with_jdk_home/bin/$javacompiler"
  12932. if test -x "$_javac_path"; then
  12933. JAVACOMPILER=$_javac_path
  12934. fi
  12935. fi
  12936. if test -z "$JAVACOMPILER"; then
  12937. as_fn_error $? "$javacompiler not found set with_jdk_home" "$LINENO" 5
  12938. fi
  12939. if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
  12940. if test x`echo "$JAVACOMPILER" | $GREP -i '\.exe$'` = x; then
  12941. JAVACOMPILER="${JAVACOMPILER}.exe"
  12942. fi
  12943. JAVACOMPILER=`cygpath -d "$JAVACOMPILER"`
  12944. JAVACOMPILER=`cygpath -u "$JAVACOMPILER"`
  12945. fi
  12946. if test `$JAVACOMPILER -version 2>&1 | $GREP -c "Eclipse Java Compiler"` -gt 0; then
  12947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking re-checking JDK" >&5
  12948. $as_echo_n "checking re-checking JDK... " >&6; }
  12949. JDK=gcj
  12950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (ecj)" >&5
  12951. $as_echo "checked (ecj)" >&6; }
  12952. #TODO: what's to do here? some switch to do 1.5 compiling?
  12953. JAVAFLAGS="-source 1.5 -target 1.5"
  12954. _gij_longver="40200"
  12955. fi
  12956. fi
  12957. JAVACISGCJ=""
  12958. if test "$SOLAR_JAVA" != ""; then
  12959. if test `$JAVACOMPILER --version 2>&1 | $GREP -c "GCC"` -gt 0; then
  12960. JAVACISGCJ="yes"
  12961. fi
  12962. fi
  12963. JAVACISKAFFE=""
  12964. if test "$SOLAR_JAVA" != ""; then
  12965. if test `$JAVACOMPILER -version 2>&1 | $GREP -c "Kaffe"` -gt 0; then
  12966. JAVACISKAFFE="yes"
  12967. fi
  12968. fi
  12969. if test "$SOLAR_JAVA" != ""; then
  12970. if test -z "$with_jdk_home"; then
  12971. # Extract the first word of "javadoc", so it can be a program name with args.
  12972. set dummy javadoc; ac_word=$2
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12974. $as_echo_n "checking for $ac_word... " >&6; }
  12975. if ${ac_cv_path_JAVADOC+:} false; then :
  12976. $as_echo_n "(cached) " >&6
  12977. else
  12978. case $JAVADOC in
  12979. [\\/]* | ?:[\\/]*)
  12980. ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  12981. ;;
  12982. *)
  12983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12984. for as_dir in $PATH
  12985. do
  12986. IFS=$as_save_IFS
  12987. test -z "$as_dir" && as_dir=.
  12988. for ac_exec_ext in '' $ac_executable_extensions; do
  12989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12990. ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
  12991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12992. break 2
  12993. fi
  12994. done
  12995. done
  12996. IFS=$as_save_IFS
  12997. ;;
  12998. esac
  12999. fi
  13000. JAVADOC=$ac_cv_path_JAVADOC
  13001. if test -n "$JAVADOC"; then
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
  13003. $as_echo "$JAVADOC" >&6; }
  13004. else
  13005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13006. $as_echo "no" >&6; }
  13007. fi
  13008. else
  13009. _javadoc_path="$with_jdk_home/bin/javadoc"
  13010. if test -x "$_javadoc_path"; then
  13011. JAVADOC=$_javadoc_path
  13012. else
  13013. # Extract the first word of "javadoc", so it can be a program name with args.
  13014. set dummy javadoc; ac_word=$2
  13015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13016. $as_echo_n "checking for $ac_word... " >&6; }
  13017. if ${ac_cv_path_JAVADOC+:} false; then :
  13018. $as_echo_n "(cached) " >&6
  13019. else
  13020. case $JAVADOC in
  13021. [\\/]* | ?:[\\/]*)
  13022. ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  13023. ;;
  13024. *)
  13025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13026. for as_dir in $PATH
  13027. do
  13028. IFS=$as_save_IFS
  13029. test -z "$as_dir" && as_dir=.
  13030. for ac_exec_ext in '' $ac_executable_extensions; do
  13031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13032. ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
  13033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13034. break 2
  13035. fi
  13036. done
  13037. done
  13038. IFS=$as_save_IFS
  13039. ;;
  13040. esac
  13041. fi
  13042. JAVADOC=$ac_cv_path_JAVADOC
  13043. if test -n "$JAVADOC"; then
  13044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
  13045. $as_echo "$JAVADOC" >&6; }
  13046. else
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13048. $as_echo "no" >&6; }
  13049. fi
  13050. fi
  13051. fi
  13052. if test -z "$JAVADOC"; then
  13053. as_fn_error $? "$_javadoc_path not found set with_jdk_home" "$LINENO" 5
  13054. fi
  13055. if test "$build_os" = "cygwin" -a "$_os" = "WINNT"; then
  13056. if test x`echo "$JAVADOC" | $GREP -i '\.exe$'` = x; then
  13057. JAVADOC="${JAVADOC}.exe"
  13058. fi
  13059. JAVADOC=`cygpath -d "$JAVADOC"`
  13060. JAVADOC=`cygpath -u "$JAVADOC"`
  13061. fi
  13062. fi
  13063. if test "$SOLAR_JAVA" != ""; then
  13064. # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr
  13065. if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then
  13066. if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then
  13067. # try to recover first by looking whether we have a alternatives
  13068. # system as in Debian or newer SuSEs where following /usr/bin/javac
  13069. # over /etc/alternatives/javac leads to the right bindir where we
  13070. # just need to strip a bit away to get a valid JAVA_HOME
  13071. JAVA_HOME=$(readlink $(readlink $JAVACOMPILER))
  13072. elif readlink $JAVACOMPILER >/dev/null 2>/dev/null; then
  13073. # maybe only one level of symlink (e.g. on Mac)
  13074. JAVA_HOME=$(readlink $JAVACOMPILER)
  13075. if test "$(dirname $JAVA_HOME)" = "."; then
  13076. # we've got no path to trim back
  13077. JAVA_HOME=""
  13078. fi
  13079. else
  13080. # else warn
  13081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&5
  13082. $as_echo "$as_me: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&2;}
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&5
  13084. $as_echo "$as_me: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&2;}
  13085. echo "JAVA_HOME is set to /usr - this is very likely to be incorrect" >> warn
  13086. echo "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >> warn
  13087. fi
  13088. if test "$JAVA_HOME" != "/usr"; then
  13089. if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
  13090. JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/Current/Commands/javac$,/CurrentJDK/Home,)
  13091. JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/CurrentJDK/Commands/javac$,/CurrentJDK/Home,)
  13092. else
  13093. JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/bin/javac$,,)
  13094. fi
  13095. fi
  13096. fi
  13097. # as we drop out of this, JAVA_HOME may have been set to the empty string by readlink
  13098. if test -z "$JAVA_HOME"; then
  13099. if test "x$with_jdk_home" = "x"; then
  13100. cat > findhome.java <<_ACEOF
  13101. import java.io.File;
  13102. class findhome
  13103. {
  13104. public static void main(String args[])
  13105. {
  13106. String jrelocation = System.getProperty("java.home");
  13107. File jre = new File(jrelocation);
  13108. System.out.println(jre.getParent());
  13109. }
  13110. }
  13111. _ACEOF
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if javac works" >&5
  13113. $as_echo_n "checking if javac works... " >&6; }
  13114. javac_cmd="$JAVACOMPILER findhome.java 1>&2"
  13115. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$javac_cmd\""; } >&5
  13116. (eval $javac_cmd) 2>&5
  13117. ac_status=$?
  13118. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13119. test $ac_status = 0; }
  13120. if test $? = 0 -a -f ./findhome.class; then
  13121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: javac works" >&5
  13122. $as_echo "javac works" >&6; }
  13123. else
  13124. echo "configure: javac test failed" >&5
  13125. cat findhome.java >&5
  13126. as_fn_error $? "javac does not work - java projects will not build!" "$LINENO" 5
  13127. fi
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gij knows its java.home" >&5
  13129. $as_echo_n "checking if gij knows its java.home... " >&6; }
  13130. JAVA_HOME=`$JAVAINTERPRETER findhome`
  13131. if test $? = 0 -a "$JAVA_HOME" != ""; then
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_HOME" >&5
  13133. $as_echo "$JAVA_HOME" >&6; }
  13134. else
  13135. echo "configure: java test failed" >&5
  13136. cat findhome.java >&5
  13137. as_fn_error $? "gij does not know its java.home - use --with-jdk-home" "$LINENO" 5
  13138. fi
  13139. # clean-up after ourselves
  13140. rm -f ./findhome.java ./findhome.class
  13141. else
  13142. JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*$with_java,,p"`
  13143. fi
  13144. fi
  13145. if test "$JDK" != "gcj" -o "$_gij_longver" -ge "40200"; then
  13146. # now check if $JAVA_HOME is really valid
  13147. if test "$_os" = "Darwin" -o "$OS_FOR_BUILD" = MACOSX; then
  13148. if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
  13149. JAVA_HOME_OK="NO"
  13150. fi
  13151. elif test ! -d "$JAVA_HOME/jre" -a "x$with_jdk_home" = "x"; then
  13152. JAVA_HOME_OK="NO"
  13153. fi
  13154. if test "$JAVA_HOME_OK" = "NO"; then
  13155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&5
  13156. $as_echo "$as_me: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&2;}
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&5
  13158. $as_echo "$as_me: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&2;}
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&5
  13160. $as_echo "$as_me: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&2;}
  13161. echo "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >> warn
  13162. echo "attempted to find JAVA_HOME automatically, but apparently it failed" >> warn
  13163. echo "in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >> warn
  13164. fi
  13165. fi
  13166. PathFormat "$JAVA_HOME"
  13167. JAVA_HOME="$formatted_path"
  13168. fi
  13169. AWTLIB=
  13170. if test "$SOLAR_JAVA" != ""; then
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jawt lib name" >&5
  13172. $as_echo_n "checking for jawt lib name... " >&6; }
  13173. if test "$JDK" = "gcj"; then
  13174. save_CFLAGS=$CFLAGS
  13175. save_LDFLAGS=$LDFLAGS
  13176. CFLAGS="$CFLAGS -I$JAVA_HOME/include"
  13177. LDFLAGS="$LDFLAGS -L$JAVA_HOME/lib -lgcj"
  13178. exec 6>/dev/null # no output
  13179. ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
  13180. if test "x$ac_cv_header_jni_h" = xyes; then :
  13181. else
  13182. as_fn_error $? "jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" "$LINENO" 5
  13183. fi
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -lgcjawt" >&5
  13185. $as_echo_n "checking for JAWT_GetAWT in -lgcjawt... " >&6; }
  13186. if ${ac_cv_lib_gcjawt_JAWT_GetAWT+:} false; then :
  13187. $as_echo_n "(cached) " >&6
  13188. else
  13189. ac_check_lib_save_LIBS=$LIBS
  13190. LIBS="-lgcjawt $LIBS"
  13191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13192. /* end confdefs.h. */
  13193. /* Override any GCC internal prototype to avoid an error.
  13194. Use char because int might match the return type of a GCC
  13195. builtin and then its argument prototype would still apply. */
  13196. #ifdef __cplusplus
  13197. extern "C"
  13198. #endif
  13199. char JAWT_GetAWT ();
  13200. int
  13201. main ()
  13202. {
  13203. return JAWT_GetAWT ();
  13204. ;
  13205. return 0;
  13206. }
  13207. _ACEOF
  13208. if ac_fn_c_try_link "$LINENO"; then :
  13209. ac_cv_lib_gcjawt_JAWT_GetAWT=yes
  13210. else
  13211. ac_cv_lib_gcjawt_JAWT_GetAWT=no
  13212. fi
  13213. rm -f core conftest.err conftest.$ac_objext \
  13214. conftest$ac_exeext conftest.$ac_ext
  13215. LIBS=$ac_check_lib_save_LIBS
  13216. fi
  13217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcjawt_JAWT_GetAWT" >&5
  13218. $as_echo "$ac_cv_lib_gcjawt_JAWT_GetAWT" >&6; }
  13219. if test "x$ac_cv_lib_gcjawt_JAWT_GetAWT" = xyes; then :
  13220. AWTLIB="-lgcjawt -lgcj"
  13221. fi
  13222. exec 6>&1 # output on again
  13223. CFLAGS=$save_CFLAGS
  13224. LDFLAGS=$save_LDFLAGS
  13225. fi
  13226. # IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
  13227. # A workaround is to link also against libpmawt.so
  13228. if test "$JDK" = "ibm"; then
  13229. save_CFLAGS=$CFLAGS
  13230. save_LDFLAGS=$LDFLAGS
  13231. save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
  13232. CFLAGS="$CFLAGS -I$JAVA_HOME/include"
  13233. LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin"
  13234. LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:$JAVA_HOME/jre/bin/xawt:$LD_LIBRARY_PATH
  13235. export LD_LIBRARY_PATH
  13236. exec 6>/dev/null # no output
  13237. ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
  13238. if test "x$ac_cv_header_jni_h" = xyes; then :
  13239. else
  13240. as_fn_error $? "jni.h could not be found." "$LINENO" 5
  13241. fi
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -ljawt" >&5
  13243. $as_echo_n "checking for JAWT_GetAWT in -ljawt... " >&6; }
  13244. if ${ac_cv_lib_jawt_JAWT_GetAWT+:} false; then :
  13245. $as_echo_n "(cached) " >&6
  13246. else
  13247. ac_check_lib_save_LIBS=$LIBS
  13248. LIBS="-ljawt $LIBS"
  13249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13250. /* end confdefs.h. */
  13251. /* Override any GCC internal prototype to avoid an error.
  13252. Use char because int might match the return type of a GCC
  13253. builtin and then its argument prototype would still apply. */
  13254. #ifdef __cplusplus
  13255. extern "C"
  13256. #endif
  13257. char JAWT_GetAWT ();
  13258. int
  13259. main ()
  13260. {
  13261. return JAWT_GetAWT ();
  13262. ;
  13263. return 0;
  13264. }
  13265. _ACEOF
  13266. if ac_fn_c_try_link "$LINENO"; then :
  13267. ac_cv_lib_jawt_JAWT_GetAWT=yes
  13268. else
  13269. ac_cv_lib_jawt_JAWT_GetAWT=no
  13270. fi
  13271. rm -f core conftest.err conftest.$ac_objext \
  13272. conftest$ac_exeext conftest.$ac_ext
  13273. LIBS=$ac_check_lib_save_LIBS
  13274. fi
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jawt_JAWT_GetAWT" >&5
  13276. $as_echo "$ac_cv_lib_jawt_JAWT_GetAWT" >&6; }
  13277. if test "x$ac_cv_lib_jawt_JAWT_GetAWT" = xyes; then :
  13278. AWTLIB="-ljawt"
  13279. fi
  13280. if test -z "$AWTLIB"; then
  13281. LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin/xawt -ljawt"
  13282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -lmawt" >&5
  13283. $as_echo_n "checking for JAWT_GetAWT in -lmawt... " >&6; }
  13284. if ${ac_cv_lib_mawt_JAWT_GetAWT+:} false; then :
  13285. $as_echo_n "(cached) " >&6
  13286. else
  13287. ac_check_lib_save_LIBS=$LIBS
  13288. LIBS="-lmawt $LIBS"
  13289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13290. /* end confdefs.h. */
  13291. /* Override any GCC internal prototype to avoid an error.
  13292. Use char because int might match the return type of a GCC
  13293. builtin and then its argument prototype would still apply. */
  13294. #ifdef __cplusplus
  13295. extern "C"
  13296. #endif
  13297. char JAWT_GetAWT ();
  13298. int
  13299. main ()
  13300. {
  13301. return JAWT_GetAWT ();
  13302. ;
  13303. return 0;
  13304. }
  13305. _ACEOF
  13306. if ac_fn_c_try_link "$LINENO"; then :
  13307. ac_cv_lib_mawt_JAWT_GetAWT=yes
  13308. else
  13309. ac_cv_lib_mawt_JAWT_GetAWT=no
  13310. fi
  13311. rm -f core conftest.err conftest.$ac_objext \
  13312. conftest$ac_exeext conftest.$ac_ext
  13313. LIBS=$ac_check_lib_save_LIBS
  13314. fi
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mawt_JAWT_GetAWT" >&5
  13316. $as_echo "$ac_cv_lib_mawt_JAWT_GetAWT" >&6; }
  13317. if test "x$ac_cv_lib_mawt_JAWT_GetAWT" = xyes; then :
  13318. AWTLIB="-L$JAVA_HOME/jre/bin/xawt -ljawt -lmawt"
  13319. fi
  13320. fi
  13321. exec 6>&1 # output on again
  13322. CFLAGS=$save_CFLAGS
  13323. LDFLAGS=$save_LDFLAGS
  13324. LD_LIBRARY_PATH=$save_LD_LIBRARY_PATH
  13325. fi
  13326. if test -z "$AWTLIB"; then
  13327. AWTLIB=-ljawt
  13328. fi
  13329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWTLIB" >&5
  13330. $as_echo "$AWTLIB" >&6; }
  13331. fi
  13332. if test "$SOLAR_JAVA" != ""; then
  13333. #
  13334. # Determine JAVALIB
  13335. # If your platform follow the common pattern
  13336. # just define JAVA_ARCH and JAVA_TOOLKIT for it
  13337. # if not, leave JAVA_ARCH empty and define JAVALIB manually
  13338. # if you don't want JAVALIB to be exported at all
  13339. # define x_JAVALIB=[\#]
  13340. #
  13341. JAVA_ARCH=
  13342. JAVA_TOOLKIT=
  13343. x_JAVALIB=
  13344. x_JDKLIB=\#
  13345. case "$host_os" in
  13346. aix*)
  13347. JAVA_ARCH="ppc"
  13348. JAVA_TOOLKIT="classic"
  13349. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13350. SOLARINC="$SOLARINC -I$JAVA_HOME/include/aix"
  13351. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13352. ;;
  13353. cygwin*)
  13354. x_JDKLIB=
  13355. JDKLIB="$JAVA_HOME/lib"
  13356. SOLARINC="$SOLARINC -I$JAVA_HOME/include/win32"
  13357. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13358. ;;
  13359. darwin*)
  13360. x_JAVALIB=\#
  13361. SOLARINC="$SOLARINC -I$FRAMEWORKSHOME/JavaVM.framework/Versions/Current/Headers -I$FRAMEWORKSHOME/JavaVM/Headers"
  13362. ;;
  13363. dragonfly*)
  13364. case "$host_cpu" in
  13365. i*86)
  13366. JAVA_ARCH="i386"
  13367. JAVA_TOOLKIT="client"
  13368. ;;
  13369. x86_64)
  13370. JAVA_ARCH="amd64"
  13371. JAVA_TOOLKIT="server"
  13372. ;;
  13373. esac
  13374. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13375. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13376. ;;
  13377. freebsd*)
  13378. case "$host_cpu" in
  13379. i*86)
  13380. JAVA_ARCH="i386"
  13381. JAVA_TOOLKIT="client"
  13382. ;;
  13383. x86_64)
  13384. if test "`echo $JAVA_HOME | sed -e 's,.*/,,'`" = "linux"; then
  13385. JAVA_ARCH="i386"
  13386. JAVA_TOOLKIT="client"
  13387. else
  13388. JAVA_ARCH="amd64"
  13389. JAVA_TOOLKIT="server"
  13390. fi
  13391. ;;
  13392. esac
  13393. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13394. SOLARINC="$SOLARINC -I$JAVA_HOME/include/freebsd"
  13395. SOLARINC="$SOLARINC -I$JAVA_HOME/include/bsd"
  13396. SOLARINC="$SOLARINC -I$JAVA_HOME/include/linux"
  13397. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13398. ;;
  13399. k*bsd*-gnu*)
  13400. case "$host_cpu" in
  13401. i*86)
  13402. JAVA_ARCH="i386"
  13403. JAVA_TOOLKIT="client"
  13404. ;;
  13405. x86_64)
  13406. JAVA_ARCH="amd64"
  13407. JAVA_TOOLKIT="server"
  13408. ;;
  13409. esac
  13410. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13411. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13412. ;;
  13413. linux-gnu*)
  13414. case "$host_cpu" in
  13415. alpha)
  13416. JAVA_ARCH="alpha"
  13417. JAVA_TOOLKIT="server"
  13418. ;;
  13419. arm*)
  13420. JAVA_ARCH="arm"
  13421. JAVA_TOOLKIT="server"
  13422. ;;
  13423. hppa)
  13424. JAVA_ARCH="hppa"
  13425. JAVA_TOOLKIT="server"
  13426. ;;
  13427. i*86)
  13428. JAVA_ARCH="i386"
  13429. case "$JDK" in
  13430. IiBbMm*)
  13431. JAVA_ARCH=
  13432. JRE_BASE_DIR="$JAVA_HOME/jre/bin"
  13433. JAVALIB="-L$JAVA_HOME/$LIB64 -L$JRE_BASE_DIR -L$JRE_BASE_DIR/classic -L$JRE_BASE_DIR/native_thread"
  13434. ;;
  13435. BbEeAa*)
  13436. JAVA_TOOLKIT="jrockit";
  13437. ;;
  13438. *)
  13439. JAVA_TOOLKIT="client";
  13440. ;;
  13441. esac
  13442. ;;
  13443. ia64)
  13444. JAVA_ARCH="ia64"
  13445. JAVA_TOOLKIT="server"
  13446. ;;
  13447. m68k)
  13448. JAVA_ARCH="mk68"
  13449. JAVA_TOOLKIT="server"
  13450. ;;
  13451. mips|mips64|mipsel|mips64el)
  13452. JAVA_ARCH="$host_cpu"
  13453. JAVA_TOOLKIT="server"
  13454. ;;
  13455. mips32)
  13456. JAVA_ARCH="$host_cpu"
  13457. JAVA_TOOLKIT="client"
  13458. ;;
  13459. powerpc)
  13460. JAVA_ARCH="ppc"
  13461. case "$JDK" in
  13462. IiBbMm*)
  13463. JAVA_TOOLKIT="classic"
  13464. ;;
  13465. gcj)
  13466. JAVA_TOOLKIT="client"
  13467. ;;
  13468. *)
  13469. JAVA_TOOLKIT="server"
  13470. ;;
  13471. esac
  13472. ;;
  13473. powerpc64)
  13474. JAVA_ARCH="ppc64"
  13475. if test "$JDK" = "gcj"; then
  13476. JAVA_TOOLKIT="client"
  13477. else
  13478. JAVA_TOOLKIT="server"
  13479. fi
  13480. ;;
  13481. sparc)
  13482. JAVA_ARCH="sparc"
  13483. JAVA_TOOLKIT="server"
  13484. ;;
  13485. s390)
  13486. JAVA_ARCH="s390"
  13487. JAVA_TOOLKIT="server"
  13488. ;;
  13489. s390x)
  13490. JAVA_ARCH="s390x"
  13491. JAVA_TOOLKIT="server"
  13492. ;;
  13493. x86_64)
  13494. JAVA_ARCH="amd64"
  13495. JAVA_TOOLKIT="server"
  13496. ;;
  13497. *)
  13498. as_fn_error $? "No JAVALIB definition host_cpu $host_cpu for host_os $host_os" "$LINENO" 5
  13499. ;;
  13500. esac
  13501. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13502. SOLARINC="$SOLARINC -I$JAVA_HOME/include/linux"
  13503. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13504. ;;
  13505. linux-androideabi*)
  13506. case "$host_cpu" in
  13507. arm|armel)
  13508. JAVA_ARCH="arm"
  13509. JAVA_TOOLKIT="server"
  13510. ;;
  13511. esac
  13512. ;;
  13513. mingw*)
  13514. x_JAVALIB=\#
  13515. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13516. ;;
  13517. *netbsd*)
  13518. case "$host_cpu" in
  13519. i*86)
  13520. JAVA_ARCH="i386"
  13521. JAVA_TOOLKIT="client"
  13522. ;;
  13523. powerpc)
  13524. JAVA_ARCH="pcc"
  13525. JAVA_TOOLKIT="classic"
  13526. ;;
  13527. sparc)
  13528. JAVA_ARCH="sparc"
  13529. JAVA_TOOLKIT="client"
  13530. ;;
  13531. x86_64)
  13532. JAVA_ARCH="amd64"
  13533. JAVA_TOOLKIT="client"
  13534. ;;
  13535. esac
  13536. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13537. SOLARINC="$SOLARINC -I$JAVA_HOME/include/netbsd"
  13538. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13539. ;;
  13540. openbsd*)
  13541. case "$host_cpu" in
  13542. i*86)
  13543. JAVA_ARCH="i386"
  13544. JAVA_TOOLKIT="client"
  13545. ;;
  13546. x86_64)
  13547. JAVA_ARCH="amd64"
  13548. JAVA_TOOLKIT="server"
  13549. ;;
  13550. esac
  13551. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13552. SOLARINC="$SOLARINC -I$JAVA_HOME/include/openbsd"
  13553. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13554. ;;
  13555. solaris*)
  13556. JAVA_TOOLKIT="xawt"
  13557. case "$host_cpu" in
  13558. i*86)
  13559. JAVA_ARCH="i386"
  13560. ;;
  13561. sparc)
  13562. JAVA_ARCH="sparc"
  13563. ;;
  13564. esac
  13565. SOLARINC="$SOLARINC -I$JAVA_HOME/include"
  13566. SOLARINC="$SOLARINC -I$JAVA_HOME/include/solaris"
  13567. SOLARINC="$SOLARINC -I$JAVA_HOME/include/native_threads/include"
  13568. ;;
  13569. esac
  13570. if test -n "$JAVA_ARCH"; then
  13571. JRE_BASE_DIR="$JAVA_HOME/jre/lib/$JAVA_ARCH"
  13572. JAVALIB="-L$JAVA_HOME/$LIB64"
  13573. test -d "$JRE_BASE_DIR" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR"
  13574. test -d "$JRE_BASE_DIR/$JAVA_TOOLKIT" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR/$JAVA_TOOLKIT"
  13575. test -d "$JRE_BASE_DIR/native_thread" && JAVALIB="$JAVALIB -L$JRE_BASE_DIR/native_thread"
  13576. fi
  13577. CLASSPATH=
  13578. if test "$JDK"!="gcj"; then
  13579. if test -f "$JAVA_HOME/jre/lib/rt.jar"; then
  13580. CLASSPATH="${JAVA_HOME}/jre/lib/rt.jar${P_SEP}."
  13581. fi
  13582. fi
  13583. XCLASSPATH="$CLASSPATH"
  13584. else
  13585. x_JAVALIB=\#
  13586. x_JDKLIB=\#
  13587. fi
  13588. # Extract the first word of "dmake", so it can be a program name with args.
  13589. set dummy dmake; ac_word=$2
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13591. $as_echo_n "checking for $ac_word... " >&6; }
  13592. if ${ac_cv_path_DMAKE+:} false; then :
  13593. $as_echo_n "(cached) " >&6
  13594. else
  13595. case $DMAKE in
  13596. [\\/]* | ?:[\\/]*)
  13597. ac_cv_path_DMAKE="$DMAKE" # Let the user override the test with a path.
  13598. ;;
  13599. *)
  13600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13601. for as_dir in $PATH
  13602. do
  13603. IFS=$as_save_IFS
  13604. test -z "$as_dir" && as_dir=.
  13605. for ac_exec_ext in '' $ac_executable_extensions; do
  13606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13607. ac_cv_path_DMAKE="$as_dir/$ac_word$ac_exec_ext"
  13608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13609. break 2
  13610. fi
  13611. done
  13612. done
  13613. IFS=$as_save_IFS
  13614. test -z "$ac_cv_path_DMAKE" && ac_cv_path_DMAKE="no"
  13615. ;;
  13616. esac
  13617. fi
  13618. DMAKE=$ac_cv_path_DMAKE
  13619. if test -n "$DMAKE"; then
  13620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMAKE" >&5
  13621. $as_echo "$DMAKE" >&6; }
  13622. else
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13624. $as_echo "no" >&6; }
  13625. fi
  13626. if test "$DMAKE" = "no"; then
  13627. BUILD_DMAKE=YES
  13628. echo "dmake will be built on ./bootstrap"
  13629. else
  13630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the found dmake is the right dmake" >&5
  13631. $as_echo_n "checking whether the found dmake is the right dmake... " >&6; }
  13632. # we need to find out whether that dmake we found is "our" dmake
  13633. # or the dmake from Sun's SunStudio Compiler which is something
  13634. # different
  13635. # This test _should_ work because the one accepts -V (ours) and one
  13636. # (the other) not...
  13637. $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
  13638. if test $? -eq 0; then
  13639. BUILD_DMAKE=NO
  13640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13641. $as_echo "yes" >&6; }
  13642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the dmake version" >&5
  13643. $as_echo_n "checking the dmake version... " >&6; }
  13644. DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
  13645. if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 4.11" >&5
  13647. $as_echo "OK, >= 4.11" >&6; }
  13648. elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
  13649. test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
  13650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 4.11" >&5
  13651. $as_echo "OK, >= 4.11" >&6; }
  13652. else
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old. >= 4.11 is needed" >&5
  13654. $as_echo "too old. >= 4.11 is needed" >&6; }
  13655. echo "A newer dmake will be built on ./bootstrap"
  13656. BUILD_DMAKE=YES
  13657. fi
  13658. else
  13659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13660. $as_echo "no" >&6; }
  13661. echo "dmake will be built on ./bootstrap"
  13662. BUILD_DMAKE=YES
  13663. fi
  13664. fi
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EPM for packing" >&5
  13666. $as_echo_n "checking whether to enable EPM for packing... " >&6; }
  13667. BUILD_EPM=NO
  13668. if test "$enable_epm" = "yes"; then
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13670. $as_echo "yes" >&6; }
  13671. if test "$_os" != "WINNT"; then
  13672. if test -n "$with_epm"; then
  13673. EPM=$with_epm
  13674. else
  13675. # Extract the first word of "epm", so it can be a program name with args.
  13676. set dummy epm; ac_word=$2
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13678. $as_echo_n "checking for $ac_word... " >&6; }
  13679. if ${ac_cv_path_EPM+:} false; then :
  13680. $as_echo_n "(cached) " >&6
  13681. else
  13682. case $EPM in
  13683. [\\/]* | ?:[\\/]*)
  13684. ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
  13685. ;;
  13686. *)
  13687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13688. for as_dir in $PATH
  13689. do
  13690. IFS=$as_save_IFS
  13691. test -z "$as_dir" && as_dir=.
  13692. for ac_exec_ext in '' $ac_executable_extensions; do
  13693. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13694. ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
  13695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13696. break 2
  13697. fi
  13698. done
  13699. done
  13700. IFS=$as_save_IFS
  13701. test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="no"
  13702. ;;
  13703. esac
  13704. fi
  13705. EPM=$ac_cv_path_EPM
  13706. if test -n "$EPM"; then
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPM" >&5
  13708. $as_echo "$EPM" >&6; }
  13709. else
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13711. $as_echo "no" >&6; }
  13712. fi
  13713. fi
  13714. if test "$EPM" = "no" -o "$EPM" = "internal"; then
  13715. echo "EPM will be built."
  13716. BUILD_EPM=YES
  13717. BUILD_TYPE="$BUILD_TYPE EPM"
  13718. else
  13719. # Gentoo has some epm which is something different...
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the found epm is the right epm" >&5
  13721. $as_echo_n "checking whether the found epm is the right epm... " >&6; }
  13722. if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13724. $as_echo "yes" >&6; }
  13725. else
  13726. as_fn_error $? "no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm" "$LINENO" 5
  13727. fi
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking epm version" >&5
  13729. $as_echo_n "checking epm version... " >&6; }
  13730. EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
  13731. if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
  13732. test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
  13733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 3.7" >&5
  13734. $as_echo "OK, >= 3.7" >&6; }
  13735. BUILD_EPM=NO
  13736. if test "$_os" = "Darwin"; then
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which PackageMaker EPM thinks to use" >&5
  13738. $as_echo_n "checking which PackageMaker EPM thinks to use... " >&6; }
  13739. _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1`
  13740. if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
  13741. as_fn_error $? "$_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" "$LINENO" 5
  13742. elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_pm, ok" >&5
  13744. $as_echo "$_pm, ok" >&6; }
  13745. else # we never should get here, but go safe
  13746. as_fn_error $? "$_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" "$LINENO" 5
  13747. fi
  13748. fi
  13749. else
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old. epm >= 3.7 is required." >&5
  13751. $as_echo "too old. epm >= 3.7 is required." >&6; }
  13752. echo "EPM will be built."
  13753. BUILD_EPM=YES
  13754. BUILD_TYPE="$BUILD_TYPE EPM"
  13755. fi
  13756. fi
  13757. fi
  13758. # test which package format to use
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which package format to use" >&5
  13760. $as_echo_n "checking which package format to use... " >&6; }
  13761. # defaults
  13762. case "$_os" in
  13763. Darwin)
  13764. PKGFORMAT=dmg
  13765. ;;
  13766. SunOS)
  13767. PKGFORMAT=pkg
  13768. ;;
  13769. Linux)
  13770. # if building on Debian, default should be deb...
  13771. if test -e /etc/debian_version; then
  13772. PKGFORMAT=deb
  13773. else
  13774. PKGFORMAT=rpm
  13775. fi
  13776. ;;
  13777. AIX)
  13778. PKGFORMAT=rpm
  13779. ;;
  13780. OpenBSD|DragonFly)
  13781. PKGFORMAT=portable
  13782. ;;
  13783. *BSD)
  13784. PKGFORMAT=bsd
  13785. ;;
  13786. WINNT)
  13787. PKGFORMAT=msi
  13788. ;;
  13789. # we never should get here since we check the arciecture/os at the beginning,
  13790. # but go sure...
  13791. *)
  13792. as_fn_error $? "unknown system" "$LINENO" 5
  13793. esac
  13794. if test -n "$with_package_format"; then
  13795. for i in $with_package_format; do
  13796. case "$i" in
  13797. aix | bsd | deb | inst | tardist | osx | pkg | rpm | setld | native | portable | archive | dmg | installed | msi)
  13798. ;;
  13799. *)
  13800. as_fn_error $? "unsupported format $i. Supported by EPM are:
  13801. aix - AIX software distribution
  13802. bsd - FreeBSD, NetBSD, or OpenBSD software distribution
  13803. deb - Debian software distribution
  13804. inst or tardist - IRIX software distribution
  13805. osx - MacOS X software distribution
  13806. pkg - Solaris software distribution
  13807. rpm - RedHat software distribution
  13808. setld - Tru64 (setld) software distribution
  13809. native - \"Native\" software distribution for the platform
  13810. portable - Portable software distribution
  13811. LibreOffice additionally supports:
  13812. archive - .tar.gz or .zip
  13813. dmg - Mac OS X .dmg
  13814. installed - installation tree
  13815. msi - Windows .msi
  13816. " "$LINENO" 5
  13817. ;;
  13818. esac
  13819. done
  13820. PKGFORMAT="$with_package_format"
  13821. fi
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGFORMAT" >&5
  13823. $as_echo "$PKGFORMAT" >&6; }
  13824. if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null; then
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpm" >&5
  13826. $as_echo_n "checking for rpm... " >&6; }
  13827. for a in "$RPM" rpmbuild rpm; do
  13828. $a --usage >/dev/null 2> /dev/null
  13829. if test $? -eq 0; then
  13830. RPM=$a
  13831. break
  13832. else
  13833. $a --version >/dev/null 2> /dev/null
  13834. if test $? -eq 0; then
  13835. RPM=$a
  13836. break
  13837. fi
  13838. fi
  13839. done
  13840. if test -z "$RPM"; then
  13841. as_fn_error $? "not found" "$LINENO" 5
  13842. elif "$RPM" --help 2>&1 | $EGREP buildroot >/dev/null; then
  13843. RPM_PATH=`which $RPM`
  13844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM_PATH" >&5
  13845. $as_echo "$RPM_PATH" >&6; }
  13846. else
  13847. as_fn_error $? "cannot build packages. Try installing rpmbuild." "$LINENO" 5
  13848. fi
  13849. fi
  13850. if echo "$PKGFORMAT" | $EGREP deb 2>&1 >/dev/null; then
  13851. # Extract the first word of "dpkg", so it can be a program name with args.
  13852. set dummy dpkg; ac_word=$2
  13853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13854. $as_echo_n "checking for $ac_word... " >&6; }
  13855. if ${ac_cv_path_DPKG+:} false; then :
  13856. $as_echo_n "(cached) " >&6
  13857. else
  13858. case $DPKG in
  13859. [\\/]* | ?:[\\/]*)
  13860. ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
  13861. ;;
  13862. *)
  13863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13864. for as_dir in $PATH
  13865. do
  13866. IFS=$as_save_IFS
  13867. test -z "$as_dir" && as_dir=.
  13868. for ac_exec_ext in '' $ac_executable_extensions; do
  13869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13870. ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
  13871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13872. break 2
  13873. fi
  13874. done
  13875. done
  13876. IFS=$as_save_IFS
  13877. test -z "$ac_cv_path_DPKG" && ac_cv_path_DPKG="no"
  13878. ;;
  13879. esac
  13880. fi
  13881. DPKG=$ac_cv_path_DPKG
  13882. if test -n "$DPKG"; then
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
  13884. $as_echo "$DPKG" >&6; }
  13885. else
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13887. $as_echo "no" >&6; }
  13888. fi
  13889. if test "$DPKG" = "no"; then
  13890. as_fn_error $? "dpkg needed for deb creation. Install dpkg." "$LINENO" 5
  13891. fi
  13892. fi
  13893. if echo "PKGFORMAT" | $EGREP osx 2>&1 >/dev/null; then
  13894. if test "$_os" = "Darwin"; then
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker availability" >&5
  13896. $as_echo_n "checking for PackageMaker availability... " >&6; }
  13897. if ! test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then
  13898. as_fn_error $? "not installed. Please install Apples Dev Tools" "$LINENO" 5
  13899. else
  13900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  13901. $as_echo "ok" >&6; }
  13902. fi
  13903. else
  13904. as_fn_error $? "PackageMaker needed to build OSX packages and you are not on OSX..." "$LINENO" 5
  13905. fi
  13906. fi
  13907. if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
  13908. echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
  13909. if test "$EPM" != "no" -a "$EPM" != "internal"; then
  13910. if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epm is patched for LibreOffice's needs" >&5
  13912. $as_echo_n "checking whether epm is patched for LibreOffice's needs... " >&6; }
  13913. if grep "Patched for LibreOffice" $EPM >/dev/null 2>/dev/null; then
  13914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13915. $as_echo "yes" >&6; }
  13916. else
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13918. $as_echo "no" >&6; }
  13919. if echo "$PKGFORMAT" | $GREP -q rpm; then
  13920. _pt="rpm"
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the rpms will need to be installed with --nodeps" >&5
  13922. $as_echo "$as_me: WARNING: the rpms will need to be installed with --nodeps" >&2;}
  13923. echo "the rpms will need to be installed with --nodeps" >> warn
  13924. else
  13925. _pt="pkg"
  13926. fi
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ${_pt}s will not be relocateable" >&5
  13928. $as_echo "$as_me: WARNING: the ${_pt}s will not be relocateable" >&2;}
  13929. echo "the ${_pt}s will not be relocateable" >> warn
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if you want to make sure installation without --nodeps and
  13931. relocation will work, you need to patch your epm with the
  13932. patch in epm/epm-3.7.patch or build with
  13933. --with-epm=internal which will build a suitable epm" >&5
  13934. $as_echo "$as_me: WARNING: if you want to make sure installation without --nodeps and
  13935. relocation will work, you need to patch your epm with the
  13936. patch in epm/epm-3.7.patch or build with
  13937. --with-epm=internal which will build a suitable epm" >&2;}
  13938. fi
  13939. fi
  13940. fi
  13941. fi
  13942. if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
  13943. # Extract the first word of "pkgmk", so it can be a program name with args.
  13944. set dummy pkgmk; ac_word=$2
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13946. $as_echo_n "checking for $ac_word... " >&6; }
  13947. if ${ac_cv_path_PKGMK+:} false; then :
  13948. $as_echo_n "(cached) " >&6
  13949. else
  13950. case $PKGMK in
  13951. [\\/]* | ?:[\\/]*)
  13952. ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
  13953. ;;
  13954. *)
  13955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13956. for as_dir in $PATH
  13957. do
  13958. IFS=$as_save_IFS
  13959. test -z "$as_dir" && as_dir=.
  13960. for ac_exec_ext in '' $ac_executable_extensions; do
  13961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13962. ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
  13963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13964. break 2
  13965. fi
  13966. done
  13967. done
  13968. IFS=$as_save_IFS
  13969. test -z "$ac_cv_path_PKGMK" && ac_cv_path_PKGMK="no"
  13970. ;;
  13971. esac
  13972. fi
  13973. PKGMK=$ac_cv_path_PKGMK
  13974. if test -n "$PKGMK"; then
  13975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
  13976. $as_echo "$PKGMK" >&6; }
  13977. else
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13979. $as_echo "no" >&6; }
  13980. fi
  13981. if test "$PKGMK" = "no"; then
  13982. as_fn_error $? "pkgmk needed for Solaris pkg creation. Install it." "$LINENO" 5
  13983. fi
  13984. fi
  13985. else
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13987. $as_echo "no" >&6; }
  13988. EPM=NO
  13989. PKGFORMAT=native
  13990. fi
  13991. # Extract the first word of "gperf", so it can be a program name with args.
  13992. set dummy gperf; ac_word=$2
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13994. $as_echo_n "checking for $ac_word... " >&6; }
  13995. if ${ac_cv_path_GPERF+:} false; then :
  13996. $as_echo_n "(cached) " >&6
  13997. else
  13998. case $GPERF in
  13999. [\\/]* | ?:[\\/]*)
  14000. ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
  14001. ;;
  14002. *)
  14003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14004. for as_dir in $PATH
  14005. do
  14006. IFS=$as_save_IFS
  14007. test -z "$as_dir" && as_dir=.
  14008. for ac_exec_ext in '' $ac_executable_extensions; do
  14009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14010. ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext"
  14011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14012. break 2
  14013. fi
  14014. done
  14015. done
  14016. IFS=$as_save_IFS
  14017. ;;
  14018. esac
  14019. fi
  14020. GPERF=$ac_cv_path_GPERF
  14021. if test -n "$GPERF"; then
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
  14023. $as_echo "$GPERF" >&6; }
  14024. else
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14026. $as_echo "no" >&6; }
  14027. fi
  14028. if test -z "$GPERF"; then
  14029. as_fn_error $? "gperf not found but needed. Install it." "$LINENO" 5
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gperf version" >&5
  14032. $as_echo_n "checking gperf version... " >&6; }
  14033. if test "`$GPERF --version | $EGREP ^GNU\ gperf | $AWK '{ print $3 }' | cut -d. -f1`" -ge "3"; then
  14034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  14035. $as_echo "OK" >&6; }
  14036. else
  14037. as_fn_error $? "too old, you need at least 3.0.0" "$LINENO" 5
  14038. fi
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ODK" >&5
  14040. $as_echo_n "checking whether to build the ODK... " >&6; }
  14041. if test "$enable_odk" = "" -o "$enable_odk" != "no"; then
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14043. $as_echo "yes" >&6; }
  14044. if test "$with_java" != "no"; then
  14045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unowinreg.dll" >&5
  14046. $as_echo_n "checking whether to build unowinreg.dll... " >&6; }
  14047. if test "$_os" = "WINNT" -a "$enable_build_unowinreg" = ""; then
  14048. # build on Win by default
  14049. enable_build_unowinreg=yes
  14050. fi
  14051. if test "$enable_build_unowinreg" = "" -o "$enable_build_unowinreg" = "no"; then
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14053. $as_echo "no" >&6; }
  14054. BUILD_UNOWINREG=NO
  14055. else
  14056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14057. $as_echo "yes" >&6; }
  14058. BUILD_UNOWINREG=YES
  14059. fi
  14060. if test "$_os" != "WINNT" -a "$BUILD_UNOWINREG" = "YES"; then
  14061. if test -z "$with_mingw_cross_compiler"; then
  14062. for ac_prog in i386-mingw32msvc-g++ i586-pc-mingw32-g++ i686-pc-mingw32-g++ i686-w64-mingw32-g++
  14063. do
  14064. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14065. set dummy $ac_prog; ac_word=$2
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14067. $as_echo_n "checking for $ac_word... " >&6; }
  14068. if ${ac_cv_prog_MINGWCXX+:} false; then :
  14069. $as_echo_n "(cached) " >&6
  14070. else
  14071. if test -n "$MINGWCXX"; then
  14072. ac_cv_prog_MINGWCXX="$MINGWCXX" # Let the user override the test.
  14073. else
  14074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14075. for as_dir in $PATH
  14076. do
  14077. IFS=$as_save_IFS
  14078. test -z "$as_dir" && as_dir=.
  14079. for ac_exec_ext in '' $ac_executable_extensions; do
  14080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14081. ac_cv_prog_MINGWCXX="$ac_prog"
  14082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14083. break 2
  14084. fi
  14085. done
  14086. done
  14087. IFS=$as_save_IFS
  14088. fi
  14089. fi
  14090. MINGWCXX=$ac_cv_prog_MINGWCXX
  14091. if test -n "$MINGWCXX"; then
  14092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWCXX" >&5
  14093. $as_echo "$MINGWCXX" >&6; }
  14094. else
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14096. $as_echo "no" >&6; }
  14097. fi
  14098. test -n "$MINGWCXX" && break
  14099. done
  14100. test -n "$MINGWCXX" || MINGWCXX="false"
  14101. elif test -x "$with_mingw_cross_compiler"; then
  14102. MINGWCXX="$with_mingw_cross_compiler"
  14103. else
  14104. if test -n "$ac_tool_prefix"; then
  14105. # Extract the first word of "${ac_tool_prefix}"$with_mingw_cross_compiler"", so it can be a program name with args.
  14106. set dummy ${ac_tool_prefix}"$with_mingw_cross_compiler"; ac_word=$2
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14108. $as_echo_n "checking for $ac_word... " >&6; }
  14109. if ${ac_cv_prog_MINGWCXX+:} false; then :
  14110. $as_echo_n "(cached) " >&6
  14111. else
  14112. if test -n "$MINGWCXX"; then
  14113. ac_cv_prog_MINGWCXX="$MINGWCXX" # Let the user override the test.
  14114. else
  14115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14116. for as_dir in $PATH
  14117. do
  14118. IFS=$as_save_IFS
  14119. test -z "$as_dir" && as_dir=.
  14120. for ac_exec_ext in '' $ac_executable_extensions; do
  14121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14122. ac_cv_prog_MINGWCXX="${ac_tool_prefix}"$with_mingw_cross_compiler""
  14123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14124. break 2
  14125. fi
  14126. done
  14127. done
  14128. IFS=$as_save_IFS
  14129. fi
  14130. fi
  14131. MINGWCXX=$ac_cv_prog_MINGWCXX
  14132. if test -n "$MINGWCXX"; then
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWCXX" >&5
  14134. $as_echo "$MINGWCXX" >&6; }
  14135. else
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14137. $as_echo "no" >&6; }
  14138. fi
  14139. fi
  14140. if test -z "$ac_cv_prog_MINGWCXX"; then
  14141. ac_ct_MINGWCXX=$MINGWCXX
  14142. # Extract the first word of ""$with_mingw_cross_compiler"", so it can be a program name with args.
  14143. set dummy "$with_mingw_cross_compiler"; ac_word=$2
  14144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14145. $as_echo_n "checking for $ac_word... " >&6; }
  14146. if ${ac_cv_prog_ac_ct_MINGWCXX+:} false; then :
  14147. $as_echo_n "(cached) " >&6
  14148. else
  14149. if test -n "$ac_ct_MINGWCXX"; then
  14150. ac_cv_prog_ac_ct_MINGWCXX="$ac_ct_MINGWCXX" # Let the user override the test.
  14151. else
  14152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14153. for as_dir in $PATH
  14154. do
  14155. IFS=$as_save_IFS
  14156. test -z "$as_dir" && as_dir=.
  14157. for ac_exec_ext in '' $ac_executable_extensions; do
  14158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14159. ac_cv_prog_ac_ct_MINGWCXX=""$with_mingw_cross_compiler""
  14160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14161. break 2
  14162. fi
  14163. done
  14164. done
  14165. IFS=$as_save_IFS
  14166. fi
  14167. fi
  14168. ac_ct_MINGWCXX=$ac_cv_prog_ac_ct_MINGWCXX
  14169. if test -n "$ac_ct_MINGWCXX"; then
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWCXX" >&5
  14171. $as_echo "$ac_ct_MINGWCXX" >&6; }
  14172. else
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14174. $as_echo "no" >&6; }
  14175. fi
  14176. if test "x$ac_ct_MINGWCXX" = x; then
  14177. MINGWCXX="false"
  14178. else
  14179. case $cross_compiling:$ac_tool_warned in
  14180. yes:)
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14182. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14183. ac_tool_warned=yes ;;
  14184. esac
  14185. MINGWCXX=$ac_ct_MINGWCXX
  14186. fi
  14187. else
  14188. MINGWCXX="$ac_cv_prog_MINGWCXX"
  14189. fi
  14190. fi
  14191. if test "$MINGWCXX" = "false"; then
  14192. as_fn_error $? "MinGW32 C++ cross-compiler not found." "$LINENO" 5
  14193. fi
  14194. mingwstrip_test="`echo $MINGWCXX | $SED -e s/g++/strip/`"
  14195. if test -x "$mingwstrip_test"; then
  14196. MINGWSTRIP="$mingwstrip_test"
  14197. else
  14198. if test -n "$ac_tool_prefix"; then
  14199. # Extract the first word of "${ac_tool_prefix}"$mingwstrip_test"", so it can be a program name with args.
  14200. set dummy ${ac_tool_prefix}"$mingwstrip_test"; ac_word=$2
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14202. $as_echo_n "checking for $ac_word... " >&6; }
  14203. if ${ac_cv_prog_MINGWSTRIP+:} false; then :
  14204. $as_echo_n "(cached) " >&6
  14205. else
  14206. if test -n "$MINGWSTRIP"; then
  14207. ac_cv_prog_MINGWSTRIP="$MINGWSTRIP" # Let the user override the test.
  14208. else
  14209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14210. for as_dir in $PATH
  14211. do
  14212. IFS=$as_save_IFS
  14213. test -z "$as_dir" && as_dir=.
  14214. for ac_exec_ext in '' $ac_executable_extensions; do
  14215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14216. ac_cv_prog_MINGWSTRIP="${ac_tool_prefix}"$mingwstrip_test""
  14217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14218. break 2
  14219. fi
  14220. done
  14221. done
  14222. IFS=$as_save_IFS
  14223. fi
  14224. fi
  14225. MINGWSTRIP=$ac_cv_prog_MINGWSTRIP
  14226. if test -n "$MINGWSTRIP"; then
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWSTRIP" >&5
  14228. $as_echo "$MINGWSTRIP" >&6; }
  14229. else
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14231. $as_echo "no" >&6; }
  14232. fi
  14233. fi
  14234. if test -z "$ac_cv_prog_MINGWSTRIP"; then
  14235. ac_ct_MINGWSTRIP=$MINGWSTRIP
  14236. # Extract the first word of ""$mingwstrip_test"", so it can be a program name with args.
  14237. set dummy "$mingwstrip_test"; ac_word=$2
  14238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14239. $as_echo_n "checking for $ac_word... " >&6; }
  14240. if ${ac_cv_prog_ac_ct_MINGWSTRIP+:} false; then :
  14241. $as_echo_n "(cached) " >&6
  14242. else
  14243. if test -n "$ac_ct_MINGWSTRIP"; then
  14244. ac_cv_prog_ac_ct_MINGWSTRIP="$ac_ct_MINGWSTRIP" # Let the user override the test.
  14245. else
  14246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14247. for as_dir in $PATH
  14248. do
  14249. IFS=$as_save_IFS
  14250. test -z "$as_dir" && as_dir=.
  14251. for ac_exec_ext in '' $ac_executable_extensions; do
  14252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14253. ac_cv_prog_ac_ct_MINGWSTRIP=""$mingwstrip_test""
  14254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14255. break 2
  14256. fi
  14257. done
  14258. done
  14259. IFS=$as_save_IFS
  14260. fi
  14261. fi
  14262. ac_ct_MINGWSTRIP=$ac_cv_prog_ac_ct_MINGWSTRIP
  14263. if test -n "$ac_ct_MINGWSTRIP"; then
  14264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWSTRIP" >&5
  14265. $as_echo "$ac_ct_MINGWSTRIP" >&6; }
  14266. else
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14268. $as_echo "no" >&6; }
  14269. fi
  14270. if test "x$ac_ct_MINGWSTRIP" = x; then
  14271. MINGWSTRIP="false"
  14272. else
  14273. case $cross_compiling:$ac_tool_warned in
  14274. yes:)
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14277. ac_tool_warned=yes ;;
  14278. esac
  14279. MINGWSTRIP=$ac_ct_MINGWSTRIP
  14280. fi
  14281. else
  14282. MINGWSTRIP="$ac_cv_prog_MINGWSTRIP"
  14283. fi
  14284. fi
  14285. if test "$MINGWSTRIP" = "false"; then
  14286. as_fn_error $? "MinGW32 binutils not found." "$LINENO" 5
  14287. fi
  14288. fi
  14289. fi
  14290. BUILD_TYPE="$BUILD_TYPE ODK"
  14291. else
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14293. $as_echo "no" >&6; }
  14294. BUILD_UNOWINREG=NO
  14295. fi
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide libstdc++/libgcc_s in the installset" >&5
  14297. $as_echo_n "checking whether to provide libstdc++/libgcc_s in the installset... " >&6; }
  14298. if test "$with_system_stdlibs" != "no"; then
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14300. $as_echo "no" >&6; }
  14301. SYSTEM_STDLIBS=YES
  14302. else
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14304. $as_echo "yes" >&6; }
  14305. SYSTEM_STDLIBS=NO
  14306. fi
  14307. if test "$with_system_zlib" = "auto"; then
  14308. case "$_os" in
  14309. WINNT)
  14310. with_system_zlib="$with_system_libs"
  14311. ;;
  14312. *)
  14313. with_system_zlib=yes
  14314. ;;
  14315. esac
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which zlib to use" >&5
  14318. $as_echo_n "checking which zlib to use... " >&6; }
  14319. if test "$with_system_zlib" = "yes"; then
  14320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14321. $as_echo "external" >&6; }
  14322. SYSTEM_ZLIB=YES
  14323. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  14324. if test "x$ac_cv_header_zlib_h" = xyes; then :
  14325. else
  14326. as_fn_error $? "zlib.h not found. install zlib" "$LINENO" 5
  14327. fi
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  14329. $as_echo_n "checking for deflate in -lz... " >&6; }
  14330. if ${ac_cv_lib_z_deflate+:} false; then :
  14331. $as_echo_n "(cached) " >&6
  14332. else
  14333. ac_check_lib_save_LIBS=$LIBS
  14334. LIBS="-lz $LIBS"
  14335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14336. /* end confdefs.h. */
  14337. /* Override any GCC internal prototype to avoid an error.
  14338. Use char because int might match the return type of a GCC
  14339. builtin and then its argument prototype would still apply. */
  14340. #ifdef __cplusplus
  14341. extern "C"
  14342. #endif
  14343. char deflate ();
  14344. int
  14345. main ()
  14346. {
  14347. return deflate ();
  14348. ;
  14349. return 0;
  14350. }
  14351. _ACEOF
  14352. if ac_fn_c_try_link "$LINENO"; then :
  14353. ac_cv_lib_z_deflate=yes
  14354. else
  14355. ac_cv_lib_z_deflate=no
  14356. fi
  14357. rm -f core conftest.err conftest.$ac_objext \
  14358. conftest$ac_exeext conftest.$ac_ext
  14359. LIBS=$ac_check_lib_save_LIBS
  14360. fi
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  14362. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  14363. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  14364. ZLIB=-lz
  14365. else
  14366. as_fn_error $? "zlib not found or functional" "$LINENO" 5
  14367. fi
  14368. if test "$WITH_MINGW" = "yes"; then
  14369. # we need minizip too
  14370. pkg_failed=no
  14371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MINIZIP" >&5
  14372. $as_echo_n "checking for MINIZIP... " >&6; }
  14373. if test -n "$MINIZIP_CFLAGS"; then
  14374. pkg_cv_MINIZIP_CFLAGS="$MINIZIP_CFLAGS"
  14375. elif test -n "$PKG_CONFIG"; then
  14376. if test -n "$PKG_CONFIG" && \
  14377. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"minizip\""; } >&5
  14378. ($PKG_CONFIG --exists --print-errors "minizip") 2>&5
  14379. ac_status=$?
  14380. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14381. test $ac_status = 0; }; then
  14382. pkg_cv_MINIZIP_CFLAGS=`$PKG_CONFIG --cflags "minizip" 2>/dev/null`
  14383. else
  14384. pkg_failed=yes
  14385. fi
  14386. else
  14387. pkg_failed=untried
  14388. fi
  14389. if test -n "$MINIZIP_LIBS"; then
  14390. pkg_cv_MINIZIP_LIBS="$MINIZIP_LIBS"
  14391. elif test -n "$PKG_CONFIG"; then
  14392. if test -n "$PKG_CONFIG" && \
  14393. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"minizip\""; } >&5
  14394. ($PKG_CONFIG --exists --print-errors "minizip") 2>&5
  14395. ac_status=$?
  14396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14397. test $ac_status = 0; }; then
  14398. pkg_cv_MINIZIP_LIBS=`$PKG_CONFIG --libs "minizip" 2>/dev/null`
  14399. else
  14400. pkg_failed=yes
  14401. fi
  14402. else
  14403. pkg_failed=untried
  14404. fi
  14405. if test $pkg_failed = yes; then
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14407. $as_echo "no" >&6; }
  14408. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14409. _pkg_short_errors_supported=yes
  14410. else
  14411. _pkg_short_errors_supported=no
  14412. fi
  14413. if test $_pkg_short_errors_supported = yes; then
  14414. MINIZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "minizip" 2>&1`
  14415. else
  14416. MINIZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors "minizip" 2>&1`
  14417. fi
  14418. # Put the nasty error message in config.log where it belongs
  14419. echo "$MINIZIP_PKG_ERRORS" >&5
  14420. as_fn_error $? "Package requirements (minizip) were not met:
  14421. $MINIZIP_PKG_ERRORS
  14422. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14423. installed software in a non-standard prefix.
  14424. Alternatively, you may set the environment variables MINIZIP_CFLAGS
  14425. and MINIZIP_LIBS to avoid the need to call pkg-config.
  14426. See the pkg-config man page for more details." "$LINENO" 5
  14427. elif test $pkg_failed = untried; then
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14429. $as_echo "no" >&6; }
  14430. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14432. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14433. is in your PATH or set the PKG_CONFIG environment variable to the full
  14434. path to pkg-config.
  14435. Alternatively, you may set the environment variables MINIZIP_CFLAGS
  14436. and MINIZIP_LIBS to avoid the need to call pkg-config.
  14437. See the pkg-config man page for more details.
  14438. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14439. See \`config.log' for more details" "$LINENO" 5; }
  14440. else
  14441. MINIZIP_CFLAGS=$pkg_cv_MINIZIP_CFLAGS
  14442. MINIZIP_LIBS=$pkg_cv_MINIZIP_LIBS
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14444. $as_echo "yes" >&6; }
  14445. fi
  14446. libo_MINGW_CHECK_DLL(MINIZIP, libminizip)
  14447. SYSTEM_MINIZIP=YES
  14448. fi
  14449. else
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14451. $as_echo "internal" >&6; }
  14452. SYSTEM_ZLIB=NO
  14453. SYSTEM_MINIZIP=NO
  14454. BUILD_TYPE="$BUILD_TYPE ZLIB"
  14455. fi
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which jpeg to use" >&5
  14457. $as_echo_n "checking which jpeg to use... " >&6; }
  14458. if test "$with_system_jpeg" = "auto"; then
  14459. case "$_os" in
  14460. WINNT|Darwin|iOS|Android)
  14461. with_system_jpeg="$with_system_libs"
  14462. ;;
  14463. *)
  14464. with_system_jpeg=yes
  14465. ;;
  14466. esac
  14467. fi
  14468. if test "$with_system_jpeg" = "yes"; then
  14469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14470. $as_echo "external" >&6; }
  14471. SYSTEM_JPEG=YES
  14472. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  14473. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  14474. else
  14475. as_fn_error $? "jpeg.h not found. install libjpeg" "$LINENO" 5
  14476. fi
  14477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_resync_to_restart in -ljpeg" >&5
  14478. $as_echo_n "checking for jpeg_resync_to_restart in -ljpeg... " >&6; }
  14479. if ${ac_cv_lib_jpeg_jpeg_resync_to_restart+:} false; then :
  14480. $as_echo_n "(cached) " >&6
  14481. else
  14482. ac_check_lib_save_LIBS=$LIBS
  14483. LIBS="-ljpeg $LIBS"
  14484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14485. /* end confdefs.h. */
  14486. /* Override any GCC internal prototype to avoid an error.
  14487. Use char because int might match the return type of a GCC
  14488. builtin and then its argument prototype would still apply. */
  14489. #ifdef __cplusplus
  14490. extern "C"
  14491. #endif
  14492. char jpeg_resync_to_restart ();
  14493. int
  14494. main ()
  14495. {
  14496. return jpeg_resync_to_restart ();
  14497. ;
  14498. return 0;
  14499. }
  14500. _ACEOF
  14501. if ac_fn_c