PageRenderTime 127ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 1ms

/scilab-master-1333395999/configure

#
Shell | 16138 lines | 15338 code | 387 blank | 413 comment | 564 complexity | 8fbc5d78d138cfe6781dc023a0cf9cb8 MD5 | raw file
Possible License(s): LGPL-3.0, BSD-3-Clause
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.68 for Scilab 5.
  5. #
  6. # Report bugs to <http://bugzilla.scilab.org/>.
  7. #
  8. #
  9. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  10. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  11. # Foundation, Inc.
  12. #
  13. #
  14. # This configure script is free software; the Free Software Foundation
  15. # gives unlimited permission to copy, distribute and modify it.
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. as_myself=
  89. case $0 in #((
  90. *[\\/]* ) as_myself=$0 ;;
  91. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  92. for as_dir in $PATH
  93. do
  94. IFS=$as_save_IFS
  95. test -z "$as_dir" && as_dir=.
  96. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  97. done
  98. IFS=$as_save_IFS
  99. ;;
  100. esac
  101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  102. # in which case we are not to be found in the path.
  103. if test "x$as_myself" = x; then
  104. as_myself=$0
  105. fi
  106. if test ! -f "$as_myself"; then
  107. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108. exit 1
  109. fi
  110. # Unset variables that we do not need and which cause bugs (e.g. in
  111. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  112. # suppresses any "Segmentation fault" message there. '((' could
  113. # trigger a bug in pdksh 5.2.14.
  114. for as_var in BASH_ENV ENV MAIL MAILPATH
  115. do eval test x\${$as_var+set} = xset \
  116. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  117. done
  118. PS1='$ '
  119. PS2='> '
  120. PS4='+ '
  121. # NLS nuisances.
  122. LC_ALL=C
  123. export LC_ALL
  124. LANGUAGE=C
  125. export LANGUAGE
  126. # CDPATH.
  127. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  128. if test "x$CONFIG_SHELL" = x; then
  129. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  130. emulate sh
  131. NULLCMD=:
  132. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  133. # is contrary to our usage. Disable this feature.
  134. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  135. setopt NO_GLOB_SUBST
  136. else
  137. case \`(set -o) 2>/dev/null\` in #(
  138. *posix*) :
  139. set -o posix ;; #(
  140. *) :
  141. ;;
  142. esac
  143. fi
  144. "
  145. as_required="as_fn_return () { (exit \$1); }
  146. as_fn_success () { as_fn_return 0; }
  147. as_fn_failure () { as_fn_return 1; }
  148. as_fn_ret_success () { return 0; }
  149. as_fn_ret_failure () { return 1; }
  150. exitcode=0
  151. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  152. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  153. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  154. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  155. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  156. else
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1"
  160. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  161. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  162. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  163. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  164. test \$(( 1 + 1 )) = 2 || exit 1
  165. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  166. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  169. PATH=/empty FPATH=/empty; export PATH FPATH
  170. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  171. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  172. if (eval "$as_required") 2>/dev/null; then :
  173. as_have_required=yes
  174. else
  175. as_have_required=no
  176. fi
  177. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  178. else
  179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  180. as_found=false
  181. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  182. do
  183. IFS=$as_save_IFS
  184. test -z "$as_dir" && as_dir=.
  185. as_found=:
  186. case $as_dir in #(
  187. /*)
  188. for as_base in sh bash ksh sh5; do
  189. # Try only shells that exist, to save several forks.
  190. as_shell=$as_dir/$as_base
  191. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$as_shell as_have_required=yes
  194. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  195. break 2
  196. fi
  197. fi
  198. done;;
  199. esac
  200. as_found=false
  201. done
  202. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  203. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  204. CONFIG_SHELL=$SHELL as_have_required=yes
  205. fi; }
  206. IFS=$as_save_IFS
  207. if test "x$CONFIG_SHELL" != x; then :
  208. # We cannot yet assume a decent shell, so we have to provide a
  209. # neutralization value for shells without unset; and this also
  210. # works around shells that cannot unset nonexistent variables.
  211. # Preserve -v and -x to the replacement shell.
  212. BASH_ENV=/dev/null
  213. ENV=/dev/null
  214. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  215. export CONFIG_SHELL
  216. case $- in # ((((
  217. *v*x* | *x*v* ) as_opts=-vx ;;
  218. *v* ) as_opts=-v ;;
  219. *x* ) as_opts=-x ;;
  220. * ) as_opts= ;;
  221. esac
  222. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  223. fi
  224. if test x$as_have_required = xno; then :
  225. $as_echo "$0: This script requires a shell more modern than all"
  226. $as_echo "$0: the shells that I found on your system."
  227. if test x${ZSH_VERSION+set} = xset ; then
  228. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  229. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  230. else
  231. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  232. $0: http://bugzilla.scilab.org/ about your system,
  233. $0: including any error possibly output before this
  234. $0: message. Then install a modern shell, or manually run
  235. $0: the script under such a shell if you do have one."
  236. fi
  237. exit 1
  238. fi
  239. fi
  240. fi
  241. SHELL=${CONFIG_SHELL-/bin/sh}
  242. export SHELL
  243. # Unset more variables known to interfere with behavior of common tools.
  244. CLICOLOR_FORCE= GREP_OPTIONS=
  245. unset CLICOLOR_FORCE GREP_OPTIONS
  246. ## --------------------- ##
  247. ## M4sh Shell Functions. ##
  248. ## --------------------- ##
  249. # as_fn_unset VAR
  250. # ---------------
  251. # Portably unset VAR.
  252. as_fn_unset ()
  253. {
  254. { eval $1=; unset $1;}
  255. }
  256. as_unset=as_fn_unset
  257. # as_fn_set_status STATUS
  258. # -----------------------
  259. # Set $? to STATUS, without forking.
  260. as_fn_set_status ()
  261. {
  262. return $1
  263. } # as_fn_set_status
  264. # as_fn_exit STATUS
  265. # -----------------
  266. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  267. as_fn_exit ()
  268. {
  269. set +e
  270. as_fn_set_status $1
  271. exit $1
  272. } # as_fn_exit
  273. # as_fn_mkdir_p
  274. # -------------
  275. # Create "$as_dir" as a directory, including parents if necessary.
  276. as_fn_mkdir_p ()
  277. {
  278. case $as_dir in #(
  279. -*) as_dir=./$as_dir;;
  280. esac
  281. test -d "$as_dir" || eval $as_mkdir_p || {
  282. as_dirs=
  283. while :; do
  284. case $as_dir in #(
  285. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  286. *) as_qdir=$as_dir;;
  287. esac
  288. as_dirs="'$as_qdir' $as_dirs"
  289. as_dir=`$as_dirname -- "$as_dir" ||
  290. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  291. X"$as_dir" : 'X\(//\)[^/]' \| \
  292. X"$as_dir" : 'X\(//\)$' \| \
  293. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  294. $as_echo X"$as_dir" |
  295. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)[^/].*/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\/\)$/{
  304. s//\1/
  305. q
  306. }
  307. /^X\(\/\).*/{
  308. s//\1/
  309. q
  310. }
  311. s/.*/./; q'`
  312. test -d "$as_dir" && break
  313. done
  314. test -z "$as_dirs" || eval "mkdir $as_dirs"
  315. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  316. } # as_fn_mkdir_p
  317. # as_fn_append VAR VALUE
  318. # ----------------------
  319. # Append the text in VALUE to the end of the definition contained in VAR. Take
  320. # advantage of any shell optimizations that allow amortized linear growth over
  321. # repeated appends, instead of the typical quadratic growth present in naive
  322. # implementations.
  323. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  324. eval 'as_fn_append ()
  325. {
  326. eval $1+=\$2
  327. }'
  328. else
  329. as_fn_append ()
  330. {
  331. eval $1=\$$1\$2
  332. }
  333. fi # as_fn_append
  334. # as_fn_arith ARG...
  335. # ------------------
  336. # Perform arithmetic evaluation on the ARGs, and store the result in the
  337. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  338. # must be portable across $(()) and expr.
  339. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  340. eval 'as_fn_arith ()
  341. {
  342. as_val=$(( $* ))
  343. }'
  344. else
  345. as_fn_arith ()
  346. {
  347. as_val=`expr "$@" || test $? -eq 1`
  348. }
  349. fi # as_fn_arith
  350. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  351. # ----------------------------------------
  352. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  353. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  354. # script with STATUS, using 1 if that was 0.
  355. as_fn_error ()
  356. {
  357. as_status=$1; test $as_status -eq 0 && as_status=1
  358. if test "$4"; then
  359. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  360. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  361. fi
  362. $as_echo "$as_me: error: $2" >&2
  363. as_fn_exit $as_status
  364. } # as_fn_error
  365. if expr a : '\(a\)' >/dev/null 2>&1 &&
  366. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  367. as_expr=expr
  368. else
  369. as_expr=false
  370. fi
  371. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  372. as_basename=basename
  373. else
  374. as_basename=false
  375. fi
  376. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  377. as_dirname=dirname
  378. else
  379. as_dirname=false
  380. fi
  381. as_me=`$as_basename -- "$0" ||
  382. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  383. X"$0" : 'X\(//\)$' \| \
  384. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  385. $as_echo X/"$0" |
  386. sed '/^.*\/\([^/][^/]*\)\/*$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\/\)$/{
  391. s//\1/
  392. q
  393. }
  394. /^X\/\(\/\).*/{
  395. s//\1/
  396. q
  397. }
  398. s/.*/./; q'`
  399. # Avoid depending upon Character Ranges.
  400. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  401. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  402. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  403. as_cr_digits='0123456789'
  404. as_cr_alnum=$as_cr_Letters$as_cr_digits
  405. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  406. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  407. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  408. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  409. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  410. sed -n '
  411. p
  412. /[$]LINENO/=
  413. ' <$as_myself |
  414. sed '
  415. s/[$]LINENO.*/&-/
  416. t lineno
  417. b
  418. :lineno
  419. N
  420. :loop
  421. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  422. t loop
  423. s/-\n.*//
  424. ' >$as_me.lineno &&
  425. chmod +x "$as_me.lineno" ||
  426. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  427. # Don't try to exec as it changes $[0], causing all sort of problems
  428. # (the dirname of $[0] is not the place where we might find the
  429. # original and so on. Autoconf is especially sensitive to this).
  430. . "./$as_me.lineno"
  431. # Exit status is that of the last command.
  432. exit
  433. }
  434. ECHO_C= ECHO_N= ECHO_T=
  435. case `echo -n x` in #(((((
  436. -n*)
  437. case `echo 'xy\c'` in
  438. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  439. xy) ECHO_C='\c';;
  440. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  441. ECHO_T=' ';;
  442. esac;;
  443. *)
  444. ECHO_N='-n';;
  445. esac
  446. rm -f conf$$ conf$$.exe conf$$.file
  447. if test -d conf$$.dir; then
  448. rm -f conf$$.dir/conf$$.file
  449. else
  450. rm -f conf$$.dir
  451. mkdir conf$$.dir 2>/dev/null
  452. fi
  453. if (echo >conf$$.file) 2>/dev/null; then
  454. if ln -s conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s='ln -s'
  456. # ... but there are two gotchas:
  457. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  458. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  459. # In both cases, we have to default to `cp -p'.
  460. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  461. as_ln_s='cp -p'
  462. elif ln conf$$.file conf$$ 2>/dev/null; then
  463. as_ln_s=ln
  464. else
  465. as_ln_s='cp -p'
  466. fi
  467. else
  468. as_ln_s='cp -p'
  469. fi
  470. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  471. rmdir conf$$.dir 2>/dev/null
  472. if mkdir -p . 2>/dev/null; then
  473. as_mkdir_p='mkdir -p "$as_dir"'
  474. else
  475. test -d ./-p && rmdir ./-p
  476. as_mkdir_p=false
  477. fi
  478. if test -x / >/dev/null 2>&1; then
  479. as_test_x='test -x'
  480. else
  481. if ls -dL / >/dev/null 2>&1; then
  482. as_ls_L_option=L
  483. else
  484. as_ls_L_option=
  485. fi
  486. as_test_x='
  487. eval sh -c '\''
  488. if test -d "$1"; then
  489. test -d "$1/.";
  490. else
  491. case $1 in #(
  492. -*)set "./$1";;
  493. esac;
  494. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  495. ???[sx]*):;;*)false;;esac;fi
  496. '\'' sh
  497. '
  498. fi
  499. as_executable_p=$as_test_x
  500. # Sed expression to map a string onto a valid CPP name.
  501. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  502. # Sed expression to map a string onto a valid variable name.
  503. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  504. SHELL=${CONFIG_SHELL-/bin/sh}
  505. test -n "$DJDIR" || exec 7<&0 </dev/null
  506. exec 6>&1
  507. # Name of the host.
  508. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  509. # so uname gets run too.
  510. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  511. #
  512. # Initializations.
  513. #
  514. ac_default_prefix=/usr/local
  515. ac_clean_files=
  516. ac_config_libobj_dir=.
  517. LIBOBJS=
  518. cross_compiling=no
  519. subdirs=
  520. MFLAGS=
  521. MAKEFLAGS=
  522. # Identity of this package.
  523. PACKAGE_NAME='Scilab'
  524. PACKAGE_TARNAME='scilab'
  525. PACKAGE_VERSION='5'
  526. PACKAGE_STRING='Scilab 5'
  527. PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
  528. PACKAGE_URL=''
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. gt_needs=
  565. ac_subst_vars='am__EXEEXT_FALSE
  566. am__EXEEXT_TRUE
  567. LTLIBOBJS
  568. CCACHE
  569. SPLINT
  570. ENABLE_STATIC_FALSE
  571. ENABLE_STATIC_TRUE
  572. CXXCPP
  573. OTOOL64
  574. OTOOL
  575. LIPO
  576. NMEDIT
  577. DSYMUTIL
  578. RANLIB
  579. AR
  580. OBJDUMP
  581. ac_ct_DUMPBIN
  582. DUMPBIN
  583. LD
  584. FGREP
  585. SED
  586. LIBTOOL
  587. GRAPHICS_ENABLE
  588. DEMOTOOLS_ENABLE
  589. COMPILATION_TESTS_FALSE
  590. COMPILATION_TESTS_TRUE
  591. JAVASCI_ENABLE
  592. INSTALL_HELP_XML_FALSE
  593. INSTALL_HELP_XML_TRUE
  594. BUILD_HELP_FALSE
  595. BUILD_HELP_TRUE
  596. HELP_ENABLE
  597. DOCBOOK_ROOT
  598. JLATEXMATH_FOP
  599. SAXON
  600. MATIO_FALSE
  601. MATIO_TRUE
  602. MATIO_ENABLE
  603. MATIO_LIBS
  604. MATIO_CFLAGS
  605. TCLTK_FALSE
  606. TCLTK_TRUE
  607. WITH_TKSCI
  608. TK_INC_PATH
  609. TCL_INC_PATH
  610. TCLTK_LIBS
  611. X_EXTRA_LIBS
  612. X_LIBS
  613. X_PRE_LIBS
  614. X_CFLAGS
  615. XMKMF
  616. PCRE_VERSION
  617. PCRE_LIBS
  618. PCRE_CFLAGS
  619. PCRE_CONFIG
  620. UMFPACK_FALSE
  621. UMFPACK_TRUE
  622. UMFPACK_ENABLE
  623. UMFPACK_LIB
  624. ARPACK_NG_FALSE
  625. ARPACK_NG_TRUE
  626. ARPACK_LIBS
  627. LAPACK_LIBS
  628. BLAS_LIBS
  629. FLIBS
  630. GENERATE_LOCALIZATION_FILES_FALSE
  631. GENERATE_LOCALIZATION_FILES_TRUE
  632. MSGCAT
  633. ALL_LINGUAS_DOC
  634. ALL_LINGUAS
  635. XML_VERSION
  636. XML_LIBS
  637. XML_FLAGS
  638. XML_CONFIG
  639. OPENMP_FALSE
  640. OPENMP_TRUE
  641. OPENMP_LIBS
  642. OPENMP_CXXFLAGS
  643. OPENMP_CFLAGS
  644. OPENMP_ENABLE
  645. FFTW_FALSE
  646. FFTW_TRUE
  647. FFTW_ENABLE
  648. FFTW3_LIB
  649. POSUB
  650. LTLIBINTL
  651. LIBINTL
  652. INTLLIBS
  653. LTLIBICONV
  654. LIBICONV
  655. INTL_MACOSX_LIBS
  656. XGETTEXT_EXTRA_OPTIONS
  657. MSGMERGE
  658. XGETTEXT_015
  659. XGETTEXT
  660. GMSGFMT_015
  661. MSGFMT_015
  662. GMSGFMT
  663. MSGFMT
  664. GETTEXT_MACRO_VERSION
  665. USE_NLS
  666. POW_LIB
  667. LIBM
  668. GUI_ENABLE
  669. GIWS_FALSE
  670. GIWS_TRUE
  671. SWIG_FALSE
  672. SWIG_TRUE
  673. JAVASCI_FALSE
  674. JAVASCI_TRUE
  675. GUI_FALSE
  676. GUI_TRUE
  677. NEED_JAVA_FALSE
  678. NEED_JAVA_TRUE
  679. JAVA_ENABLE
  680. GIWS_BIN
  681. PYTHON
  682. SWIG_JAVA
  683. SWIG_RUNTIME_LIBS_DIR
  684. SWIG_BIN
  685. JAVAC_DEBUG
  686. JAVA_HOME
  687. JAVA_JNI_LIBS
  688. JAVA_JNI_INCLUDE
  689. JUNIT
  690. BSH
  691. QDOX
  692. JCOMMANDER
  693. TESTNG
  694. ANTLR
  695. COMMONS_BEANUTILS
  696. CHECKSTYLE
  697. JLATEXMATH
  698. COMMONS_LOGGING
  699. XML_APIS_EXT
  700. AVALON_FRAMEWORK
  701. XMLGRAPHICS_COMMONS
  702. COMMONS_IO
  703. BATIK
  704. FOP
  705. JEUCLID_CORE
  706. JROSETTA_ENGINE
  707. JROSETTA_API
  708. JHALL
  709. GLUEGEN_RT
  710. JOGL
  711. SKINLF
  712. LOOKS
  713. FLEXDOCK
  714. JHDF5
  715. JGRAPHX
  716. ANT
  717. JDB
  718. JAVADOC
  719. JAR
  720. JAVAH
  721. JAVA_G
  722. JAVA
  723. JAVAC
  724. XCOS_FALSE
  725. XCOS_TRUE
  726. OCAML_FALSE
  727. OCAML_TRUE
  728. XCOS_ENABLE
  729. WITH_OCAML
  730. OCAMLLEX
  731. OCAMLYACC
  732. OCAMLDEP
  733. OCAMLOPT
  734. OCAMLC
  735. RT_LIB
  736. HDF5_FALSE
  737. HDF5_TRUE
  738. HDF5_ENABLE
  739. HDF5_CFLAGS
  740. HDF5_LIBS
  741. NM
  742. USE_DYNAMIC_STACK_FALSE
  743. USE_DYNAMIC_STACK_TRUE
  744. IS_64_BITS_CPU_FALSE
  745. IS_64_BITS_CPU_TRUE
  746. CODE_COVERAGE_FALSE
  747. CODE_COVERAGE_TRUE
  748. GENHTML
  749. LCOV
  750. IS_MIPS_SGI_IRIX_FALSE
  751. IS_MIPS_SGI_IRIX_TRUE
  752. IS_SOLARIS_FALSE
  753. IS_SOLARIS_TRUE
  754. IS_SPARC_FALSE
  755. IS_SPARC_TRUE
  756. IS_HPUX_FALSE
  757. IS_HPUX_TRUE
  758. IS_MACOSX_FALSE
  759. IS_MACOSX_TRUE
  760. LOGGING_LEVEL
  761. cxx_present
  762. am__fastdepCXX_FALSE
  763. am__fastdepCXX_TRUE
  764. CXXDEPMODE
  765. ac_ct_CXX
  766. CXXFLAGS
  767. CXX
  768. ac_ct_F77
  769. FFLAGS
  770. F77
  771. PKG_CONFIG
  772. am__fastdepCC_FALSE
  773. am__fastdepCC_TRUE
  774. CCDEPMODE
  775. am__nodep
  776. AMDEPBACKSLASH
  777. AMDEP_FALSE
  778. AMDEP_TRUE
  779. am__quote
  780. am__include
  781. DEPDIR
  782. am__untar
  783. am__tar
  784. AMTAR
  785. am__leading_dot
  786. SET_MAKE
  787. AWK
  788. mkdir_p
  789. MKDIR_P
  790. MAKEINFO
  791. AUTOHEADER
  792. AUTOMAKE
  793. AUTOCONF
  794. ACLOCAL
  795. VERSION
  796. PACKAGE
  797. CYGPATH_W
  798. am__isrc
  799. MAINT
  800. MAINTAINER_MODE_FALSE
  801. MAINTAINER_MODE_TRUE
  802. LIBOBJS
  803. RELOCATABLE_VIA_LD_FALSE
  804. RELOCATABLE_VIA_LD_TRUE
  805. SET_RELOCATABLE
  806. EGREP
  807. GREP
  808. CPP
  809. RELOCATABLE
  810. host_os
  811. host_vendor
  812. host_cpu
  813. host
  814. build_os
  815. build_vendor
  816. build_cpu
  817. build
  818. INSTALL_DATA
  819. INSTALL_SCRIPT
  820. INSTALL_PROGRAM
  821. OBJEXT
  822. EXEEXT
  823. ac_ct_CC
  824. CPPFLAGS
  825. LDFLAGS
  826. CFLAGS
  827. CC
  828. LN_S
  829. INSTALL_STRIP_PROGRAM
  830. STRIP
  831. install_sh
  832. SCILAB_BINARY_VERSION
  833. SCILAB_LIBRARY_VERSION
  834. SCILAB_VERSION_MAINTENANCE
  835. SCILAB_VERSION_MINOR
  836. SCILAB_VERSION_MAJOR
  837. target_alias
  838. host_alias
  839. build_alias
  840. LIBS
  841. ECHO_T
  842. ECHO_N
  843. ECHO_C
  844. DEFS
  845. mandir
  846. localedir
  847. libdir
  848. psdir
  849. pdfdir
  850. dvidir
  851. htmldir
  852. infodir
  853. docdir
  854. oldincludedir
  855. includedir
  856. localstatedir
  857. sharedstatedir
  858. sysconfdir
  859. datadir
  860. datarootdir
  861. libexecdir
  862. sbindir
  863. bindir
  864. program_transform_name
  865. prefix
  866. exec_prefix
  867. PACKAGE_URL
  868. PACKAGE_BUGREPORT
  869. PACKAGE_STRING
  870. PACKAGE_VERSION
  871. PACKAGE_TARNAME
  872. PACKAGE_NAME
  873. PATH_SEPARATOR
  874. SHELL'
  875. ac_subst_files=''
  876. ac_user_opts='
  877. enable_option_checking
  878. enable_largefile
  879. with_gnu_ld
  880. enable_relocatable
  881. enable_rpath
  882. enable_maintainer_mode
  883. enable_dependency_tracking
  884. enable_debug
  885. enable_debug_C
  886. enable_debug_CXX
  887. enable_debug_java
  888. enable_debug_fortran
  889. enable_debug_linker
  890. enable_code_coverage
  891. enable_stop_on_warning
  892. with_gcc
  893. with_gfortran
  894. with_intelcompilers
  895. with_tk
  896. with_javasci
  897. enable_compilation_tests
  898. with_gui
  899. enable_build_swig
  900. enable_build_giws
  901. with_fink_prefix
  902. with_hdf5
  903. with_hdf5_include
  904. with_hdf5_library
  905. with_xcos
  906. with_modelica
  907. with_jdk
  908. with_ant
  909. enable_nls
  910. with_libiconv_prefix
  911. with_libintl_prefix
  912. with_fftw
  913. with_fftw_include
  914. with_fftw_library
  915. with_openmp
  916. with_libxml2
  917. enable_build_localization
  918. with_blas_library
  919. with_lapack_library
  920. with_arpack_ng
  921. with_arpack_library
  922. with_umfpack
  923. with_umfpack_library
  924. with_umfpack_include
  925. with_pcre
  926. with_tcl_library
  927. with_tcl_include
  928. with_tk_library
  929. with_tk_include
  930. with_x
  931. with_matio
  932. with_matio_include
  933. with_matio_library
  934. enable_build_help
  935. with_docbook
  936. with_install_help_xml
  937. enable_static
  938. enable_shared
  939. with_pic
  940. enable_fast_install
  941. enable_libtool_lock
  942. '
  943. ac_precious_vars='build_alias
  944. host_alias
  945. target_alias
  946. CC
  947. CFLAGS
  948. LDFLAGS
  949. LIBS
  950. CPPFLAGS
  951. CPP
  952. PKG_CONFIG
  953. F77
  954. FFLAGS
  955. CXX
  956. CXXFLAGS
  957. CCC
  958. PCRE_CFLAGS
  959. PCRE_LIBS
  960. XMKMF
  961. MATIO_CFLAGS
  962. MATIO_LIBS
  963. CXXCPP'
  964. # Initialize some variables set by options.
  965. ac_init_help=
  966. ac_init_version=false
  967. ac_unrecognized_opts=
  968. ac_unrecognized_sep=
  969. # The variables have the same names as the options, with
  970. # dashes changed to underlines.
  971. cache_file=/dev/null
  972. exec_prefix=NONE
  973. no_create=
  974. no_recursion=
  975. prefix=NONE
  976. program_prefix=NONE
  977. program_suffix=NONE
  978. program_transform_name=s,x,x,
  979. silent=
  980. site=
  981. srcdir=
  982. verbose=
  983. x_includes=NONE
  984. x_libraries=NONE
  985. # Installation directory options.
  986. # These are left unexpanded so users can "make install exec_prefix=/foo"
  987. # and all the variables that are supposed to be based on exec_prefix
  988. # by default will actually change.
  989. # Use braces instead of parens because sh, perl, etc. also accept them.
  990. # (The list follows the same order as the GNU Coding Standards.)
  991. bindir='${exec_prefix}/bin'
  992. sbindir='${exec_prefix}/sbin'
  993. libexecdir='${exec_prefix}/libexec'
  994. datarootdir='${prefix}/share'
  995. datadir='${datarootdir}'
  996. sysconfdir='${prefix}/etc'
  997. sharedstatedir='${prefix}/com'
  998. localstatedir='${prefix}/var'
  999. includedir='${prefix}/include'
  1000. oldincludedir='/usr/include'
  1001. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1002. infodir='${datarootdir}/info'
  1003. htmldir='${docdir}'
  1004. dvidir='${docdir}'
  1005. pdfdir='${docdir}'
  1006. psdir='${docdir}'
  1007. libdir='${exec_prefix}/lib'
  1008. localedir='${datarootdir}/locale'
  1009. mandir='${datarootdir}/man'
  1010. ac_prev=
  1011. ac_dashdash=
  1012. for ac_option
  1013. do
  1014. # If the previous option needs an argument, assign it.
  1015. if test -n "$ac_prev"; then
  1016. eval $ac_prev=\$ac_option
  1017. ac_prev=
  1018. continue
  1019. fi
  1020. case $ac_option in
  1021. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1022. *=) ac_optarg= ;;
  1023. *) ac_optarg=yes ;;
  1024. esac
  1025. # Accept the important Cygnus configure options, so we can diagnose typos.
  1026. case $ac_dashdash$ac_option in
  1027. --)
  1028. ac_dashdash=yes ;;
  1029. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1030. ac_prev=bindir ;;
  1031. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1032. bindir=$ac_optarg ;;
  1033. -build | --build | --buil | --bui | --bu)
  1034. ac_prev=build_alias ;;
  1035. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1036. build_alias=$ac_optarg ;;
  1037. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1038. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1039. ac_prev=cache_file ;;
  1040. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1041. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1042. cache_file=$ac_optarg ;;
  1043. --config-cache | -C)
  1044. cache_file=config.cache ;;
  1045. -datadir | --datadir | --datadi | --datad)
  1046. ac_prev=datadir ;;
  1047. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1048. datadir=$ac_optarg ;;
  1049. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1050. | --dataroo | --dataro | --datar)
  1051. ac_prev=datarootdir ;;
  1052. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1053. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1054. datarootdir=$ac_optarg ;;
  1055. -disable-* | --disable-*)
  1056. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1057. # Reject names that are not valid shell variable names.
  1058. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1059. as_fn_error $? "invalid feature name: $ac_useropt"
  1060. ac_useropt_orig=$ac_useropt
  1061. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1062. case $ac_user_opts in
  1063. *"
  1064. "enable_$ac_useropt"
  1065. "*) ;;
  1066. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1067. ac_unrecognized_sep=', ';;
  1068. esac
  1069. eval enable_$ac_useropt=no ;;
  1070. -docdir | --docdir | --docdi | --doc | --do)
  1071. ac_prev=docdir ;;
  1072. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1073. docdir=$ac_optarg ;;
  1074. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1075. ac_prev=dvidir ;;
  1076. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1077. dvidir=$ac_optarg ;;
  1078. -enable-* | --enable-*)
  1079. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1080. # Reject names that are not valid shell variable names.
  1081. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1082. as_fn_error $? "invalid feature name: $ac_useropt"
  1083. ac_useropt_orig=$ac_useropt
  1084. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1085. case $ac_user_opts in
  1086. *"
  1087. "enable_$ac_useropt"
  1088. "*) ;;
  1089. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1090. ac_unrecognized_sep=', ';;
  1091. esac
  1092. eval enable_$ac_useropt=\$ac_optarg ;;
  1093. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1094. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1095. | --exec | --exe | --ex)
  1096. ac_prev=exec_prefix ;;
  1097. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1098. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1099. | --exec=* | --exe=* | --ex=*)
  1100. exec_prefix=$ac_optarg ;;
  1101. -gas | --gas | --ga | --g)
  1102. # Obsolete; use --with-gas.
  1103. with_gas=yes ;;
  1104. -help | --help | --hel | --he | -h)
  1105. ac_init_help=long ;;
  1106. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1107. ac_init_help=recursive ;;
  1108. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1109. ac_init_help=short ;;
  1110. -host | --host | --hos | --ho)
  1111. ac_prev=host_alias ;;
  1112. -host=* | --host=* | --hos=* | --ho=*)
  1113. host_alias=$ac_optarg ;;
  1114. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1115. ac_prev=htmldir ;;
  1116. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1117. | --ht=*)
  1118. htmldir=$ac_optarg ;;
  1119. -includedir | --includedir | --includedi | --included | --include \
  1120. | --includ | --inclu | --incl | --inc)
  1121. ac_prev=includedir ;;
  1122. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1123. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1124. includedir=$ac_optarg ;;
  1125. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1126. ac_prev=infodir ;;
  1127. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1128. infodir=$ac_optarg ;;
  1129. -libdir | --libdir | --libdi | --libd)
  1130. ac_prev=libdir ;;
  1131. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1132. libdir=$ac_optarg ;;
  1133. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1134. | --libexe | --libex | --libe)
  1135. ac_prev=libexecdir ;;
  1136. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1137. | --libexe=* | --libex=* | --libe=*)
  1138. libexecdir=$ac_optarg ;;
  1139. -localedir | --localedir | --localedi | --localed | --locale)
  1140. ac_prev=localedir ;;
  1141. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1142. localedir=$ac_optarg ;;
  1143. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1144. | --localstate | --localstat | --localsta | --localst | --locals)
  1145. ac_prev=localstatedir ;;
  1146. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1147. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1148. localstatedir=$ac_optarg ;;
  1149. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1150. ac_prev=mandir ;;
  1151. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1152. mandir=$ac_optarg ;;
  1153. -nfp | --nfp | --nf)
  1154. # Obsolete; use --without-fp.
  1155. with_fp=no ;;
  1156. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1157. | --no-cr | --no-c | -n)
  1158. no_create=yes ;;
  1159. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1160. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1161. no_recursion=yes ;;
  1162. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1163. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1164. | --oldin | --oldi | --old | --ol | --o)
  1165. ac_prev=oldincludedir ;;
  1166. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1167. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1168. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1169. oldincludedir=$ac_optarg ;;
  1170. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1171. ac_prev=prefix ;;
  1172. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1173. prefix=$ac_optarg ;;
  1174. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1175. | --program-pre | --program-pr | --program-p)
  1176. ac_prev=program_prefix ;;
  1177. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1178. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1179. program_prefix=$ac_optarg ;;
  1180. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1181. | --program-suf | --program-su | --program-s)
  1182. ac_prev=program_suffix ;;
  1183. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1184. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1185. program_suffix=$ac_optarg ;;
  1186. -program-transform-name | --program-transform-name \
  1187. | --program-transform-nam | --program-transform-na \
  1188. | --program-transform-n | --program-transform- \
  1189. | --program-transform | --program-transfor \
  1190. | --program-transfo | --program-transf \
  1191. | --program-trans | --program-tran \
  1192. | --progr-tra | --program-tr | --program-t)
  1193. ac_prev=program_transform_name ;;
  1194. -program-transform-name=* | --program-transform-name=* \
  1195. | --program-transform-nam=* | --program-transform-na=* \
  1196. | --program-transform-n=* | --program-transform-=* \
  1197. | --program-transform=* | --program-transfor=* \
  1198. | --program-transfo=* | --program-transf=* \
  1199. | --program-trans=* | --program-tran=* \
  1200. | --progr-tra=* | --program-tr=* | --program-t=*)
  1201. program_transform_name=$ac_optarg ;;
  1202. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1203. ac_prev=pdfdir ;;
  1204. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1205. pdfdir=$ac_optarg ;;
  1206. -psdir | --psdir | --psdi | --psd | --ps)
  1207. ac_prev=psdir ;;
  1208. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1209. psdir=$ac_optarg ;;
  1210. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1211. | -silent | --silent | --silen | --sile | --sil)
  1212. silent=yes ;;
  1213. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1214. ac_prev=sbindir ;;
  1215. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1216. | --sbi=* | --sb=*)
  1217. sbindir=$ac_optarg ;;
  1218. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1219. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1220. | --sharedst | --shareds | --shared | --share | --shar \
  1221. | --sha | --sh)
  1222. ac_prev=sharedstatedir ;;
  1223. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1224. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1225. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1226. | --sha=* | --sh=*)
  1227. sharedstatedir=$ac_optarg ;;
  1228. -site | --site | --sit)
  1229. ac_prev=site ;;
  1230. -site=* | --site=* | --sit=*)
  1231. site=$ac_optarg ;;
  1232. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1233. ac_prev=srcdir ;;
  1234. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1235. srcdir=$ac_optarg ;;
  1236. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1237. | --syscon | --sysco | --sysc | --sys | --sy)
  1238. ac_prev=sysconfdir ;;
  1239. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1240. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1241. sysconfdir=$ac_optarg ;;
  1242. -target | --target | --targe | --targ | --tar | --ta | --t)
  1243. ac_prev=target_alias ;;
  1244. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1245. target_alias=$ac_optarg ;;
  1246. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1247. verbose=yes ;;
  1248. -version | --version | --versio | --versi | --vers | -V)
  1249. ac_init_version=: ;;
  1250. -with-* | --with-*)
  1251. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1252. # Reject names that are not valid shell variable names.
  1253. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1254. as_fn_error $? "invalid package name: $ac_useropt"
  1255. ac_useropt_orig=$ac_useropt
  1256. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1257. case $ac_user_opts in
  1258. *"
  1259. "with_$ac_useropt"
  1260. "*) ;;
  1261. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1262. ac_unrecognized_sep=', ';;
  1263. esac
  1264. eval with_$ac_useropt=\$ac_optarg ;;
  1265. -without-* | --without-*)
  1266. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1267. # Reject names that are not valid shell variable names.
  1268. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1269. as_fn_error $? "invalid package name: $ac_useropt"
  1270. ac_useropt_orig=$ac_useropt
  1271. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1272. case $ac_user_opts in
  1273. *"
  1274. "with_$ac_useropt"
  1275. "*) ;;
  1276. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1277. ac_unrecognized_sep=', ';;
  1278. esac
  1279. eval with_$ac_useropt=no ;;
  1280. --x)
  1281. # Obsolete; use --with-x.
  1282. with_x=yes ;;
  1283. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1284. | --x-incl | --x-inc | --x-in | --x-i)
  1285. ac_prev=x_includes ;;
  1286. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1287. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1288. x_includes=$ac_optarg ;;
  1289. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1290. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1291. ac_prev=x_libraries ;;
  1292. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1293. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1294. x_libraries=$ac_optarg ;;
  1295. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1296. Try \`$0 --help' for more information"
  1297. ;;
  1298. *=*)
  1299. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1300. # Reject names that are not valid shell variable names.
  1301. case $ac_envvar in #(
  1302. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1303. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1304. esac
  1305. eval $ac_envvar=\$ac_optarg
  1306. export $ac_envvar ;;
  1307. *)
  1308. # FIXME: should be removed in autoconf 3.0.
  1309. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1310. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1311. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1312. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1313. ;;
  1314. esac
  1315. done
  1316. if test -n "$ac_prev"; then
  1317. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1318. as_fn_error $? "missing argument to $ac_option"
  1319. fi
  1320. if test -n "$ac_unrecognized_opts"; then
  1321. case $enable_option_checking in
  1322. no) ;;
  1323. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1324. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1325. esac
  1326. fi
  1327. # Check all directory arguments for consistency.
  1328. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1329. datadir sysconfdir sharedstatedir localstatedir includedir \
  1330. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1331. libdir localedir mandir
  1332. do
  1333. eval ac_val=\$$ac_var
  1334. # Remove trailing slashes.
  1335. case $ac_val in
  1336. */ )
  1337. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1338. eval $ac_var=\$ac_val;;
  1339. esac
  1340. # Be sure to have absolute directory names.
  1341. case $ac_val in
  1342. [\\/$]* | ?:[\\/]* ) continue;;
  1343. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1344. esac
  1345. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1346. done
  1347. # There might be people who depend on the old broken behavior: `$host'
  1348. # used to hold the argument of --host etc.
  1349. # FIXME: To remove some day.
  1350. build=$build_alias
  1351. host=$host_alias
  1352. target=$target_alias
  1353. # FIXME: To remove some day.
  1354. if test "x$host_alias" != x; then
  1355. if test "x$build_alias" = x; then
  1356. cross_compiling=maybe
  1357. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1358. If a cross compiler is detected then cross compile mode will be used" >&2
  1359. elif test "x$build_alias" != "x$host_alias"; then
  1360. cross_compiling=yes
  1361. fi
  1362. fi
  1363. ac_tool_prefix=
  1364. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1365. test "$silent" = yes && exec 6>/dev/null
  1366. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1367. ac_ls_di=`ls -di .` &&
  1368. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1369. as_fn_error $? "working directory cannot be determined"
  1370. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1371. as_fn_error $? "pwd does not report name of working directory"
  1372. # Find the source files, if location was not specified.
  1373. if test -z "$srcdir"; then
  1374. ac_srcdir_defaulted=yes
  1375. # Try the directory containing this script, then the parent directory.
  1376. ac_confdir=`$as_dirname -- "$as_myself" ||
  1377. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1378. X"$as_myself" : 'X\(//\)[^/]' \| \
  1379. X"$as_myself" : 'X\(//\)$' \| \
  1380. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1381. $as_echo X"$as_myself" |
  1382. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1383. s//\1/
  1384. q
  1385. }
  1386. /^X\(\/\/\)[^/].*/{
  1387. s//\1/
  1388. q
  1389. }
  1390. /^X\(\/\/\)$/{
  1391. s//\1/
  1392. q
  1393. }
  1394. /^X\(\/\).*/{
  1395. s//\1/
  1396. q
  1397. }
  1398. s/.*/./; q'`
  1399. srcdir=$ac_confdir
  1400. if test ! -r "$srcdir/$ac_unique_file"; then
  1401. srcdir=..
  1402. fi
  1403. else
  1404. ac_srcdir_defaulted=no
  1405. fi
  1406. if test ! -r "$srcdir/$ac_unique_file"; then
  1407. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1408. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1409. fi
  1410. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1411. ac_abs_confdir=`(
  1412. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1413. pwd)`
  1414. # When building in place, set srcdir=.
  1415. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1416. srcdir=.
  1417. fi
  1418. # Remove unnecessary trailing slashes from srcdir.
  1419. # Double slashes in file names in object file debugging info
  1420. # mess up M-x gdb in Emacs.
  1421. case $srcdir in
  1422. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1423. esac
  1424. for ac_var in $ac_precious_vars; do
  1425. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1426. eval ac_env_${ac_var}_value=\$${ac_var}
  1427. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1428. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1429. done
  1430. #
  1431. # Report the --help message.
  1432. #
  1433. if test "$ac_init_help" = "long"; then
  1434. # Omit some internal or obsolete options to make the list less imposing.
  1435. # This message is too long to be a string in the A/UX 3.1 sh.
  1436. cat <<_ACEOF
  1437. \`configure' configures Scilab 5 to adapt to many kinds of systems.
  1438. Usage: $0 [OPTION]... [VAR=VALUE]...
  1439. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1440. VAR=VALUE. See below for descriptions of some of the useful variables.
  1441. Defaults for the options are specified in brackets.
  1442. Configuration:
  1443. -h, --help display this help and exit
  1444. --help=short display options specific to this package
  1445. --help=recursive display the short help of all the included packages
  1446. -V, --version display version information and exit
  1447. -q, --quiet, --silent do not print \`checking ...' messages
  1448. --cache-file=FILE cache test results in FILE [disabled]
  1449. -C, --config-cache alias for \`--cache-file=config.cache'
  1450. -n, --no-create do not create output files
  1451. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1452. Installation directories:
  1453. --prefix=PREFIX install architecture-independent files in PREFIX
  1454. [$ac_default_prefix]
  1455. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1456. [PREFIX]
  1457. By default, \`make install' will install all the files in
  1458. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1459. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1460. for instance \`--prefix=\$HOME'.
  1461. For better control, use the options below.
  1462. Fine tuning of the installation directories:
  1463. --bindir=DIR user executables [EPREFIX/bin]
  1464. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1465. --libexecdir=DIR program executables [EPREFIX/libexec]
  1466. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1467. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1468. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1469. --libdir=DIR object code libraries [EPREFIX/lib]
  1470. --includedir=DIR C header files [PREFIX/include]
  1471. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1472. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1473. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1474. --infodir=DIR info documentation [DATAROOTDIR/info]
  1475. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1476. --mandir=DIR man documentation [DATAROOTDIR/man]
  1477. --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
  1478. --htmldir=DIR html documentation [DOCDIR]
  1479. --dvidir=DIR dvi documentation [DOCDIR]
  1480. --pdfdir=DIR pdf documentation [DOCDIR]
  1481. --psdir=DIR ps documentation [DOCDIR]
  1482. _ACEOF
  1483. cat <<\_ACEOF
  1484. Program names:
  1485. --program-prefix=PREFIX prepend PREFIX to installed program names
  1486. --program-suffix=SUFFIX append SUFFIX to installed program names
  1487. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1488. X features:
  1489. --x-includes=DIR X include files are in DIR
  1490. --x-libraries=DIR X library files are in DIR
  1491. System types:
  1492. --build=BUILD configure for building on BUILD [guessed]
  1493. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1494. _ACEOF
  1495. fi
  1496. if test -n "$ac_init_help"; then
  1497. case $ac_init_help in
  1498. short | recursive ) echo "Configuration of Scilab 5:";;
  1499. esac
  1500. cat <<\_ACEOF
  1501. Optional Features:
  1502. --disable-option-checking ignore unrecognized --enable/--with options
  1503. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1504. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1505. --disable-largefile omit support for large files
  1506. --enable-relocatable install a package that can be moved in the filesystem
  1507. --disable-rpath do not hardcode runtime library paths
  1508. --enable-maintainer-mode enable make rules and dependencies not useful
  1509. (and sometimes confusing) to the casual installer
  1510. --disable-dependency-tracking speeds up one-time build
  1511. --enable-dependency-tracking do not reject slow dependency extractors
  1512. --enable-debug Do not optimize and print warning messages
  1513. (C/C++/Fortran/Java code)
  1514. --enable-debug-C Do not optimize and print warning messages (C code)
  1515. --enable-debug-CXX Do not optimize and print warning messages (C++
  1516. code)
  1517. --enable-debug-java Print warning messages and line numbers (Java code)
  1518. --enable-debug-fortran Do not optimize and print warning messages (Fortran
  1519. code)
  1520. --enable-debug-linker Print warning messages from the linker (ld)
  1521. --enable-code-coverage Enable code coverage
  1522. --enable-stop-on-warning
  1523. Stop the compilation on the first warning found in
  1524. the C/C++ code
  1525. --enable-compilation-tests
  1526. Enable unitary tests and checks at compilation time
  1527. --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
  1528. Java Development Kit (JDK) is mandatory for this
  1529. option)
  1530. --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
  1531. (A Java Development Kit (JDK) is mandatory for this
  1532. option)
  1533. --disable-nls do not use Native Language Support
  1534. --disable-build-localization
  1535. Disable the localization build
  1536. --disable-build-help Disable the help build
  1537. --enable-static[=PKGS] build static libraries [default=no]
  1538. --enable-shared[=PKGS] build shared libraries [default=yes]
  1539. --enable-fast-install[=PKGS]
  1540. optimize for fast installation [default=yes]
  1541. --disable-libtool-lock avoid locking (might break parallel builds)
  1542. Optional Packages:
  1543. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1544. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1545. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1546. --with-gcc Use gcc C compiler
  1547. --with-gfortran Use gfortran, GNU Fortran 95 compiler
  1548. --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
  1549. compilers (GNU/Linux only)
  1550. --without-tk Disable the interface to Tcl/Tk
  1551. --without-javasci Disable the Java/Scilab interface (javasci)
  1552. --without-gui Disable the Scilab Graphical User Interface (GUI).
  1553. Intended for embedded/clustering/grid Scilab
  1554. --with-fink-prefix Provide a fink prefix. Default: /sw/
  1555. --without-hdf5 Disable the interface to the HDF5 library
  1556. --with-hdf5-include=DIR Set the path to the HDF5 headers
  1557. --with-hdf5-library=DIR Set the path to the HDF5 libraries
  1558. --without-xcos Disable Xcos
  1559. --without-modelica Disable the OCaml module (modelica)
  1560. --with-jdk=DIR use JDK from DIR
  1561. --with-ant=DIR Use ant from DIR
  1562. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1563. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1564. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1565. --without-libintl-prefix don't search for libintl in includedir and libdir
  1566. --without-fftw Disable the interface to the FFTW 3 library
  1567. --with-fftw-include=DIR Set the path to the FFTW headers
  1568. --with-fftw-library=DIR Set the path to the FFTW libraries
  1569. --without-openmp Disable the usage of OpenMP (parallelization of some
  1570. algoritms)
  1571. --with-libxml2=PREFIX Set the path to your libxml2 installation
  1572. --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
  1573. library
  1574. --with-lapack-library=DIR
  1575. set the path to the LAPACK library
  1576. --without-arpack-ng Disable the interface to ARPACK-NG
  1577. --with-arpack-library=DIR
  1578. set the path to the ARPACK library
  1579. --without-umfpack Disable the interface to the UMFPACK library
  1580. --with-umfpack-library=DIR
  1581. Set the path to the UMFPACK libraries
  1582. --with-umfpack-include=DIR
  1583. Set the path to the UMFPACK headers
  1584. --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
  1585. Expression Library) installation
  1586. --with-tcl-library=DIR Set the path to the TCL library
  1587. --with-tcl-include=DIR Set the path to the TCL headers
  1588. --with-tk-library=DIR Set the path to the TK library
  1589. --with-tk-include=DIR Set the path to the TK headers
  1590. --with-x use the X Window System
  1591. --without-matio Disable the interface to Matio (MAT File I/O
  1592. library)
  1593. --with-matio-include=DIR
  1594. Set the path to the MATIO headers
  1595. --with-matio-library=DIR
  1596. Set the path to the MATIO libraries
  1597. --with-docbook=DIR Set the path to the docbook package
  1598. --with-install-help-xml make install will install XML files
  1599. --with-pic try to use only PIC/non-PIC objects [default=use
  1600. both]
  1601. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1602. Some influential environment variables:
  1603. CC C compiler command
  1604. CFLAGS C compiler flags
  1605. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1606. nonstandard directory <lib dir>
  1607. LIBS libraries to pass to the linker, e.g. -l<library>
  1608. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1609. you have headers in a nonstandard directory <include dir>
  1610. CPP C preprocessor
  1611. PKG_CONFIG path to pkg-config utility
  1612. F77 Fortran 77 compiler command
  1613. FFLAGS Fortran 77 compiler flags
  1614. CXX C++ compiler command
  1615. CXXFLAGS C++ compiler flags
  1616. PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
  1617. PCRE_LIBS linker flags for PCRE, overriding pkg-config
  1618. XMKMF Path to xmkmf, Makefile generator for X Window System
  1619. MATIO_CFLAGS
  1620. C compiler flags for MATIO, overriding pkg-config
  1621. MATIO_LIBS linker flags for MATIO, overriding pkg-config
  1622. CXXCPP C++ preprocessor
  1623. Use these variables to override the choices made by `configure' or to help
  1624. it to find libraries and programs with nonstandard names/locations.
  1625. Report bugs to <http://bugzilla.scilab.org/>.
  1626. _ACEOF
  1627. ac_status=$?
  1628. fi
  1629. if test "$ac_init_help" = "recursive"; then
  1630. # If there are subdirs, report their specific --help.
  1631. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1632. test -d "$ac_dir" ||
  1633. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1634. continue
  1635. ac_builddir=.
  1636. case "$ac_dir" in
  1637. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1638. *)
  1639. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1640. # A ".." for each directory in $ac_dir_suffix.
  1641. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1642. case $ac_top_builddir_sub in
  1643. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1644. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1645. esac ;;
  1646. esac
  1647. ac_abs_top_builddir=$ac_pwd
  1648. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1649. # for backward compatibility:
  1650. ac_top_builddir=$ac_top_build_prefix
  1651. case $srcdir in
  1652. .) # We are building in place.
  1653. ac_srcdir=.
  1654. ac_top_srcdir=$ac_top_builddir_sub
  1655. ac_abs_top_srcdir=$ac_pwd ;;
  1656. [\\/]* | ?:[\\/]* ) # Absolute name.
  1657. ac_srcdir=$srcdir$ac_dir_suffix;
  1658. ac_top_srcdir=$srcdir
  1659. ac_abs_top_srcdir=$srcdir ;;
  1660. *) # Relative name.
  1661. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1662. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1663. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1664. esac
  1665. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1666. cd "$ac_dir" || { ac_status=$?; continue; }
  1667. # Check for guested configure.
  1668. if test -f "$ac_srcdir/configure.gnu"; then
  1669. echo &&
  1670. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1671. elif test -f "$ac_srcdir/configure"; then
  1672. echo &&
  1673. $SHELL "$ac_srcdir/configure" --help=recursive
  1674. else
  1675. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1676. fi || ac_status=$?
  1677. cd "$ac_pwd" || { ac_status=$?; break; }
  1678. done
  1679. fi
  1680. test -n "$ac_init_help" && exit $ac_status
  1681. if $ac_init_version; then
  1682. cat <<\_ACEOF
  1683. Scilab configure 5
  1684. generated by GNU Autoconf 2.68
  1685. Copyright (C) 2010 Free Software Foundation, Inc.
  1686. This configure script is free software; the Free Software Foundation
  1687. gives unlimited permission to copy, distribute and modify it.
  1688. _ACEOF
  1689. exit
  1690. fi
  1691. ## ------------------------ ##
  1692. ## Autoconf initialization. ##
  1693. ## ------------------------ ##
  1694. # ac_fn_c_try_compile LINENO
  1695. # --------------------------
  1696. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1697. ac_fn_c_try_compile ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. rm -f conftest.$ac_objext
  1701. if { { ac_try="$ac_compile"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_compile") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && {
  1717. test -z "$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. } && test -s conftest.$ac_objext; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_compile
  1729. # ac_fn_c_try_cpp LINENO
  1730. # ----------------------
  1731. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1732. ac_fn_c_try_cpp ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1736. case "(($ac_try" in
  1737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1738. *) ac_try_echo=$ac_try;;
  1739. esac
  1740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1741. $as_echo "$ac_try_echo"; } >&5
  1742. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1743. ac_status=$?
  1744. if test -s conftest.err; then
  1745. grep -v '^ *+' conftest.err >conftest.er1
  1746. cat conftest.er1 >&5
  1747. mv -f conftest.er1 conftest.err
  1748. fi
  1749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1750. test $ac_status = 0; } > conftest.i && {
  1751. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1752. test ! -s conftest.err
  1753. }; then :
  1754. ac_retval=0
  1755. else
  1756. $as_echo "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=1
  1759. fi
  1760. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1761. as_fn_set_status $ac_retval
  1762. } # ac_fn_c_try_cpp
  1763. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1764. # -------------------------------------------------------
  1765. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1766. # the include files in INCLUDES and setting the cache variable VAR
  1767. # accordingly.
  1768. ac_fn_c_check_header_mongrel ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. if eval \${$3+:} false; then :
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1773. $as_echo_n "checking for $2... " >&6; }
  1774. if eval \${$3+:} false; then :
  1775. $as_echo_n "(cached) " >&6
  1776. fi
  1777. eval ac_res=\$$3
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1779. $as_echo "$ac_res" >&6; }
  1780. else
  1781. # Is the header compilable?
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1783. $as_echo_n "checking $2 usability... " >&6; }
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. $4
  1787. #include <$2>
  1788. _ACEOF
  1789. if ac_fn_c_try_compile "$LINENO"; then :
  1790. ac_header_compiler=yes
  1791. else
  1792. ac_header_compiler=no
  1793. fi
  1794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1796. $as_echo "$ac_header_compiler" >&6; }
  1797. # Is the header present?
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1799. $as_echo_n "checking $2 presence... " >&6; }
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. #include <$2>
  1803. _ACEOF
  1804. if ac_fn_c_try_cpp "$LINENO"; then :
  1805. ac_header_preproc=yes
  1806. else
  1807. ac_header_preproc=no
  1808. fi
  1809. rm -f conftest.err conftest.i conftest.$ac_ext
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1811. $as_echo "$ac_header_preproc" >&6; }
  1812. # So? What about this header?
  1813. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1814. yes:no: )
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1816. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1818. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1819. ;;
  1820. no:yes:* )
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1822. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1824. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1826. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1828. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1830. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1831. ( $as_echo "## ------------------------------------------ ##
  1832. ## Report this to http://bugzilla.scilab.org/ ##
  1833. ## ------------------------------------------ ##"
  1834. ) | sed "s/^/$as_me: WARNING: /" >&2
  1835. ;;
  1836. esac
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1838. $as_echo_n "checking for $2... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. eval "$3=\$ac_header_compiler"
  1843. fi
  1844. eval ac_res=\$$3
  1845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1846. $as_echo "$ac_res" >&6; }
  1847. fi
  1848. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1849. } # ac_fn_c_check_header_mongrel
  1850. # ac_fn_c_try_run LINENO
  1851. # ----------------------
  1852. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1853. # that executables *can* be run.
  1854. ac_fn_c_try_run ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. if { { ac_try="$ac_link"
  1858. case "(($ac_try" in
  1859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1860. *) ac_try_echo=$ac_try;;
  1861. esac
  1862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1863. $as_echo "$ac_try_echo"; } >&5
  1864. (eval "$ac_link") 2>&5
  1865. ac_status=$?
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1868. { { case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1873. $as_echo "$ac_try_echo"; } >&5
  1874. (eval "$ac_try") 2>&5
  1875. ac_status=$?
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; }; }; then :
  1878. ac_retval=0
  1879. else
  1880. $as_echo "$as_me: program exited with status $ac_status" >&5
  1881. $as_echo "$as_me: failed program was:" >&5
  1882. sed 's/^/| /' conftest.$ac_ext >&5
  1883. ac_retval=$ac_status
  1884. fi
  1885. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1886. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1887. as_fn_set_status $ac_retval
  1888. } # ac_fn_c_try_run
  1889. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1890. # -------------------------------------------------------
  1891. # Tests whether HEADER exists and can be compiled using the include files in
  1892. # INCLUDES, setting the cache variable VAR accordingly.
  1893. ac_fn_c_check_header_compile ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. $as_echo_n "checking for $2... " >&6; }
  1898. if eval \${$3+:} false; then :
  1899. $as_echo_n "(cached) " >&6
  1900. else
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. $4
  1904. #include <$2>
  1905. _ACEOF
  1906. if ac_fn_c_try_compile "$LINENO"; then :
  1907. eval "$3=yes"
  1908. else
  1909. eval "$3=no"
  1910. fi
  1911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1912. fi
  1913. eval ac_res=\$$3
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1915. $as_echo "$ac_res" >&6; }
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. } # ac_fn_c_check_header_compile
  1918. # ac_fn_c_try_link LINENO
  1919. # -----------------------
  1920. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1921. ac_fn_c_try_link ()
  1922. {
  1923. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1924. rm -f conftest.$ac_objext conftest$ac_exeext
  1925. if { { ac_try="$ac_link"
  1926. case "(($ac_try" in
  1927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1928. *) ac_try_echo=$ac_try;;
  1929. esac
  1930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1931. $as_echo "$ac_try_echo"; } >&5
  1932. (eval "$ac_link") 2>conftest.err
  1933. ac_status=$?
  1934. if test -s conftest.err; then
  1935. grep -v '^ *+' conftest.err >conftest.er1
  1936. cat conftest.er1 >&5
  1937. mv -f conftest.er1 conftest.err
  1938. fi
  1939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1940. test $ac_status = 0; } && {
  1941. test -z "$ac_c_werror_flag" ||
  1942. test ! -s conftest.err
  1943. } && test -s conftest$ac_exeext && {
  1944. test "$cross_compiling" = yes ||
  1945. $as_test_x conftest$ac_exeext
  1946. }; then :
  1947. ac_retval=0
  1948. else
  1949. $as_echo "$as_me: failed program was:" >&5
  1950. sed 's/^/| /' conftest.$ac_ext >&5
  1951. ac_retval=1
  1952. fi
  1953. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1954. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1955. # interfere with the next link command; also delete a directory that is
  1956. # left behind by Apple's compiler. We do this before executing the actions.
  1957. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1958. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1959. as_fn_set_status $ac_retval
  1960. } # ac_fn_c_try_link
  1961. # ac_fn_c_check_func LINENO FUNC VAR
  1962. # ----------------------------------
  1963. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1964. ac_fn_c_check_func ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1968. $as_echo_n "checking for $2... " >&6; }
  1969. if eval \${$3+:} false; then :
  1970. $as_echo_n "(cached) " >&6
  1971. else
  1972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1973. /* end confdefs.h. */
  1974. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1975. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1976. #define $2 innocuous_$2
  1977. /* System header to define __stub macros and hopefully few prototypes,
  1978. which can conflict with char $2 (); below.
  1979. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1980. <limits.h> exists even on freestanding compilers. */
  1981. #ifdef __STDC__
  1982. # include <limits.h>
  1983. #else
  1984. # include <assert.h>
  1985. #endif
  1986. #undef $2
  1987. /* Override any GCC internal prototype to avoid an error.
  1988. Use char because int might match the return type of a GCC
  1989. builtin and then its argument prototype would still apply. */
  1990. #ifdef __cplusplus
  1991. extern "C"
  1992. #endif
  1993. char $2 ();
  1994. /* The GNU C library defines this for functions which it implements
  1995. to always fail with ENOSYS. Some functions are actually named
  1996. something starting with __ and the normal name is an alias. */
  1997. #if defined __stub_$2 || defined __stub___$2
  1998. choke me
  1999. #endif
  2000. int
  2001. main ()
  2002. {
  2003. return $2 ();
  2004. ;
  2005. return 0;
  2006. }
  2007. _ACEOF
  2008. if ac_fn_c_try_link "$LINENO"; then :
  2009. eval "$3=yes"
  2010. else
  2011. eval "$3=no"
  2012. fi
  2013. rm -f core conftest.err conftest.$ac_objext \
  2014. conftest$ac_exeext conftest.$ac_ext
  2015. fi
  2016. eval ac_res=\$$3
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2018. $as_echo "$ac_res" >&6; }
  2019. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2020. } # ac_fn_c_check_func
  2021. # ac_fn_f77_try_compile LINENO
  2022. # ----------------------------
  2023. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2024. ac_fn_f77_try_compile ()
  2025. {
  2026. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2027. rm -f conftest.$ac_objext
  2028. if { { ac_try="$ac_compile"
  2029. case "(($ac_try" in
  2030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2031. *) ac_try_echo=$ac_try;;
  2032. esac
  2033. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2034. $as_echo "$ac_try_echo"; } >&5
  2035. (eval "$ac_compile") 2>conftest.err
  2036. ac_status=$?
  2037. if test -s conftest.err; then
  2038. grep -v '^ *+' conftest.err >conftest.er1
  2039. cat conftest.er1 >&5
  2040. mv -f conftest.er1 conftest.err
  2041. fi
  2042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2043. test $ac_status = 0; } && {
  2044. test -z "$ac_f77_werror_flag" ||
  2045. test ! -s conftest.err
  2046. } && test -s conftest.$ac_objext; then :
  2047. ac_retval=0
  2048. else
  2049. $as_echo "$as_me: failed program was:" >&5
  2050. sed 's/^/| /' conftest.$ac_ext >&5
  2051. ac_retval=1
  2052. fi
  2053. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2054. as_fn_set_status $ac_retval
  2055. } # ac_fn_f77_try_compile
  2056. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2057. # --------------------------------------------
  2058. # Tries to find the compile-time value of EXPR in a program that includes
  2059. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2060. # computed
  2061. ac_fn_c_compute_int ()
  2062. {
  2063. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2064. if test "$cross_compiling" = yes; then
  2065. # Depending upon the size, compute the lo and hi bounds.
  2066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2067. /* end confdefs.h. */
  2068. $4
  2069. int
  2070. main ()
  2071. {
  2072. static int test_array [1 - 2 * !(($2) >= 0)];
  2073. test_array [0] = 0
  2074. ;
  2075. return 0;
  2076. }
  2077. _ACEOF
  2078. if ac_fn_c_try_compile "$LINENO"; then :
  2079. ac_lo=0 ac_mid=0
  2080. while :; do
  2081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2082. /* end confdefs.h. */
  2083. $4
  2084. int
  2085. main ()
  2086. {
  2087. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2088. test_array [0] = 0
  2089. ;
  2090. return 0;
  2091. }
  2092. _ACEOF
  2093. if ac_fn_c_try_compile "$LINENO"; then :
  2094. ac_hi=$ac_mid; break
  2095. else
  2096. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2097. if test $ac_lo -le $ac_mid; then
  2098. ac_lo= ac_hi=
  2099. break
  2100. fi
  2101. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2104. done
  2105. else
  2106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2107. /* end confdefs.h. */
  2108. $4
  2109. int
  2110. main ()
  2111. {
  2112. static int test_array [1 - 2 * !(($2) < 0)];
  2113. test_array [0] = 0
  2114. ;
  2115. return 0;
  2116. }
  2117. _ACEOF
  2118. if ac_fn_c_try_compile "$LINENO"; then :
  2119. ac_hi=-1 ac_mid=-1
  2120. while :; do
  2121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2122. /* end confdefs.h. */
  2123. $4
  2124. int
  2125. main ()
  2126. {
  2127. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2128. test_array [0] = 0
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. if ac_fn_c_try_compile "$LINENO"; then :
  2134. ac_lo=$ac_mid; break
  2135. else
  2136. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2137. if test $ac_mid -le $ac_hi; then
  2138. ac_lo= ac_hi=
  2139. break
  2140. fi
  2141. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2142. fi
  2143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2144. done
  2145. else
  2146. ac_lo= ac_hi=
  2147. fi
  2148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2149. fi
  2150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2151. # Binary search between lo and hi bounds.
  2152. while test "x$ac_lo" != "x$ac_hi"; do
  2153. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2155. /* end confdefs.h. */
  2156. $4
  2157. int
  2158. main ()
  2159. {
  2160. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2161. test_array [0] = 0
  2162. ;
  2163. return 0;
  2164. }
  2165. _ACEOF
  2166. if ac_fn_c_try_compile "$LINENO"; then :
  2167. ac_hi=$ac_mid
  2168. else
  2169. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2170. fi
  2171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2172. done
  2173. case $ac_lo in #((
  2174. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2175. '') ac_retval=1 ;;
  2176. esac
  2177. else
  2178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2179. /* end confdefs.h. */
  2180. $4
  2181. static long int longval () { return $2; }
  2182. static unsigned long int ulongval () { return $2; }
  2183. #include <stdio.h>
  2184. #include <stdlib.h>
  2185. int
  2186. main ()
  2187. {
  2188. FILE *f = fopen ("conftest.val", "w");
  2189. if (! f)
  2190. return 1;
  2191. if (($2) < 0)
  2192. {
  2193. long int i = longval ();
  2194. if (i != ($2))
  2195. return 1;
  2196. fprintf (f, "%ld", i);
  2197. }
  2198. else
  2199. {
  2200. unsigned long int i = ulongval ();
  2201. if (i != ($2))
  2202. return 1;
  2203. fprintf (f, "%lu", i);
  2204. }
  2205. /* Do not output a trailing newline, as this causes \r\n confusion
  2206. on some platforms. */
  2207. return ferror (f) || fclose (f) != 0;
  2208. ;
  2209. return 0;
  2210. }
  2211. _ACEOF
  2212. if ac_fn_c_try_run "$LINENO"; then :
  2213. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2214. else
  2215. ac_retval=1
  2216. fi
  2217. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2218. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2219. rm -f conftest.val
  2220. fi
  2221. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2222. as_fn_set_status $ac_retval
  2223. } # ac_fn_c_compute_int
  2224. # ac_fn_cxx_try_compile LINENO
  2225. # ----------------------------
  2226. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2227. ac_fn_cxx_try_compile ()
  2228. {
  2229. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2230. rm -f conftest.$ac_objext
  2231. if { { ac_try="$ac_compile"
  2232. case "(($ac_try" in
  2233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2234. *) ac_try_echo=$ac_try;;
  2235. esac
  2236. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2237. $as_echo "$ac_try_echo"; } >&5
  2238. (eval "$ac_compile") 2>conftest.err
  2239. ac_status=$?
  2240. if test -s conftest.err; then
  2241. grep -v '^ *+' conftest.err >conftest.er1
  2242. cat conftest.er1 >&5
  2243. mv -f conftest.er1 conftest.err
  2244. fi
  2245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2246. test $ac_status = 0; } && {
  2247. test -z "$ac_cxx_werror_flag" ||
  2248. test ! -s conftest.err
  2249. } && test -s conftest.$ac_objext; then :
  2250. ac_retval=0
  2251. else
  2252. $as_echo "$as_me: failed program was:" >&5
  2253. sed 's/^/| /' conftest.$ac_ext >&5
  2254. ac_retval=1
  2255. fi
  2256. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2257. as_fn_set_status $ac_retval
  2258. } # ac_fn_cxx_try_compile
  2259. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2260. # ----------------------------------------------------
  2261. # Tries to find if the field MEMBER exists in type AGGR, after including
  2262. # INCLUDES, setting cache variable VAR accordingly.
  2263. ac_fn_c_check_member ()
  2264. {
  2265. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2267. $as_echo_n "checking for $2.$3... " >&6; }
  2268. if eval \${$4+:} false; then :
  2269. $as_echo_n "(cached) " >&6
  2270. else
  2271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2272. /* end confdefs.h. */
  2273. $5
  2274. int
  2275. main ()
  2276. {
  2277. static $2 ac_aggr;
  2278. if (ac_aggr.$3)
  2279. return 0;
  2280. ;
  2281. return 0;
  2282. }
  2283. _ACEOF
  2284. if ac_fn_c_try_compile "$LINENO"; then :
  2285. eval "$4=yes"
  2286. else
  2287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2288. /* end confdefs.h. */
  2289. $5
  2290. int
  2291. main ()
  2292. {
  2293. static $2 ac_aggr;
  2294. if (sizeof ac_aggr.$3)
  2295. return 0;
  2296. ;
  2297. return 0;
  2298. }
  2299. _ACEOF
  2300. if ac_fn_c_try_compile "$LINENO"; then :
  2301. eval "$4=yes"
  2302. else
  2303. eval "$4=no"
  2304. fi
  2305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2306. fi
  2307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2308. fi
  2309. eval ac_res=\$$4
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2311. $as_echo "$ac_res" >&6; }
  2312. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2313. } # ac_fn_c_check_member
  2314. # ac_fn_cxx_try_run LINENO
  2315. # ------------------------
  2316. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2317. # that executables *can* be run.
  2318. ac_fn_cxx_try_run ()
  2319. {
  2320. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2321. if { { ac_try="$ac_link"
  2322. case "(($ac_try" in
  2323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2324. *) ac_try_echo=$ac_try;;
  2325. esac
  2326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2327. $as_echo "$ac_try_echo"; } >&5
  2328. (eval "$ac_link") 2>&5
  2329. ac_status=$?
  2330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2331. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2332. { { case "(($ac_try" in
  2333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2334. *) ac_try_echo=$ac_try;;
  2335. esac
  2336. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2337. $as_echo "$ac_try_echo"; } >&5
  2338. (eval "$ac_try") 2>&5
  2339. ac_status=$?
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2341. test $ac_status = 0; }; }; then :
  2342. ac_retval=0
  2343. else
  2344. $as_echo "$as_me: program exited with status $ac_status" >&5
  2345. $as_echo "$as_me: failed program was:" >&5
  2346. sed 's/^/| /' conftest.$ac_ext >&5
  2347. ac_retval=$ac_status
  2348. fi
  2349. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2350. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2351. as_fn_set_status $ac_retval
  2352. } # ac_fn_cxx_try_run
  2353. # ac_fn_cxx_try_cpp LINENO
  2354. # ------------------------
  2355. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2356. ac_fn_cxx_try_cpp ()
  2357. {
  2358. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2359. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2360. case "(($ac_try" in
  2361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2362. *) ac_try_echo=$ac_try;;
  2363. esac
  2364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2365. $as_echo "$ac_try_echo"; } >&5
  2366. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2367. ac_status=$?
  2368. if test -s conftest.err; then
  2369. grep -v '^ *+' conftest.err >conftest.er1
  2370. cat conftest.er1 >&5
  2371. mv -f conftest.er1 conftest.err
  2372. fi
  2373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2374. test $ac_status = 0; } > conftest.i && {
  2375. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2376. test ! -s conftest.err
  2377. }; then :
  2378. ac_retval=0
  2379. else
  2380. $as_echo "$as_me: failed program was:" >&5
  2381. sed 's/^/| /' conftest.$ac_ext >&5
  2382. ac_retval=1
  2383. fi
  2384. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2385. as_fn_set_status $ac_retval
  2386. } # ac_fn_cxx_try_cpp
  2387. # ac_fn_cxx_try_link LINENO
  2388. # -------------------------
  2389. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2390. ac_fn_cxx_try_link ()
  2391. {
  2392. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2393. rm -f conftest.$ac_objext conftest$ac_exeext
  2394. if { { ac_try="$ac_link"
  2395. case "(($ac_try" in
  2396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2397. *) ac_try_echo=$ac_try;;
  2398. esac
  2399. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2400. $as_echo "$ac_try_echo"; } >&5
  2401. (eval "$ac_link") 2>conftest.err
  2402. ac_status=$?
  2403. if test -s conftest.err; then
  2404. grep -v '^ *+' conftest.err >conftest.er1
  2405. cat conftest.er1 >&5
  2406. mv -f conftest.er1 conftest.err
  2407. fi
  2408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2409. test $ac_status = 0; } && {
  2410. test -z "$ac_cxx_werror_flag" ||
  2411. test ! -s conftest.err
  2412. } && test -s conftest$ac_exeext && {
  2413. test "$cross_compiling" = yes ||
  2414. $as_test_x conftest$ac_exeext
  2415. }; then :
  2416. ac_retval=0
  2417. else
  2418. $as_echo "$as_me: failed program was:" >&5
  2419. sed 's/^/| /' conftest.$ac_ext >&5
  2420. ac_retval=1
  2421. fi
  2422. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2423. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2424. # interfere with the next link command; also delete a directory that is
  2425. # left behind by Apple's compiler. We do this before executing the actions.
  2426. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2427. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2428. as_fn_set_status $ac_retval
  2429. } # ac_fn_cxx_try_link
  2430. # ac_fn_f77_try_link LINENO
  2431. # -------------------------
  2432. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2433. ac_fn_f77_try_link ()
  2434. {
  2435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2436. rm -f conftest.$ac_objext conftest$ac_exeext
  2437. if { { ac_try="$ac_link"
  2438. case "(($ac_try" in
  2439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2440. *) ac_try_echo=$ac_try;;
  2441. esac
  2442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2443. $as_echo "$ac_try_echo"; } >&5
  2444. (eval "$ac_link") 2>conftest.err
  2445. ac_status=$?
  2446. if test -s conftest.err; then
  2447. grep -v '^ *+' conftest.err >conftest.er1
  2448. cat conftest.er1 >&5
  2449. mv -f conftest.er1 conftest.err
  2450. fi
  2451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2452. test $ac_status = 0; } && {
  2453. test -z "$ac_f77_werror_flag" ||
  2454. test ! -s conftest.err
  2455. } && test -s conftest$ac_exeext && {
  2456. test "$cross_compiling" = yes ||
  2457. $as_test_x conftest$ac_exeext
  2458. }; then :
  2459. ac_retval=0
  2460. else
  2461. $as_echo "$as_me: failed program was:" >&5
  2462. sed 's/^/| /' conftest.$ac_ext >&5
  2463. ac_retval=1
  2464. fi
  2465. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2466. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2467. # interfere with the next link command; also delete a directory that is
  2468. # left behind by Apple's compiler. We do this before executing the actions.
  2469. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2470. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2471. as_fn_set_status $ac_retval
  2472. } # ac_fn_f77_try_link
  2473. cat >config.log <<_ACEOF
  2474. This file contains any messages produced by compilers while
  2475. running configure, to aid debugging if configure makes a mistake.
  2476. It was created by Scilab $as_me 5, which was
  2477. generated by GNU Autoconf 2.68. Invocation command line was
  2478. $ $0 $@
  2479. _ACEOF
  2480. exec 5>>config.log
  2481. {
  2482. cat <<_ASUNAME
  2483. ## --------- ##
  2484. ## Platform. ##
  2485. ## --------- ##
  2486. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2487. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2488. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2489. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2490. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2491. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2492. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2493. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2494. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2495. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2496. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2497. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2498. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2499. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2500. _ASUNAME
  2501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2502. for as_dir in $PATH
  2503. do
  2504. IFS=$as_save_IFS
  2505. test -z "$as_dir" && as_dir=.
  2506. $as_echo "PATH: $as_dir"
  2507. done
  2508. IFS=$as_save_IFS
  2509. } >&5
  2510. cat >&5 <<_ACEOF
  2511. ## ----------- ##
  2512. ## Core tests. ##
  2513. ## ----------- ##
  2514. _ACEOF
  2515. # Keep a trace of the command line.
  2516. # Strip out --no-create and --no-recursion so they do not pile up.
  2517. # Strip out --silent because we don't want to record it for future runs.
  2518. # Also quote any args containing shell meta-characters.
  2519. # Make two passes to allow for proper duplicate-argument suppression.
  2520. ac_configure_args=
  2521. ac_configure_args0=
  2522. ac_configure_args1=
  2523. ac_must_keep_next=false
  2524. for ac_pass in 1 2
  2525. do
  2526. for ac_arg
  2527. do
  2528. case $ac_arg in
  2529. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2530. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2531. | -silent | --silent | --silen | --sile | --sil)
  2532. continue ;;
  2533. *\'*)
  2534. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2535. esac
  2536. case $ac_pass in
  2537. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2538. 2)
  2539. as_fn_append ac_configure_args1 " '$ac_arg'"
  2540. if test $ac_must_keep_next = true; then
  2541. ac_must_keep_next=false # Got value, back to normal.
  2542. else
  2543. case $ac_arg in
  2544. *=* | --config-cache | -C | -disable-* | --disable-* \
  2545. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2546. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2547. | -with-* | --with-* | -without-* | --without-* | --x)
  2548. case "$ac_configure_args0 " in
  2549. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2550. esac
  2551. ;;
  2552. -* ) ac_must_keep_next=true ;;
  2553. esac
  2554. fi
  2555. as_fn_append ac_configure_args " '$ac_arg'"
  2556. ;;
  2557. esac
  2558. done
  2559. done
  2560. { ac_configure_args0=; unset ac_configure_args0;}
  2561. { ac_configure_args1=; unset ac_configure_args1;}
  2562. # When interrupted or exit'd, cleanup temporary files, and complete
  2563. # config.log. We remove comments because anyway the quotes in there
  2564. # would cause problems or look ugly.
  2565. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2566. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2567. trap 'exit_status=$?
  2568. # Save into config.log some information that might help in debugging.
  2569. {
  2570. echo
  2571. $as_echo "## ---------------- ##
  2572. ## Cache variables. ##
  2573. ## ---------------- ##"
  2574. echo
  2575. # The following way of writing the cache mishandles newlines in values,
  2576. (
  2577. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2578. eval ac_val=\$$ac_var
  2579. case $ac_val in #(
  2580. *${as_nl}*)
  2581. case $ac_var in #(
  2582. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2583. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2584. esac
  2585. case $ac_var in #(
  2586. _ | IFS | as_nl) ;; #(
  2587. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2588. *) { eval $ac_var=; unset $ac_var;} ;;
  2589. esac ;;
  2590. esac
  2591. done
  2592. (set) 2>&1 |
  2593. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2594. *${as_nl}ac_space=\ *)
  2595. sed -n \
  2596. "s/'\''/'\''\\\\'\'''\''/g;
  2597. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2598. ;; #(
  2599. *)
  2600. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2601. ;;
  2602. esac |
  2603. sort
  2604. )
  2605. echo
  2606. $as_echo "## ----------------- ##
  2607. ## Output variables. ##
  2608. ## ----------------- ##"
  2609. echo
  2610. for ac_var in $ac_subst_vars
  2611. do
  2612. eval ac_val=\$$ac_var
  2613. case $ac_val in
  2614. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2615. esac
  2616. $as_echo "$ac_var='\''$ac_val'\''"
  2617. done | sort
  2618. echo
  2619. if test -n "$ac_subst_files"; then
  2620. $as_echo "## ------------------- ##
  2621. ## File substitutions. ##
  2622. ## ------------------- ##"
  2623. echo
  2624. for ac_var in $ac_subst_files
  2625. do
  2626. eval ac_val=\$$ac_var
  2627. case $ac_val in
  2628. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2629. esac
  2630. $as_echo "$ac_var='\''$ac_val'\''"
  2631. done | sort
  2632. echo
  2633. fi
  2634. if test -s confdefs.h; then
  2635. $as_echo "## ----------- ##
  2636. ## confdefs.h. ##
  2637. ## ----------- ##"
  2638. echo
  2639. cat confdefs.h
  2640. echo
  2641. fi
  2642. test "$ac_signal" != 0 &&
  2643. $as_echo "$as_me: caught signal $ac_signal"
  2644. $as_echo "$as_me: exit $exit_status"
  2645. } >&5
  2646. rm -f core *.core core.conftest.* &&
  2647. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2648. exit $exit_status
  2649. ' 0
  2650. for ac_signal in 1 2 13 15; do
  2651. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2652. done
  2653. ac_signal=0
  2654. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2655. rm -f -r conftest* confdefs.h
  2656. $as_echo "/* confdefs.h */" > confdefs.h
  2657. # Predefined preprocessor variables.
  2658. cat >>confdefs.h <<_ACEOF
  2659. #define PACKAGE_NAME "$PACKAGE_NAME"
  2660. _ACEOF
  2661. cat >>confdefs.h <<_ACEOF
  2662. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2663. _ACEOF
  2664. cat >>confdefs.h <<_ACEOF
  2665. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2666. _ACEOF
  2667. cat >>confdefs.h <<_ACEOF
  2668. #define PACKAGE_STRING "$PACKAGE_STRING"
  2669. _ACEOF
  2670. cat >>confdefs.h <<_ACEOF
  2671. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2672. _ACEOF
  2673. cat >>confdefs.h <<_ACEOF
  2674. #define PACKAGE_URL "$PACKAGE_URL"
  2675. _ACEOF
  2676. # Let the site file select an alternate cache file if it wants to.
  2677. # Prefer an explicitly selected file to automatically selected ones.
  2678. ac_site_file1=NONE
  2679. ac_site_file2=NONE
  2680. if test -n "$CONFIG_SITE"; then
  2681. # We do not want a PATH search for config.site.
  2682. case $CONFIG_SITE in #((
  2683. -*) ac_site_file1=./$CONFIG_SITE;;
  2684. */*) ac_site_file1=$CONFIG_SITE;;
  2685. *) ac_site_file1=./$CONFIG_SITE;;
  2686. esac
  2687. elif test "x$prefix" != xNONE; then
  2688. ac_site_file1=$prefix/share/config.site
  2689. ac_site_file2=$prefix/etc/config.site
  2690. else
  2691. ac_site_file1=$ac_default_prefix/share/config.site
  2692. ac_site_file2=$ac_default_prefix/etc/config.site
  2693. fi
  2694. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2695. do
  2696. test "x$ac_site_file" = xNONE && continue
  2697. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2699. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2700. sed 's/^/| /' "$ac_site_file" >&5
  2701. . "$ac_site_file" \
  2702. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2703. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2704. as_fn_error $? "failed to load site script $ac_site_file
  2705. See \`config.log' for more details" "$LINENO" 5; }
  2706. fi
  2707. done
  2708. if test -r "$cache_file"; then
  2709. # Some versions of bash will fail to source /dev/null (special files
  2710. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2711. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2713. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2714. case $cache_file in
  2715. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2716. *) . "./$cache_file";;
  2717. esac
  2718. fi
  2719. else
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2721. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2722. >$cache_file
  2723. fi
  2724. gt_needs="$gt_needs "
  2725. # Check that the precious variables saved in the cache have kept the same
  2726. # value.
  2727. ac_cache_corrupted=false
  2728. for ac_var in $ac_precious_vars; do
  2729. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2730. eval ac_new_set=\$ac_env_${ac_var}_set
  2731. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2732. eval ac_new_val=\$ac_env_${ac_var}_value
  2733. case $ac_old_set,$ac_new_set in
  2734. set,)
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2736. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2737. ac_cache_corrupted=: ;;
  2738. ,set)
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2740. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2741. ac_cache_corrupted=: ;;
  2742. ,);;
  2743. *)
  2744. if test "x$ac_old_val" != "x$ac_new_val"; then
  2745. # differences in whitespace do not lead to failure.
  2746. ac_old_val_w=`echo x $ac_old_val`
  2747. ac_new_val_w=`echo x $ac_new_val`
  2748. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2750. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2751. ac_cache_corrupted=:
  2752. else
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2754. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2755. eval $ac_var=\$ac_old_val
  2756. fi
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2758. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2760. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2761. fi;;
  2762. esac
  2763. # Pass precious variables to config.status.
  2764. if test "$ac_new_set" = set; then
  2765. case $ac_new_val in
  2766. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2767. *) ac_arg=$ac_var=$ac_new_val ;;
  2768. esac
  2769. case " $ac_configure_args " in
  2770. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2771. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2772. esac
  2773. fi
  2774. done
  2775. if $ac_cache_corrupted; then
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2777. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2779. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2780. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2781. fi
  2782. ## -------------------- ##
  2783. ## Main body of script. ##
  2784. ## -------------------- ##
  2785. ac_ext=c
  2786. ac_cpp='$CPP $CPPFLAGS'
  2787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2790. SCI_BUILDDIR="`pwd`"
  2791. SCI_SRCDIR="$srcdir"
  2792. SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
  2793. SCILAB_VERSION_MAJOR=5
  2794. SCILAB_VERSION_MINOR=4
  2795. SCILAB_VERSION_MAINTENANCE=0
  2796. SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
  2797. SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
  2798. #shared library versioning
  2799. #GENERIC_LIBRARY_VERSION=1:2:0
  2800. # | | |
  2801. # +------+ | +---+
  2802. # | | |
  2803. # current:revision:age
  2804. # | | |
  2805. # | | +- increment if interfaces have been added
  2806. # | | set to zero if interfaces have been removed
  2807. # or changed
  2808. # | +- increment if source code has changed
  2809. # | set to zero if current is incremented
  2810. # +- increment if interfaces have been added, removed or changed
  2811. # Check if we have a space in the path to the source tree
  2812. SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
  2813. if test "$SPACE_IN_PATH" = "0"; then
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
  2815. $as_echo "$as_me: WARNING: =====================================" >&2;}
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things..." >&5
  2817. $as_echo "$as_me: WARNING: Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things..." >&2;}
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
  2819. $as_echo "$as_me: WARNING: =====================================" >&2;}
  2820. sleep 180
  2821. fi
  2822. ac_aux_dir=
  2823. for ac_dir in config "$srcdir"/config; do
  2824. if test -f "$ac_dir/install-sh"; then
  2825. ac_aux_dir=$ac_dir
  2826. ac_install_sh="$ac_aux_dir/install-sh -c"
  2827. break
  2828. elif test -f "$ac_dir/install.sh"; then
  2829. ac_aux_dir=$ac_dir
  2830. ac_install_sh="$ac_aux_dir/install.sh -c"
  2831. break
  2832. elif test -f "$ac_dir/shtool"; then
  2833. ac_aux_dir=$ac_dir
  2834. ac_install_sh="$ac_aux_dir/shtool install -c"
  2835. break
  2836. fi
  2837. done
  2838. if test -z "$ac_aux_dir"; then
  2839. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2840. fi
  2841. # These three variables are undocumented and unsupported,
  2842. # and are intended to be withdrawn in a future Autoconf release.
  2843. # They can cause serious problems if a builder's source tree is in a directory
  2844. # whose full name contains unusual characters.
  2845. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2846. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2847. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2848. ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
  2849. # strip executable
  2850. # expand $ac_aux_dir to an absolute path
  2851. am_aux_dir=`cd $ac_aux_dir && pwd`
  2852. if test x"${install_sh}" != xset; then
  2853. case $am_aux_dir in
  2854. *\ * | *\ *)
  2855. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2856. *)
  2857. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2858. esac
  2859. fi
  2860. # Installed binaries are usually stripped using `strip' when the user
  2861. # run `make install-strip'. However `strip' might not be the right
  2862. # tool to use in cross-compilation environments, therefore Automake
  2863. # will honor the `STRIP' environment variable to overrule this program.
  2864. if test "$cross_compiling" != no; then
  2865. if test -n "$ac_tool_prefix"; then
  2866. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2867. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2869. $as_echo_n "checking for $ac_word... " >&6; }
  2870. if ${ac_cv_prog_STRIP+:} false; then :
  2871. $as_echo_n "(cached) " >&6
  2872. else
  2873. if test -n "$STRIP"; then
  2874. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2875. else
  2876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2877. for as_dir in $PATH
  2878. do
  2879. IFS=$as_save_IFS
  2880. test -z "$as_dir" && as_dir=.
  2881. for ac_exec_ext in '' $ac_executable_extensions; do
  2882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2883. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2885. break 2
  2886. fi
  2887. done
  2888. done
  2889. IFS=$as_save_IFS
  2890. fi
  2891. fi
  2892. STRIP=$ac_cv_prog_STRIP
  2893. if test -n "$STRIP"; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2895. $as_echo "$STRIP" >&6; }
  2896. else
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2898. $as_echo "no" >&6; }
  2899. fi
  2900. fi
  2901. if test -z "$ac_cv_prog_STRIP"; then
  2902. ac_ct_STRIP=$STRIP
  2903. # Extract the first word of "strip", so it can be a program name with args.
  2904. set dummy strip; ac_word=$2
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2906. $as_echo_n "checking for $ac_word... " >&6; }
  2907. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. if test -n "$ac_ct_STRIP"; then
  2911. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2912. else
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH
  2915. do
  2916. IFS=$as_save_IFS
  2917. test -z "$as_dir" && as_dir=.
  2918. for ac_exec_ext in '' $ac_executable_extensions; do
  2919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2920. ac_cv_prog_ac_ct_STRIP="strip"
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2922. break 2
  2923. fi
  2924. done
  2925. done
  2926. IFS=$as_save_IFS
  2927. fi
  2928. fi
  2929. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2930. if test -n "$ac_ct_STRIP"; then
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2932. $as_echo "$ac_ct_STRIP" >&6; }
  2933. else
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. fi
  2937. if test "x$ac_ct_STRIP" = x; then
  2938. STRIP=":"
  2939. else
  2940. case $cross_compiling:$ac_tool_warned in
  2941. yes:)
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2944. ac_tool_warned=yes ;;
  2945. esac
  2946. STRIP=$ac_ct_STRIP
  2947. fi
  2948. else
  2949. STRIP="$ac_cv_prog_STRIP"
  2950. fi
  2951. fi
  2952. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2954. $as_echo_n "checking whether ln -s works... " >&6; }
  2955. LN_S=$as_ln_s
  2956. if test "$LN_S" = "ln -s"; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2958. $as_echo "yes" >&6; }
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2961. $as_echo "no, using $LN_S" >&6; }
  2962. fi
  2963. ac_ext=c
  2964. ac_cpp='$CPP $CPPFLAGS'
  2965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2968. if test -n "$ac_tool_prefix"; then
  2969. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2970. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2972. $as_echo_n "checking for $ac_word... " >&6; }
  2973. if ${ac_cv_prog_CC+:} false; then :
  2974. $as_echo_n "(cached) " >&6
  2975. else
  2976. if test -n "$CC"; then
  2977. ac_cv_prog_CC="$CC" # Let the user override the test.
  2978. else
  2979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2980. for as_dir in $PATH
  2981. do
  2982. IFS=$as_save_IFS
  2983. test -z "$as_dir" && as_dir=.
  2984. for ac_exec_ext in '' $ac_executable_extensions; do
  2985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2986. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2988. break 2
  2989. fi
  2990. done
  2991. done
  2992. IFS=$as_save_IFS
  2993. fi
  2994. fi
  2995. CC=$ac_cv_prog_CC
  2996. if test -n "$CC"; then
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2998. $as_echo "$CC" >&6; }
  2999. else
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3001. $as_echo "no" >&6; }
  3002. fi
  3003. fi
  3004. if test -z "$ac_cv_prog_CC"; then
  3005. ac_ct_CC=$CC
  3006. # Extract the first word of "gcc", so it can be a program name with args.
  3007. set dummy gcc; ac_word=$2
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3009. $as_echo_n "checking for $ac_word... " >&6; }
  3010. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3011. $as_echo_n "(cached) " >&6
  3012. else
  3013. if test -n "$ac_ct_CC"; then
  3014. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3015. else
  3016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3017. for as_dir in $PATH
  3018. do
  3019. IFS=$as_save_IFS
  3020. test -z "$as_dir" && as_dir=.
  3021. for ac_exec_ext in '' $ac_executable_extensions; do
  3022. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3023. ac_cv_prog_ac_ct_CC="gcc"
  3024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3025. break 2
  3026. fi
  3027. done
  3028. done
  3029. IFS=$as_save_IFS
  3030. fi
  3031. fi
  3032. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3033. if test -n "$ac_ct_CC"; then
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3035. $as_echo "$ac_ct_CC" >&6; }
  3036. else
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3038. $as_echo "no" >&6; }
  3039. fi
  3040. if test "x$ac_ct_CC" = x; then
  3041. CC=""
  3042. else
  3043. case $cross_compiling:$ac_tool_warned in
  3044. yes:)
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3046. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3047. ac_tool_warned=yes ;;
  3048. esac
  3049. CC=$ac_ct_CC
  3050. fi
  3051. else
  3052. CC="$ac_cv_prog_CC"
  3053. fi
  3054. if test -z "$CC"; then
  3055. if test -n "$ac_tool_prefix"; then
  3056. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3057. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3059. $as_echo_n "checking for $ac_word... " >&6; }
  3060. if ${ac_cv_prog_CC+:} false; then :
  3061. $as_echo_n "(cached) " >&6
  3062. else
  3063. if test -n "$CC"; then
  3064. ac_cv_prog_CC="$CC" # Let the user override the test.
  3065. else
  3066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3067. for as_dir in $PATH
  3068. do
  3069. IFS=$as_save_IFS
  3070. test -z "$as_dir" && as_dir=.
  3071. for ac_exec_ext in '' $ac_executable_extensions; do
  3072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3073. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3075. break 2
  3076. fi
  3077. done
  3078. done
  3079. IFS=$as_save_IFS
  3080. fi
  3081. fi
  3082. CC=$ac_cv_prog_CC
  3083. if test -n "$CC"; then
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3085. $as_echo "$CC" >&6; }
  3086. else
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3088. $as_echo "no" >&6; }
  3089. fi
  3090. fi
  3091. fi
  3092. if test -z "$CC"; then
  3093. # Extract the first word of "cc", so it can be a program name with args.
  3094. set dummy cc; ac_word=$2
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3096. $as_echo_n "checking for $ac_word... " >&6; }
  3097. if ${ac_cv_prog_CC+:} false; then :
  3098. $as_echo_n "(cached) " >&6
  3099. else
  3100. if test -n "$CC"; then
  3101. ac_cv_prog_CC="$CC" # Let the user override the test.
  3102. else
  3103. ac_prog_rejected=no
  3104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3105. for as_dir in $PATH
  3106. do
  3107. IFS=$as_save_IFS
  3108. test -z "$as_dir" && as_dir=.
  3109. for ac_exec_ext in '' $ac_executable_extensions; do
  3110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3111. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3112. ac_prog_rejected=yes
  3113. continue
  3114. fi
  3115. ac_cv_prog_CC="cc"
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3117. break 2
  3118. fi
  3119. done
  3120. done
  3121. IFS=$as_save_IFS
  3122. if test $ac_prog_rejected = yes; then
  3123. # We found a bogon in the path, so make sure we never use it.
  3124. set dummy $ac_cv_prog_CC
  3125. shift
  3126. if test $# != 0; then
  3127. # We chose a different compiler from the bogus one.
  3128. # However, it has the same basename, so the bogon will be chosen
  3129. # first if we set CC to just the basename; use the full file name.
  3130. shift
  3131. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3132. fi
  3133. fi
  3134. fi
  3135. fi
  3136. CC=$ac_cv_prog_CC
  3137. if test -n "$CC"; then
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3139. $as_echo "$CC" >&6; }
  3140. else
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3142. $as_echo "no" >&6; }
  3143. fi
  3144. fi
  3145. if test -z "$CC"; then
  3146. if test -n "$ac_tool_prefix"; then
  3147. for ac_prog in cl.exe
  3148. do
  3149. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3150. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3152. $as_echo_n "checking for $ac_word... " >&6; }
  3153. if ${ac_cv_prog_CC+:} false; then :
  3154. $as_echo_n "(cached) " >&6
  3155. else
  3156. if test -n "$CC"; then
  3157. ac_cv_prog_CC="$CC" # Let the user override the test.
  3158. else
  3159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3160. for as_dir in $PATH
  3161. do
  3162. IFS=$as_save_IFS
  3163. test -z "$as_dir" && as_dir=.
  3164. for ac_exec_ext in '' $ac_executable_extensions; do
  3165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3166. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3168. break 2
  3169. fi
  3170. done
  3171. done
  3172. IFS=$as_save_IFS
  3173. fi
  3174. fi
  3175. CC=$ac_cv_prog_CC
  3176. if test -n "$CC"; then
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3178. $as_echo "$CC" >&6; }
  3179. else
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3181. $as_echo "no" >&6; }
  3182. fi
  3183. test -n "$CC" && break
  3184. done
  3185. fi
  3186. if test -z "$CC"; then
  3187. ac_ct_CC=$CC
  3188. for ac_prog in cl.exe
  3189. do
  3190. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3191. set dummy $ac_prog; ac_word=$2
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3193. $as_echo_n "checking for $ac_word... " >&6; }
  3194. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. if test -n "$ac_ct_CC"; then
  3198. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3199. else
  3200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3201. for as_dir in $PATH
  3202. do
  3203. IFS=$as_save_IFS
  3204. test -z "$as_dir" && as_dir=.
  3205. for ac_exec_ext in '' $ac_executable_extensions; do
  3206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3207. ac_cv_prog_ac_ct_CC="$ac_prog"
  3208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3209. break 2
  3210. fi
  3211. done
  3212. done
  3213. IFS=$as_save_IFS
  3214. fi
  3215. fi
  3216. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3217. if test -n "$ac_ct_CC"; then
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3219. $as_echo "$ac_ct_CC" >&6; }
  3220. else
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3222. $as_echo "no" >&6; }
  3223. fi
  3224. test -n "$ac_ct_CC" && break
  3225. done
  3226. if test "x$ac_ct_CC" = x; then
  3227. CC=""
  3228. else
  3229. case $cross_compiling:$ac_tool_warned in
  3230. yes:)
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3233. ac_tool_warned=yes ;;
  3234. esac
  3235. CC=$ac_ct_CC
  3236. fi
  3237. fi
  3238. fi
  3239. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. as_fn_error $? "no acceptable C compiler found in \$PATH
  3242. See \`config.log' for more details" "$LINENO" 5; }
  3243. # Provide some information about the compiler.
  3244. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3245. set X $ac_compile
  3246. ac_compiler=$2
  3247. for ac_option in --version -v -V -qversion; do
  3248. { { ac_try="$ac_compiler $ac_option >&5"
  3249. case "(($ac_try" in
  3250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3251. *) ac_try_echo=$ac_try;;
  3252. esac
  3253. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3254. $as_echo "$ac_try_echo"; } >&5
  3255. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3256. ac_status=$?
  3257. if test -s conftest.err; then
  3258. sed '10a\
  3259. ... rest of stderr output deleted ...
  3260. 10q' conftest.err >conftest.er1
  3261. cat conftest.er1 >&5
  3262. fi
  3263. rm -f conftest.er1 conftest.err
  3264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3265. test $ac_status = 0; }
  3266. done
  3267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3268. /* end confdefs.h. */
  3269. int
  3270. main ()
  3271. {
  3272. ;
  3273. return 0;
  3274. }
  3275. _ACEOF
  3276. ac_clean_files_save=$ac_clean_files
  3277. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3278. # Try to create an executable without -o first, disregard a.out.
  3279. # It will help us diagnose broken compilers, and finding out an intuition
  3280. # of exeext.
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3282. $as_echo_n "checking whether the C compiler works... " >&6; }
  3283. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3284. # The possible output files:
  3285. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3286. ac_rmfiles=
  3287. for ac_file in $ac_files
  3288. do
  3289. case $ac_file in
  3290. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3291. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3292. esac
  3293. done
  3294. rm -f $ac_rmfiles
  3295. if { { ac_try="$ac_link_default"
  3296. case "(($ac_try" in
  3297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3298. *) ac_try_echo=$ac_try;;
  3299. esac
  3300. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3301. $as_echo "$ac_try_echo"; } >&5
  3302. (eval "$ac_link_default") 2>&5
  3303. ac_status=$?
  3304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3305. test $ac_status = 0; }; then :
  3306. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3307. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3308. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3309. # so that the user can short-circuit this test for compilers unknown to
  3310. # Autoconf.
  3311. for ac_file in $ac_files ''
  3312. do
  3313. test -f "$ac_file" || continue
  3314. case $ac_file in
  3315. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3316. ;;
  3317. [ab].out )
  3318. # We found the default executable, but exeext='' is most
  3319. # certainly right.
  3320. break;;
  3321. *.* )
  3322. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3323. then :; else
  3324. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3325. fi
  3326. # We set ac_cv_exeext here because the later test for it is not
  3327. # safe: cross compilers may not add the suffix if given an `-o'
  3328. # argument, so we may need to know it at that point already.
  3329. # Even if this section looks crufty: it has the advantage of
  3330. # actually working.
  3331. break;;
  3332. * )
  3333. break;;
  3334. esac
  3335. done
  3336. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3337. else
  3338. ac_file=''
  3339. fi
  3340. if test -z "$ac_file"; then :
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3342. $as_echo "no" >&6; }
  3343. $as_echo "$as_me: failed program was:" >&5
  3344. sed 's/^/| /' conftest.$ac_ext >&5
  3345. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3346. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3347. as_fn_error 77 "C compiler cannot create executables
  3348. See \`config.log' for more details" "$LINENO" 5; }
  3349. else
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3351. $as_echo "yes" >&6; }
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3354. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3356. $as_echo "$ac_file" >&6; }
  3357. ac_exeext=$ac_cv_exeext
  3358. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3359. ac_clean_files=$ac_clean_files_save
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3361. $as_echo_n "checking for suffix of executables... " >&6; }
  3362. if { { ac_try="$ac_link"
  3363. case "(($ac_try" in
  3364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. *) ac_try_echo=$ac_try;;
  3366. esac
  3367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3368. $as_echo "$ac_try_echo"; } >&5
  3369. (eval "$ac_link") 2>&5
  3370. ac_status=$?
  3371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3372. test $ac_status = 0; }; then :
  3373. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3374. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3375. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3376. # `rm'.
  3377. for ac_file in conftest.exe conftest conftest.*; do
  3378. test -f "$ac_file" || continue
  3379. case $ac_file in
  3380. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3381. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3382. break;;
  3383. * ) break;;
  3384. esac
  3385. done
  3386. else
  3387. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3389. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3390. See \`config.log' for more details" "$LINENO" 5; }
  3391. fi
  3392. rm -f conftest conftest$ac_cv_exeext
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3394. $as_echo "$ac_cv_exeext" >&6; }
  3395. rm -f conftest.$ac_ext
  3396. EXEEXT=$ac_cv_exeext
  3397. ac_exeext=$EXEEXT
  3398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3399. /* end confdefs.h. */
  3400. #include <stdio.h>
  3401. int
  3402. main ()
  3403. {
  3404. FILE *f = fopen ("conftest.out", "w");
  3405. return ferror (f) || fclose (f) != 0;
  3406. ;
  3407. return 0;
  3408. }
  3409. _ACEOF
  3410. ac_clean_files="$ac_clean_files conftest.out"
  3411. # Check that the compiler produces executables we can run. If not, either
  3412. # the compiler is broken, or we cross compile.
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3414. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3415. if test "$cross_compiling" != yes; then
  3416. { { ac_try="$ac_link"
  3417. case "(($ac_try" in
  3418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3419. *) ac_try_echo=$ac_try;;
  3420. esac
  3421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3422. $as_echo "$ac_try_echo"; } >&5
  3423. (eval "$ac_link") 2>&5
  3424. ac_status=$?
  3425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3426. test $ac_status = 0; }
  3427. if { ac_try='./conftest$ac_cv_exeext'
  3428. { { case "(($ac_try" in
  3429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3430. *) ac_try_echo=$ac_try;;
  3431. esac
  3432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3433. $as_echo "$ac_try_echo"; } >&5
  3434. (eval "$ac_try") 2>&5
  3435. ac_status=$?
  3436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3437. test $ac_status = 0; }; }; then
  3438. cross_compiling=no
  3439. else
  3440. if test "$cross_compiling" = maybe; then
  3441. cross_compiling=yes
  3442. else
  3443. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3444. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3445. as_fn_error $? "cannot run C compiled programs.
  3446. If you meant to cross compile, use \`--host'.
  3447. See \`config.log' for more details" "$LINENO" 5; }
  3448. fi
  3449. fi
  3450. fi
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3452. $as_echo "$cross_compiling" >&6; }
  3453. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3454. ac_clean_files=$ac_clean_files_save
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3456. $as_echo_n "checking for suffix of object files... " >&6; }
  3457. if ${ac_cv_objext+:} false; then :
  3458. $as_echo_n "(cached) " >&6
  3459. else
  3460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3461. /* end confdefs.h. */
  3462. int
  3463. main ()
  3464. {
  3465. ;
  3466. return 0;
  3467. }
  3468. _ACEOF
  3469. rm -f conftest.o conftest.obj
  3470. if { { ac_try="$ac_compile"
  3471. case "(($ac_try" in
  3472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3473. *) ac_try_echo=$ac_try;;
  3474. esac
  3475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3476. $as_echo "$ac_try_echo"; } >&5
  3477. (eval "$ac_compile") 2>&5
  3478. ac_status=$?
  3479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3480. test $ac_status = 0; }; then :
  3481. for ac_file in conftest.o conftest.obj conftest.*; do
  3482. test -f "$ac_file" || continue;
  3483. case $ac_file in
  3484. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3485. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3486. break;;
  3487. esac
  3488. done
  3489. else
  3490. $as_echo "$as_me: failed program was:" >&5
  3491. sed 's/^/| /' conftest.$ac_ext >&5
  3492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3494. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3495. See \`config.log' for more details" "$LINENO" 5; }
  3496. fi
  3497. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3498. fi
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3500. $as_echo "$ac_cv_objext" >&6; }
  3501. OBJEXT=$ac_cv_objext
  3502. ac_objext=$OBJEXT
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3504. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3505. if ${ac_cv_c_compiler_gnu+:} false; then :
  3506. $as_echo_n "(cached) " >&6
  3507. else
  3508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3509. /* end confdefs.h. */
  3510. int
  3511. main ()
  3512. {
  3513. #ifndef __GNUC__
  3514. choke me
  3515. #endif
  3516. ;
  3517. return 0;
  3518. }
  3519. _ACEOF
  3520. if ac_fn_c_try_compile "$LINENO"; then :
  3521. ac_compiler_gnu=yes
  3522. else
  3523. ac_compiler_gnu=no
  3524. fi
  3525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3526. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3527. fi
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3529. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3530. if test $ac_compiler_gnu = yes; then
  3531. GCC=yes
  3532. else
  3533. GCC=
  3534. fi
  3535. ac_test_CFLAGS=${CFLAGS+set}
  3536. ac_save_CFLAGS=$CFLAGS
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3538. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3539. if ${ac_cv_prog_cc_g+:} false; then :
  3540. $as_echo_n "(cached) " >&6
  3541. else
  3542. ac_save_c_werror_flag=$ac_c_werror_flag
  3543. ac_c_werror_flag=yes
  3544. ac_cv_prog_cc_g=no
  3545. CFLAGS="-g"
  3546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3547. /* end confdefs.h. */
  3548. int
  3549. main ()
  3550. {
  3551. ;
  3552. return 0;
  3553. }
  3554. _ACEOF
  3555. if ac_fn_c_try_compile "$LINENO"; then :
  3556. ac_cv_prog_cc_g=yes
  3557. else
  3558. CFLAGS=""
  3559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3560. /* end confdefs.h. */
  3561. int
  3562. main ()
  3563. {
  3564. ;
  3565. return 0;
  3566. }
  3567. _ACEOF
  3568. if ac_fn_c_try_compile "$LINENO"; then :
  3569. else
  3570. ac_c_werror_flag=$ac_save_c_werror_flag
  3571. CFLAGS="-g"
  3572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3573. /* end confdefs.h. */
  3574. int
  3575. main ()
  3576. {
  3577. ;
  3578. return 0;
  3579. }
  3580. _ACEOF
  3581. if ac_fn_c_try_compile "$LINENO"; then :
  3582. ac_cv_prog_cc_g=yes
  3583. fi
  3584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3585. fi
  3586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3587. fi
  3588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3589. ac_c_werror_flag=$ac_save_c_werror_flag
  3590. fi
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3592. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3593. if test "$ac_test_CFLAGS" = set; then
  3594. CFLAGS=$ac_save_CFLAGS
  3595. elif test $ac_cv_prog_cc_g = yes; then
  3596. if test "$GCC" = yes; then
  3597. CFLAGS="-g -O2"
  3598. else
  3599. CFLAGS="-g"
  3600. fi
  3601. else
  3602. if test "$GCC" = yes; then
  3603. CFLAGS="-O2"
  3604. else
  3605. CFLAGS=
  3606. fi
  3607. fi
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3609. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3610. if ${ac_cv_prog_cc_c89+:} false; then :
  3611. $as_echo_n "(cached) " >&6
  3612. else
  3613. ac_cv_prog_cc_c89=no
  3614. ac_save_CC=$CC
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. #include <stdarg.h>
  3618. #include <stdio.h>
  3619. #include <sys/types.h>
  3620. #include <sys/stat.h>
  3621. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3622. struct buf { int x; };
  3623. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3624. static char *e (p, i)
  3625. char **p;
  3626. int i;
  3627. {
  3628. return p[i];
  3629. }
  3630. static char *f (char * (*g) (char **, int), char **p, ...)
  3631. {
  3632. char *s;
  3633. va_list v;
  3634. va_start (v,p);
  3635. s = g (p, va_arg (v,int));
  3636. va_end (v);
  3637. return s;
  3638. }
  3639. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3640. function prototypes and stuff, but not '\xHH' hex character constants.
  3641. These don't provoke an error unfortunately, instead are silently treated
  3642. as 'x'. The following induces an error, until -std is added to get
  3643. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3644. array size at least. It's necessary to write '\x00'==0 to get something
  3645. that's true only with -std. */
  3646. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3647. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3648. inside strings and character constants. */
  3649. #define FOO(x) 'x'
  3650. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3651. int test (int i, double x);
  3652. struct s1 {int (*f) (int a);};
  3653. struct s2 {int (*f) (double a);};
  3654. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3655. int argc;
  3656. char **argv;
  3657. int
  3658. main ()
  3659. {
  3660. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3661. ;
  3662. return 0;
  3663. }
  3664. _ACEOF
  3665. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3666. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3667. do
  3668. CC="$ac_save_CC $ac_arg"
  3669. if ac_fn_c_try_compile "$LINENO"; then :
  3670. ac_cv_prog_cc_c89=$ac_arg
  3671. fi
  3672. rm -f core conftest.err conftest.$ac_objext
  3673. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3674. done
  3675. rm -f conftest.$ac_ext
  3676. CC=$ac_save_CC
  3677. fi
  3678. # AC_CACHE_VAL
  3679. case "x$ac_cv_prog_cc_c89" in
  3680. x)
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3682. $as_echo "none needed" >&6; } ;;
  3683. xno)
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3685. $as_echo "unsupported" >&6; } ;;
  3686. *)
  3687. CC="$CC $ac_cv_prog_cc_c89"
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3689. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3690. esac
  3691. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3692. fi
  3693. ac_ext=c
  3694. ac_cpp='$CPP $CPPFLAGS'
  3695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3698. # Check whether --enable-largefile was given.
  3699. if test "${enable_largefile+set}" = set; then :
  3700. enableval=$enable_largefile;
  3701. fi
  3702. if test "$enable_largefile" != no; then
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3704. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3705. if ${ac_cv_sys_largefile_CC+:} false; then :
  3706. $as_echo_n "(cached) " >&6
  3707. else
  3708. ac_cv_sys_largefile_CC=no
  3709. if test "$GCC" != yes; then
  3710. ac_save_CC=$CC
  3711. while :; do
  3712. # IRIX 6.2 and later do not support large files by default,
  3713. # so use the C compiler's -n32 option if that helps.
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. #include <sys/types.h>
  3717. /* Check that off_t can represent 2**63 - 1 correctly.
  3718. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3719. since some C++ compilers masquerading as C compilers
  3720. incorrectly reject 9223372036854775807. */
  3721. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3722. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3723. && LARGE_OFF_T % 2147483647 == 1)
  3724. ? 1 : -1];
  3725. int
  3726. main ()
  3727. {
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. if ac_fn_c_try_compile "$LINENO"; then :
  3733. break
  3734. fi
  3735. rm -f core conftest.err conftest.$ac_objext
  3736. CC="$CC -n32"
  3737. if ac_fn_c_try_compile "$LINENO"; then :
  3738. ac_cv_sys_largefile_CC=' -n32'; break
  3739. fi
  3740. rm -f core conftest.err conftest.$ac_objext
  3741. break
  3742. done
  3743. CC=$ac_save_CC
  3744. rm -f conftest.$ac_ext
  3745. fi
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3748. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3749. if test "$ac_cv_sys_largefile_CC" != no; then
  3750. CC=$CC$ac_cv_sys_largefile_CC
  3751. fi
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3753. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3754. if ${ac_cv_sys_file_offset_bits+:} false; then :
  3755. $as_echo_n "(cached) " >&6
  3756. else
  3757. while :; do
  3758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3759. /* end confdefs.h. */
  3760. #include <sys/types.h>
  3761. /* Check that off_t can represent 2**63 - 1 correctly.
  3762. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3763. since some C++ compilers masquerading as C compilers
  3764. incorrectly reject 9223372036854775807. */
  3765. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3766. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3767. && LARGE_OFF_T % 2147483647 == 1)
  3768. ? 1 : -1];
  3769. int
  3770. main ()
  3771. {
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. if ac_fn_c_try_compile "$LINENO"; then :
  3777. ac_cv_sys_file_offset_bits=no; break
  3778. fi
  3779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3781. /* end confdefs.h. */
  3782. #define _FILE_OFFSET_BITS 64
  3783. #include <sys/types.h>
  3784. /* Check that off_t can represent 2**63 - 1 correctly.
  3785. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3786. since some C++ compilers masquerading as C compilers
  3787. incorrectly reject 9223372036854775807. */
  3788. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3789. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3790. && LARGE_OFF_T % 2147483647 == 1)
  3791. ? 1 : -1];
  3792. int
  3793. main ()
  3794. {
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. if ac_fn_c_try_compile "$LINENO"; then :
  3800. ac_cv_sys_file_offset_bits=64; break
  3801. fi
  3802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3803. ac_cv_sys_file_offset_bits=unknown
  3804. break
  3805. done
  3806. fi
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3808. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3809. case $ac_cv_sys_file_offset_bits in #(
  3810. no | unknown) ;;
  3811. *)
  3812. cat >>confdefs.h <<_ACEOF
  3813. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3814. _ACEOF
  3815. ;;
  3816. esac
  3817. rm -rf conftest*
  3818. if test $ac_cv_sys_file_offset_bits = unknown; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3820. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3821. if ${ac_cv_sys_large_files+:} false; then :
  3822. $as_echo_n "(cached) " >&6
  3823. else
  3824. while :; do
  3825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3826. /* end confdefs.h. */
  3827. #include <sys/types.h>
  3828. /* Check that off_t can represent 2**63 - 1 correctly.
  3829. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3830. since some C++ compilers masquerading as C compilers
  3831. incorrectly reject 9223372036854775807. */
  3832. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3833. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3834. && LARGE_OFF_T % 2147483647 == 1)
  3835. ? 1 : -1];
  3836. int
  3837. main ()
  3838. {
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. ac_cv_sys_large_files=no; break
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3848. /* end confdefs.h. */
  3849. #define _LARGE_FILES 1
  3850. #include <sys/types.h>
  3851. /* Check that off_t can represent 2**63 - 1 correctly.
  3852. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3853. since some C++ compilers masquerading as C compilers
  3854. incorrectly reject 9223372036854775807. */
  3855. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3856. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3857. && LARGE_OFF_T % 2147483647 == 1)
  3858. ? 1 : -1];
  3859. int
  3860. main ()
  3861. {
  3862. ;
  3863. return 0;
  3864. }
  3865. _ACEOF
  3866. if ac_fn_c_try_compile "$LINENO"; then :
  3867. ac_cv_sys_large_files=1; break
  3868. fi
  3869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. ac_cv_sys_large_files=unknown
  3871. break
  3872. done
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3875. $as_echo "$ac_cv_sys_large_files" >&6; }
  3876. case $ac_cv_sys_large_files in #(
  3877. no | unknown) ;;
  3878. *)
  3879. cat >>confdefs.h <<_ACEOF
  3880. #define _LARGE_FILES $ac_cv_sys_large_files
  3881. _ACEOF
  3882. ;;
  3883. esac
  3884. rm -rf conftest*
  3885. fi
  3886. fi
  3887. echo "ac: $ac_cv_sys_file_offset_bits"
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
  3889. $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
  3890. if ${largefile64_cv_source+:} false; then :
  3891. $as_echo_n "(cached) " >&6
  3892. else
  3893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3894. /* end confdefs.h. */
  3895. #include <sys/types.h>
  3896. #include <sys/stat.h>
  3897. #include <fcntl.h>
  3898. int
  3899. main ()
  3900. {
  3901. int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. if ac_fn_c_try_compile "$LINENO"; then :
  3907. largefile64_source="no"
  3908. else
  3909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3910. /* end confdefs.h. */
  3911. #define _LARGEFILE64_SOURCE
  3912. #include <sys/types.h>
  3913. #include <sys/stat.h>
  3914. #include <fcntl.h>
  3915. int
  3916. main ()
  3917. {
  3918. int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
  3919. ;
  3920. return 0;
  3921. }
  3922. _ACEOF
  3923. if ac_fn_c_try_compile "$LINENO"; then :
  3924. largefile64_source="yes"
  3925. else
  3926. largefile64_source="unknown"
  3927. fi
  3928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3929. fi
  3930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3931. fi
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
  3933. $as_echo "$largefile64_cv_source" >&6; }
  3934. if test "x$largefile64_source" = "xyes"; then
  3935. LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
  3936. enable_largefile="yes"
  3937. elif test "x$largefile64_source" = "xunknown"; then
  3938. $as_echo "#define O_LARGEFILE 0" >>confdefs.h
  3939. fi
  3940. if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
  3941. LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
  3942. enable_largefile="yes"
  3943. fi
  3944. if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
  3945. LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  3946. enable_largefile="yes"
  3947. fi
  3948. # In order to be able to change the scilab directory
  3949. # See http://wiki.debian.org/RpathIssue
  3950. # Find a good install program. We prefer a C program (faster),
  3951. # so one script is as good as another. But avoid the broken or
  3952. # incompatible versions:
  3953. # SysV /etc/install, /usr/sbin/install
  3954. # SunOS /usr/etc/install
  3955. # IRIX /sbin/install
  3956. # AIX /bin/install
  3957. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3958. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3959. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3960. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3961. # OS/2's system install, which has a completely different semantic
  3962. # ./install, which can be erroneously created by make from ./install.sh.
  3963. # Reject install programs that cannot install multiple files.
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3965. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3966. if test -z "$INSTALL"; then
  3967. if ${ac_cv_path_install+:} false; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. # Account for people who put trailing slashes in PATH elements.
  3976. case $as_dir/ in #((
  3977. ./ | .// | /[cC]/* | \
  3978. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3979. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3980. /usr/ucb/* ) ;;
  3981. *)
  3982. # OSF1 and SCO ODT 3.0 have their own names for install.
  3983. # Don't use installbsd from OSF since it installs stuff as root
  3984. # by default.
  3985. for ac_prog in ginstall scoinst install; do
  3986. for ac_exec_ext in '' $ac_executable_extensions; do
  3987. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3988. if test $ac_prog = install &&
  3989. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3990. # AIX install. It has an incompatible calling convention.
  3991. :
  3992. elif test $ac_prog = install &&
  3993. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3994. # program-specific install script used by HP pwplus--don't use.
  3995. :
  3996. else
  3997. rm -rf conftest.one conftest.two conftest.dir
  3998. echo one > conftest.one
  3999. echo two > conftest.two
  4000. mkdir conftest.dir
  4001. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4002. test -s conftest.one && test -s conftest.two &&
  4003. test -s conftest.dir/conftest.one &&
  4004. test -s conftest.dir/conftest.two
  4005. then
  4006. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4007. break 3
  4008. fi
  4009. fi
  4010. fi
  4011. done
  4012. done
  4013. ;;
  4014. esac
  4015. done
  4016. IFS=$as_save_IFS
  4017. rm -rf conftest.one conftest.two conftest.dir
  4018. fi
  4019. if test "${ac_cv_path_install+set}" = set; then
  4020. INSTALL=$ac_cv_path_install
  4021. else
  4022. # As a last resort, use the slow shell script. Don't cache a
  4023. # value for INSTALL within a source directory, because that will
  4024. # break other packages using the cache if that directory is
  4025. # removed, or if the value is a relative name.
  4026. INSTALL=$ac_install_sh
  4027. fi
  4028. fi
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4030. $as_echo "$INSTALL" >&6; }
  4031. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4032. # It thinks the first close brace ends the variable substitution.
  4033. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4034. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4035. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4036. # Make sure we can run config.sub.
  4037. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4038. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4040. $as_echo_n "checking build system type... " >&6; }
  4041. if ${ac_cv_build+:} false; then :
  4042. $as_echo_n "(cached) " >&6
  4043. else
  4044. ac_build_alias=$build_alias
  4045. test "x$ac_build_alias" = x &&
  4046. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4047. test "x$ac_build_alias" = x &&
  4048. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4049. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4050. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4051. fi
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4053. $as_echo "$ac_cv_build" >&6; }
  4054. case $ac_cv_build in
  4055. *-*-*) ;;
  4056. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4057. esac
  4058. build=$ac_cv_build
  4059. ac_save_IFS=$IFS; IFS='-'
  4060. set x $ac_cv_build
  4061. shift
  4062. build_cpu=$1
  4063. build_vendor=$2
  4064. shift; shift
  4065. # Remember, the first character of IFS is used to create $*,
  4066. # except with old shells:
  4067. build_os=$*
  4068. IFS=$ac_save_IFS
  4069. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4071. $as_echo_n "checking host system type... " >&6; }
  4072. if ${ac_cv_host+:} false; then :
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. if test "x$host_alias" = x; then
  4076. ac_cv_host=$ac_cv_build
  4077. else
  4078. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4079. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4080. fi
  4081. fi
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4083. $as_echo "$ac_cv_host" >&6; }
  4084. case $ac_cv_host in
  4085. *-*-*) ;;
  4086. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4087. esac
  4088. host=$ac_cv_host
  4089. ac_save_IFS=$IFS; IFS='-'
  4090. set x $ac_cv_host
  4091. shift
  4092. host_cpu=$1
  4093. host_vendor=$2
  4094. shift; shift
  4095. # Remember, the first character of IFS is used to create $*,
  4096. # except with old shells:
  4097. host_os=$*
  4098. IFS=$ac_save_IFS
  4099. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4100. # Check whether --with-gnu-ld was given.
  4101. if test "${with_gnu_ld+set}" = set; then :
  4102. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4103. else
  4104. with_gnu_ld=no
  4105. fi
  4106. # Prepare PATH_SEPARATOR.
  4107. # The user is always right.
  4108. if test "${PATH_SEPARATOR+set}" != set; then
  4109. echo "#! /bin/sh" >conf$$.sh
  4110. echo "exit 0" >>conf$$.sh
  4111. chmod +x conf$$.sh
  4112. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4113. PATH_SEPARATOR=';'
  4114. else
  4115. PATH_SEPARATOR=:
  4116. fi
  4117. rm -f conf$$.sh
  4118. fi
  4119. ac_prog=ld
  4120. if test "$GCC" = yes; then
  4121. # Check if gcc -print-prog-name=ld gives a path.
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  4123. $as_echo_n "checking for ld used by GCC... " >&6; }
  4124. case $host in
  4125. *-*-mingw*)
  4126. # gcc leaves a trailing carriage return which upsets mingw
  4127. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4128. *)
  4129. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4130. esac
  4131. case $ac_prog in
  4132. # Accept absolute paths.
  4133. [\\/]* | [A-Za-z]:[\\/]*)
  4134. re_direlt='/[^/][^/]*/\.\./'
  4135. # Canonicalize the path of ld
  4136. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4137. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4138. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4139. done
  4140. test -z "$LD" && LD="$ac_prog"
  4141. ;;
  4142. "")
  4143. # If it fails, then pretend we aren't using GCC.
  4144. ac_prog=ld
  4145. ;;
  4146. *)
  4147. # If it is relative, then search for the first ld in PATH.
  4148. with_gnu_ld=unknown
  4149. ;;
  4150. esac
  4151. elif test "$with_gnu_ld" = yes; then
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4153. $as_echo_n "checking for GNU ld... " >&6; }
  4154. else
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4156. $as_echo_n "checking for non-GNU ld... " >&6; }
  4157. fi
  4158. if ${acl_cv_path_LD+:} false; then :
  4159. $as_echo_n "(cached) " >&6
  4160. else
  4161. if test -z "$LD"; then
  4162. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4163. for ac_dir in $PATH; do
  4164. test -z "$ac_dir" && ac_dir=.
  4165. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4166. acl_cv_path_LD="$ac_dir/$ac_prog"
  4167. # Check to see if the program is GNU ld. I'd rather use --version,
  4168. # but apparently some GNU ld's only accept -v.
  4169. # Break only if it was the GNU/non-GNU ld that we prefer.
  4170. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  4171. *GNU* | *'with BFD'*)
  4172. test "$with_gnu_ld" != no && break ;;
  4173. *)
  4174. test "$with_gnu_ld" != yes && break ;;
  4175. esac
  4176. fi
  4177. done
  4178. IFS="$ac_save_ifs"
  4179. else
  4180. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  4181. fi
  4182. fi
  4183. LD="$acl_cv_path_LD"
  4184. if test -n "$LD"; then
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4186. $as_echo "$LD" >&6; }
  4187. else
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4189. $as_echo "no" >&6; }
  4190. fi
  4191. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4193. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4194. if ${acl_cv_prog_gnu_ld+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4198. case `$LD -v 2>&1 </dev/null` in
  4199. *GNU* | *'with BFD'*)
  4200. acl_cv_prog_gnu_ld=yes ;;
  4201. *)
  4202. acl_cv_prog_gnu_ld=no ;;
  4203. esac
  4204. fi
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4206. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4207. with_gnu_ld=$acl_cv_prog_gnu_ld
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
  4209. $as_echo_n "checking for shared library path variable... " >&6; }
  4210. if ${acl_cv_libpath+:} false; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. LD="$LD" \
  4214. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
  4215. . ./conftest.sh
  4216. rm -f ./conftest.sh
  4217. acl_cv_libpath=${acl_cv_shlibpath_var:-none}
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
  4220. $as_echo "$acl_cv_libpath" >&6; }
  4221. shlibpath_var="$acl_cv_shlibpath_var"
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
  4223. $as_echo_n "checking whether to activate relocatable installation... " >&6; }
  4224. # Check whether --enable-relocatable was given.
  4225. if test "${enable_relocatable+set}" = set; then :
  4226. enableval=$enable_relocatable; if test "$enableval" != no; then
  4227. RELOCATABLE=yes
  4228. else
  4229. RELOCATABLE=no
  4230. fi
  4231. else
  4232. RELOCATABLE=no
  4233. fi
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
  4235. $as_echo "$RELOCATABLE" >&6; }
  4236. if test "X$prefix" = "XNONE"; then
  4237. reloc_final_prefix="$ac_default_prefix"
  4238. else
  4239. reloc_final_prefix="$prefix"
  4240. fi
  4241. cat >>confdefs.h <<_ACEOF
  4242. #define INSTALLPREFIX "${reloc_final_prefix}"
  4243. _ACEOF
  4244. ac_ext=c
  4245. ac_cpp='$CPP $CPPFLAGS'
  4246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4250. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4251. # On Suns, sometimes $CPP names a directory.
  4252. if test -n "$CPP" && test -d "$CPP"; then
  4253. CPP=
  4254. fi
  4255. if test -z "$CPP"; then
  4256. if ${ac_cv_prog_CPP+:} false; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. # Double quotes because CPP needs to be expanded
  4260. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4261. do
  4262. ac_preproc_ok=false
  4263. for ac_c_preproc_warn_flag in '' yes
  4264. do
  4265. # Use a header file that comes with gcc, so configuring glibc
  4266. # with a fresh cross-compiler works.
  4267. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4268. # <limits.h> exists even on freestanding compilers.
  4269. # On the NeXT, cc -E runs the code through the compiler's parser,
  4270. # not just through cpp. "Syntax error" is here to catch this case.
  4271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4272. /* end confdefs.h. */
  4273. #ifdef __STDC__
  4274. # include <limits.h>
  4275. #else
  4276. # include <assert.h>
  4277. #endif
  4278. Syntax error
  4279. _ACEOF
  4280. if ac_fn_c_try_cpp "$LINENO"; then :
  4281. else
  4282. # Broken: fails on valid input.
  4283. continue
  4284. fi
  4285. rm -f conftest.err conftest.i conftest.$ac_ext
  4286. # OK, works on sane cases. Now check whether nonexistent headers
  4287. # can be detected and how.
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. #include <ac_nonexistent.h>
  4291. _ACEOF
  4292. if ac_fn_c_try_cpp "$LINENO"; then :
  4293. # Broken: success on invalid input.
  4294. continue
  4295. else
  4296. # Passes both tests.
  4297. ac_preproc_ok=:
  4298. break
  4299. fi
  4300. rm -f conftest.err conftest.i conftest.$ac_ext
  4301. done
  4302. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4303. rm -f conftest.i conftest.err conftest.$ac_ext
  4304. if $ac_preproc_ok; then :
  4305. break
  4306. fi
  4307. done
  4308. ac_cv_prog_CPP=$CPP
  4309. fi
  4310. CPP=$ac_cv_prog_CPP
  4311. else
  4312. ac_cv_prog_CPP=$CPP
  4313. fi
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4315. $as_echo "$CPP" >&6; }
  4316. ac_preproc_ok=false
  4317. for ac_c_preproc_warn_flag in '' yes
  4318. do
  4319. # Use a header file that comes with gcc, so configuring glibc
  4320. # with a fresh cross-compiler works.
  4321. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4322. # <limits.h> exists even on freestanding compilers.
  4323. # On the NeXT, cc -E runs the code through the compiler's parser,
  4324. # not just through cpp. "Syntax error" is here to catch this case.
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. #ifdef __STDC__
  4328. # include <limits.h>
  4329. #else
  4330. # include <assert.h>
  4331. #endif
  4332. Syntax error
  4333. _ACEOF
  4334. if ac_fn_c_try_cpp "$LINENO"; then :
  4335. else
  4336. # Broken: fails on valid input.
  4337. continue
  4338. fi
  4339. rm -f conftest.err conftest.i conftest.$ac_ext
  4340. # OK, works on sane cases. Now check whether nonexistent headers
  4341. # can be detected and how.
  4342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4343. /* end confdefs.h. */
  4344. #include <ac_nonexistent.h>
  4345. _ACEOF
  4346. if ac_fn_c_try_cpp "$LINENO"; then :
  4347. # Broken: success on invalid input.
  4348. continue
  4349. else
  4350. # Passes both tests.
  4351. ac_preproc_ok=:
  4352. break
  4353. fi
  4354. rm -f conftest.err conftest.i conftest.$ac_ext
  4355. done
  4356. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4357. rm -f conftest.i conftest.err conftest.$ac_ext
  4358. if $ac_preproc_ok; then :
  4359. else
  4360. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4362. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4363. See \`config.log' for more details" "$LINENO" 5; }
  4364. fi
  4365. ac_ext=c
  4366. ac_cpp='$CPP $CPPFLAGS'
  4367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4371. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4372. if ${ac_cv_path_GREP+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. if test -z "$GREP"; then
  4376. ac_path_GREP_found=false
  4377. # Loop through the user's path and test for each of PROGNAME-LIST
  4378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4379. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4380. do
  4381. IFS=$as_save_IFS
  4382. test -z "$as_dir" && as_dir=.
  4383. for ac_prog in grep ggrep; do
  4384. for ac_exec_ext in '' $ac_executable_extensions; do
  4385. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4386. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4387. # Check for GNU ac_path_GREP and select it if it is found.
  4388. # Check for GNU $ac_path_GREP
  4389. case `"$ac_path_GREP" --version 2>&1` in
  4390. *GNU*)
  4391. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4392. *)
  4393. ac_count=0
  4394. $as_echo_n 0123456789 >"conftest.in"
  4395. while :
  4396. do
  4397. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4398. mv "conftest.tmp" "conftest.in"
  4399. cp "conftest.in" "conftest.nl"
  4400. $as_echo 'GREP' >> "conftest.nl"
  4401. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4402. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4403. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4404. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4405. # Best one so far, save it but keep looking for a better one
  4406. ac_cv_path_GREP="$ac_path_GREP"
  4407. ac_path_GREP_max=$ac_count
  4408. fi
  4409. # 10*(2^10) chars as input seems more than enough
  4410. test $ac_count -gt 10 && break
  4411. done
  4412. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4413. esac
  4414. $ac_path_GREP_found && break 3
  4415. done
  4416. done
  4417. done
  4418. IFS=$as_save_IFS
  4419. if test -z "$ac_cv_path_GREP"; then
  4420. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4421. fi
  4422. else
  4423. ac_cv_path_GREP=$GREP
  4424. fi
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4427. $as_echo "$ac_cv_path_GREP" >&6; }
  4428. GREP="$ac_cv_path_GREP"
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4430. $as_echo_n "checking for egrep... " >&6; }
  4431. if ${ac_cv_path_EGREP+:} false; then :
  4432. $as_echo_n "(cached) " >&6
  4433. else
  4434. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4435. then ac_cv_path_EGREP="$GREP -E"
  4436. else
  4437. if test -z "$EGREP"; then
  4438. ac_path_EGREP_found=false
  4439. # Loop through the user's path and test for each of PROGNAME-LIST
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_prog in egrep; do
  4446. for ac_exec_ext in '' $ac_executable_extensions; do
  4447. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4448. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4449. # Check for GNU ac_path_EGREP and select it if it is found.
  4450. # Check for GNU $ac_path_EGREP
  4451. case `"$ac_path_EGREP" --version 2>&1` in
  4452. *GNU*)
  4453. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4454. *)
  4455. ac_count=0
  4456. $as_echo_n 0123456789 >"conftest.in"
  4457. while :
  4458. do
  4459. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4460. mv "conftest.tmp" "conftest.in"
  4461. cp "conftest.in" "conftest.nl"
  4462. $as_echo 'EGREP' >> "conftest.nl"
  4463. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4464. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4465. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4466. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4467. # Best one so far, save it but keep looking for a better one
  4468. ac_cv_path_EGREP="$ac_path_EGREP"
  4469. ac_path_EGREP_max=$ac_count
  4470. fi
  4471. # 10*(2^10) chars as input seems more than enough
  4472. test $ac_count -gt 10 && break
  4473. done
  4474. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4475. esac
  4476. $ac_path_EGREP_found && break 3
  4477. done
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. if test -z "$ac_cv_path_EGREP"; then
  4482. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4483. fi
  4484. else
  4485. ac_cv_path_EGREP=$EGREP
  4486. fi
  4487. fi
  4488. fi
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4490. $as_echo "$ac_cv_path_EGREP" >&6; }
  4491. EGREP="$ac_cv_path_EGREP"
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4493. $as_echo_n "checking for ANSI C header files... " >&6; }
  4494. if ${ac_cv_header_stdc+:} false; then :
  4495. $as_echo_n "(cached) " >&6
  4496. else
  4497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4498. /* end confdefs.h. */
  4499. #include <stdlib.h>
  4500. #include <stdarg.h>
  4501. #include <string.h>
  4502. #include <float.h>
  4503. int
  4504. main ()
  4505. {
  4506. ;
  4507. return 0;
  4508. }
  4509. _ACEOF
  4510. if ac_fn_c_try_compile "$LINENO"; then :
  4511. ac_cv_header_stdc=yes
  4512. else
  4513. ac_cv_header_stdc=no
  4514. fi
  4515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4516. if test $ac_cv_header_stdc = yes; then
  4517. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4519. /* end confdefs.h. */
  4520. #include <string.h>
  4521. _ACEOF
  4522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4523. $EGREP "memchr" >/dev/null 2>&1; then :
  4524. else
  4525. ac_cv_header_stdc=no
  4526. fi
  4527. rm -f conftest*
  4528. fi
  4529. if test $ac_cv_header_stdc = yes; then
  4530. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4532. /* end confdefs.h. */
  4533. #include <stdlib.h>
  4534. _ACEOF
  4535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4536. $EGREP "free" >/dev/null 2>&1; then :
  4537. else
  4538. ac_cv_header_stdc=no
  4539. fi
  4540. rm -f conftest*
  4541. fi
  4542. if test $ac_cv_header_stdc = yes; then
  4543. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4544. if test "$cross_compiling" = yes; then :
  4545. :
  4546. else
  4547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4548. /* end confdefs.h. */
  4549. #include <ctype.h>
  4550. #include <stdlib.h>
  4551. #if ((' ' & 0x0FF) == 0x020)
  4552. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4553. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4554. #else
  4555. # define ISLOWER(c) \
  4556. (('a' <= (c) && (c) <= 'i') \
  4557. || ('j' <= (c) && (c) <= 'r') \
  4558. || ('s' <= (c) && (c) <= 'z'))
  4559. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4560. #endif
  4561. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4562. int
  4563. main ()
  4564. {
  4565. int i;
  4566. for (i = 0; i < 256; i++)
  4567. if (XOR (islower (i), ISLOWER (i))
  4568. || toupper (i) != TOUPPER (i))
  4569. return 2;
  4570. return 0;
  4571. }
  4572. _ACEOF
  4573. if ac_fn_c_try_run "$LINENO"; then :
  4574. else
  4575. ac_cv_header_stdc=no
  4576. fi
  4577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4578. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4579. fi
  4580. fi
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4583. $as_echo "$ac_cv_header_stdc" >&6; }
  4584. if test $ac_cv_header_stdc = yes; then
  4585. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4586. fi
  4587. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4588. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4589. inttypes.h stdint.h unistd.h
  4590. do :
  4591. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4592. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4593. "
  4594. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4595. cat >>confdefs.h <<_ACEOF
  4596. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4597. _ACEOF
  4598. fi
  4599. done
  4600. is_noop=no
  4601. use_elf_origin_trick=no
  4602. if test $RELOCATABLE = yes; then
  4603. # --enable-relocatable implies --disable-rpath
  4604. enable_rpath=no
  4605. $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
  4606. for ac_header in unistd.h mach-o/dyld.h
  4607. do :
  4608. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4609. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4610. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4611. cat >>confdefs.h <<_ACEOF
  4612. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4613. _ACEOF
  4614. fi
  4615. done
  4616. for ac_func in _NSGetExecutablePath
  4617. do :
  4618. ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
  4619. if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
  4620. cat >>confdefs.h <<_ACEOF
  4621. #define HAVE__NSGETEXECUTABLEPATH 1
  4622. _ACEOF
  4623. fi
  4624. done
  4625. case "$host_os" in
  4626. mingw*) is_noop=yes ;;
  4627. linux*) use_elf_origin_trick=yes ;;
  4628. esac
  4629. if test $is_noop = yes; then
  4630. SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
  4631. else
  4632. if test $use_elf_origin_trick = yes; then
  4633. case "$ac_aux_dir" in
  4634. /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
  4635. *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
  4636. esac
  4637. SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
  4638. else
  4639. SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
  4640. case "$ac_aux_dir" in
  4641. /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
  4642. *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
  4643. esac
  4644. fi
  4645. fi
  4646. else
  4647. SET_RELOCATABLE=
  4648. fi
  4649. if test $is_noop = yes || test $use_elf_origin_trick = yes; then
  4650. RELOCATABLE_VIA_LD_TRUE=
  4651. RELOCATABLE_VIA_LD_FALSE='#'
  4652. else
  4653. RELOCATABLE_VIA_LD_TRUE='#'
  4654. RELOCATABLE_VIA_LD_FALSE=
  4655. fi
  4656. if test $RELOCATABLE = yes; then
  4657. case " $LIBOBJS " in
  4658. *" relocatable.$ac_objext "* ) ;;
  4659. *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
  4660. ;;
  4661. esac
  4662. fi
  4663. if test "X$prefix" = "XNONE"; then
  4664. reloc_final_prefix="$ac_default_prefix"
  4665. else
  4666. reloc_final_prefix="$prefix"
  4667. fi
  4668. cat >>confdefs.h <<_ACEOF
  4669. #define INSTALLPREFIX "${reloc_final_prefix}"
  4670. _ACEOF
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  4672. $as_echo_n "checking for shared library run path origin... " >&6; }
  4673. if ${acl_cv_rpath+:} false; then :
  4674. $as_echo_n "(cached) " >&6
  4675. else
  4676. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  4677. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  4678. . ./conftest.sh
  4679. rm -f ./conftest.sh
  4680. acl_cv_rpath=done
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  4683. $as_echo "$acl_cv_rpath" >&6; }
  4684. wl="$acl_cv_wl"
  4685. acl_libext="$acl_cv_libext"
  4686. acl_shlibext="$acl_cv_shlibext"
  4687. acl_libname_spec="$acl_cv_libname_spec"
  4688. acl_library_names_spec="$acl_cv_library_names_spec"
  4689. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  4690. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  4691. acl_hardcode_direct="$acl_cv_hardcode_direct"
  4692. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  4693. # Check whether --enable-rpath was given.
  4694. if test "${enable_rpath+set}" = set; then :
  4695. enableval=$enable_rpath; :
  4696. else
  4697. enable_rpath=yes
  4698. fi
  4699. # If configure detect that timestamp changed,
  4700. # it tries to rebuild configure & makefile which can be a painmaker
  4701. # if the version is different
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4703. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4704. # Check whether --enable-maintainer-mode was given.
  4705. if test "${enable_maintainer_mode+set}" = set; then :
  4706. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4707. else
  4708. USE_MAINTAINER_MODE=no
  4709. fi
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4711. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4712. if test $USE_MAINTAINER_MODE = yes; then
  4713. MAINTAINER_MODE_TRUE=
  4714. MAINTAINER_MODE_FALSE='#'
  4715. else
  4716. MAINTAINER_MODE_TRUE='#'
  4717. MAINTAINER_MODE_FALSE=
  4718. fi
  4719. MAINT=$MAINTAINER_MODE_TRUE
  4720. am__api_version='1.11'
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4722. $as_echo_n "checking whether build environment is sane... " >&6; }
  4723. # Just in case
  4724. sleep 1
  4725. echo timestamp > conftest.file
  4726. # Reject unsafe characters in $srcdir or the absolute working directory
  4727. # name. Accept space and tab only in the latter.
  4728. am_lf='
  4729. '
  4730. case `pwd` in
  4731. *[\\\"\#\$\&\'\`$am_lf]*)
  4732. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  4733. esac
  4734. case $srcdir in
  4735. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  4736. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  4737. esac
  4738. # Do `set' in a subshell so we don't clobber the current shell's
  4739. # arguments. Must try -L first in case configure is actually a
  4740. # symlink; some systems play weird games with the mod time of symlinks
  4741. # (eg FreeBSD returns the mod time of the symlink's containing
  4742. # directory).
  4743. if (
  4744. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  4745. if test "$*" = "X"; then
  4746. # -L didn't work.
  4747. set X `ls -t "$srcdir/configure" conftest.file`
  4748. fi
  4749. rm -f conftest.file
  4750. if test "$*" != "X $srcdir/configure conftest.file" \
  4751. && test "$*" != "X conftest.file $srcdir/configure"; then
  4752. # If neither matched, then we have a broken ls. This can happen
  4753. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4754. # broken ls alias from the environment. This has actually
  4755. # happened. Such a system could not be considered "sane".
  4756. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  4757. alias in your environment" "$LINENO" 5
  4758. fi
  4759. test "$2" = conftest.file
  4760. )
  4761. then
  4762. # Ok.
  4763. :
  4764. else
  4765. as_fn_error $? "newly created file is older than distributed files!
  4766. Check your system clock" "$LINENO" 5
  4767. fi
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4769. $as_echo "yes" >&6; }
  4770. test "$program_prefix" != NONE &&
  4771. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4772. # Use a double $ so make ignores it.
  4773. test "$program_suffix" != NONE &&
  4774. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4775. # Double any \ or $.
  4776. # By default was `s,x,x', remove it if useless.
  4777. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4778. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4779. if test x"${MISSING+set}" != xset; then
  4780. case $am_aux_dir in
  4781. *\ * | *\ *)
  4782. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  4783. *)
  4784. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  4785. esac
  4786. fi
  4787. # Use eval to expand $SHELL
  4788. if eval "$MISSING --run true"; then
  4789. am_missing_run="$MISSING --run "
  4790. else
  4791. am_missing_run=
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  4793. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  4794. fi
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4796. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4797. if test -z "$MKDIR_P"; then
  4798. if ${ac_cv_path_mkdir+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4802. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4803. do
  4804. IFS=$as_save_IFS
  4805. test -z "$as_dir" && as_dir=.
  4806. for ac_prog in mkdir gmkdir; do
  4807. for ac_exec_ext in '' $ac_executable_extensions; do
  4808. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4809. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4810. 'mkdir (GNU coreutils) '* | \
  4811. 'mkdir (coreutils) '* | \
  4812. 'mkdir (fileutils) '4.1*)
  4813. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4814. break 3;;
  4815. esac
  4816. done
  4817. done
  4818. done
  4819. IFS=$as_save_IFS
  4820. fi
  4821. test -d ./--version && rmdir ./--version
  4822. if test "${ac_cv_path_mkdir+set}" = set; then
  4823. MKDIR_P="$ac_cv_path_mkdir -p"
  4824. else
  4825. # As a last resort, use the slow shell script. Don't cache a
  4826. # value for MKDIR_P within a source directory, because that will
  4827. # break other packages using the cache if that directory is
  4828. # removed, or if the value is a relative name.
  4829. MKDIR_P="$ac_install_sh -d"
  4830. fi
  4831. fi
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4833. $as_echo "$MKDIR_P" >&6; }
  4834. mkdir_p="$MKDIR_P"
  4835. case $mkdir_p in
  4836. [\\/$]* | ?:[\\/]*) ;;
  4837. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  4838. esac
  4839. for ac_prog in gawk mawk nawk awk
  4840. do
  4841. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4842. set dummy $ac_prog; ac_word=$2
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4844. $as_echo_n "checking for $ac_word... " >&6; }
  4845. if ${ac_cv_prog_AWK+:} false; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. if test -n "$AWK"; then
  4849. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4850. else
  4851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4852. for as_dir in $PATH
  4853. do
  4854. IFS=$as_save_IFS
  4855. test -z "$as_dir" && as_dir=.
  4856. for ac_exec_ext in '' $ac_executable_extensions; do
  4857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4858. ac_cv_prog_AWK="$ac_prog"
  4859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4860. break 2
  4861. fi
  4862. done
  4863. done
  4864. IFS=$as_save_IFS
  4865. fi
  4866. fi
  4867. AWK=$ac_cv_prog_AWK
  4868. if test -n "$AWK"; then
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4870. $as_echo "$AWK" >&6; }
  4871. else
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4873. $as_echo "no" >&6; }
  4874. fi
  4875. test -n "$AWK" && break
  4876. done
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4878. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4879. set x ${MAKE-make}
  4880. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4881. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. cat >conftest.make <<\_ACEOF
  4885. SHELL = /bin/sh
  4886. all:
  4887. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4888. _ACEOF
  4889. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4890. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4891. *@@@%%%=?*=@@@%%%*)
  4892. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4893. *)
  4894. eval ac_cv_prog_make_${ac_make}_set=no;;
  4895. esac
  4896. rm -f conftest.make
  4897. fi
  4898. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4900. $as_echo "yes" >&6; }
  4901. SET_MAKE=
  4902. else
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4904. $as_echo "no" >&6; }
  4905. SET_MAKE="MAKE=${MAKE-make}"
  4906. fi
  4907. rm -rf .tst 2>/dev/null
  4908. mkdir .tst 2>/dev/null
  4909. if test -d .tst; then
  4910. am__leading_dot=.
  4911. else
  4912. am__leading_dot=_
  4913. fi
  4914. rmdir .tst 2>/dev/null
  4915. DEPDIR="${am__leading_dot}deps"
  4916. ac_config_commands="$ac_config_commands depfiles"
  4917. am_make=${MAKE-make}
  4918. cat > confinc << 'END'
  4919. am__doit:
  4920. @echo this is the am__doit target
  4921. .PHONY: am__doit
  4922. END
  4923. # If we don't find an include directive, just comment out the code.
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4925. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4926. am__include="#"
  4927. am__quote=
  4928. _am_result=none
  4929. # First try GNU make style include.
  4930. echo "include confinc" > confmf
  4931. # Ignore all kinds of additional output from `make'.
  4932. case `$am_make -s -f confmf 2> /dev/null` in #(
  4933. *the\ am__doit\ target*)
  4934. am__include=include
  4935. am__quote=
  4936. _am_result=GNU
  4937. ;;
  4938. esac
  4939. # Now try BSD make style include.
  4940. if test "$am__include" = "#"; then
  4941. echo '.include "confinc"' > confmf
  4942. case `$am_make -s -f confmf 2> /dev/null` in #(
  4943. *the\ am__doit\ target*)
  4944. am__include=.include
  4945. am__quote="\""
  4946. _am_result=BSD
  4947. ;;
  4948. esac
  4949. fi
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4951. $as_echo "$_am_result" >&6; }
  4952. rm -f confinc confmf
  4953. # Check whether --enable-dependency-tracking was given.
  4954. if test "${enable_dependency_tracking+set}" = set; then :
  4955. enableval=$enable_dependency_tracking;
  4956. fi
  4957. if test "x$enable_dependency_tracking" != xno; then
  4958. am_depcomp="$ac_aux_dir/depcomp"
  4959. AMDEPBACKSLASH='\'
  4960. am__nodep='_no'
  4961. fi
  4962. if test "x$enable_dependency_tracking" != xno; then
  4963. AMDEP_TRUE=
  4964. AMDEP_FALSE='#'
  4965. else
  4966. AMDEP_TRUE='#'
  4967. AMDEP_FALSE=
  4968. fi
  4969. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4970. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4971. # is not polluted with repeated "-I."
  4972. am__isrc=' -I$(srcdir)'
  4973. # test to see if srcdir already configured
  4974. if test -f $srcdir/config.status; then
  4975. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4976. fi
  4977. fi
  4978. # test whether we have cygpath
  4979. if test -z "$CYGPATH_W"; then
  4980. if (cygpath --version) >/dev/null 2>/dev/null; then
  4981. CYGPATH_W='cygpath -w'
  4982. else
  4983. CYGPATH_W=echo
  4984. fi
  4985. fi
  4986. # Define the identity of the package.
  4987. PACKAGE='scilab'
  4988. VERSION='5'
  4989. cat >>confdefs.h <<_ACEOF
  4990. #define PACKAGE "$PACKAGE"
  4991. _ACEOF
  4992. cat >>confdefs.h <<_ACEOF
  4993. #define VERSION "$VERSION"
  4994. _ACEOF
  4995. # Some tools Automake needs.
  4996. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4997. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4998. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4999. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  5000. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  5001. # We need awk for the "check" target. The system "awk" is bad on
  5002. # some platforms.
  5003. # Always define AMTAR for backward compatibility. Yes, it's still used
  5004. # in the wild :-( We should find a proper way to deprecate it ...
  5005. AMTAR='$${TAR-tar}'
  5006. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  5007. depcc="$CC" am_compiler_list=
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5009. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5010. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5011. $as_echo_n "(cached) " >&6
  5012. else
  5013. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5014. # We make a subdir and do the tests there. Otherwise we can end up
  5015. # making bogus files that we don't know about and never remove. For
  5016. # instance it was reported that on HP-UX the gcc test will end up
  5017. # making a dummy file named `D' -- because `-MD' means `put the output
  5018. # in D'.
  5019. rm -rf conftest.dir
  5020. mkdir conftest.dir
  5021. # Copy depcomp to subdir because otherwise we won't find it if we're
  5022. # using a relative directory.
  5023. cp "$am_depcomp" conftest.dir
  5024. cd conftest.dir
  5025. # We will build objects and dependencies in a subdirectory because
  5026. # it helps to detect inapplicable dependency modes. For instance
  5027. # both Tru64's cc and ICC support -MD to output dependencies as a
  5028. # side effect of compilation, but ICC will put the dependencies in
  5029. # the current directory while Tru64 will put them in the object
  5030. # directory.
  5031. mkdir sub
  5032. am_cv_CC_dependencies_compiler_type=none
  5033. if test "$am_compiler_list" = ""; then
  5034. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5035. fi
  5036. am__universal=false
  5037. case " $depcc " in #(
  5038. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5039. esac
  5040. for depmode in $am_compiler_list; do
  5041. # Setup a source with many dependencies, because some compilers
  5042. # like to wrap large dependency lists on column 80 (with \), and
  5043. # we should not choose a depcomp mode which is confused by this.
  5044. #
  5045. # We need to recreate these files for each test, as the compiler may
  5046. # overwrite some of them when testing with obscure command lines.
  5047. # This happens at least with the AIX C compiler.
  5048. : > sub/conftest.c
  5049. for i in 1 2 3 4 5 6; do
  5050. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5051. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5052. # Solaris 8's {/usr,}/bin/sh.
  5053. touch sub/conftst$i.h
  5054. done
  5055. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5056. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5057. # mode. It turns out that the SunPro C++ compiler does not properly
  5058. # handle `-M -o', and we need to detect this. Also, some Intel
  5059. # versions had trouble with output in subdirs
  5060. am__obj=sub/conftest.${OBJEXT-o}
  5061. am__minus_obj="-o $am__obj"
  5062. case $depmode in
  5063. gcc)
  5064. # This depmode causes a compiler race in universal mode.
  5065. test "$am__universal" = false || continue
  5066. ;;
  5067. nosideeffect)
  5068. # after this tag, mechanisms are not by side-effect, so they'll
  5069. # only be used when explicitly requested
  5070. if test "x$enable_dependency_tracking" = xyes; then
  5071. continue
  5072. else
  5073. break
  5074. fi
  5075. ;;
  5076. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5077. # This compiler won't grok `-c -o', but also, the minuso test has
  5078. # not run yet. These depmodes are late enough in the game, and
  5079. # so weak that their functioning should not be impacted.
  5080. am__obj=conftest.${OBJEXT-o}
  5081. am__minus_obj=
  5082. ;;
  5083. none) break ;;
  5084. esac
  5085. if depmode=$depmode \
  5086. source=sub/conftest.c object=$am__obj \
  5087. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5088. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5089. >/dev/null 2>conftest.err &&
  5090. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5091. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5092. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5093. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5094. # icc doesn't choke on unknown options, it will just issue warnings
  5095. # or remarks (even with -Werror). So we grep stderr for any message
  5096. # that says an option was ignored or not supported.
  5097. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5098. # icc: Command line warning: ignoring option '-M'; no argument required
  5099. # The diagnosis changed in icc 8.0:
  5100. # icc: Command line remark: option '-MP' not supported
  5101. if (grep 'ignoring option' conftest.err ||
  5102. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5103. am_cv_CC_dependencies_compiler_type=$depmode
  5104. break
  5105. fi
  5106. fi
  5107. done
  5108. cd ..
  5109. rm -rf conftest.dir
  5110. else
  5111. am_cv_CC_dependencies_compiler_type=none
  5112. fi
  5113. fi
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5115. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5116. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5117. if
  5118. test "x$enable_dependency_tracking" != xno \
  5119. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5120. am__fastdepCC_TRUE=
  5121. am__fastdepCC_FALSE='#'
  5122. else
  5123. am__fastdepCC_TRUE='#'
  5124. am__fastdepCC_FALSE=
  5125. fi
  5126. # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
  5127. #################################
  5128. ## all the --with-* argument help
  5129. #################################
  5130. # Check whether --enable-debug was given.
  5131. if test "${enable_debug+set}" = set; then :
  5132. enableval=$enable_debug;
  5133. fi
  5134. # Check whether --enable-debug-C was given.
  5135. if test "${enable_debug_C+set}" = set; then :
  5136. enableval=$enable_debug_C;
  5137. fi
  5138. # Check whether --enable-debug-CXX was given.
  5139. if test "${enable_debug_CXX+set}" = set; then :
  5140. enableval=$enable_debug_CXX;
  5141. fi
  5142. # Check whether --enable-debug-java was given.
  5143. if test "${enable_debug_java+set}" = set; then :
  5144. enableval=$enable_debug_java;
  5145. fi
  5146. # Check whether --enable-debug-fortran was given.
  5147. if test "${enable_debug_fortran+set}" = set; then :
  5148. enableval=$enable_debug_fortran;
  5149. fi
  5150. # Check whether --enable-debug-linker was given.
  5151. if test "${enable_debug_linker+set}" = set; then :
  5152. enableval=$enable_debug_linker;
  5153. fi
  5154. # Check whether --enable-code-coverage was given.
  5155. if test "${enable_code_coverage+set}" = set; then :
  5156. enableval=$enable_code_coverage;
  5157. fi
  5158. # Check whether --enable-stop-on-warning was given.
  5159. if test "${enable_stop_on_warning+set}" = set; then :
  5160. enableval=$enable_stop_on_warning;
  5161. fi
  5162. # Check whether --with-gcc was given.
  5163. if test "${with_gcc+set}" = set; then :
  5164. withval=$with_gcc;
  5165. fi
  5166. # Check whether --with-gfortran was given.
  5167. if test "${with_gfortran+set}" = set; then :
  5168. withval=$with_gfortran;
  5169. fi
  5170. # Check whether --with-intelcompilers was given.
  5171. if test "${with_intelcompilers+set}" = set; then :
  5172. withval=$with_intelcompilers;
  5173. fi
  5174. # Check whether --with-tk was given.
  5175. if test "${with_tk+set}" = set; then :
  5176. withval=$with_tk;
  5177. fi
  5178. # Check whether --with-javasci was given.
  5179. if test "${with_javasci+set}" = set; then :
  5180. withval=$with_javasci;
  5181. fi
  5182. # Check whether --enable-compilation-tests was given.
  5183. if test "${enable_compilation_tests+set}" = set; then :
  5184. enableval=$enable_compilation_tests;
  5185. fi
  5186. # Check whether --with-gui was given.
  5187. if test "${with_gui+set}" = set; then :
  5188. withval=$with_gui;
  5189. fi
  5190. # Check whether --enable-build-swig was given.
  5191. if test "${enable_build_swig+set}" = set; then :
  5192. enableval=$enable_build_swig;
  5193. fi
  5194. # Check whether --enable-build-giws was given.
  5195. if test "${enable_build_giws+set}" = set; then :
  5196. enableval=$enable_build_giws;
  5197. fi
  5198. ################################################
  5199. ########## compilator & misc programs detection
  5200. ################################################
  5201. ac_ext=c
  5202. ac_cpp='$CPP $CPPFLAGS'
  5203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5207. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5208. # On Suns, sometimes $CPP names a directory.
  5209. if test -n "$CPP" && test -d "$CPP"; then
  5210. CPP=
  5211. fi
  5212. if test -z "$CPP"; then
  5213. if ${ac_cv_prog_CPP+:} false; then :
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. # Double quotes because CPP needs to be expanded
  5217. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5218. do
  5219. ac_preproc_ok=false
  5220. for ac_c_preproc_warn_flag in '' yes
  5221. do
  5222. # Use a header file that comes with gcc, so configuring glibc
  5223. # with a fresh cross-compiler works.
  5224. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5225. # <limits.h> exists even on freestanding compilers.
  5226. # On the NeXT, cc -E runs the code through the compiler's parser,
  5227. # not just through cpp. "Syntax error" is here to catch this case.
  5228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5229. /* end confdefs.h. */
  5230. #ifdef __STDC__
  5231. # include <limits.h>
  5232. #else
  5233. # include <assert.h>
  5234. #endif
  5235. Syntax error
  5236. _ACEOF
  5237. if ac_fn_c_try_cpp "$LINENO"; then :
  5238. else
  5239. # Broken: fails on valid input.
  5240. continue
  5241. fi
  5242. rm -f conftest.err conftest.i conftest.$ac_ext
  5243. # OK, works on sane cases. Now check whether nonexistent headers
  5244. # can be detected and how.
  5245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5246. /* end confdefs.h. */
  5247. #include <ac_nonexistent.h>
  5248. _ACEOF
  5249. if ac_fn_c_try_cpp "$LINENO"; then :
  5250. # Broken: success on invalid input.
  5251. continue
  5252. else
  5253. # Passes both tests.
  5254. ac_preproc_ok=:
  5255. break
  5256. fi
  5257. rm -f conftest.err conftest.i conftest.$ac_ext
  5258. done
  5259. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5260. rm -f conftest.i conftest.err conftest.$ac_ext
  5261. if $ac_preproc_ok; then :
  5262. break
  5263. fi
  5264. done
  5265. ac_cv_prog_CPP=$CPP
  5266. fi
  5267. CPP=$ac_cv_prog_CPP
  5268. else
  5269. ac_cv_prog_CPP=$CPP
  5270. fi
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5272. $as_echo "$CPP" >&6; }
  5273. ac_preproc_ok=false
  5274. for ac_c_preproc_warn_flag in '' yes
  5275. do
  5276. # Use a header file that comes with gcc, so configuring glibc
  5277. # with a fresh cross-compiler works.
  5278. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5279. # <limits.h> exists even on freestanding compilers.
  5280. # On the NeXT, cc -E runs the code through the compiler's parser,
  5281. # not just through cpp. "Syntax error" is here to catch this case.
  5282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5283. /* end confdefs.h. */
  5284. #ifdef __STDC__
  5285. # include <limits.h>
  5286. #else
  5287. # include <assert.h>
  5288. #endif
  5289. Syntax error
  5290. _ACEOF
  5291. if ac_fn_c_try_cpp "$LINENO"; then :
  5292. else
  5293. # Broken: fails on valid input.
  5294. continue
  5295. fi
  5296. rm -f conftest.err conftest.i conftest.$ac_ext
  5297. # OK, works on sane cases. Now check whether nonexistent headers
  5298. # can be detected and how.
  5299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5300. /* end confdefs.h. */
  5301. #include <ac_nonexistent.h>
  5302. _ACEOF
  5303. if ac_fn_c_try_cpp "$LINENO"; then :
  5304. # Broken: success on invalid input.
  5305. continue
  5306. else
  5307. # Passes both tests.
  5308. ac_preproc_ok=:
  5309. break
  5310. fi
  5311. rm -f conftest.err conftest.i conftest.$ac_ext
  5312. done
  5313. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5314. rm -f conftest.i conftest.err conftest.$ac_ext
  5315. if $ac_preproc_ok; then :
  5316. else
  5317. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5318. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5319. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5320. See \`config.log' for more details" "$LINENO" 5; }
  5321. fi
  5322. ac_ext=c
  5323. ac_cpp='$CPP $CPPFLAGS'
  5324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5328. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5329. if ${ac_cv_path_GREP+:} false; then :
  5330. $as_echo_n "(cached) " >&6
  5331. else
  5332. if test -z "$GREP"; then
  5333. ac_path_GREP_found=false
  5334. # Loop through the user's path and test for each of PROGNAME-LIST
  5335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5336. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5337. do
  5338. IFS=$as_save_IFS
  5339. test -z "$as_dir" && as_dir=.
  5340. for ac_prog in grep ggrep; do
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5343. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5344. # Check for GNU ac_path_GREP and select it if it is found.
  5345. # Check for GNU $ac_path_GREP
  5346. case `"$ac_path_GREP" --version 2>&1` in
  5347. *GNU*)
  5348. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5349. *)
  5350. ac_count=0
  5351. $as_echo_n 0123456789 >"conftest.in"
  5352. while :
  5353. do
  5354. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5355. mv "conftest.tmp" "conftest.in"
  5356. cp "conftest.in" "conftest.nl"
  5357. $as_echo 'GREP' >> "conftest.nl"
  5358. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5359. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5360. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5361. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5362. # Best one so far, save it but keep looking for a better one
  5363. ac_cv_path_GREP="$ac_path_GREP"
  5364. ac_path_GREP_max=$ac_count
  5365. fi
  5366. # 10*(2^10) chars as input seems more than enough
  5367. test $ac_count -gt 10 && break
  5368. done
  5369. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5370. esac
  5371. $ac_path_GREP_found && break 3
  5372. done
  5373. done
  5374. done
  5375. IFS=$as_save_IFS
  5376. if test -z "$ac_cv_path_GREP"; then
  5377. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5378. fi
  5379. else
  5380. ac_cv_path_GREP=$GREP
  5381. fi
  5382. fi
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5384. $as_echo "$ac_cv_path_GREP" >&6; }
  5385. GREP="$ac_cv_path_GREP"
  5386. ######
  5387. #### Mac OS X set of fink path with provided
  5388. ######
  5389. # Check whether --with-fink_prefix was given.
  5390. if test "${with_fink_prefix+set}" = set; then :
  5391. withval=$with_fink_prefix;
  5392. fi
  5393. case "$host" in
  5394. *darwin*)
  5395. if test -n "$with_fink_prefix"; then
  5396. # If with-fink-prefix is provided, use the provided path to make sure that we will
  5397. # use it to detect dependencies (for example, gfortran is not provided in xcode.
  5398. # Therefor, we use the one in fink)
  5399. FINK_PREFIX="$with_fink_prefix/"
  5400. # Exec the init script of fink to make sure that the env is set
  5401. if test -f $with_fink_prefix/bin/init.sh; then
  5402. echo "source $with_fink_prefix/bin/init.sh executed to set the env"
  5403. source $with_fink_prefix/bin/init.sh
  5404. else
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
  5406. $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
  5407. fi
  5408. else
  5409. FINK_PREFIX="/sw/"
  5410. fi
  5411. ;;
  5412. esac
  5413. #####################################################
  5414. ## Look for pkg-config
  5415. #####################################################
  5416. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5417. if test -n "$ac_tool_prefix"; then
  5418. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5419. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5421. $as_echo_n "checking for $ac_word... " >&6; }
  5422. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. case $PKG_CONFIG in
  5426. [\\/]* | ?:[\\/]*)
  5427. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5428. ;;
  5429. *)
  5430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5431. for as_dir in $PATH
  5432. do
  5433. IFS=$as_save_IFS
  5434. test -z "$as_dir" && as_dir=.
  5435. for ac_exec_ext in '' $ac_executable_extensions; do
  5436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5437. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5439. break 2
  5440. fi
  5441. done
  5442. done
  5443. IFS=$as_save_IFS
  5444. ;;
  5445. esac
  5446. fi
  5447. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5448. if test -n "$PKG_CONFIG"; then
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5450. $as_echo "$PKG_CONFIG" >&6; }
  5451. else
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. $as_echo "no" >&6; }
  5454. fi
  5455. fi
  5456. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5457. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5458. # Extract the first word of "pkg-config", so it can be a program name with args.
  5459. set dummy pkg-config; ac_word=$2
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5461. $as_echo_n "checking for $ac_word... " >&6; }
  5462. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. case $ac_pt_PKG_CONFIG in
  5466. [\\/]* | ?:[\\/]*)
  5467. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5468. ;;
  5469. *)
  5470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471. for as_dir in $PATH
  5472. do
  5473. IFS=$as_save_IFS
  5474. test -z "$as_dir" && as_dir=.
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5477. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. ;;
  5485. esac
  5486. fi
  5487. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5488. if test -n "$ac_pt_PKG_CONFIG"; then
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5490. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5491. else
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5493. $as_echo "no" >&6; }
  5494. fi
  5495. if test "x$ac_pt_PKG_CONFIG" = x; then
  5496. PKG_CONFIG=""
  5497. else
  5498. case $cross_compiling:$ac_tool_warned in
  5499. yes:)
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5502. ac_tool_warned=yes ;;
  5503. esac
  5504. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5505. fi
  5506. else
  5507. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5508. fi
  5509. fi
  5510. if test -n "$PKG_CONFIG"; then
  5511. _pkg_min_version=0.9.0
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5513. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5514. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5516. $as_echo "yes" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. PKG_CONFIG=""
  5521. fi
  5522. fi
  5523. #####################################################
  5524. ## check if options are correct (or not)
  5525. #####################################################
  5526. if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
  5527. as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
  5528. fi
  5529. ######## fortran ########
  5530. if test "$with_gfortran" = yes; then
  5531. ac_ext=f
  5532. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5533. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5534. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5535. if test -n "$ac_tool_prefix"; then
  5536. for ac_prog in gfortran
  5537. do
  5538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5541. $as_echo_n "checking for $ac_word... " >&6; }
  5542. if ${ac_cv_prog_F77+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. if test -n "$F77"; then
  5546. ac_cv_prog_F77="$F77" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5555. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. IFS=$as_save_IFS
  5562. fi
  5563. fi
  5564. F77=$ac_cv_prog_F77
  5565. if test -n "$F77"; then
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
  5567. $as_echo "$F77" >&6; }
  5568. else
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5570. $as_echo "no" >&6; }
  5571. fi
  5572. test -n "$F77" && break
  5573. done
  5574. fi
  5575. if test -z "$F77"; then
  5576. ac_ct_F77=$F77
  5577. for ac_prog in gfortran
  5578. do
  5579. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5580. set dummy $ac_prog; ac_word=$2
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5582. $as_echo_n "checking for $ac_word... " >&6; }
  5583. if ${ac_cv_prog_ac_ct_F77+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. if test -n "$ac_ct_F77"; then
  5587. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5588. else
  5589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5590. for as_dir in $PATH
  5591. do
  5592. IFS=$as_save_IFS
  5593. test -z "$as_dir" && as_dir=.
  5594. for ac_exec_ext in '' $ac_executable_extensions; do
  5595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5596. ac_cv_prog_ac_ct_F77="$ac_prog"
  5597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5598. break 2
  5599. fi
  5600. done
  5601. done
  5602. IFS=$as_save_IFS
  5603. fi
  5604. fi
  5605. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5606. if test -n "$ac_ct_F77"; then
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
  5608. $as_echo "$ac_ct_F77" >&6; }
  5609. else
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5611. $as_echo "no" >&6; }
  5612. fi
  5613. test -n "$ac_ct_F77" && break
  5614. done
  5615. if test "x$ac_ct_F77" = x; then
  5616. F77=""
  5617. else
  5618. case $cross_compiling:$ac_tool_warned in
  5619. yes:)
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5622. ac_tool_warned=yes ;;
  5623. esac
  5624. F77=$ac_ct_F77
  5625. fi
  5626. fi
  5627. # Provide some information about the compiler.
  5628. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
  5629. set X $ac_compile
  5630. ac_compiler=$2
  5631. for ac_option in --version -v -V -qversion; do
  5632. { { ac_try="$ac_compiler $ac_option >&5"
  5633. case "(($ac_try" in
  5634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5635. *) ac_try_echo=$ac_try;;
  5636. esac
  5637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5638. $as_echo "$ac_try_echo"; } >&5
  5639. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5640. ac_status=$?
  5641. if test -s conftest.err; then
  5642. sed '10a\
  5643. ... rest of stderr output deleted ...
  5644. 10q' conftest.err >conftest.er1
  5645. cat conftest.er1 >&5
  5646. fi
  5647. rm -f conftest.er1 conftest.err
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5649. test $ac_status = 0; }
  5650. done
  5651. rm -f a.out
  5652. # If we don't use `.F' as extension, the preprocessor is not run on the
  5653. # input file. (Note that this only needs to work for GNU compilers.)
  5654. ac_save_ext=$ac_ext
  5655. ac_ext=F
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
  5657. $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  5658. if ${ac_cv_f77_compiler_gnu+:} false; then :
  5659. $as_echo_n "(cached) " >&6
  5660. else
  5661. cat > conftest.$ac_ext <<_ACEOF
  5662. program main
  5663. #ifndef __GNUC__
  5664. choke me
  5665. #endif
  5666. end
  5667. _ACEOF
  5668. if ac_fn_f77_try_compile "$LINENO"; then :
  5669. ac_compiler_gnu=yes
  5670. else
  5671. ac_compiler_gnu=no
  5672. fi
  5673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5674. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5675. fi
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
  5677. $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  5678. ac_ext=$ac_save_ext
  5679. ac_test_FFLAGS=${FFLAGS+set}
  5680. ac_save_FFLAGS=$FFLAGS
  5681. FFLAGS=
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
  5683. $as_echo_n "checking whether $F77 accepts -g... " >&6; }
  5684. if ${ac_cv_prog_f77_g+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. FFLAGS=-g
  5688. cat > conftest.$ac_ext <<_ACEOF
  5689. program main
  5690. end
  5691. _ACEOF
  5692. if ac_fn_f77_try_compile "$LINENO"; then :
  5693. ac_cv_prog_f77_g=yes
  5694. else
  5695. ac_cv_prog_f77_g=no
  5696. fi
  5697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5698. fi
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
  5700. $as_echo "$ac_cv_prog_f77_g" >&6; }
  5701. if test "$ac_test_FFLAGS" = set; then
  5702. FFLAGS=$ac_save_FFLAGS
  5703. elif test $ac_cv_prog_f77_g = yes; then
  5704. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5705. FFLAGS="-g -O2"
  5706. else
  5707. FFLAGS="-g"
  5708. fi
  5709. else
  5710. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5711. FFLAGS="-O2"
  5712. else
  5713. FFLAGS=
  5714. fi
  5715. fi
  5716. if test $ac_compiler_gnu = yes; then
  5717. G77=yes
  5718. else
  5719. G77=
  5720. fi
  5721. ac_ext=c
  5722. ac_cpp='$CPP $CPPFLAGS'
  5723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5726. if test -z "$F77"; then
  5727. as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
  5728. fi
  5729. fi
  5730. if test "$with_intelcompilers" = yes; then
  5731. ac_ext=f
  5732. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5733. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5734. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5735. if test -n "$ac_tool_prefix"; then
  5736. for ac_prog in ifc ifort
  5737. do
  5738. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5739. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5741. $as_echo_n "checking for $ac_word... " >&6; }
  5742. if ${ac_cv_prog_F77+:} false; then :
  5743. $as_echo_n "(cached) " >&6
  5744. else
  5745. if test -n "$F77"; then
  5746. ac_cv_prog_F77="$F77" # Let the user override the test.
  5747. else
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. test -z "$as_dir" && as_dir=.
  5753. for ac_exec_ext in '' $ac_executable_extensions; do
  5754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5755. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5757. break 2
  5758. fi
  5759. done
  5760. done
  5761. IFS=$as_save_IFS
  5762. fi
  5763. fi
  5764. F77=$ac_cv_prog_F77
  5765. if test -n "$F77"; then
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
  5767. $as_echo "$F77" >&6; }
  5768. else
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5770. $as_echo "no" >&6; }
  5771. fi
  5772. test -n "$F77" && break
  5773. done
  5774. fi
  5775. if test -z "$F77"; then
  5776. ac_ct_F77=$F77
  5777. for ac_prog in ifc ifort
  5778. do
  5779. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5780. set dummy $ac_prog; ac_word=$2
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if ${ac_cv_prog_ac_ct_F77+:} false; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. if test -n "$ac_ct_F77"; then
  5787. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5788. else
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5796. ac_cv_prog_ac_ct_F77="$ac_prog"
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5806. if test -n "$ac_ct_F77"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
  5808. $as_echo "$ac_ct_F77" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. test -n "$ac_ct_F77" && break
  5814. done
  5815. if test "x$ac_ct_F77" = x; then
  5816. F77=""
  5817. else
  5818. case $cross_compiling:$ac_tool_warned in
  5819. yes:)
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5822. ac_tool_warned=yes ;;
  5823. esac
  5824. F77=$ac_ct_F77
  5825. fi
  5826. fi
  5827. # Provide some information about the compiler.
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
  5829. set X $ac_compile
  5830. ac_compiler=$2
  5831. for ac_option in --version -v -V -qversion; do
  5832. { { ac_try="$ac_compiler $ac_option >&5"
  5833. case "(($ac_try" in
  5834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5835. *) ac_try_echo=$ac_try;;
  5836. esac
  5837. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5838. $as_echo "$ac_try_echo"; } >&5
  5839. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5840. ac_status=$?
  5841. if test -s conftest.err; then
  5842. sed '10a\
  5843. ... rest of stderr output deleted ...
  5844. 10q' conftest.err >conftest.er1
  5845. cat conftest.er1 >&5
  5846. fi
  5847. rm -f conftest.er1 conftest.err
  5848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5849. test $ac_status = 0; }
  5850. done
  5851. rm -f a.out
  5852. # If we don't use `.F' as extension, the preprocessor is not run on the
  5853. # input file. (Note that this only needs to work for GNU compilers.)
  5854. ac_save_ext=$ac_ext
  5855. ac_ext=F
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
  5857. $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  5858. if ${ac_cv_f77_compiler_gnu+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. cat > conftest.$ac_ext <<_ACEOF
  5862. program main
  5863. #ifndef __GNUC__
  5864. choke me
  5865. #endif
  5866. end
  5867. _ACEOF
  5868. if ac_fn_f77_try_compile "$LINENO"; then :
  5869. ac_compiler_gnu=yes
  5870. else
  5871. ac_compiler_gnu=no
  5872. fi
  5873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5874. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5875. fi
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
  5877. $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  5878. ac_ext=$ac_save_ext
  5879. ac_test_FFLAGS=${FFLAGS+set}
  5880. ac_save_FFLAGS=$FFLAGS
  5881. FFLAGS=
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
  5883. $as_echo_n "checking whether $F77 accepts -g... " >&6; }
  5884. if ${ac_cv_prog_f77_g+:} false; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. FFLAGS=-g
  5888. cat > conftest.$ac_ext <<_ACEOF
  5889. program main
  5890. end
  5891. _ACEOF
  5892. if ac_fn_f77_try_compile "$LINENO"; then :
  5893. ac_cv_prog_f77_g=yes
  5894. else
  5895. ac_cv_prog_f77_g=no
  5896. fi
  5897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5898. fi
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
  5900. $as_echo "$ac_cv_prog_f77_g" >&6; }
  5901. if test "$ac_test_FFLAGS" = set; then
  5902. FFLAGS=$ac_save_FFLAGS
  5903. elif test $ac_cv_prog_f77_g = yes; then
  5904. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5905. FFLAGS="-g -O2"
  5906. else
  5907. FFLAGS="-g"
  5908. fi
  5909. else
  5910. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5911. FFLAGS="-O2"
  5912. else
  5913. FFLAGS=
  5914. fi
  5915. fi
  5916. if test $ac_compiler_gnu = yes; then
  5917. G77=yes
  5918. else
  5919. G77=
  5920. fi
  5921. ac_ext=c
  5922. ac_cpp='$CPP $CPPFLAGS'
  5923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5926. if test -z "$F77"; then
  5927. as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
  5928. fi
  5929. fi
  5930. if test -z "$F77"; then
  5931. ## No Fortran compiler specified... Prefer gfortran and intel compilers
  5932. ac_ext=f
  5933. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5934. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5935. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5936. if test -n "$ac_tool_prefix"; then
  5937. for ac_prog in gfortran ifc ifort
  5938. do
  5939. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5940. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5942. $as_echo_n "checking for $ac_word... " >&6; }
  5943. if ${ac_cv_prog_F77+:} false; then :
  5944. $as_echo_n "(cached) " >&6
  5945. else
  5946. if test -n "$F77"; then
  5947. ac_cv_prog_F77="$F77" # Let the user override the test.
  5948. else
  5949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5950. for as_dir in $PATH
  5951. do
  5952. IFS=$as_save_IFS
  5953. test -z "$as_dir" && as_dir=.
  5954. for ac_exec_ext in '' $ac_executable_extensions; do
  5955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5956. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5958. break 2
  5959. fi
  5960. done
  5961. done
  5962. IFS=$as_save_IFS
  5963. fi
  5964. fi
  5965. F77=$ac_cv_prog_F77
  5966. if test -n "$F77"; then
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
  5968. $as_echo "$F77" >&6; }
  5969. else
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5971. $as_echo "no" >&6; }
  5972. fi
  5973. test -n "$F77" && break
  5974. done
  5975. fi
  5976. if test -z "$F77"; then
  5977. ac_ct_F77=$F77
  5978. for ac_prog in gfortran ifc ifort
  5979. do
  5980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5981. set dummy $ac_prog; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if ${ac_cv_prog_ac_ct_F77+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. if test -n "$ac_ct_F77"; then
  5988. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997. ac_cv_prog_ac_ct_F77="$ac_prog"
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  6007. if test -n "$ac_ct_F77"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
  6009. $as_echo "$ac_ct_F77" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. test -n "$ac_ct_F77" && break
  6015. done
  6016. if test "x$ac_ct_F77" = x; then
  6017. F77=""
  6018. else
  6019. case $cross_compiling:$ac_tool_warned in
  6020. yes:)
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6023. ac_tool_warned=yes ;;
  6024. esac
  6025. F77=$ac_ct_F77
  6026. fi
  6027. fi
  6028. # Provide some information about the compiler.
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
  6030. set X $ac_compile
  6031. ac_compiler=$2
  6032. for ac_option in --version -v -V -qversion; do
  6033. { { ac_try="$ac_compiler $ac_option >&5"
  6034. case "(($ac_try" in
  6035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6036. *) ac_try_echo=$ac_try;;
  6037. esac
  6038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6039. $as_echo "$ac_try_echo"; } >&5
  6040. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6041. ac_status=$?
  6042. if test -s conftest.err; then
  6043. sed '10a\
  6044. ... rest of stderr output deleted ...
  6045. 10q' conftest.err >conftest.er1
  6046. cat conftest.er1 >&5
  6047. fi
  6048. rm -f conftest.er1 conftest.err
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6050. test $ac_status = 0; }
  6051. done
  6052. rm -f a.out
  6053. # If we don't use `.F' as extension, the preprocessor is not run on the
  6054. # input file. (Note that this only needs to work for GNU compilers.)
  6055. ac_save_ext=$ac_ext
  6056. ac_ext=F
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
  6058. $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  6059. if ${ac_cv_f77_compiler_gnu+:} false; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. cat > conftest.$ac_ext <<_ACEOF
  6063. program main
  6064. #ifndef __GNUC__
  6065. choke me
  6066. #endif
  6067. end
  6068. _ACEOF
  6069. if ac_fn_f77_try_compile "$LINENO"; then :
  6070. ac_compiler_gnu=yes
  6071. else
  6072. ac_compiler_gnu=no
  6073. fi
  6074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6075. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6076. fi
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
  6078. $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  6079. ac_ext=$ac_save_ext
  6080. ac_test_FFLAGS=${FFLAGS+set}
  6081. ac_save_FFLAGS=$FFLAGS
  6082. FFLAGS=
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
  6084. $as_echo_n "checking whether $F77 accepts -g... " >&6; }
  6085. if ${ac_cv_prog_f77_g+:} false; then :
  6086. $as_echo_n "(cached) " >&6
  6087. else
  6088. FFLAGS=-g
  6089. cat > conftest.$ac_ext <<_ACEOF
  6090. program main
  6091. end
  6092. _ACEOF
  6093. if ac_fn_f77_try_compile "$LINENO"; then :
  6094. ac_cv_prog_f77_g=yes
  6095. else
  6096. ac_cv_prog_f77_g=no
  6097. fi
  6098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
  6101. $as_echo "$ac_cv_prog_f77_g" >&6; }
  6102. if test "$ac_test_FFLAGS" = set; then
  6103. FFLAGS=$ac_save_FFLAGS
  6104. elif test $ac_cv_prog_f77_g = yes; then
  6105. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6106. FFLAGS="-g -O2"
  6107. else
  6108. FFLAGS="-g"
  6109. fi
  6110. else
  6111. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6112. FFLAGS="-O2"
  6113. else
  6114. FFLAGS=
  6115. fi
  6116. fi
  6117. if test $ac_compiler_gnu = yes; then
  6118. G77=yes
  6119. else
  6120. G77=
  6121. fi
  6122. ac_ext=c
  6123. ac_cpp='$CPP $CPPFLAGS'
  6124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6127. if test -z "$F77"; then
  6128. # Best effort to find a compiler (might be g77)
  6129. ac_ext=f
  6130. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  6131. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6132. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  6133. if test -n "$ac_tool_prefix"; then
  6134. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
  6135. do
  6136. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6137. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6139. $as_echo_n "checking for $ac_word... " >&6; }
  6140. if ${ac_cv_prog_F77+:} false; then :
  6141. $as_echo_n "(cached) " >&6
  6142. else
  6143. if test -n "$F77"; then
  6144. ac_cv_prog_F77="$F77" # Let the user override the test.
  6145. else
  6146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6147. for as_dir in $PATH
  6148. do
  6149. IFS=$as_save_IFS
  6150. test -z "$as_dir" && as_dir=.
  6151. for ac_exec_ext in '' $ac_executable_extensions; do
  6152. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6153. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6155. break 2
  6156. fi
  6157. done
  6158. done
  6159. IFS=$as_save_IFS
  6160. fi
  6161. fi
  6162. F77=$ac_cv_prog_F77
  6163. if test -n "$F77"; then
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
  6165. $as_echo "$F77" >&6; }
  6166. else
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6168. $as_echo "no" >&6; }
  6169. fi
  6170. test -n "$F77" && break
  6171. done
  6172. fi
  6173. if test -z "$F77"; then
  6174. ac_ct_F77=$F77
  6175. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
  6176. do
  6177. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6178. set dummy $ac_prog; ac_word=$2
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6180. $as_echo_n "checking for $ac_word... " >&6; }
  6181. if ${ac_cv_prog_ac_ct_F77+:} false; then :
  6182. $as_echo_n "(cached) " >&6
  6183. else
  6184. if test -n "$ac_ct_F77"; then
  6185. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  6186. else
  6187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6188. for as_dir in $PATH
  6189. do
  6190. IFS=$as_save_IFS
  6191. test -z "$as_dir" && as_dir=.
  6192. for ac_exec_ext in '' $ac_executable_extensions; do
  6193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6194. ac_cv_prog_ac_ct_F77="$ac_prog"
  6195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6196. break 2
  6197. fi
  6198. done
  6199. done
  6200. IFS=$as_save_IFS
  6201. fi
  6202. fi
  6203. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  6204. if test -n "$ac_ct_F77"; then
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
  6206. $as_echo "$ac_ct_F77" >&6; }
  6207. else
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6209. $as_echo "no" >&6; }
  6210. fi
  6211. test -n "$ac_ct_F77" && break
  6212. done
  6213. if test "x$ac_ct_F77" = x; then
  6214. F77=""
  6215. else
  6216. case $cross_compiling:$ac_tool_warned in
  6217. yes:)
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6220. ac_tool_warned=yes ;;
  6221. esac
  6222. F77=$ac_ct_F77
  6223. fi
  6224. fi
  6225. # Provide some information about the compiler.
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
  6227. set X $ac_compile
  6228. ac_compiler=$2
  6229. for ac_option in --version -v -V -qversion; do
  6230. { { ac_try="$ac_compiler $ac_option >&5"
  6231. case "(($ac_try" in
  6232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6233. *) ac_try_echo=$ac_try;;
  6234. esac
  6235. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6236. $as_echo "$ac_try_echo"; } >&5
  6237. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6238. ac_status=$?
  6239. if test -s conftest.err; then
  6240. sed '10a\
  6241. ... rest of stderr output deleted ...
  6242. 10q' conftest.err >conftest.er1
  6243. cat conftest.er1 >&5
  6244. fi
  6245. rm -f conftest.er1 conftest.err
  6246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6247. test $ac_status = 0; }
  6248. done
  6249. rm -f a.out
  6250. # If we don't use `.F' as extension, the preprocessor is not run on the
  6251. # input file. (Note that this only needs to work for GNU compilers.)
  6252. ac_save_ext=$ac_ext
  6253. ac_ext=F
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
  6255. $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  6256. if ${ac_cv_f77_compiler_gnu+:} false; then :
  6257. $as_echo_n "(cached) " >&6
  6258. else
  6259. cat > conftest.$ac_ext <<_ACEOF
  6260. program main
  6261. #ifndef __GNUC__
  6262. choke me
  6263. #endif
  6264. end
  6265. _ACEOF
  6266. if ac_fn_f77_try_compile "$LINENO"; then :
  6267. ac_compiler_gnu=yes
  6268. else
  6269. ac_compiler_gnu=no
  6270. fi
  6271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6272. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6273. fi
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
  6275. $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  6276. ac_ext=$ac_save_ext
  6277. ac_test_FFLAGS=${FFLAGS+set}
  6278. ac_save_FFLAGS=$FFLAGS
  6279. FFLAGS=
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
  6281. $as_echo_n "checking whether $F77 accepts -g... " >&6; }
  6282. if ${ac_cv_prog_f77_g+:} false; then :
  6283. $as_echo_n "(cached) " >&6
  6284. else
  6285. FFLAGS=-g
  6286. cat > conftest.$ac_ext <<_ACEOF
  6287. program main
  6288. end
  6289. _ACEOF
  6290. if ac_fn_f77_try_compile "$LINENO"; then :
  6291. ac_cv_prog_f77_g=yes
  6292. else
  6293. ac_cv_prog_f77_g=no
  6294. fi
  6295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6296. fi
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
  6298. $as_echo "$ac_cv_prog_f77_g" >&6; }
  6299. if test "$ac_test_FFLAGS" = set; then
  6300. FFLAGS=$ac_save_FFLAGS
  6301. elif test $ac_cv_prog_f77_g = yes; then
  6302. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6303. FFLAGS="-g -O2"
  6304. else
  6305. FFLAGS="-g"
  6306. fi
  6307. else
  6308. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6309. FFLAGS="-O2"
  6310. else
  6311. FFLAGS=
  6312. fi
  6313. fi
  6314. if test $ac_compiler_gnu = yes; then
  6315. G77=yes
  6316. else
  6317. G77=
  6318. fi
  6319. ac_ext=c
  6320. ac_cpp='$CPP $CPPFLAGS'
  6321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6324. fi
  6325. fi
  6326. # case statements were introduced in fortran 90 so we can use that
  6327. # as a test to see if our compiler is fortran 90 compatible.
  6328. f90compatible=false
  6329. if test -z "$F77"; then
  6330. as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
  6331. fi
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
  6333. $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
  6334. f90compatible=false
  6335. ac_ext=f
  6336. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  6337. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6338. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  6339. cat > conftest.$ac_ext <<_ACEOF
  6340. PROGRAM hello
  6341. do 50 i = 1, 5
  6342. select case ( i )
  6343. case (1)
  6344. print*, "case is 1, i is ", i
  6345. case ( 2 : 3 )
  6346. print*, "case is 2 to 3, i is ", i
  6347. case default
  6348. print*, "default case, i is ", i
  6349. end select
  6350. 50 continue
  6351. END
  6352. _ACEOF
  6353. if ac_fn_f77_try_compile "$LINENO"; then :
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6355. $as_echo "yes" >&6; }
  6356. $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
  6357. f90compatible=true
  6358. else
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6360. $as_echo "no" >&6; }
  6361. fi
  6362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6363. ac_ext=c
  6364. ac_cpp='$CPP $CPPFLAGS'
  6365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6368. ############ C ###############
  6369. if test "$with_gcc" = yes; then
  6370. ac_ext=c
  6371. ac_cpp='$CPP $CPPFLAGS'
  6372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6375. if test -n "$ac_tool_prefix"; then
  6376. for ac_prog in gcc
  6377. do
  6378. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6379. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6381. $as_echo_n "checking for $ac_word... " >&6; }
  6382. if ${ac_cv_prog_CC+:} false; then :
  6383. $as_echo_n "(cached) " >&6
  6384. else
  6385. if test -n "$CC"; then
  6386. ac_cv_prog_CC="$CC" # Let the user override the test.
  6387. else
  6388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6389. for as_dir in $PATH
  6390. do
  6391. IFS=$as_save_IFS
  6392. test -z "$as_dir" && as_dir=.
  6393. for ac_exec_ext in '' $ac_executable_extensions; do
  6394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6395. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  6396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6397. break 2
  6398. fi
  6399. done
  6400. done
  6401. IFS=$as_save_IFS
  6402. fi
  6403. fi
  6404. CC=$ac_cv_prog_CC
  6405. if test -n "$CC"; then
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6407. $as_echo "$CC" >&6; }
  6408. else
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6410. $as_echo "no" >&6; }
  6411. fi
  6412. test -n "$CC" && break
  6413. done
  6414. fi
  6415. if test -z "$CC"; then
  6416. ac_ct_CC=$CC
  6417. for ac_prog in gcc
  6418. do
  6419. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6420. set dummy $ac_prog; ac_word=$2
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6422. $as_echo_n "checking for $ac_word... " >&6; }
  6423. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  6424. $as_echo_n "(cached) " >&6
  6425. else
  6426. if test -n "$ac_ct_CC"; then
  6427. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6428. else
  6429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6430. for as_dir in $PATH
  6431. do
  6432. IFS=$as_save_IFS
  6433. test -z "$as_dir" && as_dir=.
  6434. for ac_exec_ext in '' $ac_executable_extensions; do
  6435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6436. ac_cv_prog_ac_ct_CC="$ac_prog"
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6438. break 2
  6439. fi
  6440. done
  6441. done
  6442. IFS=$as_save_IFS
  6443. fi
  6444. fi
  6445. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6446. if test -n "$ac_ct_CC"; then
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6448. $as_echo "$ac_ct_CC" >&6; }
  6449. else
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6451. $as_echo "no" >&6; }
  6452. fi
  6453. test -n "$ac_ct_CC" && break
  6454. done
  6455. if test "x$ac_ct_CC" = x; then
  6456. CC=""
  6457. else
  6458. case $cross_compiling:$ac_tool_warned in
  6459. yes:)
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6462. ac_tool_warned=yes ;;
  6463. esac
  6464. CC=$ac_ct_CC
  6465. fi
  6466. fi
  6467. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6468. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6469. as_fn_error $? "no acceptable C compiler found in \$PATH
  6470. See \`config.log' for more details" "$LINENO" 5; }
  6471. # Provide some information about the compiler.
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  6473. set X $ac_compile
  6474. ac_compiler=$2
  6475. for ac_option in --version -v -V -qversion; do
  6476. { { ac_try="$ac_compiler $ac_option >&5"
  6477. case "(($ac_try" in
  6478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6479. *) ac_try_echo=$ac_try;;
  6480. esac
  6481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6482. $as_echo "$ac_try_echo"; } >&5
  6483. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6484. ac_status=$?
  6485. if test -s conftest.err; then
  6486. sed '10a\
  6487. ... rest of stderr output deleted ...
  6488. 10q' conftest.err >conftest.er1
  6489. cat conftest.er1 >&5
  6490. fi
  6491. rm -f conftest.er1 conftest.err
  6492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6493. test $ac_status = 0; }
  6494. done
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  6496. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  6497. if ${ac_cv_c_compiler_gnu+:} false; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. int
  6503. main ()
  6504. {
  6505. #ifndef __GNUC__
  6506. choke me
  6507. #endif
  6508. ;
  6509. return 0;
  6510. }
  6511. _ACEOF
  6512. if ac_fn_c_try_compile "$LINENO"; then :
  6513. ac_compiler_gnu=yes
  6514. else
  6515. ac_compiler_gnu=no
  6516. fi
  6517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6518. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  6519. fi
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  6521. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  6522. if test $ac_compiler_gnu = yes; then
  6523. GCC=yes
  6524. else
  6525. GCC=
  6526. fi
  6527. ac_test_CFLAGS=${CFLAGS+set}
  6528. ac_save_CFLAGS=$CFLAGS
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  6530. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  6531. if ${ac_cv_prog_cc_g+:} false; then :
  6532. $as_echo_n "(cached) " >&6
  6533. else
  6534. ac_save_c_werror_flag=$ac_c_werror_flag
  6535. ac_c_werror_flag=yes
  6536. ac_cv_prog_cc_g=no
  6537. CFLAGS="-g"
  6538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6539. /* end confdefs.h. */
  6540. int
  6541. main ()
  6542. {
  6543. ;
  6544. return 0;
  6545. }
  6546. _ACEOF
  6547. if ac_fn_c_try_compile "$LINENO"; then :
  6548. ac_cv_prog_cc_g=yes
  6549. else
  6550. CFLAGS=""
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. int
  6554. main ()
  6555. {
  6556. ;
  6557. return 0;
  6558. }
  6559. _ACEOF
  6560. if ac_fn_c_try_compile "$LINENO"; then :
  6561. else
  6562. ac_c_werror_flag=$ac_save_c_werror_flag
  6563. CFLAGS="-g"
  6564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6565. /* end confdefs.h. */
  6566. int
  6567. main ()
  6568. {
  6569. ;
  6570. return 0;
  6571. }
  6572. _ACEOF
  6573. if ac_fn_c_try_compile "$LINENO"; then :
  6574. ac_cv_prog_cc_g=yes
  6575. fi
  6576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6577. fi
  6578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6579. fi
  6580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6581. ac_c_werror_flag=$ac_save_c_werror_flag
  6582. fi
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  6584. $as_echo "$ac_cv_prog_cc_g" >&6; }
  6585. if test "$ac_test_CFLAGS" = set; then
  6586. CFLAGS=$ac_save_CFLAGS
  6587. elif test $ac_cv_prog_cc_g = yes; then
  6588. if test "$GCC" = yes; then
  6589. CFLAGS="-g -O2"
  6590. else
  6591. CFLAGS="-g"
  6592. fi
  6593. else
  6594. if test "$GCC" = yes; then
  6595. CFLAGS="-O2"
  6596. else
  6597. CFLAGS=
  6598. fi
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  6601. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  6602. if ${ac_cv_prog_cc_c89+:} false; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. ac_cv_prog_cc_c89=no
  6606. ac_save_CC=$CC
  6607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6608. /* end confdefs.h. */
  6609. #include <stdarg.h>
  6610. #include <stdio.h>
  6611. #include <sys/types.h>
  6612. #include <sys/stat.h>
  6613. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  6614. struct buf { int x; };
  6615. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6616. static char *e (p, i)
  6617. char **p;
  6618. int i;
  6619. {
  6620. return p[i];
  6621. }
  6622. static char *f (char * (*g) (char **, int), char **p, ...)
  6623. {
  6624. char *s;
  6625. va_list v;
  6626. va_start (v,p);
  6627. s = g (p, va_arg (v,int));
  6628. va_end (v);
  6629. return s;
  6630. }
  6631. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  6632. function prototypes and stuff, but not '\xHH' hex character constants.
  6633. These don't provoke an error unfortunately, instead are silently treated
  6634. as 'x'. The following induces an error, until -std is added to get
  6635. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  6636. array size at least. It's necessary to write '\x00'==0 to get something
  6637. that's true only with -std. */
  6638. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6639. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6640. inside strings and character constants. */
  6641. #define FOO(x) 'x'
  6642. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6643. int test (int i, double x);
  6644. struct s1 {int (*f) (int a);};
  6645. struct s2 {int (*f) (double a);};
  6646. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6647. int argc;
  6648. char **argv;
  6649. int
  6650. main ()
  6651. {
  6652. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  6653. ;
  6654. return 0;
  6655. }
  6656. _ACEOF
  6657. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6658. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6659. do
  6660. CC="$ac_save_CC $ac_arg"
  6661. if ac_fn_c_try_compile "$LINENO"; then :
  6662. ac_cv_prog_cc_c89=$ac_arg
  6663. fi
  6664. rm -f core conftest.err conftest.$ac_objext
  6665. test "x$ac_cv_prog_cc_c89" != "xno" && break
  6666. done
  6667. rm -f conftest.$ac_ext
  6668. CC=$ac_save_CC
  6669. fi
  6670. # AC_CACHE_VAL
  6671. case "x$ac_cv_prog_cc_c89" in
  6672. x)
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6674. $as_echo "none needed" >&6; } ;;
  6675. xno)
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6677. $as_echo "unsupported" >&6; } ;;
  6678. *)
  6679. CC="$CC $ac_cv_prog_cc_c89"
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  6681. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  6682. esac
  6683. if test "x$ac_cv_prog_cc_c89" != xno; then :
  6684. fi
  6685. ac_ext=c
  6686. ac_cpp='$CPP $CPPFLAGS'
  6687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6690. if test -z "$CC"; then
  6691. as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
  6692. fi
  6693. fi
  6694. if test "$with_intelcompilers" = yes; then
  6695. ac_ext=c
  6696. ac_cpp='$CPP $CPPFLAGS'
  6697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6700. if test -n "$ac_tool_prefix"; then
  6701. for ac_prog in icc ecc
  6702. do
  6703. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6704. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. $as_echo_n "checking for $ac_word... " >&6; }
  6707. if ${ac_cv_prog_CC+:} false; then :
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. if test -n "$CC"; then
  6711. ac_cv_prog_CC="$CC" # Let the user override the test.
  6712. else
  6713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6714. for as_dir in $PATH
  6715. do
  6716. IFS=$as_save_IFS
  6717. test -z "$as_dir" && as_dir=.
  6718. for ac_exec_ext in '' $ac_executable_extensions; do
  6719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6720. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6722. break 2
  6723. fi
  6724. done
  6725. done
  6726. IFS=$as_save_IFS
  6727. fi
  6728. fi
  6729. CC=$ac_cv_prog_CC
  6730. if test -n "$CC"; then
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6732. $as_echo "$CC" >&6; }
  6733. else
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6735. $as_echo "no" >&6; }
  6736. fi
  6737. test -n "$CC" && break
  6738. done
  6739. fi
  6740. if test -z "$CC"; then
  6741. ac_ct_CC=$CC
  6742. for ac_prog in icc ecc
  6743. do
  6744. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6745. set dummy $ac_prog; ac_word=$2
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6747. $as_echo_n "checking for $ac_word... " >&6; }
  6748. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. if test -n "$ac_ct_CC"; then
  6752. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  6753. else
  6754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6755. for as_dir in $PATH
  6756. do
  6757. IFS=$as_save_IFS
  6758. test -z "$as_dir" && as_dir=.
  6759. for ac_exec_ext in '' $ac_executable_extensions; do
  6760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6761. ac_cv_prog_ac_ct_CC="$ac_prog"
  6762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6763. break 2
  6764. fi
  6765. done
  6766. done
  6767. IFS=$as_save_IFS
  6768. fi
  6769. fi
  6770. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  6771. if test -n "$ac_ct_CC"; then
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  6773. $as_echo "$ac_ct_CC" >&6; }
  6774. else
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6776. $as_echo "no" >&6; }
  6777. fi
  6778. test -n "$ac_ct_CC" && break
  6779. done
  6780. if test "x$ac_ct_CC" = x; then
  6781. CC=""
  6782. else
  6783. case $cross_compiling:$ac_tool_warned in
  6784. yes:)
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6787. ac_tool_warned=yes ;;
  6788. esac
  6789. CC=$ac_ct_CC
  6790. fi
  6791. fi
  6792. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6794. as_fn_error $? "no acceptable C compiler found in \$PATH
  6795. See \`config.log' for more details" "$LINENO" 5; }
  6796. # Provide some information about the compiler.
  6797. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  6798. set X $ac_compile
  6799. ac_compiler=$2
  6800. for ac_option in --version -v -V -qversion; do
  6801. { { ac_try="$ac_compiler $ac_option >&5"
  6802. case "(($ac_try" in
  6803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6804. *) ac_try_echo=$ac_try;;
  6805. esac
  6806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6807. $as_echo "$ac_try_echo"; } >&5
  6808. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6809. ac_status=$?
  6810. if test -s conftest.err; then
  6811. sed '10a\
  6812. ... rest of stderr output deleted ...
  6813. 10q' conftest.err >conftest.er1
  6814. cat conftest.er1 >&5
  6815. fi
  6816. rm -f conftest.er1 conftest.err
  6817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6818. test $ac_status = 0; }
  6819. done
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  6821. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  6822. if ${ac_cv_c_compiler_gnu+:} false; then :
  6823. $as_echo_n "(cached) " >&6
  6824. else
  6825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6826. /* end confdefs.h. */
  6827. int
  6828. main ()
  6829. {
  6830. #ifndef __GNUC__
  6831. choke me
  6832. #endif
  6833. ;
  6834. return 0;
  6835. }
  6836. _ACEOF
  6837. if ac_fn_c_try_compile "$LINENO"; then :
  6838. ac_compiler_gnu=yes
  6839. else
  6840. ac_compiler_gnu=no
  6841. fi
  6842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6843. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  6844. fi
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  6846. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  6847. if test $ac_compiler_gnu = yes; then
  6848. GCC=yes
  6849. else
  6850. GCC=
  6851. fi
  6852. ac_test_CFLAGS=${CFLAGS+set}
  6853. ac_save_CFLAGS=$CFLAGS
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  6855. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  6856. if ${ac_cv_prog_cc_g+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. ac_save_c_werror_flag=$ac_c_werror_flag
  6860. ac_c_werror_flag=yes
  6861. ac_cv_prog_cc_g=no
  6862. CFLAGS="-g"
  6863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6864. /* end confdefs.h. */
  6865. int
  6866. main ()
  6867. {
  6868. ;
  6869. return 0;
  6870. }
  6871. _ACEOF
  6872. if ac_fn_c_try_compile "$LINENO"; then :
  6873. ac_cv_prog_cc_g=yes
  6874. else
  6875. CFLAGS=""
  6876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6877. /* end confdefs.h. */
  6878. int
  6879. main ()
  6880. {
  6881. ;
  6882. return 0;
  6883. }
  6884. _ACEOF
  6885. if ac_fn_c_try_compile "$LINENO"; then :
  6886. else
  6887. ac_c_werror_flag=$ac_save_c_werror_flag
  6888. CFLAGS="-g"
  6889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6890. /* end confdefs.h. */
  6891. int
  6892. main ()
  6893. {
  6894. ;
  6895. return 0;
  6896. }
  6897. _ACEOF
  6898. if ac_fn_c_try_compile "$LINENO"; then :
  6899. ac_cv_prog_cc_g=yes
  6900. fi
  6901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6902. fi
  6903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6904. fi
  6905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6906. ac_c_werror_flag=$ac_save_c_werror_flag
  6907. fi
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  6909. $as_echo "$ac_cv_prog_cc_g" >&6; }
  6910. if test "$ac_test_CFLAGS" = set; then
  6911. CFLAGS=$ac_save_CFLAGS
  6912. elif test $ac_cv_prog_cc_g = yes; then
  6913. if test "$GCC" = yes; then
  6914. CFLAGS="-g -O2"
  6915. else
  6916. CFLAGS="-g"
  6917. fi
  6918. else
  6919. if test "$GCC" = yes; then
  6920. CFLAGS="-O2"
  6921. else
  6922. CFLAGS=
  6923. fi
  6924. fi
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  6926. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  6927. if ${ac_cv_prog_cc_c89+:} false; then :
  6928. $as_echo_n "(cached) " >&6
  6929. else
  6930. ac_cv_prog_cc_c89=no
  6931. ac_save_CC=$CC
  6932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6933. /* end confdefs.h. */
  6934. #include <stdarg.h>
  6935. #include <stdio.h>
  6936. #include <sys/types.h>
  6937. #include <sys/stat.h>
  6938. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  6939. struct buf { int x; };
  6940. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6941. static char *e (p, i)
  6942. char **p;
  6943. int i;
  6944. {
  6945. return p[i];
  6946. }
  6947. static char *f (char * (*g) (char **, int), char **p, ...)
  6948. {
  6949. char *s;
  6950. va_list v;
  6951. va_start (v,p);
  6952. s = g (p, va_arg (v,int));
  6953. va_end (v);
  6954. return s;
  6955. }
  6956. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  6957. function prototypes and stuff, but not '\xHH' hex character constants.
  6958. These don't provoke an error unfortunately, instead are silently treated
  6959. as 'x'. The following induces an error, until -std is added to get
  6960. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  6961. array size at least. It's necessary to write '\x00'==0 to get something
  6962. that's true only with -std. */
  6963. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6964. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6965. inside strings and character constants. */
  6966. #define FOO(x) 'x'
  6967. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6968. int test (int i, double x);
  6969. struct s1 {int (*f) (int a);};
  6970. struct s2 {int (*f) (double a);};
  6971. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6972. int argc;
  6973. char **argv;
  6974. int
  6975. main ()
  6976. {
  6977. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  6978. ;
  6979. return 0;
  6980. }
  6981. _ACEOF
  6982. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6983. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6984. do
  6985. CC="$ac_save_CC $ac_arg"
  6986. if ac_fn_c_try_compile "$LINENO"; then :
  6987. ac_cv_prog_cc_c89=$ac_arg
  6988. fi
  6989. rm -f core conftest.err conftest.$ac_objext
  6990. test "x$ac_cv_prog_cc_c89" != "xno" && break
  6991. done
  6992. rm -f conftest.$ac_ext
  6993. CC=$ac_save_CC
  6994. fi
  6995. # AC_CACHE_VAL
  6996. case "x$ac_cv_prog_cc_c89" in
  6997. x)
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6999. $as_echo "none needed" >&6; } ;;
  7000. xno)
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  7002. $as_echo "unsupported" >&6; } ;;
  7003. *)
  7004. CC="$CC $ac_cv_prog_cc_c89"
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  7006. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  7007. esac
  7008. if test "x$ac_cv_prog_cc_c89" != xno; then :
  7009. fi
  7010. ac_ext=c
  7011. ac_cpp='$CPP $CPPFLAGS'
  7012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7015. if test -z "$CC"; then
  7016. as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
  7017. fi
  7018. fi
  7019. if test -z "$CC"; then
  7020. # No C compiler specified... We rely on Autoconf to find the best
  7021. ac_ext=c
  7022. ac_cpp='$CPP $CPPFLAGS'
  7023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7026. if test -n "$ac_tool_prefix"; then
  7027. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  7028. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7030. $as_echo_n "checking for $ac_word... " >&6; }
  7031. if ${ac_cv_prog_CC+:} false; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. if test -n "$CC"; then
  7035. ac_cv_prog_CC="$CC" # Let the user override the test.
  7036. else
  7037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7038. for as_dir in $PATH
  7039. do
  7040. IFS=$as_save_IFS
  7041. test -z "$as_dir" && as_dir=.
  7042. for ac_exec_ext in '' $ac_executable_extensions; do
  7043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7044. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  7045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7046. break 2
  7047. fi
  7048. done
  7049. done
  7050. IFS=$as_save_IFS
  7051. fi
  7052. fi
  7053. CC=$ac_cv_prog_CC
  7054. if test -n "$CC"; then
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7056. $as_echo "$CC" >&6; }
  7057. else
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7059. $as_echo "no" >&6; }
  7060. fi
  7061. fi
  7062. if test -z "$ac_cv_prog_CC"; then
  7063. ac_ct_CC=$CC
  7064. # Extract the first word of "gcc", so it can be a program name with args.
  7065. set dummy gcc; ac_word=$2
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7067. $as_echo_n "checking for $ac_word... " >&6; }
  7068. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  7069. $as_echo_n "(cached) " >&6
  7070. else
  7071. if test -n "$ac_ct_CC"; then
  7072. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7073. else
  7074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7075. for as_dir in $PATH
  7076. do
  7077. IFS=$as_save_IFS
  7078. test -z "$as_dir" && as_dir=.
  7079. for ac_exec_ext in '' $ac_executable_extensions; do
  7080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7081. ac_cv_prog_ac_ct_CC="gcc"
  7082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7083. break 2
  7084. fi
  7085. done
  7086. done
  7087. IFS=$as_save_IFS
  7088. fi
  7089. fi
  7090. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7091. if test -n "$ac_ct_CC"; then
  7092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  7093. $as_echo "$ac_ct_CC" >&6; }
  7094. else
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7096. $as_echo "no" >&6; }
  7097. fi
  7098. if test "x$ac_ct_CC" = x; then
  7099. CC=""
  7100. else
  7101. case $cross_compiling:$ac_tool_warned in
  7102. yes:)
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7105. ac_tool_warned=yes ;;
  7106. esac
  7107. CC=$ac_ct_CC
  7108. fi
  7109. else
  7110. CC="$ac_cv_prog_CC"
  7111. fi
  7112. if test -z "$CC"; then
  7113. if test -n "$ac_tool_prefix"; then
  7114. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  7115. set dummy ${ac_tool_prefix}cc; ac_word=$2
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7117. $as_echo_n "checking for $ac_word... " >&6; }
  7118. if ${ac_cv_prog_CC+:} false; then :
  7119. $as_echo_n "(cached) " >&6
  7120. else
  7121. if test -n "$CC"; then
  7122. ac_cv_prog_CC="$CC" # Let the user override the test.
  7123. else
  7124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7125. for as_dir in $PATH
  7126. do
  7127. IFS=$as_save_IFS
  7128. test -z "$as_dir" && as_dir=.
  7129. for ac_exec_ext in '' $ac_executable_extensions; do
  7130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7131. ac_cv_prog_CC="${ac_tool_prefix}cc"
  7132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7133. break 2
  7134. fi
  7135. done
  7136. done
  7137. IFS=$as_save_IFS
  7138. fi
  7139. fi
  7140. CC=$ac_cv_prog_CC
  7141. if test -n "$CC"; then
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7143. $as_echo "$CC" >&6; }
  7144. else
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7146. $as_echo "no" >&6; }
  7147. fi
  7148. fi
  7149. fi
  7150. if test -z "$CC"; then
  7151. # Extract the first word of "cc", so it can be a program name with args.
  7152. set dummy cc; ac_word=$2
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7154. $as_echo_n "checking for $ac_word... " >&6; }
  7155. if ${ac_cv_prog_CC+:} false; then :
  7156. $as_echo_n "(cached) " >&6
  7157. else
  7158. if test -n "$CC"; then
  7159. ac_cv_prog_CC="$CC" # Let the user override the test.
  7160. else
  7161. ac_prog_rejected=no
  7162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7163. for as_dir in $PATH
  7164. do
  7165. IFS=$as_save_IFS
  7166. test -z "$as_dir" && as_dir=.
  7167. for ac_exec_ext in '' $ac_executable_extensions; do
  7168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7169. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  7170. ac_prog_rejected=yes
  7171. continue
  7172. fi
  7173. ac_cv_prog_CC="cc"
  7174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7175. break 2
  7176. fi
  7177. done
  7178. done
  7179. IFS=$as_save_IFS
  7180. if test $ac_prog_rejected = yes; then
  7181. # We found a bogon in the path, so make sure we never use it.
  7182. set dummy $ac_cv_prog_CC
  7183. shift
  7184. if test $# != 0; then
  7185. # We chose a different compiler from the bogus one.
  7186. # However, it has the same basename, so the bogon will be chosen
  7187. # first if we set CC to just the basename; use the full file name.
  7188. shift
  7189. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  7190. fi
  7191. fi
  7192. fi
  7193. fi
  7194. CC=$ac_cv_prog_CC
  7195. if test -n "$CC"; then
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7197. $as_echo "$CC" >&6; }
  7198. else
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7200. $as_echo "no" >&6; }
  7201. fi
  7202. fi
  7203. if test -z "$CC"; then
  7204. if test -n "$ac_tool_prefix"; then
  7205. for ac_prog in cl.exe
  7206. do
  7207. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7208. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7210. $as_echo_n "checking for $ac_word... " >&6; }
  7211. if ${ac_cv_prog_CC+:} false; then :
  7212. $as_echo_n "(cached) " >&6
  7213. else
  7214. if test -n "$CC"; then
  7215. ac_cv_prog_CC="$CC" # Let the user override the test.
  7216. else
  7217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7218. for as_dir in $PATH
  7219. do
  7220. IFS=$as_save_IFS
  7221. test -z "$as_dir" && as_dir=.
  7222. for ac_exec_ext in '' $ac_executable_extensions; do
  7223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7224. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  7225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7226. break 2
  7227. fi
  7228. done
  7229. done
  7230. IFS=$as_save_IFS
  7231. fi
  7232. fi
  7233. CC=$ac_cv_prog_CC
  7234. if test -n "$CC"; then
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  7236. $as_echo "$CC" >&6; }
  7237. else
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7239. $as_echo "no" >&6; }
  7240. fi
  7241. test -n "$CC" && break
  7242. done
  7243. fi
  7244. if test -z "$CC"; then
  7245. ac_ct_CC=$CC
  7246. for ac_prog in cl.exe
  7247. do
  7248. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7249. set dummy $ac_prog; ac_word=$2
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7251. $as_echo_n "checking for $ac_word... " >&6; }
  7252. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  7253. $as_echo_n "(cached) " >&6
  7254. else
  7255. if test -n "$ac_ct_CC"; then
  7256. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  7257. else
  7258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7259. for as_dir in $PATH
  7260. do
  7261. IFS=$as_save_IFS
  7262. test -z "$as_dir" && as_dir=.
  7263. for ac_exec_ext in '' $ac_executable_extensions; do
  7264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7265. ac_cv_prog_ac_ct_CC="$ac_prog"
  7266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7267. break 2
  7268. fi
  7269. done
  7270. done
  7271. IFS=$as_save_IFS
  7272. fi
  7273. fi
  7274. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  7275. if test -n "$ac_ct_CC"; then
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  7277. $as_echo "$ac_ct_CC" >&6; }
  7278. else
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7280. $as_echo "no" >&6; }
  7281. fi
  7282. test -n "$ac_ct_CC" && break
  7283. done
  7284. if test "x$ac_ct_CC" = x; then
  7285. CC=""
  7286. else
  7287. case $cross_compiling:$ac_tool_warned in
  7288. yes:)
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7290. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7291. ac_tool_warned=yes ;;
  7292. esac
  7293. CC=$ac_ct_CC
  7294. fi
  7295. fi
  7296. fi
  7297. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7298. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7299. as_fn_error $? "no acceptable C compiler found in \$PATH
  7300. See \`config.log' for more details" "$LINENO" 5; }
  7301. # Provide some information about the compiler.
  7302. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  7303. set X $ac_compile
  7304. ac_compiler=$2
  7305. for ac_option in --version -v -V -qversion; do
  7306. { { ac_try="$ac_compiler $ac_option >&5"
  7307. case "(($ac_try" in
  7308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7309. *) ac_try_echo=$ac_try;;
  7310. esac
  7311. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7312. $as_echo "$ac_try_echo"; } >&5
  7313. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7314. ac_status=$?
  7315. if test -s conftest.err; then
  7316. sed '10a\
  7317. ... rest of stderr output deleted ...
  7318. 10q' conftest.err >conftest.er1
  7319. cat conftest.er1 >&5
  7320. fi
  7321. rm -f conftest.er1 conftest.err
  7322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7323. test $ac_status = 0; }
  7324. done
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  7326. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  7327. if ${ac_cv_c_compiler_gnu+:} false; then :
  7328. $as_echo_n "(cached) " >&6
  7329. else
  7330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7331. /* end confdefs.h. */
  7332. int
  7333. main ()
  7334. {
  7335. #ifndef __GNUC__
  7336. choke me
  7337. #endif
  7338. ;
  7339. return 0;
  7340. }
  7341. _ACEOF
  7342. if ac_fn_c_try_compile "$LINENO"; then :
  7343. ac_compiler_gnu=yes
  7344. else
  7345. ac_compiler_gnu=no
  7346. fi
  7347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7348. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  7349. fi
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  7351. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  7352. if test $ac_compiler_gnu = yes; then
  7353. GCC=yes
  7354. else
  7355. GCC=
  7356. fi
  7357. ac_test_CFLAGS=${CFLAGS+set}
  7358. ac_save_CFLAGS=$CFLAGS
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  7360. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  7361. if ${ac_cv_prog_cc_g+:} false; then :
  7362. $as_echo_n "(cached) " >&6
  7363. else
  7364. ac_save_c_werror_flag=$ac_c_werror_flag
  7365. ac_c_werror_flag=yes
  7366. ac_cv_prog_cc_g=no
  7367. CFLAGS="-g"
  7368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7369. /* end confdefs.h. */
  7370. int
  7371. main ()
  7372. {
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. if ac_fn_c_try_compile "$LINENO"; then :
  7378. ac_cv_prog_cc_g=yes
  7379. else
  7380. CFLAGS=""
  7381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7382. /* end confdefs.h. */
  7383. int
  7384. main ()
  7385. {
  7386. ;
  7387. return 0;
  7388. }
  7389. _ACEOF
  7390. if ac_fn_c_try_compile "$LINENO"; then :
  7391. else
  7392. ac_c_werror_flag=$ac_save_c_werror_flag
  7393. CFLAGS="-g"
  7394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7395. /* end confdefs.h. */
  7396. int
  7397. main ()
  7398. {
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. if ac_fn_c_try_compile "$LINENO"; then :
  7404. ac_cv_prog_cc_g=yes
  7405. fi
  7406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7409. fi
  7410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7411. ac_c_werror_flag=$ac_save_c_werror_flag
  7412. fi
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  7414. $as_echo "$ac_cv_prog_cc_g" >&6; }
  7415. if test "$ac_test_CFLAGS" = set; then
  7416. CFLAGS=$ac_save_CFLAGS
  7417. elif test $ac_cv_prog_cc_g = yes; then
  7418. if test "$GCC" = yes; then
  7419. CFLAGS="-g -O2"
  7420. else
  7421. CFLAGS="-g"
  7422. fi
  7423. else
  7424. if test "$GCC" = yes; then
  7425. CFLAGS="-O2"
  7426. else
  7427. CFLAGS=
  7428. fi
  7429. fi
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  7431. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  7432. if ${ac_cv_prog_cc_c89+:} false; then :
  7433. $as_echo_n "(cached) " >&6
  7434. else
  7435. ac_cv_prog_cc_c89=no
  7436. ac_save_CC=$CC
  7437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7438. /* end confdefs.h. */
  7439. #include <stdarg.h>
  7440. #include <stdio.h>
  7441. #include <sys/types.h>
  7442. #include <sys/stat.h>
  7443. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  7444. struct buf { int x; };
  7445. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  7446. static char *e (p, i)
  7447. char **p;
  7448. int i;
  7449. {
  7450. return p[i];
  7451. }
  7452. static char *f (char * (*g) (char **, int), char **p, ...)
  7453. {
  7454. char *s;
  7455. va_list v;
  7456. va_start (v,p);
  7457. s = g (p, va_arg (v,int));
  7458. va_end (v);
  7459. return s;
  7460. }
  7461. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  7462. function prototypes and stuff, but not '\xHH' hex character constants.
  7463. These don't provoke an error unfortunately, instead are silently treated
  7464. as 'x'. The following induces an error, until -std is added to get
  7465. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  7466. array size at least. It's necessary to write '\x00'==0 to get something
  7467. that's true only with -std. */
  7468. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  7469. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  7470. inside strings and character constants. */
  7471. #define FOO(x) 'x'
  7472. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  7473. int test (int i, double x);
  7474. struct s1 {int (*f) (int a);};
  7475. struct s2 {int (*f) (double a);};
  7476. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  7477. int argc;
  7478. char **argv;
  7479. int
  7480. main ()
  7481. {
  7482. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  7483. ;
  7484. return 0;
  7485. }
  7486. _ACEOF
  7487. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  7488. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  7489. do
  7490. CC="$ac_save_CC $ac_arg"
  7491. if ac_fn_c_try_compile "$LINENO"; then :
  7492. ac_cv_prog_cc_c89=$ac_arg
  7493. fi
  7494. rm -f core conftest.err conftest.$ac_objext
  7495. test "x$ac_cv_prog_cc_c89" != "xno" && break
  7496. done
  7497. rm -f conftest.$ac_ext
  7498. CC=$ac_save_CC
  7499. fi
  7500. # AC_CACHE_VAL
  7501. case "x$ac_cv_prog_cc_c89" in
  7502. x)
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  7504. $as_echo "none needed" >&6; } ;;
  7505. xno)
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  7507. $as_echo "unsupported" >&6; } ;;
  7508. *)
  7509. CC="$CC $ac_cv_prog_cc_c89"
  7510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  7511. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  7512. esac
  7513. if test "x$ac_cv_prog_cc_c89" != xno; then :
  7514. fi
  7515. ac_ext=c
  7516. ac_cpp='$CPP $CPPFLAGS'
  7517. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7518. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7519. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7520. fi
  7521. if test -z "$CC"; then
  7522. as_fn_error $? "No C Compiler found. Cannot compile Scilab without a C compiler" "$LINENO" 5
  7523. fi
  7524. # The cast to long int works around a bug in the HP C Compiler
  7525. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7526. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7527. # This bug is HP SR number 8606223364.
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  7529. $as_echo_n "checking size of int... " >&6; }
  7530. if ${ac_cv_sizeof_int+:} false; then :
  7531. $as_echo_n "(cached) " >&6
  7532. else
  7533. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  7534. else
  7535. if test "$ac_cv_type_int" = yes; then
  7536. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7537. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7538. as_fn_error 77 "cannot compute sizeof (int)
  7539. See \`config.log' for more details" "$LINENO" 5; }
  7540. else
  7541. ac_cv_sizeof_int=0
  7542. fi
  7543. fi
  7544. fi
  7545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  7546. $as_echo "$ac_cv_sizeof_int" >&6; }
  7547. cat >>confdefs.h <<_ACEOF
  7548. #define SIZEOF_INT $ac_cv_sizeof_int
  7549. _ACEOF
  7550. # The cast to long int works around a bug in the HP C Compiler
  7551. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7552. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7553. # This bug is HP SR number 8606223364.
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  7555. $as_echo_n "checking size of long... " >&6; }
  7556. if ${ac_cv_sizeof_long+:} false; then :
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  7560. else
  7561. if test "$ac_cv_type_long" = yes; then
  7562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7564. as_fn_error 77 "cannot compute sizeof (long)
  7565. See \`config.log' for more details" "$LINENO" 5; }
  7566. else
  7567. ac_cv_sizeof_long=0
  7568. fi
  7569. fi
  7570. fi
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  7572. $as_echo "$ac_cv_sizeof_long" >&6; }
  7573. cat >>confdefs.h <<_ACEOF
  7574. #define SIZEOF_LONG $ac_cv_sizeof_long
  7575. _ACEOF
  7576. ### C++ ###
  7577. ac_ext=cpp
  7578. ac_cpp='$CXXCPP $CPPFLAGS'
  7579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7582. if test -z "$CXX"; then
  7583. if test -n "$CCC"; then
  7584. CXX=$CCC
  7585. else
  7586. if test -n "$ac_tool_prefix"; then
  7587. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7588. do
  7589. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7590. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7592. $as_echo_n "checking for $ac_word... " >&6; }
  7593. if ${ac_cv_prog_CXX+:} false; then :
  7594. $as_echo_n "(cached) " >&6
  7595. else
  7596. if test -n "$CXX"; then
  7597. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7598. else
  7599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7600. for as_dir in $PATH
  7601. do
  7602. IFS=$as_save_IFS
  7603. test -z "$as_dir" && as_dir=.
  7604. for ac_exec_ext in '' $ac_executable_extensions; do
  7605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7606. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7608. break 2
  7609. fi
  7610. done
  7611. done
  7612. IFS=$as_save_IFS
  7613. fi
  7614. fi
  7615. CXX=$ac_cv_prog_CXX
  7616. if test -n "$CXX"; then
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7618. $as_echo "$CXX" >&6; }
  7619. else
  7620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7621. $as_echo "no" >&6; }
  7622. fi
  7623. test -n "$CXX" && break
  7624. done
  7625. fi
  7626. if test -z "$CXX"; then
  7627. ac_ct_CXX=$CXX
  7628. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7629. do
  7630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7631. set dummy $ac_prog; ac_word=$2
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7633. $as_echo_n "checking for $ac_word... " >&6; }
  7634. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  7635. $as_echo_n "(cached) " >&6
  7636. else
  7637. if test -n "$ac_ct_CXX"; then
  7638. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7639. else
  7640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7641. for as_dir in $PATH
  7642. do
  7643. IFS=$as_save_IFS
  7644. test -z "$as_dir" && as_dir=.
  7645. for ac_exec_ext in '' $ac_executable_extensions; do
  7646. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7647. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7649. break 2
  7650. fi
  7651. done
  7652. done
  7653. IFS=$as_save_IFS
  7654. fi
  7655. fi
  7656. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7657. if test -n "$ac_ct_CXX"; then
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  7659. $as_echo "$ac_ct_CXX" >&6; }
  7660. else
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7662. $as_echo "no" >&6; }
  7663. fi
  7664. test -n "$ac_ct_CXX" && break
  7665. done
  7666. if test "x$ac_ct_CXX" = x; then
  7667. CXX="g++"
  7668. else
  7669. case $cross_compiling:$ac_tool_warned in
  7670. yes:)
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7673. ac_tool_warned=yes ;;
  7674. esac
  7675. CXX=$ac_ct_CXX
  7676. fi
  7677. fi
  7678. fi
  7679. fi
  7680. # Provide some information about the compiler.
  7681. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7682. set X $ac_compile
  7683. ac_compiler=$2
  7684. for ac_option in --version -v -V -qversion; do
  7685. { { ac_try="$ac_compiler $ac_option >&5"
  7686. case "(($ac_try" in
  7687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7688. *) ac_try_echo=$ac_try;;
  7689. esac
  7690. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7691. $as_echo "$ac_try_echo"; } >&5
  7692. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7693. ac_status=$?
  7694. if test -s conftest.err; then
  7695. sed '10a\
  7696. ... rest of stderr output deleted ...
  7697. 10q' conftest.err >conftest.er1
  7698. cat conftest.er1 >&5
  7699. fi
  7700. rm -f conftest.er1 conftest.err
  7701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7702. test $ac_status = 0; }
  7703. done
  7704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7705. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7706. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  7707. $as_echo_n "(cached) " >&6
  7708. else
  7709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7710. /* end confdefs.h. */
  7711. int
  7712. main ()
  7713. {
  7714. #ifndef __GNUC__
  7715. choke me
  7716. #endif
  7717. ;
  7718. return 0;
  7719. }
  7720. _ACEOF
  7721. if ac_fn_cxx_try_compile "$LINENO"; then :
  7722. ac_compiler_gnu=yes
  7723. else
  7724. ac_compiler_gnu=no
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7730. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7731. if test $ac_compiler_gnu = yes; then
  7732. GXX=yes
  7733. else
  7734. GXX=
  7735. fi
  7736. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7737. ac_save_CXXFLAGS=$CXXFLAGS
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7739. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7740. if ${ac_cv_prog_cxx_g+:} false; then :
  7741. $as_echo_n "(cached) " >&6
  7742. else
  7743. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7744. ac_cxx_werror_flag=yes
  7745. ac_cv_prog_cxx_g=no
  7746. CXXFLAGS="-g"
  7747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7748. /* end confdefs.h. */
  7749. int
  7750. main ()
  7751. {
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. if ac_fn_cxx_try_compile "$LINENO"; then :
  7757. ac_cv_prog_cxx_g=yes
  7758. else
  7759. CXXFLAGS=""
  7760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7761. /* end confdefs.h. */
  7762. int
  7763. main ()
  7764. {
  7765. ;
  7766. return 0;
  7767. }
  7768. _ACEOF
  7769. if ac_fn_cxx_try_compile "$LINENO"; then :
  7770. else
  7771. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7772. CXXFLAGS="-g"
  7773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7774. /* end confdefs.h. */
  7775. int
  7776. main ()
  7777. {
  7778. ;
  7779. return 0;
  7780. }
  7781. _ACEOF
  7782. if ac_fn_cxx_try_compile "$LINENO"; then :
  7783. ac_cv_prog_cxx_g=yes
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7786. fi
  7787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7788. fi
  7789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7790. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7791. fi
  7792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7793. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7794. if test "$ac_test_CXXFLAGS" = set; then
  7795. CXXFLAGS=$ac_save_CXXFLAGS
  7796. elif test $ac_cv_prog_cxx_g = yes; then
  7797. if test "$GXX" = yes; then
  7798. CXXFLAGS="-g -O2"
  7799. else
  7800. CXXFLAGS="-g"
  7801. fi
  7802. else
  7803. if test "$GXX" = yes; then
  7804. CXXFLAGS="-O2"
  7805. else
  7806. CXXFLAGS=
  7807. fi
  7808. fi
  7809. ac_ext=c
  7810. ac_cpp='$CPP $CPPFLAGS'
  7811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7814. depcc="$CXX" am_compiler_list=
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7816. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7817. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  7818. $as_echo_n "(cached) " >&6
  7819. else
  7820. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7821. # We make a subdir and do the tests there. Otherwise we can end up
  7822. # making bogus files that we don't know about and never remove. For
  7823. # instance it was reported that on HP-UX the gcc test will end up
  7824. # making a dummy file named `D' -- because `-MD' means `put the output
  7825. # in D'.
  7826. rm -rf conftest.dir
  7827. mkdir conftest.dir
  7828. # Copy depcomp to subdir because otherwise we won't find it if we're
  7829. # using a relative directory.
  7830. cp "$am_depcomp" conftest.dir
  7831. cd conftest.dir
  7832. # We will build objects and dependencies in a subdirectory because
  7833. # it helps to detect inapplicable dependency modes. For instance
  7834. # both Tru64's cc and ICC support -MD to output dependencies as a
  7835. # side effect of compilation, but ICC will put the dependencies in
  7836. # the current directory while Tru64 will put them in the object
  7837. # directory.
  7838. mkdir sub
  7839. am_cv_CXX_dependencies_compiler_type=none
  7840. if test "$am_compiler_list" = ""; then
  7841. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7842. fi
  7843. am__universal=false
  7844. case " $depcc " in #(
  7845. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7846. esac
  7847. for depmode in $am_compiler_list; do
  7848. # Setup a source with many dependencies, because some compilers
  7849. # like to wrap large dependency lists on column 80 (with \), and
  7850. # we should not choose a depcomp mode which is confused by this.
  7851. #
  7852. # We need to recreate these files for each test, as the compiler may
  7853. # overwrite some of them when testing with obscure command lines.
  7854. # This happens at least with the AIX C compiler.
  7855. : > sub/conftest.c
  7856. for i in 1 2 3 4 5 6; do
  7857. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7858. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7859. # Solaris 8's {/usr,}/bin/sh.
  7860. touch sub/conftst$i.h
  7861. done
  7862. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7863. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7864. # mode. It turns out that the SunPro C++ compiler does not properly
  7865. # handle `-M -o', and we need to detect this. Also, some Intel
  7866. # versions had trouble with output in subdirs
  7867. am__obj=sub/conftest.${OBJEXT-o}
  7868. am__minus_obj="-o $am__obj"
  7869. case $depmode in
  7870. gcc)
  7871. # This depmode causes a compiler race in universal mode.
  7872. test "$am__universal" = false || continue
  7873. ;;
  7874. nosideeffect)
  7875. # after this tag, mechanisms are not by side-effect, so they'll
  7876. # only be used when explicitly requested
  7877. if test "x$enable_dependency_tracking" = xyes; then
  7878. continue
  7879. else
  7880. break
  7881. fi
  7882. ;;
  7883. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7884. # This compiler won't grok `-c -o', but also, the minuso test has
  7885. # not run yet. These depmodes are late enough in the game, and
  7886. # so weak that their functioning should not be impacted.
  7887. am__obj=conftest.${OBJEXT-o}
  7888. am__minus_obj=
  7889. ;;
  7890. none) break ;;
  7891. esac
  7892. if depmode=$depmode \
  7893. source=sub/conftest.c object=$am__obj \
  7894. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7895. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7896. >/dev/null 2>conftest.err &&
  7897. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7898. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7899. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7900. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7901. # icc doesn't choke on unknown options, it will just issue warnings
  7902. # or remarks (even with -Werror). So we grep stderr for any message
  7903. # that says an option was ignored or not supported.
  7904. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7905. # icc: Command line warning: ignoring option '-M'; no argument required
  7906. # The diagnosis changed in icc 8.0:
  7907. # icc: Command line remark: option '-MP' not supported
  7908. if (grep 'ignoring option' conftest.err ||
  7909. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7910. am_cv_CXX_dependencies_compiler_type=$depmode
  7911. break
  7912. fi
  7913. fi
  7914. done
  7915. cd ..
  7916. rm -rf conftest.dir
  7917. else
  7918. am_cv_CXX_dependencies_compiler_type=none
  7919. fi
  7920. fi
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7922. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7923. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7924. if
  7925. test "x$enable_dependency_tracking" != xno \
  7926. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7927. am__fastdepCXX_TRUE=
  7928. am__fastdepCXX_FALSE='#'
  7929. else
  7930. am__fastdepCXX_TRUE='#'
  7931. am__fastdepCXX_FALSE=
  7932. fi
  7933. # we can't just do something like
  7934. # AC_CHECK_PROG(cxx_present, $CXX, "yes", "no")
  7935. # because if the user has specified the full path of the desired C++ compiler then AC_CHECK_PROG
  7936. # will fail. If AC_PROG_CXX fails to find a c++ compiler it will set CXX=g++ so just run AC_CHECK_PROG
  7937. # in this special case
  7938. case $CXX in
  7939. g++)
  7940. # Extract the first word of "$CXX", so it can be a program name with args.
  7941. set dummy $CXX; ac_word=$2
  7942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7943. $as_echo_n "checking for $ac_word... " >&6; }
  7944. if ${ac_cv_prog_cxx_present+:} false; then :
  7945. $as_echo_n "(cached) " >&6
  7946. else
  7947. if test -n "$cxx_present"; then
  7948. ac_cv_prog_cxx_present="$cxx_present" # Let the user override the test.
  7949. else
  7950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7951. for as_dir in $PATH
  7952. do
  7953. IFS=$as_save_IFS
  7954. test -z "$as_dir" && as_dir=.
  7955. for ac_exec_ext in '' $ac_executable_extensions; do
  7956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7957. ac_cv_prog_cxx_present="yes"
  7958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7959. break 2
  7960. fi
  7961. done
  7962. done
  7963. IFS=$as_save_IFS
  7964. test -z "$ac_cv_prog_cxx_present" && ac_cv_prog_cxx_present="no"
  7965. fi
  7966. fi
  7967. cxx_present=$ac_cv_prog_cxx_present
  7968. if test -n "$cxx_present"; then
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_present" >&5
  7970. $as_echo "$cxx_present" >&6; }
  7971. else
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7973. $as_echo "no" >&6; }
  7974. fi
  7975. if test "x$cxx_present" != "xyes"; then
  7976. as_fn_error $? "No C++ compiler found. Cannot compile scilab without a C++ compiler" "$LINENO" 5
  7977. fi
  7978. ;;
  7979. esac
  7980. # for "subdir-objects"
  7981. if test "x$CC" != xcc; then
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  7983. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  7984. else
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  7986. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  7987. fi
  7988. set dummy $CC; ac_cc=`$as_echo "$2" |
  7989. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  7990. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  7991. $as_echo_n "(cached) " >&6
  7992. else
  7993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7994. /* end confdefs.h. */
  7995. int
  7996. main ()
  7997. {
  7998. ;
  7999. return 0;
  8000. }
  8001. _ACEOF
  8002. # Make sure it works both with $CC and with simple cc.
  8003. # We do the test twice because some compilers refuse to overwrite an
  8004. # existing .o file with -o, though they will create one.
  8005. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  8006. rm -f conftest2.*
  8007. if { { case "(($ac_try" in
  8008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8009. *) ac_try_echo=$ac_try;;
  8010. esac
  8011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8012. $as_echo "$ac_try_echo"; } >&5
  8013. (eval "$ac_try") 2>&5
  8014. ac_status=$?
  8015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8016. test $ac_status = 0; } &&
  8017. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  8018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8019. *) ac_try_echo=$ac_try;;
  8020. esac
  8021. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8022. $as_echo "$ac_try_echo"; } >&5
  8023. (eval "$ac_try") 2>&5
  8024. ac_status=$?
  8025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8026. test $ac_status = 0; };
  8027. then
  8028. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  8029. if test "x$CC" != xcc; then
  8030. # Test first that cc exists at all.
  8031. if { ac_try='cc -c conftest.$ac_ext >&5'
  8032. { { case "(($ac_try" in
  8033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8034. *) ac_try_echo=$ac_try;;
  8035. esac
  8036. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8037. $as_echo "$ac_try_echo"; } >&5
  8038. (eval "$ac_try") 2>&5
  8039. ac_status=$?
  8040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8041. test $ac_status = 0; }; }; then
  8042. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  8043. rm -f conftest2.*
  8044. if { { case "(($ac_try" in
  8045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8046. *) ac_try_echo=$ac_try;;
  8047. esac
  8048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8049. $as_echo "$ac_try_echo"; } >&5
  8050. (eval "$ac_try") 2>&5
  8051. ac_status=$?
  8052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8053. test $ac_status = 0; } &&
  8054. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  8055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8056. *) ac_try_echo=$ac_try;;
  8057. esac
  8058. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8059. $as_echo "$ac_try_echo"; } >&5
  8060. (eval "$ac_try") 2>&5
  8061. ac_status=$?
  8062. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8063. test $ac_status = 0; };
  8064. then
  8065. # cc works too.
  8066. :
  8067. else
  8068. # cc exists but doesn't like -o.
  8069. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  8070. fi
  8071. fi
  8072. fi
  8073. else
  8074. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  8075. fi
  8076. rm -f core conftest*
  8077. fi
  8078. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  8079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8080. $as_echo "yes" >&6; }
  8081. else
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8083. $as_echo "no" >&6; }
  8084. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  8085. fi
  8086. # FIXME: we rely on the cache variable name because
  8087. # there is no other way.
  8088. set dummy $CC
  8089. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  8090. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8091. if test "$am_t" != yes; then
  8092. # Losing compiler, so override with the script.
  8093. # FIXME: It is wrong to rewrite CC.
  8094. # But if we don't then we get into trouble of one sort or another.
  8095. # A longer-term fix would be to have automake use am__CC in this case,
  8096. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8097. CC="$am_aux_dir/compile $CC"
  8098. fi
  8099. ac_ext=f
  8100. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  8101. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8102. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 understands -c and -o together" >&5
  8104. $as_echo_n "checking whether $F77 understands -c and -o together... " >&6; }
  8105. if ${ac_cv_prog_f77_c_o+:} false; then :
  8106. $as_echo_n "(cached) " >&6
  8107. else
  8108. cat > conftest.$ac_ext <<_ACEOF
  8109. program main
  8110. end
  8111. _ACEOF
  8112. # We test twice because some compilers refuse to overwrite an existing
  8113. # `.o' file with `-o', although they will create one.
  8114. ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  8115. rm -f conftest2.*
  8116. if { { case "(($ac_try" in
  8117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8118. *) ac_try_echo=$ac_try;;
  8119. esac
  8120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8121. $as_echo "$ac_try_echo"; } >&5
  8122. (eval "$ac_try") 2>&5
  8123. ac_status=$?
  8124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8125. test $ac_status = 0; } &&
  8126. test -f conftest2.$ac_objext &&
  8127. { { case "(($ac_try" in
  8128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8129. *) ac_try_echo=$ac_try;;
  8130. esac
  8131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8132. $as_echo "$ac_try_echo"; } >&5
  8133. (eval "$ac_try") 2>&5
  8134. ac_status=$?
  8135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8136. test $ac_status = 0; }; then
  8137. ac_cv_prog_f77_c_o=yes
  8138. else
  8139. ac_cv_prog_f77_c_o=no
  8140. fi
  8141. rm -f conftest*
  8142. fi
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_c_o" >&5
  8144. $as_echo "$ac_cv_prog_f77_c_o" >&6; }
  8145. if test $ac_cv_prog_f77_c_o = no; then
  8146. $as_echo "#define F77_NO_MINUS_C_MINUS_O 1" >>confdefs.h
  8147. fi
  8148. ac_ext=c
  8149. ac_cpp='$CPP $CPPFLAGS'
  8150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8153. # If this option is provided, enable the debug on C & C++
  8154. if test "$enable_stop_on_warning" = yes; then
  8155. enable_debug_C=yes
  8156. enable_debug_CXX=yes
  8157. fi
  8158. if test "$enable_debug" = yes; then
  8159. enable_debug_fortran=yes
  8160. enable_debug_C=yes
  8161. enable_debug_CXX=yes
  8162. enable_debug_java=yes
  8163. else
  8164. enable_debug=no
  8165. fi
  8166. if test "$enable_debug_fortran" = yes; then
  8167. FFLAGS="`echo "$FFLAGS"| sed -e 's|-O0-9+|-O0|'`"
  8168. else
  8169. enable_debug_fortran=no
  8170. fi
  8171. if test "$enable_debug_C" = yes; then
  8172. CFLAGS="`echo "$CFLAGS"| sed -e 's|-O0-9+|-O0|'`"
  8173. else
  8174. enable_debug_C=no
  8175. fi
  8176. if test "$enable_debug_CXX" = yes; then
  8177. CXXFLAGS="`echo "$CXXFLAGS"| sed -e 's|-O0-9+|-O0|'`"
  8178. else
  8179. enable_debug_CXX=no
  8180. fi
  8181. if test "$enable_debug_java" = yes; then
  8182. LOGGING_LEVEL="ALL"
  8183. else
  8184. LOGGING_LEVEL="INFO"
  8185. fi
  8186. if test "x${prefix}" = "xNONE"; then
  8187. prefix="${ac_default_prefix}"
  8188. fi
  8189. if test "$enable_largefile" = "yes"; then
  8190. CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
  8191. CXXFLAGS="$CXXFLAGS $LARGEFILE_CFLAGS"
  8192. FFLAGS="$FFLAGS $LARGEFILE_CFLAGS"
  8193. fi
  8194. ###############################
  8195. ## get the version
  8196. ###############################
  8197. SCIVERSION=`cat $SCI_SRCDIR/Version.incl | sed -e "s/SCIVERSION=//" `
  8198. #############################################
  8199. ## Compilers and options according to machine
  8200. #############################################
  8201. ######################
  8202. ######## Set compilation options for intel C/Fortran compilers
  8203. ######################
  8204. if test "$with_intelcompilers" = yes; then
  8205. CFLAGS=" $CFLAGS -DNARROWPROTO -mp"
  8206. # -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard
  8207. FFLAGS=" $FFLAGS -cm -w90 -w95 -mp"
  8208. case "$host" in
  8209. i*86-*-linux-gnu | *-pc-linux-gnu )
  8210. # -pc64 : double precision
  8211. EXTRA_OPTIONS=" -pc64 -ffnalias -falias"
  8212. ;;
  8213. esac
  8214. if test "$enable_debug_C" = yes; then
  8215. CFLAGS="-g $CFLAGS $EXTRA_OPTIONS"
  8216. else
  8217. CFLAGS="-O -DNDEBUG $CFLAGS "
  8218. fi
  8219. if test "$enable_debug_fortran" = yes; then
  8220. FFLAGS="-g $FFLAGS $EXTRA_OPTIONS"
  8221. else
  8222. FFLAGS="-O $FFLAGS "
  8223. fi
  8224. # TODO : voir si obligatoire vu que c'est en partie le boulot de AC_PROG_C
  8225. fi
  8226. ########### FORTRAN ######################
  8227. ######################
  8228. ######## With gfortran ...
  8229. ######################
  8230. if test -n "$F77"; then
  8231. case "$F77" in
  8232. gfortran*)
  8233. ## With GNU Compiler enable the code coverage
  8234. if test "$enable_code_coverage" = yes; then
  8235. FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage"
  8236. fi
  8237. ;;
  8238. g77*)
  8239. as_fn_error $? "g77 is no longer supported. Please consider switching to gfortran" "$LINENO" 5
  8240. ;;
  8241. esac
  8242. if test "$enable_debug_fortran" = yes; then
  8243. ac_ext=f
  8244. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  8245. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8246. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  8247. for flag in -g -Wall -Wsurprising; do
  8248. case " ${FFLAGS} " in
  8249. *\ ${flag}\ *)
  8250. # flag is already present
  8251. ;;
  8252. *)
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Fortran compiler accepts ${flag}" >&5
  8254. $as_echo_n "checking if the Fortran compiler accepts ${flag}... " >&6; }
  8255. ac_save_FFLAGS="$FFLAGS"
  8256. FFLAGS="$FFLAGS ${flag}"
  8257. cat > conftest.$ac_ext <<_ACEOF
  8258. program main
  8259. end
  8260. _ACEOF
  8261. if ac_fn_f77_try_compile "$LINENO"; then :
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8263. $as_echo "yes" >&6; }
  8264. else
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8266. $as_echo "no" >&6; }
  8267. FFLAGS="$ac_save_FFLAGS"
  8268. fi
  8269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8270. ;;
  8271. esac
  8272. done
  8273. ac_ext=c
  8274. ac_cpp='$CPP $CPPFLAGS'
  8275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8278. else
  8279. FFLAGS="$FFLAGS -DNDEBUG"
  8280. fi
  8281. case "$host" in
  8282. x86_64-*-linux*)
  8283. FFLAGS="$FFLAGS -m64 -fPIC"
  8284. ;;
  8285. # Dec Alpha OSF 4
  8286. alpha*-dec-osf4.*)
  8287. FFLAGS="$FFLAGS -fpe3"
  8288. ;;
  8289. alpha*-dec-osf*)
  8290. FFLAGS="$FFLAGS -fpe3 -switch nosqrt_recip"
  8291. ;;
  8292. rs6000-*-*)
  8293. FFLAGS="$FFLAGS -qcharlen=4096"
  8294. ;;
  8295. mips-*-ultrix*)
  8296. FFLAGS="-O0 -fpe1"
  8297. ;;
  8298. *-*-hpux9.*)
  8299. FFLAGS="$FFLAGS +Obb1200 +E4 -Dhpux"
  8300. ;;
  8301. *-*-hpux10.*)
  8302. if test "$enable_debug_fortran" = yes; then
  8303. FFLAGS="+E4 +Z +DAportable -Dhpux"
  8304. else
  8305. FFLAGS="+O2 +E4 +Z +DAportable -Dhpux"
  8306. fi
  8307. # F77_LDFLAGS="-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl"
  8308. ;;
  8309. *-*-hpux11.*)
  8310. if test "$enable_debug_fortran" = yes; then
  8311. FFLAGS=" +Z +DAportable -Dhpux"
  8312. else
  8313. FFLAGS="+O2 +Z +DAportable -Dhpux"
  8314. fi
  8315. FLIBS="-ldld -lnsl -lU77 -lm"
  8316. ;;
  8317. esac
  8318. fi
  8319. #########################
  8320. # setting parameters according to system types
  8321. #########################
  8322. case "$host" in
  8323. *-*-hpux9.*|*-*-hpux10.*|*-*-hpux11.*)
  8324. HPUX=1
  8325. ;;
  8326. sparc-*)
  8327. SPARC=1
  8328. ;;
  8329. mips-sgi-irix*)
  8330. MIPS_SGI_IRIX=1
  8331. ;;
  8332. *-*-solaris*)
  8333. SOLARIS=1
  8334. ;;
  8335. *darwin*)
  8336. MACOSX=1
  8337. ;;
  8338. esac
  8339. if test -n "$MACOSX"; then
  8340. IS_MACOSX_TRUE=
  8341. IS_MACOSX_FALSE='#'
  8342. else
  8343. IS_MACOSX_TRUE='#'
  8344. IS_MACOSX_FALSE=
  8345. fi
  8346. if test -n "$HPUX"; then
  8347. IS_HPUX_TRUE=
  8348. IS_HPUX_FALSE='#'
  8349. else
  8350. IS_HPUX_TRUE='#'
  8351. IS_HPUX_FALSE=
  8352. fi
  8353. if test -n "$SPARC"; then
  8354. IS_SPARC_TRUE=
  8355. IS_SPARC_FALSE='#'
  8356. else
  8357. IS_SPARC_TRUE='#'
  8358. IS_SPARC_FALSE=
  8359. fi
  8360. if test -n "$SOLARIS"; then
  8361. IS_SOLARIS_TRUE=
  8362. IS_SOLARIS_FALSE='#'
  8363. else
  8364. IS_SOLARIS_TRUE='#'
  8365. IS_SOLARIS_FALSE=
  8366. fi
  8367. if test -n "$MIPS_SGI_IRIX"; then
  8368. IS_MIPS_SGI_IRIX_TRUE=
  8369. IS_MIPS_SGI_IRIX_FALSE='#'
  8370. else
  8371. IS_MIPS_SGI_IRIX_TRUE='#'
  8372. IS_MIPS_SGI_IRIX_FALSE=
  8373. fi
  8374. ############
  8375. ## C++
  8376. ############
  8377. if test -z "$CXX"; then
  8378. as_fn_error $? "No C++ compiler found. Cannot compile scilab without a C++ compiler" "$LINENO" 5
  8379. fi
  8380. case "$CXX" in
  8381. g++-* | g++ | ccache*g++ | ccache*g++-* )
  8382. ## With GNU C++ Compiler
  8383. # enable the code coverage
  8384. if test "$enable_code_coverage" = yes; then
  8385. CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
  8386. fi
  8387. if test "$enable_debug_CXX" = yes; then
  8388. CXXFLAGS="$CXXFLAGS -pipe -Wshadow -Wpointer-arith -Wcast-align -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -Wno-strict-aliasing -Wextra -Wall -g3 -Wunsafe-loop-optimizations"
  8389. case "$host" in
  8390. *-linux-gnu )
  8391. # Only doing that under Linux
  8392. CXXFLAGS="$CXXFLAGS -fdiagnostics-show-option -Werror=format-security"
  8393. ;;
  8394. esac
  8395. else
  8396. CXXFLAGS="$CXXFLAGS -DNDEBUG"
  8397. fi
  8398. CXXFLAGS="$CXXFLAGS -fno-stack-protector" # bug 3131
  8399. ;;
  8400. clang-* | clang)
  8401. # clang expect an explict declaration
  8402. LDFLAGS="$LDFLAGS -lstdc++"
  8403. ;;
  8404. esac
  8405. #### 64 bits detection
  8406. IS_64_BITS_CPU=false
  8407. case "$host" in
  8408. x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd*)
  8409. IS_64_BITS_CPU=true
  8410. ;;
  8411. esac
  8412. ##########"
  8413. case "$CC" in
  8414. gcc-* | gcc | ccache*gcc | ccache*gcc-* )
  8415. ## With GNU Compiler
  8416. # enable the code coverage
  8417. if test "$enable_code_coverage" = yes; then
  8418. CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
  8419. fi
  8420. if test "$enable_debug_C" = yes; then
  8421. CFLAGS="$CFLAGS -pipe -Wformat -Wshadow -Wfloat-equal -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-noreturn -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wwrite-strings -Winline -Wredundant-decls -Wall -Wchar-subscripts -Wextra -Wuninitialized -Wno-format-y2k -Wmissing-format-attribute -Wno-missing-field-initializers -Wno-strict-aliasing -Wold-style-definition -g3 -Wunsafe-loop-optimizations"
  8422. # used to be -O
  8423. # -D_FORTIFY_SOURCE=2
  8424. case "$host" in
  8425. *-linux-gnu )
  8426. # Only doing that under Linux
  8427. if test "$enable_debugLinker" = yes; then
  8428. LDFLAGS="$LDFLAGS -Wl,--warn-common,-x"
  8429. fi
  8430. CFLAGS="$CFLAGS -fdiagnostics-show-option -Werror=format-security"
  8431. ;;
  8432. esac
  8433. else
  8434. CFLAGS="$CFLAGS -DNDEBUG"
  8435. fi
  8436. CFLAGS="$CFLAGS -fno-stack-protector" # bug 3131
  8437. # Explictly disable the as needed. It was disable by default but Ubuntu
  8438. # activated it by default since release 11.04. See bug #8961.
  8439. # Once all cyclic dependencies have been dropped, this line could be removed.
  8440. # Check if linker supports --as-needed and --no-as-needed options
  8441. if $LD --help 2>/dev/null | grep no-as-needed > /dev/null; then
  8442. LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
  8443. fi
  8444. case "$host" in
  8445. x86_64-*-linux-gnu | x86_64-linux-gnu)
  8446. CFLAGS="$CFLAGS -DNARROWPROTO -m64"
  8447. ;;
  8448. i*86-*-linux-gnu | *-pc-linux-gnu | i*86-*-linux )
  8449. CFLAGS="$CFLAGS -DNARROWPROTO"
  8450. ;;
  8451. ia64-*-linux-gnu )
  8452. CFLAGS="$CFLAGS -DNARROWPROTO"
  8453. ;;
  8454. alpha-*-linux-gnu)
  8455. CFLAGS="$CFLAGS -mieee-with-inexact"
  8456. LDFLAGS="$LDFLAGS -mieee-with-inexact"
  8457. ;;
  8458. powerpc-*-linux-gnu)
  8459. CFLAGS="$CFLAGS -D_GNU_SOURCE"
  8460. ;;
  8461. *-*-solaris*)
  8462. CFLAGS="$CFLAGS -DSVR4 -DSYSV -Dsolaris"
  8463. ;;
  8464. *-*-freebsd*)
  8465. CFLAGS="$CFLAGS -Dfreebsd"
  8466. LDFLAGS="$LDFLAGS -lm"
  8467. ;;
  8468. alpha-*-netbsd*)
  8469. CFLAGS="$CFLAGS -Dnetbsd -mieee"
  8470. FFLAGS="$FFLAGS -Dnetbsd -mieee"
  8471. ;;
  8472. *-*-netbsd*)
  8473. CFLAGS="$CFLAGS -Dnetbsd"
  8474. ;;
  8475. *-*-darwin*)
  8476. CFLAGS="$CFLAGS -no_compact_linkedit -mmacosx-version-min=10.5"
  8477. CXXFLAGS="$CXXFLAGS -no_compact_linkedit -mmacosx-version-min=10.5"
  8478. FFLAGS="$FFLAGS -mmacosx-version-min=10.5"
  8479. case "$F77" in
  8480. gfortran-*|gfortran)
  8481. # Extract from gfortran -v the version it has been built for
  8482. MAC_DETECTED_ARCH="`$F77 -v 2>&1|grep "Target:"|sed -e "s/Target: \([a-z0-9A-Z_]*\).*/\1/g"`"
  8483. ;;
  8484. *)
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gfortran not used. Could not detect the architecture. Switch to the default case: x86_64" >&5
  8486. $as_echo "$as_me: WARNING: gfortran not used. Could not detect the architecture. Switch to the default case: x86_64" >&2;}
  8487. MAC_DETECTED_ARCH="x86_64"
  8488. ;;
  8489. esac
  8490. CC="$CC -arch $MAC_DETECTED_ARCH"
  8491. CXX="$CXX -arch $MAC_DETECTED_ARCH"
  8492. LDFLAGS="-L$FINK_PREFIX/lib/ $LDFLAGS"
  8493. CFLAGS=" $CFLAGS -I$FINK_PREFIX/include "
  8494. CXXFLAGS=" $CXXFLAGS -I$FINK_PREFIX/include "
  8495. ;;
  8496. esac
  8497. ;; # end of the gcc case on the $CC
  8498. *)
  8499. ## CC compiler (not GCC)
  8500. if test "$enable_debug_C" != yes; then
  8501. CFLAGS="$CFLAGS -DNDEBUG"
  8502. fi
  8503. case "$host" in
  8504. # Dec Alpha OSF 4
  8505. alpha*-dec-osf4.*)
  8506. CFLAGS="$CFLAGS -std -ieee_with_inexact"
  8507. LDFLAGS="$LDFLAGS -ieee_with_inexact"
  8508. ;;
  8509. alpha*-dec-osf*)
  8510. CFLAGS="$CFLAGS -ieee_with_inexact"
  8511. LDFLAGS="$LDFLAGS -ieee_with_inexact"
  8512. ;;
  8513. rs6000-*-*) # IBM AIX RS 6000 (NO LONGER SUPPORTED)
  8514. CFLAGS="-Daix -DSYSV"
  8515. ;;
  8516. mips-sgi-irix*) # SGI
  8517. CFLAGS="$CFLAGS -DSYSV -DSVR4"
  8518. ;;
  8519. *-*-hpux9.*)
  8520. CFLAGS="$CFLAGS -DSYSV -Dhpux"
  8521. ;;
  8522. *-*-hpux10.*) # HP 10
  8523. if test "$enable_debug_C" = yes; then
  8524. CFLAGS="$CFLAGS -DSYSV -Dhpux"
  8525. else
  8526. CFLAGS="$CFLAGS -DSYSV -Dhpux +Z +DAportable"
  8527. fi
  8528. ;;
  8529. *-*-hpux11.*) # HP 11
  8530. CFLAGS="$CFLAGS -DSYSV -Dhpux -Dhppa +Z +DAportable"
  8531. ;;
  8532. *-*-solaris*) # SUN SOLARIS
  8533. CFLAGS="$CFLAGS -DSVR4 -DSYSV -Dsolaris -I/usr/local/include/"
  8534. LDFLAGS="$LDFLAGS -L/usr/local/lib/"
  8535. ;;
  8536. esac
  8537. ;; # end of not a gcc compiler
  8538. esac
  8539. # enable the code coverage
  8540. if test "$enable_code_coverage" = yes; then
  8541. # Extract the first word of "lcov", so it can be a program name with args.
  8542. set dummy lcov; ac_word=$2
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8544. $as_echo_n "checking for $ac_word... " >&6; }
  8545. if ${ac_cv_path_LCOV+:} false; then :
  8546. $as_echo_n "(cached) " >&6
  8547. else
  8548. case $LCOV in
  8549. [\\/]* | ?:[\\/]*)
  8550. ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
  8551. ;;
  8552. *)
  8553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8554. for as_dir in $PATH
  8555. do
  8556. IFS=$as_save_IFS
  8557. test -z "$as_dir" && as_dir=.
  8558. for ac_exec_ext in '' $ac_executable_extensions; do
  8559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8560. ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
  8561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8562. break 2
  8563. fi
  8564. done
  8565. done
  8566. IFS=$as_save_IFS
  8567. ;;
  8568. esac
  8569. fi
  8570. LCOV=$ac_cv_path_LCOV
  8571. if test -n "$LCOV"; then
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  8573. $as_echo "$LCOV" >&6; }
  8574. else
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8576. $as_echo "no" >&6; }
  8577. fi
  8578. if test -z "$LCOV" ; then
  8579. as_fn_error $? "Cannot find lcov. Please install it (package lcov under Debian) or remove the option --enable-code-coverage" "$LINENO" 5
  8580. fi
  8581. # Extract the first word of "genhtml", so it can be a program name with args.
  8582. set dummy genhtml; ac_word=$2
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8584. $as_echo_n "checking for $ac_word... " >&6; }
  8585. if ${ac_cv_path_GENHTML+:} false; then :
  8586. $as_echo_n "(cached) " >&6
  8587. else
  8588. case $GENHTML in
  8589. [\\/]* | ?:[\\/]*)
  8590. ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
  8591. ;;
  8592. *)
  8593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8594. for as_dir in $PATH
  8595. do
  8596. IFS=$as_save_IFS
  8597. test -z "$as_dir" && as_dir=.
  8598. for ac_exec_ext in '' $ac_executable_extensions; do
  8599. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8600. ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
  8601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8602. break 2
  8603. fi
  8604. done
  8605. done
  8606. IFS=$as_save_IFS
  8607. ;;
  8608. esac
  8609. fi
  8610. GENHTML=$ac_cv_path_GENHTML
  8611. if test -n "$GENHTML"; then
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  8613. $as_echo "$GENHTML" >&6; }
  8614. else
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8616. $as_echo "no" >&6; }
  8617. fi
  8618. if test -z "$GENHTML" ; then
  8619. as_fn_error $? "Cannot find genhtml. Please install it (package lcov under Debian) or remove the option --enable-code-coverage" "$LINENO" 5
  8620. fi
  8621. LDFLAGS="$LDFLAGS -coverage"
  8622. fi
  8623. if test "$enable_code_coverage" = yes; then
  8624. CODE_COVERAGE_TRUE=
  8625. CODE_COVERAGE_FALSE='#'
  8626. else
  8627. CODE_COVERAGE_TRUE='#'
  8628. CODE_COVERAGE_FALSE=
  8629. fi
  8630. # flag for possible compilations in configure
  8631. CFLAGS="$CFLAGS "'-I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/'
  8632. CXXFLAGS="$CXXFLAGS "'-I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/'
  8633. FFLAGS="$FFLAGS "'-I$(top_srcdir)/modules/core/includes/'
  8634. if test $IS_64_BITS_CPU = true -o "$MACOSX" = "1"; then
  8635. if test $f90compatible = false; then
  8636. as_fn_error $? "64 bits support needs a fortran 90 compiler (try --with-gfortran)." "$LINENO" 5
  8637. fi
  8638. $as_echo "#define USE_DYNAMIC_STACK /**/" >>confdefs.h
  8639. fi
  8640. if test $IS_64_BITS_CPU = true; then
  8641. IS_64_BITS_CPU_TRUE=
  8642. IS_64_BITS_CPU_FALSE='#'
  8643. else
  8644. IS_64_BITS_CPU_TRUE='#'
  8645. IS_64_BITS_CPU_FALSE=
  8646. fi
  8647. if test $IS_64_BITS_CPU = true -o "$MACOSX" = "1"; then
  8648. USE_DYNAMIC_STACK_TRUE=
  8649. USE_DYNAMIC_STACK_FALSE='#'
  8650. else
  8651. USE_DYNAMIC_STACK_TRUE='#'
  8652. USE_DYNAMIC_STACK_FALSE=
  8653. fi
  8654. ################
  8655. ## SSE
  8656. ## By default, for x86 CPU, enable the SSE.
  8657. ## Note that it is already the case with 64 bits CPU
  8658. ## (these extensions are enabled by default by gcc)
  8659. ################
  8660. case "$host" in
  8661. i*86-linux-gnu|i*86-*-linux-gnu)
  8662. CFLAGS="$CFLAGS -msse"
  8663. FFLAGS="$FFLAGS -msse"
  8664. CPPFLAGS="$CPPFLAGS -msse"
  8665. ;;
  8666. esac
  8667. #######################
  8668. ## test for underscores (name mangling issues between C and fortran)
  8669. #######################
  8670. for ac_prog in nm
  8671. do
  8672. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8673. set dummy $ac_prog; ac_word=$2
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8675. $as_echo_n "checking for $ac_word... " >&6; }
  8676. if ${ac_cv_prog_NM+:} false; then :
  8677. $as_echo_n "(cached) " >&6
  8678. else
  8679. if test -n "$NM"; then
  8680. ac_cv_prog_NM="$NM" # Let the user override the test.
  8681. else
  8682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8683. for as_dir in $PATH
  8684. do
  8685. IFS=$as_save_IFS
  8686. test -z "$as_dir" && as_dir=.
  8687. for ac_exec_ext in '' $ac_executable_extensions; do
  8688. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8689. ac_cv_prog_NM="$ac_prog"
  8690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8691. break 2
  8692. fi
  8693. done
  8694. done
  8695. IFS=$as_save_IFS
  8696. fi
  8697. fi
  8698. NM=$ac_cv_prog_NM
  8699. if test -n "$NM"; then
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  8701. $as_echo "$NM" >&6; }
  8702. else
  8703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8704. $as_echo "no" >&6; }
  8705. fi
  8706. test -n "$NM" && break
  8707. done
  8708. test -n "$NM" || NM="no"
  8709. if test "x$NM" = "xno"; then
  8710. as_fn_error $? "Unable to find nm in the path. nm is used to list all the symbol from a lib" "$LINENO" 5
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for leading underscores with Fortran (name-mangling scheme)" >&5
  8713. $as_echo_n "checking for leading underscores with Fortran (name-mangling scheme)... " >&6; }
  8714. cat << EOF > pipof.f
  8715. subroutine pipof
  8716. end
  8717. EOF
  8718. eval "$F77 -c pipof.f > /dev/null 2>&1"
  8719. FC_LEADING_UNDERSCORE=no
  8720. FC_TRAILING_UNDERSCORE=no
  8721. output=`$NM $NMOPT pipof.o|grep _pipof 2>&1`
  8722. if test ! -z "$output"; then
  8723. FC_LEADING_UNDERSCORE=yes
  8724. FC_TRAILING_UNDERSCORE=no
  8725. fi
  8726. output=`$NM $NMOPT pipof.o|grep pipof_ 2>&1`
  8727. if test ! -z "$output"; then
  8728. FC_LEADING_UNDERSCORE=no
  8729. FC_TRAILING_UNDERSCORE=yes
  8730. fi
  8731. output=`$NM $NMOPT pipof.o|grep _pipof_ 2>&1`
  8732. if test ! -z "$output"; then
  8733. FC_LEADING_UNDERSCORE=yes
  8734. FC_TRAILING_UNDERSCORE=yes
  8735. fi
  8736. if test "$FC_LEADING_UNDERSCORE" = yes; then
  8737. $as_echo "#define WLU /**/" >>confdefs.h
  8738. fi
  8739. if test "$FC_TRAILING_UNDERSCORE" = yes; then
  8740. $as_echo "#define WTU /**/" >>confdefs.h
  8741. fi
  8742. rm -f pipof.f pipof.o
  8743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_LEADING_UNDERSCORE" >&5
  8744. $as_echo "$FC_LEADING_UNDERSCORE" >&6; }
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trailing underscores with Fortran (name-mangling scheme)" >&5
  8746. $as_echo_n "checking for trailing underscores with Fortran (name-mangling scheme)... " >&6; }
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_TRAILING_UNDERSCORE" >&5
  8748. $as_echo "$FC_TRAILING_UNDERSCORE" >&6; }
  8749. #####################
  8750. ## test for sharpsign
  8751. #####################
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking use of the sharpsign in CPP" >&5
  8753. $as_echo_n "checking use of the sharpsign in CPP... " >&6; }
  8754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8755. /* end confdefs.h. */
  8756. #define C2F(name) name##_
  8757. int
  8758. main ()
  8759. {
  8760. C2F(toto)()
  8761. ;
  8762. return 0;
  8763. }
  8764. _ACEOF
  8765. if ac_fn_c_try_compile "$LINENO"; then :
  8766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8767. $as_echo "yes" >&6; }
  8768. $as_echo "#define CNAME(name1,name2) name1##name2" >>confdefs.h
  8769. USE_SHARP_SIGN=yes
  8770. else
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8772. $as_echo "no" >&6; }
  8773. $as_echo "#define CNAME(name1,name2) name1/**/name2" >>confdefs.h
  8774. USE_SHARP_SIGN=no
  8775. fi
  8776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8777. ## Define C2F and F2C entry point conversion ##
  8778. if test "$FC_TRAILING_UNDERSCORE" = yes; then
  8779. if test "$USE_SHARP_SIGN" = yes; then
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Define C2F with Trailing Underscore and Sharp Sign" >&5
  8781. $as_echo "Define C2F with Trailing Underscore and Sharp Sign" >&6; }
  8782. $as_echo "#define C2F(name) name##_" >>confdefs.h
  8783. $as_echo "#define F2C(name) name##_" >>confdefs.h
  8784. else
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Define C2F with Trailing Underscore and without Sharp Sign" >&5
  8786. $as_echo "Define C2F with Trailing Underscore and without Sharp Sign" >&6; }
  8787. $as_echo "#define C2F(name) name/**/_" >>confdefs.h
  8788. $as_echo "#define F2C(name) name/**/_" >>confdefs.h
  8789. fi
  8790. else
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Define C2F without Trailing Underscore" >&5
  8792. $as_echo "Define C2F without Trailing Underscore" >&6; }
  8793. $as_echo "#define C2F(name) name" >>confdefs.h
  8794. $as_echo "#define F2C(name) name" >>confdefs.h
  8795. fi
  8796. #################
  8797. ## HDF5
  8798. #################
  8799. # Check whether --with-hdf5 was given.
  8800. if test "${with_hdf5+set}" = set; then :
  8801. withval=$with_hdf5;
  8802. fi
  8803. HDF5_ENABLE=no
  8804. if test "$with_hdf5" != no; then
  8805. # Check whether --with-hdf5_include was given.
  8806. if test "${with_hdf5_include+set}" = set; then :
  8807. withval=$with_hdf5_include; with_hdf5_include=$withval
  8808. else
  8809. with_hdf5_include='yes'
  8810. fi
  8811. # Check whether --with-hdf5_library was given.
  8812. if test "${with_hdf5_library+set}" = set; then :
  8813. withval=$with_hdf5_library; with_hdf5_library=$withval
  8814. else
  8815. with_hdf5_library='yes'
  8816. fi
  8817. if test "x$with_hdf5_include" != "xyes"; then
  8818. save_CFLAGS="$CFLAGS"
  8819. CFLAGS="-I$with_hdf5_include"
  8820. ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
  8821. if test "x$ac_cv_header_hdf5_h" = xyes; then :
  8822. HDF5_CFLAGS="$CFLAGS"
  8823. else
  8824. as_fn_error $? "Cannot find headers (hdf5.h) of the library HDF5 in $with_hdf5_include. Please install the dev package" "$LINENO" 5
  8825. fi
  8826. CFLAGS="$save_CFLAGS"
  8827. else
  8828. HDF5_CFLAGS=""
  8829. ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
  8830. if test "x$ac_cv_header_hdf5_h" = xyes; then :
  8831. HDF5_CFLAGS=""
  8832. else
  8833. as_fn_error $? "Cannot find headers (hdf5.h) of the library HDF5. Please install the dev package" "$LINENO" 5
  8834. fi
  8835. fi
  8836. save_LIBS="$LIBS"
  8837. # --with-hdf5-library set then check in this dir
  8838. if test "x$with_hdf5_library" != "xyes"; then
  8839. HDF5_LIBS="-L$with_hdf5_library -lhdf5"
  8840. LIBS="$LIBS $HDF5_LIBS"
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
  8842. $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
  8843. if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
  8844. $as_echo_n "(cached) " >&6
  8845. else
  8846. ac_check_lib_save_LIBS=$LIBS
  8847. LIBS="-lhdf5 $LIBS"
  8848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8849. /* end confdefs.h. */
  8850. /* Override any GCC internal prototype to avoid an error.
  8851. Use char because int might match the return type of a GCC
  8852. builtin and then its argument prototype would still apply. */
  8853. #ifdef __cplusplus
  8854. extern "C"
  8855. #endif
  8856. char H5Fopen ();
  8857. int
  8858. main ()
  8859. {
  8860. return H5Fopen ();
  8861. ;
  8862. return 0;
  8863. }
  8864. _ACEOF
  8865. if ac_fn_c_try_link "$LINENO"; then :
  8866. ac_cv_lib_hdf5_H5Fopen=yes
  8867. else
  8868. ac_cv_lib_hdf5_H5Fopen=no
  8869. fi
  8870. rm -f core conftest.err conftest.$ac_objext \
  8871. conftest$ac_exeext conftest.$ac_ext
  8872. LIBS=$ac_check_lib_save_LIBS
  8873. fi
  8874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
  8875. $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
  8876. if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
  8877. cat >>confdefs.h <<_ACEOF
  8878. #define HAVE_LIBHDF5 1
  8879. _ACEOF
  8880. LIBS="-lhdf5 $LIBS"
  8881. else
  8882. as_fn_error $? "libhdf5 : library missing. (Cannot find symbol H5Fopen) in $with_hdf5_library. Check if libhdf5 is installed and if the version is correct" "$LINENO" 5
  8883. fi
  8884. else
  8885. HDF5_LIBS="-lhdf5"
  8886. LIBS="$LIBS $HDF5_LIBS"
  8887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
  8888. $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
  8889. if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
  8890. $as_echo_n "(cached) " >&6
  8891. else
  8892. ac_check_lib_save_LIBS=$LIBS
  8893. LIBS="-lhdf5 $LIBS"
  8894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8895. /* end confdefs.h. */
  8896. /* Override any GCC internal prototype to avoid an error.
  8897. Use char because int might match the return type of a GCC
  8898. builtin and then its argument prototype would still apply. */
  8899. #ifdef __cplusplus
  8900. extern "C"
  8901. #endif
  8902. char H5Fopen ();
  8903. int
  8904. main ()
  8905. {
  8906. return H5Fopen ();
  8907. ;
  8908. return 0;
  8909. }
  8910. _ACEOF
  8911. if ac_fn_c_try_link "$LINENO"; then :
  8912. ac_cv_lib_hdf5_H5Fopen=yes
  8913. else
  8914. ac_cv_lib_hdf5_H5Fopen=no
  8915. fi
  8916. rm -f core conftest.err conftest.$ac_objext \
  8917. conftest$ac_exeext conftest.$ac_ext
  8918. LIBS=$ac_check_lib_save_LIBS
  8919. fi
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
  8921. $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
  8922. if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
  8923. cat >>confdefs.h <<_ACEOF
  8924. #define HAVE_LIBHDF5 1
  8925. _ACEOF
  8926. LIBS="-lhdf5 $LIBS"
  8927. else
  8928. as_fn_error $? "libhdf5 : library missing. (Cannot find symbol H5Fopen). Check if libhdf5 is installed and if the version is correct" "$LINENO" 5
  8929. fi
  8930. fi
  8931. LIBS="$save_LIBS"
  8932. $as_echo "#define WITH_HDF5 /**/" >>confdefs.h
  8933. # Gets compilation and library flags
  8934. # TODO: check if the JNI JHDF5 library are available
  8935. HDF5_ENABLE=yes
  8936. fi
  8937. if test "$with_hdf5" != no; then
  8938. HDF5_TRUE=
  8939. HDF5_FALSE='#'
  8940. else
  8941. HDF5_TRUE='#'
  8942. HDF5_FALSE=
  8943. fi
  8944. #################
  8945. ## XCOS
  8946. #################
  8947. # Check whether --with-xcos was given.
  8948. if test "${with_xcos+set}" = set; then :
  8949. withval=$with_xcos;
  8950. fi
  8951. # Check whether --with-modelica was given.
  8952. if test "${with_modelica+set}" = set; then :
  8953. withval=$with_modelica;
  8954. fi
  8955. if test "$with_gui" = no; then
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GUI is disabled. Disabling then xcos" >&5
  8957. $as_echo "$as_me: WARNING: GUI is disabled. Disabling then xcos" >&2;}
  8958. with_xcos=no
  8959. fi
  8960. XCOS_ENABLE=no
  8961. if test "$with_xcos" != no -a "$with_gui" != no; then
  8962. $as_echo "#define WITH_XCOS /**/" >>confdefs.h
  8963. save_LIBS="$LIBS"
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  8965. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  8966. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  8967. $as_echo_n "(cached) " >&6
  8968. else
  8969. ac_check_lib_save_LIBS=$LIBS
  8970. LIBS="-lrt $LIBS"
  8971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8972. /* end confdefs.h. */
  8973. /* Override any GCC internal prototype to avoid an error.
  8974. Use char because int might match the return type of a GCC
  8975. builtin and then its argument prototype would still apply. */
  8976. #ifdef __cplusplus
  8977. extern "C"
  8978. #endif
  8979. char clock_gettime ();
  8980. int
  8981. main ()
  8982. {
  8983. return clock_gettime ();
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. if ac_fn_c_try_link "$LINENO"; then :
  8989. ac_cv_lib_rt_clock_gettime=yes
  8990. else
  8991. ac_cv_lib_rt_clock_gettime=no
  8992. fi
  8993. rm -f core conftest.err conftest.$ac_objext \
  8994. conftest$ac_exeext conftest.$ac_ext
  8995. LIBS=$ac_check_lib_save_LIBS
  8996. fi
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  8998. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  8999. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  9000. RT_LIB="-lrt";
  9001. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  9002. else
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt: library missing (Cannot find symbol clock_gettime). Check if librt is installed (it is usually provided by the libc) and if the version is correct" >&5
  9004. $as_echo "$as_me: WARNING: librt: library missing (Cannot find symbol clock_gettime). Check if librt is installed (it is usually provided by the libc) and if the version is correct" >&2;}
  9005. fi
  9006. LIBS="$save_LIBS"
  9007. #################
  9008. ## ocaml which only called when using Xcos
  9009. #################
  9010. if test "$with_modelica" != no; then
  9011. # checking for ocamlc
  9012. OCAMLC=
  9013. OCAMLOPT=
  9014. OCAMLDEP=
  9015. # Extract the first word of "ocamlc", so it can be a program name with args.
  9016. set dummy ocamlc; ac_word=$2
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9018. $as_echo_n "checking for $ac_word... " >&6; }
  9019. if ${ac_cv_prog_OCAMLC+:} false; then :
  9020. $as_echo_n "(cached) " >&6
  9021. else
  9022. if test -n "$OCAMLC"; then
  9023. ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
  9024. else
  9025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9026. for as_dir in $PATH
  9027. do
  9028. IFS=$as_save_IFS
  9029. test -z "$as_dir" && as_dir=.
  9030. for ac_exec_ext in '' $ac_executable_extensions; do
  9031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9032. ac_cv_prog_OCAMLC="ocamlc"
  9033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9034. break 2
  9035. fi
  9036. done
  9037. done
  9038. IFS=$as_save_IFS
  9039. test -z "$ac_cv_prog_OCAMLC" && ac_cv_prog_OCAMLC="no"
  9040. fi
  9041. fi
  9042. OCAMLC=$ac_cv_prog_OCAMLC
  9043. if test -n "$OCAMLC"; then
  9044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
  9045. $as_echo "$OCAMLC" >&6; }
  9046. else
  9047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9048. $as_echo "no" >&6; }
  9049. fi
  9050. if test "$OCAMLC" = no; then
  9051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlc not found. Mandatory to build the Scicos modelica compiler (Use --without-ocaml to disable the Modelica compiler)." >&5
  9052. $as_echo "$as_me: WARNING: ocamlc not found. Mandatory to build the Scicos modelica compiler (Use --without-ocaml to disable the Modelica compiler)." >&2;}
  9053. fi
  9054. # Extract the first word of "ocamlopt", so it can be a program name with args.
  9055. set dummy ocamlopt; ac_word=$2
  9056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9057. $as_echo_n "checking for $ac_word... " >&6; }
  9058. if ${ac_cv_prog_OCAMLOPT+:} false; then :
  9059. $as_echo_n "(cached) " >&6
  9060. else
  9061. if test -n "$OCAMLOPT"; then
  9062. ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
  9063. else
  9064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9065. for as_dir in $PATH
  9066. do
  9067. IFS=$as_save_IFS
  9068. test -z "$as_dir" && as_dir=.
  9069. for ac_exec_ext in '' $ac_executable_extensions; do
  9070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9071. ac_cv_prog_OCAMLOPT="ocamlopt"
  9072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9073. break 2
  9074. fi
  9075. done
  9076. done
  9077. IFS=$as_save_IFS
  9078. test -z "$ac_cv_prog_OCAMLOPT" && ac_cv_prog_OCAMLOPT="no"
  9079. fi
  9080. fi
  9081. OCAMLOPT=$ac_cv_prog_OCAMLOPT
  9082. if test -n "$OCAMLOPT"; then
  9083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
  9084. $as_echo "$OCAMLOPT" >&6; }
  9085. else
  9086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9087. $as_echo "no" >&6; }
  9088. fi
  9089. if test "$OCAMLOPT" = no; then
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlopt not found. Mandatory to build the Scicos modelica compiler." >&5
  9091. $as_echo "$as_me: WARNING: ocamlopt not found. Mandatory to build the Scicos modelica compiler." >&2;}
  9092. fi
  9093. # Extract the first word of "ocamldep", so it can be a program name with args.
  9094. set dummy ocamldep; ac_word=$2
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9096. $as_echo_n "checking for $ac_word... " >&6; }
  9097. if ${ac_cv_prog_OCAMLDEP+:} false; then :
  9098. $as_echo_n "(cached) " >&6
  9099. else
  9100. if test -n "$OCAMLDEP"; then
  9101. ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
  9102. else
  9103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9104. for as_dir in $PATH
  9105. do
  9106. IFS=$as_save_IFS
  9107. test -z "$as_dir" && as_dir=.
  9108. for ac_exec_ext in '' $ac_executable_extensions; do
  9109. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9110. ac_cv_prog_OCAMLDEP="ocamldep"
  9111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9112. break 2
  9113. fi
  9114. done
  9115. done
  9116. IFS=$as_save_IFS
  9117. test -z "$ac_cv_prog_OCAMLDEP" && ac_cv_prog_OCAMLDEP="no"
  9118. fi
  9119. fi
  9120. OCAMLDEP=$ac_cv_prog_OCAMLDEP
  9121. if test -n "$OCAMLDEP"; then
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
  9123. $as_echo "$OCAMLDEP" >&6; }
  9124. else
  9125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9126. $as_echo "no" >&6; }
  9127. fi
  9128. if test "$OCAMLDEP" = no; then
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamldep not found. Mandatory to build the Scicos modelica compiler." >&5
  9130. $as_echo "$as_me: WARNING: ocamldep not found. Mandatory to build the Scicos modelica compiler." >&2;}
  9131. fi
  9132. # Extract the first word of "ocamlyacc", so it can be a program name with args.
  9133. set dummy ocamlyacc; ac_word=$2
  9134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9135. $as_echo_n "checking for $ac_word... " >&6; }
  9136. if ${ac_cv_prog_OCAMLYACC+:} false; then :
  9137. $as_echo_n "(cached) " >&6
  9138. else
  9139. if test -n "$OCAMLYACC"; then
  9140. ac_cv_prog_OCAMLYACC="$OCAMLYACC" # Let the user override the test.
  9141. else
  9142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9143. for as_dir in $PATH
  9144. do
  9145. IFS=$as_save_IFS
  9146. test -z "$as_dir" && as_dir=.
  9147. for ac_exec_ext in '' $ac_executable_extensions; do
  9148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9149. ac_cv_prog_OCAMLYACC="ocamlyacc"
  9150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9151. break 2
  9152. fi
  9153. done
  9154. done
  9155. IFS=$as_save_IFS
  9156. test -z "$ac_cv_prog_OCAMLYACC" && ac_cv_prog_OCAMLYACC="no"
  9157. fi
  9158. fi
  9159. OCAMLYACC=$ac_cv_prog_OCAMLYACC
  9160. if test -n "$OCAMLYACC"; then
  9161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
  9162. $as_echo "$OCAMLYACC" >&6; }
  9163. else
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9165. $as_echo "no" >&6; }
  9166. fi
  9167. if test "$OCAMLYACC" = no; then
  9168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlyacc not found. Mandatory to build the Scicos modelica compiler." >&5
  9169. $as_echo "$as_me: WARNING: ocamlyacc not found. Mandatory to build the Scicos modelica compiler." >&2;}
  9170. fi
  9171. # Extract the first word of "ocamllex", so it can be a program name with args.
  9172. set dummy ocamllex; ac_word=$2
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9174. $as_echo_n "checking for $ac_word... " >&6; }
  9175. if ${ac_cv_prog_OCAMLLEX+:} false; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. if test -n "$OCAMLLEX"; then
  9179. ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
  9180. else
  9181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9182. for as_dir in $PATH
  9183. do
  9184. IFS=$as_save_IFS
  9185. test -z "$as_dir" && as_dir=.
  9186. for ac_exec_ext in '' $ac_executable_extensions; do
  9187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9188. ac_cv_prog_OCAMLLEX="ocamllex"
  9189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9190. break 2
  9191. fi
  9192. done
  9193. done
  9194. IFS=$as_save_IFS
  9195. test -z "$ac_cv_prog_OCAMLLEX" && ac_cv_prog_OCAMLLEX="no"
  9196. fi
  9197. fi
  9198. OCAMLLEX=$ac_cv_prog_OCAMLLEX
  9199. if test -n "$OCAMLLEX"; then
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
  9201. $as_echo "$OCAMLLEX" >&6; }
  9202. else
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9204. $as_echo "no" >&6; }
  9205. fi
  9206. if test "$OCAMLLEX" = no; then
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamllex not found. Mandatory to build the Scicos modelica compiler." >&5
  9208. $as_echo "$as_me: WARNING: ocamllex not found. Mandatory to build the Scicos modelica compiler." >&2;}
  9209. fi
  9210. $as_echo "#define WITH_OCAML /**/" >>confdefs.h
  9211. fi
  9212. XCOS_ENABLE=yes
  9213. fi
  9214. if test "$with_modelica" != no -a "$OCAMLC" != no -a "$OCAMLOPT" != no; then
  9215. OCAML_TRUE=
  9216. OCAML_FALSE='#'
  9217. else
  9218. OCAML_TRUE='#'
  9219. OCAML_FALSE=
  9220. fi
  9221. if test "$XCOS_ENABLE" != no; then
  9222. XCOS_TRUE=
  9223. XCOS_FALSE='#'
  9224. else
  9225. XCOS_TRUE='#'
  9226. XCOS_FALSE=
  9227. fi
  9228. ###########################
  9229. ## test for JAVA compiler
  9230. ###########################
  9231. if test "$with_javasci" != no -o "$with_gui" != no -o "$enable_build_help" != no; then
  9232. # Need MacosX Version to specify some path.
  9233. case "$host_os" in
  9234. *Darwin* | *darwin*)
  9235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MacOSX Version" >&5
  9236. $as_echo_n "checking MacOSX Version... " >&6; }
  9237. if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.7" > /dev/null; then
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacOSX 10.7 - Lion." >&5
  9239. $as_echo "MacOSX 10.7 - Lion." >&6; }
  9240. macosx_version="10.7"
  9241. else
  9242. if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.6" > /dev/null; then
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacOSX 10.6 - Snow Leopard." >&5
  9244. $as_echo "MacOSX 10.6 - Snow Leopard." >&6; }
  9245. macosx_version="10.6"
  9246. else
  9247. if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.5" > /dev/null; then
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacOSX 10.5 - Leopard." >&5
  9249. $as_echo "MacOSX 10.5 - Leopard." >&6; }
  9250. macosx_version="10.5"
  9251. else
  9252. as_fn_error $? "MacOSX 10.5,10.6 or 10.7 is needed." "$LINENO" 5
  9253. fi
  9254. fi
  9255. fi
  9256. ;;
  9257. esac
  9258. # See if --with-jdk command line argument is given
  9259. # Try to detect the installed JVM, this could be controlled
  9260. # by the above --with options
  9261. # Check whether --with-jdk was given.
  9262. if test "${with_jdk+set}" = set; then :
  9263. withval=$with_jdk; ok=$withval
  9264. else
  9265. ok=no
  9266. fi
  9267. if test "$ok" = "no" ; then
  9268. NO=op
  9269. elif test "$ok" = "yes" || test ! -d "$ok"; then
  9270. as_fn_error $? "--with-jdk=DIR option, must pass a valid DIR" "$LINENO" 5
  9271. elif test "$ok" != "no" ; then
  9272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Use JDK path specified ($ok)" >&5
  9273. $as_echo "Use JDK path specified ($ok)" >&6; }
  9274. ac_java_jvm_dir=$ok
  9275. ac_java_jvm_name=jdk
  9276. fi
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking JAVA_HOME variable" >&5
  9278. $as_echo_n "checking JAVA_HOME variable... " >&6; }
  9279. # check if JAVA_HOME is set. If it is the case, try to use if first
  9280. if test ! -z "$JAVA_HOME" && test "x$ac_java_jvm_dir" = "x"; then
  9281. if test -x $JAVA_HOME/bin/javac${EXEEXT}; then
  9282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAVA_HOME variable found, use it as JVM root directory" >&5
  9283. $as_echo "JAVA_HOME variable found, use it as JVM root directory" >&6; }
  9284. ac_java_jvm_dir=`cd $JAVA_HOME ; pwd`
  9285. JAVAC=$ac_java_jvm_dir/bin/javac${EXEEXT}
  9286. else
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAVA_HOME variable found, but unable to find javac
  9288. Maybe JAVA_HOME is pointing to a JRE (Java Runtime Environment) instead of a JDK (Java Developement Kit) ? )" >&5
  9289. $as_echo "JAVA_HOME variable found, but unable to find javac
  9290. Maybe JAVA_HOME is pointing to a JRE (Java Runtime Environment) instead of a JDK (Java Developement Kit) ? )" >&6; }
  9291. fi
  9292. else
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5
  9294. $as_echo "not defined" >&6; }
  9295. fi
  9296. # Mac OS default path
  9297. if test "x$JAVAC" = "x" && test "x$ac_java_jvm_dir" != "x"; then
  9298. case "$host_os" in
  9299. *darwin* )
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin (Mac OS X) found. Use the standard paths." >&5
  9301. $as_echo "Darwin (Mac OS X) found. Use the standard paths." >&6; }
  9302. # See: http://developer.apple.com/mac/library/qa/qa2001/qa1170.html
  9303. ac_java_jvm_dir=$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)
  9304. JAVAC=$ac_java_jvm_dir/bin/javac
  9305. ;;
  9306. esac
  9307. fi
  9308. # if we do not know the jvm dir, javac will be found on the PATH
  9309. if test "x$JAVAC" = "x" && test "x$ac_java_jvm_dir" != "x"; then
  9310. ac_java_jvm_dir=`cd $ac_java_jvm_dir ; pwd`
  9311. JAVAC=$ac_java_jvm_dir/bin/javac${EXEEXT}
  9312. fi
  9313. # Search for and test the javac compiler
  9314. # Mac OS X
  9315. if test "x$JAVAC" = "x" ; then
  9316. case "$host_os" in
  9317. *darwin* )
  9318. # Don't follow the symlink since Java under MacOS is messy
  9319. # Uses the wrapper providing by Apple to retrieve the path
  9320. # See: http://developer.apple.com/mac/library/qa/qa2001/qa1170.html
  9321. JAVAC=$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)/bin/javac
  9322. DONT_FOLLOW_SYMLINK=yes
  9323. ;;
  9324. esac
  9325. fi
  9326. if test "x$JAVAC" = "x" ; then
  9327. # Extract the first word of "javac", so it can be a program name with args.
  9328. set dummy javac; ac_word=$2
  9329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9330. $as_echo_n "checking for $ac_word... " >&6; }
  9331. if ${ac_cv_path_JAVAC+:} false; then :
  9332. $as_echo_n "(cached) " >&6
  9333. else
  9334. case $JAVAC in
  9335. [\\/]* | ?:[\\/]*)
  9336. ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
  9337. ;;
  9338. *)
  9339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9340. for as_dir in $PATH
  9341. do
  9342. IFS=$as_save_IFS
  9343. test -z "$as_dir" && as_dir=.
  9344. for ac_exec_ext in '' $ac_executable_extensions; do
  9345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9346. ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
  9347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9348. break 2
  9349. fi
  9350. done
  9351. done
  9352. IFS=$as_save_IFS
  9353. ;;
  9354. esac
  9355. fi
  9356. JAVAC=$ac_cv_path_JAVAC
  9357. if test -n "$JAVAC"; then
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
  9359. $as_echo "$JAVAC" >&6; }
  9360. else
  9361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9362. $as_echo "no" >&6; }
  9363. fi
  9364. if test "x$JAVAC" = "x" ; then
  9365. as_fn_error $? "javac not found on PATH ... did you try with --with-jdk=DIR" "$LINENO" 5
  9366. fi
  9367. fi
  9368. if test ! -f "$JAVAC" ; then
  9369. as_fn_error $? "javac '$JAVAC' does not exist.
  9370. Perhaps Java is not installed or you passed a bad dir to a --with option." "$LINENO" 5
  9371. fi
  9372. # Check for installs which uses a symlink. If it is the case, try to resolve JAVA_HOME from it
  9373. if test -h "$JAVAC" -a "x$DONT_FOLLOW_SYMLINK" != "xyes"; then
  9374. _cur="$JAVAC"
  9375. if test ! -z ""javac""; then
  9376. _fileNameWanted="javac"
  9377. else
  9378. _fileNameWanted=$JAVAC
  9379. fi
  9380. while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Symlink for $_cur" >&5
  9382. $as_echo_n "checking Symlink for $_cur... " >&6; }
  9383. _slink=`ls -ld "$_cur" | sed 's/.* -> //'`
  9384. if test "$_fileNameWanted" != "`basename $_slink`"; then
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Filename changed... Keeping the one found before" >&5
  9386. $as_echo "Filename changed... Keeping the one found before" >&6; }
  9387. break
  9388. fi
  9389. case "$_slink" in
  9390. /*)
  9391. _cur="$_slink";;
  9392. # 'X' avoids triggering unwanted echo options.
  9393. *)
  9394. _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
  9395. esac
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5
  9397. $as_echo "$_cur" >&6; }
  9398. done
  9399. SYMLINK_FOLLOWED_TO="$_cur"
  9400. JAVAC=$SYMLINK_FOLLOWED_TO
  9401. TMP=`dirname $SYMLINK_FOLLOWED_TO`
  9402. TMP=`dirname $TMP`
  9403. ac_java_jvm_dir=$TMP
  9404. echo "Java base directory (probably) available here : $ac_java_jvm_dir"
  9405. fi
  9406. # If we were searching for javac, then set ac_java_jvm_dir
  9407. if test "x$ac_java_jvm_dir" = "x"; then
  9408. TMP=`dirname $JAVAC`
  9409. TMP=`dirname $TMP`
  9410. ac_java_jvm_dir=$TMP
  9411. fi
  9412. # Look for a setting for the CLASSPATH, we might need one to run JAVAC
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip or jar files to include on CLASSPATH" >&5
  9414. $as_echo_n "checking for zip or jar files to include on CLASSPATH... " >&6; }
  9415. if test "x$ac_java_jvm_dir" = "x" ; then
  9416. as_fn_error $? "jvm directory not set" "$LINENO" 5
  9417. fi
  9418. # GNU gcj does not need to set the CLASSPATH.
  9419. # Assume that JDK 1.4 and newer systems will
  9420. # not need to explicitly set the CLASSPATH.
  9421. # Append CLASSPATH if env var is set. Avoid append
  9422. # under msys because CLASSPATH is in Win32 format
  9423. # and we can't combine it with a msys path.
  9424. if test "x$CLASSPATH" != "x" && test "$ac_cv_tcl_win32" != "yes" ; then
  9425. echo Adding user supplied CLASSPATH env var >&5
  9426. echo Adding user supplied CLASSPATH env var
  9427. ac_java_classpath="${ac_java_classpath}:${CLASSPATH}"
  9428. fi
  9429. echo Using CLASSPATH=$ac_java_classpath >&5
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_classpath" >&5
  9431. $as_echo "$ac_java_classpath" >&6; }
  9432. # FIXME : add detection of command line arguments for JAVAC
  9433. JAVAC_FLAGS=-g
  9434. JAVAC_D_FLAG=-d
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the java compiler works" >&5
  9436. $as_echo_n "checking to see if the java compiler works... " >&6; }
  9437. cat << \EOF > conftest.java
  9438. // #line 10575 "configure"
  9439. public class conftest {
  9440. public static void main(String[] argv) {
  9441. }
  9442. }
  9443. EOF
  9444. CLASSPATH=$ac_java_classpath
  9445. export CLASSPATH
  9446. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  9447. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  9448. if test ""no"" = "no"; then
  9449. echo "yes" >&5
  9450. works=yes
  9451. else
  9452. cmd="$JAVA conftest"
  9453. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  9454. echo "yes" >&5
  9455. works=yes
  9456. else
  9457. echo "configure: failed program was:" >&5
  9458. cat conftest.java >&5
  9459. if test -s conftest.java.output; then
  9460. STDOUT=`cat conftest.java.output`
  9461. fi
  9462. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9463. fi
  9464. fi
  9465. if test -f conftest.java.output; then
  9466. rm conftest.java.output
  9467. fi
  9468. else
  9469. echo "configure: failed program was:" >&5
  9470. cat conftest.java >&5
  9471. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9472. fi
  9473. if test "$works" = "yes" ; then
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
  9475. $as_echo "$works" >&6; }
  9476. else
  9477. as_fn_error $? "Could not compile simple Java program with '$JAVAC'. Try with the Sun JDK (1.5 or 6)." "$LINENO" 5
  9478. fi
  9479. echo Using JAVAC=$JAVAC >&5
  9480. echo Using JAVAC=$JAVAC
  9481. echo Java found in $ac_java_jvm_dir >&5
  9482. echo Java found in $ac_java_jvm_dir
  9483. # Try to detect non JDK JVMs. If we can't, then just assume a jdk
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of jvm" >&5
  9485. $as_echo_n "checking type of jvm... " >&6; }
  9486. if test "x$ac_java_jvm_name" = "x" ; then
  9487. cat << \EOF > conftest.java
  9488. // #line 10641 "configure"
  9489. import gnu.java.io.EncodingManager;
  9490. public class conftest {
  9491. public static void main(String[] argv) {
  9492. }
  9493. }
  9494. EOF
  9495. CLASSPATH=$ac_java_classpath
  9496. export CLASSPATH
  9497. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  9498. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  9499. if test ""no"" = "no"; then
  9500. echo "yes" >&5
  9501. ac_java_jvm_name=gcj
  9502. else
  9503. cmd="$JAVA conftest"
  9504. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  9505. echo "yes" >&5
  9506. ac_java_jvm_name=gcj
  9507. else
  9508. echo "configure: failed program was:" >&5
  9509. cat conftest.java >&5
  9510. if test -s conftest.java.output; then
  9511. STDOUT=`cat conftest.java.output`
  9512. fi
  9513. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9514. fi
  9515. fi
  9516. if test -f conftest.java.output; then
  9517. rm conftest.java.output
  9518. fi
  9519. else
  9520. echo "configure: failed program was:" >&5
  9521. cat conftest.java >&5
  9522. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9523. fi
  9524. fi
  9525. if test "x$ac_java_jvm_name" = "x" ; then
  9526. ac_java_jvm_name=jdk
  9527. fi
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_jvm_name" >&5
  9529. $as_echo "$ac_java_jvm_name" >&6; }
  9530. case "$ac_java_jvm_name" in
  9531. gcj) DO=nothing ;;
  9532. jdk) DO=nothing ;;
  9533. *) as_fn_error $? "'$ac_java_jvm_name' is not a supported JVM" "$LINENO" 5 ;;
  9534. esac
  9535. # Try to detect the version of java that is installed
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking java API version" >&5
  9537. $as_echo_n "checking java API version... " >&6; }
  9538. # The class java.nio.charset.Charset is new to 1.4
  9539. cat << \EOF > conftest.java
  9540. // #line 10704 "configure"
  9541. import java.nio.charset.Charset;
  9542. public class conftest {
  9543. public static void main(String[] argv) {
  9544. }
  9545. }
  9546. EOF
  9547. CLASSPATH=$ac_java_classpath
  9548. export CLASSPATH
  9549. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  9550. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  9551. if test ""no"" = "no"; then
  9552. echo "yes" >&5
  9553. ac_java_jvm_version=1.4
  9554. else
  9555. cmd="$JAVA conftest"
  9556. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  9557. echo "yes" >&5
  9558. ac_java_jvm_version=1.4
  9559. else
  9560. echo "configure: failed program was:" >&5
  9561. cat conftest.java >&5
  9562. if test -s conftest.java.output; then
  9563. STDOUT=`cat conftest.java.output`
  9564. fi
  9565. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9566. fi
  9567. fi
  9568. if test -f conftest.java.output; then
  9569. rm conftest.java.output
  9570. fi
  9571. else
  9572. echo "configure: failed program was:" >&5
  9573. cat conftest.java >&5
  9574. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9575. fi
  9576. # The class java.lang.StringBuilder is new to 1.5
  9577. cat << \EOF > conftest.java
  9578. // #line 10748 "configure"
  9579. import java.lang.StringBuilder;
  9580. public class conftest {
  9581. public static void main(String[] argv) {
  9582. }
  9583. }
  9584. EOF
  9585. CLASSPATH=$ac_java_classpath
  9586. export CLASSPATH
  9587. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  9588. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  9589. if test ""no"" = "no"; then
  9590. echo "yes" >&5
  9591. ac_java_jvm_version=1.5
  9592. else
  9593. cmd="$JAVA conftest"
  9594. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  9595. echo "yes" >&5
  9596. ac_java_jvm_version=1.5
  9597. else
  9598. echo "configure: failed program was:" >&5
  9599. cat conftest.java >&5
  9600. if test -s conftest.java.output; then
  9601. STDOUT=`cat conftest.java.output`
  9602. fi
  9603. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9604. fi
  9605. fi
  9606. if test -f conftest.java.output; then
  9607. rm conftest.java.output
  9608. fi
  9609. else
  9610. echo "configure: failed program was:" >&5
  9611. cat conftest.java >&5
  9612. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9613. fi
  9614. # The class java.util.ArrayDeque is new to 1.6
  9615. cat << \EOF > conftest.java
  9616. // #line 10792 "configure"
  9617. import java.util.ArrayDeque;
  9618. public class conftest {
  9619. public static void main(String[] argv) {
  9620. }
  9621. }
  9622. EOF
  9623. CLASSPATH=$ac_java_classpath
  9624. export CLASSPATH
  9625. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  9626. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  9627. if test ""no"" = "no"; then
  9628. echo "yes" >&5
  9629. ac_java_jvm_version=1.6
  9630. else
  9631. cmd="$JAVA conftest"
  9632. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  9633. echo "yes" >&5
  9634. ac_java_jvm_version=1.6
  9635. else
  9636. echo "configure: failed program was:" >&5
  9637. cat conftest.java >&5
  9638. if test -s conftest.java.output; then
  9639. STDOUT=`cat conftest.java.output`
  9640. fi
  9641. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9642. fi
  9643. fi
  9644. if test -f conftest.java.output; then
  9645. rm conftest.java.output
  9646. fi
  9647. else
  9648. echo "configure: failed program was:" >&5
  9649. cat conftest.java >&5
  9650. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9651. fi
  9652. # The class java.nio.file.Path is new to 1.7
  9653. cat << \EOF > conftest.java
  9654. // #line 10836 "configure"
  9655. import java.nio.file.Path;
  9656. public class conftest {
  9657. public static void main(String[] argv) {
  9658. }
  9659. }
  9660. EOF
  9661. CLASSPATH=$ac_java_classpath
  9662. export CLASSPATH
  9663. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  9664. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  9665. if test ""no"" = "no"; then
  9666. echo "yes" >&5
  9667. ac_java_jvm_version=1.7
  9668. else
  9669. cmd="$JAVA conftest"
  9670. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  9671. echo "yes" >&5
  9672. ac_java_jvm_version=1.7
  9673. else
  9674. echo "configure: failed program was:" >&5
  9675. cat conftest.java >&5
  9676. if test -s conftest.java.output; then
  9677. STDOUT=`cat conftest.java.output`
  9678. fi
  9679. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9680. fi
  9681. fi
  9682. if test -f conftest.java.output; then
  9683. rm conftest.java.output
  9684. fi
  9685. else
  9686. echo "configure: failed program was:" >&5
  9687. cat conftest.java >&5
  9688. echo "configure: CLASSPATH was $CLASSPATH" >&5
  9689. fi
  9690. if test "x$ac_java_jvm_version" = "x" ; then
  9691. as_fn_error $? "Could not detect Java version, 1.4 or newer is required" "$LINENO" 5
  9692. fi
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_jvm_version" >&5
  9694. $as_echo "$ac_java_jvm_version" >&6; }
  9695. case "$ac_java_jvm_version" in
  9696. 1.6 | 1.7)
  9697. ;;
  9698. *)
  9699. as_fn_error $? "Wrong version of Java. Expected at least 1.6. Found $ac_java_jvm_version" "$LINENO" 5
  9700. ;;
  9701. esac
  9702. if test "$ac_java_jvm_name" = "jdk"; then
  9703. JAVA_HOME=$ac_java_jvm_dir
  9704. JAVA_VERSION=$ac_java_jvm_version
  9705. # AC_JAVA_TOOLS
  9706. # JAVA_HOME specificed, check if we can find jni.h in this path
  9707. if test ! -z "$JAVA_HOME"; then
  9708. ac_java_jvm_dir=$JAVA_HOME
  9709. fi
  9710. # Look for jni.h in the subdirectory $ac_java_jvm_dir/include
  9711. F=$ac_java_jvm_dir/include/jni.h
  9712. if test -f "$F" ; then
  9713. ac_java_jvm_jni_include_flags="-I`dirname $F`"
  9714. else
  9715. F=`ls $ac_java_jvm_dir/include/*/jni.h 2>/dev/null`
  9716. if test -f "$F" ; then
  9717. ac_java_jvm_jni_include_flags="-I`dirname $F`"
  9718. else
  9719. case "$host_os" in
  9720. *darwin* )
  9721. ac_java_jvm_jni_include_flags="-I/Developer/SDKs/MacOSX${macosx_version}.sdk/System/Library/Frameworks/JavaVM.framework/Headers -I$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)/include/"
  9722. ;;
  9723. *)
  9724. as_fn_error $? "Could not locate Java's jni.h include file" "$LINENO" 5
  9725. ;;
  9726. esac
  9727. fi
  9728. fi
  9729. # Look for jni_md.h in an arch specific subdirectory
  9730. # we assume that there is only one arch subdirectory,
  9731. # if that is not the case we would need to use $host
  9732. F=`ls $ac_java_jvm_dir/include/*/jni_md.h 2>/dev/null`
  9733. if test -f "$F" ; then
  9734. ac_java_jvm_jni_include_flags="$ac_java_jvm_jni_include_flags -I`dirname $F`"
  9735. fi
  9736. echo Using the following JNI include flags $ac_java_jvm_jni_include_flags >&5
  9737. echo Using the following JNI include flags $ac_java_jvm_jni_include_flags
  9738. # Make sure a simple #include <jni.h> will compile.
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jni.h can be included" >&5
  9740. $as_echo_n "checking if jni.h can be included... " >&6; }
  9741. if ${ac_cv_java_jvm_jni_working+:} false; then :
  9742. $as_echo_n "(cached) " >&6
  9743. else
  9744. ac_ext=c
  9745. ac_cpp='$CPP $CPPFLAGS'
  9746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9749. ac_saved_cflags=$CFLAGS
  9750. CFLAGS="$CFLAGS $ac_java_jvm_jni_include_flags"
  9751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9752. /* end confdefs.h. */
  9753. #include <jni.h>
  9754. int
  9755. main ()
  9756. {
  9757. return 0;
  9758. ;
  9759. return 0;
  9760. }
  9761. _ACEOF
  9762. if ac_fn_c_try_compile "$LINENO"; then :
  9763. ac_cv_java_jvm_jni_working=yes
  9764. else
  9765. as_fn_error $? "could not compile file that includes jni.h. If you run Mac OS X please make sure you have 'Java developer package'. This is available on http://connect.apple.com/ " "$LINENO" 5
  9766. fi
  9767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9768. ac_ext=c
  9769. ac_cpp='$CPP $CPPFLAGS'
  9770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9773. CFLAGS=$ac_saved_cflags
  9774. fi
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_java_jvm_jni_working" >&5
  9776. $as_echo "$ac_cv_java_jvm_jni_working" >&6; }
  9777. # FIXME: should we look for or require a include/native_threads dir?
  9778. JAVA_JNI_INCLUDE=$ac_java_jvm_jni_include_flags
  9779. case "$host_os" in
  9780. *Darwin* | *darwin*)
  9781. # Mac OS X does not link against the lib but uses -framework
  9782. JAVA_JNI_LIBS="-framework JavaVM"
  9783. ;;
  9784. *)
  9785. machine=`uname -m`
  9786. case "$machine" in
  9787. i?86)
  9788. machine=i386
  9789. ;;
  9790. i86pc)
  9791. # Solaris 10 x86
  9792. machine=i386
  9793. ;;
  9794. sun*|sparc64)
  9795. # Sun
  9796. machine=sparc
  9797. ;;
  9798. powerpc|ppc64)
  9799. machine=ppc
  9800. ;;
  9801. armv*)
  9802. machine=arm
  9803. ;;
  9804. s390x) # s390 arch can also returns s390x
  9805. machine=s390
  9806. ;;
  9807. sh*)
  9808. machine=sh
  9809. ;;
  9810. mips64)
  9811. machine=mips
  9812. ;;
  9813. esac
  9814. echo Looking for JNI libs with $machine as machine hardware name >&5
  9815. echo Looking for JNI libs with $machine as machine hardware name
  9816. # Check for known JDK installation layouts
  9817. # Gives the name of the symbol we want to look for.
  9818. # Mac OS X add a trailing _Impl
  9819. libSymbolToTest="JNI_GetCreatedJavaVMs"
  9820. if test "$ac_java_jvm_name" = "jdk"; then
  9821. # Sun/Blackdown 1.4 for Linux (client JVM)
  9822. F=jre/lib/$machine/libjava.so
  9823. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9824. echo Looking for $ac_java_jvm_dir/$F >&5
  9825. echo Looking for $ac_java_jvm_dir/$F
  9826. if test -f $ac_java_jvm_dir/$F ; then
  9827. echo Found $ac_java_jvm_dir/$F >&5
  9828. echo Found $ac_java_jvm_dir/$F
  9829. D=`dirname $ac_java_jvm_dir/$F`
  9830. ac_java_jvm_jni_lib_runtime_path=$D
  9831. ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"
  9832. D=$ac_java_jvm_dir/jre/lib/$machine/client
  9833. if test ! -f $D/libjvm.so; then # Check if it is in the client or server directory
  9834. # Try the server directory
  9835. D=$ac_java_jvm_dir/jre/lib/$machine/server
  9836. if test ! -f $D/libjvm.so; then
  9837. as_fn_error $? "Could not find libjvm.so in
  9838. jre/lib/$machine/client/ or in jre/lib/$machine/server/.
  9839. Please report to http://bugzilla.scilab.org/" "$LINENO" 5
  9840. fi
  9841. fi
  9842. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9843. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
  9844. D=$ac_java_jvm_dir/jre/lib/$machine/native_threads
  9845. if test -d $D; then
  9846. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9847. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D"
  9848. fi
  9849. fi
  9850. fi
  9851. # Sun JDK 1.5 for AMD64 Linux (server JVM)
  9852. F=jre/lib/amd64/libjava.so
  9853. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9854. echo Looking for $ac_java_jvm_dir/$F >&5
  9855. echo Looking for $ac_java_jvm_dir/$F
  9856. if test -f $ac_java_jvm_dir/$F ; then
  9857. echo Found $ac_java_jvm_dir/$F >&5
  9858. echo Found $ac_java_jvm_dir/$F
  9859. D=`dirname $ac_java_jvm_dir/$F`
  9860. ac_java_jvm_jni_lib_runtime_path=$D
  9861. ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"
  9862. D=$ac_java_jvm_dir/jre/lib/amd64/server
  9863. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9864. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
  9865. fi
  9866. fi
  9867. # Eclipse/IBM Java Compiler
  9868. F=jre/lib/i386/client/libjvm.so
  9869. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9870. echo Looking for $ac_java_jvm_dir/$F >&5
  9871. echo Looking for $ac_java_jvm_dir/$F
  9872. if test -f $ac_java_jvm_dir/$F ; then
  9873. echo Found $ac_java_jvm_dir/$F >&5
  9874. echo Found $ac_java_jvm_dir/$F
  9875. D=`dirname $ac_java_jvm_dir/$F`
  9876. ac_java_jvm_jni_lib_runtime_path=$D
  9877. ac_java_jvm_jni_lib_flags="-L$D -ljvm"
  9878. D=$ac_java_jvm_dir/jre/lib/i386/server
  9879. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9880. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
  9881. fi
  9882. fi
  9883. # IBM Java Compiler under Suse (and probably others)
  9884. F=jre/bin/classic/libjvm.so
  9885. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9886. echo Looking for $ac_java_jvm_dir/$F >&5
  9887. echo Looking for $ac_java_jvm_dir/$F
  9888. if test -f $ac_java_jvm_dir/$F ; then
  9889. echo Found $ac_java_jvm_dir/$F >&5
  9890. echo Found $ac_java_jvm_dir/$F
  9891. D=`dirname $ac_java_jvm_dir/$F`
  9892. ac_java_jvm_jni_lib_runtime_path=$D
  9893. ac_java_jvm_jni_lib_flags="-L$D -ljvm"
  9894. D=$ac_java_jvm_dir/bin/
  9895. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9896. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljava"
  9897. fi
  9898. fi
  9899. # Sun JDK 1.4 and 1.5 for Win32 (client JVM)
  9900. F=lib/jvm.lib
  9901. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9902. echo Looking for $ac_java_jvm_dir/$F >&5
  9903. echo Looking for $ac_java_jvm_dir/$F
  9904. if test -f $ac_java_jvm_dir/$F ; then
  9905. # jre/bin/client must contain jvm.dll
  9906. # jre/bin/server directory could also contain jvm.dll,
  9907. # just assume the user wants to use the client JVM.
  9908. DLL=jre/bin/client/jvm.dll
  9909. if test -f $ac_java_jvm_dir/$DLL ; then
  9910. echo Found $ac_java_jvm_dir/$F >&5
  9911. echo Found $ac_java_jvm_dir/$F
  9912. D1=$ac_java_jvm_dir/jre/bin
  9913. D2=$ac_java_jvm_dir/jre/bin/client
  9914. ac_java_jvm_jni_lib_runtime_path="${D1}:${D2}"
  9915. ac_java_jvm_jni_lib_flags="$ac_java_jvm_dir/$F"
  9916. fi
  9917. fi
  9918. fi
  9919. fi
  9920. # Under GNU/Debian on a mipsel CPU, uname -m is still returning mips
  9921. # causing a confusion with mips... Therefor, I have to hardcode this
  9922. # test
  9923. # Note that most of the code is duplicated from
  9924. # Sun/Blackdown 1.4 for Linux (client JVM) tests
  9925. F=jre/lib/mipsel/libjava.so
  9926. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9927. echo Looking for $ac_java_jvm_dir/$F >&5
  9928. echo Looking for $ac_java_jvm_dir/$F
  9929. if test -f $ac_java_jvm_dir/$F ; then
  9930. echo Found $ac_java_jvm_dir/$F >&5
  9931. echo Found $ac_java_jvm_dir/$F
  9932. D=`dirname $ac_java_jvm_dir/$F`
  9933. ac_java_jvm_jni_lib_runtime_path=$D
  9934. ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"
  9935. D=$ac_java_jvm_dir/jre/lib/mipsel/client
  9936. if test ! -f $D/libjvm.so; then # Check if it is in the client or server directory
  9937. # Try the server directory
  9938. D=$ac_java_jvm_dir/jre/lib/mipsel/server
  9939. fi
  9940. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9941. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
  9942. D=$ac_java_jvm_dir/jre/lib/mipsel/native_threads
  9943. if test -d $D; then
  9944. ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
  9945. ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D"
  9946. fi
  9947. fi
  9948. fi
  9949. # Generate error for unsupported JVM layout
  9950. if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
  9951. as_fn_error $? "Could not detect the location of the Java
  9952. shared library. You will need to update java.m4
  9953. to add support for this JVM configuration." "$LINENO" 5
  9954. fi
  9955. echo Using the following JNI library flags $ac_java_jvm_jni_lib_flags >&5
  9956. echo Using the following JNI library flags $ac_java_jvm_jni_lib_flags
  9957. echo Using the following runtime library path $ac_java_jvm_jni_lib_runtime_path >&5
  9958. echo Using the following runtime library path $ac_java_jvm_jni_lib_runtime_path
  9959. echo Using LD_PRELOAD=$ac_java_jvm_ld_preload >&5
  9960. echo Using LD_BIND_NOW=$ac_java_jvm_ld_bind_now >&5
  9961. # Make sure we can compile and link a trivial JNI program
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can link a JNI application" >&5
  9963. $as_echo_n "checking to see if we can link a JNI application... " >&6; }
  9964. if ${ac_cv_java_jvm_working_jni_link+:} false; then :
  9965. $as_echo_n "(cached) " >&6
  9966. else
  9967. ac_ext=c
  9968. ac_cpp='$CPP $CPPFLAGS'
  9969. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9970. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9971. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9972. ac_saved_cflags=$CFLAGS
  9973. ac_saved_libs=$LIBS
  9974. CFLAGS="$CFLAGS $ac_java_jvm_jni_include_flags"
  9975. LIBS="$LIBS $ac_java_jvm_jni_lib_flags"
  9976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9977. /* end confdefs.h. */
  9978. #include <jni.h>
  9979. int
  9980. main ()
  9981. {
  9982. $libSymbolToTest(NULL,0,NULL);
  9983. ;
  9984. return 0;
  9985. }
  9986. _ACEOF
  9987. if ac_fn_c_try_link "$LINENO"; then :
  9988. ac_cv_java_jvm_working_jni_link=yes
  9989. else
  9990. ac_cv_java_jvm_working_jni_link=no
  9991. fi
  9992. rm -f core conftest.err conftest.$ac_objext \
  9993. conftest$ac_exeext conftest.$ac_ext
  9994. ac_ext=c
  9995. ac_cpp='$CPP $CPPFLAGS'
  9996. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9997. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9998. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9999. CFLAGS=$ac_saved_cflags
  10000. LIBS=$ac_saved_libs
  10001. fi
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_java_jvm_working_jni_link" >&5
  10003. $as_echo "$ac_cv_java_jvm_working_jni_link" >&6; }
  10004. # gcc can't link with some JDK .lib files under Win32.
  10005. # Work around this problem by linking with win/libjvm.dll.a
  10006. if test "$ac_cv_java_jvm_working_jni_link" != "yes" &&
  10007. test "$ac_cv_tcl_win32" = "yes"; then
  10008. ac_ext=c
  10009. ac_cpp='$CPP $CPPFLAGS'
  10010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10013. ac_saved_cflags=$CFLAGS
  10014. ac_saved_libs=$LIBS
  10015. CFLAGS="$CFLAGS $ac_java_jvm_jni_include_flags"
  10016. LIBS="$LIBS -L$srcdir/win -ljvm"
  10017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10018. /* end confdefs.h. */
  10019. #include <jni.h>
  10020. int
  10021. main ()
  10022. {
  10023. $libSymbolToTest(NULL,0,NULL);
  10024. ;
  10025. return 0;
  10026. }
  10027. _ACEOF
  10028. if ac_fn_c_try_link "$LINENO"; then :
  10029. ac_cv_java_jvm_working_jni_link=yes
  10030. else
  10031. ac_cv_java_jvm_working_jni_link=no
  10032. fi
  10033. rm -f core conftest.err conftest.$ac_objext \
  10034. conftest$ac_exeext conftest.$ac_ext
  10035. ac_ext=c
  10036. ac_cpp='$CPP $CPPFLAGS'
  10037. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10038. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10039. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10040. CFLAGS=$ac_saved_cflags
  10041. LIBS=$ac_saved_libs
  10042. if test "$ac_cv_java_jvm_working_jni_link" = "yes"; then
  10043. echo Using custom JNI link lib >&5
  10044. echo Using custom JNI link lib
  10045. ac_java_jvm_jni_lib_flags="-L$srcdir/win -ljvm"
  10046. fi
  10047. fi
  10048. if test "$ac_cv_java_jvm_working_jni_link" != "yes"; then
  10049. as_fn_error $? "could not link file that includes jni.h
  10050. Either the configure script does not know how to deal with
  10051. this JVM configuration or the JVM install is broken or corrupted." "$LINENO" 5
  10052. fi
  10053. JAVA_JNI_LIBS=$ac_java_jvm_jni_lib_flags
  10054. JAVA_JNI_LIBS_PRELOAD=$ac_java_jvm_ld_preload
  10055. ;;
  10056. esac
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip or jar files to include on CLASSPATH" >&5
  10058. $as_echo_n "checking for zip or jar files to include on CLASSPATH... " >&6; }
  10059. if test "x$ac_java_jvm_dir" = "x" ; then
  10060. as_fn_error $? "jvm directory not set" "$LINENO" 5
  10061. fi
  10062. # GNU gcj does not need to set the CLASSPATH.
  10063. # Assume that JDK 1.4 and newer systems will
  10064. # not need to explicitly set the CLASSPATH.
  10065. # Append CLASSPATH if env var is set. Avoid append
  10066. # under msys because CLASSPATH is in Win32 format
  10067. # and we can't combine it with a msys path.
  10068. if test "x$CLASSPATH" != "x" && test "$ac_cv_tcl_win32" != "yes" ; then
  10069. echo Adding user supplied CLASSPATH env var >&5
  10070. echo Adding user supplied CLASSPATH env var
  10071. ac_java_classpath="${ac_java_classpath}:${CLASSPATH}"
  10072. fi
  10073. echo Using CLASSPATH=$ac_java_classpath >&5
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_classpath" >&5
  10075. $as_echo "$ac_java_classpath" >&6; }
  10076. JAVA_CLASSPATH=$ac_java_classpath
  10077. case "$host_os" in
  10078. *darwin*)
  10079. ac_java_jvm_bin_dir=$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)/bin/
  10080. ;;
  10081. *)
  10082. ac_java_jvm_bin_dir=$ac_java_jvm_dir/bin;;
  10083. esac
  10084. if test "$cross_compiling" = "yes" ; then
  10085. # Extract the first word of "java", so it can be a program name with args.
  10086. set dummy java; ac_word=$2
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10088. $as_echo_n "checking for $ac_word... " >&6; }
  10089. if ${ac_cv_path_JAVA+:} false; then :
  10090. $as_echo_n "(cached) " >&6
  10091. else
  10092. case $JAVA in
  10093. [\\/]* | ?:[\\/]*)
  10094. ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
  10095. ;;
  10096. *)
  10097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10098. for as_dir in $PATH
  10099. do
  10100. IFS=$as_save_IFS
  10101. test -z "$as_dir" && as_dir=.
  10102. for ac_exec_ext in '' $ac_executable_extensions; do
  10103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10104. ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
  10105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10106. break 2
  10107. fi
  10108. done
  10109. done
  10110. IFS=$as_save_IFS
  10111. ;;
  10112. esac
  10113. fi
  10114. JAVA=$ac_cv_path_JAVA
  10115. if test -n "$JAVA"; then
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
  10117. $as_echo "$JAVA" >&6; }
  10118. else
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10120. $as_echo "no" >&6; }
  10121. fi
  10122. else
  10123. # Extract the first word of "java", so it can be a program name with args.
  10124. set dummy java; ac_word=$2
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10126. $as_echo_n "checking for $ac_word... " >&6; }
  10127. if ${ac_cv_path_JAVA+:} false; then :
  10128. $as_echo_n "(cached) " >&6
  10129. else
  10130. case $JAVA in
  10131. [\\/]* | ?:[\\/]*)
  10132. ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
  10133. ;;
  10134. *)
  10135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10136. for as_dir in $ac_java_jvm_bin_dir
  10137. do
  10138. IFS=$as_save_IFS
  10139. test -z "$as_dir" && as_dir=.
  10140. for ac_exec_ext in '' $ac_executable_extensions; do
  10141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10142. ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
  10143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10144. break 2
  10145. fi
  10146. done
  10147. done
  10148. IFS=$as_save_IFS
  10149. ;;
  10150. esac
  10151. fi
  10152. JAVA=$ac_cv_path_JAVA
  10153. if test -n "$JAVA"; then
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
  10155. $as_echo "$JAVA" >&6; }
  10156. else
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10158. $as_echo "no" >&6; }
  10159. fi
  10160. fi
  10161. # Check to see if JAVA could not be found
  10162. if test "x$JAVA" = "x" ; then
  10163. as_fn_error $? "Cannot find java" "$LINENO" 5
  10164. fi
  10165. # Don't error if java_g can not be found
  10166. if test "$cross_compiling" = "yes" ; then
  10167. # Extract the first word of "java_g", so it can be a program name with args.
  10168. set dummy java_g; ac_word=$2
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10170. $as_echo_n "checking for $ac_word... " >&6; }
  10171. if ${ac_cv_path_JAVA_G+:} false; then :
  10172. $as_echo_n "(cached) " >&6
  10173. else
  10174. case $JAVA_G in
  10175. [\\/]* | ?:[\\/]*)
  10176. ac_cv_path_JAVA_G="$JAVA_G" # Let the user override the test with a path.
  10177. ;;
  10178. *)
  10179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10180. for as_dir in $PATH
  10181. do
  10182. IFS=$as_save_IFS
  10183. test -z "$as_dir" && as_dir=.
  10184. for ac_exec_ext in '' $ac_executable_extensions; do
  10185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10186. ac_cv_path_JAVA_G="$as_dir/$ac_word$ac_exec_ext"
  10187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10188. break 2
  10189. fi
  10190. done
  10191. done
  10192. IFS=$as_save_IFS
  10193. ;;
  10194. esac
  10195. fi
  10196. JAVA_G=$ac_cv_path_JAVA_G
  10197. if test -n "$JAVA_G"; then
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_G" >&5
  10199. $as_echo "$JAVA_G" >&6; }
  10200. else
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10202. $as_echo "no" >&6; }
  10203. fi
  10204. else
  10205. # Extract the first word of "java_g", so it can be a program name with args.
  10206. set dummy java_g; ac_word=$2
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10208. $as_echo_n "checking for $ac_word... " >&6; }
  10209. if ${ac_cv_path_JAVA_G+:} false; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. case $JAVA_G in
  10213. [\\/]* | ?:[\\/]*)
  10214. ac_cv_path_JAVA_G="$JAVA_G" # Let the user override the test with a path.
  10215. ;;
  10216. *)
  10217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10218. for as_dir in $ac_java_jvm_bin_dir
  10219. do
  10220. IFS=$as_save_IFS
  10221. test -z "$as_dir" && as_dir=.
  10222. for ac_exec_ext in '' $ac_executable_extensions; do
  10223. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10224. ac_cv_path_JAVA_G="$as_dir/$ac_word$ac_exec_ext"
  10225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10226. break 2
  10227. fi
  10228. done
  10229. done
  10230. IFS=$as_save_IFS
  10231. ;;
  10232. esac
  10233. fi
  10234. JAVA_G=$ac_cv_path_JAVA_G
  10235. if test -n "$JAVA_G"; then
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_G" >&5
  10237. $as_echo "$JAVA_G" >&6; }
  10238. else
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10240. $as_echo "no" >&6; }
  10241. fi
  10242. fi
  10243. # Check to see if JAVA_G could not be found
  10244. if test "x$JAVA_G" = "x" ; then
  10245. JAVA_G=$JAVA
  10246. fi
  10247. TOOL=javah
  10248. if test "$cross_compiling" = "yes" ; then
  10249. # Extract the first word of "$TOOL", so it can be a program name with args.
  10250. set dummy $TOOL; ac_word=$2
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10252. $as_echo_n "checking for $ac_word... " >&6; }
  10253. if ${ac_cv_path_JAVAH+:} false; then :
  10254. $as_echo_n "(cached) " >&6
  10255. else
  10256. case $JAVAH in
  10257. [\\/]* | ?:[\\/]*)
  10258. ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
  10259. ;;
  10260. *)
  10261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10262. for as_dir in $PATH
  10263. do
  10264. IFS=$as_save_IFS
  10265. test -z "$as_dir" && as_dir=.
  10266. for ac_exec_ext in '' $ac_executable_extensions; do
  10267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10268. ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  10269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10270. break 2
  10271. fi
  10272. done
  10273. done
  10274. IFS=$as_save_IFS
  10275. ;;
  10276. esac
  10277. fi
  10278. JAVAH=$ac_cv_path_JAVAH
  10279. if test -n "$JAVAH"; then
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
  10281. $as_echo "$JAVAH" >&6; }
  10282. else
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10284. $as_echo "no" >&6; }
  10285. fi
  10286. else
  10287. # Extract the first word of "$TOOL", so it can be a program name with args.
  10288. set dummy $TOOL; ac_word=$2
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10290. $as_echo_n "checking for $ac_word... " >&6; }
  10291. if ${ac_cv_path_JAVAH+:} false; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. case $JAVAH in
  10295. [\\/]* | ?:[\\/]*)
  10296. ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
  10297. ;;
  10298. *)
  10299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10300. for as_dir in $ac_java_jvm_bin_dir
  10301. do
  10302. IFS=$as_save_IFS
  10303. test -z "$as_dir" && as_dir=.
  10304. for ac_exec_ext in '' $ac_executable_extensions; do
  10305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10306. ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
  10307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10308. break 2
  10309. fi
  10310. done
  10311. done
  10312. IFS=$as_save_IFS
  10313. ;;
  10314. esac
  10315. fi
  10316. JAVAH=$ac_cv_path_JAVAH
  10317. if test -n "$JAVAH"; then
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
  10319. $as_echo "$JAVAH" >&6; }
  10320. else
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10322. $as_echo "no" >&6; }
  10323. fi
  10324. fi
  10325. # Check to see if JAVAH could not be found
  10326. if test "x$JAVAH" = "x" ; then
  10327. as_fn_error $? "Cannot find $TOOL" "$LINENO" 5
  10328. fi
  10329. if test "$cross_compiling" = "yes" ; then
  10330. # Extract the first word of "jar", so it can be a program name with args.
  10331. set dummy jar; ac_word=$2
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10333. $as_echo_n "checking for $ac_word... " >&6; }
  10334. if ${ac_cv_path_JAR+:} false; then :
  10335. $as_echo_n "(cached) " >&6
  10336. else
  10337. case $JAR in
  10338. [\\/]* | ?:[\\/]*)
  10339. ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
  10340. ;;
  10341. *)
  10342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10343. for as_dir in $PATH
  10344. do
  10345. IFS=$as_save_IFS
  10346. test -z "$as_dir" && as_dir=.
  10347. for ac_exec_ext in '' $ac_executable_extensions; do
  10348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10349. ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
  10350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10351. break 2
  10352. fi
  10353. done
  10354. done
  10355. IFS=$as_save_IFS
  10356. ;;
  10357. esac
  10358. fi
  10359. JAR=$ac_cv_path_JAR
  10360. if test -n "$JAR"; then
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
  10362. $as_echo "$JAR" >&6; }
  10363. else
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10365. $as_echo "no" >&6; }
  10366. fi
  10367. else
  10368. # Extract the first word of "jar", so it can be a program name with args.
  10369. set dummy jar; ac_word=$2
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10371. $as_echo_n "checking for $ac_word... " >&6; }
  10372. if ${ac_cv_path_JAR+:} false; then :
  10373. $as_echo_n "(cached) " >&6
  10374. else
  10375. case $JAR in
  10376. [\\/]* | ?:[\\/]*)
  10377. ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
  10378. ;;
  10379. *)
  10380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10381. for as_dir in $ac_java_jvm_bin_dir
  10382. do
  10383. IFS=$as_save_IFS
  10384. test -z "$as_dir" && as_dir=.
  10385. for ac_exec_ext in '' $ac_executable_extensions; do
  10386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10387. ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
  10388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10389. break 2
  10390. fi
  10391. done
  10392. done
  10393. IFS=$as_save_IFS
  10394. ;;
  10395. esac
  10396. fi
  10397. JAR=$ac_cv_path_JAR
  10398. if test -n "$JAR"; then
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
  10400. $as_echo "$JAR" >&6; }
  10401. else
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10403. $as_echo "no" >&6; }
  10404. fi
  10405. fi
  10406. # Check to see if JAR could not be found
  10407. if test "x$JAR" = "x" ; then
  10408. as_fn_error $? "Cannot find jar" "$LINENO" 5
  10409. fi
  10410. if test "$cross_compiling" = "yes" ; then
  10411. # Extract the first word of "javadoc", so it can be a program name with args.
  10412. set dummy javadoc; ac_word=$2
  10413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10414. $as_echo_n "checking for $ac_word... " >&6; }
  10415. if ${ac_cv_path_JAVADOC+:} false; then :
  10416. $as_echo_n "(cached) " >&6
  10417. else
  10418. case $JAVADOC in
  10419. [\\/]* | ?:[\\/]*)
  10420. ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  10421. ;;
  10422. *)
  10423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10424. for as_dir in $PATH
  10425. do
  10426. IFS=$as_save_IFS
  10427. test -z "$as_dir" && as_dir=.
  10428. for ac_exec_ext in '' $ac_executable_extensions; do
  10429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10430. ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
  10431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10432. break 2
  10433. fi
  10434. done
  10435. done
  10436. IFS=$as_save_IFS
  10437. ;;
  10438. esac
  10439. fi
  10440. JAVADOC=$ac_cv_path_JAVADOC
  10441. if test -n "$JAVADOC"; then
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
  10443. $as_echo "$JAVADOC" >&6; }
  10444. else
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10446. $as_echo "no" >&6; }
  10447. fi
  10448. else
  10449. # Extract the first word of "javadoc", so it can be a program name with args.
  10450. set dummy javadoc; ac_word=$2
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10452. $as_echo_n "checking for $ac_word... " >&6; }
  10453. if ${ac_cv_path_JAVADOC+:} false; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. case $JAVADOC in
  10457. [\\/]* | ?:[\\/]*)
  10458. ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  10459. ;;
  10460. *)
  10461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10462. for as_dir in $ac_java_jvm_bin_dir
  10463. do
  10464. IFS=$as_save_IFS
  10465. test -z "$as_dir" && as_dir=.
  10466. for ac_exec_ext in '' $ac_executable_extensions; do
  10467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10468. ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
  10469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10470. break 2
  10471. fi
  10472. done
  10473. done
  10474. IFS=$as_save_IFS
  10475. ;;
  10476. esac
  10477. fi
  10478. JAVADOC=$ac_cv_path_JAVADOC
  10479. if test -n "$JAVADOC"; then
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
  10481. $as_echo "$JAVADOC" >&6; }
  10482. else
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10484. $as_echo "no" >&6; }
  10485. fi
  10486. fi
  10487. # Check to see if JAVADOC could not be found
  10488. if test "x$JAVADOC" = "x" ; then
  10489. as_fn_error $? "Cannot find javadoc" "$LINENO" 5
  10490. fi
  10491. # Don't error if jdb can not be found
  10492. if test "$cross_compiling" = "yes" ; then
  10493. # Extract the first word of "jdb", so it can be a program name with args.
  10494. set dummy jdb; ac_word=$2
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10496. $as_echo_n "checking for $ac_word... " >&6; }
  10497. if ${ac_cv_path_JDB+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. case $JDB in
  10501. [\\/]* | ?:[\\/]*)
  10502. ac_cv_path_JDB="$JDB" # Let the user override the test with a path.
  10503. ;;
  10504. *)
  10505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10506. for as_dir in $PATH
  10507. do
  10508. IFS=$as_save_IFS
  10509. test -z "$as_dir" && as_dir=.
  10510. for ac_exec_ext in '' $ac_executable_extensions; do
  10511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10512. ac_cv_path_JDB="$as_dir/$ac_word$ac_exec_ext"
  10513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10514. break 2
  10515. fi
  10516. done
  10517. done
  10518. IFS=$as_save_IFS
  10519. ;;
  10520. esac
  10521. fi
  10522. JDB=$ac_cv_path_JDB
  10523. if test -n "$JDB"; then
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDB" >&5
  10525. $as_echo "$JDB" >&6; }
  10526. else
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10528. $as_echo "no" >&6; }
  10529. fi
  10530. else
  10531. # Extract the first word of "jdb", so it can be a program name with args.
  10532. set dummy jdb; ac_word=$2
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10534. $as_echo_n "checking for $ac_word... " >&6; }
  10535. if ${ac_cv_path_JDB+:} false; then :
  10536. $as_echo_n "(cached) " >&6
  10537. else
  10538. case $JDB in
  10539. [\\/]* | ?:[\\/]*)
  10540. ac_cv_path_JDB="$JDB" # Let the user override the test with a path.
  10541. ;;
  10542. *)
  10543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10544. for as_dir in $ac_java_jvm_bin_dir
  10545. do
  10546. IFS=$as_save_IFS
  10547. test -z "$as_dir" && as_dir=.
  10548. for ac_exec_ext in '' $ac_executable_extensions; do
  10549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10550. ac_cv_path_JDB="$as_dir/$ac_word$ac_exec_ext"
  10551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10552. break 2
  10553. fi
  10554. done
  10555. done
  10556. IFS=$as_save_IFS
  10557. ;;
  10558. esac
  10559. fi
  10560. JDB=$ac_cv_path_JDB
  10561. if test -n "$JDB"; then
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDB" >&5
  10563. $as_echo "$JDB" >&6; }
  10564. else
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10566. $as_echo "no" >&6; }
  10567. fi
  10568. fi
  10569. # Check to see if JDB could not be found
  10570. case "$ac_java_jvm_version" in
  10571. *)
  10572. # JDK on Win32 does not allow connection with suspend=n
  10573. if test "$ac_cv_tcl_win32" = "yes"; then
  10574. suspend="y"
  10575. else
  10576. suspend="n"
  10577. fi
  10578. JDB_ATTACH_FLAGS="-attach 8757"
  10579. JAVA_G_FLAGS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8757,server=y,suspend=$suspend"
  10580. JDB_ATTACH_FLAGS="-attach 8757"
  10581. ;;
  10582. esac
  10583. # Check whether --with-ant was given.
  10584. if test "${with_ant+set}" = set; then :
  10585. withval=$with_ant; ANTPATH=$withval
  10586. else
  10587. ANTPATH=no
  10588. fi
  10589. if test "$ANTPATH" = "no" ; then
  10590. if test "$cross_compiling" = "yes" ; then
  10591. # Extract the first word of "ant", so it can be a program name with args.
  10592. set dummy ant; ac_word=$2
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10594. $as_echo_n "checking for $ac_word... " >&6; }
  10595. if ${ac_cv_path_ANT+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. case $ANT in
  10599. [\\/]* | ?:[\\/]*)
  10600. ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  10601. ;;
  10602. *)
  10603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10604. for as_dir in $PATH
  10605. do
  10606. IFS=$as_save_IFS
  10607. test -z "$as_dir" && as_dir=.
  10608. for ac_exec_ext in '' $ac_executable_extensions; do
  10609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10610. ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  10611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10612. break 2
  10613. fi
  10614. done
  10615. done
  10616. IFS=$as_save_IFS
  10617. ;;
  10618. esac
  10619. fi
  10620. ANT=$ac_cv_path_ANT
  10621. if test -n "$ANT"; then
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
  10623. $as_echo "$ANT" >&6; }
  10624. else
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10626. $as_echo "no" >&6; }
  10627. fi
  10628. else
  10629. # Extract the first word of "ant", so it can be a program name with args.
  10630. set dummy ant; ac_word=$2
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10632. $as_echo_n "checking for $ac_word... " >&6; }
  10633. if ${ac_cv_path_ANT+:} false; then :
  10634. $as_echo_n "(cached) " >&6
  10635. else
  10636. case $ANT in
  10637. [\\/]* | ?:[\\/]*)
  10638. ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  10639. ;;
  10640. *)
  10641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10642. for as_dir in $PATH
  10643. do
  10644. IFS=$as_save_IFS
  10645. test -z "$as_dir" && as_dir=.
  10646. for ac_exec_ext in '' $ac_executable_extensions; do
  10647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10648. ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  10649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10650. break 2
  10651. fi
  10652. done
  10653. done
  10654. IFS=$as_save_IFS
  10655. ;;
  10656. esac
  10657. fi
  10658. ANT=$ac_cv_path_ANT
  10659. if test -n "$ANT"; then
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
  10661. $as_echo "$ANT" >&6; }
  10662. else
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. fi
  10666. fi
  10667. # Check to see if ANT could not be found
  10668. if test "x$ANT" = "x" ; then
  10669. as_fn_error $? "Cannot find ant" "$LINENO" 5
  10670. fi
  10671. elif test ! -d "$ANTPATH"; then
  10672. as_fn_error $? "--with-ant=DIR option, must pass a valid DIR" "$LINENO" 5
  10673. else
  10674. if test "$cross_compiling" = "yes" ; then
  10675. # Extract the first word of "ant", so it can be a program name with args.
  10676. set dummy ant; ac_word=$2
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10678. $as_echo_n "checking for $ac_word... " >&6; }
  10679. if ${ac_cv_path_ANT+:} false; then :
  10680. $as_echo_n "(cached) " >&6
  10681. else
  10682. case $ANT in
  10683. [\\/]* | ?:[\\/]*)
  10684. ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  10685. ;;
  10686. *)
  10687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10688. for as_dir in $PATH
  10689. do
  10690. IFS=$as_save_IFS
  10691. test -z "$as_dir" && as_dir=.
  10692. for ac_exec_ext in '' $ac_executable_extensions; do
  10693. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10694. ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  10695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10696. break 2
  10697. fi
  10698. done
  10699. done
  10700. IFS=$as_save_IFS
  10701. ;;
  10702. esac
  10703. fi
  10704. ANT=$ac_cv_path_ANT
  10705. if test -n "$ANT"; then
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
  10707. $as_echo "$ANT" >&6; }
  10708. else
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10710. $as_echo "no" >&6; }
  10711. fi
  10712. else
  10713. # Extract the first word of "ant", so it can be a program name with args.
  10714. set dummy ant; ac_word=$2
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10716. $as_echo_n "checking for $ac_word... " >&6; }
  10717. if ${ac_cv_path_ANT+:} false; then :
  10718. $as_echo_n "(cached) " >&6
  10719. else
  10720. case $ANT in
  10721. [\\/]* | ?:[\\/]*)
  10722. ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
  10723. ;;
  10724. *)
  10725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10726. for as_dir in $ANTPATH/bin $ANTPATH
  10727. do
  10728. IFS=$as_save_IFS
  10729. test -z "$as_dir" && as_dir=.
  10730. for ac_exec_ext in '' $ac_executable_extensions; do
  10731. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10732. ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
  10733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10734. break 2
  10735. fi
  10736. done
  10737. done
  10738. IFS=$as_save_IFS
  10739. ;;
  10740. esac
  10741. fi
  10742. ANT=$ac_cv_path_ANT
  10743. if test -n "$ANT"; then
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
  10745. $as_echo "$ANT" >&6; }
  10746. else
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10748. $as_echo "no" >&6; }
  10749. fi
  10750. fi
  10751. # Check to see if ANT could not be found
  10752. if test "x$ANT" = "x" ; then
  10753. as_fn_error $? "Cannot find ant" "$LINENO" 5
  10754. fi
  10755. fi
  10756. case "$host_os" in
  10757. *Darwin* | *darwin*)
  10758. JAVA_HOME=""
  10759. ;;
  10760. esac
  10761. if test "$with_gui" != no; then
  10762. if test $XCOS_ENABLE = yes; then
  10763. # jgraphx
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jgraphx" >&5
  10765. $as_echo_n "checking jgraphx... " >&6; }
  10766. PACKAGE_JAR_FILE=
  10767. found_jar=no
  10768. saved_ac_java_classpath=$ac_java_classpath
  10769. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  10770. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  10771. for jar in "$jardir/jgraphx.jar" "$jardir/libjgraphx.jar" "$jardir/libjgraphx-java.jar" "$jardir/jgraphx*.jar"; do
  10772. # TODO check the behaviour when spaces
  10773. jars_resolved=`ls $jar 2>/dev/null`
  10774. for jar_resolved in $jars_resolved; do # If several jars matches
  10775. if test -e "$jar_resolved"; then
  10776. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  10777. cat << \EOF > conftest.java
  10778. // #line 12202 "configure"
  10779. import com.mxgraph.model.mxCell;
  10780. public class conftest {
  10781. public static void main(String[] argv) {
  10782. }
  10783. }
  10784. EOF
  10785. CLASSPATH=$ac_java_classpath
  10786. export CLASSPATH
  10787. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  10788. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  10789. if test ""no"" = "no"; then
  10790. echo "yes" >&5
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  10792. $as_echo "$jar_resolved" >&6; }
  10793. found_jar=yes
  10794. PACKAGE_JAR_FILE=$jar_resolved
  10795. break 3
  10796. else
  10797. cmd="$JAVA conftest"
  10798. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  10799. echo "yes" >&5
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  10801. $as_echo "$jar_resolved" >&6; }
  10802. found_jar=yes
  10803. PACKAGE_JAR_FILE=$jar_resolved
  10804. break 3
  10805. else
  10806. echo "configure: failed program was:" >&5
  10807. cat conftest.java >&5
  10808. if test -s conftest.java.output; then
  10809. STDOUT=`cat conftest.java.output`
  10810. fi
  10811. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10812. ac_java_classpath=$saved_ac_java_classpath
  10813. fi
  10814. fi
  10815. if test -f conftest.java.output; then
  10816. rm conftest.java.output
  10817. fi
  10818. else
  10819. echo "configure: failed program was:" >&5
  10820. cat conftest.java >&5
  10821. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10822. ac_java_classpath=$saved_ac_java_classpath
  10823. fi
  10824. fi
  10825. done
  10826. done
  10827. done
  10828. if test "$found_jar" = "no"; then
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10830. $as_echo "no" >&6; }
  10831. if test "" = "yes"; then
  10832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jgraphx used by Diagram design (looking for package com.mxgraph.model.mxCell)" >&5
  10833. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jgraphx used by Diagram design (looking for package com.mxgraph.model.mxCell)" >&2;}
  10834. else
  10835. as_fn_error $? "Could not find or use the Java package/jar jgraphx used by Diagram design (looking for package com.mxgraph.model.mxCell)" "$LINENO" 5
  10836. fi
  10837. fi
  10838. JGRAPHX=$PACKAGE_JAR_FILE
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.8.0.0) of jgraphx" >&5
  10840. $as_echo_n "checking minimal version (1.8.0.0) of jgraphx... " >&6; }
  10841. saved_ac_java_classpath=$ac_java_classpath
  10842. export ac_java_classpath="$JGRAPHX:$ac_java_classpath"
  10843. if test "x" == "x"; then
  10844. cat << \EOF > conftest.java
  10845. // #line 12288 "configure"
  10846. import com.mxgraph.view.mxGraph;
  10847. public class conftest {
  10848. public static void main(String[] argv) {
  10849. String minVersion="1.8.0.0";
  10850. System.out.println(mxGraph.VERSION);
  10851. if (minVersion.compareTo(mxGraph.VERSION) > 0) {
  10852. System.exit(-1);
  10853. }
  10854. }
  10855. }
  10856. EOF
  10857. CLASSPATH=$ac_java_classpath
  10858. export CLASSPATH
  10859. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  10860. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  10861. if test ""yes"" = "no"; then
  10862. echo "yes" >&5
  10863. echo "yes"
  10864. else
  10865. cmd="$JAVA conftest"
  10866. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  10867. echo "yes" >&5
  10868. echo "yes"
  10869. else
  10870. echo "configure: failed program was:" >&5
  10871. cat conftest.java >&5
  10872. if test -s conftest.java.output; then
  10873. STDOUT=`cat conftest.java.output`
  10874. fi
  10875. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10876. as_fn_error $? "Wrong version of jgraphx. Expected at least 1.8.0.0. Found $STDOUT" "$LINENO" 5
  10877. fi
  10878. fi
  10879. if test -f conftest.java.output; then
  10880. rm conftest.java.output
  10881. fi
  10882. else
  10883. echo "configure: failed program was:" >&5
  10884. cat conftest.java >&5
  10885. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10886. as_fn_error $? "Wrong version of jgraphx. Expected at least 1.8.0.0. Found $STDOUT" "$LINENO" 5
  10887. fi
  10888. else
  10889. cat << \EOF > conftest.java
  10890. // #line 12339 "configure"
  10891. import com.mxgraph.view.mxGraph;
  10892. public class conftest {
  10893. public static void main(String[] argv) {
  10894. String minVersion="1.8.0.0";
  10895. System.out.println(mxGraph.VERSION);
  10896. if (minVersion.compareTo(mxGraph.VERSION) != 0) {
  10897. System.exit(-1);
  10898. }
  10899. }
  10900. }
  10901. EOF
  10902. CLASSPATH=$ac_java_classpath
  10903. export CLASSPATH
  10904. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  10905. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  10906. if test ""yes"" = "no"; then
  10907. echo "yes" >&5
  10908. echo "yes"
  10909. else
  10910. cmd="$JAVA conftest"
  10911. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  10912. echo "yes" >&5
  10913. echo "yes"
  10914. else
  10915. echo "configure: failed program was:" >&5
  10916. cat conftest.java >&5
  10917. if test -s conftest.java.output; then
  10918. STDOUT=`cat conftest.java.output`
  10919. fi
  10920. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10921. as_fn_error $? "Wrong version of jgraphx. Expected exact version 1.8.0.0. Found $STDOUT" "$LINENO" 5
  10922. fi
  10923. fi
  10924. if test -f conftest.java.output; then
  10925. rm conftest.java.output
  10926. fi
  10927. else
  10928. echo "configure: failed program was:" >&5
  10929. cat conftest.java >&5
  10930. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10931. as_fn_error $? "Wrong version of jgraphx. Expected exact version 1.8.0.0. Found $STDOUT" "$LINENO" 5
  10932. fi
  10933. fi
  10934. ac_java_classpath=$saved_ac_java_classpath
  10935. # Java HDF5 is only needed for Xcos
  10936. if test $HDF5_ENABLE = yes -a "$with_xcos" != no -a "$with_gui" != no; then
  10937. # HDF5 java lib
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jhdf5" >&5
  10939. $as_echo_n "checking jhdf5... " >&6; }
  10940. PACKAGE_JAR_FILE=
  10941. found_jar=no
  10942. saved_ac_java_classpath=$ac_java_classpath
  10943. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  10944. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  10945. for jar in "$jardir/jhdf5.jar" "$jardir/libjhdf5.jar" "$jardir/libjhdf5-java.jar" "$jardir/jhdf5*.jar"; do
  10946. # TODO check the behaviour when spaces
  10947. jars_resolved=`ls $jar 2>/dev/null`
  10948. for jar_resolved in $jars_resolved; do # If several jars matches
  10949. if test -e "$jar_resolved"; then
  10950. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  10951. cat << \EOF > conftest.java
  10952. // #line 12413 "configure"
  10953. import ncsa.hdf.hdf5lib.HDF5Constants;
  10954. public class conftest {
  10955. public static void main(String[] argv) {
  10956. }
  10957. }
  10958. EOF
  10959. CLASSPATH=$ac_java_classpath
  10960. export CLASSPATH
  10961. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  10962. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  10963. if test ""no"" = "no"; then
  10964. echo "yes" >&5
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  10966. $as_echo "$jar_resolved" >&6; }
  10967. found_jar=yes
  10968. PACKAGE_JAR_FILE=$jar_resolved
  10969. break 3
  10970. else
  10971. cmd="$JAVA conftest"
  10972. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  10973. echo "yes" >&5
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  10975. $as_echo "$jar_resolved" >&6; }
  10976. found_jar=yes
  10977. PACKAGE_JAR_FILE=$jar_resolved
  10978. break 3
  10979. else
  10980. echo "configure: failed program was:" >&5
  10981. cat conftest.java >&5
  10982. if test -s conftest.java.output; then
  10983. STDOUT=`cat conftest.java.output`
  10984. fi
  10985. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10986. ac_java_classpath=$saved_ac_java_classpath
  10987. fi
  10988. fi
  10989. if test -f conftest.java.output; then
  10990. rm conftest.java.output
  10991. fi
  10992. else
  10993. echo "configure: failed program was:" >&5
  10994. cat conftest.java >&5
  10995. echo "configure: CLASSPATH was $CLASSPATH" >&5
  10996. ac_java_classpath=$saved_ac_java_classpath
  10997. fi
  10998. fi
  10999. done
  11000. done
  11001. done
  11002. if test "$found_jar" = "no"; then
  11003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11004. $as_echo "no" >&6; }
  11005. if test "" = "yes"; then
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)" >&5
  11007. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)" >&2;}
  11008. else
  11009. as_fn_error $? "Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)" "$LINENO" 5
  11010. fi
  11011. fi
  11012. JHDF5=$PACKAGE_JAR_FILE
  11013. if test "$MACOSX" = 1; then
  11014. echo "Check of the presence of libjhdf5.jnilib disabled under Mac OS X"
  11015. else
  11016. LDFLAGS_save=$LDFLAGS
  11017. # Provide known paths where distribs/OS can store JNI libs
  11018. LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
  11019. LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
  11020. LDFLAGS="$LDFLAGS -L/usr/lib/jhdf5 -L/usr/lib64/jhdf5" # RedHat
  11021. LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab
  11022. # -lpthread because of packaging bug in jhdf5
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h5JNIFatalError in -ljhdf5" >&5
  11024. $as_echo_n "checking for h5JNIFatalError in -ljhdf5... " >&6; }
  11025. if ${ac_cv_lib_jhdf5_h5JNIFatalError+:} false; then :
  11026. $as_echo_n "(cached) " >&6
  11027. else
  11028. ac_check_lib_save_LIBS=$LIBS
  11029. LIBS="-ljhdf5 $LIBS"
  11030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11031. /* end confdefs.h. */
  11032. /* Override any GCC internal prototype to avoid an error.
  11033. Use char because int might match the return type of a GCC
  11034. builtin and then its argument prototype would still apply. */
  11035. #ifdef __cplusplus
  11036. extern "C"
  11037. #endif
  11038. char h5JNIFatalError ();
  11039. int
  11040. main ()
  11041. {
  11042. return h5JNIFatalError ();
  11043. ;
  11044. return 0;
  11045. }
  11046. _ACEOF
  11047. if ac_fn_c_try_link "$LINENO"; then :
  11048. ac_cv_lib_jhdf5_h5JNIFatalError=yes
  11049. else
  11050. ac_cv_lib_jhdf5_h5JNIFatalError=no
  11051. fi
  11052. rm -f core conftest.err conftest.$ac_objext \
  11053. conftest$ac_exeext conftest.$ac_ext
  11054. LIBS=$ac_check_lib_save_LIBS
  11055. fi
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jhdf5_h5JNIFatalError" >&5
  11057. $as_echo "$ac_cv_lib_jhdf5_h5JNIFatalError" >&6; }
  11058. if test "x$ac_cv_lib_jhdf5_h5JNIFatalError" = xyes; then :
  11059. JHDF5_LIBS="-ljhdf5"
  11060. else
  11061. as_fn_error $? "libjhdf5: Library missing (Cannot find symbol h5JNIFatalError). Check if libjhdf5 - C/Java (JNI) interface for HDF5 - is installed and if the version is correct. Note that you might have to update etc/librarypath.xml to provide the actual path the the JNI libraries." "$LINENO" 5
  11062. fi
  11063. LDFLAGS=$LDFLAGS_save
  11064. LD_LIBRARY_PATH_save=$LD_LIBRARY_PATH
  11065. LD_LIBRARY_PATH="/usr/lib/jni:/usr/lib64/jni:"
  11066. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/java:/usr/lib64/java:"
  11067. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/jhdf5:/usr/lib64/jhdf5:"
  11068. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SCI_SRCDIR/bin/:$SCI_SRCDIR/thirdparty/:$with_hdf5_library"
  11069. export LD_LIBRARY_PATH
  11070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.8.4) of hdf5" >&5
  11071. $as_echo_n "checking minimal version (1.8.4) of hdf5... " >&6; }
  11072. saved_ac_java_classpath=$ac_java_classpath
  11073. export ac_java_classpath="$JHDF5:$ac_java_classpath"
  11074. if test "x" == "x"; then
  11075. cat << \EOF > conftest.java
  11076. // #line 12560 "configure"
  11077. import ncsa.hdf.hdf5lib.H5;
  11078. public class conftest {
  11079. public static void main(String[] argv) {
  11080. String minVersion="1.8.4";
  11081. int[] vers = new int[3];
  11082. try { H5.H5get_libversion(vers); }
  11083. catch (Throwable ex) {System.exit(-1);}
  11084. String ver = vers[0] + "."+ vers[1] +"."+vers[2];
  11085. System.out.println(ver);
  11086. if (minVersion.compareTo(ver) > 0) {
  11087. System.exit(-1);
  11088. }
  11089. }
  11090. }
  11091. EOF
  11092. CLASSPATH=$ac_java_classpath
  11093. export CLASSPATH
  11094. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11095. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11096. if test ""yes"" = "no"; then
  11097. echo "yes" >&5
  11098. echo "yes"
  11099. else
  11100. cmd="$JAVA conftest"
  11101. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11102. echo "yes" >&5
  11103. echo "yes"
  11104. else
  11105. echo "configure: failed program was:" >&5
  11106. cat conftest.java >&5
  11107. if test -s conftest.java.output; then
  11108. STDOUT=`cat conftest.java.output`
  11109. fi
  11110. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11111. as_fn_error $? "Wrong version of hdf5. Expected at least 1.8.4. Found $STDOUT" "$LINENO" 5
  11112. fi
  11113. fi
  11114. if test -f conftest.java.output; then
  11115. rm conftest.java.output
  11116. fi
  11117. else
  11118. echo "configure: failed program was:" >&5
  11119. cat conftest.java >&5
  11120. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11121. as_fn_error $? "Wrong version of hdf5. Expected at least 1.8.4. Found $STDOUT" "$LINENO" 5
  11122. fi
  11123. else
  11124. cat << \EOF > conftest.java
  11125. // #line 12615 "configure"
  11126. import ncsa.hdf.hdf5lib.H5;
  11127. public class conftest {
  11128. public static void main(String[] argv) {
  11129. String minVersion="1.8.4";
  11130. int[] vers = new int[3];
  11131. try { H5.H5get_libversion(vers); }
  11132. catch (Throwable ex) {System.exit(-1);}
  11133. String ver = vers[0] + "."+ vers[1] +"."+vers[2];
  11134. System.out.println(ver);
  11135. if (minVersion.compareTo(ver) != 0) {
  11136. System.exit(-1);
  11137. }
  11138. }
  11139. }
  11140. EOF
  11141. CLASSPATH=$ac_java_classpath
  11142. export CLASSPATH
  11143. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11144. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11145. if test ""yes"" = "no"; then
  11146. echo "yes" >&5
  11147. echo "yes"
  11148. else
  11149. cmd="$JAVA conftest"
  11150. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11151. echo "yes" >&5
  11152. echo "yes"
  11153. else
  11154. echo "configure: failed program was:" >&5
  11155. cat conftest.java >&5
  11156. if test -s conftest.java.output; then
  11157. STDOUT=`cat conftest.java.output`
  11158. fi
  11159. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11160. as_fn_error $? "Wrong version of hdf5. Expected exact version 1.8.4. Found $STDOUT" "$LINENO" 5
  11161. fi
  11162. fi
  11163. if test -f conftest.java.output; then
  11164. rm conftest.java.output
  11165. fi
  11166. else
  11167. echo "configure: failed program was:" >&5
  11168. cat conftest.java >&5
  11169. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11170. as_fn_error $? "Wrong version of hdf5. Expected exact version 1.8.4. Found $STDOUT" "$LINENO" 5
  11171. fi
  11172. fi
  11173. ac_java_classpath=$saved_ac_java_classpath
  11174. unset LD_LIBRARY_PATH
  11175. LD_LIBRARY_PATH=$LD_LIBRARY_PATH_save
  11176. fi
  11177. fi #HDF5_ENABLE
  11178. fi
  11179. # Docking system
  11180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking flexdock" >&5
  11181. $as_echo_n "checking flexdock... " >&6; }
  11182. PACKAGE_JAR_FILE=
  11183. found_jar=no
  11184. saved_ac_java_classpath=$ac_java_classpath
  11185. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11186. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11187. for jar in "$jardir/flexdock.jar" "$jardir/libflexdock.jar" "$jardir/libflexdock-java.jar" "$jardir/flexdock*.jar"; do
  11188. # TODO check the behaviour when spaces
  11189. jars_resolved=`ls $jar 2>/dev/null`
  11190. for jar_resolved in $jars_resolved; do # If several jars matches
  11191. if test -e "$jar_resolved"; then
  11192. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11193. cat << \EOF > conftest.java
  11194. // #line 12696 "configure"
  11195. import org.flexdock.docking.DockingManager;
  11196. public class conftest {
  11197. public static void main(String[] argv) {
  11198. }
  11199. }
  11200. EOF
  11201. CLASSPATH=$ac_java_classpath
  11202. export CLASSPATH
  11203. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11204. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11205. if test ""no"" = "no"; then
  11206. echo "yes" >&5
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11208. $as_echo "$jar_resolved" >&6; }
  11209. found_jar=yes
  11210. PACKAGE_JAR_FILE=$jar_resolved
  11211. break 3
  11212. else
  11213. cmd="$JAVA conftest"
  11214. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11215. echo "yes" >&5
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11217. $as_echo "$jar_resolved" >&6; }
  11218. found_jar=yes
  11219. PACKAGE_JAR_FILE=$jar_resolved
  11220. break 3
  11221. else
  11222. echo "configure: failed program was:" >&5
  11223. cat conftest.java >&5
  11224. if test -s conftest.java.output; then
  11225. STDOUT=`cat conftest.java.output`
  11226. fi
  11227. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11228. ac_java_classpath=$saved_ac_java_classpath
  11229. fi
  11230. fi
  11231. if test -f conftest.java.output; then
  11232. rm conftest.java.output
  11233. fi
  11234. else
  11235. echo "configure: failed program was:" >&5
  11236. cat conftest.java >&5
  11237. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11238. ac_java_classpath=$saved_ac_java_classpath
  11239. fi
  11240. fi
  11241. done
  11242. done
  11243. done
  11244. if test "$found_jar" = "no"; then
  11245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11246. $as_echo "no" >&6; }
  11247. if test "" = "yes"; then
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar flexdock used by Scilab Gui (looking for package org.flexdock.docking.DockingManager)" >&5
  11249. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar flexdock used by Scilab Gui (looking for package org.flexdock.docking.DockingManager)" >&2;}
  11250. else
  11251. as_fn_error $? "Could not find or use the Java package/jar flexdock used by Scilab Gui (looking for package org.flexdock.docking.DockingManager)" "$LINENO" 5
  11252. fi
  11253. fi
  11254. FLEXDOCK=$PACKAGE_JAR_FILE
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.1.1) of flexdock" >&5
  11256. $as_echo_n "checking minimal version (1.1.1) of flexdock... " >&6; }
  11257. saved_ac_java_classpath=$ac_java_classpath
  11258. export ac_java_classpath="$FLEXDOCK:$ac_java_classpath"
  11259. if test "x" == "x"; then
  11260. cat << \EOF > conftest.java
  11261. // #line 12782 "configure"
  11262. import org.flexdock.util.Utilities;
  11263. public class conftest {
  11264. public static void main(String[] argv) {
  11265. String minVersion="1.1.1";
  11266. System.out.println(Utilities.VERSION);
  11267. if (minVersion.compareTo(Utilities.VERSION) > 0) {
  11268. System.exit(-1);
  11269. }
  11270. }
  11271. }
  11272. EOF
  11273. CLASSPATH=$ac_java_classpath
  11274. export CLASSPATH
  11275. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11276. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11277. if test ""yes"" = "no"; then
  11278. echo "yes" >&5
  11279. echo "yes"
  11280. else
  11281. cmd="$JAVA conftest"
  11282. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11283. echo "yes" >&5
  11284. echo "yes"
  11285. else
  11286. echo "configure: failed program was:" >&5
  11287. cat conftest.java >&5
  11288. if test -s conftest.java.output; then
  11289. STDOUT=`cat conftest.java.output`
  11290. fi
  11291. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11292. as_fn_error $? "Wrong version of flexdock. Expected at least 1.1.1. Found $STDOUT" "$LINENO" 5
  11293. fi
  11294. fi
  11295. if test -f conftest.java.output; then
  11296. rm conftest.java.output
  11297. fi
  11298. else
  11299. echo "configure: failed program was:" >&5
  11300. cat conftest.java >&5
  11301. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11302. as_fn_error $? "Wrong version of flexdock. Expected at least 1.1.1. Found $STDOUT" "$LINENO" 5
  11303. fi
  11304. else
  11305. cat << \EOF > conftest.java
  11306. // #line 12833 "configure"
  11307. import org.flexdock.util.Utilities;
  11308. public class conftest {
  11309. public static void main(String[] argv) {
  11310. String minVersion="1.1.1";
  11311. System.out.println(Utilities.VERSION);
  11312. if (minVersion.compareTo(Utilities.VERSION) != 0) {
  11313. System.exit(-1);
  11314. }
  11315. }
  11316. }
  11317. EOF
  11318. CLASSPATH=$ac_java_classpath
  11319. export CLASSPATH
  11320. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11321. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11322. if test ""yes"" = "no"; then
  11323. echo "yes" >&5
  11324. echo "yes"
  11325. else
  11326. cmd="$JAVA conftest"
  11327. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11328. echo "yes" >&5
  11329. echo "yes"
  11330. else
  11331. echo "configure: failed program was:" >&5
  11332. cat conftest.java >&5
  11333. if test -s conftest.java.output; then
  11334. STDOUT=`cat conftest.java.output`
  11335. fi
  11336. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11337. as_fn_error $? "Wrong version of flexdock. Expected exact version 1.1.1. Found $STDOUT" "$LINENO" 5
  11338. fi
  11339. fi
  11340. if test -f conftest.java.output; then
  11341. rm conftest.java.output
  11342. fi
  11343. else
  11344. echo "configure: failed program was:" >&5
  11345. cat conftest.java >&5
  11346. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11347. as_fn_error $? "Wrong version of flexdock. Expected exact version 1.1.1. Found $STDOUT" "$LINENO" 5
  11348. fi
  11349. fi
  11350. ac_java_classpath=$saved_ac_java_classpath
  11351. # Swing look&feel implementations
  11352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking looks" >&5
  11353. $as_echo_n "checking looks... " >&6; }
  11354. PACKAGE_JAR_FILE=
  11355. found_jar=no
  11356. saved_ac_java_classpath=$ac_java_classpath
  11357. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11358. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11359. for jar in "$jardir/looks.jar" "$jardir/liblooks.jar" "$jardir/liblooks-java.jar" "$jardir/looks*.jar"; do
  11360. # TODO check the behaviour when spaces
  11361. jars_resolved=`ls $jar 2>/dev/null`
  11362. for jar_resolved in $jars_resolved; do # If several jars matches
  11363. if test -e "$jar_resolved"; then
  11364. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11365. cat << \EOF > conftest.java
  11366. // #line 12903 "configure"
  11367. import com.jgoodies.looks.common.MenuItemRenderer;
  11368. public class conftest {
  11369. public static void main(String[] argv) {
  11370. }
  11371. }
  11372. EOF
  11373. CLASSPATH=$ac_java_classpath
  11374. export CLASSPATH
  11375. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11376. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11377. if test ""no"" = "no"; then
  11378. echo "yes" >&5
  11379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11380. $as_echo "$jar_resolved" >&6; }
  11381. found_jar=yes
  11382. PACKAGE_JAR_FILE=$jar_resolved
  11383. break 3
  11384. else
  11385. cmd="$JAVA conftest"
  11386. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11387. echo "yes" >&5
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11389. $as_echo "$jar_resolved" >&6; }
  11390. found_jar=yes
  11391. PACKAGE_JAR_FILE=$jar_resolved
  11392. break 3
  11393. else
  11394. echo "configure: failed program was:" >&5
  11395. cat conftest.java >&5
  11396. if test -s conftest.java.output; then
  11397. STDOUT=`cat conftest.java.output`
  11398. fi
  11399. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11400. ac_java_classpath=$saved_ac_java_classpath
  11401. fi
  11402. fi
  11403. if test -f conftest.java.output; then
  11404. rm conftest.java.output
  11405. fi
  11406. else
  11407. echo "configure: failed program was:" >&5
  11408. cat conftest.java >&5
  11409. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11410. ac_java_classpath=$saved_ac_java_classpath
  11411. fi
  11412. fi
  11413. done
  11414. done
  11415. done
  11416. if test "$found_jar" = "no"; then
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11418. $as_echo "no" >&6; }
  11419. if test ""yes"" = "yes"; then
  11420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&5
  11421. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&2;}
  11422. else
  11423. as_fn_error $? "Could not find or use the Java package/jar looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" "$LINENO" 5
  11424. fi
  11425. fi
  11426. LOOKS=$PACKAGE_JAR_FILE
  11427. # Named differently under ArchLinux or Fedora
  11428. if test -z "$LOOKS"; then
  11429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jgoodies-looks" >&5
  11430. $as_echo_n "checking jgoodies-looks... " >&6; }
  11431. PACKAGE_JAR_FILE=
  11432. found_jar=no
  11433. saved_ac_java_classpath=$ac_java_classpath
  11434. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11435. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11436. for jar in "$jardir/jgoodies-looks.jar" "$jardir/libjgoodies-looks.jar" "$jardir/libjgoodies-looks-java.jar" "$jardir/jgoodies-looks*.jar"; do
  11437. # TODO check the behaviour when spaces
  11438. jars_resolved=`ls $jar 2>/dev/null`
  11439. for jar_resolved in $jars_resolved; do # If several jars matches
  11440. if test -e "$jar_resolved"; then
  11441. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11442. cat << \EOF > conftest.java
  11443. // #line 12999 "configure"
  11444. import com.jgoodies.looks.common.MenuItemRenderer;
  11445. public class conftest {
  11446. public static void main(String[] argv) {
  11447. }
  11448. }
  11449. EOF
  11450. CLASSPATH=$ac_java_classpath
  11451. export CLASSPATH
  11452. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11453. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11454. if test ""no"" = "no"; then
  11455. echo "yes" >&5
  11456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11457. $as_echo "$jar_resolved" >&6; }
  11458. found_jar=yes
  11459. PACKAGE_JAR_FILE=$jar_resolved
  11460. break 3
  11461. else
  11462. cmd="$JAVA conftest"
  11463. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11464. echo "yes" >&5
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11466. $as_echo "$jar_resolved" >&6; }
  11467. found_jar=yes
  11468. PACKAGE_JAR_FILE=$jar_resolved
  11469. break 3
  11470. else
  11471. echo "configure: failed program was:" >&5
  11472. cat conftest.java >&5
  11473. if test -s conftest.java.output; then
  11474. STDOUT=`cat conftest.java.output`
  11475. fi
  11476. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11477. ac_java_classpath=$saved_ac_java_classpath
  11478. fi
  11479. fi
  11480. if test -f conftest.java.output; then
  11481. rm conftest.java.output
  11482. fi
  11483. else
  11484. echo "configure: failed program was:" >&5
  11485. cat conftest.java >&5
  11486. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11487. ac_java_classpath=$saved_ac_java_classpath
  11488. fi
  11489. fi
  11490. done
  11491. done
  11492. done
  11493. if test "$found_jar" = "no"; then
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11495. $as_echo "no" >&6; }
  11496. if test "" = "yes"; then
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jgoodies-looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&5
  11498. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jgoodies-looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&2;}
  11499. else
  11500. as_fn_error $? "Could not find or use the Java package/jar jgoodies-looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" "$LINENO" 5
  11501. fi
  11502. fi
  11503. LOOKS=$PACKAGE_JAR_FILE
  11504. fi
  11505. # Skin Look and Feel
  11506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking skinlf" >&5
  11507. $as_echo_n "checking skinlf... " >&6; }
  11508. PACKAGE_JAR_FILE=
  11509. found_jar=no
  11510. saved_ac_java_classpath=$ac_java_classpath
  11511. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11512. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11513. for jar in "$jardir/skinlf.jar" "$jardir/libskinlf.jar" "$jardir/libskinlf-java.jar" "$jardir/skinlf*.jar"; do
  11514. # TODO check the behaviour when spaces
  11515. jars_resolved=`ls $jar 2>/dev/null`
  11516. for jar_resolved in $jars_resolved; do # If several jars matches
  11517. if test -e "$jar_resolved"; then
  11518. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11519. cat << \EOF > conftest.java
  11520. // #line 13096 "configure"
  11521. import com.l2fprod.util.AccessUtils;
  11522. public class conftest {
  11523. public static void main(String[] argv) {
  11524. }
  11525. }
  11526. EOF
  11527. CLASSPATH=$ac_java_classpath
  11528. export CLASSPATH
  11529. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11530. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11531. if test ""no"" = "no"; then
  11532. echo "yes" >&5
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11534. $as_echo "$jar_resolved" >&6; }
  11535. found_jar=yes
  11536. PACKAGE_JAR_FILE=$jar_resolved
  11537. break 3
  11538. else
  11539. cmd="$JAVA conftest"
  11540. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11541. echo "yes" >&5
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11543. $as_echo "$jar_resolved" >&6; }
  11544. found_jar=yes
  11545. PACKAGE_JAR_FILE=$jar_resolved
  11546. break 3
  11547. else
  11548. echo "configure: failed program was:" >&5
  11549. cat conftest.java >&5
  11550. if test -s conftest.java.output; then
  11551. STDOUT=`cat conftest.java.output`
  11552. fi
  11553. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11554. ac_java_classpath=$saved_ac_java_classpath
  11555. fi
  11556. fi
  11557. if test -f conftest.java.output; then
  11558. rm conftest.java.output
  11559. fi
  11560. else
  11561. echo "configure: failed program was:" >&5
  11562. cat conftest.java >&5
  11563. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11564. ac_java_classpath=$saved_ac_java_classpath
  11565. fi
  11566. fi
  11567. done
  11568. done
  11569. done
  11570. if test "$found_jar" = "no"; then
  11571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11572. $as_echo "no" >&6; }
  11573. if test "" = "yes"; then
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar skinlf used by Scilab Gui - Skin Look and Feel (looking for package com.l2fprod.util.AccessUtils)" >&5
  11575. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar skinlf used by Scilab Gui - Skin Look and Feel (looking for package com.l2fprod.util.AccessUtils)" >&2;}
  11576. else
  11577. as_fn_error $? "Could not find or use the Java package/jar skinlf used by Scilab Gui - Skin Look and Feel (looking for package com.l2fprod.util.AccessUtils)" "$LINENO" 5
  11578. fi
  11579. fi
  11580. SKINLF=$PACKAGE_JAR_FILE
  11581. # JOGL
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jogl" >&5
  11583. $as_echo_n "checking jogl... " >&6; }
  11584. PACKAGE_JAR_FILE=
  11585. found_jar=no
  11586. saved_ac_java_classpath=$ac_java_classpath
  11587. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11588. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11589. for jar in "$jardir/jogl.jar" "$jardir/libjogl.jar" "$jardir/libjogl-java.jar" "$jardir/jogl*.jar"; do
  11590. # TODO check the behaviour when spaces
  11591. jars_resolved=`ls $jar 2>/dev/null`
  11592. for jar_resolved in $jars_resolved; do # If several jars matches
  11593. if test -e "$jar_resolved"; then
  11594. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11595. cat << \EOF > conftest.java
  11596. // #line 13192 "configure"
  11597. import javax.media.opengl.glu.GLUnurbs;
  11598. public class conftest {
  11599. public static void main(String[] argv) {
  11600. }
  11601. }
  11602. EOF
  11603. CLASSPATH=$ac_java_classpath
  11604. export CLASSPATH
  11605. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11606. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11607. if test ""no"" = "no"; then
  11608. echo "yes" >&5
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11610. $as_echo "$jar_resolved" >&6; }
  11611. found_jar=yes
  11612. PACKAGE_JAR_FILE=$jar_resolved
  11613. break 3
  11614. else
  11615. cmd="$JAVA conftest"
  11616. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11617. echo "yes" >&5
  11618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11619. $as_echo "$jar_resolved" >&6; }
  11620. found_jar=yes
  11621. PACKAGE_JAR_FILE=$jar_resolved
  11622. break 3
  11623. else
  11624. echo "configure: failed program was:" >&5
  11625. cat conftest.java >&5
  11626. if test -s conftest.java.output; then
  11627. STDOUT=`cat conftest.java.output`
  11628. fi
  11629. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11630. ac_java_classpath=$saved_ac_java_classpath
  11631. fi
  11632. fi
  11633. if test -f conftest.java.output; then
  11634. rm conftest.java.output
  11635. fi
  11636. else
  11637. echo "configure: failed program was:" >&5
  11638. cat conftest.java >&5
  11639. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11640. ac_java_classpath=$saved_ac_java_classpath
  11641. fi
  11642. fi
  11643. done
  11644. done
  11645. done
  11646. if test "$found_jar" = "no"; then
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11648. $as_echo "no" >&6; }
  11649. if test "" = "yes"; then
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jogl used by Scilab 3D rendering - Version 1.1.1 (looking for package javax.media.opengl.glu.GLUnurbs)" >&5
  11651. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jogl used by Scilab 3D rendering - Version 1.1.1 (looking for package javax.media.opengl.glu.GLUnurbs)" >&2;}
  11652. else
  11653. as_fn_error $? "Could not find or use the Java package/jar jogl used by Scilab 3D rendering - Version 1.1.1 (looking for package javax.media.opengl.glu.GLUnurbs)" "$LINENO" 5
  11654. fi
  11655. fi
  11656. JOGL=$PACKAGE_JAR_FILE
  11657. if test "$MACOSX" = 1; then
  11658. echo "Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X"
  11659. else
  11660. LDFLAGS_save=$LDFLAGS
  11661. # Provide known paths where distribs/OS can store JNI libs
  11662. LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
  11663. LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
  11664. LDFLAGS="$LDFLAGS -L/usr/lib/jogl -L/usr/lib64/jogl" # RedHat
  11665. LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab thirdparties
  11666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexParameterf in -ljogl" >&5
  11667. $as_echo_n "checking for glTexParameterf in -ljogl... " >&6; }
  11668. if ${ac_cv_lib_jogl_glTexParameterf+:} false; then :
  11669. $as_echo_n "(cached) " >&6
  11670. else
  11671. ac_check_lib_save_LIBS=$LIBS
  11672. LIBS="-ljogl $LIBS"
  11673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11674. /* end confdefs.h. */
  11675. /* Override any GCC internal prototype to avoid an error.
  11676. Use char because int might match the return type of a GCC
  11677. builtin and then its argument prototype would still apply. */
  11678. #ifdef __cplusplus
  11679. extern "C"
  11680. #endif
  11681. char glTexParameterf ();
  11682. int
  11683. main ()
  11684. {
  11685. return glTexParameterf ();
  11686. ;
  11687. return 0;
  11688. }
  11689. _ACEOF
  11690. if ac_fn_c_try_link "$LINENO"; then :
  11691. ac_cv_lib_jogl_glTexParameterf=yes
  11692. else
  11693. ac_cv_lib_jogl_glTexParameterf=no
  11694. fi
  11695. rm -f core conftest.err conftest.$ac_objext \
  11696. conftest$ac_exeext conftest.$ac_ext
  11697. LIBS=$ac_check_lib_save_LIBS
  11698. fi
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jogl_glTexParameterf" >&5
  11700. $as_echo "$ac_cv_lib_jogl_glTexParameterf" >&6; }
  11701. if test "x$ac_cv_lib_jogl_glTexParameterf" = xyes; then :
  11702. JOGL_LIBS="-ljogl"
  11703. else
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link against -ljogl. Will try against -ljogl -lGL" >&5
  11705. $as_echo "$as_me: WARNING: Could not link against -ljogl. Will try against -ljogl -lGL" >&2;}
  11706. fi
  11707. if test -z "$JOGL_LIBS"; then # The previous test failed add more options to the LDFLAGS
  11708. # the space after "jogl" in the following line is on
  11709. # purpose to disable the cache
  11710. as_ac_Lib=`$as_echo "ac_cv_lib_jogl ''_glTexParameterf" | $as_tr_sh`
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexParameterf in -ljogl " >&5
  11712. $as_echo_n "checking for glTexParameterf in -ljogl ... " >&6; }
  11713. if eval \${$as_ac_Lib+:} false; then :
  11714. $as_echo_n "(cached) " >&6
  11715. else
  11716. ac_check_lib_save_LIBS=$LIBS
  11717. LIBS="-ljogl -lGL $LIBS"
  11718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11719. /* end confdefs.h. */
  11720. /* Override any GCC internal prototype to avoid an error.
  11721. Use char because int might match the return type of a GCC
  11722. builtin and then its argument prototype would still apply. */
  11723. #ifdef __cplusplus
  11724. extern "C"
  11725. #endif
  11726. char glTexParameterf ();
  11727. int
  11728. main ()
  11729. {
  11730. return glTexParameterf ();
  11731. ;
  11732. return 0;
  11733. }
  11734. _ACEOF
  11735. if ac_fn_c_try_link "$LINENO"; then :
  11736. eval "$as_ac_Lib=yes"
  11737. else
  11738. eval "$as_ac_Lib=no"
  11739. fi
  11740. rm -f core conftest.err conftest.$ac_objext \
  11741. conftest$ac_exeext conftest.$ac_ext
  11742. LIBS=$ac_check_lib_save_LIBS
  11743. fi
  11744. eval ac_res=\$$as_ac_Lib
  11745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11746. $as_echo "$ac_res" >&6; }
  11747. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11748. JOGL_LIBS="-ljogl -lGL"
  11749. else
  11750. as_fn_error $? "\"libjogl: Library
  11751. missing (Cannot find symbol glTexParameterf). Check if libjogl - C/Java (JNI)
  11752. interface for JOGL - or libGL are installed and if the version is correct. Note
  11753. that you might have to update etc/librarypath.xml to provide the actual path
  11754. the the JNI libraries.\"" "$LINENO" 5
  11755. fi
  11756. fi
  11757. LDFLAGS=$LDFLAGS_save
  11758. fi
  11759. # JoGL Native <=> Java connector
  11760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gluegen-rt" >&5
  11761. $as_echo_n "checking gluegen-rt... " >&6; }
  11762. PACKAGE_JAR_FILE=
  11763. found_jar=no
  11764. saved_ac_java_classpath=$ac_java_classpath
  11765. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11766. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11767. for jar in "$jardir/gluegen-rt.jar" "$jardir/libgluegen-rt.jar" "$jardir/libgluegen-rt-java.jar" "$jardir/gluegen-rt*.jar"; do
  11768. # TODO check the behaviour when spaces
  11769. jars_resolved=`ls $jar 2>/dev/null`
  11770. for jar_resolved in $jars_resolved; do # If several jars matches
  11771. if test -e "$jar_resolved"; then
  11772. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11773. cat << \EOF > conftest.java
  11774. // #line 13396 "configure"
  11775. import com.sun.gluegen.runtime.CPU;
  11776. public class conftest {
  11777. public static void main(String[] argv) {
  11778. }
  11779. }
  11780. EOF
  11781. CLASSPATH=$ac_java_classpath
  11782. export CLASSPATH
  11783. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11784. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11785. if test ""no"" = "no"; then
  11786. echo "yes" >&5
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11788. $as_echo "$jar_resolved" >&6; }
  11789. found_jar=yes
  11790. PACKAGE_JAR_FILE=$jar_resolved
  11791. break 3
  11792. else
  11793. cmd="$JAVA conftest"
  11794. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11795. echo "yes" >&5
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11797. $as_echo "$jar_resolved" >&6; }
  11798. found_jar=yes
  11799. PACKAGE_JAR_FILE=$jar_resolved
  11800. break 3
  11801. else
  11802. echo "configure: failed program was:" >&5
  11803. cat conftest.java >&5
  11804. if test -s conftest.java.output; then
  11805. STDOUT=`cat conftest.java.output`
  11806. fi
  11807. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11808. ac_java_classpath=$saved_ac_java_classpath
  11809. fi
  11810. fi
  11811. if test -f conftest.java.output; then
  11812. rm conftest.java.output
  11813. fi
  11814. else
  11815. echo "configure: failed program was:" >&5
  11816. cat conftest.java >&5
  11817. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11818. ac_java_classpath=$saved_ac_java_classpath
  11819. fi
  11820. fi
  11821. done
  11822. done
  11823. done
  11824. if test "$found_jar" = "no"; then
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11826. $as_echo "no" >&6; }
  11827. if test "" = "yes"; then
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar gluegen-rt used by Scilab 3D rendering (looking for package com.sun.gluegen.runtime.CPU)" >&5
  11829. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar gluegen-rt used by Scilab 3D rendering (looking for package com.sun.gluegen.runtime.CPU)" >&2;}
  11830. else
  11831. as_fn_error $? "Could not find or use the Java package/jar gluegen-rt used by Scilab 3D rendering (looking for package com.sun.gluegen.runtime.CPU)" "$LINENO" 5
  11832. fi
  11833. fi
  11834. GLUEGEN_RT=$PACKAGE_JAR_FILE
  11835. if test "$MACOSX" = 1; then
  11836. echo "Check of the presence of libgluegen-rt.jnilib disabled under Mac OS X"
  11837. else
  11838. LDFLAGS_save=$LDFLAGS
  11839. # Provide known paths where distribs/OS can store JNI libs
  11840. LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
  11841. LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
  11842. LDFLAGS="$LDFLAGS -L/usr/lib/gluegen -L/usr/lib64/gluegen" # RedHat
  11843. LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab thirdparties
  11844. symbol="Java_com_sun_gluegen_runtime_UnixDynamicLinkerImpl_dlclose__J"
  11845. as_ac_Lib=`$as_echo "ac_cv_lib_gluegen-rt_$symbol" | $as_tr_sh`
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $symbol in -lgluegen-rt" >&5
  11847. $as_echo_n "checking for $symbol in -lgluegen-rt... " >&6; }
  11848. if eval \${$as_ac_Lib+:} false; then :
  11849. $as_echo_n "(cached) " >&6
  11850. else
  11851. ac_check_lib_save_LIBS=$LIBS
  11852. LIBS="-lgluegen-rt -ldl $LIBS"
  11853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11854. /* end confdefs.h. */
  11855. /* Override any GCC internal prototype to avoid an error.
  11856. Use char because int might match the return type of a GCC
  11857. builtin and then its argument prototype would still apply. */
  11858. #ifdef __cplusplus
  11859. extern "C"
  11860. #endif
  11861. char $symbol ();
  11862. int
  11863. main ()
  11864. {
  11865. return $symbol ();
  11866. ;
  11867. return 0;
  11868. }
  11869. _ACEOF
  11870. if ac_fn_c_try_link "$LINENO"; then :
  11871. eval "$as_ac_Lib=yes"
  11872. else
  11873. eval "$as_ac_Lib=no"
  11874. fi
  11875. rm -f core conftest.err conftest.$ac_objext \
  11876. conftest$ac_exeext conftest.$ac_ext
  11877. LIBS=$ac_check_lib_save_LIBS
  11878. fi
  11879. eval ac_res=\$$as_ac_Lib
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11881. $as_echo "$ac_res" >&6; }
  11882. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11883. GLUEGEN_RT_LIBS="-lgluegen-rt"
  11884. else
  11885. as_fn_error $? "libgluegen-rt: Library missing (Cannot find symbol glTexParameterf). Check if libgluegen-rt - C/Java (JNI) interface for GLUEGEN - is installed and if the version is correct. Note that you might have to update etc/librarypath.xml to provide the actual path the the JNI libraries." "$LINENO" 5
  11886. fi
  11887. LDFLAGS=$LDFLAGS_save
  11888. fi
  11889. # Jhall
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jhall" >&5
  11891. $as_echo_n "checking jhall... " >&6; }
  11892. PACKAGE_JAR_FILE=
  11893. found_jar=no
  11894. saved_ac_java_classpath=$ac_java_classpath
  11895. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11896. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11897. for jar in "$jardir/jhall.jar" "$jardir/libjhall.jar" "$jardir/libjhall-java.jar" "$jardir/jhall*.jar"; do
  11898. # TODO check the behaviour when spaces
  11899. jars_resolved=`ls $jar 2>/dev/null`
  11900. for jar_resolved in $jars_resolved; do # If several jars matches
  11901. if test -e "$jar_resolved"; then
  11902. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11903. cat << \EOF > conftest.java
  11904. // #line 13549 "configure"
  11905. import javax.help.JHelp;
  11906. public class conftest {
  11907. public static void main(String[] argv) {
  11908. }
  11909. }
  11910. EOF
  11911. CLASSPATH=$ac_java_classpath
  11912. export CLASSPATH
  11913. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11914. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11915. if test ""no"" = "no"; then
  11916. echo "yes" >&5
  11917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11918. $as_echo "$jar_resolved" >&6; }
  11919. found_jar=yes
  11920. PACKAGE_JAR_FILE=$jar_resolved
  11921. break 3
  11922. else
  11923. cmd="$JAVA conftest"
  11924. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  11925. echo "yes" >&5
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11927. $as_echo "$jar_resolved" >&6; }
  11928. found_jar=yes
  11929. PACKAGE_JAR_FILE=$jar_resolved
  11930. break 3
  11931. else
  11932. echo "configure: failed program was:" >&5
  11933. cat conftest.java >&5
  11934. if test -s conftest.java.output; then
  11935. STDOUT=`cat conftest.java.output`
  11936. fi
  11937. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11938. ac_java_classpath=$saved_ac_java_classpath
  11939. fi
  11940. fi
  11941. if test -f conftest.java.output; then
  11942. rm conftest.java.output
  11943. fi
  11944. else
  11945. echo "configure: failed program was:" >&5
  11946. cat conftest.java >&5
  11947. echo "configure: CLASSPATH was $CLASSPATH" >&5
  11948. ac_java_classpath=$saved_ac_java_classpath
  11949. fi
  11950. fi
  11951. done
  11952. done
  11953. done
  11954. if test "$found_jar" = "no"; then
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11956. $as_echo "no" >&6; }
  11957. if test ""yes"" = "yes"; then
  11958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)" >&5
  11959. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)" >&2;}
  11960. else
  11961. as_fn_error $? "Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)" "$LINENO" 5
  11962. fi
  11963. fi
  11964. JHALL=$PACKAGE_JAR_FILE
  11965. # Named differently under Mandriva or Fedora
  11966. if test -z "$JHALL"; then
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking javahelp2" >&5
  11968. $as_echo_n "checking javahelp2... " >&6; }
  11969. PACKAGE_JAR_FILE=
  11970. found_jar=no
  11971. saved_ac_java_classpath=$ac_java_classpath
  11972. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  11973. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  11974. for jar in "$jardir/javahelp2.jar" "$jardir/libjavahelp2.jar" "$jardir/libjavahelp2-java.jar" "$jardir/javahelp2*.jar"; do
  11975. # TODO check the behaviour when spaces
  11976. jars_resolved=`ls $jar 2>/dev/null`
  11977. for jar_resolved in $jars_resolved; do # If several jars matches
  11978. if test -e "$jar_resolved"; then
  11979. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  11980. cat << \EOF > conftest.java
  11981. // #line 13645 "configure"
  11982. import javax.help.JHelp;
  11983. public class conftest {
  11984. public static void main(String[] argv) {
  11985. }
  11986. }
  11987. EOF
  11988. CLASSPATH=$ac_java_classpath
  11989. export CLASSPATH
  11990. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  11991. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  11992. if test ""no"" = "no"; then
  11993. echo "yes" >&5
  11994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  11995. $as_echo "$jar_resolved" >&6; }
  11996. found_jar=yes
  11997. PACKAGE_JAR_FILE=$jar_resolved
  11998. break 3
  11999. else
  12000. cmd="$JAVA conftest"
  12001. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12002. echo "yes" >&5
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12004. $as_echo "$jar_resolved" >&6; }
  12005. found_jar=yes
  12006. PACKAGE_JAR_FILE=$jar_resolved
  12007. break 3
  12008. else
  12009. echo "configure: failed program was:" >&5
  12010. cat conftest.java >&5
  12011. if test -s conftest.java.output; then
  12012. STDOUT=`cat conftest.java.output`
  12013. fi
  12014. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12015. ac_java_classpath=$saved_ac_java_classpath
  12016. fi
  12017. fi
  12018. if test -f conftest.java.output; then
  12019. rm conftest.java.output
  12020. fi
  12021. else
  12022. echo "configure: failed program was:" >&5
  12023. cat conftest.java >&5
  12024. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12025. ac_java_classpath=$saved_ac_java_classpath
  12026. fi
  12027. fi
  12028. done
  12029. done
  12030. done
  12031. if test "$found_jar" = "no"; then
  12032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12033. $as_echo "no" >&6; }
  12034. if test "" = "yes"; then
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar javahelp2 used by Scilab Help Browser (looking for package javax.help.JHelp)" >&5
  12036. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar javahelp2 used by Scilab Help Browser (looking for package javax.help.JHelp)" >&2;}
  12037. else
  12038. as_fn_error $? "Could not find or use the Java package/jar javahelp2 used by Scilab Help Browser (looking for package javax.help.JHelp)" "$LINENO" 5
  12039. fi
  12040. fi
  12041. JHALL=$PACKAGE_JAR_FILE
  12042. fi
  12043. # Console API
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jrosetta-API" >&5
  12045. $as_echo_n "checking jrosetta-API... " >&6; }
  12046. PACKAGE_JAR_FILE=
  12047. found_jar=no
  12048. saved_ac_java_classpath=$ac_java_classpath
  12049. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12050. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12051. for jar in "$jardir/jrosetta-API.jar" "$jardir/libjrosetta-API.jar" "$jardir/libjrosetta-API-java.jar" "$jardir/jrosetta-API*.jar"; do
  12052. # TODO check the behaviour when spaces
  12053. jars_resolved=`ls $jar 2>/dev/null`
  12054. for jar_resolved in $jars_resolved; do # If several jars matches
  12055. if test -e "$jar_resolved"; then
  12056. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12057. cat << \EOF > conftest.java
  12058. // #line 13742 "configure"
  12059. import com.artenum.rosetta.interfaces.core.ConsoleConfiguration;
  12060. public class conftest {
  12061. public static void main(String[] argv) {
  12062. }
  12063. }
  12064. EOF
  12065. CLASSPATH=$ac_java_classpath
  12066. export CLASSPATH
  12067. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12068. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12069. if test ""no"" = "no"; then
  12070. echo "yes" >&5
  12071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12072. $as_echo "$jar_resolved" >&6; }
  12073. found_jar=yes
  12074. PACKAGE_JAR_FILE=$jar_resolved
  12075. break 3
  12076. else
  12077. cmd="$JAVA conftest"
  12078. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12079. echo "yes" >&5
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12081. $as_echo "$jar_resolved" >&6; }
  12082. found_jar=yes
  12083. PACKAGE_JAR_FILE=$jar_resolved
  12084. break 3
  12085. else
  12086. echo "configure: failed program was:" >&5
  12087. cat conftest.java >&5
  12088. if test -s conftest.java.output; then
  12089. STDOUT=`cat conftest.java.output`
  12090. fi
  12091. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12092. ac_java_classpath=$saved_ac_java_classpath
  12093. fi
  12094. fi
  12095. if test -f conftest.java.output; then
  12096. rm conftest.java.output
  12097. fi
  12098. else
  12099. echo "configure: failed program was:" >&5
  12100. cat conftest.java >&5
  12101. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12102. ac_java_classpath=$saved_ac_java_classpath
  12103. fi
  12104. fi
  12105. done
  12106. done
  12107. done
  12108. if test "$found_jar" = "no"; then
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12110. $as_echo "no" >&6; }
  12111. if test ""yes"" = "yes"; then
  12112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jrosetta-API used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&5
  12113. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jrosetta-API used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&2;}
  12114. else
  12115. as_fn_error $? "Could not find or use the Java package/jar jrosetta-API used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" "$LINENO" 5
  12116. fi
  12117. fi
  12118. JROSETTA_API=$PACKAGE_JAR_FILE
  12119. if test -z "$JROSETTA_API"; then
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jrosetta-api" >&5
  12121. $as_echo_n "checking jrosetta-api... " >&6; }
  12122. PACKAGE_JAR_FILE=
  12123. found_jar=no
  12124. saved_ac_java_classpath=$ac_java_classpath
  12125. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12126. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12127. for jar in "$jardir/jrosetta-api.jar" "$jardir/libjrosetta-api.jar" "$jardir/libjrosetta-api-java.jar" "$jardir/jrosetta-api*.jar"; do
  12128. # TODO check the behaviour when spaces
  12129. jars_resolved=`ls $jar 2>/dev/null`
  12130. for jar_resolved in $jars_resolved; do # If several jars matches
  12131. if test -e "$jar_resolved"; then
  12132. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12133. cat << \EOF > conftest.java
  12134. // #line 13836 "configure"
  12135. import com.artenum.rosetta.interfaces.core.ConsoleConfiguration;
  12136. public class conftest {
  12137. public static void main(String[] argv) {
  12138. }
  12139. }
  12140. EOF
  12141. CLASSPATH=$ac_java_classpath
  12142. export CLASSPATH
  12143. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12144. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12145. if test ""no"" = "no"; then
  12146. echo "yes" >&5
  12147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12148. $as_echo "$jar_resolved" >&6; }
  12149. found_jar=yes
  12150. PACKAGE_JAR_FILE=$jar_resolved
  12151. break 3
  12152. else
  12153. cmd="$JAVA conftest"
  12154. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12155. echo "yes" >&5
  12156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12157. $as_echo "$jar_resolved" >&6; }
  12158. found_jar=yes
  12159. PACKAGE_JAR_FILE=$jar_resolved
  12160. break 3
  12161. else
  12162. echo "configure: failed program was:" >&5
  12163. cat conftest.java >&5
  12164. if test -s conftest.java.output; then
  12165. STDOUT=`cat conftest.java.output`
  12166. fi
  12167. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12168. ac_java_classpath=$saved_ac_java_classpath
  12169. fi
  12170. fi
  12171. if test -f conftest.java.output; then
  12172. rm conftest.java.output
  12173. fi
  12174. else
  12175. echo "configure: failed program was:" >&5
  12176. cat conftest.java >&5
  12177. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12178. ac_java_classpath=$saved_ac_java_classpath
  12179. fi
  12180. fi
  12181. done
  12182. done
  12183. done
  12184. if test "$found_jar" = "no"; then
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12186. $as_echo "no" >&6; }
  12187. if test "" = "yes"; then
  12188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jrosetta-api used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&5
  12189. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jrosetta-api used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&2;}
  12190. else
  12191. as_fn_error $? "Could not find or use the Java package/jar jrosetta-api used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" "$LINENO" 5
  12192. fi
  12193. fi
  12194. JROSETTA_API=$PACKAGE_JAR_FILE
  12195. fi
  12196. # Console Core
  12197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jrosetta-engine" >&5
  12198. $as_echo_n "checking jrosetta-engine... " >&6; }
  12199. PACKAGE_JAR_FILE=
  12200. found_jar=no
  12201. saved_ac_java_classpath=$ac_java_classpath
  12202. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12203. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12204. for jar in "$jardir/jrosetta-engine.jar" "$jardir/libjrosetta-engine.jar" "$jardir/libjrosetta-engine-java.jar" "$jardir/jrosetta-engine*.jar"; do
  12205. # TODO check the behaviour when spaces
  12206. jars_resolved=`ls $jar 2>/dev/null`
  12207. for jar_resolved in $jars_resolved; do # If several jars matches
  12208. if test -e "$jar_resolved"; then
  12209. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12210. cat << \EOF > conftest.java
  12211. // #line 13933 "configure"
  12212. import com.artenum.rosetta.core.action.AbstractConsoleAction;
  12213. public class conftest {
  12214. public static void main(String[] argv) {
  12215. }
  12216. }
  12217. EOF
  12218. CLASSPATH=$ac_java_classpath
  12219. export CLASSPATH
  12220. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12221. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12222. if test ""no"" = "no"; then
  12223. echo "yes" >&5
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12225. $as_echo "$jar_resolved" >&6; }
  12226. found_jar=yes
  12227. PACKAGE_JAR_FILE=$jar_resolved
  12228. break 3
  12229. else
  12230. cmd="$JAVA conftest"
  12231. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12232. echo "yes" >&5
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12234. $as_echo "$jar_resolved" >&6; }
  12235. found_jar=yes
  12236. PACKAGE_JAR_FILE=$jar_resolved
  12237. break 3
  12238. else
  12239. echo "configure: failed program was:" >&5
  12240. cat conftest.java >&5
  12241. if test -s conftest.java.output; then
  12242. STDOUT=`cat conftest.java.output`
  12243. fi
  12244. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12245. ac_java_classpath=$saved_ac_java_classpath
  12246. fi
  12247. fi
  12248. if test -f conftest.java.output; then
  12249. rm conftest.java.output
  12250. fi
  12251. else
  12252. echo "configure: failed program was:" >&5
  12253. cat conftest.java >&5
  12254. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12255. ac_java_classpath=$saved_ac_java_classpath
  12256. fi
  12257. fi
  12258. done
  12259. done
  12260. done
  12261. if test "$found_jar" = "no"; then
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12263. $as_echo "no" >&6; }
  12264. if test "" = "yes"; then
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jrosetta-engine used by JRosetta : Console Core Artenum / Scilab (looking for package com.artenum.rosetta.core.action.AbstractConsoleAction)" >&5
  12266. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jrosetta-engine used by JRosetta : Console Core Artenum / Scilab (looking for package com.artenum.rosetta.core.action.AbstractConsoleAction)" >&2;}
  12267. else
  12268. as_fn_error $? "Could not find or use the Java package/jar jrosetta-engine used by JRosetta : Console Core Artenum / Scilab (looking for package com.artenum.rosetta.core.action.AbstractConsoleAction)" "$LINENO" 5
  12269. fi
  12270. fi
  12271. JROSETTA_ENGINE=$PACKAGE_JAR_FILE
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.0.4) of jrosetta-engine" >&5
  12273. $as_echo_n "checking minimal version (1.0.4) of jrosetta-engine... " >&6; }
  12274. saved_ac_java_classpath=$ac_java_classpath
  12275. export ac_java_classpath="$JROSETTA_ENGINE:$ac_java_classpath"
  12276. if test "x" == "x"; then
  12277. cat << \EOF > conftest.java
  12278. // #line 14018 "configure"
  12279. import com.artenum.rosetta.util.ConfigurationBuilder;
  12280. public class conftest {
  12281. public static void main(String[] argv) {
  12282. String minVersion="1.0.4";
  12283. System.out.println(ConfigurationBuilder.getVersion());
  12284. if (minVersion.compareTo(ConfigurationBuilder.getVersion()) > 0) {
  12285. System.exit(-1);
  12286. }
  12287. }
  12288. }
  12289. EOF
  12290. CLASSPATH=$ac_java_classpath
  12291. export CLASSPATH
  12292. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12293. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12294. if test ""yes"" = "no"; then
  12295. echo "yes" >&5
  12296. echo "yes"
  12297. else
  12298. cmd="$JAVA conftest"
  12299. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12300. echo "yes" >&5
  12301. echo "yes"
  12302. else
  12303. echo "configure: failed program was:" >&5
  12304. cat conftest.java >&5
  12305. if test -s conftest.java.output; then
  12306. STDOUT=`cat conftest.java.output`
  12307. fi
  12308. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12309. as_fn_error $? "Wrong version of jrosetta-engine. Expected at least 1.0.4. Found $STDOUT" "$LINENO" 5
  12310. fi
  12311. fi
  12312. if test -f conftest.java.output; then
  12313. rm conftest.java.output
  12314. fi
  12315. else
  12316. echo "configure: failed program was:" >&5
  12317. cat conftest.java >&5
  12318. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12319. as_fn_error $? "Wrong version of jrosetta-engine. Expected at least 1.0.4. Found $STDOUT" "$LINENO" 5
  12320. fi
  12321. else
  12322. cat << \EOF > conftest.java
  12323. // #line 14069 "configure"
  12324. import com.artenum.rosetta.util.ConfigurationBuilder;
  12325. public class conftest {
  12326. public static void main(String[] argv) {
  12327. String minVersion="1.0.4";
  12328. System.out.println(ConfigurationBuilder.getVersion());
  12329. if (minVersion.compareTo(ConfigurationBuilder.getVersion()) != 0) {
  12330. System.exit(-1);
  12331. }
  12332. }
  12333. }
  12334. EOF
  12335. CLASSPATH=$ac_java_classpath
  12336. export CLASSPATH
  12337. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12338. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12339. if test ""yes"" = "no"; then
  12340. echo "yes" >&5
  12341. echo "yes"
  12342. else
  12343. cmd="$JAVA conftest"
  12344. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12345. echo "yes" >&5
  12346. echo "yes"
  12347. else
  12348. echo "configure: failed program was:" >&5
  12349. cat conftest.java >&5
  12350. if test -s conftest.java.output; then
  12351. STDOUT=`cat conftest.java.output`
  12352. fi
  12353. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12354. as_fn_error $? "Wrong version of jrosetta-engine. Expected exact version 1.0.4. Found $STDOUT" "$LINENO" 5
  12355. fi
  12356. fi
  12357. if test -f conftest.java.output; then
  12358. rm conftest.java.output
  12359. fi
  12360. else
  12361. echo "configure: failed program was:" >&5
  12362. cat conftest.java >&5
  12363. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12364. as_fn_error $? "Wrong version of jrosetta-engine. Expected exact version 1.0.4. Found $STDOUT" "$LINENO" 5
  12365. fi
  12366. fi
  12367. ac_java_classpath=$saved_ac_java_classpath
  12368. # MathML rendering solution
  12369. # Used in both graphic & help
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jeuclid-core" >&5
  12371. $as_echo_n "checking jeuclid-core... " >&6; }
  12372. PACKAGE_JAR_FILE=
  12373. found_jar=no
  12374. saved_ac_java_classpath=$ac_java_classpath
  12375. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12376. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12377. for jar in "$jardir/jeuclid-core.jar" "$jardir/libjeuclid-core.jar" "$jardir/libjeuclid-core-java.jar" "$jardir/jeuclid-core*.jar"; do
  12378. # TODO check the behaviour when spaces
  12379. jars_resolved=`ls $jar 2>/dev/null`
  12380. for jar_resolved in $jars_resolved; do # If several jars matches
  12381. if test -e "$jar_resolved"; then
  12382. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12383. cat << \EOF > conftest.java
  12384. // #line 14141 "configure"
  12385. import net.sourceforge.jeuclid.LayoutContext;
  12386. public class conftest {
  12387. public static void main(String[] argv) {
  12388. }
  12389. }
  12390. EOF
  12391. CLASSPATH=$ac_java_classpath
  12392. export CLASSPATH
  12393. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12394. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12395. if test ""no"" = "no"; then
  12396. echo "yes" >&5
  12397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12398. $as_echo "$jar_resolved" >&6; }
  12399. found_jar=yes
  12400. PACKAGE_JAR_FILE=$jar_resolved
  12401. break 3
  12402. else
  12403. cmd="$JAVA conftest"
  12404. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12405. echo "yes" >&5
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12407. $as_echo "$jar_resolved" >&6; }
  12408. found_jar=yes
  12409. PACKAGE_JAR_FILE=$jar_resolved
  12410. break 3
  12411. else
  12412. echo "configure: failed program was:" >&5
  12413. cat conftest.java >&5
  12414. if test -s conftest.java.output; then
  12415. STDOUT=`cat conftest.java.output`
  12416. fi
  12417. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12418. ac_java_classpath=$saved_ac_java_classpath
  12419. fi
  12420. fi
  12421. if test -f conftest.java.output; then
  12422. rm conftest.java.output
  12423. fi
  12424. else
  12425. echo "configure: failed program was:" >&5
  12426. cat conftest.java >&5
  12427. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12428. ac_java_classpath=$saved_ac_java_classpath
  12429. fi
  12430. fi
  12431. done
  12432. done
  12433. done
  12434. if test "$found_jar" = "no"; then
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12436. $as_echo "no" >&6; }
  12437. if test "" = "yes"; then
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jeuclid-core used by MathML rendering solution (at least version 3.1.X) (looking for package net.sourceforge.jeuclid.LayoutContext)" >&5
  12439. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jeuclid-core used by MathML rendering solution (at least version 3.1.X) (looking for package net.sourceforge.jeuclid.LayoutContext)" >&2;}
  12440. else
  12441. as_fn_error $? "Could not find or use the Java package/jar jeuclid-core used by MathML rendering solution (at least version 3.1.X) (looking for package net.sourceforge.jeuclid.LayoutContext)" "$LINENO" 5
  12442. fi
  12443. fi
  12444. JEUCLID_CORE=$PACKAGE_JAR_FILE
  12445. ################ Mandatory for graphic_export features #####
  12446. # XML to PDF/other Translator
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking fop" >&5
  12448. $as_echo_n "checking fop... " >&6; }
  12449. PACKAGE_JAR_FILE=
  12450. found_jar=no
  12451. saved_ac_java_classpath=$ac_java_classpath
  12452. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12453. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12454. for jar in "$jardir/fop.jar" "$jardir/libfop.jar" "$jardir/libfop-java.jar" "$jardir/fop*.jar"; do
  12455. # TODO check the behaviour when spaces
  12456. jars_resolved=`ls $jar 2>/dev/null`
  12457. for jar_resolved in $jars_resolved; do # If several jars matches
  12458. if test -e "$jar_resolved"; then
  12459. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12460. cat << \EOF > conftest.java
  12461. // #line 14239 "configure"
  12462. import org.apache.fop.pdf.PDFInfo;
  12463. public class conftest {
  12464. public static void main(String[] argv) {
  12465. }
  12466. }
  12467. EOF
  12468. CLASSPATH=$ac_java_classpath
  12469. export CLASSPATH
  12470. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12471. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12472. if test ""no"" = "no"; then
  12473. echo "yes" >&5
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12475. $as_echo "$jar_resolved" >&6; }
  12476. found_jar=yes
  12477. PACKAGE_JAR_FILE=$jar_resolved
  12478. break 3
  12479. else
  12480. cmd="$JAVA conftest"
  12481. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12482. echo "yes" >&5
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12484. $as_echo "$jar_resolved" >&6; }
  12485. found_jar=yes
  12486. PACKAGE_JAR_FILE=$jar_resolved
  12487. break 3
  12488. else
  12489. echo "configure: failed program was:" >&5
  12490. cat conftest.java >&5
  12491. if test -s conftest.java.output; then
  12492. STDOUT=`cat conftest.java.output`
  12493. fi
  12494. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12495. ac_java_classpath=$saved_ac_java_classpath
  12496. fi
  12497. fi
  12498. if test -f conftest.java.output; then
  12499. rm conftest.java.output
  12500. fi
  12501. else
  12502. echo "configure: failed program was:" >&5
  12503. cat conftest.java >&5
  12504. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12505. ac_java_classpath=$saved_ac_java_classpath
  12506. fi
  12507. fi
  12508. done
  12509. done
  12510. done
  12511. if test "$found_jar" = "no"; then
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12513. $as_echo "no" >&6; }
  12514. if test "" = "yes"; then
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar fop used by XML to PDF Translator (fop) (looking for package org.apache.fop.pdf.PDFInfo)" >&5
  12516. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar fop used by XML to PDF Translator (fop) (looking for package org.apache.fop.pdf.PDFInfo)" >&2;}
  12517. else
  12518. as_fn_error $? "Could not find or use the Java package/jar fop used by XML to PDF Translator (fop) (looking for package org.apache.fop.pdf.PDFInfo)" "$LINENO" 5
  12519. fi
  12520. fi
  12521. FOP=$PACKAGE_JAR_FILE
  12522. # xml.apache.org SVG Library (under mandriva for example)
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking batik-all" >&5
  12524. $as_echo_n "checking batik-all... " >&6; }
  12525. PACKAGE_JAR_FILE=
  12526. found_jar=no
  12527. saved_ac_java_classpath=$ac_java_classpath
  12528. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12529. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12530. for jar in "$jardir/batik-all.jar" "$jardir/libbatik-all.jar" "$jardir/libbatik-all-java.jar" "$jardir/batik-all*.jar"; do
  12531. # TODO check the behaviour when spaces
  12532. jars_resolved=`ls $jar 2>/dev/null`
  12533. for jar_resolved in $jars_resolved; do # If several jars matches
  12534. if test -e "$jar_resolved"; then
  12535. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12536. cat << \EOF > conftest.java
  12537. // #line 14335 "configure"
  12538. import org.apache.batik.parser.Parser;
  12539. public class conftest {
  12540. public static void main(String[] argv) {
  12541. }
  12542. }
  12543. EOF
  12544. CLASSPATH=$ac_java_classpath
  12545. export CLASSPATH
  12546. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12547. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12548. if test ""no"" = "no"; then
  12549. echo "yes" >&5
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12551. $as_echo "$jar_resolved" >&6; }
  12552. found_jar=yes
  12553. PACKAGE_JAR_FILE=$jar_resolved
  12554. break 3
  12555. else
  12556. cmd="$JAVA conftest"
  12557. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12558. echo "yes" >&5
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12560. $as_echo "$jar_resolved" >&6; }
  12561. found_jar=yes
  12562. PACKAGE_JAR_FILE=$jar_resolved
  12563. break 3
  12564. else
  12565. echo "configure: failed program was:" >&5
  12566. cat conftest.java >&5
  12567. if test -s conftest.java.output; then
  12568. STDOUT=`cat conftest.java.output`
  12569. fi
  12570. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12571. ac_java_classpath=$saved_ac_java_classpath
  12572. fi
  12573. fi
  12574. if test -f conftest.java.output; then
  12575. rm conftest.java.output
  12576. fi
  12577. else
  12578. echo "configure: failed program was:" >&5
  12579. cat conftest.java >&5
  12580. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12581. ac_java_classpath=$saved_ac_java_classpath
  12582. fi
  12583. fi
  12584. done
  12585. done
  12586. done
  12587. if test "$found_jar" = "no"; then
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12589. $as_echo "no" >&6; }
  12590. if test ""yes"" = "yes"; then
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar batik-all used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&5
  12592. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar batik-all used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&2;}
  12593. else
  12594. as_fn_error $? "Could not find or use the Java package/jar batik-all used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" "$LINENO" 5
  12595. fi
  12596. fi
  12597. BATIK=$PACKAGE_JAR_FILE
  12598. if test -z "$BATIK"; then
  12599. # Other other distribs
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking batik" >&5
  12601. $as_echo_n "checking batik... " >&6; }
  12602. PACKAGE_JAR_FILE=
  12603. found_jar=no
  12604. saved_ac_java_classpath=$ac_java_classpath
  12605. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12606. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12607. for jar in "$jardir/batik.jar" "$jardir/libbatik.jar" "$jardir/libbatik-java.jar" "$jardir/batik*.jar"; do
  12608. # TODO check the behaviour when spaces
  12609. jars_resolved=`ls $jar 2>/dev/null`
  12610. for jar_resolved in $jars_resolved; do # If several jars matches
  12611. if test -e "$jar_resolved"; then
  12612. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12613. cat << \EOF > conftest.java
  12614. // #line 14431 "configure"
  12615. import org.apache.batik.parser.Parser;
  12616. public class conftest {
  12617. public static void main(String[] argv) {
  12618. }
  12619. }
  12620. EOF
  12621. CLASSPATH=$ac_java_classpath
  12622. export CLASSPATH
  12623. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12624. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12625. if test ""no"" = "no"; then
  12626. echo "yes" >&5
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12628. $as_echo "$jar_resolved" >&6; }
  12629. found_jar=yes
  12630. PACKAGE_JAR_FILE=$jar_resolved
  12631. break 3
  12632. else
  12633. cmd="$JAVA conftest"
  12634. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12635. echo "yes" >&5
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12637. $as_echo "$jar_resolved" >&6; }
  12638. found_jar=yes
  12639. PACKAGE_JAR_FILE=$jar_resolved
  12640. break 3
  12641. else
  12642. echo "configure: failed program was:" >&5
  12643. cat conftest.java >&5
  12644. if test -s conftest.java.output; then
  12645. STDOUT=`cat conftest.java.output`
  12646. fi
  12647. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12648. ac_java_classpath=$saved_ac_java_classpath
  12649. fi
  12650. fi
  12651. if test -f conftest.java.output; then
  12652. rm conftest.java.output
  12653. fi
  12654. else
  12655. echo "configure: failed program was:" >&5
  12656. cat conftest.java >&5
  12657. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12658. ac_java_classpath=$saved_ac_java_classpath
  12659. fi
  12660. fi
  12661. done
  12662. done
  12663. done
  12664. if test "$found_jar" = "no"; then
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12666. $as_echo "no" >&6; }
  12667. if test "" = "yes"; then
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar batik used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&5
  12669. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar batik used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&2;}
  12670. else
  12671. as_fn_error $? "Could not find or use the Java package/jar batik used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" "$LINENO" 5
  12672. fi
  12673. fi
  12674. BATIK=$PACKAGE_JAR_FILE
  12675. fi
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.7) of batik" >&5
  12677. $as_echo_n "checking minimal version (1.7) of batik... " >&6; }
  12678. saved_ac_java_classpath=$ac_java_classpath
  12679. export ac_java_classpath="$BATIK:$ac_java_classpath"
  12680. if test "x" == "x"; then
  12681. cat << \EOF > conftest.java
  12682. // #line 14517 "configure"
  12683. import org.apache.batik.Version;
  12684. public class conftest {
  12685. public static void main(String[] argv) {
  12686. String minVersion="1.7";
  12687. System.out.println(Version.getVersion());
  12688. if (minVersion.compareTo(Version.getVersion()) > 0) {
  12689. System.exit(-1);
  12690. }
  12691. }
  12692. }
  12693. EOF
  12694. CLASSPATH=$ac_java_classpath
  12695. export CLASSPATH
  12696. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12697. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12698. if test ""yes"" = "no"; then
  12699. echo "yes" >&5
  12700. echo "yes"
  12701. else
  12702. cmd="$JAVA conftest"
  12703. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12704. echo "yes" >&5
  12705. echo "yes"
  12706. else
  12707. echo "configure: failed program was:" >&5
  12708. cat conftest.java >&5
  12709. if test -s conftest.java.output; then
  12710. STDOUT=`cat conftest.java.output`
  12711. fi
  12712. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12713. as_fn_error $? "Wrong version of batik. Expected at least 1.7. Found $STDOUT" "$LINENO" 5
  12714. fi
  12715. fi
  12716. if test -f conftest.java.output; then
  12717. rm conftest.java.output
  12718. fi
  12719. else
  12720. echo "configure: failed program was:" >&5
  12721. cat conftest.java >&5
  12722. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12723. as_fn_error $? "Wrong version of batik. Expected at least 1.7. Found $STDOUT" "$LINENO" 5
  12724. fi
  12725. else
  12726. cat << \EOF > conftest.java
  12727. // #line 14568 "configure"
  12728. import org.apache.batik.Version;
  12729. public class conftest {
  12730. public static void main(String[] argv) {
  12731. String minVersion="1.7";
  12732. System.out.println(Version.getVersion());
  12733. if (minVersion.compareTo(Version.getVersion()) != 0) {
  12734. System.exit(-1);
  12735. }
  12736. }
  12737. }
  12738. EOF
  12739. CLASSPATH=$ac_java_classpath
  12740. export CLASSPATH
  12741. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12742. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12743. if test ""yes"" = "no"; then
  12744. echo "yes" >&5
  12745. echo "yes"
  12746. else
  12747. cmd="$JAVA conftest"
  12748. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12749. echo "yes" >&5
  12750. echo "yes"
  12751. else
  12752. echo "configure: failed program was:" >&5
  12753. cat conftest.java >&5
  12754. if test -s conftest.java.output; then
  12755. STDOUT=`cat conftest.java.output`
  12756. fi
  12757. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12758. as_fn_error $? "Wrong version of batik. Expected exact version 1.7. Found $STDOUT" "$LINENO" 5
  12759. fi
  12760. fi
  12761. if test -f conftest.java.output; then
  12762. rm conftest.java.output
  12763. fi
  12764. else
  12765. echo "configure: failed program was:" >&5
  12766. cat conftest.java >&5
  12767. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12768. as_fn_error $? "Wrong version of batik. Expected exact version 1.7. Found $STDOUT" "$LINENO" 5
  12769. fi
  12770. fi
  12771. ac_java_classpath=$saved_ac_java_classpath
  12772. # Commons I/O library
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking commons-io" >&5
  12774. $as_echo_n "checking commons-io... " >&6; }
  12775. PACKAGE_JAR_FILE=
  12776. found_jar=no
  12777. saved_ac_java_classpath=$ac_java_classpath
  12778. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12779. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12780. for jar in "$jardir/commons-io.jar" "$jardir/libcommons-io.jar" "$jardir/libcommons-io-java.jar" "$jardir/commons-io*.jar"; do
  12781. # TODO check the behaviour when spaces
  12782. jars_resolved=`ls $jar 2>/dev/null`
  12783. for jar_resolved in $jars_resolved; do # If several jars matches
  12784. if test -e "$jar_resolved"; then
  12785. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12786. cat << \EOF > conftest.java
  12787. // #line 14638 "configure"
  12788. import org.apache.commons.io.output.CountingOutputStream;
  12789. public class conftest {
  12790. public static void main(String[] argv) {
  12791. }
  12792. }
  12793. EOF
  12794. CLASSPATH=$ac_java_classpath
  12795. export CLASSPATH
  12796. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12797. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12798. if test ""no"" = "no"; then
  12799. echo "yes" >&5
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12801. $as_echo "$jar_resolved" >&6; }
  12802. found_jar=yes
  12803. PACKAGE_JAR_FILE=$jar_resolved
  12804. break 3
  12805. else
  12806. cmd="$JAVA conftest"
  12807. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12808. echo "yes" >&5
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12810. $as_echo "$jar_resolved" >&6; }
  12811. found_jar=yes
  12812. PACKAGE_JAR_FILE=$jar_resolved
  12813. break 3
  12814. else
  12815. echo "configure: failed program was:" >&5
  12816. cat conftest.java >&5
  12817. if test -s conftest.java.output; then
  12818. STDOUT=`cat conftest.java.output`
  12819. fi
  12820. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12821. ac_java_classpath=$saved_ac_java_classpath
  12822. fi
  12823. fi
  12824. if test -f conftest.java.output; then
  12825. rm conftest.java.output
  12826. fi
  12827. else
  12828. echo "configure: failed program was:" >&5
  12829. cat conftest.java >&5
  12830. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12831. ac_java_classpath=$saved_ac_java_classpath
  12832. fi
  12833. fi
  12834. done
  12835. done
  12836. done
  12837. if test "$found_jar" = "no"; then
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12839. $as_echo "no" >&6; }
  12840. if test "" = "yes"; then
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar commons-io used by Commons I/O library (looking for package org.apache.commons.io.output.CountingOutputStream)" >&5
  12842. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar commons-io used by Commons I/O library (looking for package org.apache.commons.io.output.CountingOutputStream)" >&2;}
  12843. else
  12844. as_fn_error $? "Could not find or use the Java package/jar commons-io used by Commons I/O library (looking for package org.apache.commons.io.output.CountingOutputStream)" "$LINENO" 5
  12845. fi
  12846. fi
  12847. COMMONS_IO=$PACKAGE_JAR_FILE
  12848. # XML graphics common
  12849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking xmlgraphics-commons" >&5
  12850. $as_echo_n "checking xmlgraphics-commons... " >&6; }
  12851. PACKAGE_JAR_FILE=
  12852. found_jar=no
  12853. saved_ac_java_classpath=$ac_java_classpath
  12854. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12855. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12856. for jar in "$jardir/xmlgraphics-commons.jar" "$jardir/libxmlgraphics-commons.jar" "$jardir/libxmlgraphics-commons-java.jar" "$jardir/xmlgraphics-commons*.jar"; do
  12857. # TODO check the behaviour when spaces
  12858. jars_resolved=`ls $jar 2>/dev/null`
  12859. for jar_resolved in $jars_resolved; do # If several jars matches
  12860. if test -e "$jar_resolved"; then
  12861. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12862. cat << \EOF > conftest.java
  12863. // #line 14734 "configure"
  12864. import org.apache.xmlgraphics.util.Service;
  12865. public class conftest {
  12866. public static void main(String[] argv) {
  12867. }
  12868. }
  12869. EOF
  12870. CLASSPATH=$ac_java_classpath
  12871. export CLASSPATH
  12872. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12873. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12874. if test ""no"" = "no"; then
  12875. echo "yes" >&5
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12877. $as_echo "$jar_resolved" >&6; }
  12878. found_jar=yes
  12879. PACKAGE_JAR_FILE=$jar_resolved
  12880. break 3
  12881. else
  12882. cmd="$JAVA conftest"
  12883. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12884. echo "yes" >&5
  12885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12886. $as_echo "$jar_resolved" >&6; }
  12887. found_jar=yes
  12888. PACKAGE_JAR_FILE=$jar_resolved
  12889. break 3
  12890. else
  12891. echo "configure: failed program was:" >&5
  12892. cat conftest.java >&5
  12893. if test -s conftest.java.output; then
  12894. STDOUT=`cat conftest.java.output`
  12895. fi
  12896. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12897. ac_java_classpath=$saved_ac_java_classpath
  12898. fi
  12899. fi
  12900. if test -f conftest.java.output; then
  12901. rm conftest.java.output
  12902. fi
  12903. else
  12904. echo "configure: failed program was:" >&5
  12905. cat conftest.java >&5
  12906. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12907. ac_java_classpath=$saved_ac_java_classpath
  12908. fi
  12909. fi
  12910. done
  12911. done
  12912. done
  12913. if test "$found_jar" = "no"; then
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12915. $as_echo "no" >&6; }
  12916. if test "" = "yes"; then
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar xmlgraphics-commons used by Commons graphics library (looking for package org.apache.xmlgraphics.util.Service)" >&5
  12918. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar xmlgraphics-commons used by Commons graphics library (looking for package org.apache.xmlgraphics.util.Service)" >&2;}
  12919. else
  12920. as_fn_error $? "Could not find or use the Java package/jar xmlgraphics-commons used by Commons graphics library (looking for package org.apache.xmlgraphics.util.Service)" "$LINENO" 5
  12921. fi
  12922. fi
  12923. XMLGRAPHICS_COMMONS=$PACKAGE_JAR_FILE
  12924. # Avalon Framework (PDF)
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking avalon-framework" >&5
  12926. $as_echo_n "checking avalon-framework... " >&6; }
  12927. PACKAGE_JAR_FILE=
  12928. found_jar=no
  12929. saved_ac_java_classpath=$ac_java_classpath
  12930. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  12931. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  12932. for jar in "$jardir/avalon-framework.jar" "$jardir/libavalon-framework.jar" "$jardir/libavalon-framework-java.jar" "$jardir/avalon-framework*.jar"; do
  12933. # TODO check the behaviour when spaces
  12934. jars_resolved=`ls $jar 2>/dev/null`
  12935. for jar_resolved in $jars_resolved; do # If several jars matches
  12936. if test -e "$jar_resolved"; then
  12937. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  12938. cat << \EOF > conftest.java
  12939. // #line 14830 "configure"
  12940. import org.apache.avalon.framework.configuration.ConfigurationException;
  12941. public class conftest {
  12942. public static void main(String[] argv) {
  12943. }
  12944. }
  12945. EOF
  12946. CLASSPATH=$ac_java_classpath
  12947. export CLASSPATH
  12948. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  12949. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  12950. if test ""no"" = "no"; then
  12951. echo "yes" >&5
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12953. $as_echo "$jar_resolved" >&6; }
  12954. found_jar=yes
  12955. PACKAGE_JAR_FILE=$jar_resolved
  12956. break 3
  12957. else
  12958. cmd="$JAVA conftest"
  12959. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  12960. echo "yes" >&5
  12961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  12962. $as_echo "$jar_resolved" >&6; }
  12963. found_jar=yes
  12964. PACKAGE_JAR_FILE=$jar_resolved
  12965. break 3
  12966. else
  12967. echo "configure: failed program was:" >&5
  12968. cat conftest.java >&5
  12969. if test -s conftest.java.output; then
  12970. STDOUT=`cat conftest.java.output`
  12971. fi
  12972. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12973. ac_java_classpath=$saved_ac_java_classpath
  12974. fi
  12975. fi
  12976. if test -f conftest.java.output; then
  12977. rm conftest.java.output
  12978. fi
  12979. else
  12980. echo "configure: failed program was:" >&5
  12981. cat conftest.java >&5
  12982. echo "configure: CLASSPATH was $CLASSPATH" >&5
  12983. ac_java_classpath=$saved_ac_java_classpath
  12984. fi
  12985. fi
  12986. done
  12987. done
  12988. done
  12989. if test "$found_jar" = "no"; then
  12990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12991. $as_echo "no" >&6; }
  12992. if test "" = "yes"; then
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar avalon-framework used by Common framework for Java server application (looking for package org.apache.avalon.framework.configuration.ConfigurationException)" >&5
  12994. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar avalon-framework used by Common framework for Java server application (looking for package org.apache.avalon.framework.configuration.ConfigurationException)" >&2;}
  12995. else
  12996. as_fn_error $? "Could not find or use the Java package/jar avalon-framework used by Common framework for Java server application (looking for package org.apache.avalon.framework.configuration.ConfigurationException)" "$LINENO" 5
  12997. fi
  12998. fi
  12999. AVALON_FRAMEWORK=$PACKAGE_JAR_FILE
  13000. # XML API EXT (conversion of a SVG => PNG)
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml-apis-ext" >&5
  13002. $as_echo_n "checking xml-apis-ext... " >&6; }
  13003. PACKAGE_JAR_FILE=
  13004. found_jar=no
  13005. saved_ac_java_classpath=$ac_java_classpath
  13006. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13007. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13008. for jar in "$jardir/xml-apis-ext.jar" "$jardir/libxml-apis-ext.jar" "$jardir/libxml-apis-ext-java.jar" "$jardir/xml-apis-ext*.jar"; do
  13009. # TODO check the behaviour when spaces
  13010. jars_resolved=`ls $jar 2>/dev/null`
  13011. for jar_resolved in $jars_resolved; do # If several jars matches
  13012. if test -e "$jar_resolved"; then
  13013. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13014. cat << \EOF > conftest.java
  13015. // #line 14926 "configure"
  13016. import org.w3c.dom.svg.SVGDocument;
  13017. public class conftest {
  13018. public static void main(String[] argv) {
  13019. }
  13020. }
  13021. EOF
  13022. CLASSPATH=$ac_java_classpath
  13023. export CLASSPATH
  13024. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13025. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13026. if test ""no"" = "no"; then
  13027. echo "yes" >&5
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13029. $as_echo "$jar_resolved" >&6; }
  13030. found_jar=yes
  13031. PACKAGE_JAR_FILE=$jar_resolved
  13032. break 3
  13033. else
  13034. cmd="$JAVA conftest"
  13035. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13036. echo "yes" >&5
  13037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13038. $as_echo "$jar_resolved" >&6; }
  13039. found_jar=yes
  13040. PACKAGE_JAR_FILE=$jar_resolved
  13041. break 3
  13042. else
  13043. echo "configure: failed program was:" >&5
  13044. cat conftest.java >&5
  13045. if test -s conftest.java.output; then
  13046. STDOUT=`cat conftest.java.output`
  13047. fi
  13048. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13049. ac_java_classpath=$saved_ac_java_classpath
  13050. fi
  13051. fi
  13052. if test -f conftest.java.output; then
  13053. rm conftest.java.output
  13054. fi
  13055. else
  13056. echo "configure: failed program was:" >&5
  13057. cat conftest.java >&5
  13058. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13059. ac_java_classpath=$saved_ac_java_classpath
  13060. fi
  13061. fi
  13062. done
  13063. done
  13064. done
  13065. if test "$found_jar" = "no"; then
  13066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13067. $as_echo "no" >&6; }
  13068. if test ""yes"" = "yes"; then
  13069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar xml-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&5
  13070. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar xml-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&2;}
  13071. else
  13072. as_fn_error $? "Could not find or use the Java package/jar xml-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" "$LINENO" 5
  13073. fi
  13074. fi
  13075. XML_APIS_EXT=$PACKAGE_JAR_FILE
  13076. if test -z "$XML_APIS_EXT"; then
  13077. # Other other distribs (Ex: Fedora/Redhat)
  13078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml-commons-apis-ext" >&5
  13079. $as_echo_n "checking xml-commons-apis-ext... " >&6; }
  13080. PACKAGE_JAR_FILE=
  13081. found_jar=no
  13082. saved_ac_java_classpath=$ac_java_classpath
  13083. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13084. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13085. for jar in "$jardir/xml-commons-apis-ext.jar" "$jardir/libxml-commons-apis-ext.jar" "$jardir/libxml-commons-apis-ext-java.jar" "$jardir/xml-commons-apis-ext*.jar"; do
  13086. # TODO check the behaviour when spaces
  13087. jars_resolved=`ls $jar 2>/dev/null`
  13088. for jar_resolved in $jars_resolved; do # If several jars matches
  13089. if test -e "$jar_resolved"; then
  13090. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13091. cat << \EOF > conftest.java
  13092. // #line 15022 "configure"
  13093. import org.w3c.dom.svg.SVGDocument;
  13094. public class conftest {
  13095. public static void main(String[] argv) {
  13096. }
  13097. }
  13098. EOF
  13099. CLASSPATH=$ac_java_classpath
  13100. export CLASSPATH
  13101. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13102. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13103. if test ""no"" = "no"; then
  13104. echo "yes" >&5
  13105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13106. $as_echo "$jar_resolved" >&6; }
  13107. found_jar=yes
  13108. PACKAGE_JAR_FILE=$jar_resolved
  13109. break 3
  13110. else
  13111. cmd="$JAVA conftest"
  13112. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13113. echo "yes" >&5
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13115. $as_echo "$jar_resolved" >&6; }
  13116. found_jar=yes
  13117. PACKAGE_JAR_FILE=$jar_resolved
  13118. break 3
  13119. else
  13120. echo "configure: failed program was:" >&5
  13121. cat conftest.java >&5
  13122. if test -s conftest.java.output; then
  13123. STDOUT=`cat conftest.java.output`
  13124. fi
  13125. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13126. ac_java_classpath=$saved_ac_java_classpath
  13127. fi
  13128. fi
  13129. if test -f conftest.java.output; then
  13130. rm conftest.java.output
  13131. fi
  13132. else
  13133. echo "configure: failed program was:" >&5
  13134. cat conftest.java >&5
  13135. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13136. ac_java_classpath=$saved_ac_java_classpath
  13137. fi
  13138. fi
  13139. done
  13140. done
  13141. done
  13142. if test "$found_jar" = "no"; then
  13143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13144. $as_echo "no" >&6; }
  13145. if test "" = "yes"; then
  13146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar xml-commons-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&5
  13147. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar xml-commons-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&2;}
  13148. else
  13149. as_fn_error $? "Could not find or use the Java package/jar xml-commons-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" "$LINENO" 5
  13150. fi
  13151. fi
  13152. XML_APIS_EXT=$PACKAGE_JAR_FILE
  13153. fi
  13154. ################ END Mandatory for graphic_export features #####
  13155. # Logging (flexdock dep)
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking commons-logging" >&5
  13157. $as_echo_n "checking commons-logging... " >&6; }
  13158. PACKAGE_JAR_FILE=
  13159. found_jar=no
  13160. saved_ac_java_classpath=$ac_java_classpath
  13161. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13162. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13163. for jar in "$jardir/commons-logging.jar" "$jardir/libcommons-logging.jar" "$jardir/libcommons-logging-java.jar" "$jardir/commons-logging*.jar"; do
  13164. # TODO check the behaviour when spaces
  13165. jars_resolved=`ls $jar 2>/dev/null`
  13166. for jar_resolved in $jars_resolved; do # If several jars matches
  13167. if test -e "$jar_resolved"; then
  13168. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13169. cat << \EOF > conftest.java
  13170. // #line 15122 "configure"
  13171. import org.apache.commons.logging.LogFactory;
  13172. public class conftest {
  13173. public static void main(String[] argv) {
  13174. }
  13175. }
  13176. EOF
  13177. CLASSPATH=$ac_java_classpath
  13178. export CLASSPATH
  13179. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13180. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13181. if test ""no"" = "no"; then
  13182. echo "yes" >&5
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13184. $as_echo "$jar_resolved" >&6; }
  13185. found_jar=yes
  13186. PACKAGE_JAR_FILE=$jar_resolved
  13187. break 3
  13188. else
  13189. cmd="$JAVA conftest"
  13190. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13191. echo "yes" >&5
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13193. $as_echo "$jar_resolved" >&6; }
  13194. found_jar=yes
  13195. PACKAGE_JAR_FILE=$jar_resolved
  13196. break 3
  13197. else
  13198. echo "configure: failed program was:" >&5
  13199. cat conftest.java >&5
  13200. if test -s conftest.java.output; then
  13201. STDOUT=`cat conftest.java.output`
  13202. fi
  13203. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13204. ac_java_classpath=$saved_ac_java_classpath
  13205. fi
  13206. fi
  13207. if test -f conftest.java.output; then
  13208. rm conftest.java.output
  13209. fi
  13210. else
  13211. echo "configure: failed program was:" >&5
  13212. cat conftest.java >&5
  13213. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13214. ac_java_classpath=$saved_ac_java_classpath
  13215. fi
  13216. fi
  13217. done
  13218. done
  13219. done
  13220. if test "$found_jar" = "no"; then
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13222. $as_echo "no" >&6; }
  13223. if test "" = "yes"; then
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar commons-logging used by Apache logging (looking for package org.apache.commons.logging.LogFactory)" >&5
  13225. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar commons-logging used by Apache logging (looking for package org.apache.commons.logging.LogFactory)" >&2;}
  13226. else
  13227. as_fn_error $? "Could not find or use the Java package/jar commons-logging used by Apache logging (looking for package org.apache.commons.logging.LogFactory)" "$LINENO" 5
  13228. fi
  13229. fi
  13230. COMMONS_LOGGING=$PACKAGE_JAR_FILE
  13231. # JLaTeXMath
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jlatexmath" >&5
  13233. $as_echo_n "checking jlatexmath... " >&6; }
  13234. PACKAGE_JAR_FILE=
  13235. found_jar=no
  13236. saved_ac_java_classpath=$ac_java_classpath
  13237. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13238. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13239. for jar in "$jardir/jlatexmath.jar" "$jardir/libjlatexmath.jar" "$jardir/libjlatexmath-java.jar" "$jardir/jlatexmath*.jar"; do
  13240. # TODO check the behaviour when spaces
  13241. jars_resolved=`ls $jar 2>/dev/null`
  13242. for jar_resolved in $jars_resolved; do # If several jars matches
  13243. if test -e "$jar_resolved"; then
  13244. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13245. cat << \EOF > conftest.java
  13246. // #line 15218 "configure"
  13247. import org.scilab.forge.jlatexmath.TeXFormula;
  13248. public class conftest {
  13249. public static void main(String[] argv) {
  13250. }
  13251. }
  13252. EOF
  13253. CLASSPATH=$ac_java_classpath
  13254. export CLASSPATH
  13255. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13256. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13257. if test ""no"" = "no"; then
  13258. echo "yes" >&5
  13259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13260. $as_echo "$jar_resolved" >&6; }
  13261. found_jar=yes
  13262. PACKAGE_JAR_FILE=$jar_resolved
  13263. break 3
  13264. else
  13265. cmd="$JAVA conftest"
  13266. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13267. echo "yes" >&5
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13269. $as_echo "$jar_resolved" >&6; }
  13270. found_jar=yes
  13271. PACKAGE_JAR_FILE=$jar_resolved
  13272. break 3
  13273. else
  13274. echo "configure: failed program was:" >&5
  13275. cat conftest.java >&5
  13276. if test -s conftest.java.output; then
  13277. STDOUT=`cat conftest.java.output`
  13278. fi
  13279. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13280. ac_java_classpath=$saved_ac_java_classpath
  13281. fi
  13282. fi
  13283. if test -f conftest.java.output; then
  13284. rm conftest.java.output
  13285. fi
  13286. else
  13287. echo "configure: failed program was:" >&5
  13288. cat conftest.java >&5
  13289. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13290. ac_java_classpath=$saved_ac_java_classpath
  13291. fi
  13292. fi
  13293. done
  13294. done
  13295. done
  13296. if test "$found_jar" = "no"; then
  13297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13298. $as_echo "no" >&6; }
  13299. if test "" = "yes"; then
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jlatexmath used by LaTex Rendering (looking for package org.scilab.forge.jlatexmath.TeXFormula)" >&5
  13301. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jlatexmath used by LaTex Rendering (looking for package org.scilab.forge.jlatexmath.TeXFormula)" >&2;}
  13302. else
  13303. as_fn_error $? "Could not find or use the Java package/jar jlatexmath used by LaTex Rendering (looking for package org.scilab.forge.jlatexmath.TeXFormula)" "$LINENO" 5
  13304. fi
  13305. fi
  13306. JLATEXMATH=$PACKAGE_JAR_FILE
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (0.9.7) of jlatexmath" >&5
  13308. $as_echo_n "checking minimal version (0.9.7) of jlatexmath... " >&6; }
  13309. saved_ac_java_classpath=$ac_java_classpath
  13310. export ac_java_classpath="$JLATEXMATH:$ac_java_classpath"
  13311. if test "x" == "x"; then
  13312. cat << \EOF > conftest.java
  13313. // #line 15304 "configure"
  13314. import org.scilab.forge.jlatexmath.TeXFormula;
  13315. public class conftest {
  13316. public static void main(String[] argv) {
  13317. String minVersion="0.9.7";
  13318. System.out.println(TeXFormula.VERSION);
  13319. if (minVersion.compareTo(TeXFormula.VERSION) > 0) {
  13320. System.exit(-1);
  13321. }
  13322. }
  13323. }
  13324. EOF
  13325. CLASSPATH=$ac_java_classpath
  13326. export CLASSPATH
  13327. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13328. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13329. if test ""yes"" = "no"; then
  13330. echo "yes" >&5
  13331. echo "yes"
  13332. else
  13333. cmd="$JAVA conftest"
  13334. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13335. echo "yes" >&5
  13336. echo "yes"
  13337. else
  13338. echo "configure: failed program was:" >&5
  13339. cat conftest.java >&5
  13340. if test -s conftest.java.output; then
  13341. STDOUT=`cat conftest.java.output`
  13342. fi
  13343. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13344. as_fn_error $? "Wrong version of jlatexmath. Expected at least 0.9.7. Found $STDOUT" "$LINENO" 5
  13345. fi
  13346. fi
  13347. if test -f conftest.java.output; then
  13348. rm conftest.java.output
  13349. fi
  13350. else
  13351. echo "configure: failed program was:" >&5
  13352. cat conftest.java >&5
  13353. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13354. as_fn_error $? "Wrong version of jlatexmath. Expected at least 0.9.7. Found $STDOUT" "$LINENO" 5
  13355. fi
  13356. else
  13357. cat << \EOF > conftest.java
  13358. // #line 15355 "configure"
  13359. import org.scilab.forge.jlatexmath.TeXFormula;
  13360. public class conftest {
  13361. public static void main(String[] argv) {
  13362. String minVersion="0.9.7";
  13363. System.out.println(TeXFormula.VERSION);
  13364. if (minVersion.compareTo(TeXFormula.VERSION) != 0) {
  13365. System.exit(-1);
  13366. }
  13367. }
  13368. }
  13369. EOF
  13370. CLASSPATH=$ac_java_classpath
  13371. export CLASSPATH
  13372. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13373. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13374. if test ""yes"" = "no"; then
  13375. echo "yes" >&5
  13376. echo "yes"
  13377. else
  13378. cmd="$JAVA conftest"
  13379. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13380. echo "yes" >&5
  13381. echo "yes"
  13382. else
  13383. echo "configure: failed program was:" >&5
  13384. cat conftest.java >&5
  13385. if test -s conftest.java.output; then
  13386. STDOUT=`cat conftest.java.output`
  13387. fi
  13388. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13389. as_fn_error $? "Wrong version of jlatexmath. Expected exact version 0.9.7. Found $STDOUT" "$LINENO" 5
  13390. fi
  13391. fi
  13392. if test -f conftest.java.output; then
  13393. rm conftest.java.output
  13394. fi
  13395. else
  13396. echo "configure: failed program was:" >&5
  13397. cat conftest.java >&5
  13398. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13399. as_fn_error $? "Wrong version of jlatexmath. Expected exact version 0.9.7. Found $STDOUT" "$LINENO" 5
  13400. fi
  13401. fi
  13402. ac_java_classpath=$saved_ac_java_classpath
  13403. $as_echo "#define WITH_GUI /**/" >>confdefs.h
  13404. fi
  13405. # Checkstyle (code checking)
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checkstyle" >&5
  13407. $as_echo_n "checking checkstyle... " >&6; }
  13408. PACKAGE_JAR_FILE=
  13409. found_jar=no
  13410. saved_ac_java_classpath=$ac_java_classpath
  13411. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13412. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13413. for jar in "$jardir/checkstyle.jar" "$jardir/libcheckstyle.jar" "$jardir/libcheckstyle-java.jar" "$jardir/checkstyle*.jar"; do
  13414. # TODO check the behaviour when spaces
  13415. jars_resolved=`ls $jar 2>/dev/null`
  13416. for jar_resolved in $jars_resolved; do # If several jars matches
  13417. if test -e "$jar_resolved"; then
  13418. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13419. cat << \EOF > conftest.java
  13420. // #line 15431 "configure"
  13421. import com.puppycrawl.tools.checkstyle.CheckStyleTask;
  13422. public class conftest {
  13423. public static void main(String[] argv) {
  13424. }
  13425. }
  13426. EOF
  13427. CLASSPATH=$ac_java_classpath
  13428. export CLASSPATH
  13429. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13430. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13431. if test ""no"" = "no"; then
  13432. echo "yes" >&5
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13434. $as_echo "$jar_resolved" >&6; }
  13435. found_jar=yes
  13436. PACKAGE_JAR_FILE=$jar_resolved
  13437. break 3
  13438. else
  13439. cmd="$JAVA conftest"
  13440. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13441. echo "yes" >&5
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13443. $as_echo "$jar_resolved" >&6; }
  13444. found_jar=yes
  13445. PACKAGE_JAR_FILE=$jar_resolved
  13446. break 3
  13447. else
  13448. echo "configure: failed program was:" >&5
  13449. cat conftest.java >&5
  13450. if test -s conftest.java.output; then
  13451. STDOUT=`cat conftest.java.output`
  13452. fi
  13453. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13454. ac_java_classpath=$saved_ac_java_classpath
  13455. fi
  13456. fi
  13457. if test -f conftest.java.output; then
  13458. rm conftest.java.output
  13459. fi
  13460. else
  13461. echo "configure: failed program was:" >&5
  13462. cat conftest.java >&5
  13463. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13464. ac_java_classpath=$saved_ac_java_classpath
  13465. fi
  13466. fi
  13467. done
  13468. done
  13469. done
  13470. if test "$found_jar" = "no"; then
  13471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13472. $as_echo "no" >&6; }
  13473. if test ""yes"" = "yes"; then
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar checkstyle used by Checkstyle - code checking (looking for package com.puppycrawl.tools.checkstyle.CheckStyleTask)" >&5
  13475. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar checkstyle used by Checkstyle - code checking (looking for package com.puppycrawl.tools.checkstyle.CheckStyleTask)" >&2;}
  13476. else
  13477. as_fn_error $? "Could not find or use the Java package/jar checkstyle used by Checkstyle - code checking (looking for package com.puppycrawl.tools.checkstyle.CheckStyleTask)" "$LINENO" 5
  13478. fi
  13479. fi
  13480. CHECKSTYLE=$PACKAGE_JAR_FILE
  13481. # Commons beanutils (dependency of checkstyle)
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking commons-beanutils" >&5
  13483. $as_echo_n "checking commons-beanutils... " >&6; }
  13484. PACKAGE_JAR_FILE=
  13485. found_jar=no
  13486. saved_ac_java_classpath=$ac_java_classpath
  13487. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13488. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13489. for jar in "$jardir/commons-beanutils.jar" "$jardir/libcommons-beanutils.jar" "$jardir/libcommons-beanutils-java.jar" "$jardir/commons-beanutils*.jar"; do
  13490. # TODO check the behaviour when spaces
  13491. jars_resolved=`ls $jar 2>/dev/null`
  13492. for jar_resolved in $jars_resolved; do # If several jars matches
  13493. if test -e "$jar_resolved"; then
  13494. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13495. cat << \EOF > conftest.java
  13496. // #line 15527 "configure"
  13497. import org.apache.commons.beanutils.Converter;
  13498. public class conftest {
  13499. public static void main(String[] argv) {
  13500. }
  13501. }
  13502. EOF
  13503. CLASSPATH=$ac_java_classpath
  13504. export CLASSPATH
  13505. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13506. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13507. if test ""no"" = "no"; then
  13508. echo "yes" >&5
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13510. $as_echo "$jar_resolved" >&6; }
  13511. found_jar=yes
  13512. PACKAGE_JAR_FILE=$jar_resolved
  13513. break 3
  13514. else
  13515. cmd="$JAVA conftest"
  13516. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13517. echo "yes" >&5
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13519. $as_echo "$jar_resolved" >&6; }
  13520. found_jar=yes
  13521. PACKAGE_JAR_FILE=$jar_resolved
  13522. break 3
  13523. else
  13524. echo "configure: failed program was:" >&5
  13525. cat conftest.java >&5
  13526. if test -s conftest.java.output; then
  13527. STDOUT=`cat conftest.java.output`
  13528. fi
  13529. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13530. ac_java_classpath=$saved_ac_java_classpath
  13531. fi
  13532. fi
  13533. if test -f conftest.java.output; then
  13534. rm conftest.java.output
  13535. fi
  13536. else
  13537. echo "configure: failed program was:" >&5
  13538. cat conftest.java >&5
  13539. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13540. ac_java_classpath=$saved_ac_java_classpath
  13541. fi
  13542. fi
  13543. done
  13544. done
  13545. done
  13546. if test "$found_jar" = "no"; then
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13548. $as_echo "no" >&6; }
  13549. if test ""yes"" = "yes"; then
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar commons-beanutils used by Bean utility (looking for package org.apache.commons.beanutils.Converter)" >&5
  13551. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar commons-beanutils used by Bean utility (looking for package org.apache.commons.beanutils.Converter)" >&2;}
  13552. else
  13553. as_fn_error $? "Could not find or use the Java package/jar commons-beanutils used by Bean utility (looking for package org.apache.commons.beanutils.Converter)" "$LINENO" 5
  13554. fi
  13555. fi
  13556. COMMONS_BEANUTILS=$PACKAGE_JAR_FILE
  13557. # antlr (dependency of checkstyle)
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking antlr" >&5
  13559. $as_echo_n "checking antlr... " >&6; }
  13560. PACKAGE_JAR_FILE=
  13561. found_jar=no
  13562. saved_ac_java_classpath=$ac_java_classpath
  13563. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13564. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13565. for jar in "$jardir/antlr.jar" "$jardir/libantlr.jar" "$jardir/libantlr-java.jar" "$jardir/antlr*.jar"; do
  13566. # TODO check the behaviour when spaces
  13567. jars_resolved=`ls $jar 2>/dev/null`
  13568. for jar_resolved in $jars_resolved; do # If several jars matches
  13569. if test -e "$jar_resolved"; then
  13570. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13571. cat << \EOF > conftest.java
  13572. // #line 15623 "configure"
  13573. import antlr.TokenStreamException;
  13574. public class conftest {
  13575. public static void main(String[] argv) {
  13576. }
  13577. }
  13578. EOF
  13579. CLASSPATH=$ac_java_classpath
  13580. export CLASSPATH
  13581. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13582. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13583. if test ""no"" = "no"; then
  13584. echo "yes" >&5
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13586. $as_echo "$jar_resolved" >&6; }
  13587. found_jar=yes
  13588. PACKAGE_JAR_FILE=$jar_resolved
  13589. break 3
  13590. else
  13591. cmd="$JAVA conftest"
  13592. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13593. echo "yes" >&5
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13595. $as_echo "$jar_resolved" >&6; }
  13596. found_jar=yes
  13597. PACKAGE_JAR_FILE=$jar_resolved
  13598. break 3
  13599. else
  13600. echo "configure: failed program was:" >&5
  13601. cat conftest.java >&5
  13602. if test -s conftest.java.output; then
  13603. STDOUT=`cat conftest.java.output`
  13604. fi
  13605. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13606. ac_java_classpath=$saved_ac_java_classpath
  13607. fi
  13608. fi
  13609. if test -f conftest.java.output; then
  13610. rm conftest.java.output
  13611. fi
  13612. else
  13613. echo "configure: failed program was:" >&5
  13614. cat conftest.java >&5
  13615. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13616. ac_java_classpath=$saved_ac_java_classpath
  13617. fi
  13618. fi
  13619. done
  13620. done
  13621. done
  13622. if test "$found_jar" = "no"; then
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13624. $as_echo "no" >&6; }
  13625. if test ""yes"" = "yes"; then
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar antlr used by language tool for constructing recognizers (looking for package antlr.TokenStreamException)" >&5
  13627. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar antlr used by language tool for constructing recognizers (looking for package antlr.TokenStreamException)" >&2;}
  13628. else
  13629. as_fn_error $? "Could not find or use the Java package/jar antlr used by language tool for constructing recognizers (looking for package antlr.TokenStreamException)" "$LINENO" 5
  13630. fi
  13631. fi
  13632. ANTLR=$PACKAGE_JAR_FILE
  13633. # Test NG (java unitary test)
  13634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking testng" >&5
  13635. $as_echo_n "checking testng... " >&6; }
  13636. PACKAGE_JAR_FILE=
  13637. found_jar=no
  13638. saved_ac_java_classpath=$ac_java_classpath
  13639. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13640. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13641. for jar in "$jardir/testng.jar" "$jardir/libtestng.jar" "$jardir/libtestng-java.jar" "$jardir/testng*.jar"; do
  13642. # TODO check the behaviour when spaces
  13643. jars_resolved=`ls $jar 2>/dev/null`
  13644. for jar_resolved in $jars_resolved; do # If several jars matches
  13645. if test -e "$jar_resolved"; then
  13646. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13647. cat << \EOF > conftest.java
  13648. // #line 15719 "configure"
  13649. import org.testng.TestNG;
  13650. public class conftest {
  13651. public static void main(String[] argv) {
  13652. }
  13653. }
  13654. EOF
  13655. CLASSPATH=$ac_java_classpath
  13656. export CLASSPATH
  13657. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13658. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13659. if test ""no"" = "no"; then
  13660. echo "yes" >&5
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13662. $as_echo "$jar_resolved" >&6; }
  13663. found_jar=yes
  13664. PACKAGE_JAR_FILE=$jar_resolved
  13665. break 3
  13666. else
  13667. cmd="$JAVA conftest"
  13668. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13669. echo "yes" >&5
  13670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13671. $as_echo "$jar_resolved" >&6; }
  13672. found_jar=yes
  13673. PACKAGE_JAR_FILE=$jar_resolved
  13674. break 3
  13675. else
  13676. echo "configure: failed program was:" >&5
  13677. cat conftest.java >&5
  13678. if test -s conftest.java.output; then
  13679. STDOUT=`cat conftest.java.output`
  13680. fi
  13681. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13682. ac_java_classpath=$saved_ac_java_classpath
  13683. fi
  13684. fi
  13685. if test -f conftest.java.output; then
  13686. rm conftest.java.output
  13687. fi
  13688. else
  13689. echo "configure: failed program was:" >&5
  13690. cat conftest.java >&5
  13691. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13692. ac_java_classpath=$saved_ac_java_classpath
  13693. fi
  13694. fi
  13695. done
  13696. done
  13697. done
  13698. if test "$found_jar" = "no"; then
  13699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13700. $as_echo "no" >&6; }
  13701. if test ""yes"" = "yes"; then
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar testng used by TestNG - Unit tests (looking for package org.testng.TestNG)" >&5
  13703. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar testng used by TestNG - Unit tests (looking for package org.testng.TestNG)" >&2;}
  13704. else
  13705. as_fn_error $? "Could not find or use the Java package/jar testng used by TestNG - Unit tests (looking for package org.testng.TestNG)" "$LINENO" 5
  13706. fi
  13707. fi
  13708. TESTNG=$PACKAGE_JAR_FILE
  13709. # JCommander - dependency of TestNG >= 6
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking beust-jcommander" >&5
  13711. $as_echo_n "checking beust-jcommander... " >&6; }
  13712. PACKAGE_JAR_FILE=
  13713. found_jar=no
  13714. saved_ac_java_classpath=$ac_java_classpath
  13715. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13716. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13717. for jar in "$jardir/beust-jcommander.jar" "$jardir/libbeust-jcommander.jar" "$jardir/libbeust-jcommander-java.jar" "$jardir/beust-jcommander*.jar"; do
  13718. # TODO check the behaviour when spaces
  13719. jars_resolved=`ls $jar 2>/dev/null`
  13720. for jar_resolved in $jars_resolved; do # If several jars matches
  13721. if test -e "$jar_resolved"; then
  13722. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13723. cat << \EOF > conftest.java
  13724. // #line 15815 "configure"
  13725. import com.beust.jcommander.JCommander;
  13726. public class conftest {
  13727. public static void main(String[] argv) {
  13728. }
  13729. }
  13730. EOF
  13731. CLASSPATH=$ac_java_classpath
  13732. export CLASSPATH
  13733. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13734. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13735. if test ""no"" = "no"; then
  13736. echo "yes" >&5
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13738. $as_echo "$jar_resolved" >&6; }
  13739. found_jar=yes
  13740. PACKAGE_JAR_FILE=$jar_resolved
  13741. break 3
  13742. else
  13743. cmd="$JAVA conftest"
  13744. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13745. echo "yes" >&5
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13747. $as_echo "$jar_resolved" >&6; }
  13748. found_jar=yes
  13749. PACKAGE_JAR_FILE=$jar_resolved
  13750. break 3
  13751. else
  13752. echo "configure: failed program was:" >&5
  13753. cat conftest.java >&5
  13754. if test -s conftest.java.output; then
  13755. STDOUT=`cat conftest.java.output`
  13756. fi
  13757. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13758. ac_java_classpath=$saved_ac_java_classpath
  13759. fi
  13760. fi
  13761. if test -f conftest.java.output; then
  13762. rm conftest.java.output
  13763. fi
  13764. else
  13765. echo "configure: failed program was:" >&5
  13766. cat conftest.java >&5
  13767. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13768. ac_java_classpath=$saved_ac_java_classpath
  13769. fi
  13770. fi
  13771. done
  13772. done
  13773. done
  13774. if test "$found_jar" = "no"; then
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13776. $as_echo "no" >&6; }
  13777. if test ""yes"" = "yes"; then
  13778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar beust-jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&5
  13779. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar beust-jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&2;}
  13780. else
  13781. as_fn_error $? "Could not find or use the Java package/jar beust-jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" "$LINENO" 5
  13782. fi
  13783. fi
  13784. JCOMMANDER=$PACKAGE_JAR_FILE
  13785. if test -z "$JCOMMANDER"; then
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jcommander" >&5
  13787. $as_echo_n "checking jcommander... " >&6; }
  13788. PACKAGE_JAR_FILE=
  13789. found_jar=no
  13790. saved_ac_java_classpath=$ac_java_classpath
  13791. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13792. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13793. for jar in "$jardir/jcommander.jar" "$jardir/libjcommander.jar" "$jardir/libjcommander-java.jar" "$jardir/jcommander*.jar"; do
  13794. # TODO check the behaviour when spaces
  13795. jars_resolved=`ls $jar 2>/dev/null`
  13796. for jar_resolved in $jars_resolved; do # If several jars matches
  13797. if test -e "$jar_resolved"; then
  13798. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13799. cat << \EOF > conftest.java
  13800. // #line 15910 "configure"
  13801. import com.beust.jcommander.JCommander;
  13802. public class conftest {
  13803. public static void main(String[] argv) {
  13804. }
  13805. }
  13806. EOF
  13807. CLASSPATH=$ac_java_classpath
  13808. export CLASSPATH
  13809. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13810. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13811. if test ""no"" = "no"; then
  13812. echo "yes" >&5
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13814. $as_echo "$jar_resolved" >&6; }
  13815. found_jar=yes
  13816. PACKAGE_JAR_FILE=$jar_resolved
  13817. break 3
  13818. else
  13819. cmd="$JAVA conftest"
  13820. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13821. echo "yes" >&5
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13823. $as_echo "$jar_resolved" >&6; }
  13824. found_jar=yes
  13825. PACKAGE_JAR_FILE=$jar_resolved
  13826. break 3
  13827. else
  13828. echo "configure: failed program was:" >&5
  13829. cat conftest.java >&5
  13830. if test -s conftest.java.output; then
  13831. STDOUT=`cat conftest.java.output`
  13832. fi
  13833. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13834. ac_java_classpath=$saved_ac_java_classpath
  13835. fi
  13836. fi
  13837. if test -f conftest.java.output; then
  13838. rm conftest.java.output
  13839. fi
  13840. else
  13841. echo "configure: failed program was:" >&5
  13842. cat conftest.java >&5
  13843. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13844. ac_java_classpath=$saved_ac_java_classpath
  13845. fi
  13846. fi
  13847. done
  13848. done
  13849. done
  13850. if test "$found_jar" = "no"; then
  13851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13852. $as_echo "no" >&6; }
  13853. if test ""yes"" = "yes"; then
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&5
  13855. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&2;}
  13856. else
  13857. as_fn_error $? "Could not find or use the Java package/jar jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" "$LINENO" 5
  13858. fi
  13859. fi
  13860. JCOMMANDER=$PACKAGE_JAR_FILE
  13861. fi
  13862. # Qdox (parses declarations and Javadoc) - dependency of TestNG
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking qdox" >&5
  13864. $as_echo_n "checking qdox... " >&6; }
  13865. PACKAGE_JAR_FILE=
  13866. found_jar=no
  13867. saved_ac_java_classpath=$ac_java_classpath
  13868. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13869. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13870. for jar in "$jardir/qdox.jar" "$jardir/libqdox.jar" "$jardir/libqdox-java.jar" "$jardir/qdox*.jar"; do
  13871. # TODO check the behaviour when spaces
  13872. jars_resolved=`ls $jar 2>/dev/null`
  13873. for jar_resolved in $jars_resolved; do # If several jars matches
  13874. if test -e "$jar_resolved"; then
  13875. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13876. cat << \EOF > conftest.java
  13877. // #line 16007 "configure"
  13878. import com.thoughtworks.qdox.tools.QDoxTester;
  13879. public class conftest {
  13880. public static void main(String[] argv) {
  13881. }
  13882. }
  13883. EOF
  13884. CLASSPATH=$ac_java_classpath
  13885. export CLASSPATH
  13886. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13887. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13888. if test ""no"" = "no"; then
  13889. echo "yes" >&5
  13890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13891. $as_echo "$jar_resolved" >&6; }
  13892. found_jar=yes
  13893. PACKAGE_JAR_FILE=$jar_resolved
  13894. break 3
  13895. else
  13896. cmd="$JAVA conftest"
  13897. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13898. echo "yes" >&5
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13900. $as_echo "$jar_resolved" >&6; }
  13901. found_jar=yes
  13902. PACKAGE_JAR_FILE=$jar_resolved
  13903. break 3
  13904. else
  13905. echo "configure: failed program was:" >&5
  13906. cat conftest.java >&5
  13907. if test -s conftest.java.output; then
  13908. STDOUT=`cat conftest.java.output`
  13909. fi
  13910. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13911. ac_java_classpath=$saved_ac_java_classpath
  13912. fi
  13913. fi
  13914. if test -f conftest.java.output; then
  13915. rm conftest.java.output
  13916. fi
  13917. else
  13918. echo "configure: failed program was:" >&5
  13919. cat conftest.java >&5
  13920. echo "configure: CLASSPATH was $CLASSPATH" >&5
  13921. ac_java_classpath=$saved_ac_java_classpath
  13922. fi
  13923. fi
  13924. done
  13925. done
  13926. done
  13927. if test "$found_jar" = "no"; then
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13929. $as_echo "no" >&6; }
  13930. if test ""yes"" = "yes"; then
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar qdox used by Parses declarations and Javadoc (looking for package com.thoughtworks.qdox.tools.QDoxTester)" >&5
  13932. $as_echo "$as_me: WARNING: Could not find or use the Java package/jar qdox used by Parses declarations and Javadoc (looking for package com.thoughtworks.qdox.tools.QDoxTester)" >&2;}
  13933. else
  13934. as_fn_error $? "Could not find or use the Java package/jar qdox used by Parses declarations and Javadoc (looking for package com.thoughtworks.qdox.tools.QDoxTester)" "$LINENO" 5
  13935. fi
  13936. fi
  13937. QDOX=$PACKAGE_JAR_FILE
  13938. # bsh (Java scripting environment) - dependency of TestNG
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking bsh" >&5
  13940. $as_echo_n "checking bsh... " >&6; }
  13941. PACKAGE_JAR_FILE=
  13942. found_jar=no
  13943. saved_ac_java_classpath=$ac_java_classpath
  13944. DEFAULT_JAR_DIR="/usr/share/java /usr/lib/java /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
  13945. for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
  13946. for jar in "$jardir/bsh.jar" "$jardir/libbsh.jar" "$jardir/libbsh-java.jar" "$jardir/bsh*.jar"; do
  13947. # TODO check the behaviour when spaces
  13948. jars_resolved=`ls $jar 2>/dev/null`
  13949. for jar_resolved in $jars_resolved; do # If several jars matches
  13950. if test -e "$jar_resolved"; then
  13951. export ac_java_classpath="$jar_resolved:$ac_java_classpath"
  13952. cat << \EOF > conftest.java
  13953. // #line 16103 "configure"
  13954. import bsh.Console;
  13955. public class conftest {
  13956. public static void main(String[] argv) {
  13957. }
  13958. }
  13959. EOF
  13960. CLASSPATH=$ac_java_classpath
  13961. export CLASSPATH
  13962. cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
  13963. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
  13964. if test ""no"" = "no"; then
  13965. echo "yes" >&5
  13966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13967. $as_echo "$jar_resolved" >&6; }
  13968. found_jar=yes
  13969. PACKAGE_JAR_FILE=$jar_resolved
  13970. break 3
  13971. else
  13972. cmd="$JAVA conftest"
  13973. if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
  13974. echo "yes" >&5
  13975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
  13976. $as_echo "$jar_resolved" >&6; }
  13977. found_jar=yes
  13978. PACKAGE_JAR_FILE=$jar_resolved
  13979. break 3
  13980. else