Re: [AD] Configure script ....

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi Michael:

> salvador <salvador@xxxxxxxxxx> writes:
>
> >   That's the first time I compile a WIP for Linux. Is a very nice to
> > see it working but there are a lot of details to solve. Here are
> > some problems I have:
> >
> > [alllegro version: 3.9.32]
> >
> > 1) configure script seems to think I don't have mmap. I have mmap!
> > so to compile I was forced to touch the configuration by hand. I
> > don't know much about autoconf so I can't say what's wrong.
>
> Copy the program that searches for mmap from configure script (search
> for "checking for working mmap").  Add diagnostic messages in this
> program to see where it fails.  If it fails then either mmap is not
> conforming to standard, or there is a problem in this test program.

Let's see. I extracted the C code, compiled it and it seems to run succesfully
(exit code 0).

> Maybe configure find that you don't have MAP_FAILED?  It is a
> workaround for missing define on some platforms.

Let's see. Extracted the code and works. Also looking in the cache says "yes" for
this option.

As I said before: I don't know much about autoconf. What other thing can I test?
Note: I'm running Linux 2.0.38 with glibc 2 and mmap seems to work for Allegro
because I forced the defines.

> > 2) configure also seems to think I don't have DGA ... I have DGA,
> > even more, I have DGA 1.1 (accelerated one)
> >
> > ...
> >
> > Well, I tried and it compiles with:
> >
> > gcc t.c -lXxf86dga -L/usr/X11R6/lib/ -lX11 -lXext
> >
> > Is perhaps a lack of X11 and Xext in the test? just a wild guess.
>
> configure script should take X11 from LIBS variable and Xext should be
> added to LIBS if SHM extension was found.  Yes, it might be better to
> add Xext when testing for DGA library too.  You can try the following:
>
> In aclocal.m4 in place of
>
>   dnl Test for XF86DGA extension.
>   if test -n "$allegro_enable_xwin_xf86dga"; then
>     AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
>       [AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
>         [LIBS="-lXxf86dga -lXxf86vm $LIBS"
>         AC_DEFINE(ALLEGRO_XWINDOWS_WITH_XF86DGA)])])
>   fi
>
> write
>
>   dnl Test for XF86DGA extension.
>   if test -n "$allegro_enable_xwin_xf86dga"; then
>     AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
>       [AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
>         [LIBS="-lXxf86dga -lXxf86vm -lXext $LIBS"
>         AC_DEFINE(ALLEGRO_XWINDOWS_WITH_XF86DGA)],
>         [], -lXext)],
>       [], -lXext)
>   fi
>
> Run autoconf and autoheader, remove cache and try to configure again.

Let me see ... OK, it works. Additionally the mmap is now detected. Looks like the
newly generated configure fixed it.

> > 4) I use enlightenment (a not so new version) with esd. Allegro examples are
> > linked with -lesd but they doesn't emit sound while esd is running. If I kill
> > esd I get sound but the quality is random, sometimes OK and sometimes have
> > noises, like some extra data in the buffer.
>
> You can try to enlarge buffer for OSS by editing oss_fragsize in
> allegro.cfg.  Larger buffer may remove these noises, but may add some
> delays between action which triggers sound and sound itself.

Ok.

Thanks, SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft@xxxxxxxxxx set@xxxxxxxxxx
                    set@xxxxxxxxxx set-soft@xxxxxxxxxx
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/