[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build error on Mac OS X
From: |
Ben Pfaff |
Subject: |
Re: Build error on Mac OS X |
Date: |
Tue, 21 May 2013 20:33:19 -0700 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, May 21, 2013 at 09:29:20AM +0300, Teppo Jussm?ki wrote:
> Works well.
Thanks. I applied this to master.
> Maybe checking the libtoolize could be inserted in the top of the
> Smake file to save some user's time for obvious forthcoming build
> error when missing essential tools.
I agree that would be an improvement.
> Ben Pfaff 21.5.2013 (21) kello 6.24:
> >
> > Does this work? It may be too fancy:
> >
> > diff --git a/Smake b/Smake
> > index d061973..4782126 100644
> > --- a/Smake
> > +++ b/Smake
> > @@ -130,7 +130,15 @@ prep_ph:
> > --source-base=gl --lib=libgl --tests-base=tests \
> > --doc-base=gl/doc --aux-dir=build-aux \
> > --libtool $(GNULIB_MODULES)
> > - libtoolize --force --automake
> > + if (glibtoolize --version) >/dev/null 2>&1; then \
> > + LIBTOOLIZE=glibtoolize; \
> > + elif (libtoolize --version) >/dev/null 2>&1; then \
> > + LIBTOOLIZE=libtoolize; \
> > + else \
> > + echo >&2 "libtoolize not found"; \
> > + exit 1; \
> > + fi; \
> > + $$LIBTOOLIZE --force --automake
> >
> > aclocal.m4:
> > aclocal -I m4 -I gl/m4
>