/libreoffice-3.6.0.2/configure

# · Shell · 33208 lines · 31047 code · 1453 blank · 708 comment · 1376 complexity · 1bbcc5c839bd095b9a052626355da566 MD5 · raw file

  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_try_link "$LINENO"; then :
  14502. ac_cv_lib_jpeg_jpeg_resync_to_restart=yes
  14503. else
  14504. ac_cv_lib_jpeg_jpeg_resync_to_restart=no
  14505. fi
  14506. rm -f core conftest.err conftest.$ac_objext \
  14507. conftest$ac_exeext conftest.$ac_ext
  14508. LIBS=$ac_check_lib_save_LIBS
  14509. fi
  14510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_resync_to_restart" >&5
  14511. $as_echo "$ac_cv_lib_jpeg_jpeg_resync_to_restart" >&6; }
  14512. if test "x$ac_cv_lib_jpeg_jpeg_resync_to_restart" = xyes; then :
  14513. JPEG3RDLIB=-ljpeg
  14514. else
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jpeg library not found or fuctional" >&5
  14516. $as_echo_n "checking jpeg library not found or fuctional... " >&6; }
  14517. fi
  14518. libo_MINGW_CHECK_DLL(JPEG, libjpeg)
  14519. else
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14521. $as_echo "internal" >&6; }
  14522. SYSTEM_JPEG=NO
  14523. BUILD_TYPE="$BUILD_TYPE JPEG"
  14524. fi
  14525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which clucene to use" >&5
  14526. $as_echo_n "checking which clucene to use... " >&6; }
  14527. if test "$with_system_clucene" = "yes"; then
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14529. $as_echo "external" >&6; }
  14530. SYSTEM_CLUCENE=YES
  14531. pkg_failed=no
  14532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLUCENE" >&5
  14533. $as_echo_n "checking for CLUCENE... " >&6; }
  14534. if test -n "$CLUCENE_CFLAGS"; then
  14535. pkg_cv_CLUCENE_CFLAGS="$CLUCENE_CFLAGS"
  14536. elif test -n "$PKG_CONFIG"; then
  14537. if test -n "$PKG_CONFIG" && \
  14538. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
  14539. ($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
  14540. ac_status=$?
  14541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14542. test $ac_status = 0; }; then
  14543. pkg_cv_CLUCENE_CFLAGS=`$PKG_CONFIG --cflags "libclucene-core" 2>/dev/null`
  14544. else
  14545. pkg_failed=yes
  14546. fi
  14547. else
  14548. pkg_failed=untried
  14549. fi
  14550. if test -n "$CLUCENE_LIBS"; then
  14551. pkg_cv_CLUCENE_LIBS="$CLUCENE_LIBS"
  14552. elif test -n "$PKG_CONFIG"; then
  14553. if test -n "$PKG_CONFIG" && \
  14554. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclucene-core\""; } >&5
  14555. ($PKG_CONFIG --exists --print-errors "libclucene-core") 2>&5
  14556. ac_status=$?
  14557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14558. test $ac_status = 0; }; then
  14559. pkg_cv_CLUCENE_LIBS=`$PKG_CONFIG --libs "libclucene-core" 2>/dev/null`
  14560. else
  14561. pkg_failed=yes
  14562. fi
  14563. else
  14564. pkg_failed=untried
  14565. fi
  14566. if test $pkg_failed = yes; then
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14568. $as_echo "no" >&6; }
  14569. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14570. _pkg_short_errors_supported=yes
  14571. else
  14572. _pkg_short_errors_supported=no
  14573. fi
  14574. if test $_pkg_short_errors_supported = yes; then
  14575. CLUCENE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libclucene-core" 2>&1`
  14576. else
  14577. CLUCENE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libclucene-core" 2>&1`
  14578. fi
  14579. # Put the nasty error message in config.log where it belongs
  14580. echo "$CLUCENE_PKG_ERRORS" >&5
  14581. as_fn_error $? "Package requirements (libclucene-core) were not met:
  14582. $CLUCENE_PKG_ERRORS
  14583. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14584. installed software in a non-standard prefix.
  14585. Alternatively, you may set the environment variables CLUCENE_CFLAGS
  14586. and CLUCENE_LIBS to avoid the need to call pkg-config.
  14587. See the pkg-config man page for more details." "$LINENO" 5
  14588. elif test $pkg_failed = untried; then
  14589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14590. $as_echo "no" >&6; }
  14591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14593. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14594. is in your PATH or set the PKG_CONFIG environment variable to the full
  14595. path to pkg-config.
  14596. Alternatively, you may set the environment variables CLUCENE_CFLAGS
  14597. and CLUCENE_LIBS to avoid the need to call pkg-config.
  14598. See the pkg-config man page for more details.
  14599. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14600. See \`config.log' for more details" "$LINENO" 5; }
  14601. else
  14602. CLUCENE_CFLAGS=$pkg_cv_CLUCENE_CFLAGS
  14603. CLUCENE_LIBS=$pkg_cv_CLUCENE_LIBS
  14604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14605. $as_echo "yes" >&6; }
  14606. fi
  14607. ac_ext=cpp
  14608. ac_cpp='$CXXCPP $CPPFLAGS'
  14609. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14610. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14611. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14612. save_CXXFLAGS=$CXXFLAGS
  14613. save_CPPFLAGS=$CPPFLAGS
  14614. CXXFLAGS="$CXXFLAGS $CLUCENE_CFLAGS"
  14615. CPPFLAGS="$CPPFLAGS $CLUCENE_CFLAGS"
  14616. ac_fn_cxx_check_header_compile "$LINENO" "CLucene/analysis/cjk/CJKAnalyzer.h" "ac_cv_header_CLucene_analysis_cjk_CJKAnalyzer_h" "#include <CLucene.h>
  14617. "
  14618. if test "x$ac_cv_header_CLucene_analysis_cjk_CJKAnalyzer_h" = xyes; then :
  14619. else
  14620. as_fn_error $? "Your version of libclucene has contribs-lib missing." "$LINENO" 5
  14621. fi
  14622. CXXFLAGS=$save_CXXFLAGS
  14623. CPPFLAGS=$save_CPPFLAGS
  14624. ac_ext=c
  14625. ac_cpp='$CPP $CPPFLAGS'
  14626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14629. CLUCENE_LIBS="$CLUCENE_LIBS -lclucene-contribs-lib"
  14630. else
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14632. $as_echo "internal" >&6; }
  14633. SYSTEM_CLUCENE=NO
  14634. BUILD_TYPE="$BUILD_TYPE CLUCENE"
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which expat to use" >&5
  14637. $as_echo_n "checking which expat to use... " >&6; }
  14638. if test "$with_system_expat" = "yes"; then
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14640. $as_echo "external" >&6; }
  14641. SYSTEM_EXPAT=YES
  14642. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  14643. if test "x$ac_cv_header_expat_h" = xyes; then :
  14644. else
  14645. as_fn_error $? "expat.h not found. install expat" "$LINENO" 5
  14646. fi
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  14648. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  14649. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  14650. $as_echo_n "(cached) " >&6
  14651. else
  14652. ac_check_lib_save_LIBS=$LIBS
  14653. LIBS="-lexpat $LIBS"
  14654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14655. /* end confdefs.h. */
  14656. /* Override any GCC internal prototype to avoid an error.
  14657. Use char because int might match the return type of a GCC
  14658. builtin and then its argument prototype would still apply. */
  14659. #ifdef __cplusplus
  14660. extern "C"
  14661. #endif
  14662. char XML_ParserCreate ();
  14663. int
  14664. main ()
  14665. {
  14666. return XML_ParserCreate ();
  14667. ;
  14668. return 0;
  14669. }
  14670. _ACEOF
  14671. if ac_fn_c_try_link "$LINENO"; then :
  14672. ac_cv_lib_expat_XML_ParserCreate=yes
  14673. else
  14674. ac_cv_lib_expat_XML_ParserCreate=no
  14675. fi
  14676. rm -f core conftest.err conftest.$ac_objext \
  14677. conftest$ac_exeext conftest.$ac_ext
  14678. LIBS=$ac_check_lib_save_LIBS
  14679. fi
  14680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  14681. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  14682. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  14683. :
  14684. else
  14685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: expat library not found or functional." >&5
  14686. $as_echo "expat library not found or functional." >&6; }
  14687. fi
  14688. libo_MINGW_CHECK_DLL(EXPAT, libexpat)
  14689. else
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14691. $as_echo "internal" >&6; }
  14692. SYSTEM_EXPAT=NO
  14693. BUILD_TYPE="$BUILD_TYPE EXPAT"
  14694. fi
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libcdr to use" >&5
  14696. $as_echo_n "checking which libcdr to use... " >&6; }
  14697. if test "$with_system_libcdr" = "yes"; then
  14698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14699. $as_echo "external" >&6; }
  14700. SYSTEM_LIBCDR=YES
  14701. pkg_failed=no
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CDR" >&5
  14703. $as_echo_n "checking for CDR... " >&6; }
  14704. if test -n "$CDR_CFLAGS"; then
  14705. pkg_cv_CDR_CFLAGS="$CDR_CFLAGS"
  14706. elif test -n "$PKG_CONFIG"; then
  14707. if test -n "$PKG_CONFIG" && \
  14708. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdr-0.0 >= 0.0.5 \""; } >&5
  14709. ($PKG_CONFIG --exists --print-errors "libcdr-0.0 >= 0.0.5 ") 2>&5
  14710. ac_status=$?
  14711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14712. test $ac_status = 0; }; then
  14713. pkg_cv_CDR_CFLAGS=`$PKG_CONFIG --cflags "libcdr-0.0 >= 0.0.5 " 2>/dev/null`
  14714. else
  14715. pkg_failed=yes
  14716. fi
  14717. else
  14718. pkg_failed=untried
  14719. fi
  14720. if test -n "$CDR_LIBS"; then
  14721. pkg_cv_CDR_LIBS="$CDR_LIBS"
  14722. elif test -n "$PKG_CONFIG"; then
  14723. if test -n "$PKG_CONFIG" && \
  14724. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdr-0.0 >= 0.0.5 \""; } >&5
  14725. ($PKG_CONFIG --exists --print-errors "libcdr-0.0 >= 0.0.5 ") 2>&5
  14726. ac_status=$?
  14727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14728. test $ac_status = 0; }; then
  14729. pkg_cv_CDR_LIBS=`$PKG_CONFIG --libs "libcdr-0.0 >= 0.0.5 " 2>/dev/null`
  14730. else
  14731. pkg_failed=yes
  14732. fi
  14733. else
  14734. pkg_failed=untried
  14735. fi
  14736. if test $pkg_failed = yes; then
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14738. $as_echo "no" >&6; }
  14739. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14740. _pkg_short_errors_supported=yes
  14741. else
  14742. _pkg_short_errors_supported=no
  14743. fi
  14744. if test $_pkg_short_errors_supported = yes; then
  14745. CDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcdr-0.0 >= 0.0.5 " 2>&1`
  14746. else
  14747. CDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcdr-0.0 >= 0.0.5 " 2>&1`
  14748. fi
  14749. # Put the nasty error message in config.log where it belongs
  14750. echo "$CDR_PKG_ERRORS" >&5
  14751. as_fn_error $? "Package requirements (libcdr-0.0 >= 0.0.5 ) were not met:
  14752. $CDR_PKG_ERRORS
  14753. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14754. installed software in a non-standard prefix.
  14755. Alternatively, you may set the environment variables CDR_CFLAGS
  14756. and CDR_LIBS to avoid the need to call pkg-config.
  14757. See the pkg-config man page for more details." "$LINENO" 5
  14758. elif test $pkg_failed = untried; then
  14759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14760. $as_echo "no" >&6; }
  14761. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14762. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14763. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14764. is in your PATH or set the PKG_CONFIG environment variable to the full
  14765. path to pkg-config.
  14766. Alternatively, you may set the environment variables CDR_CFLAGS
  14767. and CDR_LIBS to avoid the need to call pkg-config.
  14768. See the pkg-config man page for more details.
  14769. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14770. See \`config.log' for more details" "$LINENO" 5; }
  14771. else
  14772. CDR_CFLAGS=$pkg_cv_CDR_CFLAGS
  14773. CDR_LIBS=$pkg_cv_CDR_LIBS
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14775. $as_echo "yes" >&6; }
  14776. fi
  14777. elif test $_os = iOS; then
  14778. # libcdr depends on libwpd and libwpg and those are LGPL
  14779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  14780. $as_echo "none" >&6; }
  14781. else
  14782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14783. $as_echo "internal" >&6; }
  14784. SYSTEM_LIBCDR=NO
  14785. BUILD_TYPE="$BUILD_TYPE LIBCDR"
  14786. fi
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libvisio to use" >&5
  14788. $as_echo_n "checking which libvisio to use... " >&6; }
  14789. if test "$with_system_libvisio" = "yes"; then
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14791. $as_echo "external" >&6; }
  14792. SYSTEM_LIBVISIO=YES
  14793. pkg_failed=no
  14794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VISIO" >&5
  14795. $as_echo_n "checking for VISIO... " >&6; }
  14796. if test -n "$VISIO_CFLAGS"; then
  14797. pkg_cv_VISIO_CFLAGS="$VISIO_CFLAGS"
  14798. elif test -n "$PKG_CONFIG"; then
  14799. if test -n "$PKG_CONFIG" && \
  14800. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvisio-0.0 \""; } >&5
  14801. ($PKG_CONFIG --exists --print-errors "libvisio-0.0 ") 2>&5
  14802. ac_status=$?
  14803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14804. test $ac_status = 0; }; then
  14805. pkg_cv_VISIO_CFLAGS=`$PKG_CONFIG --cflags "libvisio-0.0 " 2>/dev/null`
  14806. else
  14807. pkg_failed=yes
  14808. fi
  14809. else
  14810. pkg_failed=untried
  14811. fi
  14812. if test -n "$VISIO_LIBS"; then
  14813. pkg_cv_VISIO_LIBS="$VISIO_LIBS"
  14814. elif test -n "$PKG_CONFIG"; then
  14815. if test -n "$PKG_CONFIG" && \
  14816. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvisio-0.0 \""; } >&5
  14817. ($PKG_CONFIG --exists --print-errors "libvisio-0.0 ") 2>&5
  14818. ac_status=$?
  14819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14820. test $ac_status = 0; }; then
  14821. pkg_cv_VISIO_LIBS=`$PKG_CONFIG --libs "libvisio-0.0 " 2>/dev/null`
  14822. else
  14823. pkg_failed=yes
  14824. fi
  14825. else
  14826. pkg_failed=untried
  14827. fi
  14828. if test $pkg_failed = yes; then
  14829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14830. $as_echo "no" >&6; }
  14831. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14832. _pkg_short_errors_supported=yes
  14833. else
  14834. _pkg_short_errors_supported=no
  14835. fi
  14836. if test $_pkg_short_errors_supported = yes; then
  14837. VISIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvisio-0.0 " 2>&1`
  14838. else
  14839. VISIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvisio-0.0 " 2>&1`
  14840. fi
  14841. # Put the nasty error message in config.log where it belongs
  14842. echo "$VISIO_PKG_ERRORS" >&5
  14843. as_fn_error $? "Package requirements (libvisio-0.0 ) were not met:
  14844. $VISIO_PKG_ERRORS
  14845. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14846. installed software in a non-standard prefix.
  14847. Alternatively, you may set the environment variables VISIO_CFLAGS
  14848. and VISIO_LIBS to avoid the need to call pkg-config.
  14849. See the pkg-config man page for more details." "$LINENO" 5
  14850. elif test $pkg_failed = untried; then
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14852. $as_echo "no" >&6; }
  14853. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14854. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14855. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14856. is in your PATH or set the PKG_CONFIG environment variable to the full
  14857. path to pkg-config.
  14858. Alternatively, you may set the environment variables VISIO_CFLAGS
  14859. and VISIO_LIBS to avoid the need to call pkg-config.
  14860. See the pkg-config man page for more details.
  14861. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14862. See \`config.log' for more details" "$LINENO" 5; }
  14863. else
  14864. VISIO_CFLAGS=$pkg_cv_VISIO_CFLAGS
  14865. VISIO_LIBS=$pkg_cv_VISIO_LIBS
  14866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14867. $as_echo "yes" >&6; }
  14868. fi
  14869. elif test $_os = iOS; then
  14870. # libvisio depends on libwpd and libwpg and those are LGPL
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  14872. $as_echo "none" >&6; }
  14873. else
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14875. $as_echo "internal" >&6; }
  14876. SYSTEM_LIBVISIO=NO
  14877. BUILD_TYPE="$BUILD_TYPE LIBVISIO"
  14878. fi
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libcmis to use" >&5
  14880. $as_echo_n "checking which libcmis to use... " >&6; }
  14881. if test "$with_system_libcmis" = "yes"; then
  14882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14883. $as_echo "external" >&6; }
  14884. SYSTEM_LIBCMIS=YES
  14885. pkg_failed=no
  14886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCMIS" >&5
  14887. $as_echo_n "checking for LIBCMIS... " >&6; }
  14888. if test -n "$LIBCMIS_CFLAGS"; then
  14889. pkg_cv_LIBCMIS_CFLAGS="$LIBCMIS_CFLAGS"
  14890. elif test -n "$PKG_CONFIG"; then
  14891. if test -n "$PKG_CONFIG" && \
  14892. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmis-0.2 >= 0.2.1 \""; } >&5
  14893. ($PKG_CONFIG --exists --print-errors "libcmis-0.2 >= 0.2.1 ") 2>&5
  14894. ac_status=$?
  14895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14896. test $ac_status = 0; }; then
  14897. pkg_cv_LIBCMIS_CFLAGS=`$PKG_CONFIG --cflags "libcmis-0.2 >= 0.2.1 " 2>/dev/null`
  14898. else
  14899. pkg_failed=yes
  14900. fi
  14901. else
  14902. pkg_failed=untried
  14903. fi
  14904. if test -n "$LIBCMIS_LIBS"; then
  14905. pkg_cv_LIBCMIS_LIBS="$LIBCMIS_LIBS"
  14906. elif test -n "$PKG_CONFIG"; then
  14907. if test -n "$PKG_CONFIG" && \
  14908. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmis-0.2 >= 0.2.1 \""; } >&5
  14909. ($PKG_CONFIG --exists --print-errors "libcmis-0.2 >= 0.2.1 ") 2>&5
  14910. ac_status=$?
  14911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14912. test $ac_status = 0; }; then
  14913. pkg_cv_LIBCMIS_LIBS=`$PKG_CONFIG --libs "libcmis-0.2 >= 0.2.1 " 2>/dev/null`
  14914. else
  14915. pkg_failed=yes
  14916. fi
  14917. else
  14918. pkg_failed=untried
  14919. fi
  14920. if test $pkg_failed = yes; then
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14922. $as_echo "no" >&6; }
  14923. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14924. _pkg_short_errors_supported=yes
  14925. else
  14926. _pkg_short_errors_supported=no
  14927. fi
  14928. if test $_pkg_short_errors_supported = yes; then
  14929. LIBCMIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmis-0.2 >= 0.2.1 " 2>&1`
  14930. else
  14931. LIBCMIS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmis-0.2 >= 0.2.1 " 2>&1`
  14932. fi
  14933. # Put the nasty error message in config.log where it belongs
  14934. echo "$LIBCMIS_PKG_ERRORS" >&5
  14935. as_fn_error $? "Package requirements (libcmis-0.2 >= 0.2.1 ) were not met:
  14936. $LIBCMIS_PKG_ERRORS
  14937. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14938. installed software in a non-standard prefix.
  14939. Alternatively, you may set the environment variables LIBCMIS_CFLAGS
  14940. and LIBCMIS_LIBS to avoid the need to call pkg-config.
  14941. See the pkg-config man page for more details." "$LINENO" 5
  14942. elif test $pkg_failed = untried; then
  14943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14944. $as_echo "no" >&6; }
  14945. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14947. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14948. is in your PATH or set the PKG_CONFIG environment variable to the full
  14949. path to pkg-config.
  14950. Alternatively, you may set the environment variables LIBCMIS_CFLAGS
  14951. and LIBCMIS_LIBS to avoid the need to call pkg-config.
  14952. See the pkg-config man page for more details.
  14953. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14954. See \`config.log' for more details" "$LINENO" 5; }
  14955. else
  14956. LIBCMIS_CFLAGS=$pkg_cv_LIBCMIS_CFLAGS
  14957. LIBCMIS_LIBS=$pkg_cv_LIBCMIS_LIBS
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14959. $as_echo "yes" >&6; }
  14960. fi
  14961. else
  14962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  14963. $as_echo "internal" >&6; }
  14964. SYSTEM_LIBCMIS=NO
  14965. BUILD_TYPE="$BUILD_TYPE LIBCMIS"
  14966. fi
  14967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwpd to use" >&5
  14968. $as_echo_n "checking which libwpd to use... " >&6; }
  14969. if test "$with_system_libwpd" = "yes"; then
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  14971. $as_echo "external" >&6; }
  14972. SYSTEM_LIBWPD=YES
  14973. pkg_failed=no
  14974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPD" >&5
  14975. $as_echo_n "checking for WPD... " >&6; }
  14976. if test -n "$WPD_CFLAGS"; then
  14977. pkg_cv_WPD_CFLAGS="$WPD_CFLAGS"
  14978. elif test -n "$PKG_CONFIG"; then
  14979. if test -n "$PKG_CONFIG" && \
  14980. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpd-0.9 libwpd-stream-0.9 \""; } >&5
  14981. ($PKG_CONFIG --exists --print-errors "libwpd-0.9 libwpd-stream-0.9 ") 2>&5
  14982. ac_status=$?
  14983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14984. test $ac_status = 0; }; then
  14985. pkg_cv_WPD_CFLAGS=`$PKG_CONFIG --cflags "libwpd-0.9 libwpd-stream-0.9 " 2>/dev/null`
  14986. else
  14987. pkg_failed=yes
  14988. fi
  14989. else
  14990. pkg_failed=untried
  14991. fi
  14992. if test -n "$WPD_LIBS"; then
  14993. pkg_cv_WPD_LIBS="$WPD_LIBS"
  14994. elif test -n "$PKG_CONFIG"; then
  14995. if test -n "$PKG_CONFIG" && \
  14996. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpd-0.9 libwpd-stream-0.9 \""; } >&5
  14997. ($PKG_CONFIG --exists --print-errors "libwpd-0.9 libwpd-stream-0.9 ") 2>&5
  14998. ac_status=$?
  14999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15000. test $ac_status = 0; }; then
  15001. pkg_cv_WPD_LIBS=`$PKG_CONFIG --libs "libwpd-0.9 libwpd-stream-0.9 " 2>/dev/null`
  15002. else
  15003. pkg_failed=yes
  15004. fi
  15005. else
  15006. pkg_failed=untried
  15007. fi
  15008. if test $pkg_failed = yes; then
  15009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15010. $as_echo "no" >&6; }
  15011. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15012. _pkg_short_errors_supported=yes
  15013. else
  15014. _pkg_short_errors_supported=no
  15015. fi
  15016. if test $_pkg_short_errors_supported = yes; then
  15017. WPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libwpd-0.9 libwpd-stream-0.9 " 2>&1`
  15018. else
  15019. WPD_PKG_ERRORS=`$PKG_CONFIG --print-errors "libwpd-0.9 libwpd-stream-0.9 " 2>&1`
  15020. fi
  15021. # Put the nasty error message in config.log where it belongs
  15022. echo "$WPD_PKG_ERRORS" >&5
  15023. as_fn_error $? "Package requirements (libwpd-0.9 libwpd-stream-0.9 ) were not met:
  15024. $WPD_PKG_ERRORS
  15025. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15026. installed software in a non-standard prefix.
  15027. Alternatively, you may set the environment variables WPD_CFLAGS
  15028. and WPD_LIBS to avoid the need to call pkg-config.
  15029. See the pkg-config man page for more details." "$LINENO" 5
  15030. elif test $pkg_failed = untried; then
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15032. $as_echo "no" >&6; }
  15033. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15035. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15036. is in your PATH or set the PKG_CONFIG environment variable to the full
  15037. path to pkg-config.
  15038. Alternatively, you may set the environment variables WPD_CFLAGS
  15039. and WPD_LIBS to avoid the need to call pkg-config.
  15040. See the pkg-config man page for more details.
  15041. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15042. See \`config.log' for more details" "$LINENO" 5; }
  15043. else
  15044. WPD_CFLAGS=$pkg_cv_WPD_CFLAGS
  15045. WPD_LIBS=$pkg_cv_WPD_LIBS
  15046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15047. $as_echo "yes" >&6; }
  15048. fi
  15049. elif test $_os = iOS; then
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  15051. $as_echo "none" >&6; }
  15052. else
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15054. $as_echo "internal" >&6; }
  15055. SYSTEM_LIBWPD=NO
  15056. BUILD_TYPE="$BUILD_TYPE LIBWPD"
  15057. fi
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which littlecms v2 to use" >&5
  15059. $as_echo_n "checking which littlecms v2 to use... " >&6; }
  15060. if test "$with_system_lcms2" = "yes"; then
  15061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  15062. $as_echo "external" >&6; }
  15063. SYSTEM_LCMS2=YES
  15064. pkg_failed=no
  15065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
  15066. $as_echo_n "checking for LCMS2... " >&6; }
  15067. if test -n "$LCMS2_CFLAGS"; then
  15068. pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
  15069. elif test -n "$PKG_CONFIG"; then
  15070. if test -n "$PKG_CONFIG" && \
  15071. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 \""; } >&5
  15072. ($PKG_CONFIG --exists --print-errors "lcms2 ") 2>&5
  15073. ac_status=$?
  15074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15075. test $ac_status = 0; }; then
  15076. pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 " 2>/dev/null`
  15077. else
  15078. pkg_failed=yes
  15079. fi
  15080. else
  15081. pkg_failed=untried
  15082. fi
  15083. if test -n "$LCMS2_LIBS"; then
  15084. pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
  15085. elif test -n "$PKG_CONFIG"; then
  15086. if test -n "$PKG_CONFIG" && \
  15087. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 \""; } >&5
  15088. ($PKG_CONFIG --exists --print-errors "lcms2 ") 2>&5
  15089. ac_status=$?
  15090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15091. test $ac_status = 0; }; then
  15092. pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 " 2>/dev/null`
  15093. else
  15094. pkg_failed=yes
  15095. fi
  15096. else
  15097. pkg_failed=untried
  15098. fi
  15099. if test $pkg_failed = yes; then
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15101. $as_echo "no" >&6; }
  15102. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15103. _pkg_short_errors_supported=yes
  15104. else
  15105. _pkg_short_errors_supported=no
  15106. fi
  15107. if test $_pkg_short_errors_supported = yes; then
  15108. LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2 " 2>&1`
  15109. else
  15110. LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2 " 2>&1`
  15111. fi
  15112. # Put the nasty error message in config.log where it belongs
  15113. echo "$LCMS2_PKG_ERRORS" >&5
  15114. as_fn_error $? "Package requirements (lcms2 ) were not met:
  15115. $LCMS2_PKG_ERRORS
  15116. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15117. installed software in a non-standard prefix.
  15118. Alternatively, you may set the environment variables LCMS2_CFLAGS
  15119. and LCMS2_LIBS to avoid the need to call pkg-config.
  15120. See the pkg-config man page for more details." "$LINENO" 5
  15121. elif test $pkg_failed = untried; then
  15122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15123. $as_echo "no" >&6; }
  15124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15126. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15127. is in your PATH or set the PKG_CONFIG environment variable to the full
  15128. path to pkg-config.
  15129. Alternatively, you may set the environment variables LCMS2_CFLAGS
  15130. and LCMS2_LIBS to avoid the need to call pkg-config.
  15131. See the pkg-config man page for more details.
  15132. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15133. See \`config.log' for more details" "$LINENO" 5; }
  15134. else
  15135. LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
  15136. LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15138. $as_echo "yes" >&6; }
  15139. fi
  15140. libo_MINGW_CHECK_DLL(LCMS2, liblcms2)
  15141. else
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15143. $as_echo "internal" >&6; }
  15144. SYSTEM_LCMS2=NO
  15145. BUILD_TYPE="$BUILD_TYPE LCMS2"
  15146. fi
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which cppunit to use" >&5
  15148. $as_echo_n "checking which cppunit to use... " >&6; }
  15149. if test "$with_system_cppunit" = "yes"; then
  15150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  15151. $as_echo "external" >&6; }
  15152. SYSTEM_CPPUNIT=YES
  15153. # might work for earlier, too but go sure:
  15154. pkg_failed=no
  15155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
  15156. $as_echo_n "checking for CPPUNIT... " >&6; }
  15157. if test -n "$CPPUNIT_CFLAGS"; then
  15158. pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
  15159. elif test -n "$PKG_CONFIG"; then
  15160. if test -n "$PKG_CONFIG" && \
  15161. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.12.0 \""; } >&5
  15162. ($PKG_CONFIG --exists --print-errors "cppunit >= 1.12.0 ") 2>&5
  15163. ac_status=$?
  15164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15165. test $ac_status = 0; }; then
  15166. pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.12.0 " 2>/dev/null`
  15167. else
  15168. pkg_failed=yes
  15169. fi
  15170. else
  15171. pkg_failed=untried
  15172. fi
  15173. if test -n "$CPPUNIT_LIBS"; then
  15174. pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
  15175. elif test -n "$PKG_CONFIG"; then
  15176. if test -n "$PKG_CONFIG" && \
  15177. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= 1.12.0 \""; } >&5
  15178. ($PKG_CONFIG --exists --print-errors "cppunit >= 1.12.0 ") 2>&5
  15179. ac_status=$?
  15180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15181. test $ac_status = 0; }; then
  15182. pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= 1.12.0 " 2>/dev/null`
  15183. else
  15184. pkg_failed=yes
  15185. fi
  15186. else
  15187. pkg_failed=untried
  15188. fi
  15189. if test $pkg_failed = yes; then
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15191. $as_echo "no" >&6; }
  15192. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15193. _pkg_short_errors_supported=yes
  15194. else
  15195. _pkg_short_errors_supported=no
  15196. fi
  15197. if test $_pkg_short_errors_supported = yes; then
  15198. CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cppunit >= 1.12.0 " 2>&1`
  15199. else
  15200. CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cppunit >= 1.12.0 " 2>&1`
  15201. fi
  15202. # Put the nasty error message in config.log where it belongs
  15203. echo "$CPPUNIT_PKG_ERRORS" >&5
  15204. as_fn_error $? "Package requirements (cppunit >= 1.12.0 ) were not met:
  15205. $CPPUNIT_PKG_ERRORS
  15206. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15207. installed software in a non-standard prefix.
  15208. Alternatively, you may set the environment variables CPPUNIT_CFLAGS
  15209. and CPPUNIT_LIBS to avoid the need to call pkg-config.
  15210. See the pkg-config man page for more details." "$LINENO" 5
  15211. elif test $pkg_failed = untried; then
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15213. $as_echo "no" >&6; }
  15214. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15215. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15216. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15217. is in your PATH or set the PKG_CONFIG environment variable to the full
  15218. path to pkg-config.
  15219. Alternatively, you may set the environment variables CPPUNIT_CFLAGS
  15220. and CPPUNIT_LIBS to avoid the need to call pkg-config.
  15221. See the pkg-config man page for more details.
  15222. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15223. See \`config.log' for more details" "$LINENO" 5; }
  15224. else
  15225. CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
  15226. CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
  15227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15228. $as_echo "yes" >&6; }
  15229. fi
  15230. else
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15232. $as_echo "internal" >&6; }
  15233. SYSTEM_CPPUNIT=NO
  15234. BUILD_TYPE="$BUILD_TYPE CPPUNIT"
  15235. fi
  15236. if test "$test_freetype" = "yes"; then
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether freetype is available" >&5
  15238. $as_echo_n "checking whether freetype is available... " >&6; }
  15239. pkg_failed=no
  15240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
  15241. $as_echo_n "checking for FREETYPE... " >&6; }
  15242. if test -n "$FREETYPE_CFLAGS"; then
  15243. pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
  15244. elif test -n "$PKG_CONFIG"; then
  15245. if test -n "$PKG_CONFIG" && \
  15246. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.0 \""; } >&5
  15247. ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.0 ") 2>&5
  15248. ac_status=$?
  15249. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15250. test $ac_status = 0; }; then
  15251. pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0 " 2>/dev/null`
  15252. else
  15253. pkg_failed=yes
  15254. fi
  15255. else
  15256. pkg_failed=untried
  15257. fi
  15258. if test -n "$FREETYPE_LIBS"; then
  15259. pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
  15260. elif test -n "$PKG_CONFIG"; then
  15261. if test -n "$PKG_CONFIG" && \
  15262. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.0 \""; } >&5
  15263. ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.0 ") 2>&5
  15264. ac_status=$?
  15265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15266. test $ac_status = 0; }; then
  15267. pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0 " 2>/dev/null`
  15268. else
  15269. pkg_failed=yes
  15270. fi
  15271. else
  15272. pkg_failed=untried
  15273. fi
  15274. if test $pkg_failed = yes; then
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15276. $as_echo "no" >&6; }
  15277. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15278. _pkg_short_errors_supported=yes
  15279. else
  15280. _pkg_short_errors_supported=no
  15281. fi
  15282. if test $_pkg_short_errors_supported = yes; then
  15283. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 2.0 " 2>&1`
  15284. else
  15285. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 2.0 " 2>&1`
  15286. fi
  15287. # Put the nasty error message in config.log where it belongs
  15288. echo "$FREETYPE_PKG_ERRORS" >&5
  15289. as_fn_error $? "Package requirements (freetype2 >= 2.0 ) were not met:
  15290. $FREETYPE_PKG_ERRORS
  15291. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15292. installed software in a non-standard prefix.
  15293. Alternatively, you may set the environment variables FREETYPE_CFLAGS
  15294. and FREETYPE_LIBS to avoid the need to call pkg-config.
  15295. See the pkg-config man page for more details." "$LINENO" 5
  15296. elif test $pkg_failed = untried; then
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15298. $as_echo "no" >&6; }
  15299. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15300. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15301. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15302. is in your PATH or set the PKG_CONFIG environment variable to the full
  15303. path to pkg-config.
  15304. Alternatively, you may set the environment variables FREETYPE_CFLAGS
  15305. and FREETYPE_LIBS to avoid the need to call pkg-config.
  15306. See the pkg-config man page for more details.
  15307. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15308. See \`config.log' for more details" "$LINENO" 5; }
  15309. else
  15310. FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
  15311. FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15313. $as_echo "yes" >&6; }
  15314. fi
  15315. else
  15316. case "$BUILD_TYPE" in
  15317. *FREETYPE*)
  15318. FREETYPE_LIBS="-lfreetype"
  15319. ;;
  15320. esac
  15321. fi
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwps to use" >&5
  15323. $as_echo_n "checking which libwps to use... " >&6; }
  15324. if test "$with_system_libwps" = "yes"; then
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  15326. $as_echo "external" >&6; }
  15327. SYSTEM_LIBWPS=YES
  15328. pkg_failed=no
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPS" >&5
  15330. $as_echo_n "checking for WPS... " >&6; }
  15331. if test -n "$WPS_CFLAGS"; then
  15332. pkg_cv_WPS_CFLAGS="$WPS_CFLAGS"
  15333. elif test -n "$PKG_CONFIG"; then
  15334. if test -n "$PKG_CONFIG" && \
  15335. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwps-0.2 \""; } >&5
  15336. ($PKG_CONFIG --exists --print-errors "libwps-0.2 ") 2>&5
  15337. ac_status=$?
  15338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15339. test $ac_status = 0; }; then
  15340. pkg_cv_WPS_CFLAGS=`$PKG_CONFIG --cflags "libwps-0.2 " 2>/dev/null`
  15341. else
  15342. pkg_failed=yes
  15343. fi
  15344. else
  15345. pkg_failed=untried
  15346. fi
  15347. if test -n "$WPS_LIBS"; then
  15348. pkg_cv_WPS_LIBS="$WPS_LIBS"
  15349. elif test -n "$PKG_CONFIG"; then
  15350. if test -n "$PKG_CONFIG" && \
  15351. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwps-0.2 \""; } >&5
  15352. ($PKG_CONFIG --exists --print-errors "libwps-0.2 ") 2>&5
  15353. ac_status=$?
  15354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15355. test $ac_status = 0; }; then
  15356. pkg_cv_WPS_LIBS=`$PKG_CONFIG --libs "libwps-0.2 " 2>/dev/null`
  15357. else
  15358. pkg_failed=yes
  15359. fi
  15360. else
  15361. pkg_failed=untried
  15362. fi
  15363. if test $pkg_failed = yes; then
  15364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15365. $as_echo "no" >&6; }
  15366. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15367. _pkg_short_errors_supported=yes
  15368. else
  15369. _pkg_short_errors_supported=no
  15370. fi
  15371. if test $_pkg_short_errors_supported = yes; then
  15372. WPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libwps-0.2 " 2>&1`
  15373. else
  15374. WPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libwps-0.2 " 2>&1`
  15375. fi
  15376. # Put the nasty error message in config.log where it belongs
  15377. echo "$WPS_PKG_ERRORS" >&5
  15378. as_fn_error $? "Package requirements (libwps-0.2 ) were not met:
  15379. $WPS_PKG_ERRORS
  15380. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15381. installed software in a non-standard prefix.
  15382. Alternatively, you may set the environment variables WPS_CFLAGS
  15383. and WPS_LIBS to avoid the need to call pkg-config.
  15384. See the pkg-config man page for more details." "$LINENO" 5
  15385. elif test $pkg_failed = untried; then
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15387. $as_echo "no" >&6; }
  15388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15390. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15391. is in your PATH or set the PKG_CONFIG environment variable to the full
  15392. path to pkg-config.
  15393. Alternatively, you may set the environment variables WPS_CFLAGS
  15394. and WPS_LIBS to avoid the need to call pkg-config.
  15395. See the pkg-config man page for more details.
  15396. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15397. See \`config.log' for more details" "$LINENO" 5; }
  15398. else
  15399. WPS_CFLAGS=$pkg_cv_WPS_CFLAGS
  15400. WPS_LIBS=$pkg_cv_WPS_LIBS
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15402. $as_echo "yes" >&6; }
  15403. fi
  15404. elif test $_os = iOS; then
  15405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  15406. $as_echo "none" >&6; }
  15407. else
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15409. $as_echo "internal" >&6; }
  15410. SYSTEM_LIBWPS=NO
  15411. BUILD_TYPE="$BUILD_TYPE LIBWPS"
  15412. fi
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwpg to use" >&5
  15414. $as_echo_n "checking which libwpg to use... " >&6; }
  15415. if test "$with_system_libwpg" = "yes"; then
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  15417. $as_echo "external" >&6; }
  15418. SYSTEM_LIBWPG=YES
  15419. pkg_failed=no
  15420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPG" >&5
  15421. $as_echo_n "checking for WPG... " >&6; }
  15422. if test -n "$WPG_CFLAGS"; then
  15423. pkg_cv_WPG_CFLAGS="$WPG_CFLAGS"
  15424. elif test -n "$PKG_CONFIG"; then
  15425. if test -n "$PKG_CONFIG" && \
  15426. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpg-0.2 \""; } >&5
  15427. ($PKG_CONFIG --exists --print-errors "libwpg-0.2 ") 2>&5
  15428. ac_status=$?
  15429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15430. test $ac_status = 0; }; then
  15431. pkg_cv_WPG_CFLAGS=`$PKG_CONFIG --cflags "libwpg-0.2 " 2>/dev/null`
  15432. else
  15433. pkg_failed=yes
  15434. fi
  15435. else
  15436. pkg_failed=untried
  15437. fi
  15438. if test -n "$WPG_LIBS"; then
  15439. pkg_cv_WPG_LIBS="$WPG_LIBS"
  15440. elif test -n "$PKG_CONFIG"; then
  15441. if test -n "$PKG_CONFIG" && \
  15442. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwpg-0.2 \""; } >&5
  15443. ($PKG_CONFIG --exists --print-errors "libwpg-0.2 ") 2>&5
  15444. ac_status=$?
  15445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15446. test $ac_status = 0; }; then
  15447. pkg_cv_WPG_LIBS=`$PKG_CONFIG --libs "libwpg-0.2 " 2>/dev/null`
  15448. else
  15449. pkg_failed=yes
  15450. fi
  15451. else
  15452. pkg_failed=untried
  15453. fi
  15454. if test $pkg_failed = yes; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15456. $as_echo "no" >&6; }
  15457. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15458. _pkg_short_errors_supported=yes
  15459. else
  15460. _pkg_short_errors_supported=no
  15461. fi
  15462. if test $_pkg_short_errors_supported = yes; then
  15463. WPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libwpg-0.2 " 2>&1`
  15464. else
  15465. WPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libwpg-0.2 " 2>&1`
  15466. fi
  15467. # Put the nasty error message in config.log where it belongs
  15468. echo "$WPG_PKG_ERRORS" >&5
  15469. as_fn_error $? "Package requirements (libwpg-0.2 ) were not met:
  15470. $WPG_PKG_ERRORS
  15471. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15472. installed software in a non-standard prefix.
  15473. Alternatively, you may set the environment variables WPG_CFLAGS
  15474. and WPG_LIBS to avoid the need to call pkg-config.
  15475. See the pkg-config man page for more details." "$LINENO" 5
  15476. elif test $pkg_failed = untried; then
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15478. $as_echo "no" >&6; }
  15479. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15481. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15482. is in your PATH or set the PKG_CONFIG environment variable to the full
  15483. path to pkg-config.
  15484. Alternatively, you may set the environment variables WPG_CFLAGS
  15485. and WPG_LIBS to avoid the need to call pkg-config.
  15486. See the pkg-config man page for more details.
  15487. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15488. See \`config.log' for more details" "$LINENO" 5; }
  15489. else
  15490. WPG_CFLAGS=$pkg_cv_WPG_CFLAGS
  15491. WPG_LIBS=$pkg_cv_WPG_LIBS
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15493. $as_echo "yes" >&6; }
  15494. fi
  15495. elif test $_os = iOS; then
  15496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  15497. $as_echo "none" >&6; }
  15498. else
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15500. $as_echo "internal" >&6; }
  15501. SYSTEM_LIBWPG=NO
  15502. BUILD_TYPE="$BUILD_TYPE LIBWPG"
  15503. fi
  15504. if test "$test_freetype" = "yes"; then
  15505. save_CPPFLAGS="$CPPFLAGS"
  15506. save_LDFLAGS="$LDFLAGS"
  15507. save_LIBS="$LIBS"
  15508. CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
  15509. LDFLAGS="$LDFLAGS $FREETYPE_LIBS"
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_GlyphSlot_Embolden in -lfreetype" >&5
  15511. $as_echo_n "checking for FT_GlyphSlot_Embolden in -lfreetype... " >&6; }
  15512. if ${ac_cv_lib_freetype_FT_GlyphSlot_Embolden+:} false; then :
  15513. $as_echo_n "(cached) " >&6
  15514. else
  15515. ac_check_lib_save_LIBS=$LIBS
  15516. LIBS="-lfreetype $LIBS"
  15517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15518. /* end confdefs.h. */
  15519. /* Override any GCC internal prototype to avoid an error.
  15520. Use char because int might match the return type of a GCC
  15521. builtin and then its argument prototype would still apply. */
  15522. #ifdef __cplusplus
  15523. extern "C"
  15524. #endif
  15525. char FT_GlyphSlot_Embolden ();
  15526. int
  15527. main ()
  15528. {
  15529. return FT_GlyphSlot_Embolden ();
  15530. ;
  15531. return 0;
  15532. }
  15533. _ACEOF
  15534. if ac_fn_c_try_link "$LINENO"; then :
  15535. ac_cv_lib_freetype_FT_GlyphSlot_Embolden=yes
  15536. else
  15537. ac_cv_lib_freetype_FT_GlyphSlot_Embolden=no
  15538. fi
  15539. rm -f core conftest.err conftest.$ac_objext \
  15540. conftest$ac_exeext conftest.$ac_ext
  15541. LIBS=$ac_check_lib_save_LIBS
  15542. fi
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&5
  15544. $as_echo "$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&6; }
  15545. if test "x$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" = xyes; then :
  15546. USE_FT_EMBOLDEN="YES"
  15547. else
  15548. USE_FT_EMBOLDEN="NO"
  15549. fi
  15550. LDFLAGS="$save_LDFLAGS"
  15551. CPPFLAGS="$save_CPPFLAGS"
  15552. LIBS="$save_LIBS"
  15553. fi
  15554. # ===================================================================
  15555. # Check for system libxslt
  15556. # to prevent incompatibilities between internal libxml2 and external libxslt,
  15557. # or vice versa, use with_system_libxml here
  15558. # ===================================================================
  15559. if test "$with_system_libxml" = "auto"; then
  15560. case "$_os" in
  15561. WINNT|iOS|Android)
  15562. with_system_libxml="$with_system_libs"
  15563. ;;
  15564. *)
  15565. with_system_libxml=yes
  15566. ;;
  15567. esac
  15568. fi
  15569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libxslt to use" >&5
  15570. $as_echo_n "checking which libxslt to use... " >&6; }
  15571. if test "$with_system_libxml" = "yes"; then
  15572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  15573. $as_echo "external" >&6; }
  15574. SYSTEM_LIBXSLT=YES
  15575. if test "$_os" = "Darwin"; then
  15576. LIBXSLT_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/libxml2"
  15577. LIBXSLT_LIBS="-lxslt -lxml2 -lz -lpthread -liconv -lm"
  15578. else
  15579. pkg_failed=no
  15580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXSLT" >&5
  15581. $as_echo_n "checking for LIBXSLT... " >&6; }
  15582. if test -n "$LIBXSLT_CFLAGS"; then
  15583. pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
  15584. elif test -n "$PKG_CONFIG"; then
  15585. if test -n "$PKG_CONFIG" && \
  15586. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt\""; } >&5
  15587. ($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
  15588. ac_status=$?
  15589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15590. test $ac_status = 0; }; then
  15591. pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt" 2>/dev/null`
  15592. else
  15593. pkg_failed=yes
  15594. fi
  15595. else
  15596. pkg_failed=untried
  15597. fi
  15598. if test -n "$LIBXSLT_LIBS"; then
  15599. pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
  15600. elif test -n "$PKG_CONFIG"; then
  15601. if test -n "$PKG_CONFIG" && \
  15602. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxslt\""; } >&5
  15603. ($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
  15604. ac_status=$?
  15605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15606. test $ac_status = 0; }; then
  15607. pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt" 2>/dev/null`
  15608. else
  15609. pkg_failed=yes
  15610. fi
  15611. else
  15612. pkg_failed=untried
  15613. fi
  15614. if test $pkg_failed = yes; then
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15616. $as_echo "no" >&6; }
  15617. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15618. _pkg_short_errors_supported=yes
  15619. else
  15620. _pkg_short_errors_supported=no
  15621. fi
  15622. if test $_pkg_short_errors_supported = yes; then
  15623. LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxslt" 2>&1`
  15624. else
  15625. LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxslt" 2>&1`
  15626. fi
  15627. # Put the nasty error message in config.log where it belongs
  15628. echo "$LIBXSLT_PKG_ERRORS" >&5
  15629. as_fn_error $? "Package requirements (libxslt) were not met:
  15630. $LIBXSLT_PKG_ERRORS
  15631. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15632. installed software in a non-standard prefix.
  15633. Alternatively, you may set the environment variables LIBXSLT_CFLAGS
  15634. and LIBXSLT_LIBS to avoid the need to call pkg-config.
  15635. See the pkg-config man page for more details." "$LINENO" 5
  15636. elif test $pkg_failed = untried; then
  15637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15638. $as_echo "no" >&6; }
  15639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15641. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15642. is in your PATH or set the PKG_CONFIG environment variable to the full
  15643. path to pkg-config.
  15644. Alternatively, you may set the environment variables LIBXSLT_CFLAGS
  15645. and LIBXSLT_LIBS to avoid the need to call pkg-config.
  15646. See the pkg-config man page for more details.
  15647. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15648. See \`config.log' for more details" "$LINENO" 5; }
  15649. else
  15650. LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
  15651. LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
  15652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15653. $as_echo "yes" >&6; }
  15654. fi
  15655. fi
  15656. # Extract the first word of "xsltproc", so it can be a program name with args.
  15657. set dummy xsltproc; ac_word=$2
  15658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15659. $as_echo_n "checking for $ac_word... " >&6; }
  15660. if ${ac_cv_path_XSLTPROC+:} false; then :
  15661. $as_echo_n "(cached) " >&6
  15662. else
  15663. case $XSLTPROC in
  15664. [\\/]* | ?:[\\/]*)
  15665. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  15666. ;;
  15667. *)
  15668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15669. for as_dir in $PATH
  15670. do
  15671. IFS=$as_save_IFS
  15672. test -z "$as_dir" && as_dir=.
  15673. for ac_exec_ext in '' $ac_executable_extensions; do
  15674. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15675. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  15676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15677. break 2
  15678. fi
  15679. done
  15680. done
  15681. IFS=$as_save_IFS
  15682. test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
  15683. ;;
  15684. esac
  15685. fi
  15686. XSLTPROC=$ac_cv_path_XSLTPROC
  15687. if test -n "$XSLTPROC"; then
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  15689. $as_echo "$XSLTPROC" >&6; }
  15690. else
  15691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15692. $as_echo "no" >&6; }
  15693. fi
  15694. if test "$XSLTPROC" = "no"; then
  15695. as_fn_error $? "xsltproc is required" "$LINENO" 5
  15696. fi
  15697. libo_MINGW_CHECK_DLL(LIBXSLT, libxslt)
  15698. libo_MINGW_TRY_DLL(ICONV, iconv)
  15699. else
  15700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15701. $as_echo "internal" >&6; }
  15702. SYSTEM_LIBXSLT=NO
  15703. BUILD_TYPE="$BUILD_TYPE LIBXSLT"
  15704. if test "$cross_compiling" = "yes"; then
  15705. # Extract the first word of "xsltproc", so it can be a program name with args.
  15706. set dummy xsltproc; ac_word=$2
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15708. $as_echo_n "checking for $ac_word... " >&6; }
  15709. if ${ac_cv_path_XSLTPROC+:} false; then :
  15710. $as_echo_n "(cached) " >&6
  15711. else
  15712. case $XSLTPROC in
  15713. [\\/]* | ?:[\\/]*)
  15714. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  15715. ;;
  15716. *)
  15717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15718. for as_dir in $PATH
  15719. do
  15720. IFS=$as_save_IFS
  15721. test -z "$as_dir" && as_dir=.
  15722. for ac_exec_ext in '' $ac_executable_extensions; do
  15723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15724. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  15725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15726. break 2
  15727. fi
  15728. done
  15729. done
  15730. IFS=$as_save_IFS
  15731. test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
  15732. ;;
  15733. esac
  15734. fi
  15735. XSLTPROC=$ac_cv_path_XSLTPROC
  15736. if test -n "$XSLTPROC"; then
  15737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  15738. $as_echo "$XSLTPROC" >&6; }
  15739. else
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15741. $as_echo "no" >&6; }
  15742. fi
  15743. if test "$XSLTPROC" = "no"; then
  15744. as_fn_error $? "xsltproc is required" "$LINENO" 5
  15745. fi
  15746. fi
  15747. fi
  15748. if test -z "$SYSTEM_LIBXSLT_FOR_BUILD"; then
  15749. SYSTEM_LIBXSLT_FOR_BUILD="$SYSTEM_LIBXSLT"
  15750. fi
  15751. # ===================================================================
  15752. # Check for system libxml
  15753. # ===================================================================
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libxml to use" >&5
  15755. $as_echo_n "checking which libxml to use... " >&6; }
  15756. if test "$with_system_libxml" = "yes"; then
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  15758. $as_echo "external" >&6; }
  15759. SYSTEM_LIBXML=YES
  15760. if test "$_os" = "Darwin"; then
  15761. LIBXML_CFLAGS="-I$MACOSX_SDK_PATH/usr/include/libxml2"
  15762. LIBXML_LIBS="-lxml2 -lz -lpthread -liconv -lm"
  15763. elif test $_os = iOS; then
  15764. usr=`echo '#include <stdlib.h>' | $CC -E -MD - | grep usr/include/stdlib.h | head -1 | sed -e 's,# 1 ",,' -e 's,/usr/include/.*,/usr,'`
  15765. LIBXML_CFLAGS="-I$usr/include/libxml2"
  15766. LIBXML_LIBS="-L$usr/lib -lxml2 -liconv"
  15767. else
  15768. pkg_failed=no
  15769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5
  15770. $as_echo_n "checking for LIBXML... " >&6; }
  15771. if test -n "$LIBXML_CFLAGS"; then
  15772. pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
  15773. elif test -n "$PKG_CONFIG"; then
  15774. if test -n "$PKG_CONFIG" && \
  15775. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\""; } >&5
  15776. ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
  15777. ac_status=$?
  15778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15779. test $ac_status = 0; }; then
  15780. pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0" 2>/dev/null`
  15781. else
  15782. pkg_failed=yes
  15783. fi
  15784. else
  15785. pkg_failed=untried
  15786. fi
  15787. if test -n "$LIBXML_LIBS"; then
  15788. pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
  15789. elif test -n "$PKG_CONFIG"; then
  15790. if test -n "$PKG_CONFIG" && \
  15791. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0\""; } >&5
  15792. ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0") 2>&5
  15793. ac_status=$?
  15794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15795. test $ac_status = 0; }; then
  15796. pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0" 2>/dev/null`
  15797. else
  15798. pkg_failed=yes
  15799. fi
  15800. else
  15801. pkg_failed=untried
  15802. fi
  15803. if test $pkg_failed = yes; then
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15805. $as_echo "no" >&6; }
  15806. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15807. _pkg_short_errors_supported=yes
  15808. else
  15809. _pkg_short_errors_supported=no
  15810. fi
  15811. if test $_pkg_short_errors_supported = yes; then
  15812. LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.0" 2>&1`
  15813. else
  15814. LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.0" 2>&1`
  15815. fi
  15816. # Put the nasty error message in config.log where it belongs
  15817. echo "$LIBXML_PKG_ERRORS" >&5
  15818. as_fn_error $? "Package requirements (libxml-2.0 >= 2.0) were not met:
  15819. $LIBXML_PKG_ERRORS
  15820. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15821. installed software in a non-standard prefix.
  15822. Alternatively, you may set the environment variables LIBXML_CFLAGS
  15823. and LIBXML_LIBS to avoid the need to call pkg-config.
  15824. See the pkg-config man page for more details." "$LINENO" 5
  15825. elif test $pkg_failed = untried; then
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15827. $as_echo "no" >&6; }
  15828. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15830. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15831. is in your PATH or set the PKG_CONFIG environment variable to the full
  15832. path to pkg-config.
  15833. Alternatively, you may set the environment variables LIBXML_CFLAGS
  15834. and LIBXML_LIBS to avoid the need to call pkg-config.
  15835. See the pkg-config man page for more details.
  15836. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15837. See \`config.log' for more details" "$LINENO" 5; }
  15838. else
  15839. LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
  15840. LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
  15841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15842. $as_echo "yes" >&6; }
  15843. fi
  15844. fi
  15845. # Extract the first word of "xmllint", so it can be a program name with args.
  15846. set dummy xmllint; ac_word=$2
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15848. $as_echo_n "checking for $ac_word... " >&6; }
  15849. if ${ac_cv_path_XMLLINT+:} false; then :
  15850. $as_echo_n "(cached) " >&6
  15851. else
  15852. case $XMLLINT in
  15853. [\\/]* | ?:[\\/]*)
  15854. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  15855. ;;
  15856. *)
  15857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15858. for as_dir in $PATH
  15859. do
  15860. IFS=$as_save_IFS
  15861. test -z "$as_dir" && as_dir=.
  15862. for ac_exec_ext in '' $ac_executable_extensions; do
  15863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15864. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  15865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15866. break 2
  15867. fi
  15868. done
  15869. done
  15870. IFS=$as_save_IFS
  15871. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="no"
  15872. ;;
  15873. esac
  15874. fi
  15875. XMLLINT=$ac_cv_path_XMLLINT
  15876. if test -n "$XMLLINT"; then
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  15878. $as_echo "$XMLLINT" >&6; }
  15879. else
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15881. $as_echo "no" >&6; }
  15882. fi
  15883. if test "$XMLLINT" = "no"; then
  15884. as_fn_error $? "xmllint is required" "$LINENO" 5
  15885. fi
  15886. libo_MINGW_CHECK_DLL(LIBXML,libxml2)
  15887. libo_MINGW_TRY_DLL(ZLIB,zlib1)
  15888. else
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15890. $as_echo "internal" >&6; }
  15891. SYSTEM_LIBXML=NO
  15892. BUILD_TYPE="$BUILD_TYPE LIBXML2"
  15893. fi
  15894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Python to use" >&5
  15895. $as_echo_n "checking which Python to use... " >&6; }
  15896. case "$enable_python" in
  15897. no|disable)
  15898. enable_python=no
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  15900. $as_echo "none" >&6; }
  15901. DISABLE_PYTHON=TRUE
  15902. ;;
  15903. ""|yes|auto)
  15904. if test "$DISABLE_SCRIPTING" = TRUE; then
  15905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, overridden by --disable-scripting" >&5
  15906. $as_echo "no, overridden by --disable-scripting" >&6; }
  15907. enable_python=no
  15908. DISABLE_PYTHON=TRUE
  15909. elif test $build_os = cygwin; then
  15910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15911. $as_echo "internal" >&6; }
  15912. enable_python=internal
  15913. elif test $_os = Darwin -a \( "$with_macosx_version_min_required" = 10.4 -o "$with_macosx_version_min_required" = 10.5 \); then
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" >&5
  15915. $as_echo "internal, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" >&6; }
  15916. enable_python=internal
  15917. else
  15918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking below" >&5
  15919. $as_echo "checking below" >&6; }
  15920. enable_python=auto
  15921. fi
  15922. ;;
  15923. internal)
  15924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  15925. $as_echo "internal" >&6; }
  15926. ;;
  15927. system)
  15928. if test $_os = Darwin -a -z "$PYTHON" -a \( "$with_macosx_version_min_required" = 10.4 -o "$with_macosx_version_min_required" = 10.5 \); then
  15929. as_fn_error $? "Cannot use \"system\" Python, the Python in Mac OS X $with_macosx_version_min_required is incompatible with Python3-ified pyuno" "$LINENO" 5
  15930. fi
  15931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  15932. $as_echo "system" >&6; }
  15933. ;;
  15934. *)
  15935. as_fn_error $? "Incorrect --enable-python option" "$LINENO" 5
  15936. ;;
  15937. esac
  15938. if test $_os = WINNT -a "$WITH_MINGW" != yes -a $enable_python = system; then
  15939. as_fn_error $? "Must use internal Python when building with MSVC" "$LINENO" 5
  15940. fi
  15941. if test $enable_python != no; then
  15942. BUILD_TYPE="$BUILD_TYPE PYUNO"
  15943. fi
  15944. if test "$cross_compiling" = yes; then
  15945. if test $enable_python = auto; then
  15946. enable_python=system
  15947. fi
  15948. else
  15949. if test $enable_python = system -a -z "$PYTHON"; then
  15950. if test $_os = Darwin; then
  15951. # We already have logic above to make sure the system Python
  15952. # is used only when building against SDK 10.6 or newer.
  15953. # Make sure we use the 2.6 Python when building against the
  15954. # 10.6 SDK.
  15955. case $with_macosx_sdk in
  15956. 10.6)
  15957. python_version=2.6;;
  15958. 10.7)
  15959. python_version=2.7;;
  15960. *)
  15961. # ???
  15962. python_version=2.7;;
  15963. esac
  15964. PYTHON=python$python_version
  15965. PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX${with_macosx_sdk}.sdk/System/Library/Frameworks/Python.framework/Versions/${python_version}/include/python${python_version}"
  15966. PYTHON_LIBS="-framework Python"
  15967. else
  15968. # This causes an error if no python command is found
  15969. if test -n "$PYTHON"; then
  15970. # If the user set $PYTHON, use it and don't search something else.
  15971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
  15972. $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
  15973. prog="import sys
  15974. # split strings by '.' and convert to numeric. Append some zeros
  15975. # because we need at least 4 digits for the hex conversion.
  15976. # map returns an iterator in Python 3.0 and a list in 2.x
  15977. minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
  15978. minverhex = 0
  15979. # xrange is not present in Python 3.0 and range returns an iterator
  15980. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  15981. sys.exit(sys.hexversion < minverhex)"
  15982. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  15983. ($PYTHON -c "$prog") >&5 2>&5
  15984. ac_status=$?
  15985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15986. (exit $ac_status); }; then :
  15987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15988. $as_echo "yes" >&6; }
  15989. else
  15990. as_fn_error $? "too old" "$LINENO" 5
  15991. fi
  15992. am_display_PYTHON=$PYTHON
  15993. else
  15994. # Otherwise, try each interpreter until we find one that satisfies
  15995. # VERSION.
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
  15997. $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
  15998. if ${am_cv_pathless_PYTHON+:} false; then :
  15999. $as_echo_n "(cached) " >&6
  16000. else
  16001. for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  16002. test "$am_cv_pathless_PYTHON" = none && break
  16003. prog="import sys
  16004. # split strings by '.' and convert to numeric. Append some zeros
  16005. # because we need at least 4 digits for the hex conversion.
  16006. # map returns an iterator in Python 3.0 and a list in 2.x
  16007. minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
  16008. minverhex = 0
  16009. # xrange is not present in Python 3.0 and range returns an iterator
  16010. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  16011. sys.exit(sys.hexversion < minverhex)"
  16012. if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
  16013. ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
  16014. ac_status=$?
  16015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16016. (exit $ac_status); }; then :
  16017. break
  16018. fi
  16019. done
  16020. fi
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
  16022. $as_echo "$am_cv_pathless_PYTHON" >&6; }
  16023. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  16024. if test "$am_cv_pathless_PYTHON" = none; then
  16025. PYTHON=:
  16026. else
  16027. # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
  16028. set dummy $am_cv_pathless_PYTHON; ac_word=$2
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16030. $as_echo_n "checking for $ac_word... " >&6; }
  16031. if ${ac_cv_path_PYTHON+:} false; then :
  16032. $as_echo_n "(cached) " >&6
  16033. else
  16034. case $PYTHON in
  16035. [\\/]* | ?:[\\/]*)
  16036. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  16037. ;;
  16038. *)
  16039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16040. for as_dir in $PATH
  16041. do
  16042. IFS=$as_save_IFS
  16043. test -z "$as_dir" && as_dir=.
  16044. for ac_exec_ext in '' $ac_executable_extensions; do
  16045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16046. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  16047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16048. break 2
  16049. fi
  16050. done
  16051. done
  16052. IFS=$as_save_IFS
  16053. ;;
  16054. esac
  16055. fi
  16056. PYTHON=$ac_cv_path_PYTHON
  16057. if test -n "$PYTHON"; then
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  16059. $as_echo "$PYTHON" >&6; }
  16060. else
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16062. $as_echo "no" >&6; }
  16063. fi
  16064. fi
  16065. am_display_PYTHON=$am_cv_pathless_PYTHON
  16066. fi
  16067. if test "$PYTHON" = :; then
  16068. as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
  16069. else
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
  16071. $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
  16072. if ${am_cv_python_version+:} false; then :
  16073. $as_echo_n "(cached) " >&6
  16074. else
  16075. am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
  16076. fi
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
  16078. $as_echo "$am_cv_python_version" >&6; }
  16079. PYTHON_VERSION=$am_cv_python_version
  16080. PYTHON_PREFIX='${prefix}'
  16081. PYTHON_EXEC_PREFIX='${exec_prefix}'
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
  16083. $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
  16084. if ${am_cv_python_platform+:} false; then :
  16085. $as_echo_n "(cached) " >&6
  16086. else
  16087. am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
  16088. fi
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
  16090. $as_echo "$am_cv_python_platform" >&6; }
  16091. PYTHON_PLATFORM=$am_cv_python_platform
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
  16093. $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
  16094. if ${am_cv_python_pythondir+:} false; then :
  16095. $as_echo_n "(cached) " >&6
  16096. else
  16097. if test "x$prefix" = xNONE
  16098. then
  16099. am_py_prefix=$ac_default_prefix
  16100. else
  16101. am_py_prefix=$prefix
  16102. fi
  16103. am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
  16104. echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
  16105. case $am_cv_python_pythondir in
  16106. $am_py_prefix*)
  16107. am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  16108. am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  16109. ;;
  16110. *)
  16111. case $am_py_prefix in
  16112. /usr|/System*) ;;
  16113. *)
  16114. am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  16115. ;;
  16116. esac
  16117. ;;
  16118. esac
  16119. fi
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
  16121. $as_echo "$am_cv_python_pythondir" >&6; }
  16122. pythondir=$am_cv_python_pythondir
  16123. pkgpythondir=\${pythondir}/$PACKAGE
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
  16125. $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
  16126. if ${am_cv_python_pyexecdir+:} false; then :
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. if test "x$exec_prefix" = xNONE
  16130. then
  16131. am_py_exec_prefix=$am_py_prefix
  16132. else
  16133. am_py_exec_prefix=$exec_prefix
  16134. fi
  16135. am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
  16136. echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
  16137. case $am_cv_python_pyexecdir in
  16138. $am_py_exec_prefix*)
  16139. am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  16140. am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  16141. ;;
  16142. *)
  16143. case $am_py_exec_prefix in
  16144. /usr|/System*) ;;
  16145. *)
  16146. am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  16147. ;;
  16148. esac
  16149. ;;
  16150. esac
  16151. fi
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
  16153. $as_echo "$am_cv_python_pyexecdir" >&6; }
  16154. pyexecdir=$am_cv_python_pyexecdir
  16155. pkgpyexecdir=\${pyexecdir}/$PACKAGE
  16156. fi
  16157. fi
  16158. elif test $enable_python = auto; then
  16159. if test -n "$PYTHON"; then
  16160. # If the user set $PYTHON, use it and don't search something else.
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
  16162. $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
  16163. prog="import sys
  16164. # split strings by '.' and convert to numeric. Append some zeros
  16165. # because we need at least 4 digits for the hex conversion.
  16166. # map returns an iterator in Python 3.0 and a list in 2.x
  16167. minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
  16168. minverhex = 0
  16169. # xrange is not present in Python 3.0 and range returns an iterator
  16170. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  16171. sys.exit(sys.hexversion < minverhex)"
  16172. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  16173. ($PYTHON -c "$prog") >&5 2>&5
  16174. ac_status=$?
  16175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16176. (exit $ac_status); }; then :
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16178. $as_echo "yes" >&6; }
  16179. else
  16180. as_fn_error $? "too old" "$LINENO" 5
  16181. fi
  16182. am_display_PYTHON=$PYTHON
  16183. else
  16184. # Otherwise, try each interpreter until we find one that satisfies
  16185. # VERSION.
  16186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
  16187. $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
  16188. if ${am_cv_pathless_PYTHON+:} false; then :
  16189. $as_echo_n "(cached) " >&6
  16190. else
  16191. for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  16192. test "$am_cv_pathless_PYTHON" = none && break
  16193. prog="import sys
  16194. # split strings by '.' and convert to numeric. Append some zeros
  16195. # because we need at least 4 digits for the hex conversion.
  16196. # map returns an iterator in Python 3.0 and a list in 2.x
  16197. minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
  16198. minverhex = 0
  16199. # xrange is not present in Python 3.0 and range returns an iterator
  16200. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  16201. sys.exit(sys.hexversion < minverhex)"
  16202. if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
  16203. ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
  16204. ac_status=$?
  16205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16206. (exit $ac_status); }; then :
  16207. break
  16208. fi
  16209. done
  16210. fi
  16211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
  16212. $as_echo "$am_cv_pathless_PYTHON" >&6; }
  16213. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  16214. if test "$am_cv_pathless_PYTHON" = none; then
  16215. PYTHON=:
  16216. else
  16217. # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
  16218. set dummy $am_cv_pathless_PYTHON; ac_word=$2
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16220. $as_echo_n "checking for $ac_word... " >&6; }
  16221. if ${ac_cv_path_PYTHON+:} false; then :
  16222. $as_echo_n "(cached) " >&6
  16223. else
  16224. case $PYTHON in
  16225. [\\/]* | ?:[\\/]*)
  16226. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  16227. ;;
  16228. *)
  16229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16230. for as_dir in $PATH
  16231. do
  16232. IFS=$as_save_IFS
  16233. test -z "$as_dir" && as_dir=.
  16234. for ac_exec_ext in '' $ac_executable_extensions; do
  16235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16236. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  16237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16238. break 2
  16239. fi
  16240. done
  16241. done
  16242. IFS=$as_save_IFS
  16243. ;;
  16244. esac
  16245. fi
  16246. PYTHON=$ac_cv_path_PYTHON
  16247. if test -n "$PYTHON"; then
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  16249. $as_echo "$PYTHON" >&6; }
  16250. else
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16252. $as_echo "no" >&6; }
  16253. fi
  16254. fi
  16255. am_display_PYTHON=$am_cv_pathless_PYTHON
  16256. fi
  16257. if test "$PYTHON" = :; then
  16258. :
  16259. else
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
  16261. $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
  16262. if ${am_cv_python_version+:} false; then :
  16263. $as_echo_n "(cached) " >&6
  16264. else
  16265. am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
  16266. fi
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
  16268. $as_echo "$am_cv_python_version" >&6; }
  16269. PYTHON_VERSION=$am_cv_python_version
  16270. PYTHON_PREFIX='${prefix}'
  16271. PYTHON_EXEC_PREFIX='${exec_prefix}'
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
  16273. $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
  16274. if ${am_cv_python_platform+:} false; then :
  16275. $as_echo_n "(cached) " >&6
  16276. else
  16277. am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
  16278. fi
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
  16280. $as_echo "$am_cv_python_platform" >&6; }
  16281. PYTHON_PLATFORM=$am_cv_python_platform
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
  16283. $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
  16284. if ${am_cv_python_pythondir+:} false; then :
  16285. $as_echo_n "(cached) " >&6
  16286. else
  16287. if test "x$prefix" = xNONE
  16288. then
  16289. am_py_prefix=$ac_default_prefix
  16290. else
  16291. am_py_prefix=$prefix
  16292. fi
  16293. am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
  16294. echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
  16295. case $am_cv_python_pythondir in
  16296. $am_py_prefix*)
  16297. am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  16298. am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  16299. ;;
  16300. *)
  16301. case $am_py_prefix in
  16302. /usr|/System*) ;;
  16303. *)
  16304. am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  16305. ;;
  16306. esac
  16307. ;;
  16308. esac
  16309. fi
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
  16311. $as_echo "$am_cv_python_pythondir" >&6; }
  16312. pythondir=$am_cv_python_pythondir
  16313. pkgpythondir=\${pythondir}/$PACKAGE
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
  16315. $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
  16316. if ${am_cv_python_pyexecdir+:} false; then :
  16317. $as_echo_n "(cached) " >&6
  16318. else
  16319. if test "x$exec_prefix" = xNONE
  16320. then
  16321. am_py_exec_prefix=$am_py_prefix
  16322. else
  16323. am_py_exec_prefix=$exec_prefix
  16324. fi
  16325. am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
  16326. echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
  16327. case $am_cv_python_pyexecdir in
  16328. $am_py_exec_prefix*)
  16329. am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  16330. am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  16331. ;;
  16332. *)
  16333. case $am_py_exec_prefix in
  16334. /usr|/System*) ;;
  16335. *)
  16336. am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  16337. ;;
  16338. esac
  16339. ;;
  16340. esac
  16341. fi
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
  16343. $as_echo "$am_cv_python_pyexecdir" >&6; }
  16344. pyexecdir=$am_cv_python_pyexecdir
  16345. pkgpyexecdir=\${pyexecdir}/$PACKAGE
  16346. fi
  16347. if test "$PYTHON" = :; then
  16348. enable_python=internal
  16349. else
  16350. enable_python=system
  16351. fi
  16352. fi
  16353. fi
  16354. if test $enable_python = system; then
  16355. if test -n "$PYTHON_CFLAGS" -a -n "$PYTHON_LIBS"; then
  16356. # Fallback: Accept these in the environment, or as set above
  16357. # for MacOSX.
  16358. :
  16359. elif test "$cross_compiling" != yes; then
  16360. python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
  16361. python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
  16362. python_libs=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'));"`
  16363. python_libdir=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR'));"`
  16364. if test -z "$PKG_CONFIG"; then
  16365. PYTHON_CFLAGS="-I$python_include"
  16366. PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
  16367. elif $PKG_CONFIG --exists python-$python_version; then
  16368. PYTHON_CFLAGS="`$PKG_CONFIG --cflags python-$python_version`"
  16369. PYTHON_LIBS="`$PKG_CONFIG --libs python-$python_version` $python_libs"
  16370. else
  16371. PYTHON_CFLAGS="-I$python_include"
  16372. PYTHON_LIBS="-L$python_libdir -lpython$python_version $python_libs"
  16373. fi
  16374. else
  16375. for python_sysroot in /usr/i686-w64-mingw32/sys-root/mingw; do
  16376. for python_version in 2.6; do
  16377. if test -f ${python_sysroot}/include/python${python_version}/Python.h; then
  16378. PYTHON_CFLAGS="-I${python_sysroot}/include/python$python_version"
  16379. PYTHON_LIBS="-L${python_sysroot}lib -lpython$python_version $python_libs"
  16380. break
  16381. fi
  16382. done
  16383. test -n "$PYTHON_CFLAGS" && break
  16384. done
  16385. fi
  16386. fi
  16387. case $enable_python in
  16388. system)
  16389. SYSTEM_PYTHON=YES
  16390. save_CPPFLAGS="$CPPFLAGS"
  16391. CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
  16392. ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
  16393. if test "x$ac_cv_header_Python_h" = xyes; then :
  16394. else
  16395. as_fn_error $? "Python headers not found. You probably want to set both the PYTHON_CFLAGS and PYTHON_LIBS environment variables." "$LINENO" 5
  16396. fi
  16397. CPPFLAGS="$save_CPPFLAGS"
  16398. ;;
  16399. internal)
  16400. SYSTEM_PYTHON=NO
  16401. BUILD_TYPE="$BUILD_TYPE PYTHON"
  16402. # Embedded Python dies without Home set
  16403. if test "$HOME" = ""; then
  16404. export HOME="";
  16405. fi
  16406. # bz2 tarball and bzip2 is not standard
  16407. if test -z "$BZIP2"; then
  16408. # Extract the first word of "bzip2", so it can be a program name with args.
  16409. set dummy bzip2; ac_word=$2
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16411. $as_echo_n "checking for $ac_word... " >&6; }
  16412. if ${ac_cv_path_BZIP2+:} false; then :
  16413. $as_echo_n "(cached) " >&6
  16414. else
  16415. case $BZIP2 in
  16416. [\\/]* | ?:[\\/]*)
  16417. ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
  16418. ;;
  16419. *)
  16420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16421. for as_dir in $PATH
  16422. do
  16423. IFS=$as_save_IFS
  16424. test -z "$as_dir" && as_dir=.
  16425. for ac_exec_ext in '' $ac_executable_extensions; do
  16426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16427. ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
  16428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16429. break 2
  16430. fi
  16431. done
  16432. done
  16433. IFS=$as_save_IFS
  16434. ;;
  16435. esac
  16436. fi
  16437. BZIP2=$ac_cv_path_BZIP2
  16438. if test -n "$BZIP2"; then
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
  16440. $as_echo "$BZIP2" >&6; }
  16441. else
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16443. $as_echo "no" >&6; }
  16444. fi
  16445. if test -z "$BZIP2"; then
  16446. as_fn_error $? "the internal Python module has a .tar.bz2. You need bzip2" "$LINENO" 5
  16447. fi
  16448. fi
  16449. ;;
  16450. no)
  16451. SYSTEM_PYTHON=NO
  16452. ;;
  16453. *)
  16454. as_fn_error $? "Internal configure script error, invalid enable_python value \"$enable_python\"" "$LINENO" 5
  16455. ;;
  16456. esac
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which db to use" >&5
  16458. $as_echo_n "checking which db to use... " >&6; }
  16459. if test "$with_system_db" = "yes"; then
  16460. SYSTEM_DB=YES
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  16462. $as_echo "external" >&6; }
  16463. db_header=
  16464. for dbver in 5.3 5.1 5.0 5 4.8 4.7 4; do
  16465. for dash in - ''; do
  16466. as_ac_Header=`$as_echo "ac_cv_header_db$dash$dbver/db.h" | $as_tr_sh`
  16467. ac_fn_c_check_header_mongrel "$LINENO" "db$dash$dbver/db.h" "$as_ac_Header" "$ac_includes_default"
  16468. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16469. db_header="db$dash$dbver/db.h"; break 2
  16470. fi
  16471. done
  16472. done
  16473. if test -z "$db_header"; then
  16474. ac_fn_c_check_header_mongrel "$LINENO" "db/db.h" "ac_cv_header_db_db_h" "$ac_includes_default"
  16475. if test "x$ac_cv_header_db_db_h" = xyes; then :
  16476. db_header='db/db.h'; dbver=''
  16477. fi
  16478. fi
  16479. if test -z "$db_header"; then
  16480. ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
  16481. if test "x$ac_cv_header_db_h" = xyes; then :
  16482. db_header='db.h'; dbver=''
  16483. fi
  16484. fi
  16485. if test -z "$db_header"; then
  16486. as_fn_error $? "db.h not found. Use the correct -I flag, or install the Berkeley db development package." "$LINENO" 5
  16487. fi
  16488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether db is at least 4.1" >&5
  16489. $as_echo_n "checking whether db is at least 4.1... " >&6; }
  16490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16491. /* end confdefs.h. */
  16492. #include <$db_header>
  16493. int
  16494. main ()
  16495. {
  16496. int array[(DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1))-1];
  16497. ;
  16498. return 0;
  16499. }
  16500. _ACEOF
  16501. if ac_fn_c_try_compile "$LINENO"; then :
  16502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16503. $as_echo "yes" >&6; }
  16504. else
  16505. as_fn_error $? "no. you need at least db 4.1" "$LINENO" 5
  16506. fi
  16507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16508. SYSTEM_DB_CFLAGS="-DSYSTEM_DB_HEADER='<$db_header>'"
  16509. DB_LIB=
  16510. if test "$_os" = "OpenBSD"; then
  16511. dbver=''
  16512. fi
  16513. for dash in - ''; do
  16514. as_ac_Lib=`$as_echo "ac_cv_lib_db$dash$dbver''_dbopen" | $as_tr_sh`
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb$dash$dbver" >&5
  16516. $as_echo_n "checking for dbopen in -ldb$dash$dbver... " >&6; }
  16517. if eval \${$as_ac_Lib+:} false; then :
  16518. $as_echo_n "(cached) " >&6
  16519. else
  16520. ac_check_lib_save_LIBS=$LIBS
  16521. LIBS="-ldb$dash$dbver $LIBS"
  16522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16523. /* end confdefs.h. */
  16524. /* Override any GCC internal prototype to avoid an error.
  16525. Use char because int might match the return type of a GCC
  16526. builtin and then its argument prototype would still apply. */
  16527. #ifdef __cplusplus
  16528. extern "C"
  16529. #endif
  16530. char dbopen ();
  16531. int
  16532. main ()
  16533. {
  16534. return dbopen ();
  16535. ;
  16536. return 0;
  16537. }
  16538. _ACEOF
  16539. if ac_fn_c_try_link "$LINENO"; then :
  16540. eval "$as_ac_Lib=yes"
  16541. else
  16542. eval "$as_ac_Lib=no"
  16543. fi
  16544. rm -f core conftest.err conftest.$ac_objext \
  16545. conftest$ac_exeext conftest.$ac_ext
  16546. LIBS=$ac_check_lib_save_LIBS
  16547. fi
  16548. eval ac_res=\$$as_ac_Lib
  16549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16550. $as_echo "$ac_res" >&6; }
  16551. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16552. DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break
  16553. fi
  16554. as_ac_Lib=`$as_echo "ac_cv_lib_db$dash$dbver''___db185_open" | $as_tr_sh`
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __db185_open in -ldb$dash$dbver" >&5
  16556. $as_echo_n "checking for __db185_open in -ldb$dash$dbver... " >&6; }
  16557. if eval \${$as_ac_Lib+:} false; then :
  16558. $as_echo_n "(cached) " >&6
  16559. else
  16560. ac_check_lib_save_LIBS=$LIBS
  16561. LIBS="-ldb$dash$dbver $LIBS"
  16562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16563. /* end confdefs.h. */
  16564. /* Override any GCC internal prototype to avoid an error.
  16565. Use char because int might match the return type of a GCC
  16566. builtin and then its argument prototype would still apply. */
  16567. #ifdef __cplusplus
  16568. extern "C"
  16569. #endif
  16570. char __db185_open ();
  16571. int
  16572. main ()
  16573. {
  16574. return __db185_open ();
  16575. ;
  16576. return 0;
  16577. }
  16578. _ACEOF
  16579. if ac_fn_c_try_link "$LINENO"; then :
  16580. eval "$as_ac_Lib=yes"
  16581. else
  16582. eval "$as_ac_Lib=no"
  16583. fi
  16584. rm -f core conftest.err conftest.$ac_objext \
  16585. conftest$ac_exeext conftest.$ac_ext
  16586. LIBS=$ac_check_lib_save_LIBS
  16587. fi
  16588. eval ac_res=\$$as_ac_Lib
  16589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16590. $as_echo "$ac_res" >&6; }
  16591. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16592. DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break
  16593. fi
  16594. done
  16595. if test -z "$DB_LIB"; then
  16596. as_fn_error $? "db library not found. Use the correct -L flag,
  16597. or install the Berkeley db development package." "$LINENO" 5
  16598. fi
  16599. SCPDEFS="$SCPDEFS -DSYSTEM_DB"
  16600. libo_MINGW_CHECK_DLL(DB, libdb)
  16601. elif test $_os != iOS -a $_os != Android; then
  16602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  16603. $as_echo "internal" >&6; }
  16604. SYSTEM_DB=NO
  16605. BUILD_TYPE="$BUILD_TYPE BERKELEYDB"
  16606. else
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  16608. $as_echo "none" >&6; }
  16609. fi
  16610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the MySQL Connector extension" >&5
  16611. $as_echo_n "checking whether to build the MySQL Connector extension... " >&6; }
  16612. if test "x$enable_ext_mysql_connector" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16614. $as_echo "yes" >&6; }
  16615. ENABLE_MYSQLC=YES
  16616. BUILD_TYPE="$BUILD_TYPE MYSQLC"
  16617. else
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16619. $as_echo "no" >&6; }
  16620. ENABLE_MYSQLC=NO
  16621. fi
  16622. if test "$ENABLE_MYSQLC" = "YES"; then
  16623. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_MYSQLC"
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL prerequisites" >&5
  16625. $as_echo_n "checking for MySQL prerequisites... " >&6; }
  16626. if test "$with_system_mysql" = "yes"; then
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external MySQL" >&5
  16628. $as_echo "external MySQL" >&6; }
  16629. SYSTEM_MYSQL=YES
  16630. # Extract the first word of "mysql_config", so it can be a program name with args.
  16631. set dummy mysql_config; ac_word=$2
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16633. $as_echo_n "checking for $ac_word... " >&6; }
  16634. if ${ac_cv_path_MYSQLCONFIG+:} false; then :
  16635. $as_echo_n "(cached) " >&6
  16636. else
  16637. case $MYSQLCONFIG in
  16638. [\\/]* | ?:[\\/]*)
  16639. ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path.
  16640. ;;
  16641. *)
  16642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16643. for as_dir in $PATH
  16644. do
  16645. IFS=$as_save_IFS
  16646. test -z "$as_dir" && as_dir=.
  16647. for ac_exec_ext in '' $ac_executable_extensions; do
  16648. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16649. ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16651. break 2
  16652. fi
  16653. done
  16654. done
  16655. IFS=$as_save_IFS
  16656. ;;
  16657. esac
  16658. fi
  16659. MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG
  16660. if test -n "$MYSQLCONFIG"; then
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5
  16662. $as_echo "$MYSQLCONFIG" >&6; }
  16663. else
  16664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16665. $as_echo "no" >&6; }
  16666. fi
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL version" >&5
  16668. $as_echo_n "checking MySQL version... " >&6; }
  16669. MYSQL_VERSION=`$MYSQLCONFIG --version`
  16670. MYSQL_MAJOR=`$MYSQLCONFIG --version | cut -d"." -f1`
  16671. if test "$MYSQL_MAJOR" -ge "5"; then
  16672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  16673. $as_echo "OK" >&6; }
  16674. else
  16675. as_fn_error $? "too old, use 5.0.x or 5.1.x" "$LINENO" 5
  16676. fi
  16677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL Client library" >&5
  16678. $as_echo_n "checking for MySQL Client library... " >&6; }
  16679. MYSQL_INC=`$MYSQLCONFIG --include`
  16680. MYSQL_LIB=`$MYSQLCONFIG --libs`
  16681. MYSQL_DEFINES=`$MYSQLCONFIG --cflags | $SED -e s,$MYSQL_INC,,`
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: includes $MYSQL_INC, libraries $MYSQL_LIB" >&5
  16683. $as_echo "includes $MYSQL_INC, libraries $MYSQL_LIB" >&6; }
  16684. else
  16685. SYSTEM_MYSQL=NO
  16686. if test -n "$with_libmysql_path"; then
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external Connector/C (libmysql)" >&5
  16688. $as_echo "external Connector/C (libmysql)" >&6; }
  16689. LIBMYSQL=libmysql.so
  16690. if test "$_os" = "Darwin"; then
  16691. LIBMYSQL=libmysql.dylib
  16692. elif test "$_os" = "WINNT"; then
  16693. LIBMYSQL=libmysql.dll
  16694. fi
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBMYSQL" >&5
  16696. $as_echo_n "checking for $LIBMYSQL... " >&6; }
  16697. if test -e "$with_libmysql_path/lib/$LIBMYSQL"; then
  16698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  16699. $as_echo "found." >&6; }
  16700. LIBMYSQL_PATH=$with_libmysql_path
  16701. else
  16702. as_fn_error $? "not found. Please specify proper path in --with-libmysql-path." "$LINENO" 5
  16703. fi
  16704. else
  16705. as_fn_error $? "not given. Please specify either --with-system-mysql or --with-libmysql-path" "$LINENO" 5
  16706. fi
  16707. fi
  16708. ac_ext=cpp
  16709. ac_cpp='$CXXCPP $CPPFLAGS'
  16710. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16711. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16712. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16713. # FIXME!
  16714. # who thought this too-generic cppconn dir was a good idea?
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL Connector/C++" >&5
  16716. $as_echo_n "checking MySQL Connector/C++... " >&6; }
  16717. if test "$with_system_mysql_cppconn" = "yes"; then
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  16719. $as_echo "external" >&6; }
  16720. SYSTEM_MYSQL_CPPCONN=YES
  16721. ac_ext=cpp
  16722. ac_cpp='$CXXCPP $CPPFLAGS'
  16723. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16724. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16725. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16726. ac_fn_cxx_check_header_mongrel "$LINENO" "mysql_driver.h" "ac_cv_header_mysql_driver_h" "$ac_includes_default"
  16727. if test "x$ac_cv_header_mysql_driver_h" = xyes; then :
  16728. else
  16729. as_fn_error $? "mysql_driver.h not found. install MySQL C++ Connectivity" "$LINENO" 5
  16730. fi
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlcppconn" >&5
  16732. $as_echo_n "checking for main in -lmysqlcppconn... " >&6; }
  16733. if ${ac_cv_lib_mysqlcppconn_main+:} false; then :
  16734. $as_echo_n "(cached) " >&6
  16735. else
  16736. ac_check_lib_save_LIBS=$LIBS
  16737. LIBS="-lmysqlcppconn $LIBS"
  16738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16739. /* end confdefs.h. */
  16740. int
  16741. main ()
  16742. {
  16743. return main ();
  16744. ;
  16745. return 0;
  16746. }
  16747. _ACEOF
  16748. if ac_fn_cxx_try_link "$LINENO"; then :
  16749. ac_cv_lib_mysqlcppconn_main=yes
  16750. else
  16751. ac_cv_lib_mysqlcppconn_main=no
  16752. fi
  16753. rm -f core conftest.err conftest.$ac_objext \
  16754. conftest$ac_exeext conftest.$ac_ext
  16755. LIBS=$ac_check_lib_save_LIBS
  16756. fi
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlcppconn_main" >&5
  16758. $as_echo "$ac_cv_lib_mysqlcppconn_main" >&6; }
  16759. if test "x$ac_cv_lib_mysqlcppconn_main" = xyes; then :
  16760. :
  16761. else
  16762. as_fn_error $? "MySQL C++ Connectivity lib not found or functional" "$LINENO" 5
  16763. fi
  16764. save_LDFLAGS=$LDFLAGS
  16765. LDFLAGS="$LDFLAGS -lmysqlcppconn"
  16766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version" >&5
  16767. $as_echo_n "checking version... " >&6; }
  16768. if test "$cross_compiling" = yes; then :
  16769. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16770. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16771. as_fn_error $? "cannot run test program while cross compiling
  16772. See \`config.log' for more details" "$LINENO" 5; }
  16773. else
  16774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16775. /* end confdefs.h. */
  16776. #include <mysql_driver.h>
  16777. int main(int argc, char **argv) {
  16778. sql::Driver *driver;
  16779. driver = get_driver_instance();
  16780. if (driver->getMajorVersion() > 1 || \
  16781. (driver->getMajorVersion() == 1 && driver->getMinorVersion() > 0) || \
  16782. (driver->getMajorVersion() == 1 && driver->getMinorVersion() == 0 && driver->getPatchVersion() >= 6))
  16783. return 0;
  16784. else
  16785. return 1;
  16786. }
  16787. _ACEOF
  16788. if ac_fn_cxx_try_run "$LINENO"; then :
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  16790. $as_echo "OK" >&6; }
  16791. else
  16792. as_fn_error $? "not suitable, we need >= 1.0.6" "$LINENO" 5
  16793. fi
  16794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16796. fi
  16797. ac_ext=cpp
  16798. ac_cpp='$CXXCPP $CPPFLAGS'
  16799. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16800. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16801. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16802. LDFLAGS=$save_LDFLAGS
  16803. else
  16804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  16805. $as_echo "internal" >&6; }
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysqlcppconn module" >&5
  16807. $as_echo_n "checking for mysqlcppconn module... " >&6; }
  16808. if test -d mysqlcppconn; then
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  16810. $as_echo "OK" >&6; }
  16811. else
  16812. as_fn_error $? "not existing. get it (did you get the -extensions tarball?)" "$LINENO" 5
  16813. fi
  16814. BUILD_TYPE="$BUILD_TYPE MYSQLCPPCONN"
  16815. SYSTEM_MYSQL_CPPCONN=NO
  16816. fi
  16817. ac_ext=c
  16818. ac_cpp='$CPP $CPPFLAGS'
  16819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16822. fi
  16823. if test "$with_java" != "no"; then
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which hsqldb to use" >&5
  16825. $as_echo_n "checking which hsqldb to use... " >&6; }
  16826. if test "$with_system_hsqldb" = "yes"; then
  16827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  16828. $as_echo "external" >&6; }
  16829. SYSTEM_HSQLDB=YES
  16830. if test -z $HSQLDB_JAR; then
  16831. HSQLDB_JAR=/usr/share/java/hsqldb.jar
  16832. fi
  16833. as_ac_File=`$as_echo "ac_cv_file_$HSQLDB_JAR" | $as_tr_sh`
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $HSQLDB_JAR" >&5
  16835. $as_echo_n "checking for $HSQLDB_JAR... " >&6; }
  16836. if eval \${$as_ac_File+:} false; then :
  16837. $as_echo_n "(cached) " >&6
  16838. else
  16839. test "$cross_compiling" = yes &&
  16840. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  16841. if test -r "$HSQLDB_JAR"; then
  16842. eval "$as_ac_File=yes"
  16843. else
  16844. eval "$as_ac_File=no"
  16845. fi
  16846. fi
  16847. eval ac_res=\$$as_ac_File
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16849. $as_echo "$ac_res" >&6; }
  16850. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  16851. else
  16852. as_fn_error $? "hsqldb.jar not found." "$LINENO" 5
  16853. fi
  16854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hsqldb is 1.8.0.x" >&5
  16855. $as_echo_n "checking whether hsqldb is 1.8.0.x... " >&6; }
  16856. export HSQLDB_JAR
  16857. if $PERL -e 'use Archive::Zip;
  16858. my $file = "$ENV{'HSQLDB_JAR'}";
  16859. my $zip = Archive::Zip->new( $file );
  16860. my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
  16861. if ( $mf =~ m/Specification-Version: 1.8.*/ ) {
  16862. push @l, split(/\n/, $mf);
  16863. foreach my $line (@l) {
  16864. if ($line =~ m/Specification-Version:/) {
  16865. ($t, $version) = split (/:/,$line);
  16866. $version =~ s/^\s//;
  16867. ($a, $b, $c, $d) = split (/\./,$version);
  16868. if ($c == "0" && $d > "8") {
  16869. exit 0;
  16870. } else {
  16871. exit 1;
  16872. }
  16873. }
  16874. }
  16875. } else {
  16876. exit 1;
  16877. }'; then
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16879. $as_echo "yes" >&6; }
  16880. else
  16881. as_fn_error $? "no, you need hsqldb >= 1.8.0.9 but < 1.8.1" "$LINENO" 5
  16882. fi
  16883. else
  16884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  16885. $as_echo "internal" >&6; }
  16886. SYSTEM_HSQLDB=NO
  16887. BUILD_TYPE="$BUILD_TYPE HSQLDB"
  16888. fi
  16889. fi
  16890. if test "x$enable_postgresql_sdbc" != "xno"; then
  16891. SCPDEFS="$SCPDEFS -DWITH_POSTGRESQL_SDBC"
  16892. # if/when anything else than PostgreSQL uses Kerberos,
  16893. # move this out of `test "x$enable_postgresql_sdbc" != "xno"'
  16894. WITH_KRB5=NO
  16895. WITH_GSSAPI=no
  16896. case "$_os" in
  16897. Darwin)
  16898. # MacOS X has system MIT Kerberos 5 since 10.4
  16899. if test "$with_krb5" != "no"; then
  16900. WITH_KRB5=YES
  16901. save_LIBS=$LIBS
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
  16903. $as_echo_n "checking for library containing com_err... " >&6; }
  16904. if ${ac_cv_search_com_err+:} false; then :
  16905. $as_echo_n "(cached) " >&6
  16906. else
  16907. ac_func_search_save_LIBS=$LIBS
  16908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16909. /* end confdefs.h. */
  16910. /* Override any GCC internal prototype to avoid an error.
  16911. Use char because int might match the return type of a GCC
  16912. builtin and then its argument prototype would still apply. */
  16913. #ifdef __cplusplus
  16914. extern "C"
  16915. #endif
  16916. char com_err ();
  16917. int
  16918. main ()
  16919. {
  16920. return com_err ();
  16921. ;
  16922. return 0;
  16923. }
  16924. _ACEOF
  16925. for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
  16926. if test -z "$ac_lib"; then
  16927. ac_res="none required"
  16928. else
  16929. ac_res=-l$ac_lib
  16930. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16931. fi
  16932. if ac_fn_c_try_link "$LINENO"; then :
  16933. ac_cv_search_com_err=$ac_res
  16934. fi
  16935. rm -f core conftest.err conftest.$ac_objext \
  16936. conftest$ac_exeext
  16937. if ${ac_cv_search_com_err+:} false; then :
  16938. break
  16939. fi
  16940. done
  16941. if ${ac_cv_search_com_err+:} false; then :
  16942. else
  16943. ac_cv_search_com_err=no
  16944. fi
  16945. rm conftest.$ac_ext
  16946. LIBS=$ac_func_search_save_LIBS
  16947. fi
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
  16949. $as_echo "$ac_cv_search_com_err" >&6; }
  16950. ac_res=$ac_cv_search_com_err
  16951. if test "$ac_res" != no; then :
  16952. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16953. else
  16954. as_fn_error $? "could not find function 'com_err' required for Kerberos 5" "$LINENO" 5
  16955. fi
  16956. LIBS=$save_LIBS
  16957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
  16958. $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
  16959. if ${ac_cv_search_krb5_sendauth+:} false; then :
  16960. $as_echo_n "(cached) " >&6
  16961. else
  16962. ac_func_search_save_LIBS=$LIBS
  16963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16964. /* end confdefs.h. */
  16965. /* Override any GCC internal prototype to avoid an error.
  16966. Use char because int might match the return type of a GCC
  16967. builtin and then its argument prototype would still apply. */
  16968. #ifdef __cplusplus
  16969. extern "C"
  16970. #endif
  16971. char krb5_sendauth ();
  16972. int
  16973. main ()
  16974. {
  16975. return krb5_sendauth ();
  16976. ;
  16977. return 0;
  16978. }
  16979. _ACEOF
  16980. for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
  16981. if test -z "$ac_lib"; then
  16982. ac_res="none required"
  16983. else
  16984. ac_res=-l$ac_lib
  16985. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16986. fi
  16987. if ac_fn_c_try_link "$LINENO"; then :
  16988. ac_cv_search_krb5_sendauth=$ac_res
  16989. fi
  16990. rm -f core conftest.err conftest.$ac_objext \
  16991. conftest$ac_exeext
  16992. if ${ac_cv_search_krb5_sendauth+:} false; then :
  16993. break
  16994. fi
  16995. done
  16996. if ${ac_cv_search_krb5_sendauth+:} false; then :
  16997. else
  16998. ac_cv_search_krb5_sendauth=no
  16999. fi
  17000. rm conftest.$ac_ext
  17001. LIBS=$ac_func_search_save_LIBS
  17002. fi
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
  17004. $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
  17005. ac_res=$ac_cv_search_krb5_sendauth
  17006. if test "$ac_res" != no; then :
  17007. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17008. else
  17009. as_fn_error $? "could not find function 'krb5_sendauth' required for Kerberos 5" "$LINENO" 5
  17010. fi
  17011. LIBS=$save_LIBS
  17012. fi
  17013. if test "$with_gssapi" != "no"; then
  17014. WITH_GSSAPI=YES
  17015. save_LIBS=$LIBS
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
  17017. $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
  17018. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17019. $as_echo_n "(cached) " >&6
  17020. else
  17021. ac_func_search_save_LIBS=$LIBS
  17022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17023. /* end confdefs.h. */
  17024. /* Override any GCC internal prototype to avoid an error.
  17025. Use char because int might match the return type of a GCC
  17026. builtin and then its argument prototype would still apply. */
  17027. #ifdef __cplusplus
  17028. extern "C"
  17029. #endif
  17030. char gss_init_sec_context ();
  17031. int
  17032. main ()
  17033. {
  17034. return gss_init_sec_context ();
  17035. ;
  17036. return 0;
  17037. }
  17038. _ACEOF
  17039. for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
  17040. if test -z "$ac_lib"; then
  17041. ac_res="none required"
  17042. else
  17043. ac_res=-l$ac_lib
  17044. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17045. fi
  17046. if ac_fn_c_try_link "$LINENO"; then :
  17047. ac_cv_search_gss_init_sec_context=$ac_res
  17048. fi
  17049. rm -f core conftest.err conftest.$ac_objext \
  17050. conftest$ac_exeext
  17051. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17052. break
  17053. fi
  17054. done
  17055. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17056. else
  17057. ac_cv_search_gss_init_sec_context=no
  17058. fi
  17059. rm conftest.$ac_ext
  17060. LIBS=$ac_func_search_save_LIBS
  17061. fi
  17062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
  17063. $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
  17064. ac_res=$ac_cv_search_gss_init_sec_context
  17065. if test "$ac_res" != no; then :
  17066. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17067. else
  17068. as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
  17069. fi
  17070. LIBS=$save_LIBS
  17071. fi
  17072. ;;
  17073. WINNT)
  17074. if test "$with_krb5" = "yes" -o "$with_gssapi" = "yes"; then
  17075. as_fn_error $? "Refusing to enable MIT Kerberos 5 or GSSAPI on Windows." "$LINENO" 5
  17076. fi
  17077. ;;
  17078. Linux|GNU|*BSD|DragonFly)
  17079. if test "$with_krb5" != "no"; then
  17080. WITH_KRB5=YES
  17081. save_LIBS=$LIBS
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
  17083. $as_echo_n "checking for library containing com_err... " >&6; }
  17084. if ${ac_cv_search_com_err+:} false; then :
  17085. $as_echo_n "(cached) " >&6
  17086. else
  17087. ac_func_search_save_LIBS=$LIBS
  17088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17089. /* end confdefs.h. */
  17090. /* Override any GCC internal prototype to avoid an error.
  17091. Use char because int might match the return type of a GCC
  17092. builtin and then its argument prototype would still apply. */
  17093. #ifdef __cplusplus
  17094. extern "C"
  17095. #endif
  17096. char com_err ();
  17097. int
  17098. main ()
  17099. {
  17100. return com_err ();
  17101. ;
  17102. return 0;
  17103. }
  17104. _ACEOF
  17105. for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
  17106. if test -z "$ac_lib"; then
  17107. ac_res="none required"
  17108. else
  17109. ac_res=-l$ac_lib
  17110. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17111. fi
  17112. if ac_fn_c_try_link "$LINENO"; then :
  17113. ac_cv_search_com_err=$ac_res
  17114. fi
  17115. rm -f core conftest.err conftest.$ac_objext \
  17116. conftest$ac_exeext
  17117. if ${ac_cv_search_com_err+:} false; then :
  17118. break
  17119. fi
  17120. done
  17121. if ${ac_cv_search_com_err+:} false; then :
  17122. else
  17123. ac_cv_search_com_err=no
  17124. fi
  17125. rm conftest.$ac_ext
  17126. LIBS=$ac_func_search_save_LIBS
  17127. fi
  17128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
  17129. $as_echo "$ac_cv_search_com_err" >&6; }
  17130. ac_res=$ac_cv_search_com_err
  17131. if test "$ac_res" != no; then :
  17132. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17133. else
  17134. as_fn_error $? "could not find function 'com_err' required for Kerberos 5" "$LINENO" 5
  17135. fi
  17136. LIBS=$save_LIBS
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
  17138. $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
  17139. if ${ac_cv_search_krb5_sendauth+:} false; then :
  17140. $as_echo_n "(cached) " >&6
  17141. else
  17142. ac_func_search_save_LIBS=$LIBS
  17143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17144. /* end confdefs.h. */
  17145. /* Override any GCC internal prototype to avoid an error.
  17146. Use char because int might match the return type of a GCC
  17147. builtin and then its argument prototype would still apply. */
  17148. #ifdef __cplusplus
  17149. extern "C"
  17150. #endif
  17151. char krb5_sendauth ();
  17152. int
  17153. main ()
  17154. {
  17155. return krb5_sendauth ();
  17156. ;
  17157. return 0;
  17158. }
  17159. _ACEOF
  17160. for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
  17161. if test -z "$ac_lib"; then
  17162. ac_res="none required"
  17163. else
  17164. ac_res=-l$ac_lib
  17165. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17166. fi
  17167. if ac_fn_c_try_link "$LINENO"; then :
  17168. ac_cv_search_krb5_sendauth=$ac_res
  17169. fi
  17170. rm -f core conftest.err conftest.$ac_objext \
  17171. conftest$ac_exeext
  17172. if ${ac_cv_search_krb5_sendauth+:} false; then :
  17173. break
  17174. fi
  17175. done
  17176. if ${ac_cv_search_krb5_sendauth+:} false; then :
  17177. else
  17178. ac_cv_search_krb5_sendauth=no
  17179. fi
  17180. rm conftest.$ac_ext
  17181. LIBS=$ac_func_search_save_LIBS
  17182. fi
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
  17184. $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
  17185. ac_res=$ac_cv_search_krb5_sendauth
  17186. if test "$ac_res" != no; then :
  17187. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17188. else
  17189. as_fn_error $? "could not find function 'krb5_sendauth' required for Kerberos 5" "$LINENO" 5
  17190. fi
  17191. LIBS=$save_LIBS
  17192. fi
  17193. if test "$with_gssapi" != "no"; then
  17194. WITH_GSSAPI=YES
  17195. save_LIBS=$LIBS
  17196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
  17197. $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
  17198. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17199. $as_echo_n "(cached) " >&6
  17200. else
  17201. ac_func_search_save_LIBS=$LIBS
  17202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17203. /* end confdefs.h. */
  17204. /* Override any GCC internal prototype to avoid an error.
  17205. Use char because int might match the return type of a GCC
  17206. builtin and then its argument prototype would still apply. */
  17207. #ifdef __cplusplus
  17208. extern "C"
  17209. #endif
  17210. char gss_init_sec_context ();
  17211. int
  17212. main ()
  17213. {
  17214. return gss_init_sec_context ();
  17215. ;
  17216. return 0;
  17217. }
  17218. _ACEOF
  17219. for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
  17220. if test -z "$ac_lib"; then
  17221. ac_res="none required"
  17222. else
  17223. ac_res=-l$ac_lib
  17224. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17225. fi
  17226. if ac_fn_c_try_link "$LINENO"; then :
  17227. ac_cv_search_gss_init_sec_context=$ac_res
  17228. fi
  17229. rm -f core conftest.err conftest.$ac_objext \
  17230. conftest$ac_exeext
  17231. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17232. break
  17233. fi
  17234. done
  17235. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17236. else
  17237. ac_cv_search_gss_init_sec_context=no
  17238. fi
  17239. rm conftest.$ac_ext
  17240. LIBS=$ac_func_search_save_LIBS
  17241. fi
  17242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
  17243. $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
  17244. ac_res=$ac_cv_search_gss_init_sec_context
  17245. if test "$ac_res" != no; then :
  17246. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17247. else
  17248. as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
  17249. fi
  17250. LIBS=$save_LIBS
  17251. fi
  17252. ;;
  17253. *)
  17254. if test "$with_krb5" = "yes"; then
  17255. WITH_KRB5=YES
  17256. save_LIBS=$LIBS
  17257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing com_err" >&5
  17258. $as_echo_n "checking for library containing com_err... " >&6; }
  17259. if ${ac_cv_search_com_err+:} false; then :
  17260. $as_echo_n "(cached) " >&6
  17261. else
  17262. ac_func_search_save_LIBS=$LIBS
  17263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17264. /* end confdefs.h. */
  17265. /* Override any GCC internal prototype to avoid an error.
  17266. Use char because int might match the return type of a GCC
  17267. builtin and then its argument prototype would still apply. */
  17268. #ifdef __cplusplus
  17269. extern "C"
  17270. #endif
  17271. char com_err ();
  17272. int
  17273. main ()
  17274. {
  17275. return com_err ();
  17276. ;
  17277. return 0;
  17278. }
  17279. _ACEOF
  17280. for ac_lib in '' com_err 'com_err -lssl -lcrypto' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
  17281. if test -z "$ac_lib"; then
  17282. ac_res="none required"
  17283. else
  17284. ac_res=-l$ac_lib
  17285. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17286. fi
  17287. if ac_fn_c_try_link "$LINENO"; then :
  17288. ac_cv_search_com_err=$ac_res
  17289. fi
  17290. rm -f core conftest.err conftest.$ac_objext \
  17291. conftest$ac_exeext
  17292. if ${ac_cv_search_com_err+:} false; then :
  17293. break
  17294. fi
  17295. done
  17296. if ${ac_cv_search_com_err+:} false; then :
  17297. else
  17298. ac_cv_search_com_err=no
  17299. fi
  17300. rm conftest.$ac_ext
  17301. LIBS=$ac_func_search_save_LIBS
  17302. fi
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_com_err" >&5
  17304. $as_echo "$ac_cv_search_com_err" >&6; }
  17305. ac_res=$ac_cv_search_com_err
  17306. if test "$ac_res" != no; then :
  17307. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17308. else
  17309. as_fn_error $? "could not find function 'com_err' required for Kerberos 5" "$LINENO" 5
  17310. fi
  17311. LIBS=$save_LIBS
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing krb5_sendauth" >&5
  17313. $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
  17314. if ${ac_cv_search_krb5_sendauth+:} false; then :
  17315. $as_echo_n "(cached) " >&6
  17316. else
  17317. ac_func_search_save_LIBS=$LIBS
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. /* Override any GCC internal prototype to avoid an error.
  17321. Use char because int might match the return type of a GCC
  17322. builtin and then its argument prototype would still apply. */
  17323. #ifdef __cplusplus
  17324. extern "C"
  17325. #endif
  17326. char krb5_sendauth ();
  17327. int
  17328. main ()
  17329. {
  17330. return krb5_sendauth ();
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
  17336. if test -z "$ac_lib"; then
  17337. ac_res="none required"
  17338. else
  17339. ac_res=-l$ac_lib
  17340. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17341. fi
  17342. if ac_fn_c_try_link "$LINENO"; then :
  17343. ac_cv_search_krb5_sendauth=$ac_res
  17344. fi
  17345. rm -f core conftest.err conftest.$ac_objext \
  17346. conftest$ac_exeext
  17347. if ${ac_cv_search_krb5_sendauth+:} false; then :
  17348. break
  17349. fi
  17350. done
  17351. if ${ac_cv_search_krb5_sendauth+:} false; then :
  17352. else
  17353. ac_cv_search_krb5_sendauth=no
  17354. fi
  17355. rm conftest.$ac_ext
  17356. LIBS=$ac_func_search_save_LIBS
  17357. fi
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_krb5_sendauth" >&5
  17359. $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
  17360. ac_res=$ac_cv_search_krb5_sendauth
  17361. if test "$ac_res" != no; then :
  17362. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17363. else
  17364. as_fn_error $? "could not find function 'krb5_sendauth' required for Kerberos 5" "$LINENO" 5
  17365. fi
  17366. LIBS=$save_LIBS
  17367. fi
  17368. if test "$with_gssapi" = "yes"; then
  17369. WITH_GSSAPI=YES
  17370. save_LIBS=$LIBS
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
  17372. $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
  17373. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17374. $as_echo_n "(cached) " >&6
  17375. else
  17376. ac_func_search_save_LIBS=$LIBS
  17377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17378. /* end confdefs.h. */
  17379. /* Override any GCC internal prototype to avoid an error.
  17380. Use char because int might match the return type of a GCC
  17381. builtin and then its argument prototype would still apply. */
  17382. #ifdef __cplusplus
  17383. extern "C"
  17384. #endif
  17385. char gss_init_sec_context ();
  17386. int
  17387. main ()
  17388. {
  17389. return gss_init_sec_context ();
  17390. ;
  17391. return 0;
  17392. }
  17393. _ACEOF
  17394. for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
  17395. if test -z "$ac_lib"; then
  17396. ac_res="none required"
  17397. else
  17398. ac_res=-l$ac_lib
  17399. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17400. fi
  17401. if ac_fn_c_try_link "$LINENO"; then :
  17402. ac_cv_search_gss_init_sec_context=$ac_res
  17403. fi
  17404. rm -f core conftest.err conftest.$ac_objext \
  17405. conftest$ac_exeext
  17406. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17407. break
  17408. fi
  17409. done
  17410. if ${ac_cv_search_gss_init_sec_context+:} false; then :
  17411. else
  17412. ac_cv_search_gss_init_sec_context=no
  17413. fi
  17414. rm conftest.$ac_ext
  17415. LIBS=$ac_func_search_save_LIBS
  17416. fi
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
  17418. $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
  17419. ac_res=$ac_cv_search_gss_init_sec_context
  17420. if test "$ac_res" != no; then :
  17421. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17422. else
  17423. as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
  17424. fi
  17425. LIBS=$save_LIBS
  17426. fi
  17427. esac
  17428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PostgreSQL C interface" >&5
  17429. $as_echo_n "checking PostgreSQL C interface... " >&6; }
  17430. if test "$with_system_postgresql" = "yes"; then
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external PostgreSQL" >&5
  17432. $as_echo "external PostgreSQL" >&6; }
  17433. SYSTEM_POSTGRESQL=YES
  17434. if test "$_os" = Darwin; then
  17435. supp_path=''
  17436. for d in /Library/PostgreSQL/9.*/bin /sw/opt/postgresql/9.*/bin /opt/local/lib/postgresql9*/bin; do
  17437. pg_supp_path="$P_SEP$d$pg_supp_path"
  17438. done
  17439. fi
  17440. # Extract the first word of "pg_config", so it can be a program name with args.
  17441. set dummy pg_config; ac_word=$2
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17443. $as_echo_n "checking for $ac_word... " >&6; }
  17444. if ${ac_cv_path_PGCONFIG+:} false; then :
  17445. $as_echo_n "(cached) " >&6
  17446. else
  17447. case $PGCONFIG in
  17448. [\\/]* | ?:[\\/]*)
  17449. ac_cv_path_PGCONFIG="$PGCONFIG" # Let the user override the test with a path.
  17450. ;;
  17451. *)
  17452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17453. for as_dir in $PATH$pg_supp_path
  17454. do
  17455. IFS=$as_save_IFS
  17456. test -z "$as_dir" && as_dir=.
  17457. for ac_exec_ext in '' $ac_executable_extensions; do
  17458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17459. ac_cv_path_PGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17461. break 2
  17462. fi
  17463. done
  17464. done
  17465. IFS=$as_save_IFS
  17466. ;;
  17467. esac
  17468. fi
  17469. PGCONFIG=$ac_cv_path_PGCONFIG
  17470. if test -n "$PGCONFIG"; then
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5
  17472. $as_echo "$PGCONFIG" >&6; }
  17473. else
  17474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17475. $as_echo "no" >&6; }
  17476. fi
  17477. if test -z "$PGCONFIG"; then
  17478. as_fn_error $? "pg_config needed; set PGCONFIG if not in PATH" "$LINENO" 5
  17479. fi
  17480. POSTGRESQL_INC=-I$(${PGCONFIG} --includedir)
  17481. POSTGRESQL_LIB="-L$(${PGCONFIG} --libdir)"
  17482. else
  17483. if test -n "$with_libpq_path"; then
  17484. SYSTEM_POSTGRESQL=YES
  17485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external libpq" >&5
  17486. $as_echo "external libpq" >&6; }
  17487. POSTGRESQL_LIB="-L${with_libpq_path}/lib/"
  17488. POSTGRESQL_INC=-I"${with_libpq_path}/include/"
  17489. else
  17490. SYSTEM_POSTGRESQL=NO
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  17492. $as_echo "internal" >&6; }
  17493. POSTGRESQL_LIB=""
  17494. POSTGRESQL_INC="%OVERRIDE_ME%"
  17495. BUILD_TYPE="$BUILD_TYPE POSTGRESQL"
  17496. fi
  17497. fi
  17498. if test "${SYSTEM_POSTGRESQL}" = "YES"; then
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system PostgreSQL prerequisites" >&5
  17500. $as_echo "$as_me: checking system PostgreSQL prerequisites" >&6;}
  17501. save_CFLAGS=$CFLAGS
  17502. save_CPPFLAGS=$CPPFLAGS
  17503. save_LIBS=$LIBS
  17504. CPPFLAGS="${CPPFLAGS} ${POSTGRESQL_INC}"
  17505. LIBS="${LIBS} ${POSTGRESQL_LIB}"
  17506. ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
  17507. if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
  17508. else
  17509. as_fn_error $? "libpq-fe.h is needed" "$LINENO" 5
  17510. fi
  17511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdbParams in -lpq" >&5
  17512. $as_echo_n "checking for PQconnectdbParams in -lpq... " >&6; }
  17513. if ${ac_cv_lib_pq_PQconnectdbParams+:} false; then :
  17514. $as_echo_n "(cached) " >&6
  17515. else
  17516. ac_check_lib_save_LIBS=$LIBS
  17517. LIBS="-lpq $LIBS"
  17518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17519. /* end confdefs.h. */
  17520. /* Override any GCC internal prototype to avoid an error.
  17521. Use char because int might match the return type of a GCC
  17522. builtin and then its argument prototype would still apply. */
  17523. #ifdef __cplusplus
  17524. extern "C"
  17525. #endif
  17526. char PQconnectdbParams ();
  17527. int
  17528. main ()
  17529. {
  17530. return PQconnectdbParams ();
  17531. ;
  17532. return 0;
  17533. }
  17534. _ACEOF
  17535. if ac_fn_c_try_link "$LINENO"; then :
  17536. ac_cv_lib_pq_PQconnectdbParams=yes
  17537. else
  17538. ac_cv_lib_pq_PQconnectdbParams=no
  17539. fi
  17540. rm -f core conftest.err conftest.$ac_objext \
  17541. conftest$ac_exeext conftest.$ac_ext
  17542. LIBS=$ac_check_lib_save_LIBS
  17543. fi
  17544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdbParams" >&5
  17545. $as_echo "$ac_cv_lib_pq_PQconnectdbParams" >&6; }
  17546. if test "x$ac_cv_lib_pq_PQconnectdbParams" = xyes; then :
  17547. :
  17548. else
  17549. as_fn_error $? "libpq not found or too old. Need >= 9.0" "$LINENO" 5
  17550. fi
  17551. CFLAGS=$save_CFLAGS
  17552. CPPFLAGS=$save_CPPFLAGS
  17553. LIBS=$save_LIBS
  17554. fi
  17555. BUILD_POSTGRESQL_SDBC=YES
  17556. fi
  17557. if test "$with_java" != "no"; then
  17558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which saxon to use" >&5
  17559. $as_echo_n "checking which saxon to use... " >&6; }
  17560. if test "$with_system_saxon" = "yes"; then
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  17562. $as_echo "external" >&6; }
  17563. SYSTEM_SAXON=YES
  17564. if test -z $SAXON_JAR; then
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/saxon9.jar" >&5
  17566. $as_echo_n "checking for /usr/share/java/saxon9.jar... " >&6; }
  17567. if ${ac_cv_file__usr_share_java_saxon9_jar+:} false; then :
  17568. $as_echo_n "(cached) " >&6
  17569. else
  17570. test "$cross_compiling" = yes &&
  17571. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  17572. if test -r "/usr/share/java/saxon9.jar"; then
  17573. ac_cv_file__usr_share_java_saxon9_jar=yes
  17574. else
  17575. ac_cv_file__usr_share_java_saxon9_jar=no
  17576. fi
  17577. fi
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
  17579. $as_echo "$ac_cv_file__usr_share_java_saxon9_jar" >&6; }
  17580. if test "x$ac_cv_file__usr_share_java_saxon9_jar" = xyes; then :
  17581. SAXON_JAR=/usr/share/java/saxon9.jar
  17582. else
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/saxon.jar" >&5
  17584. $as_echo_n "checking for /usr/share/java/saxon.jar... " >&6; }
  17585. if ${ac_cv_file__usr_share_java_saxon_jar+:} false; then :
  17586. $as_echo_n "(cached) " >&6
  17587. else
  17588. test "$cross_compiling" = yes &&
  17589. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  17590. if test -r "/usr/share/java/saxon.jar"; then
  17591. ac_cv_file__usr_share_java_saxon_jar=yes
  17592. else
  17593. ac_cv_file__usr_share_java_saxon_jar=no
  17594. fi
  17595. fi
  17596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_saxon_jar" >&5
  17597. $as_echo "$ac_cv_file__usr_share_java_saxon_jar" >&6; }
  17598. if test "x$ac_cv_file__usr_share_java_saxon_jar" = xyes; then :
  17599. SAXON_JAR=/usr/share/java/saxon.jar
  17600. else
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/saxon9.jar" >&5
  17602. $as_echo_n "checking for /usr/share/java/saxon9.jar... " >&6; }
  17603. if ${ac_cv_file__usr_share_java_saxon9_jar+:} false; then :
  17604. $as_echo_n "(cached) " >&6
  17605. else
  17606. test "$cross_compiling" = yes &&
  17607. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  17608. if test -r "/usr/share/java/saxon9.jar"; then
  17609. ac_cv_file__usr_share_java_saxon9_jar=yes
  17610. else
  17611. ac_cv_file__usr_share_java_saxon9_jar=no
  17612. fi
  17613. fi
  17614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
  17615. $as_echo "$ac_cv_file__usr_share_java_saxon9_jar" >&6; }
  17616. if test "x$ac_cv_file__usr_share_java_saxon9_jar" = xyes; then :
  17617. SAXON_JAR=/usr/share/java/saxon9.jar
  17618. else
  17619. as_fn_error $? "saxon.jar replacement not found" "$LINENO" 5
  17620. fi
  17621. fi
  17622. fi
  17623. else
  17624. as_ac_File=`$as_echo "ac_cv_file_$SAXON_JAR" | $as_tr_sh`
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SAXON_JAR" >&5
  17626. $as_echo_n "checking for $SAXON_JAR... " >&6; }
  17627. if eval \${$as_ac_File+:} false; then :
  17628. $as_echo_n "(cached) " >&6
  17629. else
  17630. test "$cross_compiling" = yes &&
  17631. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  17632. if test -r "$SAXON_JAR"; then
  17633. eval "$as_ac_File=yes"
  17634. else
  17635. eval "$as_ac_File=no"
  17636. fi
  17637. fi
  17638. eval ac_res=\$$as_ac_File
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17640. $as_echo "$ac_res" >&6; }
  17641. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  17642. else
  17643. as_fn_error $? "saxon.jar replacement not found." "$LINENO" 5
  17644. fi
  17645. fi
  17646. if test -n "$SERIALIZER_JAR"; then
  17647. as_ac_File=`$as_echo "ac_cv_file_$SERIALIZER_JAR" | $as_tr_sh`
  17648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SERIALIZER_JAR" >&5
  17649. $as_echo_n "checking for $SERIALIZER_JAR... " >&6; }
  17650. if eval \${$as_ac_File+:} false; then :
  17651. $as_echo_n "(cached) " >&6
  17652. else
  17653. test "$cross_compiling" = yes &&
  17654. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  17655. if test -r "$SERIALIZER_JAR"; then
  17656. eval "$as_ac_File=yes"
  17657. else
  17658. eval "$as_ac_File=no"
  17659. fi
  17660. fi
  17661. eval ac_res=\$$as_ac_File
  17662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17663. $as_echo "$ac_res" >&6; }
  17664. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  17665. else
  17666. as_fn_error $? "serializer.jar not found." "$LINENO" 5
  17667. fi
  17668. fi
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if saxon works" >&5
  17670. $as_echo_n "checking if saxon works... " >&6; }
  17671. cat > saxontest.java <<_ACEOF
  17672. import javax.xml.transform.TransformerFactory;
  17673. import javax.xml.transform.Transformer;
  17674. import javax.xml.transform.stream.StreamSource;
  17675. import java.io.*;
  17676. import net.sf.saxon.FeatureKeys;
  17677. class saxontest {
  17678. public static void main(String[] args) {
  17679. System.setProperty("javax.xml.transform.TransformerFactory",
  17680. "net.sf.saxon.TransformerFactoryImpl");
  17681. try {
  17682. TransformerFactory tfactory = TransformerFactory.newInstance();
  17683. // some external saxons (Debian, Ubuntu, ...) have this disabled
  17684. // per default
  17685. tfactory.setAttribute(FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS, new Boolean(true));
  17686. System.out.println("TransformerFactory is" +
  17687. tfactory.getClass().getName());
  17688. Transformer transformer = tfactory.newTransformer(
  17689. new StreamSource(new File(args[0])));
  17690. } catch(Exception e){
  17691. e.printStackTrace(System.err);
  17692. System.exit(-1);
  17693. }
  17694. System.exit(0);
  17695. }
  17696. }
  17697. _ACEOF
  17698. cat > saxontest.xsl<<_ACEOF
  17699. <?xml version="1.0" encoding="UTF-8"?>
  17700. <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  17701. <xsl:template match="/">
  17702. <xsl:value-of select="math:sqrt(1)" xmlns:math="java:java.lang.Math"/>
  17703. </xsl:template>
  17704. </xsl:stylesheet>
  17705. _ACEOF
  17706. javac_cmd="$JAVACOMPILER -cp $SAXON_JAR saxontest.java 1>&2"
  17707. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$javac_cmd\""; } >&5
  17708. (eval $javac_cmd) 2>&5
  17709. ac_status=$?
  17710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17711. test $ac_status = 0; }
  17712. if test $? = 0 -a -f ./saxontest.class; then
  17713. java_cmd="$JAVAINTERPRETER -cp $SAXON_JAR:. saxontest saxontest.xsl 1>&2"
  17714. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$java_cmd\""; } >&5
  17715. (eval $java_cmd) 2>&5
  17716. ac_status=$?
  17717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17718. test $ac_status = 0; }
  17719. if test $? = 0; then
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17721. $as_echo "yes" >&6; }
  17722. else
  17723. cat saxontest.java >&5
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17725. $as_echo "no" >&6; }
  17726. as_fn_error $? "Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb" "$LINENO" 5
  17727. fi
  17728. else
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17730. $as_echo "no" >&6; }
  17731. cat saxontest.java >&5
  17732. as_fn_error $? "saxontest could not be compiled, non-functional saxon jar" "$LINENO" 5
  17733. fi
  17734. else
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  17736. $as_echo "internal" >&6; }
  17737. SYSTEM_SAXON=NO
  17738. NEED_SAXON=TRUE
  17739. fi
  17740. fi
  17741. if test -n "$NEED_SAXON"; then
  17742. BUILD_TYPE="$BUILD_TYPE SAXON"
  17743. fi
  17744. # ===================================================================
  17745. # Check whether to build stax
  17746. # ===================================================================
  17747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building the stax is required" >&5
  17748. $as_echo_n "checking whether building the stax is required... " >&6; }
  17749. BUILD_STAX=NO
  17750. if test -z "$SOLAR_JAVA"; then
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (java disabled)" >&5
  17752. $as_echo "no (java disabled)" >&6; }
  17753. elif test "$SYSTEM_SAXON" = "YES"; then
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (already provided by system saxon)" >&5
  17755. $as_echo "no (already provided by system saxon)" >&6; }
  17756. elif test -f "./stax/download/jsr173_1.0_api.jar"; then
  17757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (will use the prebuilt stax/download/jsr173_1.0_api.jar)" >&5
  17758. $as_echo "no (will use the prebuilt stax/download/jsr173_1.0_api.jar)" >&6; }
  17759. else
  17760. BUILD_STAX=YES
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (no system saxon and no prebuilt copy)" >&5
  17762. $as_echo "yes (no system saxon and no prebuilt copy)" >&6; }
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libcurl to use" >&5
  17765. $as_echo_n "checking which libcurl to use... " >&6; }
  17766. if test "$with_system_curl" = "auto"; then
  17767. case "$_os" in
  17768. Darwin)
  17769. with_system_curl=yes
  17770. ;;
  17771. *)
  17772. with_system_curl="$with_system_libs"
  17773. ;;
  17774. esac
  17775. fi
  17776. if test "$with_system_curl" = "yes"; then
  17777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  17778. $as_echo "external" >&6; }
  17779. SYSTEM_CURL=YES
  17780. curl_version=""
  17781. if test "$cross_compiling" = "yes"; then
  17782. pkg_failed=no
  17783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
  17784. $as_echo_n "checking for CURL... " >&6; }
  17785. if test -n "$CURL_CFLAGS"; then
  17786. pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
  17787. elif test -n "$PKG_CONFIG"; then
  17788. if test -n "$PKG_CONFIG" && \
  17789. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
  17790. ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  17791. ac_status=$?
  17792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17793. test $ac_status = 0; }; then
  17794. pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
  17795. else
  17796. pkg_failed=yes
  17797. fi
  17798. else
  17799. pkg_failed=untried
  17800. fi
  17801. if test -n "$CURL_LIBS"; then
  17802. pkg_cv_CURL_LIBS="$CURL_LIBS"
  17803. elif test -n "$PKG_CONFIG"; then
  17804. if test -n "$PKG_CONFIG" && \
  17805. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
  17806. ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  17807. ac_status=$?
  17808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17809. test $ac_status = 0; }; then
  17810. pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
  17811. else
  17812. pkg_failed=yes
  17813. fi
  17814. else
  17815. pkg_failed=untried
  17816. fi
  17817. if test $pkg_failed = yes; then
  17818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17819. $as_echo "no" >&6; }
  17820. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17821. _pkg_short_errors_supported=yes
  17822. else
  17823. _pkg_short_errors_supported=no
  17824. fi
  17825. if test $_pkg_short_errors_supported = yes; then
  17826. CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
  17827. else
  17828. CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
  17829. fi
  17830. # Put the nasty error message in config.log where it belongs
  17831. echo "$CURL_PKG_ERRORS" >&5
  17832. :
  17833. elif test $pkg_failed = untried; then
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17835. $as_echo "no" >&6; }
  17836. :
  17837. else
  17838. CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
  17839. CURL_LIBS=$pkg_cv_CURL_LIBS
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17841. $as_echo "yes" >&6; }
  17842. fi
  17843. if test -n "$CURL_PKG_ERRORS"; then
  17844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17845. $as_echo "no" >&6; }
  17846. else
  17847. curl_version=`$PKG_CONFIG --modversion libcurl`
  17848. fi
  17849. fi
  17850. if test -z "$curl_version"; then
  17851. # Extract the first word of "curl-config", so it can be a program name with args.
  17852. set dummy curl-config; ac_word=$2
  17853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17854. $as_echo_n "checking for $ac_word... " >&6; }
  17855. if ${ac_cv_path_CURLCONFIG+:} false; then :
  17856. $as_echo_n "(cached) " >&6
  17857. else
  17858. case $CURLCONFIG in
  17859. [\\/]* | ?:[\\/]*)
  17860. ac_cv_path_CURLCONFIG="$CURLCONFIG" # Let the user override the test with a path.
  17861. ;;
  17862. *)
  17863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17864. for as_dir in $PATH
  17865. do
  17866. IFS=$as_save_IFS
  17867. test -z "$as_dir" && as_dir=.
  17868. for ac_exec_ext in '' $ac_executable_extensions; do
  17869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17870. ac_cv_path_CURLCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17872. break 2
  17873. fi
  17874. done
  17875. done
  17876. IFS=$as_save_IFS
  17877. ;;
  17878. esac
  17879. fi
  17880. CURLCONFIG=$ac_cv_path_CURLCONFIG
  17881. if test -n "$CURLCONFIG"; then
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLCONFIG" >&5
  17883. $as_echo "$CURLCONFIG" >&6; }
  17884. else
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17886. $as_echo "no" >&6; }
  17887. fi
  17888. if test -z "$CURLCONFIG"; then
  17889. as_fn_error $? "install the libcurl development package" "$LINENO" 5
  17890. fi
  17891. CURL_LIBS=`$CURLCONFIG --libs`
  17892. CURL_CFLAGS=`$CURLCONFIG --cflags`
  17893. curl_version=`$CURLCONFIG --version | $SED -e 's/^libcurl //'`
  17894. fi
  17895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is >= 7.13.1" >&5
  17896. $as_echo_n "checking whether libcurl is >= 7.13.1... " >&6; }
  17897. case $curl_version in
  17898. 7.13.1|7.1[4-9].*|7.[2-9]?.*|7.???.*|[8-9].*|[1-9][0-9].*)
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, you have $curl_version" >&5
  17900. $as_echo "yes, you have $curl_version" >&6; }
  17901. ;;
  17902. *)
  17903. as_fn_error $? "no, you have $curl_version" "$LINENO" 5
  17904. ;;
  17905. esac
  17906. libo_MINGW_CHECK_DLL(CURL, libcurl)
  17907. libo_MINGW_TRY_DLL(INTL, libintl)
  17908. libo_MINGW_TRY_DLL(IDN, libidn)
  17909. libo_MINGW_TRY_DLL(NSPR4, libnspr4)
  17910. libo_MINGW_TRY_DLL(NSSUTIL3, nssutil3)
  17911. libo_MINGW_TRY_DLL(PLC4, libplc4)
  17912. libo_MINGW_TRY_DLL(PLDS4, libplds4)
  17913. libo_MINGW_TRY_DLL(NSS3, nss3)
  17914. libo_MINGW_TRY_DLL(SSL3, ssl3)
  17915. libo_MINGW_TRY_DLL(GPG_ERROR, libgpg-error)
  17916. libo_MINGW_TRY_DLL(GCRYPT, libgcrypt)
  17917. libo_MINGW_TRY_DLL(SSH2, libssh2)
  17918. else
  17919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  17920. $as_echo "internal" >&6; }
  17921. SYSTEM_CURL=NO
  17922. BUILD_TYPE="$BUILD_TYPE CURL"
  17923. fi
  17924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which boost to use" >&5
  17925. $as_echo_n "checking which boost to use... " >&6; }
  17926. if test "$with_system_boost" = "yes"; then
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  17928. $as_echo "external" >&6; }
  17929. SYSTEM_BOOST=YES
  17930. ac_ext=cpp
  17931. ac_cpp='$CXXCPP $CPPFLAGS'
  17932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17935. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
  17936. if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then :
  17937. else
  17938. as_fn_error $? "boost/shared_ptr.hpp not found. install boost" "$LINENO" 5
  17939. fi
  17940. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/spirit/include/classic_core.hpp" "ac_cv_header_boost_spirit_include_classic_core_hpp" "$ac_includes_default"
  17941. if test "x$ac_cv_header_boost_spirit_include_classic_core_hpp" = xyes; then :
  17942. else
  17943. as_fn_error $? "boost/spirit/include/classic_core.hpp not found. install boost >= 1.36" "$LINENO" 5
  17944. fi
  17945. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/function.hpp" "ac_cv_header_boost_function_hpp" "$ac_includes_default"
  17946. if test "x$ac_cv_header_boost_function_hpp" = xyes; then :
  17947. else
  17948. as_fn_error $? "boost/function.hpp not found. install boost" "$LINENO" 5
  17949. fi
  17950. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/unordered_map.hpp" "ac_cv_header_boost_unordered_map_hpp" "$ac_includes_default"
  17951. if test "x$ac_cv_header_boost_unordered_map_hpp" = xyes; then :
  17952. HAVE_BOOST_UNORDERED_MAP=TRUE
  17953. else
  17954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: boost/unordered_map.hpp not found" >&5
  17955. $as_echo "$as_me: WARNING: boost/unordered_map.hpp not found" >&2;}
  17956. fi
  17957. save_CXXFLAGS=$CXXFLAGS
  17958. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether boost/function.hpp compiles with -fno-exceptions" >&5
  17960. $as_echo_n "checking whether boost/function.hpp compiles with -fno-exceptions... " >&6; }
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. #include <boost/function.hpp>
  17964. int
  17965. main ()
  17966. {
  17967. ;
  17968. return 0;
  17969. }
  17970. _ACEOF
  17971. if ac_fn_cxx_try_compile "$LINENO"; then :
  17972. ac_cv_cxx_boost_no_exceptions_broken=no
  17973. else
  17974. ac_cv_cxx_boost_no_exceptions_broken=yes
  17975. fi
  17976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17977. if test "$ac_cv_cxx_boost_no_exceptions_broken" = "yes"; then
  17978. as_fn_error $? "no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131" "$LINENO" 5
  17979. else
  17980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17981. $as_echo "yes" >&6; }
  17982. fi
  17983. CXXFLAGS=$save_CXXFLAGS
  17984. ac_ext=c
  17985. ac_cpp='$CPP $CPPFLAGS'
  17986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17989. AX_BOOST_BASE
  17990. AX_BOOST_DATE_TIME
  17991. mingw_boost_date_time_dll=`echo $BOOST_DATE_TIME_LIB | sed -e 's/^-l//' -e 's/\.dll$//'`
  17992. libo_MINGW_TRY_DLL(BOOST_DATE_TIME, $mingw_boost_date_time_dll)
  17993. if test -z "$MINGW_BOOST_DATE_TIME_DLL"; then
  17994. # if not found, try again with 'lib' prefix
  17995. libo_MINGW_CHECK_DLL(BOOST_DATE_TIME,
  17996. lib$mingw_boost_date_time_dll)
  17997. fi
  17998. else
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  18000. $as_echo "internal" >&6; }
  18001. BUILD_TYPE="$BUILD_TYPE BOOST"
  18002. SYSTEM_BOOST=NO
  18003. HAVE_BOOST_UNORDERED_MAP=TRUE
  18004. fi
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mdds to use" >&5
  18006. $as_echo_n "checking which mdds to use... " >&6; }
  18007. if test "$with_system_mdds" = "yes"; then
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  18009. $as_echo "external" >&6; }
  18010. SYSTEM_MDDS=YES
  18011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which hash container mdds shall use" >&5
  18012. $as_echo_n "checking which hash container mdds shall use... " >&6; }
  18013. if test "x$HAVE_CXX0X" = "xTRUE"; then
  18014. MDDS_CPPFLAGS="-std=gnu++0x"
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: std::unordered_map" >&5
  18016. $as_echo "std::unordered_map" >&6; }
  18017. else
  18018. MDDS_CPPFLAGS="-DMDDS_HASH_CONTAINER_BOOST"
  18019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: boost::unordered_map" >&5
  18020. $as_echo "boost::unordered_map" >&6; }
  18021. fi
  18022. ac_ext=cpp
  18023. ac_cpp='$CXXCPP $CPPFLAGS'
  18024. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18025. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18026. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18027. save_CPPFLAGS="$CPPFLAGS"
  18028. CPPFLAGS="$CPPFLAGS $MDDS_CPPFLAGS"
  18029. ac_fn_cxx_check_header_mongrel "$LINENO" "mdds/flat_segment_tree.hpp" "ac_cv_header_mdds_flat_segment_tree_hpp" "$ac_includes_default"
  18030. if test "x$ac_cv_header_mdds_flat_segment_tree_hpp" = xyes; then :
  18031. else
  18032. as_fn_error $? "mdds/flat_segment_tree.hpp not found. install mdds" "$LINENO" 5
  18033. fi
  18034. ac_fn_cxx_check_header_mongrel "$LINENO" "mdds/mixed_type_matrix.hpp" "ac_cv_header_mdds_mixed_type_matrix_hpp" "$ac_includes_default"
  18035. if test "x$ac_cv_header_mdds_mixed_type_matrix_hpp" = xyes; then :
  18036. else
  18037. as_fn_error $? "mdds/mixed_type_matrix.hpp not found. install mdds >= 0.4.0" "$LINENO" 5
  18038. fi
  18039. CPPFLAGS="$save_CPPFLAGS"
  18040. save_CXXFLAGS="$CXXFLAGS"
  18041. CXXFLAGS="$CXXFLAGS $MDDS_CPPFLAGS"
  18042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct signature of ::mdds::flat_segment_tree" >&5
  18043. $as_echo_n "checking for correct signature of ::mdds::flat_segment_tree... " >&6; }
  18044. if test "$cross_compiling" = yes; then :
  18045. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18047. as_fn_error $? "cannot run test program while cross compiling
  18048. See \`config.log' for more details" "$LINENO" 5; }
  18049. else
  18050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18051. /* end confdefs.h. */
  18052. #include <mdds/flat_segment_tree.hpp>
  18053. int main(int argc, char **argv) {
  18054. ::mdds::flat_segment_tree<long, short> db(0, 100, 0);
  18055. short val;
  18056. if (!db.search(5, val).second)
  18057. return 1;
  18058. return 0;
  18059. }
  18060. _ACEOF
  18061. if ac_fn_cxx_try_run "$LINENO"; then :
  18062. ac_cv_cxx_mdds_flat_segment_tree_correct=yes
  18063. else
  18064. ac_cv_cxx_mdds_flat_segment_tree_correct=no
  18065. fi
  18066. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18067. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18068. fi
  18069. if test "$ac_cv_cxx_mdds_flat_segment_tree_correct" = "yes"; then
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18071. $as_echo "yes" >&6; }
  18072. else
  18073. as_fn_error $? "no, install mdds >= 0.5.0" "$LINENO" 5
  18074. fi
  18075. CXXFLAGS=$save_CXXFLAGS
  18076. ac_ext=c
  18077. ac_cpp='$CPP $CPPFLAGS'
  18078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18081. else
  18082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  18083. $as_echo "internal" >&6; }
  18084. BUILD_TYPE="$BUILD_TYPE MDDS"
  18085. SYSTEM_MDDS=NO
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which hash container mdds shall use" >&5
  18087. $as_echo_n "checking which hash container mdds shall use... " >&6; }
  18088. MDDS_CPPFLAGS="-DMDDS_HASH_CONTAINER_BOOST"
  18089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: boost::unordered_map" >&5
  18090. $as_echo "boost::unordered_map" >&6; }
  18091. fi
  18092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which vigra to use" >&5
  18093. $as_echo_n "checking which vigra to use... " >&6; }
  18094. if test "$with_system_vigra" = "yes"; then
  18095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  18096. $as_echo "external" >&6; }
  18097. SYSTEM_VIGRA=YES
  18098. ac_ext=cpp
  18099. ac_cpp='$CXXCPP $CPPFLAGS'
  18100. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18101. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18102. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18103. ac_fn_cxx_check_header_mongrel "$LINENO" "vigra/copyimage.hxx" "ac_cv_header_vigra_copyimage_hxx" "$ac_includes_default"
  18104. if test "x$ac_cv_header_vigra_copyimage_hxx" = xyes; then :
  18105. else
  18106. as_fn_error $? "vigra/copyimage.hxx not found. install vigra" "$LINENO" 5
  18107. fi
  18108. ac_ext=c
  18109. ac_cpp='$CPP $CPPFLAGS'
  18110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18113. else
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  18115. $as_echo "internal" >&6; }
  18116. BUILD_TYPE="$BUILD_TYPE VIGRA"
  18117. SYSTEM_VIGRA=NO
  18118. fi
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which odbc headers to use" >&5
  18120. $as_echo_n "checking which odbc headers to use... " >&6; }
  18121. if test "$with_system_odbc" = "yes"; then
  18122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  18123. $as_echo "external" >&6; }
  18124. SYSTEM_ODBC_HEADERS=YES
  18125. ac_fn_c_check_header_mongrel "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "$ac_includes_default"
  18126. if test "x$ac_cv_header_sqlext_h" = xyes; then :
  18127. else
  18128. as_fn_error $? "odbc not found. install odbc" "$LINENO" 5
  18129. fi
  18130. elif test "$enable_database_connectivity" != yes; then
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  18132. $as_echo "none" >&6; }
  18133. else
  18134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  18135. $as_echo "internal" >&6; }
  18136. SYSTEM_ODBC_HEADERS=NO
  18137. fi
  18138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build of Mozilla" >&5
  18139. $as_echo_n "checking whether to enable build of Mozilla... " >&6; }
  18140. if test "$enable_mozilla" = "no"; then
  18141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18142. $as_echo "no" >&6; }
  18143. WITH_MOZILLA=NO
  18144. else
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18146. $as_echo "yes" >&6; }
  18147. WITH_MOZILLA=YES
  18148. fi
  18149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Mozilla addressbook connectivity" >&5
  18150. $as_echo_n "checking whether to build Mozilla addressbook connectivity... " >&6; }
  18151. if test "$enable_mozilla" = "no"; then
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18153. $as_echo "no" >&6; }
  18154. elif test "$with_system_mozilla" = "yes"; then
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not possible with system-mozilla" >&5
  18156. $as_echo "no, not possible with system-mozilla" >&6; }
  18157. else
  18158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18159. $as_echo "yes" >&6; }
  18160. fi
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XML Security support" >&5
  18162. $as_echo_n "checking whether to build XML Security support... " >&6; }
  18163. if test "$enable_xmlsec" = "no"; then
  18164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18165. $as_echo "no" >&6; }
  18166. ENABLE_XMLSEC=
  18167. else
  18168. ENABLE_XMLSEC="YES"
  18169. BUILD_TYPE="$BUILD_TYPE LIBXMLSEC"
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18171. $as_echo "yes" >&6; }
  18172. fi
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LDAP configuration backend" >&5
  18174. $as_echo_n "checking whether to build LDAP configuration backend... " >&6; }
  18175. if test "$enable_ldap" != "no"; then
  18176. WITH_OPENLDAP=NO
  18177. WITH_LDAP=NO
  18178. if test "$with_openldap" = "yes"; then
  18179. WITH_LDAP=YES
  18180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenLDAP" >&5
  18181. $as_echo "OpenLDAP" >&6; }
  18182. WITH_OPENLDAP=YES
  18183. for ac_header in ldap.h
  18184. do :
  18185. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  18186. if test "x$ac_cv_header_ldap_h" = xyes; then :
  18187. cat >>confdefs.h <<_ACEOF
  18188. #define HAVE_LDAP_H 1
  18189. _ACEOF
  18190. else
  18191. as_fn_error $? "ldap.h not found. install openldap libs" "$LINENO" 5
  18192. fi
  18193. done
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind_s in -lldap" >&5
  18195. $as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; }
  18196. if ${ac_cv_lib_ldap_ldap_simple_bind_s+:} false; then :
  18197. $as_echo_n "(cached) " >&6
  18198. else
  18199. ac_check_lib_save_LIBS=$LIBS
  18200. LIBS="-lldap $LIBS"
  18201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18202. /* end confdefs.h. */
  18203. /* Override any GCC internal prototype to avoid an error.
  18204. Use char because int might match the return type of a GCC
  18205. builtin and then its argument prototype would still apply. */
  18206. #ifdef __cplusplus
  18207. extern "C"
  18208. #endif
  18209. char ldap_simple_bind_s ();
  18210. int
  18211. main ()
  18212. {
  18213. return ldap_simple_bind_s ();
  18214. ;
  18215. return 0;
  18216. }
  18217. _ACEOF
  18218. if ac_fn_c_try_link "$LINENO"; then :
  18219. ac_cv_lib_ldap_ldap_simple_bind_s=yes
  18220. else
  18221. ac_cv_lib_ldap_ldap_simple_bind_s=no
  18222. fi
  18223. rm -f core conftest.err conftest.$ac_objext \
  18224. conftest$ac_exeext conftest.$ac_ext
  18225. LIBS=$ac_check_lib_save_LIBS
  18226. fi
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
  18228. $as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
  18229. if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = xyes; then :
  18230. :
  18231. else
  18232. as_fn_error $? "openldap lib not found or functional" "$LINENO" 5
  18233. fi
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_option in -lldap" >&5
  18235. $as_echo_n "checking for ldap_set_option in -lldap... " >&6; }
  18236. if ${ac_cv_lib_ldap_ldap_set_option+:} false; then :
  18237. $as_echo_n "(cached) " >&6
  18238. else
  18239. ac_check_lib_save_LIBS=$LIBS
  18240. LIBS="-lldap $LIBS"
  18241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18242. /* end confdefs.h. */
  18243. /* Override any GCC internal prototype to avoid an error.
  18244. Use char because int might match the return type of a GCC
  18245. builtin and then its argument prototype would still apply. */
  18246. #ifdef __cplusplus
  18247. extern "C"
  18248. #endif
  18249. char ldap_set_option ();
  18250. int
  18251. main ()
  18252. {
  18253. return ldap_set_option ();
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. if ac_fn_c_try_link "$LINENO"; then :
  18259. ac_cv_lib_ldap_ldap_set_option=yes
  18260. else
  18261. ac_cv_lib_ldap_ldap_set_option=no
  18262. fi
  18263. rm -f core conftest.err conftest.$ac_objext \
  18264. conftest$ac_exeext conftest.$ac_ext
  18265. LIBS=$ac_check_lib_save_LIBS
  18266. fi
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_option" >&5
  18268. $as_echo "$ac_cv_lib_ldap_ldap_set_option" >&6; }
  18269. if test "x$ac_cv_lib_ldap_ldap_set_option" = xyes; then :
  18270. :
  18271. else
  18272. as_fn_error $? "openldap lib not found or functional" "$LINENO" 5
  18273. fi
  18274. elif test "$enable_mozilla" != "no"; then
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mozilla" >&5
  18276. $as_echo "Mozilla" >&6; }
  18277. WITH_LDAP=YES
  18278. WITH_OPENLDAP=NO
  18279. else
  18280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Either Mozilla or OpenLDAP required" >&5
  18281. $as_echo "no. Either Mozilla or OpenLDAP required" >&6; }
  18282. fi
  18283. else
  18284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18285. $as_echo "no" >&6; }
  18286. WITH_LDAP=NO
  18287. fi
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Mozilla to use" >&5
  18289. $as_echo_n "checking which Mozilla to use... " >&6; }
  18290. if test -n "$with_system_mozilla" -a "$with_system_mozilla" != "no"; then
  18291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  18292. $as_echo "external" >&6; }
  18293. SYSTEM_MOZILLA=YES
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Mozilla flavour to use" >&5
  18295. $as_echo_n "checking which Mozilla flavour to use... " >&6; }
  18296. if test -n "$with_system_mozilla" -a "$with_system_mozilla" = "libxul"; then
  18297. MOZ_FLAVOUR=libxul
  18298. elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "xulrunner"; then
  18299. MOZ_FLAVOUR=xulrunner
  18300. elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "seamonkey"; then
  18301. MOZ_FLAVOUR=seamonkey
  18302. elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "iceape"; then
  18303. MOZ_FLAVOUR=iceape
  18304. elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "firefox"; then
  18305. MOZ_FLAVOUR=firefox
  18306. elif test -n "$with_system_mozilla" -a "$with_system_mozilla" = "mozilla"; then
  18307. MOZ_FLAVOUR=mozilla
  18308. else
  18309. MOZ_FLAVOUR=libxul
  18310. fi
  18311. tmp=`echo $MOZ_FLAVOUR | $PERL -e 'print ucfirst(<STDIN>);'`
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmp" >&5
  18313. $as_echo "$tmp" >&6; }
  18314. if test "$MOZ_FLAVOUR" != "libxul"; then
  18315. pkg_failed=no
  18316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLAXPCOM" >&5
  18317. $as_echo_n "checking for MOZILLAXPCOM... " >&6; }
  18318. if test -n "$MOZILLAXPCOM_CFLAGS"; then
  18319. pkg_cv_MOZILLAXPCOM_CFLAGS="$MOZILLAXPCOM_CFLAGS"
  18320. elif test -n "$PKG_CONFIG"; then
  18321. if test -n "$PKG_CONFIG" && \
  18322. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$MOZ_FLAVOUR-xpcom\""; } >&5
  18323. ($PKG_CONFIG --exists --print-errors "$MOZ_FLAVOUR-xpcom") 2>&5
  18324. ac_status=$?
  18325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18326. test $ac_status = 0; }; then
  18327. pkg_cv_MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-xpcom" 2>/dev/null`
  18328. else
  18329. pkg_failed=yes
  18330. fi
  18331. else
  18332. pkg_failed=untried
  18333. fi
  18334. if test -n "$MOZILLAXPCOM_LIBS"; then
  18335. pkg_cv_MOZILLAXPCOM_LIBS="$MOZILLAXPCOM_LIBS"
  18336. elif test -n "$PKG_CONFIG"; then
  18337. if test -n "$PKG_CONFIG" && \
  18338. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$MOZ_FLAVOUR-xpcom\""; } >&5
  18339. ($PKG_CONFIG --exists --print-errors "$MOZ_FLAVOUR-xpcom") 2>&5
  18340. ac_status=$?
  18341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18342. test $ac_status = 0; }; then
  18343. pkg_cv_MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-xpcom" 2>/dev/null`
  18344. else
  18345. pkg_failed=yes
  18346. fi
  18347. else
  18348. pkg_failed=untried
  18349. fi
  18350. if test $pkg_failed = yes; then
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18352. $as_echo "no" >&6; }
  18353. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18354. _pkg_short_errors_supported=yes
  18355. else
  18356. _pkg_short_errors_supported=no
  18357. fi
  18358. if test $_pkg_short_errors_supported = yes; then
  18359. MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$MOZ_FLAVOUR-xpcom" 2>&1`
  18360. else
  18361. MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --print-errors "$MOZ_FLAVOUR-xpcom" 2>&1`
  18362. fi
  18363. # Put the nasty error message in config.log where it belongs
  18364. echo "$MOZILLAXPCOM_PKG_ERRORS" >&5
  18365. HASXPCOM=""
  18366. elif test $pkg_failed = untried; then
  18367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18368. $as_echo "no" >&6; }
  18369. HASXPCOM=""
  18370. else
  18371. MOZILLAXPCOM_CFLAGS=$pkg_cv_MOZILLAXPCOM_CFLAGS
  18372. MOZILLAXPCOM_LIBS=$pkg_cv_MOZILLAXPCOM_LIBS
  18373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18374. $as_echo "yes" >&6; }
  18375. HASXPCOM="TRUE"
  18376. fi
  18377. MOZ_INC=`$PKG_CONFIG --variable=includedir $MOZ_FLAVOUR-xpcom`
  18378. MOZ_LIB=`$PKG_CONFIG --variable=libdir $MOZ_FLAVOUR-xpcom`
  18379. fi
  18380. if test -z "$HASXPCOM"; then
  18381. pkg_failed=no
  18382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLAXPCOM" >&5
  18383. $as_echo_n "checking for MOZILLAXPCOM... " >&6; }
  18384. if test -n "$MOZILLAXPCOM_CFLAGS"; then
  18385. pkg_cv_MOZILLAXPCOM_CFLAGS="$MOZILLAXPCOM_CFLAGS"
  18386. elif test -n "$PKG_CONFIG"; then
  18387. if test -n "$PKG_CONFIG" && \
  18388. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul \""; } >&5
  18389. ($PKG_CONFIG --exists --print-errors "libxul ") 2>&5
  18390. ac_status=$?
  18391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18392. test $ac_status = 0; }; then
  18393. pkg_cv_MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "libxul " 2>/dev/null`
  18394. else
  18395. pkg_failed=yes
  18396. fi
  18397. else
  18398. pkg_failed=untried
  18399. fi
  18400. if test -n "$MOZILLAXPCOM_LIBS"; then
  18401. pkg_cv_MOZILLAXPCOM_LIBS="$MOZILLAXPCOM_LIBS"
  18402. elif test -n "$PKG_CONFIG"; then
  18403. if test -n "$PKG_CONFIG" && \
  18404. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul \""; } >&5
  18405. ($PKG_CONFIG --exists --print-errors "libxul ") 2>&5
  18406. ac_status=$?
  18407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18408. test $ac_status = 0; }; then
  18409. pkg_cv_MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "libxul " 2>/dev/null`
  18410. else
  18411. pkg_failed=yes
  18412. fi
  18413. else
  18414. pkg_failed=untried
  18415. fi
  18416. if test $pkg_failed = yes; then
  18417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18418. $as_echo "no" >&6; }
  18419. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18420. _pkg_short_errors_supported=yes
  18421. else
  18422. _pkg_short_errors_supported=no
  18423. fi
  18424. if test $_pkg_short_errors_supported = yes; then
  18425. MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul " 2>&1`
  18426. else
  18427. MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul " 2>&1`
  18428. fi
  18429. # Put the nasty error message in config.log where it belongs
  18430. echo "$MOZILLAXPCOM_PKG_ERRORS" >&5
  18431. as_fn_error $? "Package requirements (libxul ) were not met:
  18432. $MOZILLAXPCOM_PKG_ERRORS
  18433. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  18434. installed software in a non-standard prefix.
  18435. Alternatively, you may set the environment variables MOZILLAXPCOM_CFLAGS
  18436. and MOZILLAXPCOM_LIBS to avoid the need to call pkg-config.
  18437. See the pkg-config man page for more details." "$LINENO" 5
  18438. elif test $pkg_failed = untried; then
  18439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18440. $as_echo "no" >&6; }
  18441. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18442. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18443. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  18444. is in your PATH or set the PKG_CONFIG environment variable to the full
  18445. path to pkg-config.
  18446. Alternatively, you may set the environment variables MOZILLAXPCOM_CFLAGS
  18447. and MOZILLAXPCOM_LIBS to avoid the need to call pkg-config.
  18448. See the pkg-config man page for more details.
  18449. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  18450. See \`config.log' for more details" "$LINENO" 5; }
  18451. else
  18452. MOZILLAXPCOM_CFLAGS=$pkg_cv_MOZILLAXPCOM_CFLAGS
  18453. MOZILLAXPCOM_LIBS=$pkg_cv_MOZILLAXPCOM_LIBS
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18455. $as_echo "yes" >&6; }
  18456. fi
  18457. MOZ_INC=`$PKG_CONFIG --variable=includedir libxul`
  18458. MOZ_LIB=`$PKG_CONFIG --variable=libdir libxul`
  18459. if ! test -e "$MOZ_LIB/libxul.so"; then
  18460. MOZ_LIB=`$PKG_CONFIG --variable=sdkdir libxul`
  18461. if test -e "$MOZ_LIB/sdk/lib/libxul.so"; then
  18462. MOZ_LIB="$MOZ_LIB/sdk/lib"
  18463. fi
  18464. fi
  18465. fi
  18466. MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS
  18467. if test "$WITH_LDAP" != "NO" -a "$WITH_OPENLDAP" != "YES"; then
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $tmp was compiled with --enable-ldap" >&5
  18469. $as_echo_n "checking whether $tmp was compiled with --enable-ldap... " >&6; }
  18470. if test -d "$MOZ_INC/ldap"; then
  18471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18472. $as_echo "yes" >&6; }
  18473. MOZ_LDAP_CFLAGS="-I$MOZ_INC"
  18474. else
  18475. as_fn_error $? "no.
  18476. Could not find LDAP header include files in $MOZ_INC/ldap.
  18477. Please recompile $tmp with --enable-ldap or use --with-openldap." "$LINENO" 5
  18478. fi
  18479. fi
  18480. #e.g. http://fedoraproject.org/wiki/Releases/FeatureXULRunnerAPIChanges
  18481. #the plugin pkg-config etc. reverts to "mozilla-plugin" with libxul
  18482. if test "$MOZ_FLAVOUR" = "libxul"; then
  18483. MOZ_FLAVOUR="mozilla"
  18484. fi
  18485. elif test "$enable_mozilla" = "no"; then
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  18487. $as_echo "none" >&6; }
  18488. WITH_MOZILLA=NO
  18489. else
  18490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  18491. $as_echo "internal" >&6; }
  18492. SYSTEM_MOZILLA=NO
  18493. BUILD_TYPE="$BUILD_TYPE MOZ"
  18494. if test -z "$with_mozilla_version"; then
  18495. MOZILLA_VERSION=
  18496. else
  18497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Mozilla version to build" >&5
  18498. $as_echo_n "checking which Mozilla version to build... " >&6; }
  18499. MOZILLA_VERSION=$with_mozilla_version
  18500. enable_build_mozilla=1
  18501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_VERSION" >&5
  18502. $as_echo "$MOZILLA_VERSION" >&6; }
  18503. fi
  18504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolkit Mozilla should use" >&5
  18505. $as_echo_n "checking for toolkit Mozilla should use... " >&6; }
  18506. if test -z "$with_mozilla_toolkit"; then
  18507. if test "$_os" != "WINNT"; then
  18508. if test "$_os" = "Darwin"; then
  18509. MOZILLA_TOOLKIT=mac
  18510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: mac" >&5
  18511. $as_echo "mac" >&6; }
  18512. else
  18513. MOZILLA_TOOLKIT=gtk2
  18514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk2" >&5
  18515. $as_echo "gtk2" >&6; }
  18516. fi
  18517. fi
  18518. else
  18519. MOZILLA_TOOLKIT=$with_mozilla_toolkit
  18520. enable_build_mozilla=1
  18521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_TOOLKIT" >&5
  18522. $as_echo "$MOZILLA_TOOLKIT" >&6; }
  18523. fi
  18524. # default to enabling build mozilla
  18525. if test "$enable_build_mozilla" != "no"; then
  18526. enable_build_mozilla=yes
  18527. else
  18528. enable_build_mozilla=
  18529. fi
  18530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Mozilla/SeaMonkey" >&5
  18531. $as_echo_n "checking whether to build Mozilla/SeaMonkey... " >&6; }
  18532. if test -n "$enable_build_mozilla"; then
  18533. BUILD_MOZAB="TRUE"
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18535. $as_echo "yes" >&6; }
  18536. else
  18537. BUILD_MOZAB=""
  18538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18539. $as_echo "no" >&6; }
  18540. fi
  18541. if test "$BUILD_MOZAB" = "TRUE"; then
  18542. if test "$_os" = "WINNT"; then
  18543. if test "$WITH_MINGW" != "yes"; then
  18544. # compiling with MSVC. Only supported platform here is MSVS2005 at the moment.
  18545. if test "$MSVSVER" != "2005"; then
  18546. as_fn_error $? "Building SeaMonkey is supported with Microsoft Visual Studio 2005 only." "$LINENO" 5
  18547. fi
  18548. else
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building SeaMonkey with MinGW is not tested, and likely to break." >&5
  18550. $as_echo "$as_me: WARNING: Building SeaMonkey with MinGW is not tested, and likely to break." >&2;}
  18551. echo "Building SeaMonkey with MinGW is not tested, and likely to break." >> warn
  18552. fi
  18553. fi
  18554. if test -z "$MOZILLA_VERSION"; then
  18555. MOZILLA_VERSION=1.1.14
  18556. fi
  18557. MOZILLA_SOURCE_VERSION="seamonkey-${MOZILLA_VERSION}.source"
  18558. MOZILLA_FETCH_FILE=`grep $MOZILLA_SOURCE_VERSION ooo.lst.in`
  18559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla sources" >&5
  18560. $as_echo_n "checking for Mozilla sources... " >&6; }
  18561. if test -z "$MOZILLA_FETCH_FILE"; then
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  18563. $as_echo "not found" >&6; }
  18564. HAVE_MOZILLA_TARBALL=n
  18565. else
  18566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MOZILLA_FETCH_FILE" >&5
  18567. $as_echo_n "checking for $MOZILLA_FETCH_FILE... " >&6; }
  18568. if test ! -e "$TARFILE_LOCATION/$MOZILLA_FETCH_FILE"; then
  18569. if test -z "$DO_FETCH"; then
  18570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be fetched" >&5
  18571. $as_echo "will be fetched" >&6; }
  18572. HAVE_MOZILLA_TARBALL=y
  18573. else
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  18575. $as_echo "not found" >&6; }
  18576. HAVE_MOZILLA_TARBALL=n
  18577. fi
  18578. else
  18579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  18580. $as_echo "found" >&6; }
  18581. HAVE_MOZILLA_TARBALL=y
  18582. fi
  18583. fi
  18584. if test "$HAVE_MOZILLA_TARBALL" != "y"; then
  18585. as_fn_error $? "Mozilla/SeaMonkey source archive not found.
  18586. Use \"./download\" to download." "$LINENO" 5
  18587. fi
  18588. if test "$_os" = "WINNT"; then
  18589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moztools binaries" >&5
  18590. $as_echo_n "checking for moztools binaries... " >&6; }
  18591. if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip"; then
  18592. as_fn_error $? "The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
  18593. (from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)" "$LINENO" 5
  18594. else
  18595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  18596. $as_echo "ok" >&6; }
  18597. fi
  18598. elif test "$_os" = "Darwin"; then
  18599. pkg_failed=no
  18600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZLIBREQ" >&5
  18601. $as_echo_n "checking for MOZLIBREQ... " >&6; }
  18602. if test -n "$MOZLIBREQ_CFLAGS"; then
  18603. pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
  18604. elif test -n "$PKG_CONFIG"; then
  18605. if test -n "$PKG_CONFIG" && \
  18606. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.6.3\""; } >&5
  18607. ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.6.3") 2>&5
  18608. ac_status=$?
  18609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18610. test $ac_status = 0; }; then
  18611. pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.6.3" 2>/dev/null`
  18612. else
  18613. pkg_failed=yes
  18614. fi
  18615. else
  18616. pkg_failed=untried
  18617. fi
  18618. if test -n "$MOZLIBREQ_LIBS"; then
  18619. pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
  18620. elif test -n "$PKG_CONFIG"; then
  18621. if test -n "$PKG_CONFIG" && \
  18622. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.6.3\""; } >&5
  18623. ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.6.3") 2>&5
  18624. ac_status=$?
  18625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18626. test $ac_status = 0; }; then
  18627. pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.6.3" 2>/dev/null`
  18628. else
  18629. pkg_failed=yes
  18630. fi
  18631. else
  18632. pkg_failed=untried
  18633. fi
  18634. if test $pkg_failed = yes; then
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18636. $as_echo "no" >&6; }
  18637. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18638. _pkg_short_errors_supported=yes
  18639. else
  18640. _pkg_short_errors_supported=no
  18641. fi
  18642. if test $_pkg_short_errors_supported = yes; then
  18643. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libIDL-2.0 >= 0.6.3" 2>&1`
  18644. else
  18645. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "libIDL-2.0 >= 0.6.3" 2>&1`
  18646. fi
  18647. # Put the nasty error message in config.log where it belongs
  18648. echo "$MOZLIBREQ_PKG_ERRORS" >&5
  18649. MOZIDL=""
  18650. elif test $pkg_failed = untried; then
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18652. $as_echo "no" >&6; }
  18653. MOZIDL=""
  18654. else
  18655. MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
  18656. MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18658. $as_echo "yes" >&6; }
  18659. MOZIDL="TRUE"
  18660. fi
  18661. if test -z "$MOZIDL"; then
  18662. as_fn_error $? "libIDL 0.6.3 or newer is needed to build Mozilla with Mac toolkit." "$LINENO" 5
  18663. fi
  18664. else
  18665. # Generic Unix/Linux section
  18666. if test "$MOZILLA_TOOLKIT" = "gtk2"; then
  18667. pkg_failed=no
  18668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZLIBREQ" >&5
  18669. $as_echo_n "checking for MOZLIBREQ... " >&6; }
  18670. if test -n "$MOZLIBREQ_CFLAGS"; then
  18671. pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
  18672. elif test -n "$PKG_CONFIG"; then
  18673. if test -n "$PKG_CONFIG" && \
  18674. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  18675. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  18676. ac_status=$?
  18677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18678. test $ac_status = 0; }; then
  18679. pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  18680. else
  18681. pkg_failed=yes
  18682. fi
  18683. else
  18684. pkg_failed=untried
  18685. fi
  18686. if test -n "$MOZLIBREQ_LIBS"; then
  18687. pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
  18688. elif test -n "$PKG_CONFIG"; then
  18689. if test -n "$PKG_CONFIG" && \
  18690. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  18691. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  18692. ac_status=$?
  18693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18694. test $ac_status = 0; }; then
  18695. pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  18696. else
  18697. pkg_failed=yes
  18698. fi
  18699. else
  18700. pkg_failed=untried
  18701. fi
  18702. if test $pkg_failed = yes; then
  18703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18704. $as_echo "no" >&6; }
  18705. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18706. _pkg_short_errors_supported=yes
  18707. else
  18708. _pkg_short_errors_supported=no
  18709. fi
  18710. if test $_pkg_short_errors_supported = yes; then
  18711. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
  18712. else
  18713. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
  18714. fi
  18715. # Put the nasty error message in config.log where it belongs
  18716. echo "$MOZLIBREQ_PKG_ERRORS" >&5
  18717. MOZGTK=""
  18718. elif test $pkg_failed = untried; then
  18719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18720. $as_echo "no" >&6; }
  18721. MOZGTK=""
  18722. else
  18723. MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
  18724. MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
  18725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18726. $as_echo "yes" >&6; }
  18727. MOZGTK="TRUE"
  18728. fi
  18729. if test -z "$MOZGTK"; then
  18730. as_fn_error $? "GTK2 is needed to build Mozilla." "$LINENO" 5
  18731. fi
  18732. pkg_failed=no
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZLIBREQ" >&5
  18734. $as_echo_n "checking for MOZLIBREQ... " >&6; }
  18735. if test -n "$MOZLIBREQ_CFLAGS"; then
  18736. pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
  18737. elif test -n "$PKG_CONFIG"; then
  18738. if test -n "$PKG_CONFIG" && \
  18739. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.8.0\""; } >&5
  18740. ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.8.0") 2>&5
  18741. ac_status=$?
  18742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18743. test $ac_status = 0; }; then
  18744. pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0" 2>/dev/null`
  18745. else
  18746. pkg_failed=yes
  18747. fi
  18748. else
  18749. pkg_failed=untried
  18750. fi
  18751. if test -n "$MOZLIBREQ_LIBS"; then
  18752. pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
  18753. elif test -n "$PKG_CONFIG"; then
  18754. if test -n "$PKG_CONFIG" && \
  18755. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libIDL-2.0 >= 0.8.0\""; } >&5
  18756. ($PKG_CONFIG --exists --print-errors "libIDL-2.0 >= 0.8.0") 2>&5
  18757. ac_status=$?
  18758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18759. test $ac_status = 0; }; then
  18760. pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.8.0" 2>/dev/null`
  18761. else
  18762. pkg_failed=yes
  18763. fi
  18764. else
  18765. pkg_failed=untried
  18766. fi
  18767. if test $pkg_failed = yes; then
  18768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18769. $as_echo "no" >&6; }
  18770. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18771. _pkg_short_errors_supported=yes
  18772. else
  18773. _pkg_short_errors_supported=no
  18774. fi
  18775. if test $_pkg_short_errors_supported = yes; then
  18776. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libIDL-2.0 >= 0.8.0" 2>&1`
  18777. else
  18778. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "libIDL-2.0 >= 0.8.0" 2>&1`
  18779. fi
  18780. # Put the nasty error message in config.log where it belongs
  18781. echo "$MOZLIBREQ_PKG_ERRORS" >&5
  18782. MOZIDL=""
  18783. elif test $pkg_failed = untried; then
  18784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18785. $as_echo "no" >&6; }
  18786. MOZIDL=""
  18787. else
  18788. MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
  18789. MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
  18790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18791. $as_echo "yes" >&6; }
  18792. MOZIDL="TRUE"
  18793. fi
  18794. if test -z "$MOZIDL"; then
  18795. as_fn_error $? "libIDL >= 0.8.0 is needed when using GTK2 to build Mozilla." "$LINENO" 5
  18796. fi
  18797. else
  18798. pkg_failed=no
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZLIBREQ" >&5
  18800. $as_echo_n "checking for MOZLIBREQ... " >&6; }
  18801. if test -n "$MOZLIBREQ_CFLAGS"; then
  18802. pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
  18803. elif test -n "$PKG_CONFIG"; then
  18804. if test -n "$PKG_CONFIG" && \
  18805. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.2.3\""; } >&5
  18806. ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.2.3") 2>&5
  18807. ac_status=$?
  18808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18809. test $ac_status = 0; }; then
  18810. pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.2.3" 2>/dev/null`
  18811. else
  18812. pkg_failed=yes
  18813. fi
  18814. else
  18815. pkg_failed=untried
  18816. fi
  18817. if test -n "$MOZLIBREQ_LIBS"; then
  18818. pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
  18819. elif test -n "$PKG_CONFIG"; then
  18820. if test -n "$PKG_CONFIG" && \
  18821. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.2.3\""; } >&5
  18822. ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.2.3") 2>&5
  18823. ac_status=$?
  18824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18825. test $ac_status = 0; }; then
  18826. pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.2.3" 2>/dev/null`
  18827. else
  18828. pkg_failed=yes
  18829. fi
  18830. else
  18831. pkg_failed=untried
  18832. fi
  18833. if test $pkg_failed = yes; then
  18834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18835. $as_echo "no" >&6; }
  18836. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18837. _pkg_short_errors_supported=yes
  18838. else
  18839. _pkg_short_errors_supported=no
  18840. fi
  18841. if test $_pkg_short_errors_supported = yes; then
  18842. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+ >= 1.2.3" 2>&1`
  18843. else
  18844. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+ >= 1.2.3" 2>&1`
  18845. fi
  18846. # Put the nasty error message in config.log where it belongs
  18847. echo "$MOZLIBREQ_PKG_ERRORS" >&5
  18848. MOZGTK=""
  18849. elif test $pkg_failed = untried; then
  18850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18851. $as_echo "no" >&6; }
  18852. MOZGTK=""
  18853. else
  18854. MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
  18855. MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18857. $as_echo "yes" >&6; }
  18858. MOZGTK="TRUE"
  18859. fi
  18860. if test -z "$MOZGTK"; then
  18861. as_fn_error $? "GTK+ 1.2 is needed when not using GTK2 to build Mozilla." "$LINENO" 5
  18862. fi
  18863. pkg_failed=no
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZLIBREQ" >&5
  18865. $as_echo_n "checking for MOZLIBREQ... " >&6; }
  18866. if test -n "$MOZLIBREQ_CFLAGS"; then
  18867. pkg_cv_MOZLIBREQ_CFLAGS="$MOZLIBREQ_CFLAGS"
  18868. elif test -n "$PKG_CONFIG"; then
  18869. if test -n "$PKG_CONFIG" && \
  18870. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidl >= 0.6.3 libidl <= 0.6.8\""; } >&5
  18871. ($PKG_CONFIG --exists --print-errors "libidl >= 0.6.3 libidl <= 0.6.8") 2>&5
  18872. ac_status=$?
  18873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18874. test $ac_status = 0; }; then
  18875. pkg_cv_MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libidl >= 0.6.3 libidl <= 0.6.8" 2>/dev/null`
  18876. else
  18877. pkg_failed=yes
  18878. fi
  18879. else
  18880. pkg_failed=untried
  18881. fi
  18882. if test -n "$MOZLIBREQ_LIBS"; then
  18883. pkg_cv_MOZLIBREQ_LIBS="$MOZLIBREQ_LIBS"
  18884. elif test -n "$PKG_CONFIG"; then
  18885. if test -n "$PKG_CONFIG" && \
  18886. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidl >= 0.6.3 libidl <= 0.6.8\""; } >&5
  18887. ($PKG_CONFIG --exists --print-errors "libidl >= 0.6.3 libidl <= 0.6.8") 2>&5
  18888. ac_status=$?
  18889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18890. test $ac_status = 0; }; then
  18891. pkg_cv_MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libidl >= 0.6.3 libidl <= 0.6.8" 2>/dev/null`
  18892. else
  18893. pkg_failed=yes
  18894. fi
  18895. else
  18896. pkg_failed=untried
  18897. fi
  18898. if test $pkg_failed = yes; then
  18899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18900. $as_echo "no" >&6; }
  18901. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18902. _pkg_short_errors_supported=yes
  18903. else
  18904. _pkg_short_errors_supported=no
  18905. fi
  18906. if test $_pkg_short_errors_supported = yes; then
  18907. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libidl >= 0.6.3 libidl <= 0.6.8" 2>&1`
  18908. else
  18909. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --print-errors "libidl >= 0.6.3 libidl <= 0.6.8" 2>&1`
  18910. fi
  18911. # Put the nasty error message in config.log where it belongs
  18912. echo "$MOZLIBREQ_PKG_ERRORS" >&5
  18913. MOZIDL=""
  18914. elif test $pkg_failed = untried; then
  18915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18916. $as_echo "no" >&6; }
  18917. MOZIDL=""
  18918. else
  18919. MOZLIBREQ_CFLAGS=$pkg_cv_MOZLIBREQ_CFLAGS
  18920. MOZLIBREQ_LIBS=$pkg_cv_MOZLIBREQ_LIBS
  18921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18922. $as_echo "yes" >&6; }
  18923. MOZIDL="TRUE"
  18924. fi
  18925. if test -z "$MOZIDL"; then
  18926. as_fn_error $? "libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build Mozilla." "$LINENO" 5
  18927. fi
  18928. fi
  18929. fi
  18930. else
  18931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which pre-built Mozilla module in moz/zipped" >&5
  18932. $as_echo_n "checking which pre-built Mozilla module in moz/zipped... " >&6; }
  18933. if test -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}inc.zip" -a \
  18934. -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}lib.zip" -a \
  18935. -e "$SRC_ROOT/moz/zipped/${OS}${COM}${CPU}runtime.zip"; then
  18936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found" >&5
  18937. $as_echo "Found" >&6; }
  18938. PREBUILD_MOZAB="YES"
  18939. if test "$_os" = "WINNT"; then
  18940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSVC 2005 runtime needed for prebuilt Mozilla" >&5
  18941. $as_echo_n "checking for MSVC 2005 runtime needed for prebuilt Mozilla... " >&6; }
  18942. if test -e "$SRC_ROOT/external/msvcp80/Microsoft.VC80.CRT.manifest" -a \
  18943. -e "$SRC_ROOT/external/msvcp80/msvcp80.dll" -a \
  18944. -e "$SRC_ROOT/external/msvcp80/msvcr80.dll"; then
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found" >&5
  18946. $as_echo "Found" >&6; }
  18947. else
  18948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not Found" >&5
  18949. $as_echo "Not Found" >&6; }
  18950. as_fn_error $? "For the pre-built Mozilla libraries, you need MSVC 2005 runtime files
  18951. Microsoft.VC80.CRT.manifest, msvcp80.dll, and msvcr80.dll
  18952. in external/msvcp80.
  18953. You can get them by installing:
  18954. <http://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x86.EXE>
  18955. and copying the abovementioned files from:
  18956. c:/windows/winsxs/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989/
  18957. and
  18958. c:/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989.manifest
  18959. " "$LINENO" 5
  18960. fi
  18961. fi
  18962. else
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not Found" >&5
  18964. $as_echo "Not Found" >&6; }
  18965. as_fn_error $? "If you don't use system mozilla and also disable the build of internal mozilla, you must provided the appropriate libraries yourself.
  18966. You need to copy $OS$COM$CPU{inc,lib,runtime}.zip into moz/zipped.
  18967. These files can be found at <http://dev-www.libreoffice.org/mozilla/>
  18968. " "$LINENO" 5
  18969. fi
  18970. fi
  18971. fi
  18972. if test "$SYSTEM_MOZILLA" = "YES"; then
  18973. SOLARLIB="$SOLARLIB -L$MOZ_LIB"
  18974. fi
  18975. if test "x$enable_xmlsec" != "xno" -o "x$enable_mozilla" != "xno"; then
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which NSS to use" >&5
  18977. $as_echo_n "checking which NSS to use... " >&6; }
  18978. if test "$with_system_nss" = "yes"; then
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  18980. $as_echo "external" >&6; }
  18981. SYSTEM_NSS="YES"
  18982. pkg_failed=no
  18983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
  18984. $as_echo_n "checking for NSS... " >&6; }
  18985. if test -n "$NSS_CFLAGS"; then
  18986. pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
  18987. elif test -n "$PKG_CONFIG"; then
  18988. if test -n "$PKG_CONFIG" && \
  18989. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3.9.3 nspr >= 4.8\""; } >&5
  18990. ($PKG_CONFIG --exists --print-errors "nss >= 3.9.3 nspr >= 4.8") 2>&5
  18991. ac_status=$?
  18992. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18993. test $ac_status = 0; }; then
  18994. pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3.9.3 nspr >= 4.8" 2>/dev/null`
  18995. else
  18996. pkg_failed=yes
  18997. fi
  18998. else
  18999. pkg_failed=untried
  19000. fi
  19001. if test -n "$NSS_LIBS"; then
  19002. pkg_cv_NSS_LIBS="$NSS_LIBS"
  19003. elif test -n "$PKG_CONFIG"; then
  19004. if test -n "$PKG_CONFIG" && \
  19005. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3.9.3 nspr >= 4.8\""; } >&5
  19006. ($PKG_CONFIG --exists --print-errors "nss >= 3.9.3 nspr >= 4.8") 2>&5
  19007. ac_status=$?
  19008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19009. test $ac_status = 0; }; then
  19010. pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss >= 3.9.3 nspr >= 4.8" 2>/dev/null`
  19011. else
  19012. pkg_failed=yes
  19013. fi
  19014. else
  19015. pkg_failed=untried
  19016. fi
  19017. if test $pkg_failed = yes; then
  19018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19019. $as_echo "no" >&6; }
  19020. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19021. _pkg_short_errors_supported=yes
  19022. else
  19023. _pkg_short_errors_supported=no
  19024. fi
  19025. if test $_pkg_short_errors_supported = yes; then
  19026. NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss >= 3.9.3 nspr >= 4.8" 2>&1`
  19027. else
  19028. NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss >= 3.9.3 nspr >= 4.8" 2>&1`
  19029. fi
  19030. # Put the nasty error message in config.log where it belongs
  19031. echo "$NSS_PKG_ERRORS" >&5
  19032. as_fn_error $? "Package requirements (nss >= 3.9.3 nspr >= 4.8) were not met:
  19033. $NSS_PKG_ERRORS
  19034. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  19035. installed software in a non-standard prefix.
  19036. Alternatively, you may set the environment variables NSS_CFLAGS
  19037. and NSS_LIBS to avoid the need to call pkg-config.
  19038. See the pkg-config man page for more details." "$LINENO" 5
  19039. elif test $pkg_failed = untried; then
  19040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19041. $as_echo "no" >&6; }
  19042. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19043. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19044. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  19045. is in your PATH or set the PKG_CONFIG environment variable to the full
  19046. path to pkg-config.
  19047. Alternatively, you may set the environment variables NSS_CFLAGS
  19048. and NSS_LIBS to avoid the need to call pkg-config.
  19049. See the pkg-config man page for more details.
  19050. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  19051. See \`config.log' for more details" "$LINENO" 5; }
  19052. else
  19053. NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
  19054. NSS_LIBS=$pkg_cv_NSS_LIBS
  19055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19056. $as_echo "yes" >&6; }
  19057. fi
  19058. else
  19059. SYSTEM_NSS="NO"
  19060. BUILD_TYPE="$BUILD_TYPE NSS"
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  19062. $as_echo "internal" >&6; }
  19063. if test "$build_os" = "cygwin"; then
  19064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla build tooling. Required for nss and/or mozilla" >&5
  19065. $as_echo_n "checking for Mozilla build tooling. Required for nss and/or mozilla... " >&6; }
  19066. if test -z "$MOZILLABUILD"; then
  19067. as_fn_error $? "Mozilla build tooling not found.
  19068. Use the --with-mozilla-build option after installing the tools obtained
  19069. from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32" "$LINENO" 5
  19070. else
  19071. if test \( "$WITH_MINGW" = "yes" \); then
  19072. if test ! -d "$MOZILLABUILD"; then
  19073. as_fn_error $? "Mozilla build tooling incomplete!" "$LINENO" 5
  19074. else
  19075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  19076. $as_echo "ok" >&6; }
  19077. fi
  19078. else
  19079. if test ! -d "$MOZILLABUILD/moztools" \
  19080. -o ! -d "$MOZILLABUILD/msys"; then
  19081. as_fn_error $? "Mozilla build tooling incomplete!" "$LINENO" 5
  19082. else
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  19084. $as_echo "ok" >&6; }
  19085. fi
  19086. fi
  19087. fi
  19088. fi
  19089. fi # system nss
  19090. fi # enable xmlsec || enable mozilla
  19091. HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mozilla headers to use" >&5
  19093. $as_echo_n "checking which mozilla headers to use... " >&6; }
  19094. if test "$with_system_mozilla_headers" = "yes"; then
  19095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  19096. $as_echo "external" >&6; }
  19097. SYSTEM_MOZILLA_HEADERS=YES
  19098. # First try npapi-sdk:
  19099. pkg_failed=no
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLA_HEADERS" >&5
  19101. $as_echo_n "checking for MOZILLA_HEADERS... " >&6; }
  19102. if test -n "$MOZILLA_HEADERS_CFLAGS"; then
  19103. pkg_cv_MOZILLA_HEADERS_CFLAGS="$MOZILLA_HEADERS_CFLAGS"
  19104. elif test -n "$PKG_CONFIG"; then
  19105. if test -n "$PKG_CONFIG" && \
  19106. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"npapi-sdk\""; } >&5
  19107. ($PKG_CONFIG --exists --print-errors "npapi-sdk") 2>&5
  19108. ac_status=$?
  19109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19110. test $ac_status = 0; }; then
  19111. pkg_cv_MOZILLA_HEADERS_CFLAGS=`$PKG_CONFIG --cflags "npapi-sdk" 2>/dev/null`
  19112. else
  19113. pkg_failed=yes
  19114. fi
  19115. else
  19116. pkg_failed=untried
  19117. fi
  19118. if test -n "$MOZILLA_HEADERS_LIBS"; then
  19119. pkg_cv_MOZILLA_HEADERS_LIBS="$MOZILLA_HEADERS_LIBS"
  19120. elif test -n "$PKG_CONFIG"; then
  19121. if test -n "$PKG_CONFIG" && \
  19122. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"npapi-sdk\""; } >&5
  19123. ($PKG_CONFIG --exists --print-errors "npapi-sdk") 2>&5
  19124. ac_status=$?
  19125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19126. test $ac_status = 0; }; then
  19127. pkg_cv_MOZILLA_HEADERS_LIBS=`$PKG_CONFIG --libs "npapi-sdk" 2>/dev/null`
  19128. else
  19129. pkg_failed=yes
  19130. fi
  19131. else
  19132. pkg_failed=untried
  19133. fi
  19134. if test $pkg_failed = yes; then
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19136. $as_echo "no" >&6; }
  19137. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19138. _pkg_short_errors_supported=yes
  19139. else
  19140. _pkg_short_errors_supported=no
  19141. fi
  19142. if test $_pkg_short_errors_supported = yes; then
  19143. MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "npapi-sdk" 2>&1`
  19144. else
  19145. MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --print-errors "npapi-sdk" 2>&1`
  19146. fi
  19147. # Put the nasty error message in config.log where it belongs
  19148. echo "$MOZILLA_HEADERS_PKG_ERRORS" >&5
  19149. LOCATED=no
  19150. elif test $pkg_failed = untried; then
  19151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19152. $as_echo "no" >&6; }
  19153. LOCATED=no
  19154. else
  19155. MOZILLA_HEADERS_CFLAGS=$pkg_cv_MOZILLA_HEADERS_CFLAGS
  19156. MOZILLA_HEADERS_LIBS=$pkg_cv_MOZILLA_HEADERS_LIBS
  19157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19158. $as_echo "yes" >&6; }
  19159. LOCATED=yes
  19160. fi
  19161. # Then go with libxul:
  19162. if test "x$LOCATED" != "xyes"; then
  19163. pkg_failed=no
  19164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLA_HEADERS" >&5
  19165. $as_echo_n "checking for MOZILLA_HEADERS... " >&6; }
  19166. if test -n "$MOZILLA_HEADERS_CFLAGS"; then
  19167. pkg_cv_MOZILLA_HEADERS_CFLAGS="$MOZILLA_HEADERS_CFLAGS"
  19168. elif test -n "$PKG_CONFIG"; then
  19169. if test -n "$PKG_CONFIG" && \
  19170. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul\""; } >&5
  19171. ($PKG_CONFIG --exists --print-errors "libxul") 2>&5
  19172. ac_status=$?
  19173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19174. test $ac_status = 0; }; then
  19175. pkg_cv_MOZILLA_HEADERS_CFLAGS=`$PKG_CONFIG --cflags "libxul" 2>/dev/null`
  19176. else
  19177. pkg_failed=yes
  19178. fi
  19179. else
  19180. pkg_failed=untried
  19181. fi
  19182. if test -n "$MOZILLA_HEADERS_LIBS"; then
  19183. pkg_cv_MOZILLA_HEADERS_LIBS="$MOZILLA_HEADERS_LIBS"
  19184. elif test -n "$PKG_CONFIG"; then
  19185. if test -n "$PKG_CONFIG" && \
  19186. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxul\""; } >&5
  19187. ($PKG_CONFIG --exists --print-errors "libxul") 2>&5
  19188. ac_status=$?
  19189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19190. test $ac_status = 0; }; then
  19191. pkg_cv_MOZILLA_HEADERS_LIBS=`$PKG_CONFIG --libs "libxul" 2>/dev/null`
  19192. else
  19193. pkg_failed=yes
  19194. fi
  19195. else
  19196. pkg_failed=untried
  19197. fi
  19198. if test $pkg_failed = yes; then
  19199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19200. $as_echo "no" >&6; }
  19201. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19202. _pkg_short_errors_supported=yes
  19203. else
  19204. _pkg_short_errors_supported=no
  19205. fi
  19206. if test $_pkg_short_errors_supported = yes; then
  19207. MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxul" 2>&1`
  19208. else
  19209. MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxul" 2>&1`
  19210. fi
  19211. # Put the nasty error message in config.log where it belongs
  19212. echo "$MOZILLA_HEADERS_PKG_ERRORS" >&5
  19213. LOCATED=no
  19214. elif test $pkg_failed = untried; then
  19215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19216. $as_echo "no" >&6; }
  19217. LOCATED=no
  19218. else
  19219. MOZILLA_HEADERS_CFLAGS=$pkg_cv_MOZILLA_HEADERS_CFLAGS
  19220. MOZILLA_HEADERS_LIBS=$pkg_cv_MOZILLA_HEADERS_LIBS
  19221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19222. $as_echo "yes" >&6; }
  19223. LOCATED=yes
  19224. fi
  19225. fi
  19226. if test "x$LOCATED" != "xyes"; then
  19227. pkg_failed=no
  19228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLA_HEADERS" >&5
  19229. $as_echo_n "checking for MOZILLA_HEADERS... " >&6; }
  19230. if test -n "$MOZILLA_HEADERS_CFLAGS"; then
  19231. pkg_cv_MOZILLA_HEADERS_CFLAGS="$MOZILLA_HEADERS_CFLAGS"
  19232. elif test -n "$PKG_CONFIG"; then
  19233. if test -n "$PKG_CONFIG" && \
  19234. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin\""; } >&5
  19235. ($PKG_CONFIG --exists --print-errors "mozilla-plugin") 2>&5
  19236. ac_status=$?
  19237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19238. test $ac_status = 0; }; then
  19239. pkg_cv_MOZILLA_HEADERS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin" 2>/dev/null`
  19240. else
  19241. pkg_failed=yes
  19242. fi
  19243. else
  19244. pkg_failed=untried
  19245. fi
  19246. if test -n "$MOZILLA_HEADERS_LIBS"; then
  19247. pkg_cv_MOZILLA_HEADERS_LIBS="$MOZILLA_HEADERS_LIBS"
  19248. elif test -n "$PKG_CONFIG"; then
  19249. if test -n "$PKG_CONFIG" && \
  19250. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin\""; } >&5
  19251. ($PKG_CONFIG --exists --print-errors "mozilla-plugin") 2>&5
  19252. ac_status=$?
  19253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19254. test $ac_status = 0; }; then
  19255. pkg_cv_MOZILLA_HEADERS_LIBS=`$PKG_CONFIG --libs "mozilla-plugin" 2>/dev/null`
  19256. else
  19257. pkg_failed=yes
  19258. fi
  19259. else
  19260. pkg_failed=untried
  19261. fi
  19262. if test $pkg_failed = yes; then
  19263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19264. $as_echo "no" >&6; }
  19265. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19266. _pkg_short_errors_supported=yes
  19267. else
  19268. _pkg_short_errors_supported=no
  19269. fi
  19270. if test $_pkg_short_errors_supported = yes; then
  19271. MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mozilla-plugin" 2>&1`
  19272. else
  19273. MOZILLA_HEADERS_PKG_ERRORS=`$PKG_CONFIG --print-errors "mozilla-plugin" 2>&1`
  19274. fi
  19275. # Put the nasty error message in config.log where it belongs
  19276. echo "$MOZILLA_HEADERS_PKG_ERRORS" >&5
  19277. LOCATED=no
  19278. elif test $pkg_failed = untried; then
  19279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19280. $as_echo "no" >&6; }
  19281. LOCATED=no
  19282. else
  19283. MOZILLA_HEADERS_CFLAGS=$pkg_cv_MOZILLA_HEADERS_CFLAGS
  19284. MOZILLA_HEADERS_LIBS=$pkg_cv_MOZILLA_HEADERS_LIBS
  19285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19286. $as_echo "yes" >&6; }
  19287. LOCATED=yes
  19288. fi
  19289. fi
  19290. # if still not found bail out
  19291. if test "x$LOCATED" != "xyes"; then
  19292. as_fn_error $? "npapi.h header file not found" "$LINENO" 5
  19293. fi
  19294. ac_ext=c
  19295. ac_cpp='$CPP $CPPFLAGS'
  19296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19299. save_CFLAGS=$CFLAGS
  19300. CFLAGS="$CFLAGS $MOZILLA_HEADERS_CFLAGS"
  19301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPP_GetMIMEDescription return type" >&5
  19302. $as_echo_n "checking for NPP_GetMIMEDescription return type... " >&6; }
  19303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19304. /* end confdefs.h. */
  19305. #define XP_UNIX
  19306. #include <npapi.h>
  19307. const char* NPP_GetMIMEDescription(void) { return "foo"; }
  19308. _ACEOF
  19309. if ac_fn_c_try_compile "$LINENO"; then :
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: const char*" >&5
  19311. $as_echo "const char*" >&6; }
  19312. else
  19313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: char*" >&5
  19314. $as_echo "char*" >&6; }
  19315. HAVE_NON_CONST_NPP_GETMIMEDESCRIPTION=TRUE
  19316. fi
  19317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19318. CFLAGS=$save_CFLAGS
  19319. ac_ext=c
  19320. ac_cpp='$CPP $CPPFLAGS'
  19321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19324. else
  19325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  19326. $as_echo "internal" >&6; }
  19327. SYSTEM_MOZILLA_HEADERS=NO
  19328. fi
  19329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which sane header to use" >&5
  19330. $as_echo_n "checking which sane header to use... " >&6; }
  19331. if test "$with_system_sane" = "yes"; then
  19332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  19333. $as_echo "external" >&6; }
  19334. ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
  19335. if test "x$ac_cv_header_sane_sane_h" = xyes; then :
  19336. else
  19337. as_fn_error $? "sane not found. install sane" "$LINENO" 5
  19338. fi
  19339. else
  19340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  19341. $as_echo "internal" >&6; }
  19342. BUILD_TYPE="$BUILD_TYPE SANE"
  19343. fi
  19344. SYSTEM_GENBRK=
  19345. SYSTEM_GENCCODE=
  19346. SYSTEM_GENCMN=
  19347. ICU_MAJOR=49
  19348. ICU_MINOR=1
  19349. ICU_MICRO=1
  19350. ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES"
  19351. ICU_RECLASSIFIED_PREPEND_SET_EMPTY="YES"
  19352. ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER="YES"
  19353. ICU_RECLASSIFIED_HEBREW_LETTER="YES"
  19354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icu to use" >&5
  19355. $as_echo_n "checking which icu to use... " >&6; }
  19356. if test "$with_system_icu" = "yes"; then
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  19358. $as_echo "external" >&6; }
  19359. SYSTEM_ICU=YES
  19360. ac_ext=cpp
  19361. ac_cpp='$CXXCPP $CPPFLAGS'
  19362. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19363. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19364. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unicode/rbbi.h" >&5
  19366. $as_echo_n "checking for unicode/rbbi.h... " >&6; }
  19367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19368. /* end confdefs.h. */
  19369. unicode/rbbi.h
  19370. _ACEOF
  19371. if ac_fn_cxx_try_cpp "$LINENO"; then :
  19372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked." >&5
  19373. $as_echo "checked." >&6; }
  19374. else
  19375. as_fn_error $? "icu headers not found." "$LINENO" 5
  19376. fi
  19377. rm -f conftest.err conftest.i conftest.$ac_ext
  19378. ac_ext=c
  19379. ac_cpp='$CPP $CPPFLAGS'
  19380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19383. ICUPATH="$PATH"
  19384. if test "$WITH_MINGW" = "yes"; then
  19385. ICUPATH=`$CC -print-sysroot`/mingw/bin:"$ICUPATH"
  19386. fi
  19387. # Extract the first word of "icu-config", so it can be a program name with args.
  19388. set dummy icu-config; ac_word=$2
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19390. $as_echo_n "checking for $ac_word... " >&6; }
  19391. if ${ac_cv_path_ICUCONFIG+:} false; then :
  19392. $as_echo_n "(cached) " >&6
  19393. else
  19394. case $ICUCONFIG in
  19395. [\\/]* | ?:[\\/]*)
  19396. ac_cv_path_ICUCONFIG="$ICUCONFIG" # Let the user override the test with a path.
  19397. ;;
  19398. *)
  19399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19400. for as_dir in $ICUPATH
  19401. do
  19402. IFS=$as_save_IFS
  19403. test -z "$as_dir" && as_dir=.
  19404. for ac_exec_ext in '' $ac_executable_extensions; do
  19405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19406. ac_cv_path_ICUCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19408. break 2
  19409. fi
  19410. done
  19411. done
  19412. IFS=$as_save_IFS
  19413. ;;
  19414. esac
  19415. fi
  19416. ICUCONFIG=$ac_cv_path_ICUCONFIG
  19417. if test -n "$ICUCONFIG"; then
  19418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICUCONFIG" >&5
  19419. $as_echo "$ICUCONFIG" >&6; }
  19420. else
  19421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19422. $as_echo "no" >&6; }
  19423. fi
  19424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ICU version" >&5
  19425. $as_echo_n "checking ICU version... " >&6; }
  19426. ICU_VERSION=`$ICUCONFIG --noverify --version 2>/dev/null || $ICUCONFIG --version`
  19427. ICU_MAJOR=`echo $ICU_VERSION | cut -d"." -f1`
  19428. ICU_MINOR=`echo $ICU_VERSION | cut -d"." -f2`
  19429. ICU_MICRO=`echo $ICU_VERSION | cut -d"." -f3`
  19430. if test "$ICU_MAJOR" -ge "4"; then
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, $ICU_VERSION" >&5
  19432. $as_echo "OK, $ICU_VERSION" >&6; }
  19433. else
  19434. as_fn_error $? "not suitable, only >= 4.0 supported currently" "$LINENO" 5
  19435. fi
  19436. if test "$cross_compiling" = "yes" -a \( "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" \); then
  19437. # Extract the first word of "icu-config", so it can be a program name with args.
  19438. set dummy icu-config; ac_word=$2
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19440. $as_echo_n "checking for $ac_word... " >&6; }
  19441. if ${ac_cv_path_ICUCONFIG_FOR_BUILD+:} false; then :
  19442. $as_echo_n "(cached) " >&6
  19443. else
  19444. case $ICUCONFIG_FOR_BUILD in
  19445. [\\/]* | ?:[\\/]*)
  19446. ac_cv_path_ICUCONFIG_FOR_BUILD="$ICUCONFIG_FOR_BUILD" # Let the user override the test with a path.
  19447. ;;
  19448. *)
  19449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19450. as_dummy="$PATH:/usr/sbin:/sbin"
  19451. for as_dir in $as_dummy
  19452. do
  19453. IFS=$as_save_IFS
  19454. test -z "$as_dir" && as_dir=.
  19455. for ac_exec_ext in '' $ac_executable_extensions; do
  19456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19457. ac_cv_path_ICUCONFIG_FOR_BUILD="$as_dir/$ac_word$ac_exec_ext"
  19458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19459. break 2
  19460. fi
  19461. done
  19462. done
  19463. IFS=$as_save_IFS
  19464. ;;
  19465. esac
  19466. fi
  19467. ICUCONFIG_FOR_BUILD=$ac_cv_path_ICUCONFIG_FOR_BUILD
  19468. if test -n "$ICUCONFIG_FOR_BUILD"; then
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICUCONFIG_FOR_BUILD" >&5
  19470. $as_echo "$ICUCONFIG_FOR_BUILD" >&6; }
  19471. else
  19472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19473. $as_echo "no" >&6; }
  19474. fi
  19475. ICU_VERSION_FOR_BUILD=`$ICUCONFIG_FOR_BUILD --noverify --version 2>/dev/null || $ICUCONFIG_FOR_BUILD --version`
  19476. ICU_MAJOR_FOR_BUILD=`echo $ICU_VERSION_FOR_BUILD | cut -d"." -f1`
  19477. ICU_MINOR_FOR_BUILD=`echo $ICU_VERSION_FOR_BUILD | cut -d"." -f2`
  19478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MinGW and system versions of ICU are compatible" >&5
  19479. $as_echo_n "checking if MinGW and system versions of ICU are compatible... " >&6; }
  19480. if test "$ICU_MAJOR" -eq "$ICU_MAJOR_FOR_BUILD" -a "$ICU_MINOR" -eq "$ICU_MINOR_FOR_BUILD"; then
  19481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19482. $as_echo "yes" >&6; }
  19483. else
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19485. $as_echo "no" >&6; }
  19486. if test "$with_system_icu_for_build" != "force"; then
  19487. as_fn_error $? "System ICU is not version-compatible with MinGW ICU.
  19488. You can use --with-system-icu-for-build=force to use it anyway." "$LINENO" 5
  19489. fi
  19490. fi
  19491. fi
  19492. if test "$cross_compiling" != "yes" -o "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force"; then
  19493. # using the system icu tools can lead to version confusion, use the
  19494. # ones from the build environment when cross-compiling
  19495. # Extract the first word of "genbrk", so it can be a program name with args.
  19496. set dummy genbrk; ac_word=$2
  19497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19498. $as_echo_n "checking for $ac_word... " >&6; }
  19499. if ${ac_cv_path_SYSTEM_GENBRK+:} false; then :
  19500. $as_echo_n "(cached) " >&6
  19501. else
  19502. case $SYSTEM_GENBRK in
  19503. [\\/]* | ?:[\\/]*)
  19504. ac_cv_path_SYSTEM_GENBRK="$SYSTEM_GENBRK" # Let the user override the test with a path.
  19505. ;;
  19506. *)
  19507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19508. as_dummy="$PATH:/usr/sbin:/sbin"
  19509. for as_dir in $as_dummy
  19510. do
  19511. IFS=$as_save_IFS
  19512. test -z "$as_dir" && as_dir=.
  19513. for ac_exec_ext in '' $ac_executable_extensions; do
  19514. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19515. ac_cv_path_SYSTEM_GENBRK="$as_dir/$ac_word$ac_exec_ext"
  19516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19517. break 2
  19518. fi
  19519. done
  19520. done
  19521. IFS=$as_save_IFS
  19522. ;;
  19523. esac
  19524. fi
  19525. SYSTEM_GENBRK=$ac_cv_path_SYSTEM_GENBRK
  19526. if test -n "$SYSTEM_GENBRK"; then
  19527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENBRK" >&5
  19528. $as_echo "$SYSTEM_GENBRK" >&6; }
  19529. else
  19530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19531. $as_echo "no" >&6; }
  19532. fi
  19533. if test -z "$SYSTEM_GENBRK"; then
  19534. as_fn_error $? "\'genbrk\' not found in \$PATH, install the icu development tool \'genbrk\'" "$LINENO" 5
  19535. fi
  19536. # Extract the first word of "genccode", so it can be a program name with args.
  19537. set dummy genccode; ac_word=$2
  19538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19539. $as_echo_n "checking for $ac_word... " >&6; }
  19540. if ${ac_cv_path_SYSTEM_GENCCODE+:} false; then :
  19541. $as_echo_n "(cached) " >&6
  19542. else
  19543. case $SYSTEM_GENCCODE in
  19544. [\\/]* | ?:[\\/]*)
  19545. ac_cv_path_SYSTEM_GENCCODE="$SYSTEM_GENCCODE" # Let the user override the test with a path.
  19546. ;;
  19547. *)
  19548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19549. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  19550. for as_dir in $as_dummy
  19551. do
  19552. IFS=$as_save_IFS
  19553. test -z "$as_dir" && as_dir=.
  19554. for ac_exec_ext in '' $ac_executable_extensions; do
  19555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19556. ac_cv_path_SYSTEM_GENCCODE="$as_dir/$ac_word$ac_exec_ext"
  19557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19558. break 2
  19559. fi
  19560. done
  19561. done
  19562. IFS=$as_save_IFS
  19563. ;;
  19564. esac
  19565. fi
  19566. SYSTEM_GENCCODE=$ac_cv_path_SYSTEM_GENCCODE
  19567. if test -n "$SYSTEM_GENCCODE"; then
  19568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENCCODE" >&5
  19569. $as_echo "$SYSTEM_GENCCODE" >&6; }
  19570. else
  19571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19572. $as_echo "no" >&6; }
  19573. fi
  19574. if test -z "$SYSTEM_GENCCODE"; then
  19575. as_fn_error $? "\'genccode\' not found in \$PATH, install the icu development tool \'genccode\'" "$LINENO" 5
  19576. fi
  19577. # Extract the first word of "gencmn", so it can be a program name with args.
  19578. set dummy gencmn; ac_word=$2
  19579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19580. $as_echo_n "checking for $ac_word... " >&6; }
  19581. if ${ac_cv_path_SYSTEM_GENCMN+:} false; then :
  19582. $as_echo_n "(cached) " >&6
  19583. else
  19584. case $SYSTEM_GENCMN in
  19585. [\\/]* | ?:[\\/]*)
  19586. ac_cv_path_SYSTEM_GENCMN="$SYSTEM_GENCMN" # Let the user override the test with a path.
  19587. ;;
  19588. *)
  19589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19590. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  19591. for as_dir in $as_dummy
  19592. do
  19593. IFS=$as_save_IFS
  19594. test -z "$as_dir" && as_dir=.
  19595. for ac_exec_ext in '' $ac_executable_extensions; do
  19596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19597. ac_cv_path_SYSTEM_GENCMN="$as_dir/$ac_word$ac_exec_ext"
  19598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19599. break 2
  19600. fi
  19601. done
  19602. done
  19603. IFS=$as_save_IFS
  19604. ;;
  19605. esac
  19606. fi
  19607. SYSTEM_GENCMN=$ac_cv_path_SYSTEM_GENCMN
  19608. if test -n "$SYSTEM_GENCMN"; then
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENCMN" >&5
  19610. $as_echo "$SYSTEM_GENCMN" >&6; }
  19611. else
  19612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19613. $as_echo "no" >&6; }
  19614. fi
  19615. if test -z "$SYSTEM_GENCMN"; then
  19616. as_fn_error $? "\'gencmn\' not found in \$PATH, install the icu development tool \'gencmn\'" "$LINENO" 5
  19617. fi
  19618. if test "$ICU_MAJOR" -ge "5" -o "$ICU_MAJOR" = "4" -a "$ICU_MINOR" -ge "4"; then
  19619. ICU_RECLASSIFIED_CLOSE_PARENTHESIS="YES"
  19620. else
  19621. ICU_RECLASSIFIED_CLOSE_PARENTHESIS="NO"
  19622. fi
  19623. if test "$ICU_MAJOR" -ge "5" -o "$ICU_MAJOR" = "4" -a "$ICU_MINOR" -ge "9"; then
  19624. ICU_RECLASSIFIED_PREPEND_SET_EMPTY="YES"
  19625. else
  19626. ICU_RECLASSIFIED_PREPEND_SET_EMPTY="NO"
  19627. fi
  19628. if test "$ICU_MAJOR" -le 4; then
  19629. ICU_RECLASSIFIED_CONDITIONAL_JAPANESE_STARTER="NO"
  19630. ICU_RECLASSIFIED_HEBREW_LETTER="NO"
  19631. fi
  19632. fi
  19633. libo_MINGW_CHECK_DLL(ICUDATA, icudata$ICU_MAJOR$ICU_MINOR)
  19634. libo_MINGW_CHECK_DLL(ICUI18N, icui18n$ICU_MAJOR$ICU_MINOR)
  19635. libo_MINGW_CHECK_DLL(ICUUC, icuuc$ICU_MAJOR$ICU_MINOR)
  19636. else
  19637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  19638. $as_echo "internal" >&6; }
  19639. SYSTEM_ICU="NO"
  19640. BUILD_TYPE="$BUILD_TYPE ICU"
  19641. fi
  19642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable graphite support" >&5
  19643. $as_echo_n "checking whether to enable graphite support... " >&6; }
  19644. if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "$enable_graphite" = "" -o "$enable_graphite" != "no"; then
  19645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19646. $as_echo "yes" >&6; }
  19647. ENABLE_GRAPHITE="TRUE"
  19648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which graphite to use" >&5
  19649. $as_echo_n "checking which graphite to use... " >&6; }
  19650. if test "$with_system_graphite" = "yes"; then
  19651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  19652. $as_echo "external" >&6; }
  19653. SYSTEM_GRAPHITE=YES
  19654. pkg_failed=no
  19655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE" >&5
  19656. $as_echo_n "checking for GRAPHITE... " >&6; }
  19657. if test -n "$GRAPHITE_CFLAGS"; then
  19658. pkg_cv_GRAPHITE_CFLAGS="$GRAPHITE_CFLAGS"
  19659. elif test -n "$PKG_CONFIG"; then
  19660. if test -n "$PKG_CONFIG" && \
  19661. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2 >= 0.9.3 \""; } >&5
  19662. ($PKG_CONFIG --exists --print-errors "graphite2 >= 0.9.3 ") 2>&5
  19663. ac_status=$?
  19664. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19665. test $ac_status = 0; }; then
  19666. pkg_cv_GRAPHITE_CFLAGS=`$PKG_CONFIG --cflags "graphite2 >= 0.9.3 " 2>/dev/null`
  19667. else
  19668. pkg_failed=yes
  19669. fi
  19670. else
  19671. pkg_failed=untried
  19672. fi
  19673. if test -n "$GRAPHITE_LIBS"; then
  19674. pkg_cv_GRAPHITE_LIBS="$GRAPHITE_LIBS"
  19675. elif test -n "$PKG_CONFIG"; then
  19676. if test -n "$PKG_CONFIG" && \
  19677. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2 >= 0.9.3 \""; } >&5
  19678. ($PKG_CONFIG --exists --print-errors "graphite2 >= 0.9.3 ") 2>&5
  19679. ac_status=$?
  19680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19681. test $ac_status = 0; }; then
  19682. pkg_cv_GRAPHITE_LIBS=`$PKG_CONFIG --libs "graphite2 >= 0.9.3 " 2>/dev/null`
  19683. else
  19684. pkg_failed=yes
  19685. fi
  19686. else
  19687. pkg_failed=untried
  19688. fi
  19689. if test $pkg_failed = yes; then
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19691. $as_echo "no" >&6; }
  19692. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19693. _pkg_short_errors_supported=yes
  19694. else
  19695. _pkg_short_errors_supported=no
  19696. fi
  19697. if test $_pkg_short_errors_supported = yes; then
  19698. GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "graphite2 >= 0.9.3 " 2>&1`
  19699. else
  19700. GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "graphite2 >= 0.9.3 " 2>&1`
  19701. fi
  19702. # Put the nasty error message in config.log where it belongs
  19703. echo "$GRAPHITE_PKG_ERRORS" >&5
  19704. as_fn_error $? "Package requirements (graphite2 >= 0.9.3 ) were not met:
  19705. $GRAPHITE_PKG_ERRORS
  19706. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  19707. installed software in a non-standard prefix.
  19708. Alternatively, you may set the environment variables GRAPHITE_CFLAGS
  19709. and GRAPHITE_LIBS to avoid the need to call pkg-config.
  19710. See the pkg-config man page for more details." "$LINENO" 5
  19711. elif test $pkg_failed = untried; then
  19712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19713. $as_echo "no" >&6; }
  19714. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19715. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19716. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  19717. is in your PATH or set the PKG_CONFIG environment variable to the full
  19718. path to pkg-config.
  19719. Alternatively, you may set the environment variables GRAPHITE_CFLAGS
  19720. and GRAPHITE_LIBS to avoid the need to call pkg-config.
  19721. See the pkg-config man page for more details.
  19722. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  19723. See \`config.log' for more details" "$LINENO" 5; }
  19724. else
  19725. GRAPHITE_CFLAGS=$pkg_cv_GRAPHITE_CFLAGS
  19726. GRAPHITE_LIBS=$pkg_cv_GRAPHITE_LIBS
  19727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19728. $as_echo "yes" >&6; }
  19729. fi
  19730. libo_MINGW_CHECK_DLL(GRAPHITE2, libgraphite2)
  19731. else
  19732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  19733. $as_echo "internal" >&6; }
  19734. SYSTEM_GRAPHITE=NO
  19735. BUILD_TYPE="$BUILD_TYPE GRAPHITE"
  19736. fi
  19737. else
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19739. $as_echo "no" >&6; }
  19740. fi
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build nsplugin extension" >&5
  19742. $as_echo_n "checking whether to build nsplugin extension... " >&6; }
  19743. ENABLE_NSPLUGIN=NO
  19744. if test $_os = Darwin -o $_os = iOS -o $_os = Android; then
  19745. enable_gtk=no
  19746. fi
  19747. if test "$enable_nsplugin" != "no"; then
  19748. if test "$enable_gtk" != "no"; then
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19750. $as_echo "yes" >&6; }
  19751. ENABLE_NSPLUGIN=YES
  19752. else
  19753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled gtk2" >&5
  19754. $as_echo "no, disabled gtk2" >&6; }
  19755. fi
  19756. else
  19757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19758. $as_echo "no" >&6; }
  19759. fi
  19760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use X11" >&5
  19761. $as_echo_n "checking whether to use X11... " >&6; }
  19762. WANT_X11="no"
  19763. if test $_os != Darwin -a $_os != WINNT -a $_os != Android -a $_os != iOS -a "$enable_headless" != "yes"; then
  19764. WANT_X11="yes"
  19765. fi
  19766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_X11" >&5
  19767. $as_echo "$WANT_X11" >&6; }
  19768. if test "$WANT_X11" = "yes"; then
  19769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19770. $as_echo_n "checking for X... " >&6; }
  19771. # Check whether --with-x was given.
  19772. if test "${with_x+set}" = set; then :
  19773. withval=$with_x;
  19774. fi
  19775. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19776. if test "x$with_x" = xno; then
  19777. # The user explicitly disabled X.
  19778. have_x=disabled
  19779. else
  19780. case $x_includes,$x_libraries in #(
  19781. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19782. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  19783. $as_echo_n "(cached) " >&6
  19784. else
  19785. # One or both of the vars are not set, and there is no cached value.
  19786. ac_x_includes=no ac_x_libraries=no
  19787. rm -f -r conftest.dir
  19788. if mkdir conftest.dir; then
  19789. cd conftest.dir
  19790. cat >Imakefile <<'_ACEOF'
  19791. incroot:
  19792. @echo incroot='${INCROOT}'
  19793. usrlibdir:
  19794. @echo usrlibdir='${USRLIBDIR}'
  19795. libdir:
  19796. @echo libdir='${LIBDIR}'
  19797. _ACEOF
  19798. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19799. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19800. for ac_var in incroot usrlibdir libdir; do
  19801. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19802. done
  19803. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19804. for ac_extension in a so sl dylib la dll; do
  19805. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19806. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19807. ac_im_usrlibdir=$ac_im_libdir; break
  19808. fi
  19809. done
  19810. # Screen out bogus values from the imake configuration. They are
  19811. # bogus both because they are the default anyway, and because
  19812. # using them would break gcc on systems where it needs fixed includes.
  19813. case $ac_im_incroot in
  19814. /usr/include) ac_x_includes= ;;
  19815. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19816. esac
  19817. case $ac_im_usrlibdir in
  19818. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19819. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19820. esac
  19821. fi
  19822. cd ..
  19823. rm -f -r conftest.dir
  19824. fi
  19825. # Standard set of common directories for X headers.
  19826. # Check X11 before X11Rn because it is often a symlink to the current release.
  19827. ac_x_header_dirs='
  19828. /usr/X11/include
  19829. /usr/X11R7/include
  19830. /usr/X11R6/include
  19831. /usr/X11R5/include
  19832. /usr/X11R4/include
  19833. /usr/include/X11
  19834. /usr/include/X11R7
  19835. /usr/include/X11R6
  19836. /usr/include/X11R5
  19837. /usr/include/X11R4
  19838. /usr/local/X11/include
  19839. /usr/local/X11R7/include
  19840. /usr/local/X11R6/include
  19841. /usr/local/X11R5/include
  19842. /usr/local/X11R4/include
  19843. /usr/local/include/X11
  19844. /usr/local/include/X11R7
  19845. /usr/local/include/X11R6
  19846. /usr/local/include/X11R5
  19847. /usr/local/include/X11R4
  19848. /usr/X386/include
  19849. /usr/x386/include
  19850. /usr/XFree86/include/X11
  19851. /usr/include
  19852. /usr/local/include
  19853. /usr/unsupported/include
  19854. /usr/athena/include
  19855. /usr/local/x11r5/include
  19856. /usr/lpp/Xamples/include
  19857. /usr/openwin/include
  19858. /usr/openwin/share/include'
  19859. if test "$ac_x_includes" = no; then
  19860. # Guess where to find include files, by looking for Xlib.h.
  19861. # First, try using that file with no special directory specified.
  19862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19863. /* end confdefs.h. */
  19864. #include <X11/Xlib.h>
  19865. _ACEOF
  19866. if ac_fn_c_try_cpp "$LINENO"; then :
  19867. # We can compile using X headers with no special include directory.
  19868. ac_x_includes=
  19869. else
  19870. for ac_dir in $ac_x_header_dirs; do
  19871. if test -r "$ac_dir/X11/Xlib.h"; then
  19872. ac_x_includes=$ac_dir
  19873. break
  19874. fi
  19875. done
  19876. fi
  19877. rm -f conftest.err conftest.i conftest.$ac_ext
  19878. fi # $ac_x_includes = no
  19879. if test "$ac_x_libraries" = no; then
  19880. # Check for the libraries.
  19881. # See if we find them without any special options.
  19882. # Don't add to $LIBS permanently.
  19883. ac_save_LIBS=$LIBS
  19884. LIBS="-lX11 $LIBS"
  19885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19886. /* end confdefs.h. */
  19887. #include <X11/Xlib.h>
  19888. int
  19889. main ()
  19890. {
  19891. XrmInitialize ()
  19892. ;
  19893. return 0;
  19894. }
  19895. _ACEOF
  19896. if ac_fn_c_try_link "$LINENO"; then :
  19897. LIBS=$ac_save_LIBS
  19898. # We can link X programs with no special library path.
  19899. ac_x_libraries=
  19900. else
  19901. LIBS=$ac_save_LIBS
  19902. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19903. do
  19904. # Don't even attempt the hair of trying to link an X program!
  19905. for ac_extension in a so sl dylib la dll; do
  19906. if test -r "$ac_dir/libX11.$ac_extension"; then
  19907. ac_x_libraries=$ac_dir
  19908. break 2
  19909. fi
  19910. done
  19911. done
  19912. fi
  19913. rm -f core conftest.err conftest.$ac_objext \
  19914. conftest$ac_exeext conftest.$ac_ext
  19915. fi # $ac_x_libraries = no
  19916. case $ac_x_includes,$ac_x_libraries in #(
  19917. no,* | *,no | *\'*)
  19918. # Didn't find X, or a directory has "'" in its name.
  19919. ac_cv_have_x="have_x=no";; #(
  19920. *)
  19921. # Record where we found X for the cache.
  19922. ac_cv_have_x="have_x=yes\
  19923. ac_x_includes='$ac_x_includes'\
  19924. ac_x_libraries='$ac_x_libraries'"
  19925. esac
  19926. fi
  19927. ;; #(
  19928. *) have_x=yes;;
  19929. esac
  19930. eval "$ac_cv_have_x"
  19931. fi # $with_x != no
  19932. if test "$have_x" != yes; then
  19933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19934. $as_echo "$have_x" >&6; }
  19935. no_x=yes
  19936. else
  19937. # If each of the values was on the command line, it overrides each guess.
  19938. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19939. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19940. # Update the cache value to reflect the command line values.
  19941. ac_cv_have_x="have_x=yes\
  19942. ac_x_includes='$x_includes'\
  19943. ac_x_libraries='$x_libraries'"
  19944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19945. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  19946. fi
  19947. if test "$no_x" = yes; then
  19948. # Not all programs may use this symbol, but it does not hurt to define it.
  19949. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19950. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19951. else
  19952. if test -n "$x_includes"; then
  19953. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19954. fi
  19955. # It would also be nice to do this for all -L options, not just this one.
  19956. if test -n "$x_libraries"; then
  19957. X_LIBS="$X_LIBS -L$x_libraries"
  19958. # For Solaris; some versions of Sun CC require a space after -R and
  19959. # others require no space. Words are not sufficient . . . .
  19960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19961. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  19962. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19963. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19964. ac_c_werror_flag=yes
  19965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19966. /* end confdefs.h. */
  19967. int
  19968. main ()
  19969. {
  19970. ;
  19971. return 0;
  19972. }
  19973. _ACEOF
  19974. if ac_fn_c_try_link "$LINENO"; then :
  19975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19976. $as_echo "no" >&6; }
  19977. X_LIBS="$X_LIBS -R$x_libraries"
  19978. else
  19979. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19981. /* end confdefs.h. */
  19982. int
  19983. main ()
  19984. {
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. if ac_fn_c_try_link "$LINENO"; then :
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19991. $as_echo "yes" >&6; }
  19992. X_LIBS="$X_LIBS -R $x_libraries"
  19993. else
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19995. $as_echo "neither works" >&6; }
  19996. fi
  19997. rm -f core conftest.err conftest.$ac_objext \
  19998. conftest$ac_exeext conftest.$ac_ext
  19999. fi
  20000. rm -f core conftest.err conftest.$ac_objext \
  20001. conftest$ac_exeext conftest.$ac_ext
  20002. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20003. LIBS=$ac_xsave_LIBS
  20004. fi
  20005. # Check for system-dependent libraries X programs must link with.
  20006. # Do this before checking for the system-independent R6 libraries
  20007. # (-lICE), since we may need -lsocket or whatever for X linking.
  20008. if test "$ISC" = yes; then
  20009. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20010. else
  20011. # Martyn Johnson says this is needed for Ultrix, if the X
  20012. # libraries were built with DECnet support. And Karl Berry says
  20013. # the Alpha needs dnet_stub (dnet does not exist).
  20014. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20016. /* end confdefs.h. */
  20017. /* Override any GCC internal prototype to avoid an error.
  20018. Use char because int might match the return type of a GCC
  20019. builtin and then its argument prototype would still apply. */
  20020. #ifdef __cplusplus
  20021. extern "C"
  20022. #endif
  20023. char XOpenDisplay ();
  20024. int
  20025. main ()
  20026. {
  20027. return XOpenDisplay ();
  20028. ;
  20029. return 0;
  20030. }
  20031. _ACEOF
  20032. if ac_fn_c_try_link "$LINENO"; then :
  20033. else
  20034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20035. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  20036. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  20037. $as_echo_n "(cached) " >&6
  20038. else
  20039. ac_check_lib_save_LIBS=$LIBS
  20040. LIBS="-ldnet $LIBS"
  20041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20042. /* end confdefs.h. */
  20043. /* Override any GCC internal prototype to avoid an error.
  20044. Use char because int might match the return type of a GCC
  20045. builtin and then its argument prototype would still apply. */
  20046. #ifdef __cplusplus
  20047. extern "C"
  20048. #endif
  20049. char dnet_ntoa ();
  20050. int
  20051. main ()
  20052. {
  20053. return dnet_ntoa ();
  20054. ;
  20055. return 0;
  20056. }
  20057. _ACEOF
  20058. if ac_fn_c_try_link "$LINENO"; then :
  20059. ac_cv_lib_dnet_dnet_ntoa=yes
  20060. else
  20061. ac_cv_lib_dnet_dnet_ntoa=no
  20062. fi
  20063. rm -f core conftest.err conftest.$ac_objext \
  20064. conftest$ac_exeext conftest.$ac_ext
  20065. LIBS=$ac_check_lib_save_LIBS
  20066. fi
  20067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20068. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20069. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  20070. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20071. fi
  20072. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20074. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20075. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  20076. $as_echo_n "(cached) " >&6
  20077. else
  20078. ac_check_lib_save_LIBS=$LIBS
  20079. LIBS="-ldnet_stub $LIBS"
  20080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20081. /* end confdefs.h. */
  20082. /* Override any GCC internal prototype to avoid an error.
  20083. Use char because int might match the return type of a GCC
  20084. builtin and then its argument prototype would still apply. */
  20085. #ifdef __cplusplus
  20086. extern "C"
  20087. #endif
  20088. char dnet_ntoa ();
  20089. int
  20090. main ()
  20091. {
  20092. return dnet_ntoa ();
  20093. ;
  20094. return 0;
  20095. }
  20096. _ACEOF
  20097. if ac_fn_c_try_link "$LINENO"; then :
  20098. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20099. else
  20100. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20101. fi
  20102. rm -f core conftest.err conftest.$ac_objext \
  20103. conftest$ac_exeext conftest.$ac_ext
  20104. LIBS=$ac_check_lib_save_LIBS
  20105. fi
  20106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20107. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20108. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  20109. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20110. fi
  20111. fi
  20112. fi
  20113. rm -f core conftest.err conftest.$ac_objext \
  20114. conftest$ac_exeext conftest.$ac_ext
  20115. LIBS="$ac_xsave_LIBS"
  20116. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20117. # to get the SysV transport functions.
  20118. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20119. # needs -lnsl.
  20120. # The nsl library prevents programs from opening the X display
  20121. # on Irix 5.2, according to T.E. Dickey.
  20122. # The functions gethostbyname, getservbyname, and inet_addr are
  20123. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20124. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20125. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  20126. fi
  20127. if test $ac_cv_func_gethostbyname = no; then
  20128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20129. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  20130. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  20131. $as_echo_n "(cached) " >&6
  20132. else
  20133. ac_check_lib_save_LIBS=$LIBS
  20134. LIBS="-lnsl $LIBS"
  20135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20136. /* end confdefs.h. */
  20137. /* Override any GCC internal prototype to avoid an error.
  20138. Use char because int might match the return type of a GCC
  20139. builtin and then its argument prototype would still apply. */
  20140. #ifdef __cplusplus
  20141. extern "C"
  20142. #endif
  20143. char gethostbyname ();
  20144. int
  20145. main ()
  20146. {
  20147. return gethostbyname ();
  20148. ;
  20149. return 0;
  20150. }
  20151. _ACEOF
  20152. if ac_fn_c_try_link "$LINENO"; then :
  20153. ac_cv_lib_nsl_gethostbyname=yes
  20154. else
  20155. ac_cv_lib_nsl_gethostbyname=no
  20156. fi
  20157. rm -f core conftest.err conftest.$ac_objext \
  20158. conftest$ac_exeext conftest.$ac_ext
  20159. LIBS=$ac_check_lib_save_LIBS
  20160. fi
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20162. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20163. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  20164. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20165. fi
  20166. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20168. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  20169. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  20170. $as_echo_n "(cached) " >&6
  20171. else
  20172. ac_check_lib_save_LIBS=$LIBS
  20173. LIBS="-lbsd $LIBS"
  20174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20175. /* end confdefs.h. */
  20176. /* Override any GCC internal prototype to avoid an error.
  20177. Use char because int might match the return type of a GCC
  20178. builtin and then its argument prototype would still apply. */
  20179. #ifdef __cplusplus
  20180. extern "C"
  20181. #endif
  20182. char gethostbyname ();
  20183. int
  20184. main ()
  20185. {
  20186. return gethostbyname ();
  20187. ;
  20188. return 0;
  20189. }
  20190. _ACEOF
  20191. if ac_fn_c_try_link "$LINENO"; then :
  20192. ac_cv_lib_bsd_gethostbyname=yes
  20193. else
  20194. ac_cv_lib_bsd_gethostbyname=no
  20195. fi
  20196. rm -f core conftest.err conftest.$ac_objext \
  20197. conftest$ac_exeext conftest.$ac_ext
  20198. LIBS=$ac_check_lib_save_LIBS
  20199. fi
  20200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20201. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20202. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  20203. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20204. fi
  20205. fi
  20206. fi
  20207. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20208. # socket/setsockopt and other routines are undefined under SCO ODT
  20209. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20210. # on later versions), says Simon Leinen: it contains gethostby*
  20211. # variants that don't use the name server (or something). -lsocket
  20212. # must be given before -lnsl if both are needed. We assume that
  20213. # if connect needs -lnsl, so does gethostbyname.
  20214. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20215. if test "x$ac_cv_func_connect" = xyes; then :
  20216. fi
  20217. if test $ac_cv_func_connect = no; then
  20218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20219. $as_echo_n "checking for connect in -lsocket... " >&6; }
  20220. if ${ac_cv_lib_socket_connect+:} false; then :
  20221. $as_echo_n "(cached) " >&6
  20222. else
  20223. ac_check_lib_save_LIBS=$LIBS
  20224. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20226. /* end confdefs.h. */
  20227. /* Override any GCC internal prototype to avoid an error.
  20228. Use char because int might match the return type of a GCC
  20229. builtin and then its argument prototype would still apply. */
  20230. #ifdef __cplusplus
  20231. extern "C"
  20232. #endif
  20233. char connect ();
  20234. int
  20235. main ()
  20236. {
  20237. return connect ();
  20238. ;
  20239. return 0;
  20240. }
  20241. _ACEOF
  20242. if ac_fn_c_try_link "$LINENO"; then :
  20243. ac_cv_lib_socket_connect=yes
  20244. else
  20245. ac_cv_lib_socket_connect=no
  20246. fi
  20247. rm -f core conftest.err conftest.$ac_objext \
  20248. conftest$ac_exeext conftest.$ac_ext
  20249. LIBS=$ac_check_lib_save_LIBS
  20250. fi
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20252. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  20253. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  20254. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20255. fi
  20256. fi
  20257. # Guillermo Gomez says -lposix is necessary on A/UX.
  20258. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20259. if test "x$ac_cv_func_remove" = xyes; then :
  20260. fi
  20261. if test $ac_cv_func_remove = no; then
  20262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20263. $as_echo_n "checking for remove in -lposix... " >&6; }
  20264. if ${ac_cv_lib_posix_remove+:} false; then :
  20265. $as_echo_n "(cached) " >&6
  20266. else
  20267. ac_check_lib_save_LIBS=$LIBS
  20268. LIBS="-lposix $LIBS"
  20269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20270. /* end confdefs.h. */
  20271. /* Override any GCC internal prototype to avoid an error.
  20272. Use char because int might match the return type of a GCC
  20273. builtin and then its argument prototype would still apply. */
  20274. #ifdef __cplusplus
  20275. extern "C"
  20276. #endif
  20277. char remove ();
  20278. int
  20279. main ()
  20280. {
  20281. return remove ();
  20282. ;
  20283. return 0;
  20284. }
  20285. _ACEOF
  20286. if ac_fn_c_try_link "$LINENO"; then :
  20287. ac_cv_lib_posix_remove=yes
  20288. else
  20289. ac_cv_lib_posix_remove=no
  20290. fi
  20291. rm -f core conftest.err conftest.$ac_objext \
  20292. conftest$ac_exeext conftest.$ac_ext
  20293. LIBS=$ac_check_lib_save_LIBS
  20294. fi
  20295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20296. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  20297. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  20298. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20299. fi
  20300. fi
  20301. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20302. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20303. if test "x$ac_cv_func_shmat" = xyes; then :
  20304. fi
  20305. if test $ac_cv_func_shmat = no; then
  20306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20307. $as_echo_n "checking for shmat in -lipc... " >&6; }
  20308. if ${ac_cv_lib_ipc_shmat+:} false; then :
  20309. $as_echo_n "(cached) " >&6
  20310. else
  20311. ac_check_lib_save_LIBS=$LIBS
  20312. LIBS="-lipc $LIBS"
  20313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20314. /* end confdefs.h. */
  20315. /* Override any GCC internal prototype to avoid an error.
  20316. Use char because int might match the return type of a GCC
  20317. builtin and then its argument prototype would still apply. */
  20318. #ifdef __cplusplus
  20319. extern "C"
  20320. #endif
  20321. char shmat ();
  20322. int
  20323. main ()
  20324. {
  20325. return shmat ();
  20326. ;
  20327. return 0;
  20328. }
  20329. _ACEOF
  20330. if ac_fn_c_try_link "$LINENO"; then :
  20331. ac_cv_lib_ipc_shmat=yes
  20332. else
  20333. ac_cv_lib_ipc_shmat=no
  20334. fi
  20335. rm -f core conftest.err conftest.$ac_objext \
  20336. conftest$ac_exeext conftest.$ac_ext
  20337. LIBS=$ac_check_lib_save_LIBS
  20338. fi
  20339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20340. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  20341. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  20342. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20343. fi
  20344. fi
  20345. fi
  20346. # Check for libraries that X11R6 Xt/Xaw programs need.
  20347. ac_save_LDFLAGS=$LDFLAGS
  20348. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20349. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20350. # check for ICE first), but we must link in the order -lSM -lICE or
  20351. # we get undefined symbols. So assume we have SM if we have ICE.
  20352. # These have to be linked with before -lX11, unlike the other
  20353. # libraries we check for below, so use a different variable.
  20354. # John Interrante, Karl Berry
  20355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20356. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  20357. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  20358. $as_echo_n "(cached) " >&6
  20359. else
  20360. ac_check_lib_save_LIBS=$LIBS
  20361. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20363. /* end confdefs.h. */
  20364. /* Override any GCC internal prototype to avoid an error.
  20365. Use char because int might match the return type of a GCC
  20366. builtin and then its argument prototype would still apply. */
  20367. #ifdef __cplusplus
  20368. extern "C"
  20369. #endif
  20370. char IceConnectionNumber ();
  20371. int
  20372. main ()
  20373. {
  20374. return IceConnectionNumber ();
  20375. ;
  20376. return 0;
  20377. }
  20378. _ACEOF
  20379. if ac_fn_c_try_link "$LINENO"; then :
  20380. ac_cv_lib_ICE_IceConnectionNumber=yes
  20381. else
  20382. ac_cv_lib_ICE_IceConnectionNumber=no
  20383. fi
  20384. rm -f core conftest.err conftest.$ac_objext \
  20385. conftest$ac_exeext conftest.$ac_ext
  20386. LIBS=$ac_check_lib_save_LIBS
  20387. fi
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20389. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20390. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  20391. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20392. fi
  20393. LDFLAGS=$ac_save_LDFLAGS
  20394. fi
  20395. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  20396. if test "x$x_includes" = "x"; then
  20397. x_includes="default_x_includes"
  20398. fi
  20399. if test "x$x_libraries" = "x"; then
  20400. x_libraries="default_x_libraries"
  20401. fi
  20402. if test -z "$x_libraries"; then
  20403. as_fn_error $? "No X libraries found" "$LINENO" 5 # Exit
  20404. fi
  20405. if test -z "$x_includes"; then
  20406. as_fn_error $? "No X includes found" "$LINENO" 5 # Exit
  20407. fi
  20408. CFLAGS="$CFLAGS $X_CFLAGS"
  20409. LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
  20410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
  20411. $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
  20412. if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
  20413. $as_echo_n "(cached) " >&6
  20414. else
  20415. ac_check_lib_save_LIBS=$LIBS
  20416. LIBS="-lX11 $LIBS"
  20417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20418. /* end confdefs.h. */
  20419. /* Override any GCC internal prototype to avoid an error.
  20420. Use char because int might match the return type of a GCC
  20421. builtin and then its argument prototype would still apply. */
  20422. #ifdef __cplusplus
  20423. extern "C"
  20424. #endif
  20425. char XOpenDisplay ();
  20426. int
  20427. main ()
  20428. {
  20429. return XOpenDisplay ();
  20430. ;
  20431. return 0;
  20432. }
  20433. _ACEOF
  20434. if ac_fn_c_try_link "$LINENO"; then :
  20435. ac_cv_lib_X11_XOpenDisplay=yes
  20436. else
  20437. ac_cv_lib_X11_XOpenDisplay=no
  20438. fi
  20439. rm -f core conftest.err conftest.$ac_objext \
  20440. conftest$ac_exeext conftest.$ac_ext
  20441. LIBS=$ac_check_lib_save_LIBS
  20442. fi
  20443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
  20444. $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
  20445. if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
  20446. x_libs="-lX11 $X_EXTRA_LIBS"
  20447. else
  20448. as_fn_error $? "X Development libraries not found" "$LINENO" 5
  20449. fi
  20450. else
  20451. x_includes="no_x_includes"
  20452. x_libraries="no_x_libraries"
  20453. fi
  20454. if test -z "$x_includes"; then
  20455. x_includes="no_x_includes"
  20456. fi
  20457. if test -z "$x_libraries"; then
  20458. x_libraries="no_x_libraries"
  20459. fi
  20460. if test "$x_includes" = "default_x_includes"; then
  20461. XINC="/usr/include"
  20462. else
  20463. XINC="$x_includes"
  20464. fi
  20465. if test "$x_libraries" = "default_x_libraries"; then
  20466. XLIB=`$PKG_CONFIG --variable=libdir x11`
  20467. if test "x$XLIB" = x; then
  20468. XLIB="/usr/lib"
  20469. fi
  20470. else
  20471. XLIB="$x_libraries"
  20472. fi
  20473. if test "$XLIB" != "no_x_libraries" -a "$XLIB" != "/usr/lib" -a "$XLIB" != "/usr/lib64"; then
  20474. SOLARLIB="$SOLARLIB -L$XLIB"
  20475. fi
  20476. if test "$XINC" != "no_x_includes" -a "$XINC" != "/usr/include"; then
  20477. SOLARINC="$SOLARINC -I$XINC"
  20478. fi
  20479. if test "$WANT_X11" = "yes"; then
  20480. for ac_header in X11/Composite.h
  20481. do :
  20482. ac_fn_c_check_header_compile "$LINENO" "X11/Composite.h" "ac_cv_header_X11_Composite_h" "#include <X11/Intrinsic.h>
  20483. "
  20484. if test "x$ac_cv_header_X11_Composite_h" = xyes; then :
  20485. cat >>confdefs.h <<_ACEOF
  20486. #define HAVE_X11_COMPOSITE_H 1
  20487. _ACEOF
  20488. else
  20489. as_fn_error $? "Xt headers not found" "$LINENO" 5
  20490. fi
  20491. done
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use internal X11 extensions headers" >&5
  20493. $as_echo_n "checking whether to use internal X11 extensions headers... " >&6; }
  20494. if test "$with_system_xextensions_headers" != "no"; then
  20495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20496. $as_echo "no" >&6; }
  20497. for ac_header in X11/extensions/shape.h
  20498. do :
  20499. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/extensions/shape.h>
  20500. "
  20501. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  20502. cat >>confdefs.h <<_ACEOF
  20503. #define HAVE_X11_EXTENSIONS_SHAPE_H 1
  20504. _ACEOF
  20505. else
  20506. as_fn_error $? "libXext headers not found" "$LINENO" 5
  20507. fi
  20508. done
  20509. else
  20510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20511. $as_echo "yes" >&6; }
  20512. BUILD_TYPE="$BUILD_TYPE X11_EXTENSIONS"
  20513. fi
  20514. fi
  20515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Xrender" >&5
  20516. $as_echo_n "checking whether to use Xrender... " >&6; }
  20517. if test "$WANT_X11" = "yes" -a "$test_xrender" = "yes"; then
  20518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20519. $as_echo "yes" >&6; }
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
  20521. $as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
  20522. if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
  20523. $as_echo_n "(cached) " >&6
  20524. else
  20525. ac_check_lib_save_LIBS=$LIBS
  20526. LIBS="-lXrender $LIBS"
  20527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20528. /* end confdefs.h. */
  20529. /* Override any GCC internal prototype to avoid an error.
  20530. Use char because int might match the return type of a GCC
  20531. builtin and then its argument prototype would still apply. */
  20532. #ifdef __cplusplus
  20533. extern "C"
  20534. #endif
  20535. char XRenderQueryVersion ();
  20536. int
  20537. main ()
  20538. {
  20539. return XRenderQueryVersion ();
  20540. ;
  20541. return 0;
  20542. }
  20543. _ACEOF
  20544. if ac_fn_c_try_link "$LINENO"; then :
  20545. ac_cv_lib_Xrender_XRenderQueryVersion=yes
  20546. else
  20547. ac_cv_lib_Xrender_XRenderQueryVersion=no
  20548. fi
  20549. rm -f core conftest.err conftest.$ac_objext \
  20550. conftest$ac_exeext conftest.$ac_ext
  20551. LIBS=$ac_check_lib_save_LIBS
  20552. fi
  20553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
  20554. $as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
  20555. if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
  20556. :
  20557. else
  20558. as_fn_error $? "libXrender not found or functional" "$LINENO" 5
  20559. fi
  20560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Xrender headers to use" >&5
  20561. $as_echo_n "checking which Xrender headers to use... " >&6; }
  20562. if test "$with_system_xextensions_headers" != "no"; then
  20563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  20564. $as_echo "external" >&6; }
  20565. ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
  20566. if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
  20567. else
  20568. as_fn_error $? "Xrender not found. install X" "$LINENO" 5
  20569. fi
  20570. else
  20571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  20572. $as_echo "internal" >&6; }
  20573. fi
  20574. else
  20575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20576. $as_echo "no" >&6; }
  20577. fi
  20578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RandR support" >&5
  20579. $as_echo_n "checking whether to enable RandR support... " >&6; }
  20580. if test "$WANT_X11" = "yes" -a "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \); then
  20581. if test -z "$enable_randr_link" -o "$enable_randr_link" = "no"; then
  20582. XRANDR_DLOPEN="TRUE"
  20583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: configured to dlopen libXrandr at runtime" >&5
  20584. $as_echo "configured to dlopen libXrandr at runtime" >&6; }
  20585. else
  20586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20587. $as_echo "yes" >&6; }
  20588. XRANDR_DLOPEN="FALSE"
  20589. pkg_failed=no
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
  20591. $as_echo_n "checking for XRANDR... " >&6; }
  20592. if test -n "$XRANDR_CFLAGS"; then
  20593. pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
  20594. elif test -n "$PKG_CONFIG"; then
  20595. if test -n "$PKG_CONFIG" && \
  20596. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
  20597. ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
  20598. ac_status=$?
  20599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20600. test $ac_status = 0; }; then
  20601. pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2" 2>/dev/null`
  20602. else
  20603. pkg_failed=yes
  20604. fi
  20605. else
  20606. pkg_failed=untried
  20607. fi
  20608. if test -n "$XRANDR_LIBS"; then
  20609. pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
  20610. elif test -n "$PKG_CONFIG"; then
  20611. if test -n "$PKG_CONFIG" && \
  20612. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2\""; } >&5
  20613. ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2") 2>&5
  20614. ac_status=$?
  20615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20616. test $ac_status = 0; }; then
  20617. pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2" 2>/dev/null`
  20618. else
  20619. pkg_failed=yes
  20620. fi
  20621. else
  20622. pkg_failed=untried
  20623. fi
  20624. if test $pkg_failed = yes; then
  20625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20626. $as_echo "no" >&6; }
  20627. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20628. _pkg_short_errors_supported=yes
  20629. else
  20630. _pkg_short_errors_supported=no
  20631. fi
  20632. if test $_pkg_short_errors_supported = yes; then
  20633. XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.2" 2>&1`
  20634. else
  20635. XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.2" 2>&1`
  20636. fi
  20637. # Put the nasty error message in config.log where it belongs
  20638. echo "$XRANDR_PKG_ERRORS" >&5
  20639. ENABLE_RANDR=""
  20640. elif test $pkg_failed = untried; then
  20641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20642. $as_echo "no" >&6; }
  20643. ENABLE_RANDR=""
  20644. else
  20645. XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
  20646. XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
  20647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20648. $as_echo "yes" >&6; }
  20649. ENABLE_RANDR="TRUE"
  20650. fi
  20651. if test "$ENABLE_RANDR" != "TRUE"; then
  20652. ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
  20653. if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
  20654. else
  20655. as_fn_error $? "X11/extensions/Xrandr.h could not be found. X11 dev missing?" "$LINENO" 5
  20656. fi
  20657. XRANDR_CFLAGS=" "
  20658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20659. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20660. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  20661. $as_echo_n "(cached) " >&6
  20662. else
  20663. ac_check_lib_save_LIBS=$LIBS
  20664. LIBS="-lXrandr $LIBS"
  20665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20666. /* end confdefs.h. */
  20667. /* Override any GCC internal prototype to avoid an error.
  20668. Use char because int might match the return type of a GCC
  20669. builtin and then its argument prototype would still apply. */
  20670. #ifdef __cplusplus
  20671. extern "C"
  20672. #endif
  20673. char XRRQueryExtension ();
  20674. int
  20675. main ()
  20676. {
  20677. return XRRQueryExtension ();
  20678. ;
  20679. return 0;
  20680. }
  20681. _ACEOF
  20682. if ac_fn_c_try_link "$LINENO"; then :
  20683. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20684. else
  20685. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20686. fi
  20687. rm -f core conftest.err conftest.$ac_objext \
  20688. conftest$ac_exeext conftest.$ac_ext
  20689. LIBS=$ac_check_lib_save_LIBS
  20690. fi
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20692. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20693. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  20694. :
  20695. else
  20696. as_fn_error $? "libXrandr not found or functional" "$LINENO" 5
  20697. fi
  20698. XRANDR_LIBS="-lXrandr "
  20699. ENABLE_RANDR="TRUE"
  20700. fi
  20701. fi
  20702. else
  20703. ENABLE_RANDR=""
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20705. $as_echo "no" >&6; }
  20706. fi
  20707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use neon" >&5
  20708. $as_echo_n "checking whether to use neon... " >&6; }
  20709. if test "$enable_neon" = "no"; then
  20710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20711. $as_echo "no" >&6; }
  20712. DISABLE_NEON=TRUE
  20713. else
  20714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20715. $as_echo "yes" >&6; }
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which neon to use" >&5
  20717. $as_echo_n "checking which neon to use... " >&6; }
  20718. if test "$with_system_neon" = "yes"; then
  20719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  20720. $as_echo "external" >&6; }
  20721. pkg_failed=no
  20722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
  20723. $as_echo_n "checking for NEON... " >&6; }
  20724. if test -n "$NEON_CFLAGS"; then
  20725. pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
  20726. elif test -n "$PKG_CONFIG"; then
  20727. if test -n "$PKG_CONFIG" && \
  20728. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.26.0\""; } >&5
  20729. ($PKG_CONFIG --exists --print-errors "neon >= 0.26.0") 2>&5
  20730. ac_status=$?
  20731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20732. test $ac_status = 0; }; then
  20733. pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.26.0" 2>/dev/null`
  20734. else
  20735. pkg_failed=yes
  20736. fi
  20737. else
  20738. pkg_failed=untried
  20739. fi
  20740. if test -n "$NEON_LIBS"; then
  20741. pkg_cv_NEON_LIBS="$NEON_LIBS"
  20742. elif test -n "$PKG_CONFIG"; then
  20743. if test -n "$PKG_CONFIG" && \
  20744. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.26.0\""; } >&5
  20745. ($PKG_CONFIG --exists --print-errors "neon >= 0.26.0") 2>&5
  20746. ac_status=$?
  20747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20748. test $ac_status = 0; }; then
  20749. pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.26.0" 2>/dev/null`
  20750. else
  20751. pkg_failed=yes
  20752. fi
  20753. else
  20754. pkg_failed=untried
  20755. fi
  20756. if test $pkg_failed = yes; then
  20757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20758. $as_echo "no" >&6; }
  20759. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20760. _pkg_short_errors_supported=yes
  20761. else
  20762. _pkg_short_errors_supported=no
  20763. fi
  20764. if test $_pkg_short_errors_supported = yes; then
  20765. NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "neon >= 0.26.0" 2>&1`
  20766. else
  20767. NEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "neon >= 0.26.0" 2>&1`
  20768. fi
  20769. # Put the nasty error message in config.log where it belongs
  20770. echo "$NEON_PKG_ERRORS" >&5
  20771. as_fn_error $? "you need neon >= 0.26.x for system-neon" "$LINENO" 5
  20772. elif test $pkg_failed = untried; then
  20773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20774. $as_echo "no" >&6; }
  20775. as_fn_error $? "you need neon >= 0.26.x for system-neon" "$LINENO" 5
  20776. else
  20777. NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
  20778. NEON_LIBS=$pkg_cv_NEON_LIBS
  20779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20780. $as_echo "yes" >&6; }
  20781. fi
  20782. NEON_VERSION="`$PKG_CONFIG --modversion neon | $SED 's/\.//g'`"
  20783. NEON_CFLAGS="$NEON_CFLAGS -DSYSTEM_NEON -DUSE_DAV_LOCKS=1"
  20784. SYSTEM_NEON=YES
  20785. libo_MINGW_CHECK_DLL(NEON, libneon)
  20786. libo_MINGW_TRY_DLL(TASN1, libtasn1)
  20787. libo_MINGW_TRY_DLL(GNUTLS, libgnutls)
  20788. else
  20789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  20790. $as_echo "internal" >&6; }
  20791. SYSTEM_NEON=NO
  20792. NEON_LIBS=-lneon
  20793. NEON_CFLAGS=
  20794. BUILD_TYPE="$BUILD_TYPE NEON"
  20795. fi
  20796. fi
  20797. if test "$_os" = "Darwin" -o "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o \
  20798. "$_os" = "DragonFly" && test "$with_system_openssl" != "no"; then
  20799. with_system_openssl=yes
  20800. fi
  20801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libssl to use" >&5
  20802. $as_echo_n "checking which libssl to use... " >&6; }
  20803. if test "$with_system_openssl" = "yes"; then
  20804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  20805. $as_echo "external" >&6; }
  20806. # Mac OS builds should get out without extra stuff is the Mac porters'
  20807. # wish. And pkg-config is although Xcode ships a .pc for openssl
  20808. if test "$_os" = "Darwin" -o "$_os" = "NetBSD" -o "$_os" = "OpenBSD" -o \
  20809. "$_os" = "DragonFly"; then
  20810. OPENSSL_CFLAGS=
  20811. OPENSSL_LIBS="-lssl -lcrypto"
  20812. else
  20813. pkg_failed=no
  20814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
  20815. $as_echo_n "checking for OPENSSL... " >&6; }
  20816. if test -n "$OPENSSL_CFLAGS"; then
  20817. pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  20818. elif test -n "$PKG_CONFIG"; then
  20819. if test -n "$PKG_CONFIG" && \
  20820. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl \""; } >&5
  20821. ($PKG_CONFIG --exists --print-errors "openssl ") 2>&5
  20822. ac_status=$?
  20823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20824. test $ac_status = 0; }; then
  20825. pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl " 2>/dev/null`
  20826. else
  20827. pkg_failed=yes
  20828. fi
  20829. else
  20830. pkg_failed=untried
  20831. fi
  20832. if test -n "$OPENSSL_LIBS"; then
  20833. pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  20834. elif test -n "$PKG_CONFIG"; then
  20835. if test -n "$PKG_CONFIG" && \
  20836. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl \""; } >&5
  20837. ($PKG_CONFIG --exists --print-errors "openssl ") 2>&5
  20838. ac_status=$?
  20839. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20840. test $ac_status = 0; }; then
  20841. pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl " 2>/dev/null`
  20842. else
  20843. pkg_failed=yes
  20844. fi
  20845. else
  20846. pkg_failed=untried
  20847. fi
  20848. if test $pkg_failed = yes; then
  20849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20850. $as_echo "no" >&6; }
  20851. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20852. _pkg_short_errors_supported=yes
  20853. else
  20854. _pkg_short_errors_supported=no
  20855. fi
  20856. if test $_pkg_short_errors_supported = yes; then
  20857. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl " 2>&1`
  20858. else
  20859. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl " 2>&1`
  20860. fi
  20861. # Put the nasty error message in config.log where it belongs
  20862. echo "$OPENSSL_PKG_ERRORS" >&5
  20863. as_fn_error $? "Package requirements (openssl ) were not met:
  20864. $OPENSSL_PKG_ERRORS
  20865. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  20866. installed software in a non-standard prefix.
  20867. Alternatively, you may set the environment variables OPENSSL_CFLAGS
  20868. and OPENSSL_LIBS to avoid the need to call pkg-config.
  20869. See the pkg-config man page for more details." "$LINENO" 5
  20870. elif test $pkg_failed = untried; then
  20871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20872. $as_echo "no" >&6; }
  20873. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20875. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  20876. is in your PATH or set the PKG_CONFIG environment variable to the full
  20877. path to pkg-config.
  20878. Alternatively, you may set the environment variables OPENSSL_CFLAGS
  20879. and OPENSSL_LIBS to avoid the need to call pkg-config.
  20880. See the pkg-config man page for more details.
  20881. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  20882. See \`config.log' for more details" "$LINENO" 5; }
  20883. else
  20884. OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
  20885. OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
  20886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20887. $as_echo "yes" >&6; }
  20888. fi
  20889. fi
  20890. SYSTEM_OPENSSL=YES
  20891. libo_MINGW_CHECK_DLL(SSL, libssl)
  20892. libo_MINGW_CHECK_DLL(CRYPTO, libcrypto)
  20893. else
  20894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  20895. $as_echo "internal" >&6; }
  20896. SYSTEM_OPENSSL=NO
  20897. BUILD_TYPE="$BUILD_TYPE OPENSSL"
  20898. fi
  20899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which redland library to use" >&5
  20900. $as_echo_n "checking which redland library to use... " >&6; }
  20901. if test "$with_system_redland" = "yes"; then
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  20903. $as_echo "external" >&6; }
  20904. SYSTEM_REDLAND=YES
  20905. pkg_failed=no
  20906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for REDLAND" >&5
  20907. $as_echo_n "checking for REDLAND... " >&6; }
  20908. if test -n "$REDLAND_CFLAGS"; then
  20909. pkg_cv_REDLAND_CFLAGS="$REDLAND_CFLAGS"
  20910. elif test -n "$PKG_CONFIG"; then
  20911. if test -n "$PKG_CONFIG" && \
  20912. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"redland >= 1.0.8\""; } >&5
  20913. ($PKG_CONFIG --exists --print-errors "redland >= 1.0.8") 2>&5
  20914. ac_status=$?
  20915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20916. test $ac_status = 0; }; then
  20917. pkg_cv_REDLAND_CFLAGS=`$PKG_CONFIG --cflags "redland >= 1.0.8" 2>/dev/null`
  20918. else
  20919. pkg_failed=yes
  20920. fi
  20921. else
  20922. pkg_failed=untried
  20923. fi
  20924. if test -n "$REDLAND_LIBS"; then
  20925. pkg_cv_REDLAND_LIBS="$REDLAND_LIBS"
  20926. elif test -n "$PKG_CONFIG"; then
  20927. if test -n "$PKG_CONFIG" && \
  20928. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"redland >= 1.0.8\""; } >&5
  20929. ($PKG_CONFIG --exists --print-errors "redland >= 1.0.8") 2>&5
  20930. ac_status=$?
  20931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20932. test $ac_status = 0; }; then
  20933. pkg_cv_REDLAND_LIBS=`$PKG_CONFIG --libs "redland >= 1.0.8" 2>/dev/null`
  20934. else
  20935. pkg_failed=yes
  20936. fi
  20937. else
  20938. pkg_failed=untried
  20939. fi
  20940. if test $pkg_failed = yes; then
  20941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20942. $as_echo "no" >&6; }
  20943. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20944. _pkg_short_errors_supported=yes
  20945. else
  20946. _pkg_short_errors_supported=no
  20947. fi
  20948. if test $_pkg_short_errors_supported = yes; then
  20949. REDLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "redland >= 1.0.8" 2>&1`
  20950. else
  20951. REDLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors "redland >= 1.0.8" 2>&1`
  20952. fi
  20953. # Put the nasty error message in config.log where it belongs
  20954. echo "$REDLAND_PKG_ERRORS" >&5
  20955. as_fn_error $? "Package requirements (redland >= 1.0.8) were not met:
  20956. $REDLAND_PKG_ERRORS
  20957. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  20958. installed software in a non-standard prefix.
  20959. Alternatively, you may set the environment variables REDLAND_CFLAGS
  20960. and REDLAND_LIBS to avoid the need to call pkg-config.
  20961. See the pkg-config man page for more details." "$LINENO" 5
  20962. elif test $pkg_failed = untried; then
  20963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20964. $as_echo "no" >&6; }
  20965. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20966. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20967. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  20968. is in your PATH or set the PKG_CONFIG environment variable to the full
  20969. path to pkg-config.
  20970. Alternatively, you may set the environment variables REDLAND_CFLAGS
  20971. and REDLAND_LIBS to avoid the need to call pkg-config.
  20972. See the pkg-config man page for more details.
  20973. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  20974. See \`config.log' for more details" "$LINENO" 5; }
  20975. else
  20976. REDLAND_CFLAGS=$pkg_cv_REDLAND_CFLAGS
  20977. REDLAND_LIBS=$pkg_cv_REDLAND_LIBS
  20978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20979. $as_echo "yes" >&6; }
  20980. fi
  20981. libo_MINGW_CHECK_DLL(REDLAND, librdf)
  20982. libo_MINGW_TRY_DLL(RAPTOR, libraptor)
  20983. libo_MINGW_TRY_DLL(RASQAL, librasqal)
  20984. libo_MINGW_TRY_DLL(SQLITE3, libsqlite3)
  20985. else
  20986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  20987. $as_echo "internal" >&6; }
  20988. BUILD_TYPE="$BUILD_TYPE REDLAND"
  20989. SYSTEM_REDLAND=NO
  20990. fi
  20991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libhunspell to use" >&5
  20992. $as_echo_n "checking which libhunspell to use... " >&6; }
  20993. if test "$with_system_hunspell" = "yes"; then
  20994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  20995. $as_echo "external" >&6; }
  20996. SYSTEM_HUNSPELL=YES
  20997. ac_ext=cpp
  20998. ac_cpp='$CXXCPP $CPPFLAGS'
  20999. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21000. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21001. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21002. pkg_failed=no
  21003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUNSPELL" >&5
  21004. $as_echo_n "checking for HUNSPELL... " >&6; }
  21005. if test -n "$HUNSPELL_CFLAGS"; then
  21006. pkg_cv_HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS"
  21007. elif test -n "$PKG_CONFIG"; then
  21008. if test -n "$PKG_CONFIG" && \
  21009. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell\""; } >&5
  21010. ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
  21011. ac_status=$?
  21012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21013. test $ac_status = 0; }; then
  21014. pkg_cv_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell" 2>/dev/null`
  21015. else
  21016. pkg_failed=yes
  21017. fi
  21018. else
  21019. pkg_failed=untried
  21020. fi
  21021. if test -n "$HUNSPELL_LIBS"; then
  21022. pkg_cv_HUNSPELL_LIBS="$HUNSPELL_LIBS"
  21023. elif test -n "$PKG_CONFIG"; then
  21024. if test -n "$PKG_CONFIG" && \
  21025. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell\""; } >&5
  21026. ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
  21027. ac_status=$?
  21028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21029. test $ac_status = 0; }; then
  21030. pkg_cv_HUNSPELL_LIBS=`$PKG_CONFIG --libs "hunspell" 2>/dev/null`
  21031. else
  21032. pkg_failed=yes
  21033. fi
  21034. else
  21035. pkg_failed=untried
  21036. fi
  21037. if test $pkg_failed = yes; then
  21038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21039. $as_echo "no" >&6; }
  21040. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21041. _pkg_short_errors_supported=yes
  21042. else
  21043. _pkg_short_errors_supported=no
  21044. fi
  21045. if test $_pkg_short_errors_supported = yes; then
  21046. HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hunspell" 2>&1`
  21047. else
  21048. HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hunspell" 2>&1`
  21049. fi
  21050. # Put the nasty error message in config.log where it belongs
  21051. echo "$HUNSPELL_PKG_ERRORS" >&5
  21052. HUNSPELL_PC=""
  21053. elif test $pkg_failed = untried; then
  21054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21055. $as_echo "no" >&6; }
  21056. HUNSPELL_PC=""
  21057. else
  21058. HUNSPELL_CFLAGS=$pkg_cv_HUNSPELL_CFLAGS
  21059. HUNSPELL_LIBS=$pkg_cv_HUNSPELL_LIBS
  21060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21061. $as_echo "yes" >&6; }
  21062. HUNSPELL_PC="TRUE"
  21063. fi
  21064. if test "$HUNSPELL_PC" != "TRUE"; then
  21065. ac_fn_cxx_check_header_mongrel "$LINENO" "hunspell.hxx" "ac_cv_header_hunspell_hxx" "$ac_includes_default"
  21066. if test "x$ac_cv_header_hunspell_hxx" = xyes; then :
  21067. else
  21068. ac_fn_cxx_check_header_mongrel "$LINENO" "hunspell/hunspell.hxx" "ac_cv_header_hunspell_hunspell_hxx" "$ac_includes_default"
  21069. if test "x$ac_cv_header_hunspell_hunspell_hxx" = xyes; then :
  21070. HUNSPELL_CFLAGS=-I/usr/include/hunspell
  21071. else
  21072. as_fn_error $? "hunspell headers not found." "$LINENO" 5
  21073. fi
  21074. fi
  21075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lhunspell" >&5
  21076. $as_echo_n "checking for main in -lhunspell... " >&6; }
  21077. if ${ac_cv_lib_hunspell_main+:} false; then :
  21078. $as_echo_n "(cached) " >&6
  21079. else
  21080. ac_check_lib_save_LIBS=$LIBS
  21081. LIBS="-lhunspell $LIBS"
  21082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21083. /* end confdefs.h. */
  21084. int
  21085. main ()
  21086. {
  21087. return main ();
  21088. ;
  21089. return 0;
  21090. }
  21091. _ACEOF
  21092. if ac_fn_cxx_try_link "$LINENO"; then :
  21093. ac_cv_lib_hunspell_main=yes
  21094. else
  21095. ac_cv_lib_hunspell_main=no
  21096. fi
  21097. rm -f core conftest.err conftest.$ac_objext \
  21098. conftest$ac_exeext conftest.$ac_ext
  21099. LIBS=$ac_check_lib_save_LIBS
  21100. fi
  21101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hunspell_main" >&5
  21102. $as_echo "$ac_cv_lib_hunspell_main" >&6; }
  21103. if test "x$ac_cv_lib_hunspell_main" = xyes; then :
  21104. :
  21105. else
  21106. as_fn_error $? "hunspell library not found." "$LINENO" 5
  21107. fi
  21108. HUNSPELL_LIBS=-lhunspell
  21109. fi
  21110. ac_ext=c
  21111. ac_cpp='$CPP $CPPFLAGS'
  21112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21115. libo_MINGW_CHECK_DLL(HUNSPELL, libhunspell-1.3)
  21116. else
  21117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  21118. $as_echo "internal" >&6; }
  21119. SYSTEM_HUNSPELL=NO
  21120. BUILD_TYPE="$BUILD_TYPE HUNSPELL"
  21121. fi
  21122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which altlinuxhyph to use" >&5
  21123. $as_echo_n "checking which altlinuxhyph to use... " >&6; }
  21124. if test "$with_system_altlinuxhyph" = "yes"; then
  21125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  21126. $as_echo "external" >&6; }
  21127. SYSTEM_HYPH=YES
  21128. ac_fn_c_check_header_mongrel "$LINENO" "hyphen.h" "ac_cv_header_hyphen_h" "$ac_includes_default"
  21129. if test "x$ac_cv_header_hyphen_h" = xyes; then :
  21130. else
  21131. as_fn_error $? "altlinuxhyph headers not found." "$LINENO" 5
  21132. fi
  21133. ac_fn_c_check_member "$LINENO" "struct _HyphenDict" "cset" "ac_cv_member_struct__HyphenDict_cset" "#include <hyphen.h>
  21134. "
  21135. if test "x$ac_cv_member_struct__HyphenDict_cset" = xyes; then :
  21136. else
  21137. as_fn_error $? "no. You are sure you have altlinuyhyph headers?" "$LINENO" 5
  21138. fi
  21139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hnj_hyphen_hyphenate2 in -lhyphen" >&5
  21140. $as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhyphen... " >&6; }
  21141. if ${ac_cv_lib_hyphen_hnj_hyphen_hyphenate2+:} false; then :
  21142. $as_echo_n "(cached) " >&6
  21143. else
  21144. ac_check_lib_save_LIBS=$LIBS
  21145. LIBS="-lhyphen $LIBS"
  21146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21147. /* end confdefs.h. */
  21148. /* Override any GCC internal prototype to avoid an error.
  21149. Use char because int might match the return type of a GCC
  21150. builtin and then its argument prototype would still apply. */
  21151. #ifdef __cplusplus
  21152. extern "C"
  21153. #endif
  21154. char hnj_hyphen_hyphenate2 ();
  21155. int
  21156. main ()
  21157. {
  21158. return hnj_hyphen_hyphenate2 ();
  21159. ;
  21160. return 0;
  21161. }
  21162. _ACEOF
  21163. if ac_fn_c_try_link "$LINENO"; then :
  21164. ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=yes
  21165. else
  21166. ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=no
  21167. fi
  21168. rm -f core conftest.err conftest.$ac_objext \
  21169. conftest$ac_exeext conftest.$ac_ext
  21170. LIBS=$ac_check_lib_save_LIBS
  21171. fi
  21172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&5
  21173. $as_echo "$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&6; }
  21174. if test "x$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" = xyes; then :
  21175. HYPHEN_LIB=-lhyphen
  21176. else
  21177. as_fn_error $? "altlinuxhyph library not found or too old." "$LINENO" 5
  21178. fi
  21179. if test -z "$HYPHEN_LIB"; then
  21180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hnj_hyphen_hyphenate2 in -lhyph" >&5
  21181. $as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhyph... " >&6; }
  21182. if ${ac_cv_lib_hyph_hnj_hyphen_hyphenate2+:} false; then :
  21183. $as_echo_n "(cached) " >&6
  21184. else
  21185. ac_check_lib_save_LIBS=$LIBS
  21186. LIBS="-lhyph $LIBS"
  21187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21188. /* end confdefs.h. */
  21189. /* Override any GCC internal prototype to avoid an error.
  21190. Use char because int might match the return type of a GCC
  21191. builtin and then its argument prototype would still apply. */
  21192. #ifdef __cplusplus
  21193. extern "C"
  21194. #endif
  21195. char hnj_hyphen_hyphenate2 ();
  21196. int
  21197. main ()
  21198. {
  21199. return hnj_hyphen_hyphenate2 ();
  21200. ;
  21201. return 0;
  21202. }
  21203. _ACEOF
  21204. if ac_fn_c_try_link "$LINENO"; then :
  21205. ac_cv_lib_hyph_hnj_hyphen_hyphenate2=yes
  21206. else
  21207. ac_cv_lib_hyph_hnj_hyphen_hyphenate2=no
  21208. fi
  21209. rm -f core conftest.err conftest.$ac_objext \
  21210. conftest$ac_exeext conftest.$ac_ext
  21211. LIBS=$ac_check_lib_save_LIBS
  21212. fi
  21213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&5
  21214. $as_echo "$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&6; }
  21215. if test "x$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" = xyes; then :
  21216. HYPHEN_LIB=-lhyph
  21217. else
  21218. as_fn_error $? "altlinuxhyph library not found or too old." "$LINENO" 5
  21219. fi
  21220. fi
  21221. if test -z "$HYPHEN_LIB"; then
  21222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hnj_hyphen_hyphenate2 in -lhnj" >&5
  21223. $as_echo_n "checking for hnj_hyphen_hyphenate2 in -lhnj... " >&6; }
  21224. if ${ac_cv_lib_hnj_hnj_hyphen_hyphenate2+:} false; then :
  21225. $as_echo_n "(cached) " >&6
  21226. else
  21227. ac_check_lib_save_LIBS=$LIBS
  21228. LIBS="-lhnj $LIBS"
  21229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21230. /* end confdefs.h. */
  21231. /* Override any GCC internal prototype to avoid an error.
  21232. Use char because int might match the return type of a GCC
  21233. builtin and then its argument prototype would still apply. */
  21234. #ifdef __cplusplus
  21235. extern "C"
  21236. #endif
  21237. char hnj_hyphen_hyphenate2 ();
  21238. int
  21239. main ()
  21240. {
  21241. return hnj_hyphen_hyphenate2 ();
  21242. ;
  21243. return 0;
  21244. }
  21245. _ACEOF
  21246. if ac_fn_c_try_link "$LINENO"; then :
  21247. ac_cv_lib_hnj_hnj_hyphen_hyphenate2=yes
  21248. else
  21249. ac_cv_lib_hnj_hnj_hyphen_hyphenate2=no
  21250. fi
  21251. rm -f core conftest.err conftest.$ac_objext \
  21252. conftest$ac_exeext conftest.$ac_ext
  21253. LIBS=$ac_check_lib_save_LIBS
  21254. fi
  21255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&5
  21256. $as_echo "$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&6; }
  21257. if test "x$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" = xyes; then :
  21258. HYPHEN_LIB=-lhnj
  21259. else
  21260. as_fn_error $? "altlinuxhyph library not found or too old." "$LINENO" 5
  21261. fi
  21262. fi
  21263. libo_MINGW_CHECK_DLL(HYPHEN, libhyphen)
  21264. else
  21265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  21266. $as_echo "internal" >&6; }
  21267. SYSTEM_HYPH=NO
  21268. BUILD_TYPE="$BUILD_TYPE HYPHEN"
  21269. fi
  21270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mythes to use" >&5
  21271. $as_echo_n "checking which mythes to use... " >&6; }
  21272. if test "$with_system_mythes" = "yes"; then
  21273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  21274. $as_echo "external" >&6; }
  21275. SYSTEM_MYTHES=YES
  21276. ac_ext=cpp
  21277. ac_cpp='$CXXCPP $CPPFLAGS'
  21278. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21279. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21280. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21281. pkg_failed=no
  21282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MYTHES" >&5
  21283. $as_echo_n "checking for MYTHES... " >&6; }
  21284. if test -n "$MYTHES_CFLAGS"; then
  21285. pkg_cv_MYTHES_CFLAGS="$MYTHES_CFLAGS"
  21286. elif test -n "$PKG_CONFIG"; then
  21287. if test -n "$PKG_CONFIG" && \
  21288. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mythes\""; } >&5
  21289. ($PKG_CONFIG --exists --print-errors "mythes") 2>&5
  21290. ac_status=$?
  21291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21292. test $ac_status = 0; }; then
  21293. pkg_cv_MYTHES_CFLAGS=`$PKG_CONFIG --cflags "mythes" 2>/dev/null`
  21294. else
  21295. pkg_failed=yes
  21296. fi
  21297. else
  21298. pkg_failed=untried
  21299. fi
  21300. if test -n "$MYTHES_LIBS"; then
  21301. pkg_cv_MYTHES_LIBS="$MYTHES_LIBS"
  21302. elif test -n "$PKG_CONFIG"; then
  21303. if test -n "$PKG_CONFIG" && \
  21304. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mythes\""; } >&5
  21305. ($PKG_CONFIG --exists --print-errors "mythes") 2>&5
  21306. ac_status=$?
  21307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21308. test $ac_status = 0; }; then
  21309. pkg_cv_MYTHES_LIBS=`$PKG_CONFIG --libs "mythes" 2>/dev/null`
  21310. else
  21311. pkg_failed=yes
  21312. fi
  21313. else
  21314. pkg_failed=untried
  21315. fi
  21316. if test $pkg_failed = yes; then
  21317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21318. $as_echo "no" >&6; }
  21319. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21320. _pkg_short_errors_supported=yes
  21321. else
  21322. _pkg_short_errors_supported=no
  21323. fi
  21324. if test $_pkg_short_errors_supported = yes; then
  21325. MYTHES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mythes" 2>&1`
  21326. else
  21327. MYTHES_PKG_ERRORS=`$PKG_CONFIG --print-errors "mythes" 2>&1`
  21328. fi
  21329. # Put the nasty error message in config.log where it belongs
  21330. echo "$MYTHES_PKG_ERRORS" >&5
  21331. MYTHES_PKGCONFIG=no
  21332. elif test $pkg_failed = untried; then
  21333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21334. $as_echo "no" >&6; }
  21335. MYTHES_PKGCONFIG=no
  21336. else
  21337. MYTHES_CFLAGS=$pkg_cv_MYTHES_CFLAGS
  21338. MYTHES_LIBS=$pkg_cv_MYTHES_LIBS
  21339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21340. $as_echo "yes" >&6; }
  21341. MYTHES_PKGCONFIG=yes
  21342. fi
  21343. if test "$MYTHES_PKGCONFIG" = "no"; then
  21344. ac_fn_cxx_check_header_mongrel "$LINENO" "mythes.hxx" "ac_cv_header_mythes_hxx" "$ac_includes_default"
  21345. if test "x$ac_cv_header_mythes_hxx" = xyes; then :
  21346. else
  21347. as_fn_error $? "mythes.hxx headers not found." "$LINENO" 5
  21348. fi
  21349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmythes-1.2" >&5
  21350. $as_echo_n "checking for main in -lmythes-1.2... " >&6; }
  21351. if ${ac_cv_lib_mythes_1_2_main+:} false; then :
  21352. $as_echo_n "(cached) " >&6
  21353. else
  21354. ac_check_lib_save_LIBS=$LIBS
  21355. LIBS="-lmythes-1.2 $LIBS"
  21356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21357. /* end confdefs.h. */
  21358. int
  21359. main ()
  21360. {
  21361. return main ();
  21362. ;
  21363. return 0;
  21364. }
  21365. _ACEOF
  21366. if ac_fn_cxx_try_link "$LINENO"; then :
  21367. ac_cv_lib_mythes_1_2_main=yes
  21368. else
  21369. ac_cv_lib_mythes_1_2_main=no
  21370. fi
  21371. rm -f core conftest.err conftest.$ac_objext \
  21372. conftest$ac_exeext conftest.$ac_ext
  21373. LIBS=$ac_check_lib_save_LIBS
  21374. fi
  21375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mythes_1_2_main" >&5
  21376. $as_echo "$ac_cv_lib_mythes_1_2_main" >&6; }
  21377. if test "x$ac_cv_lib_mythes_1_2_main" = xyes; then :
  21378. :
  21379. else
  21380. MYTHES_FOUND=no
  21381. fi
  21382. if test "$MYTHES_FOUND" = "no"; then
  21383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmythes" >&5
  21384. $as_echo_n "checking for main in -lmythes... " >&6; }
  21385. if ${ac_cv_lib_mythes_main+:} false; then :
  21386. $as_echo_n "(cached) " >&6
  21387. else
  21388. ac_check_lib_save_LIBS=$LIBS
  21389. LIBS="-lmythes $LIBS"
  21390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21391. /* end confdefs.h. */
  21392. int
  21393. main ()
  21394. {
  21395. return main ();
  21396. ;
  21397. return 0;
  21398. }
  21399. _ACEOF
  21400. if ac_fn_cxx_try_link "$LINENO"; then :
  21401. ac_cv_lib_mythes_main=yes
  21402. else
  21403. ac_cv_lib_mythes_main=no
  21404. fi
  21405. rm -f core conftest.err conftest.$ac_objext \
  21406. conftest$ac_exeext conftest.$ac_ext
  21407. LIBS=$ac_check_lib_save_LIBS
  21408. fi
  21409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mythes_main" >&5
  21410. $as_echo "$ac_cv_lib_mythes_main" >&6; }
  21411. if test "x$ac_cv_lib_mythes_main" = xyes; then :
  21412. MYTHES_FOUND=yes
  21413. else
  21414. MYTHES_FOUND=no
  21415. fi
  21416. fi
  21417. if test "$MYTHES_FOUND" = "no"; then
  21418. as_fn_error $? "mythes library not found!." "$LINENO" 5
  21419. fi
  21420. fi
  21421. ac_ext=c
  21422. ac_cpp='$CPP $CPPFLAGS'
  21423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21426. libo_MINGW_CHECK_DLL(MYTHES, libmythes-1.2)
  21427. else
  21428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  21429. $as_echo "internal" >&6; }
  21430. SYSTEM_MYTHES=NO
  21431. BUILD_TYPE="$BUILD_TYPE MYTHES"
  21432. fi
  21433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which lpsolve to use" >&5
  21434. $as_echo_n "checking which lpsolve to use... " >&6; }
  21435. if test "$with_system_lpsolve" = "yes"; then
  21436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  21437. $as_echo "external" >&6; }
  21438. SYSTEM_LPSOLVE=YES
  21439. ac_fn_c_check_header_mongrel "$LINENO" "lpsolve/lp_lib.h" "ac_cv_header_lpsolve_lp_lib_h" "$ac_includes_default"
  21440. if test "x$ac_cv_header_lpsolve_lp_lib_h" = xyes; then :
  21441. else
  21442. as_fn_error $? "lpsolve headers not found." "$LINENO" 5
  21443. fi
  21444. save_LIBS=$LIBS
  21445. # some systems need this. Like Ubuntu....
  21446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
  21447. $as_echo_n "checking for floor in -lm... " >&6; }
  21448. if ${ac_cv_lib_m_floor+:} false; then :
  21449. $as_echo_n "(cached) " >&6
  21450. else
  21451. ac_check_lib_save_LIBS=$LIBS
  21452. LIBS="-lm $LIBS"
  21453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21454. /* end confdefs.h. */
  21455. /* Override any GCC internal prototype to avoid an error.
  21456. Use char because int might match the return type of a GCC
  21457. builtin and then its argument prototype would still apply. */
  21458. #ifdef __cplusplus
  21459. extern "C"
  21460. #endif
  21461. char floor ();
  21462. int
  21463. main ()
  21464. {
  21465. return floor ();
  21466. ;
  21467. return 0;
  21468. }
  21469. _ACEOF
  21470. if ac_fn_c_try_link "$LINENO"; then :
  21471. ac_cv_lib_m_floor=yes
  21472. else
  21473. ac_cv_lib_m_floor=no
  21474. fi
  21475. rm -f core conftest.err conftest.$ac_objext \
  21476. conftest$ac_exeext conftest.$ac_ext
  21477. LIBS=$ac_check_lib_save_LIBS
  21478. fi
  21479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
  21480. $as_echo "$ac_cv_lib_m_floor" >&6; }
  21481. if test "x$ac_cv_lib_m_floor" = xyes; then :
  21482. cat >>confdefs.h <<_ACEOF
  21483. #define HAVE_LIBM 1
  21484. _ACEOF
  21485. LIBS="-lm $LIBS"
  21486. fi
  21487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  21488. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  21489. if ${ac_cv_lib_dl_dlopen+:} false; then :
  21490. $as_echo_n "(cached) " >&6
  21491. else
  21492. ac_check_lib_save_LIBS=$LIBS
  21493. LIBS="-ldl $LIBS"
  21494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21495. /* end confdefs.h. */
  21496. /* Override any GCC internal prototype to avoid an error.
  21497. Use char because int might match the return type of a GCC
  21498. builtin and then its argument prototype would still apply. */
  21499. #ifdef __cplusplus
  21500. extern "C"
  21501. #endif
  21502. char dlopen ();
  21503. int
  21504. main ()
  21505. {
  21506. return dlopen ();
  21507. ;
  21508. return 0;
  21509. }
  21510. _ACEOF
  21511. if ac_fn_c_try_link "$LINENO"; then :
  21512. ac_cv_lib_dl_dlopen=yes
  21513. else
  21514. ac_cv_lib_dl_dlopen=no
  21515. fi
  21516. rm -f core conftest.err conftest.$ac_objext \
  21517. conftest$ac_exeext conftest.$ac_ext
  21518. LIBS=$ac_check_lib_save_LIBS
  21519. fi
  21520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  21521. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  21522. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  21523. cat >>confdefs.h <<_ACEOF
  21524. #define HAVE_LIBDL 1
  21525. _ACEOF
  21526. LIBS="-ldl $LIBS"
  21527. fi
  21528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for make_lp in -llpsolve55" >&5
  21529. $as_echo_n "checking for make_lp in -llpsolve55... " >&6; }
  21530. if ${ac_cv_lib_lpsolve55_make_lp+:} false; then :
  21531. $as_echo_n "(cached) " >&6
  21532. else
  21533. ac_check_lib_save_LIBS=$LIBS
  21534. LIBS="-llpsolve55 $LIBS"
  21535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21536. /* end confdefs.h. */
  21537. /* Override any GCC internal prototype to avoid an error.
  21538. Use char because int might match the return type of a GCC
  21539. builtin and then its argument prototype would still apply. */
  21540. #ifdef __cplusplus
  21541. extern "C"
  21542. #endif
  21543. char make_lp ();
  21544. int
  21545. main ()
  21546. {
  21547. return make_lp ();
  21548. ;
  21549. return 0;
  21550. }
  21551. _ACEOF
  21552. if ac_fn_c_try_link "$LINENO"; then :
  21553. ac_cv_lib_lpsolve55_make_lp=yes
  21554. else
  21555. ac_cv_lib_lpsolve55_make_lp=no
  21556. fi
  21557. rm -f core conftest.err conftest.$ac_objext \
  21558. conftest$ac_exeext conftest.$ac_ext
  21559. LIBS=$ac_check_lib_save_LIBS
  21560. fi
  21561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lpsolve55_make_lp" >&5
  21562. $as_echo "$ac_cv_lib_lpsolve55_make_lp" >&6; }
  21563. if test "x$ac_cv_lib_lpsolve55_make_lp" = xyes; then :
  21564. :
  21565. else
  21566. as_fn_error $? "lpsolve library not found or too old." "$LINENO" 5
  21567. fi
  21568. LIBS=$save_LIBS
  21569. libo_MINGW_CHECK_DLL(LPSOLVE, lpsolve55)
  21570. else
  21571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  21572. $as_echo "internal" >&6; }
  21573. SYSTEM_LPSOLVE=NO
  21574. BUILD_TYPE="$BUILD_TYPE LPSOLVE"
  21575. fi
  21576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libexttextcat to use" >&5
  21577. $as_echo_n "checking which libexttextcat to use... " >&6; }
  21578. if test "$with_system_libexttextcat" = "yes"; then
  21579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  21580. $as_echo "external" >&6; }
  21581. SYSTEM_LIBEXTTEXTCAT=YES
  21582. pkg_failed=no
  21583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEXTTEXTCAT" >&5
  21584. $as_echo_n "checking for LIBEXTTEXTCAT... " >&6; }
  21585. if test -n "$LIBEXTTEXTCAT_CFLAGS"; then
  21586. pkg_cv_LIBEXTTEXTCAT_CFLAGS="$LIBEXTTEXTCAT_CFLAGS"
  21587. elif test -n "$PKG_CONFIG"; then
  21588. if test -n "$PKG_CONFIG" && \
  21589. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexttextcat >= 3.1.1\""; } >&5
  21590. ($PKG_CONFIG --exists --print-errors "libexttextcat >= 3.1.1") 2>&5
  21591. ac_status=$?
  21592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21593. test $ac_status = 0; }; then
  21594. pkg_cv_LIBEXTTEXTCAT_CFLAGS=`$PKG_CONFIG --cflags "libexttextcat >= 3.1.1" 2>/dev/null`
  21595. else
  21596. pkg_failed=yes
  21597. fi
  21598. else
  21599. pkg_failed=untried
  21600. fi
  21601. if test -n "$LIBEXTTEXTCAT_LIBS"; then
  21602. pkg_cv_LIBEXTTEXTCAT_LIBS="$LIBEXTTEXTCAT_LIBS"
  21603. elif test -n "$PKG_CONFIG"; then
  21604. if test -n "$PKG_CONFIG" && \
  21605. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexttextcat >= 3.1.1\""; } >&5
  21606. ($PKG_CONFIG --exists --print-errors "libexttextcat >= 3.1.1") 2>&5
  21607. ac_status=$?
  21608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21609. test $ac_status = 0; }; then
  21610. pkg_cv_LIBEXTTEXTCAT_LIBS=`$PKG_CONFIG --libs "libexttextcat >= 3.1.1" 2>/dev/null`
  21611. else
  21612. pkg_failed=yes
  21613. fi
  21614. else
  21615. pkg_failed=untried
  21616. fi
  21617. if test $pkg_failed = yes; then
  21618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21619. $as_echo "no" >&6; }
  21620. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21621. _pkg_short_errors_supported=yes
  21622. else
  21623. _pkg_short_errors_supported=no
  21624. fi
  21625. if test $_pkg_short_errors_supported = yes; then
  21626. LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libexttextcat >= 3.1.1" 2>&1`
  21627. else
  21628. LIBEXTTEXTCAT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libexttextcat >= 3.1.1" 2>&1`
  21629. fi
  21630. # Put the nasty error message in config.log where it belongs
  21631. echo "$LIBEXTTEXTCAT_PKG_ERRORS" >&5
  21632. as_fn_error $? "Package requirements (libexttextcat >= 3.1.1) were not met:
  21633. $LIBEXTTEXTCAT_PKG_ERRORS
  21634. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21635. installed software in a non-standard prefix.
  21636. Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
  21637. and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
  21638. See the pkg-config man page for more details." "$LINENO" 5
  21639. elif test $pkg_failed = untried; then
  21640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21641. $as_echo "no" >&6; }
  21642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21644. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  21645. is in your PATH or set the PKG_CONFIG environment variable to the full
  21646. path to pkg-config.
  21647. Alternatively, you may set the environment variables LIBEXTTEXTCAT_CFLAGS
  21648. and LIBEXTTEXTCAT_LIBS to avoid the need to call pkg-config.
  21649. See the pkg-config man page for more details.
  21650. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21651. See \`config.log' for more details" "$LINENO" 5; }
  21652. else
  21653. LIBEXTTEXTCAT_CFLAGS=$pkg_cv_LIBEXTTEXTCAT_CFLAGS
  21654. LIBEXTTEXTCAT_LIBS=$pkg_cv_LIBEXTTEXTCAT_LIBS
  21655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21656. $as_echo "yes" >&6; }
  21657. fi
  21658. SYSTEM_LIBEXTTEXTCAT_DATA=file://`$PKG_CONFIG --variable=pkgdatadir libexttextcat`
  21659. else
  21660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  21661. $as_echo "internal" >&6; }
  21662. SYSTEM_LIBEXTTEXTCAT=NO
  21663. BUILD_TYPE="$BUILD_TYPE LIBEXTTEXTCAT"
  21664. fi
  21665. if test "$_os" = "Linux"; then
  21666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libc is >= 2.1.1" >&5
  21667. $as_echo_n "checking whether libc is >= 2.1.1... " >&6; }
  21668. exec 6>/dev/null # no output
  21669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnu_get_libc_version in -lc" >&5
  21670. $as_echo_n "checking for gnu_get_libc_version in -lc... " >&6; }
  21671. if ${ac_cv_lib_c_gnu_get_libc_version+:} false; then :
  21672. $as_echo_n "(cached) " >&6
  21673. else
  21674. ac_check_lib_save_LIBS=$LIBS
  21675. LIBS="-lc $LIBS"
  21676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21677. /* end confdefs.h. */
  21678. /* Override any GCC internal prototype to avoid an error.
  21679. Use char because int might match the return type of a GCC
  21680. builtin and then its argument prototype would still apply. */
  21681. #ifdef __cplusplus
  21682. extern "C"
  21683. #endif
  21684. char gnu_get_libc_version ();
  21685. int
  21686. main ()
  21687. {
  21688. return gnu_get_libc_version ();
  21689. ;
  21690. return 0;
  21691. }
  21692. _ACEOF
  21693. if ac_fn_c_try_link "$LINENO"; then :
  21694. ac_cv_lib_c_gnu_get_libc_version=yes
  21695. else
  21696. ac_cv_lib_c_gnu_get_libc_version=no
  21697. fi
  21698. rm -f core conftest.err conftest.$ac_objext \
  21699. conftest$ac_exeext conftest.$ac_ext
  21700. LIBS=$ac_check_lib_save_LIBS
  21701. fi
  21702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gnu_get_libc_version" >&5
  21703. $as_echo "$ac_cv_lib_c_gnu_get_libc_version" >&6; }
  21704. if test "x$ac_cv_lib_c_gnu_get_libc_version" = xyes; then :
  21705. HAVE_LIBC=yes; export HAVE_LIBC
  21706. fi
  21707. exec 6>&1 # output on again
  21708. if test "$HAVE_LIBC"; then
  21709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21710. $as_echo "yes" >&6; }
  21711. else
  21712. as_fn_error $? "no, upgrade libc" "$LINENO" 5
  21713. fi
  21714. fi
  21715. if test "$_os" != "WINNT"; then
  21716. for ac_func in getopt
  21717. do :
  21718. ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
  21719. if test "x$ac_cv_func_getopt" = xyes; then :
  21720. cat >>confdefs.h <<_ACEOF
  21721. #define HAVE_GETOPT 1
  21722. _ACEOF
  21723. HAVE_GETOPT=YES
  21724. else
  21725. HAVE_GETOPT=NO
  21726. fi
  21727. done
  21728. for ac_func in readdir_r
  21729. do :
  21730. ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r"
  21731. if test "x$ac_cv_func_readdir_r" = xyes; then :
  21732. cat >>confdefs.h <<_ACEOF
  21733. #define HAVE_READDIR_R 1
  21734. _ACEOF
  21735. HAVE_READDIR_R=YES
  21736. else
  21737. HAVE_READDIR_R=NO
  21738. fi
  21739. done
  21740. if test "$HAVE_GETOPT" = "YES" -a "$HAVE_READDIR_R" = "YES"; then
  21741. SYSTEM_LIBC=YES
  21742. fi
  21743. else
  21744. HAVE_GETOPT=NO
  21745. HAVE_READDIR_R=NO
  21746. SYSTEM_LIBC=YES
  21747. fi
  21748. if test "$_os" = "WINNT"; then
  21749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows SDK" >&5
  21750. $as_echo_n "checking for Windows SDK... " >&6; }
  21751. if test "$build_os" = "cygwin"; then
  21752. if test -z "$with_windows_sdk_home"; then
  21753. # This first line will detect a February 2003 Microsoft Platform SDK
  21754. WINDOWS_SDK_HOME=`./oowintool --windows-sdk-home`
  21755. # But there might be also an April 2005 PSDK, unfortunately MS changed
  21756. # the registry entry. (we prefer the old version!?)
  21757. if test -z "$WINDOWS_SDK_HOME"; then
  21758. WINDOWS_SDK_HOME=`cat /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install\ Dir 2> /dev/null | tr '\000' '\n' | head -n 1`
  21759. fi
  21760. # normalize if found
  21761. if test -n "$WINDOWS_SDK_HOME"; then
  21762. WINDOWS_SDK_HOME=`cygpath -d "$WINDOWS_SDK_HOME"`
  21763. WINDOWS_SDK_HOME=`cygpath -u "$WINDOWS_SDK_HOME"`
  21764. #If this sdk is incomplete, lets see if the one
  21765. #recommended to be installed is available
  21766. if test ! -x "$WINDOWS_SDK_HOME/bin/msiinfo.exe"; then
  21767. WINDOWS_SDK7_HOME=`cat "/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/v7.1/InstallationFolder" 2> /dev/null | tr '\000' '\n' | head -n 1`
  21768. if test -n "$WINDOWS_SDK7_HOME"; then
  21769. WINDOWS_SDK_HOME=`cygpath -d "$WINDOWS_SDK7_HOME"`
  21770. WINDOWS_SDK_HOME=`cygpath -u "$WINDOWS_SDK_HOME"`
  21771. fi
  21772. fi
  21773. fi
  21774. else
  21775. WINDOWS_SDK_HOME=`cygpath -u "$with_windows_sdk_home"`
  21776. fi
  21777. fi
  21778. if test -n "$WINDOWS_SDK_HOME"; then
  21779. # Remove a possible trailing backslash
  21780. WINDOWS_SDK_HOME=`echo $WINDOWS_SDK_HOME | $SED 's/\/$//'`
  21781. # Problem with current PSDK (iz 49865)
  21782. # (What "current" does that mean?)
  21783. if test -f "$WINDOWS_SDK_HOME/Lib/libcp.lib"; then
  21784. as_fn_error $? "
  21785. Some modules do not build correctly with MS Platform SDK - April 2005
  21786. Edition if the library ($WINDOWS_SDK_HOME/Lib/libcp.lib) is found.
  21787. Remove/rename/backup that file and restart configure. Details about this
  21788. problem can be found in issue 49856." "$LINENO" 5
  21789. fi
  21790. if test -f "$WINDOWS_SDK_HOME/Include/adoint.h" \
  21791. -a -f "$WINDOWS_SDK_HOME/Include/SqlUcode.h" \
  21792. -a -f "$WINDOWS_SDK_HOME/Include/usp10.h"; then
  21793. HAVE_PSDK_H="yes"
  21794. else
  21795. HAVE_PSDK_H="no"
  21796. fi
  21797. if test -f "$WINDOWS_SDK_HOME/lib/user32.lib"; then
  21798. HAVE_PSDK_LIB="yes"
  21799. else
  21800. HAVE_PSDK_LIB="no"
  21801. fi
  21802. if test "$HAVE_PSDK_H" = "no" -o "$HAVE_PSDK_LIB" = "no"; then
  21803. as_fn_error $? "Some (all?) Windows SDK files not found, please check if all needed parts of
  21804. the Windows SDK are installed." "$LINENO" 5
  21805. fi
  21806. if test ! -x "$WINDOWS_SDK_HOME/bin/msiinfo.exe" \
  21807. -o ! -x "$WINDOWS_SDK_HOME/bin/msidb.exe" \
  21808. -o ! -x "$WINDOWS_SDK_HOME/bin/uuidgen.exe" \
  21809. -o ! -x "$WINDOWS_SDK_HOME/bin/msitran.exe"; then
  21810. as_fn_error $? "Some (all) files of the Windows Installer SDK are missing, please install." "$LINENO" 5
  21811. fi
  21812. fi
  21813. if test -z "$WINDOWS_SDK_HOME"; then
  21814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, hoping the necessary headers and libraries will be found anyway" >&5
  21815. $as_echo "no, hoping the necessary headers and libraries will be found anyway" >&6; }
  21816. elif echo $WINDOWS_SDK_HOME | grep "v6.1" >/dev/null 2>/dev/null; then
  21817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Windows SDK 6.1 ($WINDOWS_SDK_HOME)" >&5
  21818. $as_echo "found Windows SDK 6.1 ($WINDOWS_SDK_HOME)" >&6; }
  21819. elif echo $WINDOWS_SDK_HOME | grep "v6.0" >/dev/null 2>/dev/null; then
  21820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Windows SDK 6.0 ($WINDOWS_SDK_HOME)" >&5
  21821. $as_echo "found Windows SDK 6.0 ($WINDOWS_SDK_HOME)" >&6; }
  21822. elif echo $WINDOWS_SDK_HOME | grep "v7" >/dev/null 2>/dev/null; then
  21823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Windows SDK 7 ($WINDOWS_SDK_HOME)" >&5
  21824. $as_echo "found Windows SDK 7 ($WINDOWS_SDK_HOME)" >&6; }
  21825. else
  21826. as_fn_error $? "Found legacy Windows Platform SDK ($WINDOWS_SDK_HOME)" "$LINENO" 5
  21827. fi
  21828. PathFormat "$WINDOWS_SDK_HOME"
  21829. WINDOWS_SDK_HOME="$formatted_path"
  21830. if test "$build_os" = "cygwin"; then
  21831. SOLARINC="$SOLARINC -I$WINDOWS_SDK_HOME/include -I$COMPATH/include"
  21832. fi
  21833. fi
  21834. if test "$_os" = "WINNT"; then
  21835. if test "$WITH_MINGW" = "yes"; then
  21836. # Extract the first word of "uuid", so it can be a program name with args.
  21837. set dummy uuid; ac_word=$2
  21838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21839. $as_echo_n "checking for $ac_word... " >&6; }
  21840. if ${ac_cv_path_UUIDGEN+:} false; then :
  21841. $as_echo_n "(cached) " >&6
  21842. else
  21843. case $UUIDGEN in
  21844. [\\/]* | ?:[\\/]*)
  21845. ac_cv_path_UUIDGEN="$UUIDGEN" # Let the user override the test with a path.
  21846. ;;
  21847. *)
  21848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21849. for as_dir in $PATH
  21850. do
  21851. IFS=$as_save_IFS
  21852. test -z "$as_dir" && as_dir=.
  21853. for ac_exec_ext in '' $ac_executable_extensions; do
  21854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21855. ac_cv_path_UUIDGEN="$as_dir/$ac_word$ac_exec_ext"
  21856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21857. break 2
  21858. fi
  21859. done
  21860. done
  21861. IFS=$as_save_IFS
  21862. ;;
  21863. esac
  21864. fi
  21865. UUIDGEN=$ac_cv_path_UUIDGEN
  21866. if test -n "$UUIDGEN"; then
  21867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UUIDGEN" >&5
  21868. $as_echo "$UUIDGEN" >&6; }
  21869. else
  21870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21871. $as_echo "no" >&6; }
  21872. fi
  21873. if test -z "$UUIDGEN"; then
  21874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid is needed for dev-install" >&5
  21875. $as_echo "$as_me: WARNING: uuid is needed for dev-install" >&2;}
  21876. fi
  21877. else
  21878. # presence is already tested above in the WINDOWS_SDK_HOME check
  21879. UUIDGEN=uuidgen.exe
  21880. fi
  21881. fi
  21882. if test -n "$ENABLE_DIRECTX" -a "$_os" = "WINNT"; then
  21883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectX SDK" >&5
  21884. $as_echo_n "checking for DirectX SDK... " >&6; }
  21885. if test "$build_os" = "cygwin"; then
  21886. if test -z "$with_directx_home"; then
  21887. if test -n "$DXSDK_DIR"; then
  21888. DIRECTXSDK_HOME=`cygpath -d "$DXSDK_DIR"`
  21889. DIRECTXSDK_HOME=`cygpath -u "$DIRECTXSDK_HOME"`
  21890. fi
  21891. # At this point $DIRECTXSDK_HOME might still be undefined. This will lead to
  21892. # the "DirectX SDK not found" error later
  21893. else
  21894. DIRECTXSDK_HOME=`cygpath -u "$with_directx_home"`
  21895. fi
  21896. # Remove a possible trailing backslash
  21897. DIRECTXSDK_HOME=`echo $DIRECTXSDK_HOME | $SED 's/\/$//'`
  21898. elif test -n "$with_directx_home"; then
  21899. DIRECTXSDK_HOME="$with_directx_home"
  21900. fi
  21901. if test -f "$DIRECTXSDK_HOME/Include/ddraw.h" -o -f "$DIRECTXSDK_HOME/Include/d3d9.h"; then
  21902. HAVE_DIRECTXSDK_H="yes"
  21903. else
  21904. HAVE_DIRECTXSDK_H="no"
  21905. fi
  21906. # MS changed the location of the libraries with Dec 2004 DirectX SDK
  21907. if test -d "$DIRECTXSDK_HOME/lib/x86"; then
  21908. DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib/x86"
  21909. else
  21910. DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib"
  21911. fi
  21912. PathFormat "$DIRECTXSDK_LIB"
  21913. DIRECTXSDK_LIB="$formatted_path"
  21914. if test -f "$DIRECTXSDK_LIB/ddraw.lib" -o -f "$DIRECTXSDK_LIB/d3d9.lib"; then
  21915. HAVE_DIRECTXSDK_LIB="yes"
  21916. else
  21917. HAVE_DIRECTXSDK_LIB="no"
  21918. fi
  21919. if test "$HAVE_DIRECTXSDK_H" = "yes" -a "$HAVE_DIRECTXSDK_LIB" = "yes"; then
  21920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21921. $as_echo "found" >&6; }
  21922. else
  21923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, hoping the necessary headers and libraries will be found anyway" >&5
  21924. $as_echo "no, hoping the necessary headers and libraries will be found anyway" >&6; }
  21925. fi
  21926. PathFormat "$DIRECTXSDK_HOME"
  21927. DIRECTXSDK_HOME="$formatted_path"
  21928. SOLARINC="$SOLARINC -I$DIRECTXSDK_HOME/include"
  21929. fi
  21930. # Extract the first word of "bison", so it can be a program name with args.
  21931. set dummy bison; ac_word=$2
  21932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21933. $as_echo_n "checking for $ac_word... " >&6; }
  21934. if ${ac_cv_path_BISON+:} false; then :
  21935. $as_echo_n "(cached) " >&6
  21936. else
  21937. case $BISON in
  21938. [\\/]* | ?:[\\/]*)
  21939. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  21940. ;;
  21941. *)
  21942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21943. for as_dir in $PATH
  21944. do
  21945. IFS=$as_save_IFS
  21946. test -z "$as_dir" && as_dir=.
  21947. for ac_exec_ext in '' $ac_executable_extensions; do
  21948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21949. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  21950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21951. break 2
  21952. fi
  21953. done
  21954. done
  21955. IFS=$as_save_IFS
  21956. ;;
  21957. esac
  21958. fi
  21959. BISON=$ac_cv_path_BISON
  21960. if test -n "$BISON"; then
  21961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  21962. $as_echo "$BISON" >&6; }
  21963. else
  21964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21965. $as_echo "no" >&6; }
  21966. fi
  21967. ANCIENT_BISON="NO"
  21968. if test -z "$BISON"; then
  21969. as_fn_error $? "no bison found in \$PATH, install it" "$LINENO" 5
  21970. else
  21971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the bison version" >&5
  21972. $as_echo_n "checking the bison version... " >&6; }
  21973. _bison_version=`$BISON --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
  21974. _bison_longver=`echo $_bison_version | $AWK -F. '{ print \$1*1000+\$2}'`
  21975. # Accept newer than 1.875 or older(equal) than 1.75
  21976. if test "$_bison_longver" -ge 1875 -o "$_bison_longver" -le 1075; then
  21977. if test "$_bison_version" = "1.875"; then
  21978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: suspect ($BISON $_bison_version)" >&5
  21979. $as_echo "$as_me: WARNING: suspect ($BISON $_bison_version)" >&2;}
  21980. echo "Suspect ($BISON $_bison_version) suggest upgrade" >> warn
  21981. else
  21982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked ($BISON $_bison_version)" >&5
  21983. $as_echo "checked ($BISON $_bison_version)" >&6; }
  21984. fi
  21985. else
  21986. as_fn_error $? "failed ($BISON $_bison_version need 1.875+ (or 1.75 and older))" "$LINENO" 5
  21987. fi
  21988. if test "$_bison_longver" -lt 2000; then
  21989. ANCIENT_BISON="YES"
  21990. fi
  21991. fi
  21992. # Extract the first word of "flex", so it can be a program name with args.
  21993. set dummy flex; ac_word=$2
  21994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21995. $as_echo_n "checking for $ac_word... " >&6; }
  21996. if ${ac_cv_path_FLEX+:} false; then :
  21997. $as_echo_n "(cached) " >&6
  21998. else
  21999. case $FLEX in
  22000. [\\/]* | ?:[\\/]*)
  22001. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  22002. ;;
  22003. *)
  22004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22005. for as_dir in $PATH
  22006. do
  22007. IFS=$as_save_IFS
  22008. test -z "$as_dir" && as_dir=.
  22009. for ac_exec_ext in '' $ac_executable_extensions; do
  22010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22011. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  22012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22013. break 2
  22014. fi
  22015. done
  22016. done
  22017. IFS=$as_save_IFS
  22018. ;;
  22019. esac
  22020. fi
  22021. FLEX=$ac_cv_path_FLEX
  22022. if test -n "$FLEX"; then
  22023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  22024. $as_echo "$FLEX" >&6; }
  22025. else
  22026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22027. $as_echo "no" >&6; }
  22028. fi
  22029. if test -z "$FLEX"; then
  22030. as_fn_error $? "no flex found in \$PATH, install it" "$LINENO" 5
  22031. fi
  22032. # Extract the first word of "patch", so it can be a program name with args.
  22033. set dummy patch; ac_word=$2
  22034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22035. $as_echo_n "checking for $ac_word... " >&6; }
  22036. if ${ac_cv_path_PATCH+:} false; then :
  22037. $as_echo_n "(cached) " >&6
  22038. else
  22039. case $PATCH in
  22040. [\\/]* | ?:[\\/]*)
  22041. ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
  22042. ;;
  22043. *)
  22044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22045. for as_dir in $PATH
  22046. do
  22047. IFS=$as_save_IFS
  22048. test -z "$as_dir" && as_dir=.
  22049. for ac_exec_ext in '' $ac_executable_extensions; do
  22050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22051. ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
  22052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22053. break 2
  22054. fi
  22055. done
  22056. done
  22057. IFS=$as_save_IFS
  22058. ;;
  22059. esac
  22060. fi
  22061. PATCH=$ac_cv_path_PATCH
  22062. if test -n "$PATCH"; then
  22063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
  22064. $as_echo "$PATCH" >&6; }
  22065. else
  22066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22067. $as_echo "no" >&6; }
  22068. fi
  22069. if test -z "$PATCH"; then
  22070. as_fn_error $? "\\"patch\\" not found in \$PATH, install it" "$LINENO" 5
  22071. fi
  22072. if test "$_os" = "SunOS" -o "$_os" = "FreeBSD" -o "$_os" = "Darwin"; then
  22073. if test -z "$with_gnu_patch"; then
  22074. GNUPATCH=$PATCH
  22075. else
  22076. if test -x "$with_gnu_patch"; then
  22077. GNUPATCH=$with_gnu_patch
  22078. else
  22079. as_fn_error $? "--with-gnu-patch did not point to an executable" "$LINENO" 5
  22080. fi
  22081. fi
  22082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GNUPATCH is GNU patch" >&5
  22083. $as_echo_n "checking whether $GNUPATCH is GNU patch... " >&6; }
  22084. if $GNUPATCH --version | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
  22085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22086. $as_echo "yes" >&6; }
  22087. else
  22088. as_fn_error $? "no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it" "$LINENO" 5
  22089. fi
  22090. else
  22091. GNUPATCH=$PATCH
  22092. fi
  22093. if test -z "$with_gnu_cp"; then
  22094. # check the place where the good stuff is hidden on Solaris...
  22095. if test -x /usr/gnu/bin/cp; then
  22096. GNUCP=/usr/gnu/bin/cp
  22097. else
  22098. for ac_prog in gnucp cp
  22099. do
  22100. # Extract the first word of "$ac_prog", so it can be a program name with args.
  22101. set dummy $ac_prog; ac_word=$2
  22102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22103. $as_echo_n "checking for $ac_word... " >&6; }
  22104. if ${ac_cv_path_GNUCP+:} false; then :
  22105. $as_echo_n "(cached) " >&6
  22106. else
  22107. case $GNUCP in
  22108. [\\/]* | ?:[\\/]*)
  22109. ac_cv_path_GNUCP="$GNUCP" # Let the user override the test with a path.
  22110. ;;
  22111. *)
  22112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22113. for as_dir in $PATH
  22114. do
  22115. IFS=$as_save_IFS
  22116. test -z "$as_dir" && as_dir=.
  22117. for ac_exec_ext in '' $ac_executable_extensions; do
  22118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22119. ac_cv_path_GNUCP="$as_dir/$ac_word$ac_exec_ext"
  22120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22121. break 2
  22122. fi
  22123. done
  22124. done
  22125. IFS=$as_save_IFS
  22126. ;;
  22127. esac
  22128. fi
  22129. GNUCP=$ac_cv_path_GNUCP
  22130. if test -n "$GNUCP"; then
  22131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUCP" >&5
  22132. $as_echo "$GNUCP" >&6; }
  22133. else
  22134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22135. $as_echo "no" >&6; }
  22136. fi
  22137. test -n "$GNUCP" && break
  22138. done
  22139. fi
  22140. if test -z $GNUCP; then
  22141. as_fn_error $? "Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it" "$LINENO" 5
  22142. fi
  22143. else
  22144. if test -x "$with_gnu_cp"; then
  22145. GNUCP=$with_gnu_cp
  22146. else
  22147. as_fn_error $? "--with-gnu-cp did not point to an executable" "$LINENO" 5
  22148. fi
  22149. fi
  22150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GNUCP is GNU cp from coreutils with preserve= support" >&5
  22151. $as_echo_n "checking whether $GNUCP is GNU cp from coreutils with preserve= support... " >&6; }
  22152. if $GNUCP --version 2>/dev/null | grep "coreutils" >/dev/null 2>/dev/null; then
  22153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22154. $as_echo "yes" >&6; }
  22155. elif $GNUCP --version 2>/dev/null | grep "GNU fileutils" >/dev/null 2>/dev/null; then
  22156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22157. $as_echo "yes" >&6; }
  22158. else
  22159. case "$build_os" in
  22160. darwin*|netbsd*|openbsd*|freebsd*|dragonfly*|aix*)
  22161. x_GNUCP=\#
  22162. GNUCP=''
  22163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gnucp found - using the system's cp command" >&5
  22164. $as_echo "no gnucp found - using the system's cp command" >&6; }
  22165. ;;
  22166. *)
  22167. as_fn_error $? "no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it" "$LINENO" 5
  22168. ;;
  22169. esac
  22170. fi
  22171. ML_EXE=""
  22172. if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
  22173. if test "$CL_X64" = ""; then
  22174. assembler=ml.exe
  22175. assembler_bin=bin
  22176. else
  22177. assembler=ml64.exe
  22178. assembler_bin=bin/amd64
  22179. fi
  22180. if test -n "$with_asm_home"; then
  22181. with_asm_home=`cygpath -u "$with_asm_home"`
  22182. fi
  22183. if test -x "$with_asm_home/$assembler"; then
  22184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $assembler assembler path" >&5
  22185. $as_echo_n "checking $assembler assembler path... " >&6; }
  22186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_asm_home/$assembler" >&5
  22187. $as_echo "$with_asm_home/$assembler" >&6; }
  22188. ML_EXE="$with_asm_home/$assembler"
  22189. else
  22190. # Extract the first word of "$assembler", so it can be a program name with args.
  22191. set dummy $assembler; ac_word=$2
  22192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22193. $as_echo_n "checking for $ac_word... " >&6; }
  22194. if ${ac_cv_path_ML_EXE+:} false; then :
  22195. $as_echo_n "(cached) " >&6
  22196. else
  22197. case $ML_EXE in
  22198. [\\/]* | ?:[\\/]*)
  22199. ac_cv_path_ML_EXE="$ML_EXE" # Let the user override the test with a path.
  22200. ;;
  22201. *)
  22202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22203. for as_dir in $PATH
  22204. do
  22205. IFS=$as_save_IFS
  22206. test -z "$as_dir" && as_dir=.
  22207. for ac_exec_ext in '' $ac_executable_extensions; do
  22208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22209. ac_cv_path_ML_EXE="$as_dir/$ac_word$ac_exec_ext"
  22210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22211. break 2
  22212. fi
  22213. done
  22214. done
  22215. IFS=$as_save_IFS
  22216. ;;
  22217. esac
  22218. fi
  22219. ML_EXE=$ac_cv_path_ML_EXE
  22220. if test -n "$ML_EXE"; then
  22221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ML_EXE" >&5
  22222. $as_echo "$ML_EXE" >&6; }
  22223. else
  22224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22225. $as_echo "no" >&6; }
  22226. fi
  22227. if test -z "$ML_EXE"; then
  22228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $with_cl_home/$assembler_bin/$assembler" >&5
  22229. $as_echo_n "checking $with_cl_home/$assembler_bin/$assembler... " >&6; }
  22230. if test -x "$with_cl_home/$assembler_bin/$assembler"; then
  22231. with_asm_home=$with_cl_home/$assembler_bin
  22232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22233. $as_echo "found" >&6; }
  22234. ML_EXE="$with_cl_home/$assembler_bin/$assembler"
  22235. else
  22236. as_fn_error $? "Configure did not find $assembler assembler." "$LINENO" 5
  22237. fi
  22238. else
  22239. with_asm_home="ASM_IN_PATH"
  22240. ML_EXE="$assembler"
  22241. fi
  22242. fi
  22243. PathFormat "$with_asm_home"
  22244. ASM_HOME="$formatted_path"
  22245. else
  22246. ASM_HOME=""
  22247. fi
  22248. # Extract the first word of "zip", so it can be a program name with args.
  22249. set dummy zip; ac_word=$2
  22250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22251. $as_echo_n "checking for $ac_word... " >&6; }
  22252. if ${ac_cv_path_ZIP+:} false; then :
  22253. $as_echo_n "(cached) " >&6
  22254. else
  22255. case $ZIP in
  22256. [\\/]* | ?:[\\/]*)
  22257. ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
  22258. ;;
  22259. *)
  22260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22261. for as_dir in $PATH
  22262. do
  22263. IFS=$as_save_IFS
  22264. test -z "$as_dir" && as_dir=.
  22265. for ac_exec_ext in '' $ac_executable_extensions; do
  22266. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22267. ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
  22268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22269. break 2
  22270. fi
  22271. done
  22272. done
  22273. IFS=$as_save_IFS
  22274. ;;
  22275. esac
  22276. fi
  22277. ZIP=$ac_cv_path_ZIP
  22278. if test -n "$ZIP"; then
  22279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
  22280. $as_echo "$ZIP" >&6; }
  22281. else
  22282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22283. $as_echo "no" >&6; }
  22284. fi
  22285. test -z "$ZIP" && as_fn_error $? "zip is required" "$LINENO" 5
  22286. if ! "$ZIP" --filesync < /dev/null 2>/dev/null > /dev/null; then
  22287. as_fn_error $? "Zip version 3.0 or newer is required to build, please install or use --with-zip-home" "$LINENO" 5
  22288. fi
  22289. # Extract the first word of "unzip", so it can be a program name with args.
  22290. set dummy unzip; ac_word=$2
  22291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22292. $as_echo_n "checking for $ac_word... " >&6; }
  22293. if ${ac_cv_path_UNZIP+:} false; then :
  22294. $as_echo_n "(cached) " >&6
  22295. else
  22296. case $UNZIP in
  22297. [\\/]* | ?:[\\/]*)
  22298. ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
  22299. ;;
  22300. *)
  22301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22302. for as_dir in $PATH
  22303. do
  22304. IFS=$as_save_IFS
  22305. test -z "$as_dir" && as_dir=.
  22306. for ac_exec_ext in '' $ac_executable_extensions; do
  22307. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22308. ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
  22309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22310. break 2
  22311. fi
  22312. done
  22313. done
  22314. IFS=$as_save_IFS
  22315. ;;
  22316. esac
  22317. fi
  22318. UNZIP=$ac_cv_path_UNZIP
  22319. if test -n "$UNZIP"; then
  22320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
  22321. $as_echo "$UNZIP" >&6; }
  22322. else
  22323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22324. $as_echo "no" >&6; }
  22325. fi
  22326. test -z "$UNZIP" && as_fn_error $? "unzip is required" "$LINENO" 5
  22327. if test $build_os = cygwin; then
  22328. if test -n "`$ZIP -h | $GREP -i WinNT`"; then
  22329. as_fn_error $? "$ZIP is not the required Cygwin version of Info-ZIP's zip.exe." "$LINENO" 5
  22330. fi
  22331. fi
  22332. R=""
  22333. GTK3_CFLAGS=""
  22334. GTK3_LIBS=""
  22335. ENABLE_GTK3=""
  22336. if test "x$enable_gtk3" = "xyes"; then
  22337. if test "$with_system_cairo" != yes; then
  22338. echo "System cairo required for gtk3 support, please use --with-system-cairo"
  22339. fi
  22340. pkg_failed=no
  22341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
  22342. $as_echo_n "checking for GTK3... " >&6; }
  22343. if test -n "$GTK3_CFLAGS"; then
  22344. pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
  22345. elif test -n "$PKG_CONFIG"; then
  22346. if test -n "$PKG_CONFIG" && \
  22347. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo\""; } >&5
  22348. ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo") 2>&5
  22349. ac_status=$?
  22350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22351. test $ac_status = 0; }; then
  22352. pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo" 2>/dev/null`
  22353. else
  22354. pkg_failed=yes
  22355. fi
  22356. else
  22357. pkg_failed=untried
  22358. fi
  22359. if test -n "$GTK3_LIBS"; then
  22360. pkg_cv_GTK3_LIBS="$GTK3_LIBS"
  22361. elif test -n "$PKG_CONFIG"; then
  22362. if test -n "$PKG_CONFIG" && \
  22363. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo\""; } >&5
  22364. ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo") 2>&5
  22365. ac_status=$?
  22366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22367. test $ac_status = 0; }; then
  22368. pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo" 2>/dev/null`
  22369. else
  22370. pkg_failed=yes
  22371. fi
  22372. else
  22373. pkg_failed=untried
  22374. fi
  22375. if test $pkg_failed = yes; then
  22376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22377. $as_echo "no" >&6; }
  22378. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22379. _pkg_short_errors_supported=yes
  22380. else
  22381. _pkg_short_errors_supported=no
  22382. fi
  22383. if test $_pkg_short_errors_supported = yes; then
  22384. GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo" 2>&1`
  22385. else
  22386. GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-3.0 >= 3.2 gtk+-unix-print-3.0 gmodule-no-export-2.0 cairo" 2>&1`
  22387. fi
  22388. # Put the nasty error message in config.log where it belongs
  22389. echo "$GTK3_PKG_ERRORS" >&5
  22390. ENABLE_GTK3=""
  22391. elif test $pkg_failed = untried; then
  22392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22393. $as_echo "no" >&6; }
  22394. ENABLE_GTK3=""
  22395. else
  22396. GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
  22397. GTK3_LIBS=$pkg_cv_GTK3_LIBS
  22398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22399. $as_echo "yes" >&6; }
  22400. ENABLE_GTK3="TRUE"
  22401. fi
  22402. if test "x$ENABLE_GTK3" = "xTRUE"; then
  22403. R="gtk3"
  22404. else
  22405. as_fn_error $? "gtk3 libraries of the correct versions, not found" "$LINENO" 5
  22406. fi
  22407. fi
  22408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which VCLplugs shall be built" >&5
  22409. $as_echo_n "checking which VCLplugs shall be built... " >&6; }
  22410. ENABLE_GTK=""
  22411. if test "x$enable_gtk" = "xyes"; then
  22412. ENABLE_GTK="TRUE"
  22413. R="gtk $R"
  22414. fi
  22415. ENABLE_TDE=""
  22416. if test "x$enable_tde" = "xyes"; then
  22417. # Libs kab and tdeab in connectivity and kdeab and tdeab in shell
  22418. # are built from the same sources. So we only allow one of them.
  22419. if test "x$enable_kde" = "xyes"; then
  22420. as_fn_error $? "enabling both KDE and TDE is not supported" "$LINENO" 5
  22421. fi
  22422. ENABLE_TDE="TRUE"
  22423. R="$R tde"
  22424. fi
  22425. ENABLE_KDE=""
  22426. if test "x$enable_kde" = "xyes"; then
  22427. ENABLE_KDE="TRUE"
  22428. R="$R kde"
  22429. fi
  22430. ENABLE_KDE4=""
  22431. if test "x$enable_kde4" = "xyes"; then
  22432. ENABLE_KDE4="TRUE"
  22433. R="$R kde4"
  22434. fi
  22435. ENABLE_HEADLESS=""
  22436. if test "x$enable_headless" = "xyes"; then
  22437. ENABLE_HEADLESS="TRUE"
  22438. SCPDEFS="$SCPDEFS -DLIBO_HEADLESS"
  22439. R="headless"
  22440. fi
  22441. if test -z "$R"; then
  22442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  22443. $as_echo "none" >&6; }
  22444. else
  22445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
  22446. $as_echo "$R" >&6; }
  22447. fi
  22448. ENABLE_GCONF=""
  22449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GConf support" >&5
  22450. $as_echo_n "checking whether to enable GConf support... " >&6; }
  22451. if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gconf" = "yes"; then
  22452. ENABLE_GCONF="TRUE"
  22453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22454. $as_echo "yes" >&6; }
  22455. pkg_failed=no
  22456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
  22457. $as_echo_n "checking for GCONF... " >&6; }
  22458. if test -n "$GCONF_CFLAGS"; then
  22459. pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
  22460. elif test -n "$PKG_CONFIG"; then
  22461. if test -n "$PKG_CONFIG" && \
  22462. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 gobject-2.0 \""; } >&5
  22463. ($PKG_CONFIG --exists --print-errors "gconf-2.0 gobject-2.0 ") 2>&5
  22464. ac_status=$?
  22465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22466. test $ac_status = 0; }; then
  22467. pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 gobject-2.0 " 2>/dev/null`
  22468. else
  22469. pkg_failed=yes
  22470. fi
  22471. else
  22472. pkg_failed=untried
  22473. fi
  22474. if test -n "$GCONF_LIBS"; then
  22475. pkg_cv_GCONF_LIBS="$GCONF_LIBS"
  22476. elif test -n "$PKG_CONFIG"; then
  22477. if test -n "$PKG_CONFIG" && \
  22478. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 gobject-2.0 \""; } >&5
  22479. ($PKG_CONFIG --exists --print-errors "gconf-2.0 gobject-2.0 ") 2>&5
  22480. ac_status=$?
  22481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22482. test $ac_status = 0; }; then
  22483. pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 gobject-2.0 " 2>/dev/null`
  22484. else
  22485. pkg_failed=yes
  22486. fi
  22487. else
  22488. pkg_failed=untried
  22489. fi
  22490. if test $pkg_failed = yes; then
  22491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22492. $as_echo "no" >&6; }
  22493. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22494. _pkg_short_errors_supported=yes
  22495. else
  22496. _pkg_short_errors_supported=no
  22497. fi
  22498. if test $_pkg_short_errors_supported = yes; then
  22499. GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gconf-2.0 gobject-2.0 " 2>&1`
  22500. else
  22501. GCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "gconf-2.0 gobject-2.0 " 2>&1`
  22502. fi
  22503. # Put the nasty error message in config.log where it belongs
  22504. echo "$GCONF_PKG_ERRORS" >&5
  22505. as_fn_error $? "Package requirements (gconf-2.0 gobject-2.0 ) were not met:
  22506. $GCONF_PKG_ERRORS
  22507. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22508. installed software in a non-standard prefix.
  22509. Alternatively, you may set the environment variables GCONF_CFLAGS
  22510. and GCONF_LIBS to avoid the need to call pkg-config.
  22511. See the pkg-config man page for more details." "$LINENO" 5
  22512. elif test $pkg_failed = untried; then
  22513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22514. $as_echo "no" >&6; }
  22515. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22516. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22517. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  22518. is in your PATH or set the PKG_CONFIG environment variable to the full
  22519. path to pkg-config.
  22520. Alternatively, you may set the environment variables GCONF_CFLAGS
  22521. and GCONF_LIBS to avoid the need to call pkg-config.
  22522. See the pkg-config man page for more details.
  22523. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22524. See \`config.log' for more details" "$LINENO" 5; }
  22525. else
  22526. GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
  22527. GCONF_LIBS=$pkg_cv_GCONF_LIBS
  22528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22529. $as_echo "yes" >&6; }
  22530. fi
  22531. else
  22532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22533. $as_echo "no" >&6; }
  22534. fi
  22535. ENABLE_GNOMEVFS=""
  22536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GNOME VFS support" >&5
  22537. $as_echo_n "checking whether to enable GNOME VFS support... " >&6; }
  22538. if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gnome_vfs" = "yes" -a "$enable_gconf" = "yes"; then
  22539. ENABLE_GNOMEVFS="TRUE"
  22540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22541. $as_echo "yes" >&6; }
  22542. pkg_failed=no
  22543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEVFS" >&5
  22544. $as_echo_n "checking for GNOMEVFS... " >&6; }
  22545. if test -n "$GNOMEVFS_CFLAGS"; then
  22546. pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
  22547. elif test -n "$PKG_CONFIG"; then
  22548. if test -n "$PKG_CONFIG" && \
  22549. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.6.0 \""; } >&5
  22550. ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.6.0 ") 2>&5
  22551. ac_status=$?
  22552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22553. test $ac_status = 0; }; then
  22554. pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.6.0 " 2>/dev/null`
  22555. else
  22556. pkg_failed=yes
  22557. fi
  22558. else
  22559. pkg_failed=untried
  22560. fi
  22561. if test -n "$GNOMEVFS_LIBS"; then
  22562. pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
  22563. elif test -n "$PKG_CONFIG"; then
  22564. if test -n "$PKG_CONFIG" && \
  22565. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.6.0 \""; } >&5
  22566. ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.6.0 ") 2>&5
  22567. ac_status=$?
  22568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22569. test $ac_status = 0; }; then
  22570. pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.6.0 " 2>/dev/null`
  22571. else
  22572. pkg_failed=yes
  22573. fi
  22574. else
  22575. pkg_failed=untried
  22576. fi
  22577. if test $pkg_failed = yes; then
  22578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22579. $as_echo "no" >&6; }
  22580. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22581. _pkg_short_errors_supported=yes
  22582. else
  22583. _pkg_short_errors_supported=no
  22584. fi
  22585. if test $_pkg_short_errors_supported = yes; then
  22586. GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnome-vfs-2.0 >= 2.6.0 " 2>&1`
  22587. else
  22588. GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnome-vfs-2.0 >= 2.6.0 " 2>&1`
  22589. fi
  22590. # Put the nasty error message in config.log where it belongs
  22591. echo "$GNOMEVFS_PKG_ERRORS" >&5
  22592. as_fn_error $? "Package requirements (gnome-vfs-2.0 >= 2.6.0 ) were not met:
  22593. $GNOMEVFS_PKG_ERRORS
  22594. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22595. installed software in a non-standard prefix.
  22596. Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
  22597. and GNOMEVFS_LIBS to avoid the need to call pkg-config.
  22598. See the pkg-config man page for more details." "$LINENO" 5
  22599. elif test $pkg_failed = untried; then
  22600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22601. $as_echo "no" >&6; }
  22602. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22603. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22604. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  22605. is in your PATH or set the PKG_CONFIG environment variable to the full
  22606. path to pkg-config.
  22607. Alternatively, you may set the environment variables GNOMEVFS_CFLAGS
  22608. and GNOMEVFS_LIBS to avoid the need to call pkg-config.
  22609. See the pkg-config man page for more details.
  22610. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22611. See \`config.log' for more details" "$LINENO" 5; }
  22612. else
  22613. GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
  22614. GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
  22615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22616. $as_echo "yes" >&6; }
  22617. fi
  22618. else
  22619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22620. $as_echo "no" >&6; }
  22621. fi
  22622. GTK_CFLAGS=""
  22623. GTK_LIBS=""
  22624. ENABLE_SYSTRAY_GTK=""
  22625. ENABLE_DBUS=""
  22626. DBUS_CFLAGS=""
  22627. DBUS_LIBS=""
  22628. if test "$test_gtk" = "yes"; then
  22629. if test "$ENABLE_GTK" = "TRUE"; then
  22630. pkg_failed=no
  22631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
  22632. $as_echo_n "checking for GTK... " >&6; }
  22633. if test -n "$GTK_CFLAGS"; then
  22634. pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
  22635. elif test -n "$PKG_CONFIG"; then
  22636. if test -n "$PKG_CONFIG" && \
  22637. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 \""; } >&5
  22638. ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ") 2>&5
  22639. ac_status=$?
  22640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22641. test $ac_status = 0; }; then
  22642. pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>/dev/null`
  22643. else
  22644. pkg_failed=yes
  22645. fi
  22646. else
  22647. pkg_failed=untried
  22648. fi
  22649. if test -n "$GTK_LIBS"; then
  22650. pkg_cv_GTK_LIBS="$GTK_LIBS"
  22651. elif test -n "$PKG_CONFIG"; then
  22652. if test -n "$PKG_CONFIG" && \
  22653. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 \""; } >&5
  22654. ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ") 2>&5
  22655. ac_status=$?
  22656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22657. test $ac_status = 0; }; then
  22658. pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>/dev/null`
  22659. else
  22660. pkg_failed=yes
  22661. fi
  22662. else
  22663. pkg_failed=untried
  22664. fi
  22665. if test $pkg_failed = yes; then
  22666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22667. $as_echo "no" >&6; }
  22668. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22669. _pkg_short_errors_supported=yes
  22670. else
  22671. _pkg_short_errors_supported=no
  22672. fi
  22673. if test $_pkg_short_errors_supported = yes; then
  22674. GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>&1`
  22675. else
  22676. GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " 2>&1`
  22677. fi
  22678. # Put the nasty error message in config.log where it belongs
  22679. echo "$GTK_PKG_ERRORS" >&5
  22680. as_fn_error $? "requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" "$LINENO" 5
  22681. elif test $pkg_failed = untried; then
  22682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22683. $as_echo "no" >&6; }
  22684. as_fn_error $? "requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" "$LINENO" 5
  22685. else
  22686. GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
  22687. GTK_LIBS=$pkg_cv_GTK_LIBS
  22688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22689. $as_echo "yes" >&6; }
  22690. fi
  22691. pkg_failed=no
  22692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
  22693. $as_echo_n "checking for GTHREAD... " >&6; }
  22694. if test -n "$GTHREAD_CFLAGS"; then
  22695. pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
  22696. elif test -n "$PKG_CONFIG"; then
  22697. if test -n "$PKG_CONFIG" && \
  22698. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
  22699. ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
  22700. ac_status=$?
  22701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22702. test $ac_status = 0; }; then
  22703. pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
  22704. else
  22705. pkg_failed=yes
  22706. fi
  22707. else
  22708. pkg_failed=untried
  22709. fi
  22710. if test -n "$GTHREAD_LIBS"; then
  22711. pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
  22712. elif test -n "$PKG_CONFIG"; then
  22713. if test -n "$PKG_CONFIG" && \
  22714. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
  22715. ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
  22716. ac_status=$?
  22717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22718. test $ac_status = 0; }; then
  22719. pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
  22720. else
  22721. pkg_failed=yes
  22722. fi
  22723. else
  22724. pkg_failed=untried
  22725. fi
  22726. if test $pkg_failed = yes; then
  22727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22728. $as_echo "no" >&6; }
  22729. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22730. _pkg_short_errors_supported=yes
  22731. else
  22732. _pkg_short_errors_supported=no
  22733. fi
  22734. if test $_pkg_short_errors_supported = yes; then
  22735. GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0" 2>&1`
  22736. else
  22737. GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0" 2>&1`
  22738. fi
  22739. # Put the nasty error message in config.log where it belongs
  22740. echo "$GTHREAD_PKG_ERRORS" >&5
  22741. as_fn_error $? "requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" "$LINENO" 5
  22742. elif test $pkg_failed = untried; then
  22743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22744. $as_echo "no" >&6; }
  22745. as_fn_error $? "requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" "$LINENO" 5
  22746. else
  22747. GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
  22748. GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
  22749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22750. $as_echo "yes" >&6; }
  22751. fi
  22752. BUILD_TYPE="$BUILD_TYPE GTK"
  22753. if test "x$enable_systray" = "xyes"; then
  22754. pkg_failed=no
  22755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK210" >&5
  22756. $as_echo_n "checking for GTK210... " >&6; }
  22757. if test -n "$GTK210_CFLAGS"; then
  22758. pkg_cv_GTK210_CFLAGS="$GTK210_CFLAGS"
  22759. elif test -n "$PKG_CONFIG"; then
  22760. if test -n "$PKG_CONFIG" && \
  22761. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\""; } >&5
  22762. ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
  22763. ac_status=$?
  22764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22765. test $ac_status = 0; }; then
  22766. pkg_cv_GTK210_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10.0" 2>/dev/null`
  22767. else
  22768. pkg_failed=yes
  22769. fi
  22770. else
  22771. pkg_failed=untried
  22772. fi
  22773. if test -n "$GTK210_LIBS"; then
  22774. pkg_cv_GTK210_LIBS="$GTK210_LIBS"
  22775. elif test -n "$PKG_CONFIG"; then
  22776. if test -n "$PKG_CONFIG" && \
  22777. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\""; } >&5
  22778. ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
  22779. ac_status=$?
  22780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22781. test $ac_status = 0; }; then
  22782. pkg_cv_GTK210_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10.0" 2>/dev/null`
  22783. else
  22784. pkg_failed=yes
  22785. fi
  22786. else
  22787. pkg_failed=untried
  22788. fi
  22789. if test $pkg_failed = yes; then
  22790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22791. $as_echo "no" >&6; }
  22792. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22793. _pkg_short_errors_supported=yes
  22794. else
  22795. _pkg_short_errors_supported=no
  22796. fi
  22797. if test $_pkg_short_errors_supported = yes; then
  22798. GTK210_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
  22799. else
  22800. GTK210_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.10.0" 2>&1`
  22801. fi
  22802. # Put the nasty error message in config.log where it belongs
  22803. echo "$GTK210_PKG_ERRORS" >&5
  22804. ENABLE_SYSTRAY_GTK=""
  22805. elif test $pkg_failed = untried; then
  22806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22807. $as_echo "no" >&6; }
  22808. ENABLE_SYSTRAY_GTK=""
  22809. else
  22810. GTK210_CFLAGS=$pkg_cv_GTK210_CFLAGS
  22811. GTK210_LIBS=$pkg_cv_GTK210_LIBS
  22812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22813. $as_echo "yes" >&6; }
  22814. ENABLE_SYSTRAY_GTK="TRUE"
  22815. fi
  22816. fi
  22817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Gtk print dialog support" >&5
  22818. $as_echo_n "checking whether to enable Gtk print dialog support... " >&6; }
  22819. pkg_failed=no
  22820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_PRINT" >&5
  22821. $as_echo_n "checking for GTK_PRINT... " >&6; }
  22822. if test -n "$GTK_PRINT_CFLAGS"; then
  22823. pkg_cv_GTK_PRINT_CFLAGS="$GTK_PRINT_CFLAGS"
  22824. elif test -n "$PKG_CONFIG"; then
  22825. if test -n "$PKG_CONFIG" && \
  22826. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10.0\""; } >&5
  22827. ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10.0") 2>&5
  22828. ac_status=$?
  22829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22830. test $ac_status = 0; }; then
  22831. pkg_cv_GTK_PRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10.0" 2>/dev/null`
  22832. else
  22833. pkg_failed=yes
  22834. fi
  22835. else
  22836. pkg_failed=untried
  22837. fi
  22838. if test -n "$GTK_PRINT_LIBS"; then
  22839. pkg_cv_GTK_PRINT_LIBS="$GTK_PRINT_LIBS"
  22840. elif test -n "$PKG_CONFIG"; then
  22841. if test -n "$PKG_CONFIG" && \
  22842. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10.0\""; } >&5
  22843. ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10.0") 2>&5
  22844. ac_status=$?
  22845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22846. test $ac_status = 0; }; then
  22847. pkg_cv_GTK_PRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10.0" 2>/dev/null`
  22848. else
  22849. pkg_failed=yes
  22850. fi
  22851. else
  22852. pkg_failed=untried
  22853. fi
  22854. if test $pkg_failed = yes; then
  22855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22856. $as_echo "no" >&6; }
  22857. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22858. _pkg_short_errors_supported=yes
  22859. else
  22860. _pkg_short_errors_supported=no
  22861. fi
  22862. if test $_pkg_short_errors_supported = yes; then
  22863. GTK_PRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-unix-print-2.0 >= 2.10.0" 2>&1`
  22864. else
  22865. GTK_PRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-unix-print-2.0 >= 2.10.0" 2>&1`
  22866. fi
  22867. # Put the nasty error message in config.log where it belongs
  22868. echo "$GTK_PRINT_PKG_ERRORS" >&5
  22869. ENABLE_GTK_PRINT=""
  22870. elif test $pkg_failed = untried; then
  22871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22872. $as_echo "no" >&6; }
  22873. ENABLE_GTK_PRINT=""
  22874. else
  22875. GTK_PRINT_CFLAGS=$pkg_cv_GTK_PRINT_CFLAGS
  22876. GTK_PRINT_LIBS=$pkg_cv_GTK_PRINT_LIBS
  22877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22878. $as_echo "yes" >&6; }
  22879. ENABLE_GTK_PRINT="TRUE"
  22880. fi
  22881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBUS support" >&5
  22882. $as_echo_n "checking whether to enable DBUS support... " >&6; }
  22883. if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_dbus" = "yes"; then
  22884. ENABLE_DBUS="TRUE"
  22885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22886. $as_echo "yes" >&6; }
  22887. pkg_failed=no
  22888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  22889. $as_echo_n "checking for DBUS... " >&6; }
  22890. if test -n "$DBUS_CFLAGS"; then
  22891. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22892. elif test -n "$PKG_CONFIG"; then
  22893. if test -n "$PKG_CONFIG" && \
  22894. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.70 \""; } >&5
  22895. ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.70 ") 2>&5
  22896. ac_status=$?
  22897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22898. test $ac_status = 0; }; then
  22899. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.70 " 2>/dev/null`
  22900. else
  22901. pkg_failed=yes
  22902. fi
  22903. else
  22904. pkg_failed=untried
  22905. fi
  22906. if test -n "$DBUS_LIBS"; then
  22907. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22908. elif test -n "$PKG_CONFIG"; then
  22909. if test -n "$PKG_CONFIG" && \
  22910. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.70 \""; } >&5
  22911. ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.70 ") 2>&5
  22912. ac_status=$?
  22913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22914. test $ac_status = 0; }; then
  22915. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.70 " 2>/dev/null`
  22916. else
  22917. pkg_failed=yes
  22918. fi
  22919. else
  22920. pkg_failed=untried
  22921. fi
  22922. if test $pkg_failed = yes; then
  22923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22924. $as_echo "no" >&6; }
  22925. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22926. _pkg_short_errors_supported=yes
  22927. else
  22928. _pkg_short_errors_supported=no
  22929. fi
  22930. if test $_pkg_short_errors_supported = yes; then
  22931. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1 >= 0.70 " 2>&1`
  22932. else
  22933. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1 >= 0.70 " 2>&1`
  22934. fi
  22935. # Put the nasty error message in config.log where it belongs
  22936. echo "$DBUS_PKG_ERRORS" >&5
  22937. as_fn_error $? "Package requirements (dbus-glib-1 >= 0.70 ) were not met:
  22938. $DBUS_PKG_ERRORS
  22939. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22940. installed software in a non-standard prefix.
  22941. Alternatively, you may set the environment variables DBUS_CFLAGS
  22942. and DBUS_LIBS to avoid the need to call pkg-config.
  22943. See the pkg-config man page for more details." "$LINENO" 5
  22944. elif test $pkg_failed = untried; then
  22945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22946. $as_echo "no" >&6; }
  22947. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22948. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22949. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  22950. is in your PATH or set the PKG_CONFIG environment variable to the full
  22951. path to pkg-config.
  22952. Alternatively, you may set the environment variables DBUS_CFLAGS
  22953. and DBUS_LIBS to avoid the need to call pkg-config.
  22954. See the pkg-config man page for more details.
  22955. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22956. See \`config.log' for more details" "$LINENO" 5; }
  22957. else
  22958. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22959. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22961. $as_echo "yes" >&6; }
  22962. fi
  22963. else
  22964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22965. $as_echo "no" >&6; }
  22966. fi
  22967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GIO support" >&5
  22968. $as_echo_n "checking whether to enable GIO support... " >&6; }
  22969. if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gio" = "yes"; then
  22970. if test "$ENABLE_GNOMEVFS" = "TRUE"; then
  22971. as_fn_error $? "please use --enable-gio only together with --disable-gnome-vfs." "$LINENO" 5
  22972. fi
  22973. ENABLE_GIO="TRUE"
  22974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22975. $as_echo "yes" >&6; }
  22976. pkg_failed=no
  22977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
  22978. $as_echo_n "checking for GIO... " >&6; }
  22979. if test -n "$GIO_CFLAGS"; then
  22980. pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
  22981. elif test -n "$PKG_CONFIG"; then
  22982. if test -n "$PKG_CONFIG" && \
  22983. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 \""; } >&5
  22984. ($PKG_CONFIG --exists --print-errors "gio-2.0 ") 2>&5
  22985. ac_status=$?
  22986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22987. test $ac_status = 0; }; then
  22988. pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 " 2>/dev/null`
  22989. else
  22990. pkg_failed=yes
  22991. fi
  22992. else
  22993. pkg_failed=untried
  22994. fi
  22995. if test -n "$GIO_LIBS"; then
  22996. pkg_cv_GIO_LIBS="$GIO_LIBS"
  22997. elif test -n "$PKG_CONFIG"; then
  22998. if test -n "$PKG_CONFIG" && \
  22999. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 \""; } >&5
  23000. ($PKG_CONFIG --exists --print-errors "gio-2.0 ") 2>&5
  23001. ac_status=$?
  23002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23003. test $ac_status = 0; }; then
  23004. pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 " 2>/dev/null`
  23005. else
  23006. pkg_failed=yes
  23007. fi
  23008. else
  23009. pkg_failed=untried
  23010. fi
  23011. if test $pkg_failed = yes; then
  23012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23013. $as_echo "no" >&6; }
  23014. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23015. _pkg_short_errors_supported=yes
  23016. else
  23017. _pkg_short_errors_supported=no
  23018. fi
  23019. if test $_pkg_short_errors_supported = yes; then
  23020. GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gio-2.0 " 2>&1`
  23021. else
  23022. GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "gio-2.0 " 2>&1`
  23023. fi
  23024. # Put the nasty error message in config.log where it belongs
  23025. echo "$GIO_PKG_ERRORS" >&5
  23026. as_fn_error $? "Package requirements (gio-2.0 ) were not met:
  23027. $GIO_PKG_ERRORS
  23028. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23029. installed software in a non-standard prefix.
  23030. Alternatively, you may set the environment variables GIO_CFLAGS
  23031. and GIO_LIBS to avoid the need to call pkg-config.
  23032. See the pkg-config man page for more details." "$LINENO" 5
  23033. elif test $pkg_failed = untried; then
  23034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23035. $as_echo "no" >&6; }
  23036. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23038. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  23039. is in your PATH or set the PKG_CONFIG environment variable to the full
  23040. path to pkg-config.
  23041. Alternatively, you may set the environment variables GIO_CFLAGS
  23042. and GIO_LIBS to avoid the need to call pkg-config.
  23043. See the pkg-config man page for more details.
  23044. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23045. See \`config.log' for more details" "$LINENO" 5; }
  23046. else
  23047. GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
  23048. GIO_LIBS=$pkg_cv_GIO_LIBS
  23049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23050. $as_echo "yes" >&6; }
  23051. fi
  23052. else
  23053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23054. $as_echo "no" >&6; }
  23055. fi
  23056. fi
  23057. fi
  23058. pkg_failed=no
  23059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
  23060. $as_echo_n "checking for LIBPNG... " >&6; }
  23061. if test -n "$LIBPNG_CFLAGS"; then
  23062. pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  23063. elif test -n "$PKG_CONFIG"; then
  23064. if test -n "$PKG_CONFIG" && \
  23065. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
  23066. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  23067. ac_status=$?
  23068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23069. test $ac_status = 0; }; then
  23070. pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
  23071. else
  23072. pkg_failed=yes
  23073. fi
  23074. else
  23075. pkg_failed=untried
  23076. fi
  23077. if test -n "$LIBPNG_LIBS"; then
  23078. pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  23079. elif test -n "$PKG_CONFIG"; then
  23080. if test -n "$PKG_CONFIG" && \
  23081. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
  23082. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  23083. ac_status=$?
  23084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23085. test $ac_status = 0; }; then
  23086. pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
  23087. else
  23088. pkg_failed=yes
  23089. fi
  23090. else
  23091. pkg_failed=untried
  23092. fi
  23093. if test $pkg_failed = yes; then
  23094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23095. $as_echo "no" >&6; }
  23096. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23097. _pkg_short_errors_supported=yes
  23098. else
  23099. _pkg_short_errors_supported=no
  23100. fi
  23101. if test $_pkg_short_errors_supported = yes; then
  23102. LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
  23103. else
  23104. LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
  23105. fi
  23106. # Put the nasty error message in config.log where it belongs
  23107. echo "$LIBPNG_PKG_ERRORS" >&5
  23108. ENABLE_QUICKSTART_LIBPNG=""
  23109. elif test $pkg_failed = untried; then
  23110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23111. $as_echo "no" >&6; }
  23112. ENABLE_QUICKSTART_LIBPNG=""
  23113. else
  23114. LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  23115. LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  23116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23117. $as_echo "yes" >&6; }
  23118. ENABLE_QUICKSTART_LIBPNG="TRUE"
  23119. fi
  23120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libpng linking in quickstarter" >&5
  23121. $as_echo_n "checking whether to enable libpng linking in quickstarter... " >&6; }
  23122. if test "x$enable_unix_qstart_libpng" != "xno"; then
  23123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23124. $as_echo "yes" >&6; }
  23125. else
  23126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23127. $as_echo "no" >&6; }
  23128. ENABLE_QUICKSTART_LIBPNG=""
  23129. fi
  23130. SPLIT_APP_MODULES=""
  23131. if test "$enable_split_app_modules" = "yes"; then
  23132. SPLIT_APP_MODULES="YES"
  23133. fi
  23134. SPLIT_OPT_FEATURES=""
  23135. if test "$enable_split_opt_features" = "yes"; then
  23136. SPLIT_OPT_FEATURES="YES"
  23137. fi
  23138. if test $_os = Darwin -o $_os = WINNT; then
  23139. if test "$enable_cairo_canvas" = yes; then
  23140. as_fn_error $? "The cairo canvas should not be used for this platform" "$LINENO" 5
  23141. fi
  23142. enable_cairo_canvas=no
  23143. elif test -z "$enable_cairo_canvas"; then
  23144. enable_cairo_canvas=yes
  23145. fi
  23146. ENABLE_CAIRO_CANVAS=""
  23147. if test "$test_cairo" = "yes" -a "$enable_cairo_canvas" = "yes"; then
  23148. ENABLE_CAIRO_CANVAS="TRUE"
  23149. fi
  23150. ENABLE_GSTREAMER=""
  23151. if test "$build_gstreamer" = "yes"; then
  23152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the GStreamer avmedia backend" >&5
  23153. $as_echo_n "checking whether to enable the GStreamer avmedia backend... " >&6; }
  23154. if test "x$enable_gstreamer" != "xno"; then
  23155. ENABLE_GSTREAMER="TRUE"
  23156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23157. $as_echo "yes" >&6; }
  23158. pkg_failed=no
  23159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTREAMER" >&5
  23160. $as_echo_n "checking for GSTREAMER... " >&6; }
  23161. if test -n "$GSTREAMER_CFLAGS"; then
  23162. pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
  23163. elif test -n "$PKG_CONFIG"; then
  23164. if test -n "$PKG_CONFIG" && \
  23165. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 gstreamer-plugins-base-0.10 \""; } >&5
  23166. ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 ") 2>&5
  23167. ac_status=$?
  23168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23169. test $ac_status = 0; }; then
  23170. pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>/dev/null`
  23171. else
  23172. pkg_failed=yes
  23173. fi
  23174. else
  23175. pkg_failed=untried
  23176. fi
  23177. if test -n "$GSTREAMER_LIBS"; then
  23178. pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
  23179. elif test -n "$PKG_CONFIG"; then
  23180. if test -n "$PKG_CONFIG" && \
  23181. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 gstreamer-plugins-base-0.10 \""; } >&5
  23182. ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 ") 2>&5
  23183. ac_status=$?
  23184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23185. test $ac_status = 0; }; then
  23186. pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>/dev/null`
  23187. else
  23188. pkg_failed=yes
  23189. fi
  23190. else
  23191. pkg_failed=untried
  23192. fi
  23193. if test $pkg_failed = yes; then
  23194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23195. $as_echo "no" >&6; }
  23196. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23197. _pkg_short_errors_supported=yes
  23198. else
  23199. _pkg_short_errors_supported=no
  23200. fi
  23201. if test $_pkg_short_errors_supported = yes; then
  23202. GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>&1`
  23203. else
  23204. GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors "gstreamer-0.10 gstreamer-plugins-base-0.10 " 2>&1`
  23205. fi
  23206. # Put the nasty error message in config.log where it belongs
  23207. echo "$GSTREAMER_PKG_ERRORS" >&5
  23208. as_fn_error $? "Package requirements (gstreamer-0.10 gstreamer-plugins-base-0.10 ) were not met:
  23209. $GSTREAMER_PKG_ERRORS
  23210. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23211. installed software in a non-standard prefix.
  23212. Alternatively, you may set the environment variables GSTREAMER_CFLAGS
  23213. and GSTREAMER_LIBS to avoid the need to call pkg-config.
  23214. See the pkg-config man page for more details." "$LINENO" 5
  23215. elif test $pkg_failed = untried; then
  23216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23217. $as_echo "no" >&6; }
  23218. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23220. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  23221. is in your PATH or set the PKG_CONFIG environment variable to the full
  23222. path to pkg-config.
  23223. Alternatively, you may set the environment variables GSTREAMER_CFLAGS
  23224. and GSTREAMER_LIBS to avoid the need to call pkg-config.
  23225. See the pkg-config man page for more details.
  23226. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23227. See \`config.log' for more details" "$LINENO" 5; }
  23228. else
  23229. GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
  23230. GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
  23231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23232. $as_echo "yes" >&6; }
  23233. fi
  23234. else
  23235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23236. $as_echo "no" >&6; }
  23237. fi
  23238. fi
  23239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the OpenGL Transitions component" >&5
  23240. $as_echo_n "checking whether to build the OpenGL Transitions component... " >&6; }
  23241. ENABLE_OPENGL=
  23242. if test "$_os" = "Darwin"; then
  23243. # We use frameworks on Mac OS X, no need for detail checks
  23244. ENABLE_OPENGL=TRUE
  23245. SYSTEM_MESA_HEADERS=YES
  23246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23247. $as_echo "yes" >&6; }
  23248. else
  23249. if test "x$enable_opengl" != "xno"; then
  23250. if test "$_os" != "WINNT"; then
  23251. save_LDFLAGS=$LDFLAGS
  23252. LDFLAGS="$LDFLAGS -lm"
  23253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23254. $as_echo "yes" >&6; }
  23255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
  23256. $as_echo_n "checking for main in -lGL... " >&6; }
  23257. if ${ac_cv_lib_GL_main+:} false; then :
  23258. $as_echo_n "(cached) " >&6
  23259. else
  23260. ac_check_lib_save_LIBS=$LIBS
  23261. LIBS="-lGL $LIBS"
  23262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23263. /* end confdefs.h. */
  23264. int
  23265. main ()
  23266. {
  23267. return main ();
  23268. ;
  23269. return 0;
  23270. }
  23271. _ACEOF
  23272. if ac_fn_c_try_link "$LINENO"; then :
  23273. ac_cv_lib_GL_main=yes
  23274. else
  23275. ac_cv_lib_GL_main=no
  23276. fi
  23277. rm -f core conftest.err conftest.$ac_objext \
  23278. conftest$ac_exeext conftest.$ac_ext
  23279. LIBS=$ac_check_lib_save_LIBS
  23280. fi
  23281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
  23282. $as_echo "$ac_cv_lib_GL_main" >&6; }
  23283. if test "x$ac_cv_lib_GL_main" = xyes; then :
  23284. :
  23285. else
  23286. as_fn_error $? "libGL not installed or functional" "$LINENO" 5
  23287. fi
  23288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGLU" >&5
  23289. $as_echo_n "checking for main in -lGLU... " >&6; }
  23290. if ${ac_cv_lib_GLU_main+:} false; then :
  23291. $as_echo_n "(cached) " >&6
  23292. else
  23293. ac_check_lib_save_LIBS=$LIBS
  23294. LIBS="-lGLU $LIBS"
  23295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23296. /* end confdefs.h. */
  23297. int
  23298. main ()
  23299. {
  23300. return main ();
  23301. ;
  23302. return 0;
  23303. }
  23304. _ACEOF
  23305. if ac_fn_c_try_link "$LINENO"; then :
  23306. ac_cv_lib_GLU_main=yes
  23307. else
  23308. ac_cv_lib_GLU_main=no
  23309. fi
  23310. rm -f core conftest.err conftest.$ac_objext \
  23311. conftest$ac_exeext conftest.$ac_ext
  23312. LIBS=$ac_check_lib_save_LIBS
  23313. fi
  23314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_main" >&5
  23315. $as_echo "$ac_cv_lib_GLU_main" >&6; }
  23316. if test "x$ac_cv_lib_GLU_main" = xyes; then :
  23317. :
  23318. else
  23319. as_fn_error $? "libGLU not installed or functional" "$LINENO" 5
  23320. fi
  23321. ENABLE_OPENGL=TRUE
  23322. LDFLAGS=$save_LDFLAGS
  23323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Mesa headers to use" >&5
  23324. $as_echo_n "checking which Mesa headers to use... " >&6; }
  23325. if test "$with_system_mesa_headers" = "yes"; then
  23326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  23327. $as_echo "external" >&6; }
  23328. SYSTEM_MESA_HEADERS=YES
  23329. ac_ext=c
  23330. ac_cpp='$CPP $CPPFLAGS'
  23331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23334. ac_fn_c_check_header_compile "$LINENO" "GL/glxext.h" "ac_cv_header_GL_glxext_h" "#include <GL/glx.h>
  23335. "
  23336. if test "x$ac_cv_header_GL_glxext_h" = xyes; then :
  23337. else
  23338. as_fn_error $? "mesa headers not found." "$LINENO" 5
  23339. fi
  23340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GL/glxext.h defines PFNGLXBINDTEXIMAGEEXTPROC" >&5
  23341. $as_echo_n "checking whether GL/glxext.h defines PFNGLXBINDTEXIMAGEEXTPROC... " >&6; }
  23342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23343. /* end confdefs.h. */
  23344. #include <GL/glxext.h>
  23345. _ACEOF
  23346. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23347. $EGREP "PFNGLXBINDTEXIMAGEEXTPROC" >/dev/null 2>&1; then :
  23348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23349. $as_echo "yes" >&6; }
  23350. else
  23351. as_fn_error $? "no" "$LINENO" 5
  23352. fi
  23353. rm -f conftest*
  23354. ac_ext=c
  23355. ac_cpp='$CPP $CPPFLAGS'
  23356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23359. else
  23360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  23361. $as_echo "internal" >&6; }
  23362. SYSTEM_MESA_HEADERS=NO
  23363. BUILD_TYPE="$BUILD_TYPE MESA"
  23364. fi
  23365. else
  23366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not on Windows" >&5
  23367. $as_echo "not on Windows" >&6; }
  23368. fi
  23369. else
  23370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23371. $as_echo "no" >&6; }
  23372. fi
  23373. fi
  23374. # presenter minimizer extension?
  23375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the Presentation Minimizer extension" >&5
  23376. $as_echo_n "checking whether to build the Presentation Minimizer extension... " >&6; }
  23377. if test "x$enable_ext_presenter_minimizer" != "xno" -a "x$enable_extension_integration" != "xno"; then
  23378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23379. $as_echo "yes" >&6; }
  23380. ENABLE_MINIMIZER=YES
  23381. else
  23382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23383. $as_echo "no" >&6; }
  23384. ENABLE_MINIMIZER=NO
  23385. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_MINIMIZER"
  23386. fi
  23387. # presenter console extension?
  23388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the Presenter Console extension" >&5
  23389. $as_echo_n "checking whether to build the Presenter Console extension... " >&6; }
  23390. if test "x$enable_ext_presenter_console" != "xno" -a "x$enable_extension_integration" != "xno"; then
  23391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23392. $as_echo "yes" >&6; }
  23393. ENABLE_PRESENTER_SCREEN=YES
  23394. else
  23395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23396. $as_echo "no" >&6; }
  23397. ENABLE_PRESENTER_SCREEN=NO
  23398. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_PRESENTER_SCREEN"
  23399. fi
  23400. # pdf import extension?
  23401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the PDF Import extension" >&5
  23402. $as_echo_n "checking whether to build the PDF Import extension... " >&6; }
  23403. if test "x$enable_ext_pdfimport" != "xno" -a "x$enable_extension_integration" != "xno"; then
  23404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23405. $as_echo "yes" >&6; }
  23406. ENABLE_PDFIMPORT=YES
  23407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which pdf backend to use" >&5
  23408. $as_echo_n "checking which pdf backend to use... " >&6; }
  23409. if test "$with_system_poppler" = "yes"; then
  23410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  23411. $as_echo "external" >&6; }
  23412. SYSTEM_POPPLER=YES
  23413. pkg_failed=no
  23414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POPPLER" >&5
  23415. $as_echo_n "checking for POPPLER... " >&6; }
  23416. if test -n "$POPPLER_CFLAGS"; then
  23417. pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
  23418. elif test -n "$PKG_CONFIG"; then
  23419. if test -n "$PKG_CONFIG" && \
  23420. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.8.0 \""; } >&5
  23421. ($PKG_CONFIG --exists --print-errors "poppler >= 0.8.0 ") 2>&5
  23422. ac_status=$?
  23423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23424. test $ac_status = 0; }; then
  23425. pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.8.0 " 2>/dev/null`
  23426. else
  23427. pkg_failed=yes
  23428. fi
  23429. else
  23430. pkg_failed=untried
  23431. fi
  23432. if test -n "$POPPLER_LIBS"; then
  23433. pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
  23434. elif test -n "$PKG_CONFIG"; then
  23435. if test -n "$PKG_CONFIG" && \
  23436. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.8.0 \""; } >&5
  23437. ($PKG_CONFIG --exists --print-errors "poppler >= 0.8.0 ") 2>&5
  23438. ac_status=$?
  23439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23440. test $ac_status = 0; }; then
  23441. pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.8.0 " 2>/dev/null`
  23442. else
  23443. pkg_failed=yes
  23444. fi
  23445. else
  23446. pkg_failed=untried
  23447. fi
  23448. if test $pkg_failed = yes; then
  23449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23450. $as_echo "no" >&6; }
  23451. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23452. _pkg_short_errors_supported=yes
  23453. else
  23454. _pkg_short_errors_supported=no
  23455. fi
  23456. if test $_pkg_short_errors_supported = yes; then
  23457. POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "poppler >= 0.8.0 " 2>&1`
  23458. else
  23459. POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "poppler >= 0.8.0 " 2>&1`
  23460. fi
  23461. # Put the nasty error message in config.log where it belongs
  23462. echo "$POPPLER_PKG_ERRORS" >&5
  23463. as_fn_error $? "Package requirements (poppler >= 0.8.0 ) were not met:
  23464. $POPPLER_PKG_ERRORS
  23465. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23466. installed software in a non-standard prefix.
  23467. Alternatively, you may set the environment variables POPPLER_CFLAGS
  23468. and POPPLER_LIBS to avoid the need to call pkg-config.
  23469. See the pkg-config man page for more details." "$LINENO" 5
  23470. elif test $pkg_failed = untried; then
  23471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23472. $as_echo "no" >&6; }
  23473. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23474. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23475. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  23476. is in your PATH or set the PKG_CONFIG environment variable to the full
  23477. path to pkg-config.
  23478. Alternatively, you may set the environment variables POPPLER_CFLAGS
  23479. and POPPLER_LIBS to avoid the need to call pkg-config.
  23480. See the pkg-config man page for more details.
  23481. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23482. See \`config.log' for more details" "$LINENO" 5; }
  23483. else
  23484. POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
  23485. POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
  23486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23487. $as_echo "yes" >&6; }
  23488. fi
  23489. ac_ext=cpp
  23490. ac_cpp='$CXXCPP $CPPFLAGS'
  23491. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23492. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23493. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23494. save_CXXFLAGS=$CXXFLAGS
  23495. save_CPPFLAGS=$CPPFLAGS
  23496. CXXFLAGS="$CXXFLAGS $POPPLER_CFLAGS"
  23497. CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
  23498. ac_fn_cxx_check_header_mongrel "$LINENO" "cpp/poppler-version.h" "ac_cv_header_cpp_poppler_version_h" "$ac_includes_default"
  23499. if test "x$ac_cv_header_cpp_poppler_version_h" = xyes; then :
  23500. else
  23501. as_fn_error $? "cpp/poppler-version.h not found. Install poppler" "$LINENO" 5
  23502. fi
  23503. CXXFLAGS=$save_CXXFLAGS
  23504. CPPFLAGS=$save_CPPFLAGS
  23505. ac_ext=c
  23506. ac_cpp='$CPP $CPPFLAGS'
  23507. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23508. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23509. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23510. else
  23511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  23512. $as_echo "internal" >&6; }
  23513. SYSTEM_POPPLER=NO
  23514. BUILD_TYPE="$BUILD_TYPE XPDF"
  23515. fi
  23516. else
  23517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23518. $as_echo "no" >&6; }
  23519. ENABLE_PDFIMPORT=NO
  23520. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_PDFIMPORT"
  23521. fi
  23522. if test "$ENABLE_PRESENTER_SCREEN" = "YES" -o "$ENABLE_MINIMIZER" = "YES" -o "$ENABLE_PDFIMPORT" = "YES"; then
  23523. BUILD_TYPE="$BUILD_TYPE SDEXT"
  23524. fi
  23525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the Wiki Publisher extension" >&5
  23526. $as_echo_n "checking whether to build the Wiki Publisher extension... " >&6; }
  23527. if test "x$enable_ext_wiki_publisher" = "xyes" -a "x$enable_extension_integration" != "xno" -a "$with_java" != "no"; then
  23528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23529. $as_echo "yes" >&6; }
  23530. ENABLE_MEDIAWIKI=YES
  23531. BUILD_TYPE="$BUILD_TYPE SWEXT"
  23532. if test "x$with_java" = "xno"; then
  23533. as_fn_error $? "Wiki Publisher requires Java! Enable Java if you want to build it." "$LINENO" 5
  23534. fi
  23535. else
  23536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23537. $as_echo "no" >&6; }
  23538. ENABLE_MEDIAWIKI=NO
  23539. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_MEDIAWIKI"
  23540. fi
  23541. if test "$ENABLE_MEDIAWIKI" = "YES"; then
  23542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Servlet API Jar to use" >&5
  23543. $as_echo_n "checking which Servlet API Jar to use... " >&6; }
  23544. if test "$with_system_servlet_api" = "yes"; then
  23545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  23546. $as_echo "external" >&6; }
  23547. SYSTEM_SERVLETAPI=YES
  23548. if test -z "$SERVLETAPI_JAR"; then
  23549. SERVLETAPI_JAR=/usr/share/java/servlet-api.jar
  23550. fi
  23551. as_ac_File=`$as_echo "ac_cv_file_$SERVLETAPI_JAR" | $as_tr_sh`
  23552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SERVLETAPI_JAR" >&5
  23553. $as_echo_n "checking for $SERVLETAPI_JAR... " >&6; }
  23554. if eval \${$as_ac_File+:} false; then :
  23555. $as_echo_n "(cached) " >&6
  23556. else
  23557. test "$cross_compiling" = yes &&
  23558. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23559. if test -r "$SERVLETAPI_JAR"; then
  23560. eval "$as_ac_File=yes"
  23561. else
  23562. eval "$as_ac_File=no"
  23563. fi
  23564. fi
  23565. eval ac_res=\$$as_ac_File
  23566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23567. $as_echo "$ac_res" >&6; }
  23568. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23569. else
  23570. as_fn_error $? "servlet-api.jar not found." "$LINENO" 5
  23571. fi
  23572. else
  23573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  23574. $as_echo "internal" >&6; }
  23575. SYSTEM_SERVLETAPI=NO
  23576. BUILD_TYPE="$BUILD_TYPE TOMCAT"
  23577. fi
  23578. fi
  23579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the Report Builder extension" >&5
  23580. $as_echo_n "checking whether to build the Report Builder extension... " >&6; }
  23581. if test "$enable_ext_report_builder" != "no" -a "x$enable_extension_integration" != "xno" -a "$with_java" != "no"; then
  23582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23583. $as_echo "yes" >&6; }
  23584. ENABLE_REPORTBUILDER=YES
  23585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which jfreereport libs to use" >&5
  23586. $as_echo_n "checking which jfreereport libs to use... " >&6; }
  23587. if test "$with_system_jfreereport" = "yes"; then
  23588. SYSTEM_JFREEREPORT=YES
  23589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  23590. $as_echo "external" >&6; }
  23591. if test -z $SAC_JAR; then
  23592. SAC_JAR=/usr/share/java/sac.jar
  23593. fi
  23594. as_ac_File=`$as_echo "ac_cv_file_$SAC_JAR" | $as_tr_sh`
  23595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SAC_JAR" >&5
  23596. $as_echo_n "checking for $SAC_JAR... " >&6; }
  23597. if eval \${$as_ac_File+:} false; then :
  23598. $as_echo_n "(cached) " >&6
  23599. else
  23600. test "$cross_compiling" = yes &&
  23601. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23602. if test -r "$SAC_JAR"; then
  23603. eval "$as_ac_File=yes"
  23604. else
  23605. eval "$as_ac_File=no"
  23606. fi
  23607. fi
  23608. eval ac_res=\$$as_ac_File
  23609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23610. $as_echo "$ac_res" >&6; }
  23611. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23612. else
  23613. as_fn_error $? "sac.jar not found." "$LINENO" 5
  23614. fi
  23615. if test -z $LIBXML_JAR; then
  23616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libxml-1.0.0.jar" >&5
  23617. $as_echo_n "checking for /usr/share/java/libxml-1.0.0.jar... " >&6; }
  23618. if ${ac_cv_file__usr_share_java_libxml_1_0_0_jar+:} false; then :
  23619. $as_echo_n "(cached) " >&6
  23620. else
  23621. test "$cross_compiling" = yes &&
  23622. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23623. if test -r "/usr/share/java/libxml-1.0.0.jar"; then
  23624. ac_cv_file__usr_share_java_libxml_1_0_0_jar=yes
  23625. else
  23626. ac_cv_file__usr_share_java_libxml_1_0_0_jar=no
  23627. fi
  23628. fi
  23629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libxml_1_0_0_jar" >&5
  23630. $as_echo "$ac_cv_file__usr_share_java_libxml_1_0_0_jar" >&6; }
  23631. if test "x$ac_cv_file__usr_share_java_libxml_1_0_0_jar" = xyes; then :
  23632. LIBXML_JAR=/usr/share/java/libxml-1.0.0.jar
  23633. else
  23634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libxml.jar" >&5
  23635. $as_echo_n "checking for /usr/share/java/libxml.jar... " >&6; }
  23636. if ${ac_cv_file__usr_share_java_libxml_jar+:} false; then :
  23637. $as_echo_n "(cached) " >&6
  23638. else
  23639. test "$cross_compiling" = yes &&
  23640. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23641. if test -r "/usr/share/java/libxml.jar"; then
  23642. ac_cv_file__usr_share_java_libxml_jar=yes
  23643. else
  23644. ac_cv_file__usr_share_java_libxml_jar=no
  23645. fi
  23646. fi
  23647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libxml_jar" >&5
  23648. $as_echo "$ac_cv_file__usr_share_java_libxml_jar" >&6; }
  23649. if test "x$ac_cv_file__usr_share_java_libxml_jar" = xyes; then :
  23650. LIBXML_JAR=/usr/share/java/libxml.jar
  23651. else
  23652. as_fn_error $? "libxml.jar replacement not found." "$LINENO" 5
  23653. fi
  23654. fi
  23655. else
  23656. as_ac_File=`$as_echo "ac_cv_file_$LIBXML_JAR" | $as_tr_sh`
  23657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBXML_JAR" >&5
  23658. $as_echo_n "checking for $LIBXML_JAR... " >&6; }
  23659. if eval \${$as_ac_File+:} false; then :
  23660. $as_echo_n "(cached) " >&6
  23661. else
  23662. test "$cross_compiling" = yes &&
  23663. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23664. if test -r "$LIBXML_JAR"; then
  23665. eval "$as_ac_File=yes"
  23666. else
  23667. eval "$as_ac_File=no"
  23668. fi
  23669. fi
  23670. eval ac_res=\$$as_ac_File
  23671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23672. $as_echo "$ac_res" >&6; }
  23673. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23674. else
  23675. as_fn_error $? "libxml.jar not found." "$LINENO" 5
  23676. fi
  23677. fi
  23678. if test -z $FLUTE_JAR; then
  23679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/flute-1.3.0.jar" >&5
  23680. $as_echo_n "checking for /usr/share/java/flute-1.3.0.jar... " >&6; }
  23681. if ${ac_cv_file__usr_share_java_flute_1_3_0_jar+:} false; then :
  23682. $as_echo_n "(cached) " >&6
  23683. else
  23684. test "$cross_compiling" = yes &&
  23685. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23686. if test -r "/usr/share/java/flute-1.3.0.jar"; then
  23687. ac_cv_file__usr_share_java_flute_1_3_0_jar=yes
  23688. else
  23689. ac_cv_file__usr_share_java_flute_1_3_0_jar=no
  23690. fi
  23691. fi
  23692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_flute_1_3_0_jar" >&5
  23693. $as_echo "$ac_cv_file__usr_share_java_flute_1_3_0_jar" >&6; }
  23694. if test "x$ac_cv_file__usr_share_java_flute_1_3_0_jar" = xyes; then :
  23695. FLUTE_JAR=/usr/share/java/flute-1.3.0.jar
  23696. else
  23697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/flute.jar" >&5
  23698. $as_echo_n "checking for /usr/share/java/flute.jar... " >&6; }
  23699. if ${ac_cv_file__usr_share_java_flute_jar+:} false; then :
  23700. $as_echo_n "(cached) " >&6
  23701. else
  23702. test "$cross_compiling" = yes &&
  23703. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23704. if test -r "/usr/share/java/flute.jar"; then
  23705. ac_cv_file__usr_share_java_flute_jar=yes
  23706. else
  23707. ac_cv_file__usr_share_java_flute_jar=no
  23708. fi
  23709. fi
  23710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_flute_jar" >&5
  23711. $as_echo "$ac_cv_file__usr_share_java_flute_jar" >&6; }
  23712. if test "x$ac_cv_file__usr_share_java_flute_jar" = xyes; then :
  23713. FLUTE_JAR=/usr/share/java/flute.jar
  23714. else
  23715. as_fn_error $? "flute-1.3.0.jar replacement not found." "$LINENO" 5
  23716. fi
  23717. fi
  23718. else
  23719. as_ac_File=`$as_echo "ac_cv_file_$FLUTE_JAR" | $as_tr_sh`
  23720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $FLUTE_JAR" >&5
  23721. $as_echo_n "checking for $FLUTE_JAR... " >&6; }
  23722. if eval \${$as_ac_File+:} false; then :
  23723. $as_echo_n "(cached) " >&6
  23724. else
  23725. test "$cross_compiling" = yes &&
  23726. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23727. if test -r "$FLUTE_JAR"; then
  23728. eval "$as_ac_File=yes"
  23729. else
  23730. eval "$as_ac_File=no"
  23731. fi
  23732. fi
  23733. eval ac_res=\$$as_ac_File
  23734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23735. $as_echo "$ac_res" >&6; }
  23736. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23737. else
  23738. as_fn_error $? "flute-1.3.0.jar not found." "$LINENO" 5
  23739. fi
  23740. fi
  23741. if test -z $JFREEREPORT_JAR; then
  23742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/flow-engine-0.9.2.jar" >&5
  23743. $as_echo_n "checking for /usr/share/java/flow-engine-0.9.2.jar... " >&6; }
  23744. if ${ac_cv_file__usr_share_java_flow_engine_0_9_2_jar+:} false; then :
  23745. $as_echo_n "(cached) " >&6
  23746. else
  23747. test "$cross_compiling" = yes &&
  23748. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23749. if test -r "/usr/share/java/flow-engine-0.9.2.jar"; then
  23750. ac_cv_file__usr_share_java_flow_engine_0_9_2_jar=yes
  23751. else
  23752. ac_cv_file__usr_share_java_flow_engine_0_9_2_jar=no
  23753. fi
  23754. fi
  23755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" >&5
  23756. $as_echo "$ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" >&6; }
  23757. if test "x$ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" = xyes; then :
  23758. JFREEREPORT_JAR=/usr/share/java/flow-engine-0.9.2.jar
  23759. else
  23760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/flow-engine.jar" >&5
  23761. $as_echo_n "checking for /usr/share/java/flow-engine.jar... " >&6; }
  23762. if ${ac_cv_file__usr_share_java_flow_engine_jar+:} false; then :
  23763. $as_echo_n "(cached) " >&6
  23764. else
  23765. test "$cross_compiling" = yes &&
  23766. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23767. if test -r "/usr/share/java/flow-engine.jar"; then
  23768. ac_cv_file__usr_share_java_flow_engine_jar=yes
  23769. else
  23770. ac_cv_file__usr_share_java_flow_engine_jar=no
  23771. fi
  23772. fi
  23773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_flow_engine_jar" >&5
  23774. $as_echo "$ac_cv_file__usr_share_java_flow_engine_jar" >&6; }
  23775. if test "x$ac_cv_file__usr_share_java_flow_engine_jar" = xyes; then :
  23776. JFREEREPORT_JAR=/usr/share/java/flow-engine.jar
  23777. else
  23778. as_fn_error $? "jfreereport.jar replacement not found." "$LINENO" 5
  23779. fi
  23780. fi
  23781. else
  23782. as_ac_File=`$as_echo "ac_cv_file_$JFREEREPORT_JAR" | $as_tr_sh`
  23783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $JFREEREPORT_JAR" >&5
  23784. $as_echo_n "checking for $JFREEREPORT_JAR... " >&6; }
  23785. if eval \${$as_ac_File+:} false; then :
  23786. $as_echo_n "(cached) " >&6
  23787. else
  23788. test "$cross_compiling" = yes &&
  23789. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23790. if test -r "$JFREEREPORT_JAR"; then
  23791. eval "$as_ac_File=yes"
  23792. else
  23793. eval "$as_ac_File=no"
  23794. fi
  23795. fi
  23796. eval ac_res=\$$as_ac_File
  23797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23798. $as_echo "$ac_res" >&6; }
  23799. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23800. else
  23801. as_fn_error $? "jfreereport.jar not found." "$LINENO" 5
  23802. fi
  23803. fi
  23804. if test -z $LIBLAYOUT_JAR; then
  23805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/liblayout-0.2.9.jar" >&5
  23806. $as_echo_n "checking for /usr/share/java/liblayout-0.2.9.jar... " >&6; }
  23807. if ${ac_cv_file__usr_share_java_liblayout_0_2_9_jar+:} false; then :
  23808. $as_echo_n "(cached) " >&6
  23809. else
  23810. test "$cross_compiling" = yes &&
  23811. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23812. if test -r "/usr/share/java/liblayout-0.2.9.jar"; then
  23813. ac_cv_file__usr_share_java_liblayout_0_2_9_jar=yes
  23814. else
  23815. ac_cv_file__usr_share_java_liblayout_0_2_9_jar=no
  23816. fi
  23817. fi
  23818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_liblayout_0_2_9_jar" >&5
  23819. $as_echo "$ac_cv_file__usr_share_java_liblayout_0_2_9_jar" >&6; }
  23820. if test "x$ac_cv_file__usr_share_java_liblayout_0_2_9_jar" = xyes; then :
  23821. LIBLAYOUT_JAR=/usr/share/java/liblayout-0.2.9.jar
  23822. else
  23823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/liblayout.jar" >&5
  23824. $as_echo_n "checking for /usr/share/java/liblayout.jar... " >&6; }
  23825. if ${ac_cv_file__usr_share_java_liblayout_jar+:} false; then :
  23826. $as_echo_n "(cached) " >&6
  23827. else
  23828. test "$cross_compiling" = yes &&
  23829. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23830. if test -r "/usr/share/java/liblayout.jar"; then
  23831. ac_cv_file__usr_share_java_liblayout_jar=yes
  23832. else
  23833. ac_cv_file__usr_share_java_liblayout_jar=no
  23834. fi
  23835. fi
  23836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_liblayout_jar" >&5
  23837. $as_echo "$ac_cv_file__usr_share_java_liblayout_jar" >&6; }
  23838. if test "x$ac_cv_file__usr_share_java_liblayout_jar" = xyes; then :
  23839. LIBLAYOUT_JAR=/usr/share/java/liblayout.jar
  23840. else
  23841. as_fn_error $? "liblayout.jar replacement not found." "$LINENO" 5
  23842. fi
  23843. fi
  23844. else
  23845. as_ac_File=`$as_echo "ac_cv_file_$LIBLAYOUT_JAR" | $as_tr_sh`
  23846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBLAYOUT_JAR" >&5
  23847. $as_echo_n "checking for $LIBLAYOUT_JAR... " >&6; }
  23848. if eval \${$as_ac_File+:} false; then :
  23849. $as_echo_n "(cached) " >&6
  23850. else
  23851. test "$cross_compiling" = yes &&
  23852. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23853. if test -r "$LIBLAYOUT_JAR"; then
  23854. eval "$as_ac_File=yes"
  23855. else
  23856. eval "$as_ac_File=no"
  23857. fi
  23858. fi
  23859. eval ac_res=\$$as_ac_File
  23860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23861. $as_echo "$ac_res" >&6; }
  23862. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23863. else
  23864. as_fn_error $? "liblayout.jar not found." "$LINENO" 5
  23865. fi
  23866. fi
  23867. if test -z $LIBLOADER_JAR; then
  23868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libloader-1.0.0.jar" >&5
  23869. $as_echo_n "checking for /usr/share/java/libloader-1.0.0.jar... " >&6; }
  23870. if ${ac_cv_file__usr_share_java_libloader_1_0_0_jar+:} false; then :
  23871. $as_echo_n "(cached) " >&6
  23872. else
  23873. test "$cross_compiling" = yes &&
  23874. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23875. if test -r "/usr/share/java/libloader-1.0.0.jar"; then
  23876. ac_cv_file__usr_share_java_libloader_1_0_0_jar=yes
  23877. else
  23878. ac_cv_file__usr_share_java_libloader_1_0_0_jar=no
  23879. fi
  23880. fi
  23881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libloader_1_0_0_jar" >&5
  23882. $as_echo "$ac_cv_file__usr_share_java_libloader_1_0_0_jar" >&6; }
  23883. if test "x$ac_cv_file__usr_share_java_libloader_1_0_0_jar" = xyes; then :
  23884. LIBLOADER_JAR=/usr/share/java/libloader-1.0.0.jar
  23885. else
  23886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libloader.jar" >&5
  23887. $as_echo_n "checking for /usr/share/java/libloader.jar... " >&6; }
  23888. if ${ac_cv_file__usr_share_java_libloader_jar+:} false; then :
  23889. $as_echo_n "(cached) " >&6
  23890. else
  23891. test "$cross_compiling" = yes &&
  23892. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23893. if test -r "/usr/share/java/libloader.jar"; then
  23894. ac_cv_file__usr_share_java_libloader_jar=yes
  23895. else
  23896. ac_cv_file__usr_share_java_libloader_jar=no
  23897. fi
  23898. fi
  23899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libloader_jar" >&5
  23900. $as_echo "$ac_cv_file__usr_share_java_libloader_jar" >&6; }
  23901. if test "x$ac_cv_file__usr_share_java_libloader_jar" = xyes; then :
  23902. LIBLOADER_JAR=/usr/share/java/libloader.jar
  23903. else
  23904. as_fn_error $? "libloader.jar replacement not found." "$LINENO" 5
  23905. fi
  23906. fi
  23907. else
  23908. as_ac_File=`$as_echo "ac_cv_file_$LIBLOADER_JAR" | $as_tr_sh`
  23909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBLOADER_JAR" >&5
  23910. $as_echo_n "checking for $LIBLOADER_JAR... " >&6; }
  23911. if eval \${$as_ac_File+:} false; then :
  23912. $as_echo_n "(cached) " >&6
  23913. else
  23914. test "$cross_compiling" = yes &&
  23915. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23916. if test -r "$LIBLOADER_JAR"; then
  23917. eval "$as_ac_File=yes"
  23918. else
  23919. eval "$as_ac_File=no"
  23920. fi
  23921. fi
  23922. eval ac_res=\$$as_ac_File
  23923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23924. $as_echo "$ac_res" >&6; }
  23925. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23926. else
  23927. as_fn_error $? "libloader.jar not found." "$LINENO" 5
  23928. fi
  23929. fi
  23930. if test -z $LIBFORMULA_JAR; then
  23931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libformula-0.2.0.jar" >&5
  23932. $as_echo_n "checking for /usr/share/java/libformula-0.2.0.jar... " >&6; }
  23933. if ${ac_cv_file__usr_share_java_libformula_0_2_0_jar+:} false; then :
  23934. $as_echo_n "(cached) " >&6
  23935. else
  23936. test "$cross_compiling" = yes &&
  23937. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23938. if test -r "/usr/share/java/libformula-0.2.0.jar"; then
  23939. ac_cv_file__usr_share_java_libformula_0_2_0_jar=yes
  23940. else
  23941. ac_cv_file__usr_share_java_libformula_0_2_0_jar=no
  23942. fi
  23943. fi
  23944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libformula_0_2_0_jar" >&5
  23945. $as_echo "$ac_cv_file__usr_share_java_libformula_0_2_0_jar" >&6; }
  23946. if test "x$ac_cv_file__usr_share_java_libformula_0_2_0_jar" = xyes; then :
  23947. LIBFORMULA_JAR=/usr/share/java/libformula-0.2.0.jar
  23948. else
  23949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libformula.jar" >&5
  23950. $as_echo_n "checking for /usr/share/java/libformula.jar... " >&6; }
  23951. if ${ac_cv_file__usr_share_java_libformula_jar+:} false; then :
  23952. $as_echo_n "(cached) " >&6
  23953. else
  23954. test "$cross_compiling" = yes &&
  23955. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23956. if test -r "/usr/share/java/libformula.jar"; then
  23957. ac_cv_file__usr_share_java_libformula_jar=yes
  23958. else
  23959. ac_cv_file__usr_share_java_libformula_jar=no
  23960. fi
  23961. fi
  23962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libformula_jar" >&5
  23963. $as_echo "$ac_cv_file__usr_share_java_libformula_jar" >&6; }
  23964. if test "x$ac_cv_file__usr_share_java_libformula_jar" = xyes; then :
  23965. LIBFORMULA_JAR=/usr/share/java/libformula.jar
  23966. else
  23967. as_fn_error $? "libformula.jar replacement not found." "$LINENO" 5
  23968. fi
  23969. fi
  23970. else
  23971. as_ac_File=`$as_echo "ac_cv_file_$LIBFORMULA_JAR" | $as_tr_sh`
  23972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBFORMULA_JAR" >&5
  23973. $as_echo_n "checking for $LIBFORMULA_JAR... " >&6; }
  23974. if eval \${$as_ac_File+:} false; then :
  23975. $as_echo_n "(cached) " >&6
  23976. else
  23977. test "$cross_compiling" = yes &&
  23978. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  23979. if test -r "$LIBFORMULA_JAR"; then
  23980. eval "$as_ac_File=yes"
  23981. else
  23982. eval "$as_ac_File=no"
  23983. fi
  23984. fi
  23985. eval ac_res=\$$as_ac_File
  23986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23987. $as_echo "$ac_res" >&6; }
  23988. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  23989. else
  23990. as_fn_error $? "libformula.jar not found." "$LINENO" 5
  23991. fi
  23992. fi
  23993. if test -z $LIBREPOSITORY_JAR; then
  23994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/librepository-1.0.0.jar" >&5
  23995. $as_echo_n "checking for /usr/share/java/librepository-1.0.0.jar... " >&6; }
  23996. if ${ac_cv_file__usr_share_java_librepository_1_0_0_jar+:} false; then :
  23997. $as_echo_n "(cached) " >&6
  23998. else
  23999. test "$cross_compiling" = yes &&
  24000. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24001. if test -r "/usr/share/java/librepository-1.0.0.jar"; then
  24002. ac_cv_file__usr_share_java_librepository_1_0_0_jar=yes
  24003. else
  24004. ac_cv_file__usr_share_java_librepository_1_0_0_jar=no
  24005. fi
  24006. fi
  24007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_librepository_1_0_0_jar" >&5
  24008. $as_echo "$ac_cv_file__usr_share_java_librepository_1_0_0_jar" >&6; }
  24009. if test "x$ac_cv_file__usr_share_java_librepository_1_0_0_jar" = xyes; then :
  24010. LIBREPOSITORY_JAR=/usr/share/java/librepository-1.0.0.jar
  24011. else
  24012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/librepository.jar" >&5
  24013. $as_echo_n "checking for /usr/share/java/librepository.jar... " >&6; }
  24014. if ${ac_cv_file__usr_share_java_librepository_jar+:} false; then :
  24015. $as_echo_n "(cached) " >&6
  24016. else
  24017. test "$cross_compiling" = yes &&
  24018. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24019. if test -r "/usr/share/java/librepository.jar"; then
  24020. ac_cv_file__usr_share_java_librepository_jar=yes
  24021. else
  24022. ac_cv_file__usr_share_java_librepository_jar=no
  24023. fi
  24024. fi
  24025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_librepository_jar" >&5
  24026. $as_echo "$ac_cv_file__usr_share_java_librepository_jar" >&6; }
  24027. if test "x$ac_cv_file__usr_share_java_librepository_jar" = xyes; then :
  24028. LIBREPOSITORY_JAR=/usr/share/java/librepository.jar
  24029. else
  24030. as_fn_error $? "librepository.jar replacement not found." "$LINENO" 5
  24031. fi
  24032. fi
  24033. else
  24034. as_ac_File=`$as_echo "ac_cv_file_$LIBREPOSITORY_JAR" | $as_tr_sh`
  24035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBREPOSITORY_JAR" >&5
  24036. $as_echo_n "checking for $LIBREPOSITORY_JAR... " >&6; }
  24037. if eval \${$as_ac_File+:} false; then :
  24038. $as_echo_n "(cached) " >&6
  24039. else
  24040. test "$cross_compiling" = yes &&
  24041. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24042. if test -r "$LIBREPOSITORY_JAR"; then
  24043. eval "$as_ac_File=yes"
  24044. else
  24045. eval "$as_ac_File=no"
  24046. fi
  24047. fi
  24048. eval ac_res=\$$as_ac_File
  24049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24050. $as_echo "$ac_res" >&6; }
  24051. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24052. else
  24053. as_fn_error $? "librepository.jar not found." "$LINENO" 5
  24054. fi
  24055. fi
  24056. if test -z $LIBFONTS_JAR; then
  24057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libfonts-1.0.0.jar" >&5
  24058. $as_echo_n "checking for /usr/share/java/libfonts-1.0.0.jar... " >&6; }
  24059. if ${ac_cv_file__usr_share_java_libfonts_1_0_0_jar+:} false; then :
  24060. $as_echo_n "(cached) " >&6
  24061. else
  24062. test "$cross_compiling" = yes &&
  24063. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24064. if test -r "/usr/share/java/libfonts-1.0.0.jar"; then
  24065. ac_cv_file__usr_share_java_libfonts_1_0_0_jar=yes
  24066. else
  24067. ac_cv_file__usr_share_java_libfonts_1_0_0_jar=no
  24068. fi
  24069. fi
  24070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libfonts_1_0_0_jar" >&5
  24071. $as_echo "$ac_cv_file__usr_share_java_libfonts_1_0_0_jar" >&6; }
  24072. if test "x$ac_cv_file__usr_share_java_libfonts_1_0_0_jar" = xyes; then :
  24073. LIBFONTS_JAR=/usr/share/java/libfonts-1.0.0.jar
  24074. else
  24075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libfonts.jar" >&5
  24076. $as_echo_n "checking for /usr/share/java/libfonts.jar... " >&6; }
  24077. if ${ac_cv_file__usr_share_java_libfonts_jar+:} false; then :
  24078. $as_echo_n "(cached) " >&6
  24079. else
  24080. test "$cross_compiling" = yes &&
  24081. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24082. if test -r "/usr/share/java/libfonts.jar"; then
  24083. ac_cv_file__usr_share_java_libfonts_jar=yes
  24084. else
  24085. ac_cv_file__usr_share_java_libfonts_jar=no
  24086. fi
  24087. fi
  24088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libfonts_jar" >&5
  24089. $as_echo "$ac_cv_file__usr_share_java_libfonts_jar" >&6; }
  24090. if test "x$ac_cv_file__usr_share_java_libfonts_jar" = xyes; then :
  24091. LIBFONTS_JAR=/usr/share/java/libfonts.jar
  24092. else
  24093. as_fn_error $? "libfonts.jar replacement not found." "$LINENO" 5
  24094. fi
  24095. fi
  24096. else
  24097. as_ac_File=`$as_echo "ac_cv_file_$LIBFONTS_JAR" | $as_tr_sh`
  24098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBFONTS_JAR" >&5
  24099. $as_echo_n "checking for $LIBFONTS_JAR... " >&6; }
  24100. if eval \${$as_ac_File+:} false; then :
  24101. $as_echo_n "(cached) " >&6
  24102. else
  24103. test "$cross_compiling" = yes &&
  24104. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24105. if test -r "$LIBFONTS_JAR"; then
  24106. eval "$as_ac_File=yes"
  24107. else
  24108. eval "$as_ac_File=no"
  24109. fi
  24110. fi
  24111. eval ac_res=\$$as_ac_File
  24112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24113. $as_echo "$ac_res" >&6; }
  24114. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24115. else
  24116. as_fn_error $? "libfonts.jar not found." "$LINENO" 5
  24117. fi
  24118. fi
  24119. if test -z $LIBSERIALIZER_JAR; then
  24120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libserializer-1.0.0.jar" >&5
  24121. $as_echo_n "checking for /usr/share/java/libserializer-1.0.0.jar... " >&6; }
  24122. if ${ac_cv_file__usr_share_java_libserializer_1_0_0_jar+:} false; then :
  24123. $as_echo_n "(cached) " >&6
  24124. else
  24125. test "$cross_compiling" = yes &&
  24126. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24127. if test -r "/usr/share/java/libserializer-1.0.0.jar"; then
  24128. ac_cv_file__usr_share_java_libserializer_1_0_0_jar=yes
  24129. else
  24130. ac_cv_file__usr_share_java_libserializer_1_0_0_jar=no
  24131. fi
  24132. fi
  24133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libserializer_1_0_0_jar" >&5
  24134. $as_echo "$ac_cv_file__usr_share_java_libserializer_1_0_0_jar" >&6; }
  24135. if test "x$ac_cv_file__usr_share_java_libserializer_1_0_0_jar" = xyes; then :
  24136. LIBSERIALIZER_JAR=/usr/share/java/libserializer-1.0.0.jar
  24137. else
  24138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libserializer.jar" >&5
  24139. $as_echo_n "checking for /usr/share/java/libserializer.jar... " >&6; }
  24140. if ${ac_cv_file__usr_share_java_libserializer_jar+:} false; then :
  24141. $as_echo_n "(cached) " >&6
  24142. else
  24143. test "$cross_compiling" = yes &&
  24144. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24145. if test -r "/usr/share/java/libserializer.jar"; then
  24146. ac_cv_file__usr_share_java_libserializer_jar=yes
  24147. else
  24148. ac_cv_file__usr_share_java_libserializer_jar=no
  24149. fi
  24150. fi
  24151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libserializer_jar" >&5
  24152. $as_echo "$ac_cv_file__usr_share_java_libserializer_jar" >&6; }
  24153. if test "x$ac_cv_file__usr_share_java_libserializer_jar" = xyes; then :
  24154. LIBSERIALIZER_JAR=/usr/share/java/libserializer.jar
  24155. else
  24156. as_fn_error $? "libserializer.jar replacement not found." "$LINENO" 5
  24157. fi
  24158. fi
  24159. else
  24160. as_ac_File=`$as_echo "ac_cv_file_$LIBSERIALIZER_JAR" | $as_tr_sh`
  24161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSERIALIZER_JAR" >&5
  24162. $as_echo_n "checking for $LIBSERIALIZER_JAR... " >&6; }
  24163. if eval \${$as_ac_File+:} false; then :
  24164. $as_echo_n "(cached) " >&6
  24165. else
  24166. test "$cross_compiling" = yes &&
  24167. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24168. if test -r "$LIBSERIALIZER_JAR"; then
  24169. eval "$as_ac_File=yes"
  24170. else
  24171. eval "$as_ac_File=no"
  24172. fi
  24173. fi
  24174. eval ac_res=\$$as_ac_File
  24175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24176. $as_echo "$ac_res" >&6; }
  24177. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24178. else
  24179. as_fn_error $? "libserializer.jar not found." "$LINENO" 5
  24180. fi
  24181. fi
  24182. if test -z $LIBBASE_JAR; then
  24183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libbase-1.0.0.jar" >&5
  24184. $as_echo_n "checking for /usr/share/java/libbase-1.0.0.jar... " >&6; }
  24185. if ${ac_cv_file__usr_share_java_libbase_1_0_0_jar+:} false; then :
  24186. $as_echo_n "(cached) " >&6
  24187. else
  24188. test "$cross_compiling" = yes &&
  24189. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24190. if test -r "/usr/share/java/libbase-1.0.0.jar"; then
  24191. ac_cv_file__usr_share_java_libbase_1_0_0_jar=yes
  24192. else
  24193. ac_cv_file__usr_share_java_libbase_1_0_0_jar=no
  24194. fi
  24195. fi
  24196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libbase_1_0_0_jar" >&5
  24197. $as_echo "$ac_cv_file__usr_share_java_libbase_1_0_0_jar" >&6; }
  24198. if test "x$ac_cv_file__usr_share_java_libbase_1_0_0_jar" = xyes; then :
  24199. LIBBASE_JAR=/usr/share/java/libbase-1.0.0.jar
  24200. else
  24201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/libbase.jar" >&5
  24202. $as_echo_n "checking for /usr/share/java/libbase.jar... " >&6; }
  24203. if ${ac_cv_file__usr_share_java_libbase_jar+:} false; then :
  24204. $as_echo_n "(cached) " >&6
  24205. else
  24206. test "$cross_compiling" = yes &&
  24207. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24208. if test -r "/usr/share/java/libbase.jar"; then
  24209. ac_cv_file__usr_share_java_libbase_jar=yes
  24210. else
  24211. ac_cv_file__usr_share_java_libbase_jar=no
  24212. fi
  24213. fi
  24214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_libbase_jar" >&5
  24215. $as_echo "$ac_cv_file__usr_share_java_libbase_jar" >&6; }
  24216. if test "x$ac_cv_file__usr_share_java_libbase_jar" = xyes; then :
  24217. LIBBASE_JAR=/usr/share/java/libbase.jar
  24218. else
  24219. as_fn_error $? "libbase.jar replacement not found." "$LINENO" 5
  24220. fi
  24221. fi
  24222. else
  24223. as_ac_File=`$as_echo "ac_cv_file_$LIBBASE_JAR" | $as_tr_sh`
  24224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBBASE_JAR" >&5
  24225. $as_echo_n "checking for $LIBBASE_JAR... " >&6; }
  24226. if eval \${$as_ac_File+:} false; then :
  24227. $as_echo_n "(cached) " >&6
  24228. else
  24229. test "$cross_compiling" = yes &&
  24230. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24231. if test -r "$LIBBASE_JAR"; then
  24232. eval "$as_ac_File=yes"
  24233. else
  24234. eval "$as_ac_File=no"
  24235. fi
  24236. fi
  24237. eval ac_res=\$$as_ac_File
  24238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24239. $as_echo "$ac_res" >&6; }
  24240. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24241. else
  24242. as_fn_error $? "libbase.jar not found." "$LINENO" 5
  24243. fi
  24244. fi
  24245. else
  24246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  24247. $as_echo "internal" >&6; }
  24248. SYSTEM_JFREEREPORT=NO
  24249. BUILD_TYPE="$BUILD_TYPE JFREEREPORT"
  24250. fi
  24251. else
  24252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24253. $as_echo "no" >&6; }
  24254. ENABLE_REPORTBUILDER=NO
  24255. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_REPORTDESIGN"
  24256. SYSTEM_JFREEREPORT=NO
  24257. fi
  24258. # this has to be here because both the Wiki Publisher and the SRB use
  24259. # commons-logging
  24260. if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
  24261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Apache commons-* libs to use" >&5
  24262. $as_echo_n "checking which Apache commons-* libs to use... " >&6; }
  24263. if test "$with_system_apache_commons" = "yes"; then
  24264. SYSTEM_APACHE_COMMONS=YES
  24265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  24266. $as_echo "external" >&6; }
  24267. if test "$ENABLE_MEDIAWIKI" = "YES"; then
  24268. if test -z $COMMONS_CODEC_JAR; then
  24269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-codec-1.3.jar" >&5
  24270. $as_echo_n "checking for /usr/share/java/commons-codec-1.3.jar... " >&6; }
  24271. if ${ac_cv_file__usr_share_java_commons_codec_1_3_jar+:} false; then :
  24272. $as_echo_n "(cached) " >&6
  24273. else
  24274. test "$cross_compiling" = yes &&
  24275. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24276. if test -r "/usr/share/java/commons-codec-1.3.jar"; then
  24277. ac_cv_file__usr_share_java_commons_codec_1_3_jar=yes
  24278. else
  24279. ac_cv_file__usr_share_java_commons_codec_1_3_jar=no
  24280. fi
  24281. fi
  24282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_codec_1_3_jar" >&5
  24283. $as_echo "$ac_cv_file__usr_share_java_commons_codec_1_3_jar" >&6; }
  24284. if test "x$ac_cv_file__usr_share_java_commons_codec_1_3_jar" = xyes; then :
  24285. COMMONS_CODEC_JAR=/usr/share/java/commons-codec-1.3.jar
  24286. else
  24287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-codec.jar" >&5
  24288. $as_echo_n "checking for /usr/share/java/commons-codec.jar... " >&6; }
  24289. if ${ac_cv_file__usr_share_java_commons_codec_jar+:} false; then :
  24290. $as_echo_n "(cached) " >&6
  24291. else
  24292. test "$cross_compiling" = yes &&
  24293. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24294. if test -r "/usr/share/java/commons-codec.jar"; then
  24295. ac_cv_file__usr_share_java_commons_codec_jar=yes
  24296. else
  24297. ac_cv_file__usr_share_java_commons_codec_jar=no
  24298. fi
  24299. fi
  24300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_codec_jar" >&5
  24301. $as_echo "$ac_cv_file__usr_share_java_commons_codec_jar" >&6; }
  24302. if test "x$ac_cv_file__usr_share_java_commons_codec_jar" = xyes; then :
  24303. COMMONS_CODEC_JAR=/usr/share/java/commons-codec.jar
  24304. else
  24305. as_fn_error $? "commons-codec.jar replacement not found." "$LINENO" 5
  24306. fi
  24307. fi
  24308. else
  24309. as_ac_File=`$as_echo "ac_cv_file_$COMMONS_CODEC_JAR" | $as_tr_sh`
  24310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $COMMONS_CODEC_JAR" >&5
  24311. $as_echo_n "checking for $COMMONS_CODEC_JAR... " >&6; }
  24312. if eval \${$as_ac_File+:} false; then :
  24313. $as_echo_n "(cached) " >&6
  24314. else
  24315. test "$cross_compiling" = yes &&
  24316. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24317. if test -r "$COMMONS_CODEC_JAR"; then
  24318. eval "$as_ac_File=yes"
  24319. else
  24320. eval "$as_ac_File=no"
  24321. fi
  24322. fi
  24323. eval ac_res=\$$as_ac_File
  24324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24325. $as_echo "$ac_res" >&6; }
  24326. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24327. else
  24328. as_fn_error $? "commons-codec.jar not found." "$LINENO" 5
  24329. fi
  24330. fi
  24331. if test -z $COMMONS_LANG_JAR; then
  24332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-lang-2.3.jar" >&5
  24333. $as_echo_n "checking for /usr/share/java/commons-lang-2.3.jar... " >&6; }
  24334. if ${ac_cv_file__usr_share_java_commons_lang_2_3_jar+:} false; then :
  24335. $as_echo_n "(cached) " >&6
  24336. else
  24337. test "$cross_compiling" = yes &&
  24338. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24339. if test -r "/usr/share/java/commons-lang-2.3.jar"; then
  24340. ac_cv_file__usr_share_java_commons_lang_2_3_jar=yes
  24341. else
  24342. ac_cv_file__usr_share_java_commons_lang_2_3_jar=no
  24343. fi
  24344. fi
  24345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_lang_2_3_jar" >&5
  24346. $as_echo "$ac_cv_file__usr_share_java_commons_lang_2_3_jar" >&6; }
  24347. if test "x$ac_cv_file__usr_share_java_commons_lang_2_3_jar" = xyes; then :
  24348. COMMONS_LANG_JAR=/usr/share/java/commons-lang-2.3.jar
  24349. else
  24350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-lang.jar" >&5
  24351. $as_echo_n "checking for /usr/share/java/commons-lang.jar... " >&6; }
  24352. if ${ac_cv_file__usr_share_java_commons_lang_jar+:} false; then :
  24353. $as_echo_n "(cached) " >&6
  24354. else
  24355. test "$cross_compiling" = yes &&
  24356. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24357. if test -r "/usr/share/java/commons-lang.jar"; then
  24358. ac_cv_file__usr_share_java_commons_lang_jar=yes
  24359. else
  24360. ac_cv_file__usr_share_java_commons_lang_jar=no
  24361. fi
  24362. fi
  24363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_lang_jar" >&5
  24364. $as_echo "$ac_cv_file__usr_share_java_commons_lang_jar" >&6; }
  24365. if test "x$ac_cv_file__usr_share_java_commons_lang_jar" = xyes; then :
  24366. COMMONS_LANG_JAR=/usr/share/java/commons-lang.jar
  24367. else
  24368. as_fn_error $? "commons-lang.jar replacement not found." "$LINENO" 5
  24369. fi
  24370. fi
  24371. else
  24372. as_ac_File=`$as_echo "ac_cv_file_$COMMONS_LANG_JAR" | $as_tr_sh`
  24373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $COMMONS_LANG_JAR" >&5
  24374. $as_echo_n "checking for $COMMONS_LANG_JAR... " >&6; }
  24375. if eval \${$as_ac_File+:} false; then :
  24376. $as_echo_n "(cached) " >&6
  24377. else
  24378. test "$cross_compiling" = yes &&
  24379. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24380. if test -r "$COMMONS_LANG_JAR"; then
  24381. eval "$as_ac_File=yes"
  24382. else
  24383. eval "$as_ac_File=no"
  24384. fi
  24385. fi
  24386. eval ac_res=\$$as_ac_File
  24387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24388. $as_echo "$ac_res" >&6; }
  24389. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24390. else
  24391. as_fn_error $? "commons-lang.jar not found." "$LINENO" 5
  24392. fi
  24393. fi
  24394. if test -z $COMMONS_HTTPCLIENT_JAR; then
  24395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-httpclient-3.1.jar" >&5
  24396. $as_echo_n "checking for /usr/share/java/commons-httpclient-3.1.jar... " >&6; }
  24397. if ${ac_cv_file__usr_share_java_commons_httpclient_3_1_jar+:} false; then :
  24398. $as_echo_n "(cached) " >&6
  24399. else
  24400. test "$cross_compiling" = yes &&
  24401. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24402. if test -r "/usr/share/java/commons-httpclient-3.1.jar"; then
  24403. ac_cv_file__usr_share_java_commons_httpclient_3_1_jar=yes
  24404. else
  24405. ac_cv_file__usr_share_java_commons_httpclient_3_1_jar=no
  24406. fi
  24407. fi
  24408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" >&5
  24409. $as_echo "$ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" >&6; }
  24410. if test "x$ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" = xyes; then :
  24411. COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient-3.1.jar
  24412. else
  24413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-httpclient.jar" >&5
  24414. $as_echo_n "checking for /usr/share/java/commons-httpclient.jar... " >&6; }
  24415. if ${ac_cv_file__usr_share_java_commons_httpclient_jar+:} false; then :
  24416. $as_echo_n "(cached) " >&6
  24417. else
  24418. test "$cross_compiling" = yes &&
  24419. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24420. if test -r "/usr/share/java/commons-httpclient.jar"; then
  24421. ac_cv_file__usr_share_java_commons_httpclient_jar=yes
  24422. else
  24423. ac_cv_file__usr_share_java_commons_httpclient_jar=no
  24424. fi
  24425. fi
  24426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_httpclient_jar" >&5
  24427. $as_echo "$ac_cv_file__usr_share_java_commons_httpclient_jar" >&6; }
  24428. if test "x$ac_cv_file__usr_share_java_commons_httpclient_jar" = xyes; then :
  24429. COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient.jar
  24430. else
  24431. as_fn_error $? "commons-httpclient.jar replacement not found." "$LINENO" 5
  24432. fi
  24433. fi
  24434. else
  24435. as_ac_File=`$as_echo "ac_cv_file_$COMMONS_HTTPCLIENT_JAR" | $as_tr_sh`
  24436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $COMMONS_HTTPCLIENT_JAR" >&5
  24437. $as_echo_n "checking for $COMMONS_HTTPCLIENT_JAR... " >&6; }
  24438. if eval \${$as_ac_File+:} false; then :
  24439. $as_echo_n "(cached) " >&6
  24440. else
  24441. test "$cross_compiling" = yes &&
  24442. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24443. if test -r "$COMMONS_HTTPCLIENT_JAR"; then
  24444. eval "$as_ac_File=yes"
  24445. else
  24446. eval "$as_ac_File=no"
  24447. fi
  24448. fi
  24449. eval ac_res=\$$as_ac_File
  24450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24451. $as_echo "$ac_res" >&6; }
  24452. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24453. else
  24454. as_fn_error $? "commons-httpclient.jar not found." "$LINENO" 5
  24455. fi
  24456. fi
  24457. fi
  24458. if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
  24459. if test -z $COMMONS_LOGGING_JAR; then
  24460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-logging-1.1.1.jar" >&5
  24461. $as_echo_n "checking for /usr/share/java/commons-logging-1.1.1.jar... " >&6; }
  24462. if ${ac_cv_file__usr_share_java_commons_logging_1_1_1_jar+:} false; then :
  24463. $as_echo_n "(cached) " >&6
  24464. else
  24465. test "$cross_compiling" = yes &&
  24466. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24467. if test -r "/usr/share/java/commons-logging-1.1.1.jar"; then
  24468. ac_cv_file__usr_share_java_commons_logging_1_1_1_jar=yes
  24469. else
  24470. ac_cv_file__usr_share_java_commons_logging_1_1_1_jar=no
  24471. fi
  24472. fi
  24473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" >&5
  24474. $as_echo "$ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" >&6; }
  24475. if test "x$ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" = xyes; then :
  24476. COMMONS_LOGGING_JAR=/usr/share/java/commons-logging-1.1.1.jar
  24477. else
  24478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/commons-logging.jar" >&5
  24479. $as_echo_n "checking for /usr/share/java/commons-logging.jar... " >&6; }
  24480. if ${ac_cv_file__usr_share_java_commons_logging_jar+:} false; then :
  24481. $as_echo_n "(cached) " >&6
  24482. else
  24483. test "$cross_compiling" = yes &&
  24484. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24485. if test -r "/usr/share/java/commons-logging.jar"; then
  24486. ac_cv_file__usr_share_java_commons_logging_jar=yes
  24487. else
  24488. ac_cv_file__usr_share_java_commons_logging_jar=no
  24489. fi
  24490. fi
  24491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_commons_logging_jar" >&5
  24492. $as_echo "$ac_cv_file__usr_share_java_commons_logging_jar" >&6; }
  24493. if test "x$ac_cv_file__usr_share_java_commons_logging_jar" = xyes; then :
  24494. COMMONS_LOGGING_JAR=/usr/share/java/commons-logging.jar
  24495. else
  24496. as_fn_error $? "commons-logging.jar replacement not found." "$LINENO" 5
  24497. fi
  24498. fi
  24499. else
  24500. as_ac_File=`$as_echo "ac_cv_file_$COMMONS_LOGGING_JAR" | $as_tr_sh`
  24501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $COMMONS_LOGGING_JAR" >&5
  24502. $as_echo_n "checking for $COMMONS_LOGGING_JAR... " >&6; }
  24503. if eval \${$as_ac_File+:} false; then :
  24504. $as_echo_n "(cached) " >&6
  24505. else
  24506. test "$cross_compiling" = yes &&
  24507. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24508. if test -r "$COMMONS_LOGGING_JAR"; then
  24509. eval "$as_ac_File=yes"
  24510. else
  24511. eval "$as_ac_File=no"
  24512. fi
  24513. fi
  24514. eval ac_res=\$$as_ac_File
  24515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24516. $as_echo "$ac_res" >&6; }
  24517. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24518. else
  24519. as_fn_error $? "commons-logging.jar not found." "$LINENO" 5
  24520. fi
  24521. fi
  24522. fi
  24523. else
  24524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  24525. $as_echo "internal" >&6; }
  24526. SYSTEM_APACHE_COMMONS=NO
  24527. BUILD_TYPE="$BUILD_TYPE APACHE_COMMONS TOMCAT"
  24528. fi
  24529. fi
  24530. # scripting provider for BeanShell extension?
  24531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build extension for support of scripts in BeanShell" >&5
  24532. $as_echo_n "checking whether to build extension for support of scripts in BeanShell... " >&6; }
  24533. if test "x$enable_ext_scripting_beanshell" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
  24534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24535. $as_echo "yes" >&6; }
  24536. ENABLE_SCRIPTING_BEANSHELL=YES
  24537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which beanshell to use" >&5
  24538. $as_echo_n "checking which beanshell to use... " >&6; }
  24539. if test "$with_system_beanshell" = "yes"; then
  24540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  24541. $as_echo "external" >&6; }
  24542. SYSTEM_BSH=YES
  24543. if test -z $BSH_JAR; then
  24544. BSH_JAR=/usr/share/java/bsh.jar
  24545. fi
  24546. as_ac_File=`$as_echo "ac_cv_file_$BSH_JAR" | $as_tr_sh`
  24547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $BSH_JAR" >&5
  24548. $as_echo_n "checking for $BSH_JAR... " >&6; }
  24549. if eval \${$as_ac_File+:} false; then :
  24550. $as_echo_n "(cached) " >&6
  24551. else
  24552. test "$cross_compiling" = yes &&
  24553. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24554. if test -r "$BSH_JAR"; then
  24555. eval "$as_ac_File=yes"
  24556. else
  24557. eval "$as_ac_File=no"
  24558. fi
  24559. fi
  24560. eval ac_res=\$$as_ac_File
  24561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24562. $as_echo "$ac_res" >&6; }
  24563. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24564. else
  24565. as_fn_error $? "bsh.jar not found." "$LINENO" 5
  24566. fi
  24567. else
  24568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  24569. $as_echo "internal" >&6; }
  24570. SYSTEM_BSH=NO
  24571. BUILD_TYPE="$BUILD_TYPE BSH"
  24572. fi
  24573. else
  24574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24575. $as_echo "no" >&6; }
  24576. ENABLE_SCRIPTING_BEANSHELL=NO
  24577. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_SCRIPTING_BEANSHELL"
  24578. fi
  24579. # scripting provider for JavaScript extension?
  24580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build extension for support of scripts in JavaScript" >&5
  24581. $as_echo_n "checking whether to build extension for support of scripts in JavaScript... " >&6; }
  24582. if test "x$enable_ext_scripting_javascript" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
  24583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24584. $as_echo "yes" >&6; }
  24585. ENABLE_SCRIPTING_JAVASCRIPT=YES
  24586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which rhino to use" >&5
  24587. $as_echo_n "checking which rhino to use... " >&6; }
  24588. if test "$with_system_rhino" = "yes"; then
  24589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  24590. $as_echo "external" >&6; }
  24591. SYSTEM_RHINO=YES
  24592. if test -z $RHINO_JAR; then
  24593. RHINO_JAR=/usr/share/java/js.jar
  24594. fi
  24595. as_ac_File=`$as_echo "ac_cv_file_$RHINO_JAR" | $as_tr_sh`
  24596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RHINO_JAR" >&5
  24597. $as_echo_n "checking for $RHINO_JAR... " >&6; }
  24598. if eval \${$as_ac_File+:} false; then :
  24599. $as_echo_n "(cached) " >&6
  24600. else
  24601. test "$cross_compiling" = yes &&
  24602. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  24603. if test -r "$RHINO_JAR"; then
  24604. eval "$as_ac_File=yes"
  24605. else
  24606. eval "$as_ac_File=no"
  24607. fi
  24608. fi
  24609. eval ac_res=\$$as_ac_File
  24610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24611. $as_echo "$ac_res" >&6; }
  24612. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  24613. else
  24614. as_fn_error $? "js.jar not found." "$LINENO" 5
  24615. fi
  24616. else
  24617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  24618. $as_echo "internal" >&6; }
  24619. SYSTEM_RHINO=NO
  24620. BUILD_TYPE="$BUILD_TYPE RHINO"
  24621. fi
  24622. else
  24623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24624. $as_echo "no" >&6; }
  24625. ENABLE_SCRIPTING_JAVASCRIPT=NO
  24626. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_SCRIPTING_JAVASCRIPT"
  24627. fi
  24628. if test $enable_python = no; then
  24629. ENABLE_SCRIPTING_PYTHON=NO
  24630. SCPDEFS="$SCPDEFS -DWITHOUT_EXTENSION_SCRIPTING_PYTHON"
  24631. else
  24632. ENABLE_SCRIPTING_PYTHON=YES
  24633. fi
  24634. supports_multilib=
  24635. case "$host_cpu" in
  24636. x86_64 | powerpc64 | s390x)
  24637. if test "$SIZEOF_LONG" = "8"; then
  24638. supports_multilib="yes"
  24639. fi
  24640. ;;
  24641. *)
  24642. ;;
  24643. esac
  24644. TDE_CFLAGS=""
  24645. TDE_LIBS=""
  24646. if test "$_os" != "OpenBSD"; then
  24647. MOC="moc"
  24648. fi
  24649. if test "$test_tde" = "yes" -a "$ENABLE_TDE" = "TRUE"; then
  24650. if test -z "$supports_multilib"; then
  24651. tqt_incdirs="$QTINC /usr/local/tqt3/include /usr/include/tqt3 /usr/include /usr/X11R6/include/X11/tqt3 /usr/X11R6/include/tqt3 /usr/lib/tqt3/include /usr/lib/tqt3/include /usr/share/tqt3/include /usr/local/include/X11/tqt3 $x_includes"
  24652. tqt_libdirs="$QTLIB /usr/local/tqt3/lib /usr/lib/tqt3 /usr/lib /usr/X11R6/lib/X11/tqt3 /usr/X11R6/lib/tqt3 /usr/lib/tqt3/lib /usr/lib/tqt3/lib /usr/share/tqt3/lib /usr/local/lib/tqt3 $x_libraries"
  24653. else
  24654. tqt_incdirs="$QTINC /usr/local/tqt3/include /usr/include/tqt3 /usr/include /usr/X11R6/include/X11/tqt3 /usr/X11R6/include/tqt3 /usr/lib64/tqt3/include /usr/lib64/tqt3/include /usr/share/tqt3/include /usr/lib/tqt3/include /usr/lib/tqt3/include /usr/local/include/X11/tqt3 $x_includes"
  24655. tqt_libdirs="$QTLIB /usr/local/tqt3/lib64 /usr/lib64/tqt3 /usr/lib64 /usr/X11R6/lib64/X11/tqt3 /usr/X11R6/lib64/tqt3 /usr/lib64/tqt3/lib64 /usr/lib64/tqt3/lib64 /usr/share/tqt3/lib64 /usr/local/tqt3/lib /usr/lib/tqt3 /usr/lib /usr/X11R6/lib/X11/tqt3 /usr/X11R6/lib/tqt3 /usr/lib/tqt3/lib /usr/lib/tqt3/lib /usr/share/tqt3/lib /usr/local/lib/tqt3 $x_libraries"
  24656. fi
  24657. if test -n "$TQTDIR"; then
  24658. tqt_incdirs="$TQTDIR/include $tqt_incdirs"
  24659. if test -z "$supports_multilib"; then
  24660. tqt_libdirs="$TQTDIR/lib $tqt_libdirs"
  24661. else
  24662. tqt_libdirs="$TQTDIR/lib64 $TQTDIR/lib $tqt_libdirs"
  24663. fi
  24664. fi
  24665. if test -z "$supports_multilib"; then
  24666. tde_incdirs="/usr/lib/trinity/include /usr/local/trinity/include /usr/local/include /usr/trinity/include /usr/include/trinity /opt/trinity/include /opt/trinity/include $x_includes"
  24667. tde_libdirs="/usr/lib/trinity/lib /usr/local/trinity/lib /usr/trinity/lib /usr/lib/trinity /usr/lib/trinity /usr/X11R6/lib /usr/local/lib /opt/trinity/lib /opt/trinity/lib /usr/X11R6/trinity/lib /usr/lib $x_libraries"
  24668. else
  24669. tde_incdirs="/usr/lib64/trinity/include /usr/lib/trinity/include /usr/local/trinity/include /usr/local/include /usr/trinity/include /usr/include/trinity /opt/trinity/include /opt/trinity/include $x_includes"
  24670. tde_libdirs="/usr/lib64/trinity/lib64 /usr/local/trinity/lib64 /usr/trinity/lib64 /usr/lib64/trinity /usr/lib64/trinity /usr/X11R6/lib64 /usr/local/lib64 /opt/trinity/lib64 /opt/trinity/lib64 /usr/X11R6/trinity/lib64 /usr/lib/trinity/lib /usr/local/trinity/lib /usr/trinity/lib /usr/lib/trinity /usr/lib/trinity /usr/lib /usr/X11R6/lib /usr/local/lib /opt/trinity/lib /opt/trinity/lib /usr/X11R6/trinity/lib /usr/lib64 $x_libraries"
  24671. fi
  24672. if test -n "$TDEDIR"; then
  24673. tde_incdirs="$TDEDIR/include $tde_incdirs"
  24674. if test -z "$supports_multilib"; then
  24675. tde_libdirs="$TDEDIR/lib $tde_libdirs"
  24676. else
  24677. tde_libdirs="$TDEDIR/lib64 $TDEDIR/lib $tde_libdirs"
  24678. fi
  24679. fi
  24680. tqt_test_include="ntqstyle.h"
  24681. tde_test_include="kapp.h"
  24682. if test "$_os" != "OpenBSD"; then
  24683. tqt_test_library="libtqt-mt.so"
  24684. tde_test_library="libDCOP.so"
  24685. else
  24686. tqt_test_library="libtqt-mt.so*"
  24687. tde_test_library="libDCOP.so*"
  24688. fi
  24689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TQt headers" >&5
  24690. $as_echo_n "checking for TQt headers... " >&6; }
  24691. tqt_incdir="no"
  24692. for tde_check in $tqt_incdirs; do
  24693. if test -r "$tde_check/$tqt_test_include"; then
  24694. tqt_incdir="$tde_check"
  24695. break
  24696. fi
  24697. done
  24698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tqt_incdir" >&5
  24699. $as_echo "$tqt_incdir" >&6; }
  24700. if test "x$tqt_incdir" = "xno"; then
  24701. as_fn_error $? "TQt headers not found. Please specify the root of
  24702. your TQt installation by exporting TQTDIR before running \"configure\"." "$LINENO" 5
  24703. fi
  24704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TQt libraries" >&5
  24705. $as_echo_n "checking for TQt libraries... " >&6; }
  24706. tqt_libdir="no"
  24707. for tqt_check in $tqt_libdirs; do
  24708. if test -r "`ls $tqt_check/$tqt_test_library 2>/dev/null | head -1`"; then
  24709. tqt_libdir="$tqt_check"
  24710. break
  24711. fi
  24712. done
  24713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tqt_libdir" >&5
  24714. $as_echo "$tqt_libdir" >&6; }
  24715. if test "x$tqt_libdir" = "xno"; then
  24716. as_fn_error $? "TQt libraries not found. Please specify the root of
  24717. your TQt installation by exporting TQTDIR before running \"configure\"." "$LINENO" 5
  24718. fi
  24719. # Extract the first word of "moc", so it can be a program name with args.
  24720. set dummy moc; ac_word=$2
  24721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24722. $as_echo_n "checking for $ac_word... " >&6; }
  24723. if ${ac_cv_path_MOC+:} false; then :
  24724. $as_echo_n "(cached) " >&6
  24725. else
  24726. case $MOC in
  24727. [\\/]* | ?:[\\/]*)
  24728. ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
  24729. ;;
  24730. *)
  24731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24732. as_dummy="`dirname $tqt_libdir`/bin:$TQTDIR/bin:$PATH "
  24733. for as_dir in $as_dummy
  24734. do
  24735. IFS=$as_save_IFS
  24736. test -z "$as_dir" && as_dir=.
  24737. for ac_exec_ext in '' $ac_executable_extensions; do
  24738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24739. ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
  24740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24741. break 2
  24742. fi
  24743. done
  24744. done
  24745. IFS=$as_save_IFS
  24746. test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
  24747. ;;
  24748. esac
  24749. fi
  24750. MOC=$ac_cv_path_MOC
  24751. if test -n "$MOC"; then
  24752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
  24753. $as_echo "$MOC" >&6; }
  24754. else
  24755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24756. $as_echo "no" >&6; }
  24757. fi
  24758. if test "$MOC" = "no"; then
  24759. as_fn_error $? "TQt Meta Object Compiler not found. Please specify
  24760. the root of your TQt installation by exporting TQTDIR before running \"configure\"." "$LINENO" 5
  24761. fi
  24762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDE headers" >&5
  24763. $as_echo_n "checking for TDE headers... " >&6; }
  24764. tde_incdir="no"
  24765. for tde_check in $tde_incdirs; do
  24766. if test -r "$tde_check/$tde_test_include"; then
  24767. tde_incdir="$tde_check"
  24768. break
  24769. fi
  24770. done
  24771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tde_incdir" >&5
  24772. $as_echo "$tde_incdir" >&6; }
  24773. if test "x$tde_incdir" = "xno"; then
  24774. as_fn_error $? "TDE headers not found. Please specify the root of
  24775. your TDE installation by exporting TDEDIR before running \"configure\"." "$LINENO" 5
  24776. fi
  24777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDE libraries" >&5
  24778. $as_echo_n "checking for TDE libraries... " >&6; }
  24779. tde_libdir="no"
  24780. for tde_check in $tde_libdirs; do
  24781. if test -r "`ls $tde_check/$tde_test_library 2>/dev/null | head -1`"; then
  24782. tde_libdir="$tde_check"
  24783. break
  24784. fi
  24785. done
  24786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tde_libdir" >&5
  24787. $as_echo "$tde_libdir" >&6; }
  24788. if test "x$tde_libdir" = "xno"; then
  24789. as_fn_error $? "TDE libraries not found. Please specify the root of
  24790. your TDE installation by exporting TDEDIR before running \"configure\"." "$LINENO" 5
  24791. fi
  24792. TDE_CFLAGS="-I$tqt_incdir -I$tde_incdir -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
  24793. TDE_LIBS="-L$tde_libdir -L$tqt_libdir -ltdeui -ltdecore -ltqt -ltqt-mt"
  24794. fi
  24795. KDE_CFLAGS=""
  24796. KDE_LIBS=""
  24797. if test "$_os" != "OpenBSD"; then
  24798. MOC="moc"
  24799. fi
  24800. if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE"; then
  24801. if test -z "$supports_multilib"; then
  24802. qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include /usr/local/include/X11/qt3 $x_includes"
  24803. qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib /usr/local/lib/qt3 $x_libraries"
  24804. else
  24805. qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include /usr/local/include/X11/qt3 $x_includes"
  24806. qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib /usr/local/lib/qt3 $x_libraries"
  24807. fi
  24808. if test -n "$QTDIR"; then
  24809. qt_incdirs="$QTDIR/include $qt_incdirs"
  24810. if test -z "$supports_multilib"; then
  24811. qt_libdirs="$QTDIR/lib $qt_libdirs"
  24812. else
  24813. qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
  24814. fi
  24815. fi
  24816. if test -z "$supports_multilib"; then
  24817. kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
  24818. kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib $x_libraries"
  24819. else
  24820. kde_incdirs="/usr/lib64/kde/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
  24821. kde_libdirs="/usr/lib64/kde/lib64 /usr/local/kde/lib64 /usr/kde/lib64 /usr/lib64/kde /usr/lib64/kde3 /usr/X11R6/lib64 /usr/local/lib64 /opt/kde3/lib64 /opt/kde/lib64 /usr/X11R6/kde/lib64 /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib64 $x_libraries"
  24822. fi
  24823. if test -n "$KDEDIR"; then
  24824. kde_incdirs="$KDEDIR/include $kde_incdirs"
  24825. if test -z "$supports_multilib"; then
  24826. kde_libdirs="$KDEDIR/lib $kde_libdirs"
  24827. else
  24828. kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
  24829. fi
  24830. fi
  24831. qt_test_include="qstyle.h"
  24832. kde_test_include="kapp.h"
  24833. if test "$_os" != "OpenBSD"; then
  24834. qt_test_library="libqt-mt.so"
  24835. kde_test_library="libDCOP.so"
  24836. else
  24837. qt_test_library="libqt-mt.so*"
  24838. kde_test_library="libDCOP.so*"
  24839. fi
  24840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt3 headers" >&5
  24841. $as_echo_n "checking for Qt3 headers... " >&6; }
  24842. qt_incdir="no"
  24843. for kde_check in $qt_incdirs; do
  24844. if test -r "$kde_check/$qt_test_include"; then
  24845. qt_incdir="$kde_check"
  24846. break
  24847. fi
  24848. done
  24849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt_incdir" >&5
  24850. $as_echo "$qt_incdir" >&6; }
  24851. if test "x$qt_incdir" = "xno"; then
  24852. as_fn_error $? "Qt3 headers not found. Please specify the root of
  24853. your Qt3 installation by exporting QTDIR before running \"configure\"." "$LINENO" 5
  24854. fi
  24855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt3 libraries" >&5
  24856. $as_echo_n "checking for Qt3 libraries... " >&6; }
  24857. qt_libdir="no"
  24858. for qt_check in $qt_libdirs; do
  24859. if test -r "`ls $qt_check/$qt_test_library 2>/dev/null | head -1`"; then
  24860. qt_libdir="$qt_check"
  24861. break
  24862. fi
  24863. done
  24864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt_libdir" >&5
  24865. $as_echo "$qt_libdir" >&6; }
  24866. if test "x$qt_libdir" = "xno"; then
  24867. as_fn_error $? "Qt3 libraries not found. Please specify the root of
  24868. your Qt3 installation by exporting QTDIR before running \"configure\"." "$LINENO" 5
  24869. fi
  24870. # Extract the first word of "moc", so it can be a program name with args.
  24871. set dummy moc; ac_word=$2
  24872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24873. $as_echo_n "checking for $ac_word... " >&6; }
  24874. if ${ac_cv_path_MOC+:} false; then :
  24875. $as_echo_n "(cached) " >&6
  24876. else
  24877. case $MOC in
  24878. [\\/]* | ?:[\\/]*)
  24879. ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
  24880. ;;
  24881. *)
  24882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24883. as_dummy="`dirname $qt_libdir`/bin:$QTDIR/bin:$PATH "
  24884. for as_dir in $as_dummy
  24885. do
  24886. IFS=$as_save_IFS
  24887. test -z "$as_dir" && as_dir=.
  24888. for ac_exec_ext in '' $ac_executable_extensions; do
  24889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24890. ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
  24891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24892. break 2
  24893. fi
  24894. done
  24895. done
  24896. IFS=$as_save_IFS
  24897. test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
  24898. ;;
  24899. esac
  24900. fi
  24901. MOC=$ac_cv_path_MOC
  24902. if test -n "$MOC"; then
  24903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
  24904. $as_echo "$MOC" >&6; }
  24905. else
  24906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24907. $as_echo "no" >&6; }
  24908. fi
  24909. if test "$MOC" = "no"; then
  24910. as_fn_error $? "Qt3 Meta Object Compiler not found. Please specify
  24911. the root of your Qt3 installation by exporting QTDIR before running \"configure\"." "$LINENO" 5
  24912. fi
  24913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE3 headers" >&5
  24914. $as_echo_n "checking for KDE3 headers... " >&6; }
  24915. kde_incdir="no"
  24916. for kde_check in $kde_incdirs; do
  24917. if test -r "$kde_check/$kde_test_include"; then
  24918. kde_incdir="$kde_check"
  24919. break
  24920. fi
  24921. done
  24922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kde_incdir" >&5
  24923. $as_echo "$kde_incdir" >&6; }
  24924. if test "x$kde_incdir" = "xno"; then
  24925. as_fn_error $? "KDE3 headers not found. Please specify the root of
  24926. your KDE3 installation by exporting KDEDIR before running \"configure\"." "$LINENO" 5
  24927. fi
  24928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE3 libraries" >&5
  24929. $as_echo_n "checking for KDE3 libraries... " >&6; }
  24930. kde_libdir="no"
  24931. for kde_check in $kde_libdirs; do
  24932. if test -r "`ls $kde_check/$kde_test_library 2>/dev/null | head -1`"; then
  24933. kde_libdir="$kde_check"
  24934. break
  24935. fi
  24936. done
  24937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kde_libdir" >&5
  24938. $as_echo "$kde_libdir" >&6; }
  24939. if test "x$kde_libdir" = "xno"; then
  24940. as_fn_error $? "KDE3 libraries not found. Please specify the root of
  24941. your KDE3 installation by exporting KDEDIR before running \"configure\"." "$LINENO" 5
  24942. fi
  24943. KDE_CFLAGS="-I$qt_incdir -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
  24944. KDE_LIBS="-L$kde_libdir -L$qt_libdir -lkdeui -lkdecore -lqt-mt"
  24945. fi
  24946. KDE4_CFLAGS=""
  24947. KDE4_LIBS=""
  24948. QMAKE4="qmake"
  24949. MOC4="moc"
  24950. KDE_GLIB_CFLAGS=""
  24951. KDE_GLIB_LIBS=""
  24952. KDE_HAVE_GLIB=""
  24953. if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE"; then
  24954. qt_incdirs="$QT4INC /usr/include/qt4 /usr/include $x_includes"
  24955. qt_libdirs="$QT4LIB /usr/lib/qt4 /usr/lib $x_libraries"
  24956. kde_incdirs="/usr/include /usr/include/kde4 $x_includes"
  24957. kde_libdirs="/usr/lib /usr/lib/kde4 /usr/lib/kde4/devel $x_libraries"
  24958. if test -n "$supports_multilib"; then
  24959. qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
  24960. kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4 /usr/lib64/kde4/devel"
  24961. fi
  24962. if test -n "$QTDIR"; then
  24963. qt_incdirs="$QTDIR/include $qt_incdirs"
  24964. if test -z "$supports_multilib"; then
  24965. qt_libdirs="$QTDIR/lib $qt_libdirs"
  24966. else
  24967. qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
  24968. fi
  24969. fi
  24970. if test -n "$QT4DIR"; then
  24971. qt_incdirs="$QT4DIR/include $qt_incdirs"
  24972. if test -z "$supports_multilib"; then
  24973. qt_libdirs="$QT4DIR/lib $qt_libdirs"
  24974. else
  24975. qt_libdirs="$QT4DIR/lib64 $QT4DIR/lib $qt_libdirs"
  24976. fi
  24977. fi
  24978. if test -n "$KDEDIR"; then
  24979. kde_incdirs="$KDEDIR/include $kde_incdirs"
  24980. if test -z "$supports_multilib"; then
  24981. kde_libdirs="$KDEDIR/lib $kde_libdirs"
  24982. else
  24983. kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
  24984. fi
  24985. fi
  24986. if test -n "$KDE4DIR"; then
  24987. kde_incdirs="$KDE4DIR/include $KDE4DIR/include/kde4 $kde_incdirs"
  24988. if test -z "$supports_multilib"; then
  24989. kde_libdirs="$KDE4DIR/lib $kde_libdirs"
  24990. else
  24991. kde_libdirs="$KDE4DIR/lib64 $KDE4DIR/lib $kde_libdirs"
  24992. fi
  24993. fi
  24994. qt_test_include="Qt/qobject.h"
  24995. qt_test_library="libQtCore.so"
  24996. kde_test_include="kwindowsystem.h"
  24997. kde_test_library="libsolid.so"
  24998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 headers" >&5
  24999. $as_echo_n "checking for Qt4 headers... " >&6; }
  25000. qt_header_dir="no"
  25001. for inc_dir in $qt_incdirs; do
  25002. if test -r "$inc_dir/$qt_test_include"; then
  25003. qt_header_dir="$inc_dir"
  25004. break
  25005. fi
  25006. done
  25007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt_header_dir" >&5
  25008. $as_echo "$qt_header_dir" >&6; }
  25009. if test "x$qt_header_dir" = "xno"; then
  25010. as_fn_error $? "Qt4 headers not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." "$LINENO" 5
  25011. fi
  25012. # Extract the first word of "qmake-qt4", so it can be a program name with args.
  25013. set dummy qmake-qt4; ac_word=$2
  25014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25015. $as_echo_n "checking for $ac_word... " >&6; }
  25016. if ${ac_cv_path_QMAKEQT4+:} false; then :
  25017. $as_echo_n "(cached) " >&6
  25018. else
  25019. case $QMAKEQT4 in
  25020. [\\/]* | ?:[\\/]*)
  25021. ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
  25022. ;;
  25023. *)
  25024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25025. as_dummy="`dirname $qt_header_dir`/bin:$QT4DIR/bin:$PATH "
  25026. for as_dir in $as_dummy
  25027. do
  25028. IFS=$as_save_IFS
  25029. test -z "$as_dir" && as_dir=.
  25030. for ac_exec_ext in '' $ac_executable_extensions; do
  25031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25032. ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
  25033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25034. break 2
  25035. fi
  25036. done
  25037. done
  25038. IFS=$as_save_IFS
  25039. test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="no"
  25040. ;;
  25041. esac
  25042. fi
  25043. QMAKEQT4=$ac_cv_path_QMAKEQT4
  25044. if test -n "$QMAKEQT4"; then
  25045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKEQT4" >&5
  25046. $as_echo "$QMAKEQT4" >&6; }
  25047. else
  25048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25049. $as_echo "no" >&6; }
  25050. fi
  25051. QMAKE4="$QMAKEQT4"
  25052. if test "$QMAKE4" = "no" ; then
  25053. # Extract the first word of "qmake", so it can be a program name with args.
  25054. set dummy qmake; ac_word=$2
  25055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25056. $as_echo_n "checking for $ac_word... " >&6; }
  25057. if ${ac_cv_path_QMAKE4+:} false; then :
  25058. $as_echo_n "(cached) " >&6
  25059. else
  25060. case $QMAKE4 in
  25061. [\\/]* | ?:[\\/]*)
  25062. ac_cv_path_QMAKE4="$QMAKE4" # Let the user override the test with a path.
  25063. ;;
  25064. *)
  25065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25066. as_dummy="`dirname $qt_header_dir`/bin:$QT4DIR/bin:$PATH "
  25067. for as_dir in $as_dummy
  25068. do
  25069. IFS=$as_save_IFS
  25070. test -z "$as_dir" && as_dir=.
  25071. for ac_exec_ext in '' $ac_executable_extensions; do
  25072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25073. ac_cv_path_QMAKE4="$as_dir/$ac_word$ac_exec_ext"
  25074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25075. break 2
  25076. fi
  25077. done
  25078. done
  25079. IFS=$as_save_IFS
  25080. test -z "$ac_cv_path_QMAKE4" && ac_cv_path_QMAKE4="no"
  25081. ;;
  25082. esac
  25083. fi
  25084. QMAKE4=$ac_cv_path_QMAKE4
  25085. if test -n "$QMAKE4"; then
  25086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE4" >&5
  25087. $as_echo "$QMAKE4" >&6; }
  25088. else
  25089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25090. $as_echo "no" >&6; }
  25091. fi
  25092. if test "$QMAKE4" = "no" ; then
  25093. as_fn_error $? "Qmake not found. Please specify
  25094. the root of your Qt installation by exporting QT4DIR before running \"configure\"." "$LINENO" 5
  25095. fi
  25096. fi
  25097. qt_libdirs="`$QMAKE4 -query QT_INSTALL_LIBS` $qt_libdirs"
  25098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt4 libraries" >&5
  25099. $as_echo_n "checking for Qt4 libraries... " >&6; }
  25100. qt_lib_dir="no"
  25101. for lib_dir in $qt_libdirs; do
  25102. if test -r "$lib_dir/$qt_test_library"; then
  25103. qt_lib_dir="$lib_dir"
  25104. PKG_CONFIG_PATH="$qt_lib_dir"/pkgconfig:$PKG_CONFIG_PATH
  25105. break
  25106. fi
  25107. done
  25108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qt_lib_dir" >&5
  25109. $as_echo "$qt_lib_dir" >&6; }
  25110. if test "x$qt_lib_dir" = "xno"; then
  25111. as_fn_error $? "Qt4 libraries not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." "$LINENO" 5
  25112. fi
  25113. # Extract the first word of "moc-qt4", so it can be a program name with args.
  25114. set dummy moc-qt4; ac_word=$2
  25115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25116. $as_echo_n "checking for $ac_word... " >&6; }
  25117. if ${ac_cv_path_MOCQT4+:} false; then :
  25118. $as_echo_n "(cached) " >&6
  25119. else
  25120. case $MOCQT4 in
  25121. [\\/]* | ?:[\\/]*)
  25122. ac_cv_path_MOCQT4="$MOCQT4" # Let the user override the test with a path.
  25123. ;;
  25124. *)
  25125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25126. as_dummy="`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH "
  25127. for as_dir in $as_dummy
  25128. do
  25129. IFS=$as_save_IFS
  25130. test -z "$as_dir" && as_dir=.
  25131. for ac_exec_ext in '' $ac_executable_extensions; do
  25132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25133. ac_cv_path_MOCQT4="$as_dir/$ac_word$ac_exec_ext"
  25134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25135. break 2
  25136. fi
  25137. done
  25138. done
  25139. IFS=$as_save_IFS
  25140. test -z "$ac_cv_path_MOCQT4" && ac_cv_path_MOCQT4="no"
  25141. ;;
  25142. esac
  25143. fi
  25144. MOCQT4=$ac_cv_path_MOCQT4
  25145. if test -n "$MOCQT4"; then
  25146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOCQT4" >&5
  25147. $as_echo "$MOCQT4" >&6; }
  25148. else
  25149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25150. $as_echo "no" >&6; }
  25151. fi
  25152. MOC4="$MOCQT4"
  25153. if test "$MOC4" = "no"; then
  25154. # Extract the first word of "moc", so it can be a program name with args.
  25155. set dummy moc; ac_word=$2
  25156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25157. $as_echo_n "checking for $ac_word... " >&6; }
  25158. if ${ac_cv_path_MOC4+:} false; then :
  25159. $as_echo_n "(cached) " >&6
  25160. else
  25161. case $MOC4 in
  25162. [\\/]* | ?:[\\/]*)
  25163. ac_cv_path_MOC4="$MOC4" # Let the user override the test with a path.
  25164. ;;
  25165. *)
  25166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25167. as_dummy="`dirname $qt_lib_dir`/bin:$QT4DIR/bin:$PATH "
  25168. for as_dir in $as_dummy
  25169. do
  25170. IFS=$as_save_IFS
  25171. test -z "$as_dir" && as_dir=.
  25172. for ac_exec_ext in '' $ac_executable_extensions; do
  25173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25174. ac_cv_path_MOC4="$as_dir/$ac_word$ac_exec_ext"
  25175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25176. break 2
  25177. fi
  25178. done
  25179. done
  25180. IFS=$as_save_IFS
  25181. test -z "$ac_cv_path_MOC4" && ac_cv_path_MOC4="no"
  25182. ;;
  25183. esac
  25184. fi
  25185. MOC4=$ac_cv_path_MOC4
  25186. if test -n "$MOC4"; then
  25187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
  25188. $as_echo "$MOC4" >&6; }
  25189. else
  25190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25191. $as_echo "no" >&6; }
  25192. fi
  25193. if test "$MOC4" = "no"; then
  25194. as_fn_error $? "Qt Meta Object Compiler not found. Please specify
  25195. the root of your Qt installation by exporting QT4DIR before running \"configure\"." "$LINENO" 5
  25196. fi
  25197. fi
  25198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE4 headers" >&5
  25199. $as_echo_n "checking for KDE4 headers... " >&6; }
  25200. kde_incdir="no"
  25201. for kde_check in $kde_incdirs; do
  25202. if test -r "$kde_check/$kde_test_include"; then
  25203. kde_incdir="$kde_check"
  25204. break
  25205. fi
  25206. done
  25207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kde_incdir" >&5
  25208. $as_echo "$kde_incdir" >&6; }
  25209. if test "x$kde_incdir" = "xno"; then
  25210. as_fn_error $? "KDE4 headers not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." "$LINENO" 5
  25211. fi
  25212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE4 libraries" >&5
  25213. $as_echo_n "checking for KDE4 libraries... " >&6; }
  25214. kde_libdir="no"
  25215. for kde_check in $kde_libdirs; do
  25216. if test -r "$kde_check/$kde_test_library"; then
  25217. kde_libdir="$kde_check"
  25218. break
  25219. fi
  25220. done
  25221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kde_libdir" >&5
  25222. $as_echo "$kde_libdir" >&6; }
  25223. if test "x$kde_libdir" = "xno"; then
  25224. as_fn_error $? "KDE4 libraries not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." "$LINENO" 5
  25225. fi
  25226. KDE4_CFLAGS="`pkg-config --cflags QtCore` `pkg-config --cflags QtGui` -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
  25227. KDE4_LIBS="-L$kde_libdir -L$qt_lib_dir -lkio -lkfile -lkdeui -lkdecore -lQtCore -lQtGui"
  25228. ac_ext=cpp
  25229. ac_cpp='$CXXCPP $CPPFLAGS'
  25230. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25231. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25232. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25233. save_CXXFLAGS=$CXXFLAGS
  25234. CXXFLAGS="$CXXFLAGS $KDE4_CFLAGS"
  25235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether KDE is >= 4.2" >&5
  25236. $as_echo_n "checking whether KDE is >= 4.2... " >&6; }
  25237. if test "$cross_compiling" = yes; then :
  25238. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25239. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25240. as_fn_error $? "cannot run test program while cross compiling
  25241. See \`config.log' for more details" "$LINENO" 5; }
  25242. else
  25243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25244. /* end confdefs.h. */
  25245. #include <kdeversion.h>
  25246. int main(int argc, char **argv) {
  25247. if (KDE_VERSION_MAJOR == 4 && KDE_VERSION_MINOR >= 2) return 0;
  25248. else return 1;
  25249. }
  25250. _ACEOF
  25251. if ac_fn_cxx_try_run "$LINENO"; then :
  25252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25253. $as_echo "yes" >&6; }
  25254. else
  25255. as_fn_error $? "KDE version too old" "$LINENO" 5
  25256. fi
  25257. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25258. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25259. fi
  25260. CXXFLAGS=$save_CXXFLAGS
  25261. ac_ext=c
  25262. ac_cpp='$CPP $CPPFLAGS'
  25263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25266. # Glib is needed for properly handling Qt event loop with Qt's Glib integration enabled
  25267. pkg_failed=no
  25268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KDE_GLIB" >&5
  25269. $as_echo_n "checking for KDE_GLIB... " >&6; }
  25270. if test -n "$KDE_GLIB_CFLAGS"; then
  25271. pkg_cv_KDE_GLIB_CFLAGS="$KDE_GLIB_CFLAGS"
  25272. elif test -n "$PKG_CONFIG"; then
  25273. if test -n "$PKG_CONFIG" && \
  25274. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4\""; } >&5
  25275. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4") 2>&5
  25276. ac_status=$?
  25277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25278. test $ac_status = 0; }; then
  25279. pkg_cv_KDE_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4" 2>/dev/null`
  25280. else
  25281. pkg_failed=yes
  25282. fi
  25283. else
  25284. pkg_failed=untried
  25285. fi
  25286. if test -n "$KDE_GLIB_LIBS"; then
  25287. pkg_cv_KDE_GLIB_LIBS="$KDE_GLIB_LIBS"
  25288. elif test -n "$PKG_CONFIG"; then
  25289. if test -n "$PKG_CONFIG" && \
  25290. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.4\""; } >&5
  25291. ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.4") 2>&5
  25292. ac_status=$?
  25293. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25294. test $ac_status = 0; }; then
  25295. pkg_cv_KDE_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4" 2>/dev/null`
  25296. else
  25297. pkg_failed=yes
  25298. fi
  25299. else
  25300. pkg_failed=untried
  25301. fi
  25302. if test $pkg_failed = yes; then
  25303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25304. $as_echo "no" >&6; }
  25305. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25306. _pkg_short_errors_supported=yes
  25307. else
  25308. _pkg_short_errors_supported=no
  25309. fi
  25310. if test $_pkg_short_errors_supported = yes; then
  25311. KDE_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.4" 2>&1`
  25312. else
  25313. KDE_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.4" 2>&1`
  25314. fi
  25315. # Put the nasty error message in config.log where it belongs
  25316. echo "$KDE_GLIB_PKG_ERRORS" >&5
  25317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&5
  25318. $as_echo "$as_me: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&2;}
  25319. elif test $pkg_failed = untried; then
  25320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25321. $as_echo "no" >&6; }
  25322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&5
  25323. $as_echo "$as_me: WARNING: No Glib found, KDE4 support will not integrate with Qt's Glib event loop support" >&2;}
  25324. else
  25325. KDE_GLIB_CFLAGS=$pkg_cv_KDE_GLIB_CFLAGS
  25326. KDE_GLIB_LIBS=$pkg_cv_KDE_GLIB_LIBS
  25327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25328. $as_echo "yes" >&6; }
  25329. KDE_HAVE_GLIB=1
  25330. fi
  25331. fi
  25332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the lockdown pieces" >&5
  25333. $as_echo_n "checking whether to enable the lockdown pieces... " >&6; }
  25334. ENABLE_LOCKDOWN=""
  25335. if test -n "$enable_lockdown" -a "$enable_lockdown" != "no"; then
  25336. ENABLE_LOCKDOWN=YES
  25337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25338. $as_echo "yes" >&6; }
  25339. else
  25340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25341. $as_echo "no" >&6; }
  25342. fi
  25343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable evolution 2 support" >&5
  25344. $as_echo_n "checking whether to enable evolution 2 support... " >&6; }
  25345. if test "$enable_evolution2" = "yes" -o "$enable_evolution2" = "TRUE"; then
  25346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25347. $as_echo "yes" >&6; }
  25348. pkg_failed=no
  25349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
  25350. $as_echo_n "checking for GOBJECT... " >&6; }
  25351. if test -n "$GOBJECT_CFLAGS"; then
  25352. pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
  25353. elif test -n "$PKG_CONFIG"; then
  25354. if test -n "$PKG_CONFIG" && \
  25355. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
  25356. ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
  25357. ac_status=$?
  25358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25359. test $ac_status = 0; }; then
  25360. pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
  25361. else
  25362. pkg_failed=yes
  25363. fi
  25364. else
  25365. pkg_failed=untried
  25366. fi
  25367. if test -n "$GOBJECT_LIBS"; then
  25368. pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
  25369. elif test -n "$PKG_CONFIG"; then
  25370. if test -n "$PKG_CONFIG" && \
  25371. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
  25372. ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
  25373. ac_status=$?
  25374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25375. test $ac_status = 0; }; then
  25376. pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
  25377. else
  25378. pkg_failed=yes
  25379. fi
  25380. else
  25381. pkg_failed=untried
  25382. fi
  25383. if test $pkg_failed = yes; then
  25384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25385. $as_echo "no" >&6; }
  25386. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25387. _pkg_short_errors_supported=yes
  25388. else
  25389. _pkg_short_errors_supported=no
  25390. fi
  25391. if test $_pkg_short_errors_supported = yes; then
  25392. GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0" 2>&1`
  25393. else
  25394. GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0" 2>&1`
  25395. fi
  25396. # Put the nasty error message in config.log where it belongs
  25397. echo "$GOBJECT_PKG_ERRORS" >&5
  25398. as_fn_error $? "Package requirements (gobject-2.0) were not met:
  25399. $GOBJECT_PKG_ERRORS
  25400. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25401. installed software in a non-standard prefix.
  25402. Alternatively, you may set the environment variables GOBJECT_CFLAGS
  25403. and GOBJECT_LIBS to avoid the need to call pkg-config.
  25404. See the pkg-config man page for more details." "$LINENO" 5
  25405. elif test $pkg_failed = untried; then
  25406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25407. $as_echo "no" >&6; }
  25408. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25409. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25410. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  25411. is in your PATH or set the PKG_CONFIG environment variable to the full
  25412. path to pkg-config.
  25413. Alternatively, you may set the environment variables GOBJECT_CFLAGS
  25414. and GOBJECT_LIBS to avoid the need to call pkg-config.
  25415. See the pkg-config man page for more details.
  25416. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25417. See \`config.log' for more details" "$LINENO" 5; }
  25418. else
  25419. GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
  25420. GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
  25421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25422. $as_echo "yes" >&6; }
  25423. fi
  25424. ENABLE_EVOAB2="TRUE"
  25425. else
  25426. ENABLE_EVOAB2=""
  25427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25428. $as_echo "no" >&6; }
  25429. fi
  25430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TDE address book support" >&5
  25431. $as_echo_n "checking whether to enable TDE address book support... " >&6; }
  25432. if test "$enable_tdeab" = "yes" -a "$enable_tde" = "yes"; then
  25433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25434. $as_echo "yes" >&6; }
  25435. ac_ext=cpp
  25436. ac_cpp='$CXXCPP $CPPFLAGS'
  25437. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25438. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25439. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25440. save_CXXFLAGS=$CXXFLAGS
  25441. CXXFLAGS="$CXXFLAGS $TDE_CFLAGS"
  25442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TDE is at least R14.0" >&5
  25443. $as_echo_n "checking whether TDE is at least R14.0... " >&6; }
  25444. if test "$cross_compiling" = yes; then :
  25445. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25446. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25447. as_fn_error $? "cannot run test program while cross compiling
  25448. See \`config.log' for more details" "$LINENO" 5; }
  25449. else
  25450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25451. /* end confdefs.h. */
  25452. #include <tdeversion.h>
  25453. int main(int argc, char **argv) {
  25454. if (TDE_VERSION_MAJOR >= 14) return 0;
  25455. else return 1;
  25456. }
  25457. _ACEOF
  25458. if ac_fn_cxx_try_run "$LINENO"; then :
  25459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25460. $as_echo "yes" >&6; }
  25461. else
  25462. as_fn_error $? "TDE version too old or too recent, please use another version of TDE or disable TDE address book support" "$LINENO" 5
  25463. fi
  25464. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25465. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25466. fi
  25467. CXXFLAGS=$save_CXXFLAGS
  25468. ac_ext=c
  25469. ac_cpp='$CPP $CPPFLAGS'
  25470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25473. ENABLE_TDEAB=TRUE
  25474. else
  25475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25476. $as_echo "no" >&6; }
  25477. ENABLE_TDEAB=
  25478. fi
  25479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable KDE address book support" >&5
  25480. $as_echo_n "checking whether to enable KDE address book support... " >&6; }
  25481. if test "$enable_kdeab" = "yes" -a "$enable_kde" = "yes"; then
  25482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25483. $as_echo "yes" >&6; }
  25484. ac_ext=cpp
  25485. ac_cpp='$CXXCPP $CPPFLAGS'
  25486. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25487. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25488. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25489. save_CXXFLAGS=$CXXFLAGS
  25490. CXXFLAGS="$CXXFLAGS $KDE_CFLAGS"
  25491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether KDE is between 3.2 and 3.6" >&5
  25492. $as_echo_n "checking whether KDE is between 3.2 and 3.6... " >&6; }
  25493. if test "$cross_compiling" = yes; then :
  25494. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25496. as_fn_error $? "cannot run test program while cross compiling
  25497. See \`config.log' for more details" "$LINENO" 5; }
  25498. else
  25499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25500. /* end confdefs.h. */
  25501. #include <kdeversion.h>
  25502. int main(int argc, char **argv) {
  25503. if (KDE_VERSION_MAJOR == 3 && 2 <= KDE_VERSION_MINOR && KDE_VERSION_MINOR <= 6) return 0;
  25504. else return 1;
  25505. }
  25506. _ACEOF
  25507. if ac_fn_cxx_try_run "$LINENO"; then :
  25508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25509. $as_echo "yes" >&6; }
  25510. else
  25511. as_fn_error $? "KDE version too old or too recent, please use another version of KDE or disable KDE address book support" "$LINENO" 5
  25512. fi
  25513. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25514. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25515. fi
  25516. CXXFLAGS=$save_CXXFLAGS
  25517. ac_ext=c
  25518. ac_cpp='$CPP $CPPFLAGS'
  25519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25522. ENABLE_KAB=TRUE
  25523. else
  25524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25525. $as_echo "no" >&6; }
  25526. ENABLE_KAB=
  25527. fi
  25528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include MathMLDTD" >&5
  25529. $as_echo_n "checking whether to include MathMLDTD... " >&6; }
  25530. if test -n "$enable_mathmldtd"; then
  25531. if test "$enable_mathmldtd" = "no"; then
  25532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25533. $as_echo "no" >&6; }
  25534. SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
  25535. else
  25536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25537. $as_echo "yes" >&6; }
  25538. BUILD_TYPE="$BUILD_TYPE MATHMLDTD"
  25539. fi
  25540. else
  25541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25542. $as_echo "no" >&6; }
  25543. SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
  25544. fi
  25545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which themes to include" >&5
  25546. $as_echo_n "checking which themes to include... " >&6; }
  25547. # if none given use default subset of available themes
  25548. if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
  25549. with_theme="crystal default hicontrast oxygen tango"
  25550. fi
  25551. WITH_THEMES=""
  25552. for theme in $with_theme; do
  25553. case $theme in
  25554. crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango) : ;;
  25555. *) as_fn_error $? "Unknown value for --with-theme: $theme" "$LINENO" 5 ;;
  25556. esac
  25557. WITH_THEMES="$WITH_THEMES $theme"
  25558. SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[:lower:]' '[:upper:]'`"
  25559. done
  25560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_THEMES" >&5
  25561. $as_echo "$WITH_THEMES" >&6; }
  25562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for helppack integration" >&5
  25563. $as_echo_n "checking for helppack integration... " >&6; }
  25564. if test "$with_helppack_integration" = "no"; then
  25565. WITH_HELPPACK_INTEGRATION=NO
  25566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no integration" >&5
  25567. $as_echo "no integration" >&6; }
  25568. else
  25569. WITH_HELPPACK_INTEGRATION=YES
  25570. SCPDEFS="$SCPDEFS -DWITH_HELPPACK_INTEGRATION"
  25571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: integration" >&5
  25572. $as_echo "integration" >&6; }
  25573. fi
  25574. ###############################################################################
  25575. # Extensions checking
  25576. ###############################################################################
  25577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extensions integration" >&5
  25578. $as_echo_n "checking for extensions integration... " >&6; }
  25579. if test "x$enable_extension_integration" != "xno"; then
  25580. WITH_EXTENSION_INTEGRATION=YES
  25581. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_INTEGRATION"
  25582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, use integration" >&5
  25583. $as_echo "yes, use integration" >&6; }
  25584. else
  25585. WITH_EXTENSION_INTEGRATION=NO
  25586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, do not integrate" >&5
  25587. $as_echo "no, do not integrate" >&6; }
  25588. fi
  25589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Watch Window extension integration" >&5
  25590. $as_echo_n "checking for Watch Window extension integration... " >&6; }
  25591. WATCH_WINDOW_EXTENSION_PACK=
  25592. if test "x$enable_ext_watch_window" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25593. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_WATCH_WINDOW"
  25594. WATCH_WINDOW_EXTENSION_PACK="23bd75552206dfcd8fd4e29137dcac84-WatchWindow_1.2.0.0.oxt"
  25595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25596. $as_echo "yes" >&6; }
  25597. else
  25598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25599. $as_echo "no" >&6; }
  25600. fi
  25601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmART Gallery (Diagram) extension integration" >&5
  25602. $as_echo_n "checking for SmART Gallery (Diagram) extension integration... " >&6; }
  25603. DIAGRAM_EXTENSION_PACK=
  25604. if test "x$enable_ext_diagram" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25605. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_DIAGRAM"
  25606. DIAGRAM_EXTENSION_PACK="8d74685d41f8bffe8c3e71fe8deac09d-SmART_0.9.5.oxt"
  25607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25608. $as_echo "yes" >&6; }
  25609. else
  25610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25611. $as_echo "no" >&6; }
  25612. fi
  25613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Validator extension integration" >&5
  25614. $as_echo_n "checking for Validator extension integration... " >&6; }
  25615. VALIDATOR_EXTENSION_PACK=
  25616. if test "x$enable_ext_validator" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25617. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_VALIDATOR"
  25618. VALIDATOR_EXTENSION_PACK="bbdd5639ada63e3130761daaecae1a10-Validator_1.1.0.0.oxt"
  25619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25620. $as_echo "yes" >&6; }
  25621. else
  25622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25623. $as_echo "no" >&6; }
  25624. fi
  25625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Barcode extension integration" >&5
  25626. $as_echo_n "checking for Barcode extension integration... " >&6; }
  25627. BARCODE_EXTENSION_PACK=
  25628. if test "x$enable_ext_barcode" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25629. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_BARCODE"
  25630. BARCODE_EXTENSION_PACK="3ed18025a766f1e955707b969c8113a5-Barcode_1.3.5.0.oxt"
  25631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25632. $as_echo "yes" >&6; }
  25633. else
  25634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25635. $as_echo "no" >&6; }
  25636. fi
  25637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ConvertTextToNumber extension integration" >&5
  25638. $as_echo_n "checking for ConvertTextToNumber extension integration... " >&6; }
  25639. CT2N_EXTENSION_PACK=
  25640. if test "x$enable_ext_ct2n" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25641. BUILD_TYPE="$BUILD_TYPE CT2N"
  25642. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_CT2N"
  25643. CT2N_EXTENSION_PACK="451ccf439a36a568653b024534669971-ConvertTextToNumber_1.3.2.oxt"
  25644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25645. $as_echo "yes" >&6; }
  25646. else
  25647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25648. $as_echo "no" >&6; }
  25649. fi
  25650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Numbertext extension integration" >&5
  25651. $as_echo_n "checking for Numbertext extension integration... " >&6; }
  25652. NUMBERTEXT_EXTENSION_PACK=
  25653. if test "x$enable_ext_numbertext" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25654. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_NUMBERTEXT"
  25655. NUMBERTEXT_EXTENSION_PACK="b8cbca7b3363e6ca2d02bc0ba2b63904-numbertext_0.9.4.oxt"
  25656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25657. $as_echo "yes" >&6; }
  25658. else
  25659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25660. $as_echo "no" >&6; }
  25661. fi
  25662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Hungarian Cross-reference Toolbar extension integration" >&5
  25663. $as_echo_n "checking for Hungarian Cross-reference Toolbar extension integration... " >&6; }
  25664. HUNART_EXTENSION_PACK=
  25665. if test "x$enable_ext_hunart" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25666. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_HUNART"
  25667. HUNART_EXTENSION_PACK="b632bdd25649cc4067bcb410bae23d2b-hunart_0.3.oxt"
  25668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25669. $as_echo "yes" >&6; }
  25670. else
  25671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25672. $as_echo "no" >&6; }
  25673. fi
  25674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Typography Toolbar extension integration" >&5
  25675. $as_echo_n "checking for Typography Toolbar extension integration... " >&6; }
  25676. TYPO_EXTENSION_PACK=
  25677. if test "x$enable_ext_typo" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25678. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_TYPO"
  25679. TYPO_EXTENSION_PACK="9d60b6cfa3ef1926848710bbcd11115b-typo_0.4.2.oxt"
  25680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25681. $as_echo "yes" >&6; }
  25682. else
  25683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25684. $as_echo "no" >&6; }
  25685. fi
  25686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Google Docs extension integration" >&5
  25687. $as_echo_n "checking for Google Docs extension integration... " >&6; }
  25688. GOOGLE_DOCS_EXTENSION_PACK=
  25689. if test "x$enable_ext_google_docs" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25690. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_GOOGLE_DOCS"
  25691. GOOGLE_DOCS_EXTENSION_PACK="2a64b8e6f185a7f6c19d00fb8bb4cf64-gdocs_3.0.1_modified.oxt"
  25692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25693. $as_echo "yes" >&6; }
  25694. else
  25695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25696. $as_echo "no" >&6; }
  25697. fi
  25698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLPSolver extension integration" >&5
  25699. $as_echo_n "checking for NLPSolver extension integration... " >&6; }
  25700. if test "x$enable_ext_nlpsolver" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
  25701. BUILD_TYPE="$BUILD_TYPE NLPSOLVER"
  25702. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_NLPSOLVER"
  25703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25704. $as_echo "yes" >&6; }
  25705. else
  25706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25707. $as_echo "no" >&6; }
  25708. fi
  25709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LanguageTool extension integration" >&5
  25710. $as_echo_n "checking for LanguageTool extension integration... " >&6; }
  25711. if test "x$enable_ext_languagetool" = "xyes" -a "x$enable_extension_integration" != "xno" -a "x$with_java" != "xno"; then
  25712. BUILD_TYPE="$BUILD_TYPE LANGUAGETOOL"
  25713. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_LANGUAGETOOL"
  25714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25715. $as_echo "yes" >&6; }
  25716. else
  25717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25718. $as_echo "no" >&6; }
  25719. fi
  25720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oooblogger extension integration" >&5
  25721. $as_echo_n "checking for oooblogger extension integration... " >&6; }
  25722. OOOBLOGGER_EXTENSION_PACK=
  25723. if test "x$enable_ext_oooblogger" = "xyes" -a "x$enable_extension_integration" != "xno"; then
  25724. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_OOOBLOGGER"
  25725. OOOBLOGGER_EXTENSION_PACK="b7b2d0e04e142f26dd96119c80757d1f-oooblogger_0.1.oxt"
  25726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25727. $as_echo "yes" >&6; }
  25728. else
  25729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25730. $as_echo "no" >&6; }
  25731. fi
  25732. ###############################################################################
  25733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sun Professional Template Pack integration (only supported languages displayed)" >&5
  25734. $as_echo_n "checking for Sun Professional Template Pack integration (only supported languages displayed)... " >&6; }
  25735. if test "$with_sun_templates" = "" -o "$with_sun_templates" = "no"; then
  25736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no integration" >&5
  25737. $as_echo "no integration" >&6; }
  25738. else
  25739. SCPDEFS="$SCPDEFS -DWITH_EXTENSION_SUN_TEMPLATE_PACK"
  25740. sun_supported_langs="en-US de it fr es hu"
  25741. if test "$with_sun_templates" = "yes"; then
  25742. wanted_sun_templates="$sun_supported_langs"
  25743. else
  25744. # check whether the langs are supported by Sun
  25745. wanted_sun_templates=
  25746. for lang in $with_sun_templates; do
  25747. if test -n "`echo $sun_supported_langs | grep "$lang"`"; then
  25748. wanted_sun_templates="$wanted_sun_templates $lang"
  25749. fi
  25750. done
  25751. fi
  25752. SUNTEMPLATES_LANG=
  25753. SUNTEMPLATES_DE_PACK=
  25754. SUNTEMPLATES_EN_US_PACK=
  25755. SUNTEMPLATES_ES_PACK=
  25756. SUNTEMPLATES_FR_PACK=
  25757. SUNTEMPLATES_HU_PACK=
  25758. SUNTEMPLATES_IT_PACK=
  25759. # check whether the langs are requested at all
  25760. for lang in $wanted_sun_templates; do
  25761. if test "$with_lang" = "ALL" -o -n "`echo $with_lang | grep "$lang"`"; then
  25762. SUNTEMPLATES_LANG="$SUNTEMPLATES_LANG $lang"
  25763. case $lang in
  25764. "de") SUNTEMPLATES_DE_PACK="53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt";;
  25765. "en-US") SUNTEMPLATES_EN_US_PACK="472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt";;
  25766. "es") SUNTEMPLATES_ES_PACK="4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt";;
  25767. "fr") SUNTEMPLATES_FR_PACK="a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt";;
  25768. "hu") SUNTEMPLATES_HU_PACK="09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt";;
  25769. "it") SUNTEMPLATES_IT_PACK="b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt";;
  25770. esac
  25771. fi
  25772. done
  25773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUNTEMPLATES_LANG" >&5
  25774. $as_echo "$SUNTEMPLATES_LANG" >&6; }
  25775. fi
  25776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include third-party fonts" >&5
  25777. $as_echo_n "checking whether to include third-party fonts... " >&6; }
  25778. if test "$with_fonts" != "no"; then
  25779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25780. $as_echo "yes" >&6; }
  25781. WITH_FONTS=YES
  25782. BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
  25783. else
  25784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25785. $as_echo "no" >&6; }
  25786. WITH_FONTS=NO
  25787. SCPDEFS="$SCPDEFS -DWITHOUT_FONTS"
  25788. fi
  25789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include Agfa Monotype fonts" >&5
  25790. $as_echo_n "checking whether to include Agfa Monotype fonts... " >&6; }
  25791. if test "$with_agfa_monotype_fonts" = "yes"; then
  25792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25793. $as_echo "yes" >&6; }
  25794. WITH_AGFA_MONOTYPE_FONTS=YES
  25795. SCPDEFS="$SCPDEFS -DWITH_AGFA_MONOTYPE_FONTS"
  25796. BUILD_TYPE="$BUILD_TYPE AGFA_MONOTYPE_FONTS"
  25797. else
  25798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25799. $as_echo "no" >&6; }
  25800. WITH_AGFA_MONOTYPE_FONTS=NO
  25801. fi
  25802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PPDs" >&5
  25803. $as_echo_n "checking whether to include PPDs... " >&6; }
  25804. if test "$with_ppds" != "no"; then
  25805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25806. $as_echo "yes" >&6; }
  25807. else
  25808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25809. $as_echo "no" >&6; }
  25810. WITHOUT_PPDS=YES
  25811. SCPDEFS="$SCPDEFS -DWITHOUT_PPDS"
  25812. fi
  25813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include AFMs" >&5
  25814. $as_echo_n "checking whether to include AFMs... " >&6; }
  25815. if test "$with_afms" != "no"; then
  25816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25817. $as_echo "yes" >&6; }
  25818. BUILD_TYPE="$BUILD_TYPE AFMS"
  25819. else
  25820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25821. $as_echo "no" >&6; }
  25822. WITHOUT_AFMS=YES
  25823. SCPDEFS="$SCPDEFS -DWITHOUT_AFMS"
  25824. fi
  25825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include extra galleries" >&5
  25826. $as_echo_n "checking whether to include extra galleries... " >&6; }
  25827. if test "$enable_extra_gallery" = "" -o "$enable_extra_gallery" = "no"; then
  25828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25829. $as_echo "no" >&6; }
  25830. WITH_EXTRA_GALLERY=NO
  25831. OOOP_GALLERY_PACK=""
  25832. else
  25833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25834. $as_echo "yes" >&6; }
  25835. WITH_EXTRA_GALLERY=YES
  25836. BUILD_TYPE="$BUILD_TYPE EXTRA_GALLERY"
  25837. SCPDEFS="$SCPDEFS -DWITH_EXTRA_GALLERY"
  25838. OOOP_GALLERY_PACK="af9314c5972d95a5d6da23ffad818f68-OOOP-gallery-pack-2.8.0.0.zip"
  25839. fi
  25840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include extra templates" >&5
  25841. $as_echo_n "checking whether to include extra templates... " >&6; }
  25842. if test "$enable_extra_template" = "" -o "$enable_extra_template" = "no"; then
  25843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25844. $as_echo "no" >&6; }
  25845. WITH_EXTRA_TEMPLATE=NO
  25846. OOOP_TEMPLATES_PACK=""
  25847. else
  25848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25849. $as_echo "yes" >&6; }
  25850. WITH_EXTRA_TEMPLATE=YES
  25851. BUILD_TYPE="$BUILD_TYPE EXTRA_TEMPLATE"
  25852. SCPDEFS="$SCPDEFS -DWITH_EXTRA_TEMPLATE"
  25853. OOOP_TEMPLATES_PACK="1be202fbbbc13f10592a98f70a4a87fb-OOOP-templates-pack-2.9.0.0.zip"
  25854. fi
  25855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include extra samples" >&5
  25856. $as_echo_n "checking whether to include extra samples... " >&6; }
  25857. if test "$enable_extra_sample" = "" -o "$enable_extra_sample" = "no"; then
  25858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25859. $as_echo "no" >&6; }
  25860. WITH_EXTRA_SAMPLE=NO
  25861. OOOP_SAMPLES_PACK=""
  25862. else
  25863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25864. $as_echo "yes" >&6; }
  25865. WITH_EXTRA_SAMPLE=YES
  25866. BUILD_TYPE="$BUILD_TYPE EXTRA_SAMPLE"
  25867. SCPDEFS="$SCPDEFS -DWITH_EXTRA_SAMPLE"
  25868. OOOP_SAMPLES_PACK="a6bccacf44914969e6e7b2f8faf4132c-OOOP-samples-pack-2.7.0.0.zip"
  25869. fi
  25870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include extra fonts" >&5
  25871. $as_echo_n "checking whether to include extra fonts... " >&6; }
  25872. if test "$enable_extra_font" = "" -o "$enable_extra_font" = "no"; then
  25873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25874. $as_echo "no" >&6; }
  25875. WITH_EXTRA_FONT=NO
  25876. OOOP_FONTS_PACK=""
  25877. else
  25878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25879. $as_echo "yes" >&6; }
  25880. WITH_EXTRA_FONT=YES
  25881. BUILD_TYPE="$BUILD_TYPE EXTRA_FONT"
  25882. SCPDEFS="$SCPDEFS -DWITH_EXTRA_FONT"
  25883. OOOP_FONTS_PACK="a10aa597411643326e27d7fc128af12d-OOOP-fonts-pack-2.9.0.0.zip"
  25884. fi
  25885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to download OxygenOffice branding and set custom settings" >&5
  25886. $as_echo_n "checking whether to download OxygenOffice branding and set custom settings... " >&6; }
  25887. if test "$enable_oxygenoffice" = "" -o "$enable_oxygenoffice" = "no"; then
  25888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25889. $as_echo "no" >&6; }
  25890. ENABLE_OXYGENOFFICE=NO
  25891. else
  25892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25893. $as_echo "yes" >&6; }
  25894. ENABLE_OXYGENOFFICE=YES
  25895. OXYGENOFFICE_PACK="18bf204479ff641d99a88cd71f6f25f7-oxygenoffice-001.zip"
  25896. BUILD_TYPE="$BUILD_TYPE OXYGENOFFICE"
  25897. fi
  25898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build global menu support" >&5
  25899. $as_echo_n "checking whether to build global menu support... " >&6; }
  25900. if test "$enable_lomenubar" = "" -o "$enable_lomenubar" = "no"; then
  25901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25902. $as_echo "no" >&6; }
  25903. ENABLE_LOMENUBAR="FALSE"
  25904. else
  25905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25906. $as_echo "yes" >&6; }
  25907. pkg_failed=no
  25908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUSMENUGTK" >&5
  25909. $as_echo_n "checking for DBUSMENUGTK... " >&6; }
  25910. if test -n "$DBUSMENUGTK_CFLAGS"; then
  25911. pkg_cv_DBUSMENUGTK_CFLAGS="$DBUSMENUGTK_CFLAGS"
  25912. elif test -n "$PKG_CONFIG"; then
  25913. if test -n "$PKG_CONFIG" && \
  25914. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbusmenu-gtk-0.4\""; } >&5
  25915. ($PKG_CONFIG --exists --print-errors "dbusmenu-gtk-0.4") 2>&5
  25916. ac_status=$?
  25917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25918. test $ac_status = 0; }; then
  25919. pkg_cv_DBUSMENUGTK_CFLAGS=`$PKG_CONFIG --cflags "dbusmenu-gtk-0.4" 2>/dev/null`
  25920. else
  25921. pkg_failed=yes
  25922. fi
  25923. else
  25924. pkg_failed=untried
  25925. fi
  25926. if test -n "$DBUSMENUGTK_LIBS"; then
  25927. pkg_cv_DBUSMENUGTK_LIBS="$DBUSMENUGTK_LIBS"
  25928. elif test -n "$PKG_CONFIG"; then
  25929. if test -n "$PKG_CONFIG" && \
  25930. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbusmenu-gtk-0.4\""; } >&5
  25931. ($PKG_CONFIG --exists --print-errors "dbusmenu-gtk-0.4") 2>&5
  25932. ac_status=$?
  25933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25934. test $ac_status = 0; }; then
  25935. pkg_cv_DBUSMENUGTK_LIBS=`$PKG_CONFIG --libs "dbusmenu-gtk-0.4" 2>/dev/null`
  25936. else
  25937. pkg_failed=yes
  25938. fi
  25939. else
  25940. pkg_failed=untried
  25941. fi
  25942. if test $pkg_failed = yes; then
  25943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25944. $as_echo "no" >&6; }
  25945. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25946. _pkg_short_errors_supported=yes
  25947. else
  25948. _pkg_short_errors_supported=no
  25949. fi
  25950. if test $_pkg_short_errors_supported = yes; then
  25951. DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbusmenu-gtk-0.4" 2>&1`
  25952. else
  25953. DBUSMENUGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbusmenu-gtk-0.4" 2>&1`
  25954. fi
  25955. # Put the nasty error message in config.log where it belongs
  25956. echo "$DBUSMENUGTK_PKG_ERRORS" >&5
  25957. as_fn_error $? "requirements to build lo-menubar not met. Use --disable-lomenubar or install the missing packages" "$LINENO" 5
  25958. elif test $pkg_failed = untried; then
  25959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25960. $as_echo "no" >&6; }
  25961. as_fn_error $? "requirements to build lo-menubar not met. Use --disable-lomenubar or install the missing packages" "$LINENO" 5
  25962. else
  25963. DBUSMENUGTK_CFLAGS=$pkg_cv_DBUSMENUGTK_CFLAGS
  25964. DBUSMENUGTK_LIBS=$pkg_cv_DBUSMENUGTK_LIBS
  25965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25966. $as_echo "yes" >&6; }
  25967. fi
  25968. ENABLE_LOMENUBAR="TRUE"
  25969. fi
  25970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable online update" >&5
  25971. $as_echo_n "checking whether to enable online update... " >&6; }
  25972. ENABLE_ONLINE_UPDATE=
  25973. if test "$enable_online_update" = ""; then
  25974. if test "$_os" = "WINNT" -o "$_os" = "Darwin"; then
  25975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25976. $as_echo "yes" >&6; }
  25977. ENABLE_ONLINE_UPDATE="TRUE"
  25978. else
  25979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25980. $as_echo "no" >&6; }
  25981. fi
  25982. else
  25983. if test "$enable_online_update" = "yes"; then
  25984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25985. $as_echo "yes" >&6; }
  25986. ENABLE_ONLINE_UPDATE="TRUE"
  25987. else
  25988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25989. $as_echo "no" >&6; }
  25990. fi
  25991. fi
  25992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is Release Build" >&5
  25993. $as_echo_n "checking whether build target is Release Build... " >&6; }
  25994. if test "$enable_release_build" = "" -o "$enable_release_build" = "no"; then
  25995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25996. $as_echo "no" >&6; }
  25997. ENABLE_RELEASE_BUILD="FALSE"
  25998. else
  25999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26000. $as_echo "yes" >&6; }
  26001. ENABLE_RELEASE_BUILD="TRUE"
  26002. fi
  26003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create MSI with LIMITUI=1 (silent install)" >&5
  26004. $as_echo_n "checking whether to create MSI with LIMITUI=1 (silent install)... " >&6; }
  26005. if test "$enable_silent_msi" = "" -o "$enable_silent_msi" = "no"; then
  26006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26007. $as_echo "no" >&6; }
  26008. ENABLE_SILENT_MSI="FALSE"
  26009. else
  26010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26011. $as_echo "yes" >&6; }
  26012. ENABLE_SILENT_MSI="TRUE"
  26013. SCPDEFS="$SCPDEFS -DENABLE_SILENT_MSI"
  26014. fi
  26015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether and how to use Xinerama" >&5
  26016. $as_echo_n "checking whether and how to use Xinerama... " >&6; }
  26017. if test "$_os" = "Darwin"; then
  26018. USE_XINERAMA=YES
  26019. XINERAMA_LINK=dynamic
  26020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26021. $as_echo "yes" >&6; }
  26022. elif test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
  26023. if test "$x_libraries" = "default_x_libraries"; then
  26024. XINERAMALIB=`$PKG_CONFIG --variable=libdir xinerama`
  26025. if test "x$XINERAMALIB" = x; then
  26026. XINERAMALIB="/usr/lib"
  26027. fi
  26028. else
  26029. XINERAMALIB="$x_libraries"
  26030. fi
  26031. if test -e "$XINERAMALIB/libXinerama.so" -a -e "$XINERAMALIB/libXinerama.a"; then
  26032. # we have both versions, let the user decide but use the dynamic one
  26033. # per default
  26034. USE_XINERAMA=YES
  26035. if test -z "$with_static_xinerama" -o -n "$with_system_libs"; then
  26036. XINERAMA_LINK=dynamic
  26037. else
  26038. XINERAMA_LINK=static
  26039. fi
  26040. elif test -e "$XINERAMALIB/libXinerama.so" -a ! -e "$XINERAMALIB/libXinerama.a"; then
  26041. # we have only the dynamic version
  26042. USE_XINERAMA=YES
  26043. XINERAMA_LINK=dynamic
  26044. elif test -e "$XINERAMALIB/libXinerama.a"; then
  26045. # static version
  26046. if echo $host_cpu | $GREP -E 'i[3456]86' 2>/dev/null >/dev/null; then
  26047. USE_XINERAMA=YES
  26048. XINERAMA_LINK=static
  26049. else
  26050. USE_XINERAMA=NO
  26051. XINERAMA_LINK=none
  26052. fi
  26053. else
  26054. # no Xinerama
  26055. USE_XINERAMA=NO
  26056. XINERAMA_LINK=none
  26057. fi
  26058. if test "$USE_XINERAMA" = "YES"; then
  26059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with $XINERAMA_LINK linking" >&5
  26060. $as_echo "yes, with $XINERAMA_LINK linking" >&6; }
  26061. ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
  26062. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  26063. else
  26064. as_fn_error $? "Xinerama header not found." "$LINENO" 5
  26065. fi
  26066. XEXTLIBS=`$PKG_CONFIG --variable=libs xext`
  26067. if test "x$XEXTLIB" = x; then
  26068. XEXTLIBS="-L$XLIB -L$XINERAMALIB -lXext"
  26069. fi
  26070. XINERAMA_EXTRA_LIBS="$XEXTLIBS"
  26071. if test "$_os" = "FreeBSD"; then
  26072. XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -lXt"
  26073. fi
  26074. if test "$_os" = "Linux"; then
  26075. XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -ldl"
  26076. fi
  26077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaIsActive in -lXinerama" >&5
  26078. $as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; }
  26079. if ${ac_cv_lib_Xinerama_XineramaIsActive+:} false; then :
  26080. $as_echo_n "(cached) " >&6
  26081. else
  26082. ac_check_lib_save_LIBS=$LIBS
  26083. LIBS="-lXinerama $XINERAMA_EXTRA_LIBS $LIBS"
  26084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26085. /* end confdefs.h. */
  26086. /* Override any GCC internal prototype to avoid an error.
  26087. Use char because int might match the return type of a GCC
  26088. builtin and then its argument prototype would still apply. */
  26089. #ifdef __cplusplus
  26090. extern "C"
  26091. #endif
  26092. char XineramaIsActive ();
  26093. int
  26094. main ()
  26095. {
  26096. return XineramaIsActive ();
  26097. ;
  26098. return 0;
  26099. }
  26100. _ACEOF
  26101. if ac_fn_c_try_link "$LINENO"; then :
  26102. ac_cv_lib_Xinerama_XineramaIsActive=yes
  26103. else
  26104. ac_cv_lib_Xinerama_XineramaIsActive=no
  26105. fi
  26106. rm -f core conftest.err conftest.$ac_objext \
  26107. conftest$ac_exeext conftest.$ac_ext
  26108. LIBS=$ac_check_lib_save_LIBS
  26109. fi
  26110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
  26111. $as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; }
  26112. if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = xyes; then :
  26113. :
  26114. else
  26115. as_fn_error $? "Xinerama not functional?" "$LINENO" 5
  26116. fi
  26117. else
  26118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, libXinerama not found or wrong architecture." >&5
  26119. $as_echo "no, libXinerama not found or wrong architecture." >&6; }
  26120. fi
  26121. else
  26122. USE_XINERAMA=NO
  26123. XINERAMA_LINK=none
  26124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26125. $as_echo "no" >&6; }
  26126. fi
  26127. ENABLE_LIBRSVG=""
  26128. LIBRSVG_CFLAGS=""
  26129. LIBRSVG_LIBS=""
  26130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what librsvg to use" >&5
  26131. $as_echo_n "checking what librsvg to use... " >&6; }
  26132. case "$enable_librsvg" in
  26133. no|disable)
  26134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  26135. $as_echo "none" >&6; }
  26136. enable_librsvg=no
  26137. ;;
  26138. ""|yes|auto)
  26139. if test $build_os = cygwin -o \
  26140. $_os = Darwin; then
  26141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  26142. $as_echo "internal" >&6; }
  26143. enable_librsvg=internal
  26144. elif test $_os = iOS -o $_os = Android; then
  26145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  26146. $as_echo "none" >&6; }
  26147. enable_librsvg=no
  26148. else
  26149. if test "$with_system_libs" = yes; then
  26150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  26151. $as_echo "system" >&6; }
  26152. pkg_failed=no
  26153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
  26154. $as_echo_n "checking for LIBRSVG... " >&6; }
  26155. if test -n "$LIBRSVG_CFLAGS"; then
  26156. pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
  26157. elif test -n "$PKG_CONFIG"; then
  26158. if test -n "$PKG_CONFIG" && \
  26159. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\""; } >&5
  26160. ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  26161. ac_status=$?
  26162. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26163. test $ac_status = 0; }; then
  26164. pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14" 2>/dev/null`
  26165. else
  26166. pkg_failed=yes
  26167. fi
  26168. else
  26169. pkg_failed=untried
  26170. fi
  26171. if test -n "$LIBRSVG_LIBS"; then
  26172. pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
  26173. elif test -n "$PKG_CONFIG"; then
  26174. if test -n "$PKG_CONFIG" && \
  26175. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\""; } >&5
  26176. ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  26177. ac_status=$?
  26178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26179. test $ac_status = 0; }; then
  26180. pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14" 2>/dev/null`
  26181. else
  26182. pkg_failed=yes
  26183. fi
  26184. else
  26185. pkg_failed=untried
  26186. fi
  26187. if test $pkg_failed = yes; then
  26188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26189. $as_echo "no" >&6; }
  26190. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26191. _pkg_short_errors_supported=yes
  26192. else
  26193. _pkg_short_errors_supported=no
  26194. fi
  26195. if test $_pkg_short_errors_supported = yes; then
  26196. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14" 2>&1`
  26197. else
  26198. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14" 2>&1`
  26199. fi
  26200. # Put the nasty error message in config.log where it belongs
  26201. echo "$LIBRSVG_PKG_ERRORS" >&5
  26202. as_fn_error $? "Package requirements (librsvg-2.0 >= 2.14) were not met:
  26203. $LIBRSVG_PKG_ERRORS
  26204. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  26205. installed software in a non-standard prefix.
  26206. Alternatively, you may set the environment variables LIBRSVG_CFLAGS
  26207. and LIBRSVG_LIBS to avoid the need to call pkg-config.
  26208. See the pkg-config man page for more details." "$LINENO" 5
  26209. elif test $pkg_failed = untried; then
  26210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26211. $as_echo "no" >&6; }
  26212. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26213. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26214. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  26215. is in your PATH or set the PKG_CONFIG environment variable to the full
  26216. path to pkg-config.
  26217. Alternatively, you may set the environment variables LIBRSVG_CFLAGS
  26218. and LIBRSVG_LIBS to avoid the need to call pkg-config.
  26219. See the pkg-config man page for more details.
  26220. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  26221. See \`config.log' for more details" "$LINENO" 5; }
  26222. else
  26223. LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
  26224. LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
  26225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26226. $as_echo "yes" >&6; }
  26227. fi
  26228. enable_librsvg=system
  26229. elif test "$with_system_libs" = no; then
  26230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  26231. $as_echo "internal" >&6; }
  26232. enable_librsvg=internal
  26233. else
  26234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking further" >&5
  26235. $as_echo "checking further" >&6; }
  26236. pkg_failed=no
  26237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
  26238. $as_echo_n "checking for LIBRSVG... " >&6; }
  26239. if test -n "$LIBRSVG_CFLAGS"; then
  26240. pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
  26241. elif test -n "$PKG_CONFIG"; then
  26242. if test -n "$PKG_CONFIG" && \
  26243. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\""; } >&5
  26244. ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  26245. ac_status=$?
  26246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26247. test $ac_status = 0; }; then
  26248. pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14" 2>/dev/null`
  26249. else
  26250. pkg_failed=yes
  26251. fi
  26252. else
  26253. pkg_failed=untried
  26254. fi
  26255. if test -n "$LIBRSVG_LIBS"; then
  26256. pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
  26257. elif test -n "$PKG_CONFIG"; then
  26258. if test -n "$PKG_CONFIG" && \
  26259. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\""; } >&5
  26260. ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  26261. ac_status=$?
  26262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26263. test $ac_status = 0; }; then
  26264. pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14" 2>/dev/null`
  26265. else
  26266. pkg_failed=yes
  26267. fi
  26268. else
  26269. pkg_failed=untried
  26270. fi
  26271. if test $pkg_failed = yes; then
  26272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26273. $as_echo "no" >&6; }
  26274. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26275. _pkg_short_errors_supported=yes
  26276. else
  26277. _pkg_short_errors_supported=no
  26278. fi
  26279. if test $_pkg_short_errors_supported = yes; then
  26280. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14" 2>&1`
  26281. else
  26282. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14" 2>&1`
  26283. fi
  26284. # Put the nasty error message in config.log where it belongs
  26285. echo "$LIBRSVG_PKG_ERRORS" >&5
  26286. :
  26287. elif test $pkg_failed = untried; then
  26288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26289. $as_echo "no" >&6; }
  26290. :
  26291. else
  26292. LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
  26293. LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
  26294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26295. $as_echo "yes" >&6; }
  26296. fi
  26297. if test -z "$LIBRSVG_PKG_ERRORS"; then
  26298. enable_librsvg=system
  26299. else
  26300. enable_librsvg=internal
  26301. fi
  26302. fi
  26303. fi
  26304. ;;
  26305. internal)
  26306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  26307. $as_echo "internal" >&6; }
  26308. ;;
  26309. fully-internal)
  26310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fully internal" >&5
  26311. $as_echo "fully internal" >&6; }
  26312. ;;
  26313. system)
  26314. if test $_os = WINNT -a "$WITH_MINGW" != yes; then
  26315. as_fn_error $? "Must use internal librsvg when building with MSVC" "$LINENO" 5
  26316. fi
  26317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  26318. $as_echo "system" >&6; }
  26319. pkg_failed=no
  26320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
  26321. $as_echo_n "checking for LIBRSVG... " >&6; }
  26322. if test -n "$LIBRSVG_CFLAGS"; then
  26323. pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
  26324. elif test -n "$PKG_CONFIG"; then
  26325. if test -n "$PKG_CONFIG" && \
  26326. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\""; } >&5
  26327. ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  26328. ac_status=$?
  26329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26330. test $ac_status = 0; }; then
  26331. pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14" 2>/dev/null`
  26332. else
  26333. pkg_failed=yes
  26334. fi
  26335. else
  26336. pkg_failed=untried
  26337. fi
  26338. if test -n "$LIBRSVG_LIBS"; then
  26339. pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
  26340. elif test -n "$PKG_CONFIG"; then
  26341. if test -n "$PKG_CONFIG" && \
  26342. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14\""; } >&5
  26343. ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14") 2>&5
  26344. ac_status=$?
  26345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26346. test $ac_status = 0; }; then
  26347. pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14" 2>/dev/null`
  26348. else
  26349. pkg_failed=yes
  26350. fi
  26351. else
  26352. pkg_failed=untried
  26353. fi
  26354. if test $pkg_failed = yes; then
  26355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26356. $as_echo "no" >&6; }
  26357. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26358. _pkg_short_errors_supported=yes
  26359. else
  26360. _pkg_short_errors_supported=no
  26361. fi
  26362. if test $_pkg_short_errors_supported = yes; then
  26363. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14" 2>&1`
  26364. else
  26365. LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14" 2>&1`
  26366. fi
  26367. # Put the nasty error message in config.log where it belongs
  26368. echo "$LIBRSVG_PKG_ERRORS" >&5
  26369. as_fn_error $? "Package requirements (librsvg-2.0 >= 2.14) were not met:
  26370. $LIBRSVG_PKG_ERRORS
  26371. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  26372. installed software in a non-standard prefix.
  26373. Alternatively, you may set the environment variables LIBRSVG_CFLAGS
  26374. and LIBRSVG_LIBS to avoid the need to call pkg-config.
  26375. See the pkg-config man page for more details." "$LINENO" 5
  26376. elif test $pkg_failed = untried; then
  26377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26378. $as_echo "no" >&6; }
  26379. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26380. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26381. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  26382. is in your PATH or set the PKG_CONFIG environment variable to the full
  26383. path to pkg-config.
  26384. Alternatively, you may set the environment variables LIBRSVG_CFLAGS
  26385. and LIBRSVG_LIBS to avoid the need to call pkg-config.
  26386. See the pkg-config man page for more details.
  26387. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  26388. See \`config.log' for more details" "$LINENO" 5; }
  26389. else
  26390. LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
  26391. LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
  26392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26393. $as_echo "yes" >&6; }
  26394. fi
  26395. ;;
  26396. *)
  26397. as_fn_error $? "Incorrect --enable-librsvg option" "$LINENO" 5
  26398. ;;
  26399. esac
  26400. case $enable_librsvg in
  26401. system)
  26402. ENABLE_LIBRSVG=SYSTEM
  26403. SYSTEM_LIBRSVG=YES
  26404. ;;
  26405. internal|fully-internal)
  26406. ENABLE_LIBRSVG=INTERNAL
  26407. SYSTEM_LIBRSVG=NO
  26408. BUILD_TYPE="$BUILD_TYPE LIBRSVG"
  26409. ;;
  26410. no)
  26411. ENABLE_LIBRSVG=NO
  26412. SYSTEM_LIBRSVG=NO
  26413. ;;
  26414. *)
  26415. as_fn_error $? "Internal configure script error, invalid enable_librsvg value \"$enable_librsvg\"" "$LINENO" 5
  26416. ;;
  26417. esac
  26418. SYSTEM_CAIRO=""
  26419. if test "$test_cairo" = "yes" ; then
  26420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system cairo" >&5
  26421. $as_echo_n "checking whether to use the system cairo... " >&6; }
  26422. if test "$with_system_cairo" = "yes"; then
  26423. SYSTEM_CAIRO=YES
  26424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26425. $as_echo "yes" >&6; }
  26426. pkg_failed=no
  26427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
  26428. $as_echo_n "checking for CAIRO... " >&6; }
  26429. if test -n "$CAIRO_CFLAGS"; then
  26430. pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
  26431. elif test -n "$PKG_CONFIG"; then
  26432. if test -n "$PKG_CONFIG" && \
  26433. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.0.2 \""; } >&5
  26434. ($PKG_CONFIG --exists --print-errors "cairo >= 1.0.2 ") 2>&5
  26435. ac_status=$?
  26436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26437. test $ac_status = 0; }; then
  26438. pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.0.2 " 2>/dev/null`
  26439. else
  26440. pkg_failed=yes
  26441. fi
  26442. else
  26443. pkg_failed=untried
  26444. fi
  26445. if test -n "$CAIRO_LIBS"; then
  26446. pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
  26447. elif test -n "$PKG_CONFIG"; then
  26448. if test -n "$PKG_CONFIG" && \
  26449. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.0.2 \""; } >&5
  26450. ($PKG_CONFIG --exists --print-errors "cairo >= 1.0.2 ") 2>&5
  26451. ac_status=$?
  26452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26453. test $ac_status = 0; }; then
  26454. pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.0.2 " 2>/dev/null`
  26455. else
  26456. pkg_failed=yes
  26457. fi
  26458. else
  26459. pkg_failed=untried
  26460. fi
  26461. if test $pkg_failed = yes; then
  26462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26463. $as_echo "no" >&6; }
  26464. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26465. _pkg_short_errors_supported=yes
  26466. else
  26467. _pkg_short_errors_supported=no
  26468. fi
  26469. if test $_pkg_short_errors_supported = yes; then
  26470. CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= 1.0.2 " 2>&1`
  26471. else
  26472. CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= 1.0.2 " 2>&1`
  26473. fi
  26474. # Put the nasty error message in config.log where it belongs
  26475. echo "$CAIRO_PKG_ERRORS" >&5
  26476. as_fn_error $? "Package requirements (cairo >= 1.0.2 ) were not met:
  26477. $CAIRO_PKG_ERRORS
  26478. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  26479. installed software in a non-standard prefix.
  26480. Alternatively, you may set the environment variables CAIRO_CFLAGS
  26481. and CAIRO_LIBS to avoid the need to call pkg-config.
  26482. See the pkg-config man page for more details." "$LINENO" 5
  26483. elif test $pkg_failed = untried; then
  26484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26485. $as_echo "no" >&6; }
  26486. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26488. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  26489. is in your PATH or set the PKG_CONFIG environment variable to the full
  26490. path to pkg-config.
  26491. Alternatively, you may set the environment variables CAIRO_CFLAGS
  26492. and CAIRO_LIBS to avoid the need to call pkg-config.
  26493. See the pkg-config man page for more details.
  26494. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  26495. See \`config.log' for more details" "$LINENO" 5; }
  26496. else
  26497. CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
  26498. CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
  26499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26500. $as_echo "yes" >&6; }
  26501. fi
  26502. if test "$test_xrender" = "yes"; then
  26503. if test "$with_system_xextensions_headers" != "no"; then
  26504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xrender.h defines PictStandardA8" >&5
  26505. $as_echo_n "checking whether Xrender.h defines PictStandardA8... " >&6; }
  26506. ac_ext=c
  26507. ac_cpp='$CPP $CPPFLAGS'
  26508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26512. /* end confdefs.h. */
  26513. #include <X11/extensions/Xrender.h>
  26514. int
  26515. main ()
  26516. {
  26517. #ifdef PictStandardA8
  26518. #else
  26519. return fail;
  26520. #endif
  26521. ;
  26522. return 0;
  26523. }
  26524. _ACEOF
  26525. if ac_fn_c_try_compile "$LINENO"; then :
  26526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26527. $as_echo "yes" >&6; }
  26528. else
  26529. as_fn_error $? "no, X headers too old." "$LINENO" 5
  26530. fi
  26531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26532. ac_ext=c
  26533. ac_cpp='$CPP $CPPFLAGS'
  26534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26537. fi
  26538. fi
  26539. libo_MINGW_CHECK_DLL(CAIRO, libcairo)
  26540. libo_MINGW_TRY_DLL(FONTCONFIG, libfontconfig)
  26541. libo_MINGW_TRY_DLL(FREETYPE, libfreetype)
  26542. libo_MINGW_TRY_DLL(PIXMAN, libpixman)
  26543. libo_MINGW_TRY_DLL(PNG15, libpng15)
  26544. else
  26545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26546. $as_echo "no" >&6; }
  26547. if test $_os = WINNT; then
  26548. if test "$ENABLE_LIBRSVG" != NO -o -z "$ENABLE_DIRECTX"; then
  26549. BUILD_TYPE="$BUILD_TYPE CAIRO"
  26550. fi
  26551. else
  26552. if test "$enable_cairo_canvas" = "yes"; then
  26553. BUILD_TYPE="$BUILD_TYPE CAIRO"
  26554. else
  26555. if test "$with_system_cairo" != "yes"; then
  26556. if test "$ENABLE_LIBRSVG" != NO; then
  26557. BUILD_TYPE="$BUILD_TYPE CAIRO"
  26558. fi
  26559. fi
  26560. fi
  26561. fi
  26562. fi
  26563. fi
  26564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system gdk-pixbuf" >&5
  26565. $as_echo_n "checking whether to use the system gdk-pixbuf... " >&6; }
  26566. if test "$SYSTEM_LIBRSVG" = YES; then
  26567. SYSTEM_GDKPIXBUF=YES
  26568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26569. $as_echo "yes" >&6; }
  26570. elif test "$enable_librsvg" = fully-internal; then
  26571. SYSTEM_GDKPIXBUF=NO
  26572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26573. $as_echo "no" >&6; }
  26574. else
  26575. case "$_os" in
  26576. WINNT|Darwin|iOS|Android)
  26577. SYSTEM_GDKPIXBUF=NO
  26578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26579. $as_echo "no" >&6; }
  26580. ;;
  26581. *)
  26582. SYSTEM_GDKPIXBUF=YES
  26583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26584. $as_echo "yes" >&6; }
  26585. ;;
  26586. esac
  26587. fi
  26588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system GLib" >&5
  26589. $as_echo_n "checking whether to use the system GLib... " >&6; }
  26590. if test "$SYSTEM_LIBRSVG" = YES; then
  26591. SYSTEM_GLIB=YES
  26592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26593. $as_echo "yes" >&6; }
  26594. elif test "$enable_librsvg" = fully-internal; then
  26595. SYSTEM_GLIB=NO
  26596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26597. $as_echo "no" >&6; }
  26598. else
  26599. case "$_os" in
  26600. WINNT|Darwin|iOS|Android)
  26601. SYSTEM_GLIB=NO
  26602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26603. $as_echo "no" >&6; }
  26604. ;;
  26605. *)
  26606. SYSTEM_GLIB=YES
  26607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26608. $as_echo "yes" >&6; }
  26609. ;;
  26610. esac
  26611. fi
  26612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system gettext runtime" >&5
  26613. $as_echo_n "checking whether to use the system gettext runtime... " >&6; }
  26614. if test -z "$with_system_gettext"; then
  26615. case "$_os" in
  26616. WINNT|Darwin|iOS|Android)
  26617. with_system_gettext=no
  26618. ;;
  26619. *)
  26620. with_system_gettext=yes
  26621. ;;
  26622. esac
  26623. fi
  26624. if test "$with_system_gettext" = yes; then
  26625. SYSTEM_GETTEXT=YES
  26626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26627. $as_echo "yes" >&6; }
  26628. elif test "$with_system_gettext" = no; then
  26629. SYSTEM_GETTEXT=NO
  26630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26631. $as_echo "no" >&6; }
  26632. else
  26633. as_fn_error $? "bad --with-system-gettext=$with_system_gettext" "$LINENO" 5
  26634. fi
  26635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system libcroco" >&5
  26636. $as_echo_n "checking whether to use the system libcroco... " >&6; }
  26637. if test "$SYSTEM_LIBRSVG" = YES; then
  26638. SYSTEM_LIBCROCO=YES
  26639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26640. $as_echo "yes" >&6; }
  26641. elif test "$enable_librsvg" = fully-internal; then
  26642. SYSTEM_LIBCROCO=NO
  26643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26644. $as_echo "no" >&6; }
  26645. else
  26646. case "$_os" in
  26647. WINNT|Darwin|iOS|Android)
  26648. SYSTEM_LIBCROCO=NO
  26649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26650. $as_echo "no" >&6; }
  26651. ;;
  26652. *)
  26653. SYSTEM_LIBCROCO=YES
  26654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26655. $as_echo "yes" >&6; }
  26656. ;;
  26657. esac
  26658. fi
  26659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system pango" >&5
  26660. $as_echo_n "checking whether to use the system pango... " >&6; }
  26661. if test "$SYSTEM_LIBRSVG" = YES; then
  26662. SYSTEM_PANGO=YES
  26663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26664. $as_echo "yes" >&6; }
  26665. elif test "$enable_librsvg" = fully-internal; then
  26666. SYSTEM_PANGO=NO
  26667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26668. $as_echo "no" >&6; }
  26669. else
  26670. case "$_os" in
  26671. WINNT|Darwin|iOS|Android)
  26672. SYSTEM_PANGO=NO
  26673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26674. $as_echo "no" >&6; }
  26675. ;;
  26676. *)
  26677. SYSTEM_PANGO=YES
  26678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26679. $as_echo "yes" >&6; }
  26680. ;;
  26681. esac
  26682. fi
  26683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system libgsf" >&5
  26684. $as_echo_n "checking whether to use the system libgsf... " >&6; }
  26685. if test "$SYSTEM_LIBRSVG" = YES; then
  26686. SYSTEM_LIBGSF=YES
  26687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26688. $as_echo "yes" >&6; }
  26689. elif test "$enable_librsvg" = fully-internal; then
  26690. SYSTEM_LIBGSF=NO
  26691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26692. $as_echo "no" >&6; }
  26693. else
  26694. case "$_os" in
  26695. WINNT|Darwin|iOS|Android)
  26696. SYSTEM_LIBGSF=NO
  26697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26698. $as_echo "no" >&6; }
  26699. ;;
  26700. *)
  26701. SYSTEM_LIBGSF=YES
  26702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26703. $as_echo "yes" >&6; }
  26704. ;;
  26705. esac
  26706. fi
  26707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the system libpng" >&5
  26708. $as_echo_n "checking whether to use the system libpng... " >&6; }
  26709. if test "$with_system_libpng" = "auto"; then
  26710. case "$_os" in
  26711. WINNT|Darwin|iOS|Android)
  26712. with_system_libpng="$with_system_libs"
  26713. ;;
  26714. *)
  26715. with_system_libpng=yes
  26716. ;;
  26717. esac
  26718. fi
  26719. if test "$with_system_libpng" = yes; then
  26720. SYSTEM_LIBPNG=YES
  26721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26722. $as_echo "yes" >&6; }
  26723. else
  26724. SYSTEM_LIBPNG=NO
  26725. BUILD_TYPE="$BUILD_TYPE LIBPNG"
  26726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26727. $as_echo "no" >&6; }
  26728. fi
  26729. if test "$SOLAR_JAVA" != ""; then
  26730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use specific JVM search path at runtime" >&5
  26731. $as_echo_n "checking whether to use specific JVM search path at runtime... " >&6; }
  26732. if test -n "$with_jvm_path" -a "$with_jvm_path" != "no"; then
  26733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26734. $as_echo "yes" >&6; }
  26735. if ! test -d "$with_jvm_path"; then
  26736. as_fn_error $? "\"$with_jvm_path\" not a directory" "$LINENO" 5
  26737. fi
  26738. if ! test -d "$with_jvm_path"jvm; then
  26739. as_fn_error $? "\"$with_jvm_path\"jvm not found, point with_jvm_path to \/path/to/\jvm" "$LINENO" 5
  26740. fi
  26741. JVM_ONE_PATH_CHECK="$with_jvm_path"
  26742. else
  26743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26744. $as_echo "no" >&6; }
  26745. fi
  26746. fi
  26747. if test "$SOLAR_JAVA" != ""; then
  26748. ANT_HOME=; export ANT_HOME
  26749. WITH_ANT_HOME=; export WITH_ANT_HOME
  26750. if test -z "$with_ant_home"; then
  26751. for ac_prog in jakarta-ant ant ant.sh ant.bat ant.cmd
  26752. do
  26753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  26754. set dummy $ac_prog; ac_word=$2
  26755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26756. $as_echo_n "checking for $ac_word... " >&6; }
  26757. if ${ac_cv_path_ANT+:} false; then :
  26758. $as_echo_n "(cached) " >&6
  26759. else
  26760. case $ANT in
  26761. [\\/]* | ?:[\\/]*)
  26762. ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  26763. ;;
  26764. *)
  26765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26766. for as_dir in $PATH
  26767. do
  26768. IFS=$as_save_IFS
  26769. test -z "$as_dir" && as_dir=.
  26770. for ac_exec_ext in '' $ac_executable_extensions; do
  26771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26772. ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  26773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26774. break 2
  26775. fi
  26776. done
  26777. done
  26778. IFS=$as_save_IFS
  26779. ;;
  26780. esac
  26781. fi
  26782. ANT=$ac_cv_path_ANT
  26783. if test -n "$ANT"; then
  26784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
  26785. $as_echo "$ANT" >&6; }
  26786. else
  26787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26788. $as_echo "no" >&6; }
  26789. fi
  26790. test -n "$ANT" && break
  26791. done
  26792. else
  26793. if test "$_os" = "WINNT"; then
  26794. with_ant_home=`cygpath -u "$with_ant_home"`
  26795. fi
  26796. for ac_prog in jakarta-ant ant ant.sh ant.bat ant.cmd
  26797. do
  26798. # Extract the first word of "$ac_prog", so it can be a program name with args.
  26799. set dummy $ac_prog; ac_word=$2
  26800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26801. $as_echo_n "checking for $ac_word... " >&6; }
  26802. if ${ac_cv_path_ANT+:} false; then :
  26803. $as_echo_n "(cached) " >&6
  26804. else
  26805. case $ANT in
  26806. [\\/]* | ?:[\\/]*)
  26807. ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  26808. ;;
  26809. *)
  26810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26811. as_dummy="$with_ant_home/bin:$PATH"
  26812. for as_dir in $as_dummy
  26813. do
  26814. IFS=$as_save_IFS
  26815. test -z "$as_dir" && as_dir=.
  26816. for ac_exec_ext in '' $ac_executable_extensions; do
  26817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26818. ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  26819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26820. break 2
  26821. fi
  26822. done
  26823. done
  26824. IFS=$as_save_IFS
  26825. ;;
  26826. esac
  26827. fi
  26828. ANT=$ac_cv_path_ANT
  26829. if test -n "$ANT"; then
  26830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
  26831. $as_echo "$ANT" >&6; }
  26832. else
  26833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26834. $as_echo "no" >&6; }
  26835. fi
  26836. test -n "$ANT" && break
  26837. done
  26838. WITH_ANT_HOME=$with_ant_home
  26839. ANT_HOME=$with_ant_home
  26840. fi
  26841. if test -z "$ANT"; then
  26842. as_fn_error $? "Ant not found - Make sure it's in the path or use --with-ant-home" "$LINENO" 5
  26843. else
  26844. # resolve relative or absolute symlink
  26845. while test -h "$ANT"; do
  26846. a_cwd=`pwd`
  26847. a_basename=`basename "$ANT"`
  26848. a_script=`ls -l "$ANT" | $SED "s/.*${a_basename} -> //g"`
  26849. cd "`dirname "$ANT"`"
  26850. cd "`dirname "$a_script"`"
  26851. ANT="`pwd`"/"`basename "$a_script"`"
  26852. cd "$a_cwd"
  26853. done
  26854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $ANT works" >&5
  26855. $as_echo_n "checking if $ANT works... " >&6; }
  26856. cat > conftest.java << EOF
  26857. public class conftest {
  26858. int testmethod(int a, int b) {
  26859. return a + b;
  26860. }
  26861. }
  26862. EOF
  26863. cat > conftest.xml << EOF
  26864. <project name="conftest" default="conftest">
  26865. <target name="conftest">
  26866. <javac srcdir="." includes="conftest.java">
  26867. </javac>
  26868. </target>
  26869. </project>
  26870. EOF
  26871. oldJAVA_HOME=$JAVA_HOME
  26872. if test "$JAVACISGCJ" = "yes"; then
  26873. JAVA_HOME=; export JAVA_HOME
  26874. ant_gcj="-Dbuild.compiler=gcj"
  26875. fi
  26876. { ac_try='"$ANT" $ant_gcj -buildfile conftest.xml 1>&2'
  26877. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  26878. (eval $ac_try) 2>&5
  26879. ac_status=$?
  26880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26881. test $ac_status = 0; }; }
  26882. if test $? = 0 -a -f ./conftest.class; then
  26883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ant works" >&5
  26884. $as_echo "Ant works" >&6; }
  26885. if test -z "$WITH_ANT_HOME"; then
  26886. ANT_HOME=`"$ANT" -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
  26887. if test -z "$ANT_HOME"; then
  26888. ANT_HOME=`echo "$ANT" | $SED -n "s/\/bin\/ant.*\$//p"`
  26889. fi
  26890. else
  26891. ANT_HOME="$WITH_ANT_HOME"
  26892. fi
  26893. else
  26894. echo "configure: Ant test failed" >&5
  26895. cat conftest.java >&5
  26896. cat conftest.xml >&5
  26897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ant does not work - Some Java projects will not build!" >&5
  26898. $as_echo "$as_me: WARNING: Ant does not work - Some Java projects will not build!" >&2;}
  26899. ANT_HOME=""
  26900. echo "Ant does not work - Some Java projects will not build!" >>warn
  26901. fi
  26902. JAVA_HOME=$oldJAVA_HOME
  26903. rm -f conftest* core core.* *.core
  26904. fi
  26905. if test -z "$ANT_HOME"; then
  26906. ANT_HOME="NO_ANT_HOME"
  26907. else
  26908. PathFormat "$ANT_HOME"
  26909. ANT_HOME="$formatted_path"
  26910. PathFormat "$ANT"
  26911. ANT="$ANT"
  26912. fi
  26913. if test "$ANT_HOME" != "NO_ANT_HOME"; then
  26914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ant lib directory" >&5
  26915. $as_echo_n "checking Ant lib directory... " >&6; }
  26916. if test -f $ANT_HOME/lib/ant.jar; then
  26917. ANT_LIB="$ANT_HOME/lib"
  26918. else
  26919. if test -f $ANT_HOME/ant.jar; then
  26920. ANT_LIB="$ANT_HOME"
  26921. else
  26922. if test -f /usr/share/java/ant.jar; then
  26923. ANT_LIB=/usr/share/java
  26924. else
  26925. if test -f /usr/share/ant-core/lib/ant.jar; then
  26926. ANT_LIB=/usr/share/ant-core/lib
  26927. else
  26928. if test -f $ANT_HOME/lib/ant/ant.jar; then
  26929. ANT_LIB="$ANT_HOME/lib/ant"
  26930. else
  26931. if test -f /usr/share/lib/ant/ant.jar; then
  26932. ANT_LIB=/usr/share/lib/ant
  26933. else
  26934. as_fn_error $? "Ant libraries not found!" "$LINENO" 5
  26935. fi
  26936. fi
  26937. fi
  26938. fi
  26939. fi
  26940. fi
  26941. PathFormat "$ANT_LIB"
  26942. ANT_LIB="$formatted_path"
  26943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ant lib directory found." >&5
  26944. $as_echo "Ant lib directory found." >&6; }
  26945. fi
  26946. ant_minver=1.6.0
  26947. ant_minminor1=`echo $ant_minver | cut -d"." -f2`
  26948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ant is >= $ant_minver" >&5
  26949. $as_echo_n "checking whether Ant is >= $ant_minver... " >&6; }
  26950. ant_version=`"$ANT" -version | $AWK '{ print $4; }'`
  26951. ant_version_major=`echo $ant_version | cut -d. -f1`
  26952. ant_version_minor=`echo $ant_version | cut -d. -f2`
  26953. echo "configure: ant_version $ant_version " >&5
  26954. echo "configure: ant_version_major $ant_version_major " >&5
  26955. echo "configure: ant_version_minor $ant_version_minor " >&5
  26956. if test "$ant_version_major" -ge "2"; then
  26957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $ant_version" >&5
  26958. $as_echo "yes, $ant_version" >&6; }
  26959. elif test "$ant_version_major" = "1" -a "$ant_version_minor" -ge "$ant_minminor1"; then
  26960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $ant_version" >&5
  26961. $as_echo "yes, $ant_version" >&6; }
  26962. else
  26963. as_fn_error $? "no, you need at least Ant >= $ant_minver" "$LINENO" 5
  26964. fi
  26965. if test "$ENABLE_MEDIAWIKI" = "YES"; then
  26966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Ant supports mapper type=\"regexp\"" >&5
  26967. $as_echo_n "checking whether Ant supports mapper type=\"regexp\"... " >&6; }
  26968. rm -rf confdir
  26969. mkdir confdir
  26970. cat > conftest.java << EOF
  26971. public class conftest {
  26972. int testmethod(int a, int b) {
  26973. return a + b;
  26974. }
  26975. }
  26976. EOF
  26977. cat > conftest.xml << EOF
  26978. <project name="conftest" default="conftest">
  26979. <target name="conftest" depends="copytest">
  26980. <javac srcdir="." includes="conftest.java">
  26981. </javac>
  26982. </target>
  26983. <target name="copytest">
  26984. <copy todir="confdir">
  26985. <fileset dir="confdir" includes="**/*.abc" casesensitive="yes"/>
  26986. <filterset/>
  26987. <mapper type="regexp" from="^(.*/\\)foo(/\\.*)" to="\1baa\2"/>
  26988. </copy>
  26989. </target>
  26990. </project>
  26991. EOF
  26992. if test "$JAVACISGCJ" = "yes"; then
  26993. JAVA_HOME=; export JAVA_HOME
  26994. ant_gcj="-Dbuild.compiler=gcj"
  26995. fi
  26996. { ac_try='"$ANT" $ant_gcj -buildfile conftest.xml 1>&2'
  26997. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  26998. (eval $ac_try) 2>&5
  26999. ac_status=$?
  27000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27001. test $ac_status = 0; }; }
  27002. if test $? = 0 -a -f ./conftest.class; then
  27003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27004. $as_echo "yes" >&6; }
  27005. rm -rf confdir
  27006. else
  27007. echo "configure: Ant test failed" >&5
  27008. cat conftest.java >&5
  27009. cat conftest.xml >&5
  27010. rm -rf confdir
  27011. as_fn_error $? "no. Did you install ant-apache-regexp?" "$LINENO" 5
  27012. fi
  27013. fi
  27014. rm -f conftest* core core.* *.core
  27015. fi
  27016. OOO_JUNIT_JAR=
  27017. if test "$SOLAR_JAVA" != "" -a "$with_junit" != "no"; then
  27018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JUnit 4" >&5
  27019. $as_echo_n "checking for JUnit 4... " >&6; }
  27020. if test "$with_junit" = "yes"; then
  27021. if test -e /usr/share/java/junit4.jar; then
  27022. OOO_JUNIT_JAR=/usr/share/java/junit4.jar
  27023. else
  27024. if test -e /usr/share/lib/java/junit.jar; then
  27025. OOO_JUNIT_JAR=/usr/share/lib/java/junit.jar
  27026. else
  27027. OOO_JUNIT_JAR=/usr/share/java/junit.jar
  27028. fi
  27029. fi
  27030. else
  27031. OOO_JUNIT_JAR=$with_junit
  27032. fi
  27033. if test "$_os" = "WINNT"; then
  27034. OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"`
  27035. fi
  27036. "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \
  27037. grep org/junit/Before.class > /dev/null 2>&5
  27038. if test $? -eq 0; then
  27039. # check if either class-path entry is available for hamcrest or
  27040. # it's bundled
  27041. if "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" |$GREP -q hamcrest || \
  27042. "$UNZIP" -c "$OOO_JUNIT_JAR" META-INF/MANIFEST.MF |$GREP 'Class-Path:' | $GREP -q 'hamcrest'; then
  27043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OOO_JUNIT_JAR" >&5
  27044. $as_echo "$OOO_JUNIT_JAR" >&6; }
  27045. else
  27046. as_fn_error $? "your junit jar neither sets a classpath nor includes hamcrest; please
  27047. provide a full junit jar or use --without-junit" "$LINENO" 5
  27048. fi
  27049. else
  27050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27051. $as_echo "no" >&6; }
  27052. as_fn_error $? "cannot find JUnit 4 jar; please install one in the default
  27053. location (/usr/share/java), specify its pathname via
  27054. --with-junit=..., or disable it via --without-junit" "$LINENO" 5
  27055. fi
  27056. if test $OOO_JUNIT_JAR != ""; then
  27057. BUILD_TYPE="$BUILD_TYPE QADEVOOO"
  27058. fi
  27059. fi
  27060. if test "$enable_odk" = no; then
  27061. unset DOXYGEN
  27062. else
  27063. if test "$with_doxygen" = no; then
  27064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen" >&5
  27065. $as_echo_n "checking for doxygen... " >&6; }
  27066. unset DOXYGEN
  27067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27068. $as_echo "no" >&6; }
  27069. else
  27070. if test "$with_doxygen" = yes; then
  27071. # Extract the first word of "doxygen", so it can be a program name with args.
  27072. set dummy doxygen; ac_word=$2
  27073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27074. $as_echo_n "checking for $ac_word... " >&6; }
  27075. if ${ac_cv_path_DOXYGEN+:} false; then :
  27076. $as_echo_n "(cached) " >&6
  27077. else
  27078. case $DOXYGEN in
  27079. [\\/]* | ?:[\\/]*)
  27080. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  27081. ;;
  27082. *)
  27083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27084. for as_dir in $PATH
  27085. do
  27086. IFS=$as_save_IFS
  27087. test -z "$as_dir" && as_dir=.
  27088. for ac_exec_ext in '' $ac_executable_extensions; do
  27089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27090. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  27091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27092. break 2
  27093. fi
  27094. done
  27095. done
  27096. IFS=$as_save_IFS
  27097. ;;
  27098. esac
  27099. fi
  27100. DOXYGEN=$ac_cv_path_DOXYGEN
  27101. if test -n "$DOXYGEN"; then
  27102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  27103. $as_echo "$DOXYGEN" >&6; }
  27104. else
  27105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27106. $as_echo "no" >&6; }
  27107. fi
  27108. if test -z "$DOXYGEN"; then
  27109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27110. $as_echo "no" >&6; }
  27111. as_fn_error $? "doxygen not found in \$PATH; specify its pathname via --with-doxygen=..., or disable its use via --without-doxygen" "$LINENO" 5
  27112. fi
  27113. else
  27114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doxygen" >&5
  27115. $as_echo_n "checking for doxygen... " >&6; }
  27116. DOXYGEN=$with_doxygen
  27117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  27118. $as_echo "$DOXYGEN" >&6; }
  27119. fi
  27120. fi
  27121. fi
  27122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for product version" >&5
  27123. $as_echo_n "checking for product version... " >&6; }
  27124. PRODUCTVERSION=3.6
  27125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRODUCTVERSION" >&5
  27126. $as_echo "$PRODUCTVERSION" >&6; }
  27127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which languages to be built" >&5
  27128. $as_echo_n "checking which languages to be built... " >&6; }
  27129. # get list of all languages
  27130. # generate shell variable from completelangiso= from solenv/inc/langlist.mk
  27131. # the sed command does the following:
  27132. # + if a line ends with a backslash, append the next line to it
  27133. # + adds " on the beginning of the value (after =)
  27134. # + adds " at the end of the value
  27135. # + removes en-US; we want to put it on the beginning
  27136. # + prints just the section starting with 'completelangiso=' and ending with the " at the end of line
  27137. eval $(sed -e :a -e '/\\$/N; s/\\\n//; ta' -n -e 's/=/="/;s/\([^\\]\)$/\1"/;s/en-US//;/^completelangiso/p' solenv/inc/langlist.mk)
  27138. ALL_LANGS="en-US $completelangiso"
  27139. # check the configured localizations
  27140. WITH_LANG="$with_lang"
  27141. if test -z "$WITH_LANG" -o "$WITH_LANG" = "en-US"; then
  27142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: en-US" >&5
  27143. $as_echo "en-US" >&6; }
  27144. else
  27145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LANG" >&5
  27146. $as_echo "$WITH_LANG" >&6; }
  27147. GIT_REPO_NAMES="$GIT_REPO_NAMES translations"
  27148. fi
  27149. # check that the list is valid
  27150. for lang in $WITH_LANG; do
  27151. test "$lang" = "ALL" && continue;
  27152. # need to check for the exact string, so add space before and after the list of all languages
  27153. for vl in $ALL_LANGS; do
  27154. if test "$vl" = "$lang"; then
  27155. break;
  27156. fi
  27157. done
  27158. if test "$vl" != "$lang"; then
  27159. as_fn_error $? "invalid language: $lang; supported languages are: $ALL_LANGS" "$LINENO" 5
  27160. fi
  27161. done
  27162. # list with substituted ALL
  27163. WITH_LANG_LIST=`echo $WITH_LANG | sed "s/ALL/$ALL_LANGS/"`
  27164. # this variable is used only by bin/distro-install-* helper scripts
  27165. # they need a real list of languages
  27166. test -z "$WITH_LANG_LIST" && WITH_LANG_LIST="en-US"
  27167. test -z "$WITH_LANG" -o "$WITH_LANG" = "en-US" || BUILD_TYPE="$BUILD_TYPE TRANSLATIONS"
  27168. PathFormat "$SRC_ROOT/translations"
  27169. L10N_MODULE="$formatted_path"
  27170. WITH_POOR_HELP_LOCALIZATIONS=
  27171. if test -d "./translations"; then
  27172. for l in `ls -1 translations/source`; do
  27173. if test ! -d translations/source/$l/helpcontent2; then
  27174. WITH_POOR_HELP_LOCALIZATIONS="$WITH_POOR_HELP_LOCALIZATIONS $l"
  27175. fi
  27176. done
  27177. fi
  27178. if test -n "${GIT_LINK_SRC}"; then
  27179. for repo in ${GIT_REPO_NAMES}; do
  27180. if ! test -d "${GIT_LINK_SRC}"/${repo}; then
  27181. as_fn_error $? "linked git: required repository does not exist: ${GIT_LINK_SRC}/${repo}" "$LINENO" 5
  27182. fi
  27183. done
  27184. fi
  27185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom 'intro' progress bar color" >&5
  27186. $as_echo_n "checking for custom 'intro' progress bar color... " >&6; }
  27187. PROGRESSBARCOLOR=
  27188. if test -z "$with_intro_progressbar_color"; then
  27189. PROGRESSBARCOLOR="255,255,255"
  27190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27191. $as_echo "none" >&6; }
  27192. else
  27193. PROGRESSBARCOLOR="$with_intro_progressbar_color"
  27194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROGRESSBARCOLOR" >&5
  27195. $as_echo "$PROGRESSBARCOLOR" >&6; }
  27196. fi
  27197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom 'intro' progress bar size" >&5
  27198. $as_echo_n "checking for custom 'intro' progress bar size... " >&6; }
  27199. PROGRESSSIZE=
  27200. if test -z "$with_intro_progressbar_size"; then
  27201. PROGRESSSIZE="407,6"
  27202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27203. $as_echo "none" >&6; }
  27204. else
  27205. PROGRESSSIZE="$with_intro_progressbar_size"
  27206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROGRESSSIZE" >&5
  27207. $as_echo "$PROGRESSSIZE" >&6; }
  27208. fi
  27209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom 'intro' progress bar position" >&5
  27210. $as_echo_n "checking for custom 'intro' progress bar position... " >&6; }
  27211. PROGRESSPOSITION=
  27212. if test -z "$with_intro_progressbar_position"; then
  27213. PROGRESSPOSITION="61,317"
  27214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27215. $as_echo "none" >&6; }
  27216. else
  27217. PROGRESSPOSITION="$with_intro_progressbar_position"
  27218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROGRESSPOSITION" >&5
  27219. $as_echo "$PROGRESSPOSITION" >&6; }
  27220. fi
  27221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom 'intro' progress bar frame color" >&5
  27222. $as_echo_n "checking for custom 'intro' progress bar frame color... " >&6; }
  27223. PROGRESSFRAMECOLOR=
  27224. if test -z "$with_intro_progressbar_frame_color"; then
  27225. PROGRESSFRAMECOLOR="20,136,3"
  27226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27227. $as_echo "none" >&6; }
  27228. else
  27229. PROGRESSFRAMECOLOR="$with_intro_progressbar_frame_color"
  27230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROGRESSFRAMECOLOR" >&5
  27231. $as_echo "$PROGRESSFRAMECOLOR" >&6; }
  27232. fi
  27233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alternative branding images directory" >&5
  27234. $as_echo_n "checking for alternative branding images directory... " >&6; }
  27235. INTRO_BITMAP=
  27236. ABOUT_BACKGROUND_SVG=
  27237. FLAT_LOGO_SVG=
  27238. STARTCENTER_LEFT_BITMAP=
  27239. STARTCENTER_RIGHT_BITMAP=
  27240. STARTCENTER_RTL_LEFT_BITMAP=
  27241. STARTCENTER_RTL_RIGHT_BITMAP=
  27242. STARTCENTER_SPACE_BITMAP=
  27243. if test -z "$with_branding" -o "$with_branding" = "no"; then
  27244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27245. $as_echo "none" >&6; }
  27246. else
  27247. INTRO_BITMAP="$with_branding/intro.png"
  27248. FLAT_LOGO_SVG="$with_branding/flat_logo.svg"
  27249. STARTCENTER_LEFT_BITMAP="$with_branding/backing_left.png"
  27250. STARTCENTER_RIGHT_BITMAP="$with_branding/backing_right.png"
  27251. STARTCENTER_RTL_LEFT_BITMAP="$with_branding/backing_rtl_left.png"
  27252. STARTCENTER_RTL_RIGHT_BITMAP="$with_branding/backing_rtl_right.png"
  27253. STARTCENTER_SPACE_BITMAP="$with_branding/backing_space.png"
  27254. for i in $INTRO_BITMAP \
  27255. $FLAT_LOGO_SVG \
  27256. $STARTCENTER_LEFT_BITMAP \
  27257. $STARTCENTER_RIGHT_BITMAP \
  27258. $STARTCENTER_RTL_LEFT_BITMAP \
  27259. $STARTCENTER_RTL_RIGHT_BITMAP \
  27260. $STARTCENTER_SPACE_BITMAP; do
  27261. if test ! -f $i; then
  27262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required file $i does not exist!" >&5
  27263. $as_echo "$as_me: WARNING: Required file $i does not exist!" >&2;}
  27264. fi
  27265. done
  27266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_branding" >&5
  27267. $as_echo "$with_branding" >&6; }
  27268. fi
  27269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'intro' bitmap" >&5
  27270. $as_echo_n "checking for yet another 'intro' bitmap... " >&6; }
  27271. if test -z "$with_intro_bitmap" -o "$with_intro_bitmap" = "no"; then
  27272. if test "$with_intro_bitmap" = "no"; then
  27273. INTRO_BITMAP=
  27274. fi
  27275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27276. $as_echo "none" >&6; }
  27277. else
  27278. case "$with_intro_bitmap" in
  27279. *.png) INTRO_BITMAP="$with_intro_bitmap" ;;
  27280. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intro bitmap should be a .png file!" >&5
  27281. $as_echo "$as_me: WARNING: Intro bitmap should be a .png file!" >&2;} ;;
  27282. esac
  27283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTRO_BITMAP" >&5
  27284. $as_echo "$INTRO_BITMAP" >&6; }
  27285. fi
  27286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'about' svg" >&5
  27287. $as_echo_n "checking for yet another 'about' svg... " >&6; }
  27288. if test -z "$with_about_background_svg" -o "$with_about_background_svg" = "no" ; then
  27289. if test "$with_about_background_svg" = "no" ; then
  27290. ABOUT_BACKGROUND_SVG=
  27291. fi
  27292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27293. $as_echo "none" >&6; }
  27294. else
  27295. case "$with_about_background_svg" in
  27296. *.svg) ABOUT_BACKGROUND_SVG="$with_about_background_svg" ;;
  27297. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: About background SVG should be a .svg file!" >&5
  27298. $as_echo "$as_me: WARNING: About background SVG should be a .svg file!" >&2;} ;;
  27299. esac
  27300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABOUT_BACKGROUND_SVG" >&5
  27301. $as_echo "$ABOUT_BACKGROUND_SVG" >&6; }
  27302. fi
  27303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'flat_logo' svg" >&5
  27304. $as_echo_n "checking for yet another 'flat_logo' svg... " >&6; }
  27305. if test -z "$with_flat_logo_svg" -o "$with_flat_logo_svg" = "no" ; then
  27306. if test "$with_flat_logo_svg" = "no" ; then
  27307. FLAT_LOGO_SVG=
  27308. fi
  27309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27310. $as_echo "none" >&6; }
  27311. else
  27312. case "$with_flat_logo_svg" in
  27313. *.svg) FLAT_LOGO_SVG="$with_flat_logo_svg" ;;
  27314. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Flat logo SVG should be a .svg file!" >&5
  27315. $as_echo "$as_me: WARNING: Flat logo SVG should be a .svg file!" >&2;} ;;
  27316. esac
  27317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABOUT_BITMAP" >&5
  27318. $as_echo "$ABOUT_BITMAP" >&6; }
  27319. fi
  27320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'start center left' bitmap" >&5
  27321. $as_echo_n "checking for yet another 'start center left' bitmap... " >&6; }
  27322. if test -z "$with_startcenter_left_bitmap" -o "$with_startcenter_left_bitmap" = "no"; then
  27323. if test "$with_startcenter_left_bitmap" = "no"; then
  27324. STARTCENTER_LEFT_BITMAP=
  27325. fi
  27326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27327. $as_echo "none" >&6; }
  27328. else
  27329. case "$with_startcenter_left_bitmap" in
  27330. *.png) STARTCENTER_LEFT_BITMAP="$with_startcenter_left_bitmap" ;;
  27331. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Startcenter left bitmap should be a .png file!" >&5
  27332. $as_echo "$as_me: WARNING: Startcenter left bitmap should be a .png file!" >&2;} ;;
  27333. esac
  27334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STARTCENTER_LEFT_BITMAP" >&5
  27335. $as_echo "$STARTCENTER_LEFT_BITMAP" >&6; }
  27336. fi
  27337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'start center right' bitmap" >&5
  27338. $as_echo_n "checking for yet another 'start center right' bitmap... " >&6; }
  27339. if test -z "$with_startcenter_right_bitmap" -o "$with_startcenter_right_bitmap" = "no"; then
  27340. if test "$with_startcenter_right_bitmap" = "no"; then
  27341. STARTCENTER_RIGHT_BITMAP=
  27342. fi
  27343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27344. $as_echo "none" >&6; }
  27345. else
  27346. case "$with_startcenter_right_bitmap" in
  27347. *.png) STARTCENTER_RIGHT_BITMAP="$with_startcenter_right_bitmap" ;;
  27348. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Startcenter right bitmap should be a .png file!" >&5
  27349. $as_echo "$as_me: WARNING: Startcenter right bitmap should be a .png file!" >&2;} ;;
  27350. esac
  27351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STARTCENTER_RIGHT_BITMAP" >&5
  27352. $as_echo "$STARTCENTER_RIGHT_BITMAP" >&6; }
  27353. fi
  27354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'start center rtl left' bitmap" >&5
  27355. $as_echo_n "checking for yet another 'start center rtl left' bitmap... " >&6; }
  27356. if test -z "$with_startcenter_rtl_left_bitmap" -o "$with_startcenter_rtl_left_bitmap" = "no"; then
  27357. if test "$with_startcenter_rtl_left_bitmap" = "no"; then
  27358. STARTCENTER_RTL_LEFT_BITMAP=
  27359. fi
  27360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27361. $as_echo "none" >&6; }
  27362. else
  27363. case "$with_startcenter_rtl_left_bitmap" in
  27364. *.png) STARTCENTER_RTL_LEFT_BITMAP="$with_startcenter_rtl_left_bitmap" ;;
  27365. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Startcenter rtl left bitmap should be a .png file!" >&5
  27366. $as_echo "$as_me: WARNING: Startcenter rtl left bitmap should be a .png file!" >&2;} ;;
  27367. esac
  27368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STARTCENTER_RTL_LEFT_BITMAP" >&5
  27369. $as_echo "$STARTCENTER_RTL_LEFT_BITMAP" >&6; }
  27370. fi
  27371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'start center rtl right' bitmap" >&5
  27372. $as_echo_n "checking for yet another 'start center rtl right' bitmap... " >&6; }
  27373. if test -z "$with_startcenter_rtl_right_bitmap" -o "$with_startcenter_rtl_right_bitmap" = "no"; then
  27374. if test "$with_startcenter_rtl_right_bitmap" = "no"; then
  27375. STARTCENTER_RTL_RIGHT_BITMAP=
  27376. fi
  27377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27378. $as_echo "none" >&6; }
  27379. else
  27380. case "$with_startcenter_rtl_right_bitmap" in
  27381. *.png) STARTCENTER_RTL_RIGHT_BITMAP="$with_startcenter_rtl_right_bitmap" ;;
  27382. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Startcenter rtl right bitmap should be a .png file!" >&5
  27383. $as_echo "$as_me: WARNING: Startcenter rtl right bitmap should be a .png file!" >&2;} ;;
  27384. esac
  27385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STARTCENTER_RTL_RIGHT_BITMAP" >&5
  27386. $as_echo "$STARTCENTER_RTL_RIGHT_BITMAP" >&6; }
  27387. fi
  27388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yet another 'start center space' bitmap" >&5
  27389. $as_echo_n "checking for yet another 'start center space' bitmap... " >&6; }
  27390. if test -z "$with_startcenter_space_bitmap" -o "$with_startcenter_space_bitmap" = "no"; then
  27391. if test "$with_startcenter_space_bitmap" = "no"; then
  27392. STARTCENTER_SPACE_BITMAP=
  27393. fi
  27394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  27395. $as_echo "none" >&6; }
  27396. else
  27397. case "$with_startcenter_space_bitmap" in
  27398. *.png) STARTCENTER_SPACE_BITMAP="$with_startcenter_space_bitmap" ;;
  27399. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Startcenter left bitmap should be a .png file!" >&5
  27400. $as_echo "$as_me: WARNING: Startcenter left bitmap should be a .png file!" >&2;} ;;
  27401. esac
  27402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STARTCENTER_SPACE_BITMAP" >&5
  27403. $as_echo "$STARTCENTER_SPACE_BITMAP" >&6; }
  27404. fi
  27405. OOO_VENDOR=
  27406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vendor" >&5
  27407. $as_echo_n "checking for vendor... " >&6; }
  27408. if test -z "$with_vendor" -o "$with_vendor" = "no"; then
  27409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
  27410. $as_echo "not set" >&6; }
  27411. else
  27412. OOO_VENDOR="$with_vendor"
  27413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OOO_VENDOR" >&5
  27414. $as_echo "$OOO_VENDOR" >&6; }
  27415. fi
  27416. UNIXWRAPPERNAME=
  27417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX wrapper name" >&5
  27418. $as_echo_n "checking for UNIX wrapper name... " >&6; }
  27419. if test -z "$with_unix_wrapper" -o "$with_unix_wrapper" = "no" -o "$with_unix_wrapper" = "yes"; then
  27420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
  27421. $as_echo "not set" >&6; }
  27422. else
  27423. UNIXWRAPPERNAME="$with_unix_wrapper"
  27424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXWRAPPERNAME" >&5
  27425. $as_echo "$UNIXWRAPPERNAME" >&6; }
  27426. fi
  27427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the compat oo* wrappers" >&5
  27428. $as_echo_n "checking whether to install the compat oo* wrappers... " >&6; }
  27429. if test "$with_compat_oowrappers" = "yes"; then
  27430. WITH_COMPAT_OOWRAPPERS=YES
  27431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27432. $as_echo "yes" >&6; }
  27433. else
  27434. WITH_COMPAT_OOWRAPPERS=
  27435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27436. $as_echo "no" >&6; }
  27437. fi
  27438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for product name" >&5
  27439. $as_echo_n "checking for product name... " >&6; }
  27440. PRODUCTNAME=LibreOffice
  27441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRODUCTNAME" >&5
  27442. $as_echo "$PRODUCTNAME" >&6; }
  27443. INSTALLDIRNAME=`echo LibreOffice | tr '[:upper:]' '[:lower:]'`
  27444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dirname" >&5
  27445. $as_echo_n "checking for install dirname... " >&6; }
  27446. if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes"; then
  27447. INSTALLDIRNAME="$with_install_dirname"
  27448. fi
  27449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALLDIRNAME" >&5
  27450. $as_echo "$INSTALLDIRNAME" >&6; }
  27451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix" >&5
  27452. $as_echo_n "checking for prefix... " >&6; }
  27453. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  27454. test "x$exec_prefix" = xNONE && exec_prefix=$prefix
  27455. PREFIXDIR="$prefix"
  27456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREFIXDIR" >&5
  27457. $as_echo "$PREFIXDIR" >&6; }
  27458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdir" >&5
  27459. $as_echo_n "checking for libdir... " >&6; }
  27460. LIBDIR=$(eval echo $(eval echo $libdir))
  27461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDIR" >&5
  27462. $as_echo "$LIBDIR" >&6; }
  27463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data dir" >&5
  27464. $as_echo_n "checking for data dir... " >&6; }
  27465. DATADIR=$(eval echo $(eval echo $datadir))
  27466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATADIR" >&5
  27467. $as_echo "$DATADIR" >&6; }
  27468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for man dir" >&5
  27469. $as_echo_n "checking for man dir... " >&6; }
  27470. MANDIR=$(eval echo $(eval echo $mandir))
  27471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDIR" >&5
  27472. $as_echo "$MANDIR" >&6; }
  27473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for doc dir" >&5
  27474. $as_echo_n "checking for doc dir... " >&6; }
  27475. DOCDIR=$(eval echo $(eval echo $docdir))
  27476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDIR" >&5
  27477. $as_echo "$DOCDIR" >&6; }
  27478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir" >&5
  27479. $as_echo_n "checking for install dir... " >&6; }
  27480. INSTALLDIR="$LIBDIR/$INSTALLDIRNAME"
  27481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALLDIR" >&5
  27482. $as_echo "$INSTALLDIR" >&6; }
  27483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dev-install dir" >&5
  27484. $as_echo_n "checking for dev-install dir... " >&6; }
  27485. DEVINSTALLDIR="$OUTDIR/installation"
  27486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVINSTALLDIR" >&5
  27487. $as_echo "$DEVINSTALLDIR" >&6; }
  27488. # ===================================================================
  27489. # De- or increase default verbosity of build process
  27490. # ===================================================================
  27491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build verbosity" >&5
  27492. $as_echo_n "checking build verbosity... " >&6; }
  27493. if test -n "$enable_verbose"; then
  27494. if test "$enable_verbose" = "yes"; then
  27495. VERBOSE="TRUE"
  27496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: high" >&5
  27497. $as_echo "high" >&6; }
  27498. fi
  27499. if test "$enable_verbose" = "no"; then
  27500. VERBOSE="FALSE"
  27501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: low" >&5
  27502. $as_echo "low" >&6; }
  27503. fi
  27504. else
  27505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
  27506. $as_echo "not set" >&6; }
  27507. fi
  27508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use zenity during build" >&5
  27509. $as_echo_n "checking whether to use zenity during build... " >&6; }
  27510. if test "$enable_zenity" = "yes"; then
  27511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27512. $as_echo "yes" >&6; }
  27513. for ac_prog in zenity
  27514. do
  27515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  27516. set dummy $ac_prog; ac_word=$2
  27517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  27518. $as_echo_n "checking for $ac_word... " >&6; }
  27519. if ${ac_cv_path_ZNTY+:} false; then :
  27520. $as_echo_n "(cached) " >&6
  27521. else
  27522. case $ZNTY in
  27523. [\\/]* | ?:[\\/]*)
  27524. ac_cv_path_ZNTY="$ZNTY" # Let the user override the test with a path.
  27525. ;;
  27526. *)
  27527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27528. for as_dir in $PATH
  27529. do
  27530. IFS=$as_save_IFS
  27531. test -z "$as_dir" && as_dir=.
  27532. for ac_exec_ext in '' $ac_executable_extensions; do
  27533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  27534. ac_cv_path_ZNTY="$as_dir/$ac_word$ac_exec_ext"
  27535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  27536. break 2
  27537. fi
  27538. done
  27539. done
  27540. IFS=$as_save_IFS
  27541. ;;
  27542. esac
  27543. fi
  27544. ZNTY=$ac_cv_path_ZNTY
  27545. if test -n "$ZNTY"; then
  27546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZNTY" >&5
  27547. $as_echo "$ZNTY" >&6; }
  27548. else
  27549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27550. $as_echo "no" >&6; }
  27551. fi
  27552. test -n "$ZNTY" && break
  27553. done
  27554. if test -z "$ZNTY"; then
  27555. ENABLE_ZENITY=FALSE
  27556. else
  27557. ENABLE_ZENITY=TRUE
  27558. fi
  27559. else
  27560. ENABLE_ZENITY=FALSE
  27561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27562. $as_echo "no" >&6; }
  27563. fi
  27564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5
  27565. $as_echo_n "checking whether to enable dependency tracking... " >&6; }
  27566. if test "$enable_dependency_tracking" = "no"; then
  27567. nodep=TRUE
  27568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27569. $as_echo "no" >&6; }
  27570. else
  27571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27572. $as_echo "yes" >&6; }
  27573. fi
  27574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of processors to use" >&5
  27575. $as_echo_n "checking for number of processors to use... " >&6; }
  27576. if test -n "$with_num_cpus"; then
  27577. BUILD_NCPUS=$with_num_cpus
  27578. else
  27579. case `uname -s` in
  27580. Darwin|FreeBSD|NetBSD|OpenBSD)
  27581. BUILD_NCPUS=`sysctl -n hw.ncpu`
  27582. ;;
  27583. Linux)
  27584. BUILD_NCPUS=`getconf _NPROCESSORS_ONLN`
  27585. ;;
  27586. # what else than above does profit here *and* has /proc?
  27587. *)
  27588. BUILD_NCPUS=`grep $'^processor\t*:' /proc/cpuinfo | wc -l`
  27589. ;;
  27590. esac
  27591. # If we hit the catch-all case, but /proc/cpuinfo doesn't exist or has an
  27592. # unexpected format, 'wc -l' will have returned 0.
  27593. if test "$BUILD_NCPUS" -eq 0; then
  27594. BUILD_NCPUS=1
  27595. fi
  27596. fi
  27597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NCPUS" >&5
  27598. $as_echo "$BUILD_NCPUS" >&6; }
  27599. #
  27600. # Set up ILIB for MSVC build
  27601. #
  27602. if test "$build_os" = "cygwin"; then
  27603. ILIB=".;${SOLARVER}/$INPATH/lib"
  27604. if test -n "$JAVA_HOME" -a "$JAVA_HOME" != "NO_JAVA_HOME"; then
  27605. ILIB="$ILIB;$JAVA_HOME/lib"
  27606. fi
  27607. if test "$CL_X64" = "TRUE"; then
  27608. ILIB="$ILIB;$COMPATH/lib/amd64"
  27609. ILIB="$ILIB;$WINDOWS_SDK_HOME/lib64"
  27610. else
  27611. ILIB="$ILIB;$COMPATH/lib"
  27612. ILIB="$ILIB;$WINDOWS_SDK_HOME/lib"
  27613. fi
  27614. ILIB="$ILIB;$DOTNET_FRAMEWORK_HOME/lib"
  27615. if test "$ENABLE_DIRECTX" = "TRUE"; then
  27616. ILIB="$ILIB;$DIRECTXSDK_LIB"
  27617. fi
  27618. fi
  27619. # ===================================================================
  27620. # Creating bigger shared library to link against
  27621. # ===================================================================
  27622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to create a big library for better performance" >&5
  27623. $as_echo_n "checking whether to create a big library for better performance... " >&6; }
  27624. MERGELIBS=
  27625. if test "$enable_mergelibs" = "yes"; then
  27626. MERGELIBS="TRUE"
  27627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27628. $as_echo "yes" >&6; }
  27629. else
  27630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27631. $as_echo "no" >&6; }
  27632. fi
  27633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maximum of jobs per processor" >&5
  27634. $as_echo_n "checking for maximum of jobs per processor... " >&6; }
  27635. BUILD_MAX_JOBS="1"
  27636. if test "$with_max_jobs" != ""; then
  27637. BUILD_MAX_JOBS="$with_max_jobs"
  27638. else
  27639. if test "$enable_icecream" = "yes"; then
  27640. BUILD_MAX_JOBS="10"
  27641. fi
  27642. fi
  27643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_MAX_JOBS" >&5
  27644. $as_echo "$BUILD_MAX_JOBS" >&6; }
  27645. # =====================================================================
  27646. # determine the parallelism for gnu make
  27647. # =====================================================================
  27648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maximum parallelism for gmake" >&5
  27649. $as_echo_n "checking for maximum parallelism for gmake... " >&6; }
  27650. if test $BUILD_MAX_JOBS -gt $BUILD_NCPUS; then
  27651. GMAKE_PARALLELISM="$BUILD_MAX_JOBS"
  27652. else
  27653. GMAKE_PARALLELISM="$BUILD_NCPUS"
  27654. fi
  27655. GMAKE_MODULE_PARALLELISM="$BUILD_MAX_JOBS"
  27656. if test "$no_parallelism_make" = "YES"; then
  27657. if test -z "$with_num_cpus"; then
  27658. GMAKE_PARALLELISM="1";
  27659. if test $GMAKE_MODULE_PARALLELISM -gt 1; then
  27660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >&5
  27661. $as_echo "$as_me: WARNING: gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >&2;}
  27662. if test -z "$with_num_cpus"; then
  27663. echo "gmake 3.81 crashes with parallelism > 1, reducing it to 1. upgrade to 3.82 to avoid this." >> warn
  27664. fi
  27665. GMAKE_MODULE_PARALLELISM="1"
  27666. fi
  27667. else
  27668. GMAKE_PARALLELISM="$BUILD_NCPUS";
  27669. echo "make 3.81 is prone to crashes with parallelism > 1. Since --with-num-cpus was explicitly given, it is honored, but do not complain when make segfault on you." >> warn
  27670. fi
  27671. fi
  27672. # GMAKE_PARALLELISM is used in tail_build
  27673. # GMAKE_MODULE_PARALLELISM is used when building individual gbuildified module
  27674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: per module:$GMAKE_MODULE_PARALLELISM, for tail_build:$GMAKE_PARALLELISM" >&5
  27675. $as_echo "per module:$GMAKE_MODULE_PARALLELISM, for tail_build:$GMAKE_PARALLELISM" >&6; }
  27676. echo "setting up the build environment variables..."
  27677. if test -z "$COMPATH"; then
  27678. as_fn_error $? "No compiler found." "$LINENO" 5
  27679. fi
  27680. if test "$build_os" = "cygwin"; then
  27681. if test "$DISABLE_ACTIVEX" = "YES"; then
  27682. ATL_LIB="$WINDOWS_SDK_HOME/lib"; # Doesn't exist for VSE
  27683. ATL_INCLUDE="$WINDOWS_SDK_HOME/include".$ds."atl";
  27684. MFC_LIB="$WINDOWS_SDK_HOME/lib"; # Doesn't exist for VSE
  27685. MFC_INCLUDE="$WINDOWS_SDK_HOME/include/mfc";
  27686. else
  27687. ATL_LIB="$COMPATH/atlmfc/lib";
  27688. ATL_INCLUDE="$COMPATH/atlmfc/include";
  27689. MFC_LIB="$COMPATH/atlmfc/lib";
  27690. MFC_INCLUDE="$WINDOWS_SDK_HOME/include/mfc";
  27691. fi
  27692. if test "$CL_X64" = "YES"; then
  27693. ATL_LIB="$ATL_LIB/amd64"
  27694. MFC_LIB="$MFC_LIB/amd64"
  27695. fi
  27696. PathFormat "/usr/bin/grep.exe"
  27697. WIN_GREP="$formatted_path"
  27698. PathFormat "/usr/bin/find.exe"
  27699. WIN_FIND="$formatted_path"
  27700. PathFormat "/usr/bin/ls.exe"
  27701. WIN_LS="$formatted_path"
  27702. PathFormat "/usr/bin/touch.exe"
  27703. WIN_TOUCH="$formatted_path"
  27704. fi
  27705. if test -z "$SOLARINC_FOR_BUILD"; then
  27706. SOLARINC_FOR_BUILD="$SOLARINC"
  27707. fi
  27708. if test -z "$SOLARLIB_FOR_BUILD"; then
  27709. SOLARLIB_FOR_BUILD="$SOLARLIB"
  27710. fi
  27711. PathFormat "$PERL"
  27712. PERL="$formatted_path"
  27713. if test "$build_os" = "cygwin"; then
  27714. TEMP_DIRECTORY=`cygpath -m "/tmp"`
  27715. if test -n "$TMP"; then
  27716. TMP_DIRECTORY="$TMP"
  27717. else
  27718. TMP_DIRECTORY="$TEMP_DIRECTORY"
  27719. fi
  27720. else
  27721. if test -n "$TMPDIR"; then
  27722. TEMP_DIRECTORY="$TMPDIR"
  27723. else
  27724. TEMP_DIRECTORY="/tmp"
  27725. fi
  27726. fi
  27727. # setup the PATH for the environment
  27728. if test -n "$LO_PATH_FOR_BUILD"; then
  27729. LO_PATH="$LO_PATH_FOR_BUILD"
  27730. else
  27731. LO_PATH="$PATH"
  27732. case "$host_os" in
  27733. aix*|dragonfly*|freebsd*|linux-gnu*|*netbsd*|openbsd*)
  27734. if test "$SOLAR_JAVA" != "" -a "$JDK"!="gcj"; then
  27735. pathmunge "$JAVA_HOME/bin" "after"
  27736. fi
  27737. ;;
  27738. cygwin*)
  27739. pathmunge "$DOTNET_FRAMEWORK_HOME/bin" "before"
  27740. pathmunge "$ASM_HOME" "before"
  27741. pathmunge "$WINDOWS_SDK_HOME/bin" "before"
  27742. pathmunge "$CSC_PATH" "before"
  27743. pathmunge "$MIDL_PATH" "before"
  27744. pathmunge "$MSPDB_PATH" "before"
  27745. if test "$CL_X64" = "TRUE"; then
  27746. pathmunge "$COMPATH/bin/amd64" "before"
  27747. else
  27748. pathmunge "$COMPATH/bin" "before"
  27749. fi
  27750. if test "$SOLAR_JAVA" != "" -a "$JDK"!="gcj"; then
  27751. if test -d "$JAVA_HOME/jre/bin/client"; then
  27752. pathmunge "$JAVA_HOME/jre/bin/client" "before"
  27753. fi
  27754. if test -d "$JAVA_HOME/jre/bin/hotspot"; then
  27755. pathmunge "$JAVA_HOME/jre/bin/hotspot" "before"
  27756. fi
  27757. pathmunge "$JAVA_HOME/bin" "before"
  27758. fi
  27759. ;;
  27760. solaris*)
  27761. pathmunge "/usr/css/bin" "before"
  27762. if test "$SOLAR_JAVA" != "" -a "$JDK"!="gcj"; then
  27763. pathmunge "$JAVA_HOME/bin" "after"
  27764. fi
  27765. ;;
  27766. esac
  27767. pathmunge "$SRC_ROOT/solenv/$OUTPATH/bin" "before"
  27768. pathmunge "$SRC_ROOT/solenv/bin" "before"
  27769. pathmunge "." "before"
  27770. fi
  27771. # make sure config.guess is +x; we execute config.guess, so it has to be so;
  27772. chmod +x ./config.guess
  27773. echo "setting up the post_download check script"
  27774. autoconf post_download.in > post_download
  27775. chmod +x post_download
  27776. # Generate a configuration timestamp we can use for deps
  27777. if test -f config_host.mk; then
  27778. mv -f config_host.mk config_host.mk.last
  27779. else
  27780. echo > config_host.mk.last
  27781. fi
  27782. ac_config_files="$ac_config_files config_host.mk ooo.lst bin/repo-list"
  27783. cat >confcache <<\_ACEOF
  27784. # This file is a shell script that caches the results of configure
  27785. # tests run on this system so they can be shared between configure
  27786. # scripts and configure runs, see configure's option --config-cache.
  27787. # It is not useful on other systems. If it contains results you don't
  27788. # want to keep, you may remove or edit it.
  27789. #
  27790. # config.status only pays attention to the cache file if you give it
  27791. # the --recheck option to rerun configure.
  27792. #
  27793. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  27794. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  27795. # following values.
  27796. _ACEOF
  27797. # The following way of writing the cache mishandles newlines in values,
  27798. # but we know of no workaround that is simple, portable, and efficient.
  27799. # So, we kill variables containing newlines.
  27800. # Ultrix sh set writes to stderr and can't be redirected directly,
  27801. # and sets the high bit in the cache file unless we assign to the vars.
  27802. (
  27803. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  27804. eval ac_val=\$$ac_var
  27805. case $ac_val in #(
  27806. *${as_nl}*)
  27807. case $ac_var in #(
  27808. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  27809. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  27810. esac
  27811. case $ac_var in #(
  27812. _ | IFS | as_nl) ;; #(
  27813. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  27814. *) { eval $ac_var=; unset $ac_var;} ;;
  27815. esac ;;
  27816. esac
  27817. done
  27818. (set) 2>&1 |
  27819. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  27820. *${as_nl}ac_space=\ *)
  27821. # `set' does not quote correctly, so add quotes: double-quote
  27822. # substitution turns \\\\ into \\, and sed turns \\ into \.
  27823. sed -n \
  27824. "s/'/'\\\\''/g;
  27825. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  27826. ;; #(
  27827. *)
  27828. # `set' quotes correctly as required by POSIX, so do not add quotes.
  27829. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  27830. ;;
  27831. esac |
  27832. sort
  27833. ) |
  27834. sed '
  27835. /^ac_cv_env_/b end
  27836. t clear
  27837. :clear
  27838. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  27839. t end
  27840. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  27841. :end' >>confcache
  27842. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  27843. if test -w "$cache_file"; then
  27844. if test "x$cache_file" != "x/dev/null"; then
  27845. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  27846. $as_echo "$as_me: updating cache $cache_file" >&6;}
  27847. if test ! -f "$cache_file" || test -h "$cache_file"; then
  27848. cat confcache >"$cache_file"
  27849. else
  27850. case $cache_file in #(
  27851. */* | ?:*)
  27852. mv -f confcache "$cache_file"$$ &&
  27853. mv -f "$cache_file"$$ "$cache_file" ;; #(
  27854. *)
  27855. mv -f confcache "$cache_file" ;;
  27856. esac
  27857. fi
  27858. fi
  27859. else
  27860. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  27861. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  27862. fi
  27863. fi
  27864. rm -f confcache
  27865. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  27866. # Let make expand exec_prefix.
  27867. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  27868. # Transform confdefs.h into DEFS.
  27869. # Protect against shell expansion while executing Makefile rules.
  27870. # Protect against Makefile macro expansion.
  27871. #
  27872. # If the first sed substitution is executed (which looks for macros that
  27873. # take arguments), then branch to the quote section. Otherwise,
  27874. # look for a macro that doesn't take arguments.
  27875. ac_script='
  27876. :mline
  27877. /\\$/{
  27878. N
  27879. s,\\\n,,
  27880. b mline
  27881. }
  27882. t clear
  27883. :clear
  27884. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  27885. t quote
  27886. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  27887. t quote
  27888. b any
  27889. :quote
  27890. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  27891. s/\[/\\&/g
  27892. s/\]/\\&/g
  27893. s/\$/$$/g
  27894. H
  27895. :any
  27896. ${
  27897. g
  27898. s/^\n//
  27899. s/\n/ /g
  27900. p
  27901. }
  27902. '
  27903. DEFS=`sed -n "$ac_script" confdefs.h`
  27904. ac_libobjs=
  27905. ac_ltlibobjs=
  27906. U=
  27907. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  27908. # 1. Remove the extension, and $U if already installed.
  27909. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  27910. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  27911. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  27912. # will be set to the directory where LIBOBJS objects are built.
  27913. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  27914. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  27915. done
  27916. LIBOBJS=$ac_libobjs
  27917. LTLIBOBJS=$ac_ltlibobjs
  27918. : "${CONFIG_STATUS=./config.status}"
  27919. ac_write_fail=0
  27920. ac_clean_files_save=$ac_clean_files
  27921. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  27922. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  27923. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  27924. as_write_fail=0
  27925. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  27926. #! $SHELL
  27927. # Generated by $as_me.
  27928. # Run this file to recreate the current configuration.
  27929. # Compiler output produced by configure, useful for debugging
  27930. # configure, is in config.log if it exists.
  27931. debug=false
  27932. ac_cs_recheck=false
  27933. ac_cs_silent=false
  27934. SHELL=\${CONFIG_SHELL-$SHELL}
  27935. export SHELL
  27936. _ASEOF
  27937. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  27938. ## -------------------- ##
  27939. ## M4sh Initialization. ##
  27940. ## -------------------- ##
  27941. # Be more Bourne compatible
  27942. DUALCASE=1; export DUALCASE # for MKS sh
  27943. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  27944. emulate sh
  27945. NULLCMD=:
  27946. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27947. # is contrary to our usage. Disable this feature.
  27948. alias -g '${1+"$@"}'='"$@"'
  27949. setopt NO_GLOB_SUBST
  27950. else
  27951. case `(set -o) 2>/dev/null` in #(
  27952. *posix*) :
  27953. set -o posix ;; #(
  27954. *) :
  27955. ;;
  27956. esac
  27957. fi
  27958. as_nl='
  27959. '
  27960. export as_nl
  27961. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  27962. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  27963. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  27964. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  27965. # Prefer a ksh shell builtin over an external printf program on Solaris,
  27966. # but without wasting forks for bash or zsh.
  27967. if test -z "$BASH_VERSION$ZSH_VERSION" \
  27968. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  27969. as_echo='print -r --'
  27970. as_echo_n='print -rn --'
  27971. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  27972. as_echo='printf %s\n'
  27973. as_echo_n='printf %s'
  27974. else
  27975. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  27976. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  27977. as_echo_n='/usr/ucb/echo -n'
  27978. else
  27979. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  27980. as_echo_n_body='eval
  27981. arg=$1;
  27982. case $arg in #(
  27983. *"$as_nl"*)
  27984. expr "X$arg" : "X\\(.*\\)$as_nl";
  27985. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  27986. esac;
  27987. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  27988. '
  27989. export as_echo_n_body
  27990. as_echo_n='sh -c $as_echo_n_body as_echo'
  27991. fi
  27992. export as_echo_body
  27993. as_echo='sh -c $as_echo_body as_echo'
  27994. fi
  27995. # The user is always right.
  27996. if test "${PATH_SEPARATOR+set}" != set; then
  27997. PATH_SEPARATOR=:
  27998. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  27999. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  28000. PATH_SEPARATOR=';'
  28001. }
  28002. fi
  28003. # IFS
  28004. # We need space, tab and new line, in precisely that order. Quoting is
  28005. # there to prevent editors from complaining about space-tab.
  28006. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  28007. # splitting by setting IFS to empty value.)
  28008. IFS=" "" $as_nl"
  28009. # Find who we are. Look in the path if we contain no directory separator.
  28010. as_myself=
  28011. case $0 in #((
  28012. *[\\/]* ) as_myself=$0 ;;
  28013. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28014. for as_dir in $PATH
  28015. do
  28016. IFS=$as_save_IFS
  28017. test -z "$as_dir" && as_dir=.
  28018. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28019. done
  28020. IFS=$as_save_IFS
  28021. ;;
  28022. esac
  28023. # We did not find ourselves, most probably we were run as `sh COMMAND'
  28024. # in which case we are not to be found in the path.
  28025. if test "x$as_myself" = x; then
  28026. as_myself=$0
  28027. fi
  28028. if test ! -f "$as_myself"; then
  28029. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28030. exit 1
  28031. fi
  28032. # Unset variables that we do not need and which cause bugs (e.g. in
  28033. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  28034. # suppresses any "Segmentation fault" message there. '((' could
  28035. # trigger a bug in pdksh 5.2.14.
  28036. for as_var in BASH_ENV ENV MAIL MAILPATH
  28037. do eval test x\${$as_var+set} = xset \
  28038. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  28039. done
  28040. PS1='$ '
  28041. PS2='> '
  28042. PS4='+ '
  28043. # NLS nuisances.
  28044. LC_ALL=C
  28045. export LC_ALL
  28046. LANGUAGE=C
  28047. export LANGUAGE
  28048. # CDPATH.
  28049. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  28050. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  28051. # ----------------------------------------
  28052. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  28053. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  28054. # script with STATUS, using 1 if that was 0.
  28055. as_fn_error ()
  28056. {
  28057. as_status=$1; test $as_status -eq 0 && as_status=1
  28058. if test "$4"; then
  28059. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  28060. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  28061. fi
  28062. $as_echo "$as_me: error: $2" >&2
  28063. as_fn_exit $as_status
  28064. } # as_fn_error
  28065. # as_fn_set_status STATUS
  28066. # -----------------------
  28067. # Set $? to STATUS, without forking.
  28068. as_fn_set_status ()
  28069. {
  28070. return $1
  28071. } # as_fn_set_status
  28072. # as_fn_exit STATUS
  28073. # -----------------
  28074. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  28075. as_fn_exit ()
  28076. {
  28077. set +e
  28078. as_fn_set_status $1
  28079. exit $1
  28080. } # as_fn_exit
  28081. # as_fn_unset VAR
  28082. # ---------------
  28083. # Portably unset VAR.
  28084. as_fn_unset ()
  28085. {
  28086. { eval $1=; unset $1;}
  28087. }
  28088. as_unset=as_fn_unset
  28089. # as_fn_append VAR VALUE
  28090. # ----------------------
  28091. # Append the text in VALUE to the end of the definition contained in VAR. Take
  28092. # advantage of any shell optimizations that allow amortized linear growth over
  28093. # repeated appends, instead of the typical quadratic growth present in naive
  28094. # implementations.
  28095. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  28096. eval 'as_fn_append ()
  28097. {
  28098. eval $1+=\$2
  28099. }'
  28100. else
  28101. as_fn_append ()
  28102. {
  28103. eval $1=\$$1\$2
  28104. }
  28105. fi # as_fn_append
  28106. # as_fn_arith ARG...
  28107. # ------------------
  28108. # Perform arithmetic evaluation on the ARGs, and store the result in the
  28109. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  28110. # must be portable across $(()) and expr.
  28111. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  28112. eval 'as_fn_arith ()
  28113. {
  28114. as_val=$(( $* ))
  28115. }'
  28116. else
  28117. as_fn_arith ()
  28118. {
  28119. as_val=`expr "$@" || test $? -eq 1`
  28120. }
  28121. fi # as_fn_arith
  28122. if expr a : '\(a\)' >/dev/null 2>&1 &&
  28123. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28124. as_expr=expr
  28125. else
  28126. as_expr=false
  28127. fi
  28128. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  28129. as_basename=basename
  28130. else
  28131. as_basename=false
  28132. fi
  28133. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  28134. as_dirname=dirname
  28135. else
  28136. as_dirname=false
  28137. fi
  28138. as_me=`$as_basename -- "$0" ||
  28139. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  28140. X"$0" : 'X\(//\)$' \| \
  28141. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  28142. $as_echo X/"$0" |
  28143. sed '/^.*\/\([^/][^/]*\)\/*$/{
  28144. s//\1/
  28145. q
  28146. }
  28147. /^X\/\(\/\/\)$/{
  28148. s//\1/
  28149. q
  28150. }
  28151. /^X\/\(\/\).*/{
  28152. s//\1/
  28153. q
  28154. }
  28155. s/.*/./; q'`
  28156. # Avoid depending upon Character Ranges.
  28157. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28158. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28159. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28160. as_cr_digits='0123456789'
  28161. as_cr_alnum=$as_cr_Letters$as_cr_digits
  28162. ECHO_C= ECHO_N= ECHO_T=
  28163. case `echo -n x` in #(((((
  28164. -n*)
  28165. case `echo 'xy\c'` in
  28166. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  28167. xy) ECHO_C='\c';;
  28168. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  28169. ECHO_T=' ';;
  28170. esac;;
  28171. *)
  28172. ECHO_N='-n';;
  28173. esac
  28174. rm -f conf$$ conf$$.exe conf$$.file
  28175. if test -d conf$$.dir; then
  28176. rm -f conf$$.dir/conf$$.file
  28177. else
  28178. rm -f conf$$.dir
  28179. mkdir conf$$.dir 2>/dev/null
  28180. fi
  28181. if (echo >conf$$.file) 2>/dev/null; then
  28182. if ln -s conf$$.file conf$$ 2>/dev/null; then
  28183. as_ln_s='ln -s'
  28184. # ... but there are two gotchas:
  28185. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  28186. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  28187. # In both cases, we have to default to `cp -p'.
  28188. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  28189. as_ln_s='cp -p'
  28190. elif ln conf$$.file conf$$ 2>/dev/null; then
  28191. as_ln_s=ln
  28192. else
  28193. as_ln_s='cp -p'
  28194. fi
  28195. else
  28196. as_ln_s='cp -p'
  28197. fi
  28198. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  28199. rmdir conf$$.dir 2>/dev/null
  28200. # as_fn_mkdir_p
  28201. # -------------
  28202. # Create "$as_dir" as a directory, including parents if necessary.
  28203. as_fn_mkdir_p ()
  28204. {
  28205. case $as_dir in #(
  28206. -*) as_dir=./$as_dir;;
  28207. esac
  28208. test -d "$as_dir" || eval $as_mkdir_p || {
  28209. as_dirs=
  28210. while :; do
  28211. case $as_dir in #(
  28212. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  28213. *) as_qdir=$as_dir;;
  28214. esac
  28215. as_dirs="'$as_qdir' $as_dirs"
  28216. as_dir=`$as_dirname -- "$as_dir" ||
  28217. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28218. X"$as_dir" : 'X\(//\)[^/]' \| \
  28219. X"$as_dir" : 'X\(//\)$' \| \
  28220. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  28221. $as_echo X"$as_dir" |
  28222. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28223. s//\1/
  28224. q
  28225. }
  28226. /^X\(\/\/\)[^/].*/{
  28227. s//\1/
  28228. q
  28229. }
  28230. /^X\(\/\/\)$/{
  28231. s//\1/
  28232. q
  28233. }
  28234. /^X\(\/\).*/{
  28235. s//\1/
  28236. q
  28237. }
  28238. s/.*/./; q'`
  28239. test -d "$as_dir" && break
  28240. done
  28241. test -z "$as_dirs" || eval "mkdir $as_dirs"
  28242. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  28243. } # as_fn_mkdir_p
  28244. if mkdir -p . 2>/dev/null; then
  28245. as_mkdir_p='mkdir -p "$as_dir"'
  28246. else
  28247. test -d ./-p && rmdir ./-p
  28248. as_mkdir_p=false
  28249. fi
  28250. if test -x / >/dev/null 2>&1; then
  28251. as_test_x='test -x'
  28252. else
  28253. if ls -dL / >/dev/null 2>&1; then
  28254. as_ls_L_option=L
  28255. else
  28256. as_ls_L_option=
  28257. fi
  28258. as_test_x='
  28259. eval sh -c '\''
  28260. if test -d "$1"; then
  28261. test -d "$1/.";
  28262. else
  28263. case $1 in #(
  28264. -*)set "./$1";;
  28265. esac;
  28266. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  28267. ???[sx]*):;;*)false;;esac;fi
  28268. '\'' sh
  28269. '
  28270. fi
  28271. as_executable_p=$as_test_x
  28272. # Sed expression to map a string onto a valid CPP name.
  28273. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  28274. # Sed expression to map a string onto a valid variable name.
  28275. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  28276. exec 6>&1
  28277. ## ----------------------------------- ##
  28278. ## Main body of $CONFIG_STATUS script. ##
  28279. ## ----------------------------------- ##
  28280. _ASEOF
  28281. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  28282. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28283. # Save the log message, to keep $0 and so on meaningful, and to
  28284. # report actual input values of CONFIG_FILES etc. instead of their
  28285. # values after options handling.
  28286. ac_log="
  28287. This file was extended by LibreOffice $as_me 3.6, which was
  28288. generated by GNU Autoconf 2.68. Invocation command line was
  28289. CONFIG_FILES = $CONFIG_FILES
  28290. CONFIG_HEADERS = $CONFIG_HEADERS
  28291. CONFIG_LINKS = $CONFIG_LINKS
  28292. CONFIG_COMMANDS = $CONFIG_COMMANDS
  28293. $ $0 $@
  28294. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  28295. "
  28296. _ACEOF
  28297. case $ac_config_files in *"
  28298. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  28299. esac
  28300. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28301. # Files that config.status was made for.
  28302. config_files="$ac_config_files"
  28303. _ACEOF
  28304. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28305. ac_cs_usage="\
  28306. \`$as_me' instantiates files and other configuration actions
  28307. from templates according to the current configuration. Unless the files
  28308. and actions are specified as TAGs, all are instantiated by default.
  28309. Usage: $0 [OPTION]... [TAG]...
  28310. -h, --help print this help, then exit
  28311. -V, --version print version number and configuration settings, then exit
  28312. --config print configuration, then exit
  28313. -q, --quiet, --silent
  28314. do not print progress messages
  28315. -d, --debug don't remove temporary files
  28316. --recheck update $as_me by reconfiguring in the same conditions
  28317. --file=FILE[:TEMPLATE]
  28318. instantiate the configuration file FILE
  28319. Configuration files:
  28320. $config_files
  28321. Report bugs to the package provider.
  28322. LibreOffice home page: <http://documentfoundation.org/>."
  28323. _ACEOF
  28324. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28325. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  28326. ac_cs_version="\\
  28327. LibreOffice config.status 3.6
  28328. configured by $0, generated by GNU Autoconf 2.68,
  28329. with options \\"\$ac_cs_config\\"
  28330. Copyright (C) 2010 Free Software Foundation, Inc.
  28331. This config.status script is free software; the Free Software Foundation
  28332. gives unlimited permission to copy, distribute and modify it."
  28333. ac_pwd='$ac_pwd'
  28334. srcdir='$srcdir'
  28335. AWK='$AWK'
  28336. test -n "\$AWK" || AWK=awk
  28337. _ACEOF
  28338. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28339. # The default lists apply if the user does not specify any file.
  28340. ac_need_defaults=:
  28341. while test $# != 0
  28342. do
  28343. case $1 in
  28344. --*=?*)
  28345. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28346. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  28347. ac_shift=:
  28348. ;;
  28349. --*=)
  28350. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28351. ac_optarg=
  28352. ac_shift=:
  28353. ;;
  28354. *)
  28355. ac_option=$1
  28356. ac_optarg=$2
  28357. ac_shift=shift
  28358. ;;
  28359. esac
  28360. case $ac_option in
  28361. # Handling of the options.
  28362. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  28363. ac_cs_recheck=: ;;
  28364. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  28365. $as_echo "$ac_cs_version"; exit ;;
  28366. --config | --confi | --conf | --con | --co | --c )
  28367. $as_echo "$ac_cs_config"; exit ;;
  28368. --debug | --debu | --deb | --de | --d | -d )
  28369. debug=: ;;
  28370. --file | --fil | --fi | --f )
  28371. $ac_shift
  28372. case $ac_optarg in
  28373. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  28374. '') as_fn_error $? "missing file argument" ;;
  28375. esac
  28376. as_fn_append CONFIG_FILES " '$ac_optarg'"
  28377. ac_need_defaults=false;;
  28378. --he | --h | --help | --hel | -h )
  28379. $as_echo "$ac_cs_usage"; exit ;;
  28380. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  28381. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  28382. ac_cs_silent=: ;;
  28383. # This is an error.
  28384. -*) as_fn_error $? "unrecognized option: \`$1'
  28385. Try \`$0 --help' for more information." ;;
  28386. *) as_fn_append ac_config_targets " $1"
  28387. ac_need_defaults=false ;;
  28388. esac
  28389. shift
  28390. done
  28391. ac_configure_extra_args=
  28392. if $ac_cs_silent; then
  28393. exec 6>/dev/null
  28394. ac_configure_extra_args="$ac_configure_extra_args --silent"
  28395. fi
  28396. _ACEOF
  28397. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28398. if \$ac_cs_recheck; then
  28399. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  28400. shift
  28401. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  28402. CONFIG_SHELL='$SHELL'
  28403. export CONFIG_SHELL
  28404. exec "\$@"
  28405. fi
  28406. _ACEOF
  28407. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28408. exec 5>>config.log
  28409. {
  28410. echo
  28411. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  28412. ## Running $as_me. ##
  28413. _ASBOX
  28414. $as_echo "$ac_log"
  28415. } >&5
  28416. _ACEOF
  28417. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28418. _ACEOF
  28419. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28420. # Handling of arguments.
  28421. for ac_config_target in $ac_config_targets
  28422. do
  28423. case $ac_config_target in
  28424. "config_host.mk") CONFIG_FILES="$CONFIG_FILES config_host.mk" ;;
  28425. "ooo.lst") CONFIG_FILES="$CONFIG_FILES ooo.lst" ;;
  28426. "bin/repo-list") CONFIG_FILES="$CONFIG_FILES bin/repo-list" ;;
  28427. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  28428. esac
  28429. done
  28430. # If the user did not use the arguments to specify the items to instantiate,
  28431. # then the envvar interface is used. Set only those that are not.
  28432. # We use the long form for the default assignment because of an extremely
  28433. # bizarre bug on SunOS 4.1.3.
  28434. if $ac_need_defaults; then
  28435. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  28436. fi
  28437. # Have a temporary directory for convenience. Make it in the build tree
  28438. # simply because there is no reason against having it here, and in addition,
  28439. # creating and moving files from /tmp can sometimes cause problems.
  28440. # Hook for its removal unless debugging.
  28441. # Note that there is a small window in which the directory will not be cleaned:
  28442. # after its creation but before its name has been assigned to `$tmp'.
  28443. $debug ||
  28444. {
  28445. tmp= ac_tmp=
  28446. trap 'exit_status=$?
  28447. : "${ac_tmp:=$tmp}"
  28448. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  28449. ' 0
  28450. trap 'as_fn_exit 1' 1 2 13 15
  28451. }
  28452. # Create a (secure) tmp directory for tmp files.
  28453. {
  28454. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  28455. test -d "$tmp"
  28456. } ||
  28457. {
  28458. tmp=./conf$$-$RANDOM
  28459. (umask 077 && mkdir "$tmp")
  28460. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  28461. ac_tmp=$tmp
  28462. # Set up the scripts for CONFIG_FILES section.
  28463. # No need to generate them if there are no CONFIG_FILES.
  28464. # This happens for instance with `./config.status config.h'.
  28465. if test -n "$CONFIG_FILES"; then
  28466. ac_cr=`echo X | tr X '\015'`
  28467. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  28468. # But we know of no other shell where ac_cr would be empty at this
  28469. # point, so we can use a bashism as a fallback.
  28470. if test "x$ac_cr" = x; then
  28471. eval ac_cr=\$\'\\r\'
  28472. fi
  28473. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  28474. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  28475. ac_cs_awk_cr='\\r'
  28476. else
  28477. ac_cs_awk_cr=$ac_cr
  28478. fi
  28479. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  28480. _ACEOF
  28481. {
  28482. echo "cat >conf$$subs.awk <<_ACEOF" &&
  28483. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  28484. echo "_ACEOF"
  28485. } >conf$$subs.sh ||
  28486. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28487. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  28488. ac_delim='%!_!# '
  28489. for ac_last_try in false false false false false :; do
  28490. . ./conf$$subs.sh ||
  28491. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28492. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  28493. if test $ac_delim_n = $ac_delim_num; then
  28494. break
  28495. elif $ac_last_try; then
  28496. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28497. else
  28498. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  28499. fi
  28500. done
  28501. rm -f conf$$subs.sh
  28502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28503. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  28504. _ACEOF
  28505. sed -n '
  28506. h
  28507. s/^/S["/; s/!.*/"]=/
  28508. p
  28509. g
  28510. s/^[^!]*!//
  28511. :repl
  28512. t repl
  28513. s/'"$ac_delim"'$//
  28514. t delim
  28515. :nl
  28516. h
  28517. s/\(.\{148\}\)..*/\1/
  28518. t more1
  28519. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  28520. p
  28521. n
  28522. b repl
  28523. :more1
  28524. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28525. p
  28526. g
  28527. s/.\{148\}//
  28528. t nl
  28529. :delim
  28530. h
  28531. s/\(.\{148\}\)..*/\1/
  28532. t more2
  28533. s/["\\]/\\&/g; s/^/"/; s/$/"/
  28534. p
  28535. b
  28536. :more2
  28537. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28538. p
  28539. g
  28540. s/.\{148\}//
  28541. t delim
  28542. ' <conf$$subs.awk | sed '
  28543. /^[^""]/{
  28544. N
  28545. s/\n//
  28546. }
  28547. ' >>$CONFIG_STATUS || ac_write_fail=1
  28548. rm -f conf$$subs.awk
  28549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28550. _ACAWK
  28551. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  28552. for (key in S) S_is_set[key] = 1
  28553. FS = ""
  28554. }
  28555. {
  28556. line = $ 0
  28557. nfields = split(line, field, "@")
  28558. substed = 0
  28559. len = length(field[1])
  28560. for (i = 2; i < nfields; i++) {
  28561. key = field[i]
  28562. keylen = length(key)
  28563. if (S_is_set[key]) {
  28564. value = S[key]
  28565. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  28566. len += length(value) + length(field[++i])
  28567. substed = 1
  28568. } else
  28569. len += 1 + keylen
  28570. }
  28571. print line
  28572. }
  28573. _ACAWK
  28574. _ACEOF
  28575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28576. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  28577. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  28578. else
  28579. cat
  28580. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  28581. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  28582. _ACEOF
  28583. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  28584. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  28585. # trailing colons and then remove the whole line if VPATH becomes empty
  28586. # (actually we leave an empty line to preserve line numbers).
  28587. if test "x$srcdir" = x.; then
  28588. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  28589. h
  28590. s///
  28591. s/^/:/
  28592. s/[ ]*$/:/
  28593. s/:\$(srcdir):/:/g
  28594. s/:\${srcdir}:/:/g
  28595. s/:@srcdir@:/:/g
  28596. s/^:*//
  28597. s/:*$//
  28598. x
  28599. s/\(=[ ]*\).*/\1/
  28600. G
  28601. s/\n//
  28602. s/^[^=]*=[ ]*$//
  28603. }'
  28604. fi
  28605. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28606. fi # test -n "$CONFIG_FILES"
  28607. eval set X " :F $CONFIG_FILES "
  28608. shift
  28609. for ac_tag
  28610. do
  28611. case $ac_tag in
  28612. :[FHLC]) ac_mode=$ac_tag; continue;;
  28613. esac
  28614. case $ac_mode$ac_tag in
  28615. :[FHL]*:*);;
  28616. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  28617. :[FH]-) ac_tag=-:-;;
  28618. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  28619. esac
  28620. ac_save_IFS=$IFS
  28621. IFS=:
  28622. set x $ac_tag
  28623. IFS=$ac_save_IFS
  28624. shift
  28625. ac_file=$1
  28626. shift
  28627. case $ac_mode in
  28628. :L) ac_source=$1;;
  28629. :[FH])
  28630. ac_file_inputs=
  28631. for ac_f
  28632. do
  28633. case $ac_f in
  28634. -) ac_f="$ac_tmp/stdin";;
  28635. *) # Look for the file first in the build tree, then in the source tree
  28636. # (if the path is not absolute). The absolute path cannot be DOS-style,
  28637. # because $ac_f cannot contain `:'.
  28638. test -f "$ac_f" ||
  28639. case $ac_f in
  28640. [\\/$]*) false;;
  28641. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  28642. esac ||
  28643. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  28644. esac
  28645. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  28646. as_fn_append ac_file_inputs " '$ac_f'"
  28647. done
  28648. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28649. # use $as_me), people would be surprised to read:
  28650. # /* config.h. Generated by config.status. */
  28651. configure_input='Generated from '`
  28652. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  28653. `' by configure.'
  28654. if test x"$ac_file" != x-; then
  28655. configure_input="$ac_file. $configure_input"
  28656. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  28657. $as_echo "$as_me: creating $ac_file" >&6;}
  28658. fi
  28659. # Neutralize special characters interpreted by sed in replacement strings.
  28660. case $configure_input in #(
  28661. *\&* | *\|* | *\\* )
  28662. ac_sed_conf_input=`$as_echo "$configure_input" |
  28663. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  28664. *) ac_sed_conf_input=$configure_input;;
  28665. esac
  28666. case $ac_tag in
  28667. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  28668. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  28669. esac
  28670. ;;
  28671. esac
  28672. ac_dir=`$as_dirname -- "$ac_file" ||
  28673. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28674. X"$ac_file" : 'X\(//\)[^/]' \| \
  28675. X"$ac_file" : 'X\(//\)$' \| \
  28676. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  28677. $as_echo X"$ac_file" |
  28678. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28679. s//\1/
  28680. q
  28681. }
  28682. /^X\(\/\/\)[^/].*/{
  28683. s//\1/
  28684. q
  28685. }
  28686. /^X\(\/\/\)$/{
  28687. s//\1/
  28688. q
  28689. }
  28690. /^X\(\/\).*/{
  28691. s//\1/
  28692. q
  28693. }
  28694. s/.*/./; q'`
  28695. as_dir="$ac_dir"; as_fn_mkdir_p
  28696. ac_builddir=.
  28697. case "$ac_dir" in
  28698. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28699. *)
  28700. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  28701. # A ".." for each directory in $ac_dir_suffix.
  28702. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  28703. case $ac_top_builddir_sub in
  28704. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28705. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  28706. esac ;;
  28707. esac
  28708. ac_abs_top_builddir=$ac_pwd
  28709. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  28710. # for backward compatibility:
  28711. ac_top_builddir=$ac_top_build_prefix
  28712. case $srcdir in
  28713. .) # We are building in place.
  28714. ac_srcdir=.
  28715. ac_top_srcdir=$ac_top_builddir_sub
  28716. ac_abs_top_srcdir=$ac_pwd ;;
  28717. [\\/]* | ?:[\\/]* ) # Absolute name.
  28718. ac_srcdir=$srcdir$ac_dir_suffix;
  28719. ac_top_srcdir=$srcdir
  28720. ac_abs_top_srcdir=$srcdir ;;
  28721. *) # Relative name.
  28722. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  28723. ac_top_srcdir=$ac_top_build_prefix$srcdir
  28724. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  28725. esac
  28726. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  28727. case $ac_mode in
  28728. :F)
  28729. #
  28730. # CONFIG_FILE
  28731. #
  28732. _ACEOF
  28733. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28734. # If the template does not know about datarootdir, expand it.
  28735. # FIXME: This hack should be removed a few years after 2.60.
  28736. ac_datarootdir_hack=; ac_datarootdir_seen=
  28737. ac_sed_dataroot='
  28738. /datarootdir/ {
  28739. p
  28740. q
  28741. }
  28742. /@datadir@/p
  28743. /@docdir@/p
  28744. /@infodir@/p
  28745. /@localedir@/p
  28746. /@mandir@/p'
  28747. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  28748. *datarootdir*) ac_datarootdir_seen=yes;;
  28749. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  28750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  28751. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  28752. _ACEOF
  28753. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28754. ac_datarootdir_hack='
  28755. s&@datadir@&$datadir&g
  28756. s&@docdir@&$docdir&g
  28757. s&@infodir@&$infodir&g
  28758. s&@localedir@&$localedir&g
  28759. s&@mandir@&$mandir&g
  28760. s&\\\${datarootdir}&$datarootdir&g' ;;
  28761. esac
  28762. _ACEOF
  28763. # Neutralize VPATH when `$srcdir' = `.'.
  28764. # Shell code in configure.ac might set extrasub.
  28765. # FIXME: do we really want to maintain this feature?
  28766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28767. ac_sed_extra="$ac_vpsub
  28768. $extrasub
  28769. _ACEOF
  28770. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28771. :t
  28772. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  28773. s|@configure_input@|$ac_sed_conf_input|;t t
  28774. s&@top_builddir@&$ac_top_builddir_sub&;t t
  28775. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  28776. s&@srcdir@&$ac_srcdir&;t t
  28777. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  28778. s&@top_srcdir@&$ac_top_srcdir&;t t
  28779. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  28780. s&@builddir@&$ac_builddir&;t t
  28781. s&@abs_builddir@&$ac_abs_builddir&;t t
  28782. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  28783. $ac_datarootdir_hack
  28784. "
  28785. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  28786. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28787. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  28788. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  28789. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  28790. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  28791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  28792. which seems to be undefined. Please make sure it is defined" >&5
  28793. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  28794. which seems to be undefined. Please make sure it is defined" >&2;}
  28795. rm -f "$ac_tmp/stdin"
  28796. case $ac_file in
  28797. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  28798. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  28799. esac \
  28800. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28801. ;;
  28802. esac
  28803. done # for ac_tag
  28804. as_fn_exit 0
  28805. _ACEOF
  28806. ac_clean_files=$ac_clean_files_save
  28807. test $ac_write_fail = 0 ||
  28808. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28809. # configure is writing to config.log, and then calls config.status.
  28810. # config.status does its own redirection, appending to config.log.
  28811. # Unfortunately, on DOS this fails, as config.log is still kept open
  28812. # by configure, so config.status won't be able to write to it; its
  28813. # output is simply discarded. So we exec the FD to /dev/null,
  28814. # effectively closing config.log, so it can be properly (re)opened and
  28815. # appended to by config.status. When coming back to configure, we
  28816. # need to make the FD available again.
  28817. if test "$no_create" != yes; then
  28818. ac_cs_success=:
  28819. ac_config_status_args=
  28820. test "$silent" = yes &&
  28821. ac_config_status_args="$ac_config_status_args --quiet"
  28822. exec 5>/dev/null
  28823. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28824. exec 5>>config.log
  28825. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28826. # would make configure fail if this is the last instruction.
  28827. $ac_cs_success || as_fn_exit 1
  28828. fi
  28829. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28831. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28832. fi
  28833. # touch the config timestamp file set_soenv.stamp
  28834. if test ! -f set_soenv.stamp; then
  28835. echo > set_soenv.stamp
  28836. elif diff config_host.mk config_host.mk.last >/dev/null 2>&1; then
  28837. echo "Configuration unchanged - avoiding scp2 stamp update"
  28838. else
  28839. echo > set_soenv.stamp
  28840. fi
  28841. if test "$STALE_MAKE" = "TRUE" -a "$build_os" = "cygwin"; then
  28842. cat << _EOS
  28843. ****************************************************************************
  28844. WARNING:
  28845. Your make version is known to be horribly slow, and hard to debug
  28846. problems with. To get a reasonably functional make please do:
  28847. to install a pre-compiled binary make for cygwin
  28848. mkdir -p /opt/lo/bin
  28849. cd /opt/lo/bin
  28850. wget http://dev-www.libreoffice.org/bin/cygwin/make
  28851. chmod +x make
  28852. to install from source:
  28853. place yourself in a working directory of you choice.
  28854. git clone git://anongit.freedesktop.org/libreoffice/contrib/dev-tools
  28855. cd dev-tools/make-3.82-gbuild
  28856. ./configure --prefix=/opt/lo
  28857. make
  28858. sudo make install
  28859. Then re-run autogen.sh
  28860. Note: autogen.sh will try to use /opt/lo/bin/make if the environment variable GNUMAKE is not already defined.
  28861. Alternatively, you can install the 'new' make where ever you want and make sure that `which make` finds it.
  28862. _EOS
  28863. fi
  28864. cat << _EOF
  28865. ****************************************************************************
  28866. To build, issue:
  28867. $GNUMAKE
  28868. To install when the build is finished, issue:
  28869. $GNUMAKE install
  28870. If you want to develop LibreOffice, you might prefer:
  28871. $GNUMAKE dev-install
  28872. If you want to run the smoketest, issue:
  28873. $GNUMAKE check
  28874. ATTENTION: Env.Host.sh and Env.Build.sh are no more.
  28875. The environment is now in config_host.mk and config_build.mk (for cross-compile)
  28876. You do not need to source them, even for partial build.
  28877. run: make help
  28878. for details
  28879. _EOF