Can somebody explain how the autotools are configured in FreeBSD 4.10?

Michael C. Shultz ringworm at inbox.lv
Wed Sep 29 17:09:16 PDT 2004


On Tuesday 28 September 2004 11:40 am, Gabriel O'Brien wrote:
> Hi All,
>
> I'm hoping somebody can explain to me how to use the autotools (automake,
> autoconf, libtool, etc.) in FreeBSD 4.10 because plainly I'm doing
> something quite wrong.
>
> I am trying to build turck-mmcache-2.4.6 with PHP 4.3.9 and with this (and
> other PHP modules) I am continually getting aclocal and libtool related
> errors, even after installing *all* of the various autoconf and automake
> options.  I see that they are all getting installed with names like
> "autoconf259" and so on so I suspect that it has something to do with the
> fact that "phpize" can't figure out what's going on.  I've done quite a few
> web searches looking for info on how to do this sort of thing properly but
> I can't seem to find anything either on the FreeBSD site or elsewhere.  If
> anyone can point me in the right direction that would be great.
>
> Here are some examples of the behavior I'm seeing:
>
> ---
>
> sol# ./pear install APC
> downloading APC-2.0.4.tgz ...
> Starting to download APC-2.0.4.tgz (44,606 bytes)
> ............done: 44,606 bytes
> 35 source files, building
> running: phpize
> aclocal: not found
> `phpize' failed
>
> ---
>
> sol# which aclocal
> aclocal: Command not found.
> sol# which aclocal18
> /usr/local/bin/aclocal18
>
> ---
>
> I've tried creating a soft link to the various utilities involved but this
> just results in unresolved m4 macros so I don't think this is a proper
> solution, even if I could get it working.
>
> Any help would be apreciated!
>
> -Gabe
>
I ran into similar problems when trying to repackage a port. Basically I set 
up several soft links to solve the problem, here is my aclocal for example:

ls -l /usr/local/bin/aclocal*

lrwxr-xr-x  1 root  wheel     24 Sep 26 16:23 /usr/local/bin/aclocal 
-> /usr/local/bin/aclocal18
-r-xr-xr-x  1 root  wheel  11496 Sep 24 11:17 /usr/local/bin/aclocal14
-r-xr-xr-x  1 root  wheel  12852 Sep 21 14:23 /usr/local/bin/aclocal15
-r-xr-xr-x  1 root  wheel  19234 Sep 26 16:30 /usr/local/bin/aclocal18
-r-xr-xr-x  1 root  wheel  20434 Sep 26 15:39 /usr/local/bin/aclocal19

and automake:

ls -l /usr/local/bin/automake*
lrwxr-xr-x  1 root  wheel      25 Sep 26 16:20 /usr/local/bin/automake 
-> /usr/local/bin/automake18
-r-xr-xr-x  1 root  wheel  199592 Sep 24 11:17 /usr/local/bin/automake14
-r-xr-xr-x  1 root  wheel  216027 Sep 21 14:23 /usr/local/bin/automake15
-r-xr-xr-x  1 root  wheel  211032 Sep 26 16:30 /usr/local/bin/automake18
-r-xr-xr-x  1 root  wheel  220728 Sep 26 15:39 /usr/local/bin/automake19

Basically some scripts will only look for aclocal or automake without an 
extention number.  I use automake18 instead of 19 because 19 seems
not to work properly.

-Mike


More information about the freebsd-questions mailing list