axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] RE: gcl-2.6.8pre on MAC OSX 10.2


From: Page, Bill
Subject: [Axiom-developer] RE: gcl-2.6.8pre on MAC OSX 10.2
Date: Thu, 26 Oct 2006 21:27:24 -0400

Camm,

I give you the gdb output you requested in the next email.
But now that you mention it...

On Thursday, October 26, 2006 7:01 PM you wrote:

> Greetings!  Just wondering if this is the last axiom issue with
> 2.6.8pre outstanding.  If not, what are the others?  If more
> testing time is needed to answer this, how much more?
> 

I *am* currently fighting with another problem with the
gcl-2.6.8pre build. When building gcl on an x86-64 Ubuntu
system, the following segment of the ./configure script fails
to create a valid value for EMACS_SITE_LISP. I see from the
email lists that this hack has caused some trouble in the past.

------

echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
echo "configure:6251: checking emacs site lisp directory" >&5
if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
        if [ "$EMACS" != "" ] ; then
                EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l
conftest.el 2>&1 | grep -v ^Warning: | sed -e /Loading/d | sed -e
/load/d `
        else
                EMACS_SITE_LISP=""
        fi
fi
echo "$ac_t""$EMACS_SITE_LISP" 1>&6

--------

On the particular system where is is a problem, I get the following
output from emacs:

$ /usr/bin/emacs -q -batch
/home/page/sage-1.4.1.2-x86_64-Linux/local/lib/libpng-l conftest.el
/usr/bin/emacs:
/home/page/sage-1.4.1.2-x86_64-Linux/local/lib/libpng12.so.0: no version
information available (required by /usr/bin/emacs)
Loading 00debian-vars...
No /etc/mailname. Reverting to default...
Loading 50autoconf (source)...
Package autoconf removed but not purged.  Skipping setup.
Loading 50cscope (source)...
Loading 50ocaml-nox (source)...
Loading 50octave (source)...
Loading 50psvn (source)...
Loading 50python-mode (source)...
Loading 50vc-svn (source)...

--------

It seems to me there ought to be a better way. I think
the conftest.el:

cat >> conftest.el <<EOF
(let ((ans ".") (tem load-path) cur)
 (while (setq cur (car tem))
   (setq tem (cdr tem))
   (cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur))
          (setq ans cur)
           (if (string-match "-0-9.+$" cur) nil
               (setq tem nil)))))
  (message ans))
EOF

-------

should be re-written to emit a unique marker for the information
for which we are looking. E.g. something like this:

cat >> conftest.el <<EOF
(let ((ans ".") (tem load-path) cur)
 (while (setq cur (car tem))
   (setq tem (cdr tem))
   (cond ((and (string-match "site-lisp/?$" cur) (file-directory-p cur))
          (setq ans cur)
           (if (string-match "-0-9.+$" cur) nil
               (setq tem nil)))))
  (message (concat "<filename>" ans "<filename>"))
EOF

--------

(Maybe you have to fix my lisp.)

But then in .configure we can write something simple and reliable:

  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 |
\
    awk -F '<filename>' '/<filename>(.*)<filename>/ {print $2}'`

Regards,
Bill Page.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]