Re: autoreconf on mac os x
Quote:
Originally Posted by linpin
I am trying to build XaraLX on MacOS X, everything goes well until I get to point when I run
autoreconf and I receive this error message:
Code:
configure.in:50: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /sw/bin/autoconf-2.59 failed with exit status: 1
Could you quote the exact command you issued to invoke autoreconf. I think that you should use ./autogen.sh
Could you check that you have a working aclocal. Try
Code:
$ which aclocal
/sw/bin/aclocal
$ aclocal --version
aclocal (GNU automake) 1.9.4
Written by Tom Tromey <tromey@redhat.com>
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$
You may find that you have aclocal automake and friends in /usr/bin. If so these are the Apple ones. The XaraLX build process needs later versions. The best way of installing these is from fink. You will also need to have the PATH environment variable set correctly, videlicet:
Code:
$ set | grep PA
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
MANPATH=/sw/share/man:/usr/share/man:/usr/local/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man:/sw/lib/perl5-core/5.8.1/man:/sw/lib/perl5/5.8.1/man
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
Re: autoreconf on mac os x
hi,
i did autoreconf -f -i -s, according http://www.xaraxtreme.org/developers...tructions.html.
i follow your hints, here`s the output:
Mac-mini:~ berndpier$ which aclocal
/sw/bin/aclocal
Mac-mini:~ berndpier$ aclocal --version
aclocal (GNU automake) 1.9.4
Written by Tom Tromey <tromey@redhat.com>
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Mac-mini:~ berndpier$ set | grep PA
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
MANPATH=/sw/share/man:/usr/share/man:/usr/local/share/man:/usr/local/mysql/man:/opt/local/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/mysql/bin:/opt/local/bin:/usr/X11R6/bin
version of aclocal is ok, i think. i`ve installed everythink i need with fink so far as i can remember. the path looks ok too, didn`t it?
so, maybe i`m blind, but i couldn`t see how to solve my prob.
ciao
linpin
Re: autoreconf on mac os x
O.K. So what happens now when you try the autoreconf step? I suggest the command ./autogen.sh .
Re: autoreconf on mac os x
ah i forgot, here it comes:
Mac-mini:/Applications/Bildbearbeitung/XaraLX berndpier$ ./autogen.sh
configure.in:50: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /sw/bin/autoconf-2.59 failed with exit status: 1
seems to be the same error.
cu
linpin
Re: autoreconf on mac os x
Quote:
Originally Posted by linpin
ah i forgot, here it comes:
Code:
Mac-mini:/Applications/Bildbearbeitung/XaraLX berndpier$ ./autogen.sh
configure.in:50: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /sw/bin/autoconf-2.59 failed with exit status: 1
The macro ought to be present in aclocal.m4. Could you check:
Code:
$ grep AC_PROG_LIBTOOL aclocal.m4
# serial 47 AC_PROG_LIBTOOL
# AC_PROG_LIBTOOL
AC_DEFUN([AC_PROG_LIBTOOL],
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
])])# AC_PROG_LIBTOOL
# _AC_PROG_LIBTOOL
AC_DEFUN([_AC_PROG_LIBTOOL],
define([AC_PROG_LIBTOOL], [])
])# _AC_PROG_LIBTOOL
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
You might want to remove aclocal.m4 and try again. Also, autoreconf has a -v option (=verbose) which may help, but I should point out that at this stage I do not know what is wrong: This process should work if you have the right version of aclocal and it is on your path. There may be many things to try!
Re: autoreconf on mac os x
hi,
Quote:
This process should work if you have the right version of aclocal and it is on your path. There may be many things to try!
seems that this is ok, which aclocal gives me /sw/bin/aclocal and aclocal --version say version 1.9.4, the PATH is right too, i think. so i look into aclocal.m4 under my XaraLX folder, there is no macro named AC_PROG_LIBTOOL, i delete aclocal.m4 starting autoreconf with -v here is the output:
"Mac-mini:/Applications/Bildbearbeitung/XaraLX berndpier$ autoreconf -f -i -s -v
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
autoreconf: running: aclocal --force -I m4
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /sw/bin/autoconf-2.59 --force
configure.in:50: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /sw/bin/autoconf-2.59 failed with exit status: 1 "
as i understand aclocal creates aclocal.m4 including the macro AC_PROG_LIBTOOL, it didn`t. maybe the process will work if i use m4_pattern_allow, but i don`t now how.
ciao
linpin
Re: autoreconf on mac os x
Using m4_pattern_allow is definitely wrong.
You are right that these scripts should produce a working a aclocal.m4, and it is essential that you find out why it is not doing in your case.
For example, do you have all the necessary files in the share directory?
Re: autoreconf on mac os x
Quote:
Originally Posted by BPFowler
Using m4_pattern_allow is definitely wrong.
You are right that these scripts should produce a working a aclocal.m4, and it is essential that you find out why it is not doing in your case.
For example, do you have all the necessary files in the share directory?
what files do i have to have in the share directory? do you mean the XaraLX directory?
Re: autoreconf on mac os x
No, nothing to do with XaraLX.
I had in mind /sw/share/autoconf, but yours could be under /usr or /usr/local. I don't know for certain what should be there, I have never had this go wrong; but you could check that the directories and files actually exist and are readable by you.
Perhaps you need to use fink to remove and then install autoconf again...
Re: autoreconf on mac os x
hi,
i`ve deinstalled autoconf via fink and try to autoreconf Xara again running in the same error:
Mac-mini:/Applications/Bildbearbeitung/XaraLX berndpier$ autoreconf -f -i -s
/sw/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/a...ending-aclocal
aclocal:configure.in:9: warning: macro `AM_BINRELOC' not found in library
configure.in:56: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /sw/bin/autoconf-2.59 failed with exit status: 1
don`t know what i can do to solve this prob.
ciao
linpin
Re: autoreconf on mac os x
ok, i running aclocal -I path/to/aclocal/m4 solving half of my probs, leaving me with the last error:
aclocal: configure.in: 9: macro `AM_BINRELOC' not found in library
where can i find the related m4 file for this macro?
thanx
linpin:p
Re: autoreconf on mac os x
Do you have a file: binreloc.m4 ?
Does autoreconf run autopoint properly for you?
Ben
Re: autoreconf on mac os x
hi,
yes i have binreloc.m4 under my xara folder. autoreconf in verbose mode gives me:
Mac-mini:/Applications/Bildbearbeitung/xara berndpier$ autoreconf -f -i -s -v
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
aclocal: configure.in: 9: macro `AM_BINRELOC' not found in library
autoreconf: aclocal failed with exit status: 1
don`t know if autopoint is running fine, seems to be. do i have to aclocal -I and point to binreloc.m4?
cu
bernd
Re: autoreconf on mac os x
Quote:
Originally Posted by linpin
yes i have binreloc.m4 under my xara folder.
The location of the m4 macros has changed recently. If you are using svn then please check your working copy with svn info or svn up. If you are working from a source tarball, then you probably want to start again with a more recent one.
Ben