# HG changeset patch # User pl # Date 1004016768 0 # Node ID 1e0a75f83c9c7439c6b09309bed8fb09372d4a72 # Parent 451426046a1473c05ed0c6ca6a328c6ec3eff8af I was wrong: test didn't work changed "test !" to simpler constructions where used added a : which avoided compilation diff -r 451426046a14 -r 1e0a75f83c9c configure --- a/configure Thu Oct 25 13:19:18 2001 +0000 +++ b/configure Thu Oct 25 13:32:48 2001 +0000 @@ -835,12 +835,13 @@ LINGUAS="en" fi echo Checking for language ... "$LINGUAS" -_mp_help="help_mp-"$LINGUAS".h" -if test ! -f "$_mp_help" ; then -echo "Language file ("$_mp_help") not found!" -LINGUAS="en" -_mp_help="help_mp-"$LINGUAS".h" -fi +_mp_help="help_mp-${LINGUAS}.h" + +test -f "$_mp_help" || { + echo "Language file (${_mp_help}) not found!" + LINGUAS="en" + _mp_help="help_mp-"$LINGUAS".h" +} echo Using ... "$_mp_help" file cc_check $_extraincdir $_extralibdir -lvgagl -lvga && _svga=yes @@ -892,8 +893,9 @@ _png=no if irix64 ; then - # Don't check for -lpng on irix since irix has its own libpng - # incompatible with the GNU one + # Don't check for -lpng on irix since it has its own libpng + # incompatible with the GNU libpng + : else cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes fi @@ -2042,12 +2044,13 @@ _have_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H' fi -# malloc.h useless in FreeBSD -if test "$_malloc_h" = yes && test ! freebsd ; then +if test "$_malloc_h" = yes ; then _have_malloc_h='#define HAVE_MALLOC_H 1' else _have_malloc_h='#undef HAVE_MALLOC_H' fi +# malloc.h useless in FreeBSD +freebsd && _have_malloc_h='#undef HAVE_MALLOC_H' if test "$_memalign" = yes ; then _have_memalign='#define HAVE_MEMALIGN 1'