~ubuntu-branches/ubuntu/feisty/k3b/feisty-backports

« back to all changes in this revision

Viewing changes to admin/acinclude.m4.in

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2007-09-05 10:00:13 UTC
  • mfrom: (28.1.11 gutsy)
  • Revision ID: james.westby@ubuntu.com-20070905100013-h0ey1jtz2xvd8dq2
Tags: 1.0.3-0ubuntu3~feisty1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5215
5215
      for dir in $javadirs; do
5216
5216
          dnl Check for the java executable
5217
5217
          if test -x "$dir/java"; then
 
5218
              sane_path=$(cd $dir; /bin/pwd)
5218
5219
              dnl And also check for a libjvm.so somewhere under there
5219
5220
              dnl Since we have to go to the parent dir, /usr/bin is excluded, /usr is too big.
5220
 
              if test "$dir" != "/usr/bin"; then
 
5221
              if test "$sane_path" != "/usr/bin"; then
5221
5222
                  libjvmdir=`find $dir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1`
5222
5223
                  if test ! -f $libjvmdir/libjvm.so; then continue; fi
5223
5224
                  jredirs="$jredirs $dir"