[AD] allegro-config (4.0.3 beta 1) breaks on NetBSD

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


Hi,

I tried out Allegro 4.0.3 beta 1 on my computer running
NetBSD/i386 1.6, and it turned out that allegro-config won't
return the correct include path anymore.  The fix for gcc3 is
incorrect for NetBSD, where /usr/local/include is not a system
include directory.  I've written a quick-and-dirty patch, but it
might need more thought, and it might apply to platforms other
than NetBSD as well.

Regards,
Magnus Henoch
mange@xxxxxxxxxx

--- allegro-4.0.3-old/misc/allegro-config.in	Mon Dec 23 10:27:10 2002
+++ allegro-4.0.3/misc/allegro-config.in	Sat Dec 28 14:31:44 2002
@@ -147,7 +147,7 @@
 if test "$echo_cflags" = "yes"; then
    # gcc 3 complains if we add system include directories with -I.
    # This cheap hack should catch most cases.
-   if test ${prefix} = /usr || test ${prefix} = /usr/local; then
+   if test ${prefix} = /usr || (test `uname` != NetBSD && test ${prefix} = /usr/local) ; then
       echo $allegro_cflags
    else
       echo -I${prefix}/include $allegro_cflags
@@ -155,7 +155,7 @@
 fi
 
 if test "$echo_cppflags" = "yes"; then
-   if test ${prefix} = /usr || test ${prefix} = /usr/local; then
+   if test ${prefix} = /usr || (test `uname` != NetBSD && test ${prefix} = /usr/local) ; then
       echo $allegro_cppflags
    else
       echo -I${prefix}/include $allegro_cppflags



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