SDL_image 1.2.5 doesn't compile on FreeBSD 6.0

Hello, getting this strange little warning on FreeBSD 6.0:

checking for uncompress in -lz… yes
./configure: line 20142: xno: command not found
checking for png_create_read_struct in -lpng… yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL_image.spec
config.status: creating SDL_image.qpg
config.status: executing depfiles commands

Then, later on, the make fails with:

gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE=“SDL_image”
-DVERSION=“1.2.5” -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLOAD_PNG=1
-DLOAD_XV=1 -I. -I. -g -O2 -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -c IMG_png.c -fPIC -DPIC -o
.libs/IMG_png.o
IMG_png.c:70:17: png.h: No such file or directory
IMG_png.c: In function IMG_isPNG': IMG_png.c:84: error:png_size_t’ undeclared (first use in this function)
IMG_png.c:84: error: (Each undeclared identifier is reported only once
IMG_png.c:84: error: for each function it appears in.)
IMG_png.c:84: error: syntax error before numeric constant
IMG_png.c:84: error: syntax error before ‘)’ token
IMG_png.c: At top level:
IMG_png.c:91: error: syntax error before "ctx"
IMG_png.c: In function png_read_data': IMG_png.c:95: error:ctx’ undeclared (first use in this function)
IMG_png.c:96: error: area' undeclared (first use in this function) IMG_png.c:96: error:size’ undeclared (first use in this function)
IMG_png.c: In function IMG_LoadPNG_RW': IMG_png.c:103: error: syntax error before "png_ptr" IMG_png.c:112: error:png_bytep’ undeclared (first use in this function)
IMG_png.c:112: error: syntax error before "volatile"
IMG_png.c:115: error: png_color_16' undeclared (first use in this function) IMG_png.c:115: error:transv’ undeclared (first use in this function)
IMG_png.c:125: error: png_ptr' undeclared (first use in this function) IMG_png.c:125: error:info_ptr’ undeclared (first use in this function)
IMG_png.c:125: error: row_pointers' undeclared (first use in this function) IMG_png.c:128: error:PNG_LIBPNG_VER_STRING’ undeclared (first use in
this function)
IMG_png.c:156: error: width' undeclared (first use in this function) IMG_png.c:156: error:height’ undeclared (first use in this function)
IMG_png.c:168: error: PNG_COLOR_TYPE_GRAY' undeclared (first use in this function) IMG_png.c:174: error:PNG_INFO_tRNS’ undeclared (first use in this function)
IMG_png.c:179: error: PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function) IMG_png.c:200: error:PNG_COLOR_TYPE_GRAY_ALPHA’ undeclared (first
use in this function)
IMG_png.c:242: error: syntax error before ‘)’ token
IMG_png.c:249: error: syntax error before "Uint8"
IMG_png.c:286: error: `png_infopp’ undeclared (first use in this function)
IMG_png.c:286: error: syntax error before numeric constant
*** Error code 1

I think it’s just a matter of including the proper directory:

-I/usr/local/include/libpng

But I don’t know how to tell this to autoconf.

Should I file a bug report?
cheers,
a1

Hello, getting this strange little warning on FreeBSD 6.0:

checking for uncompress in -lz… yes
./configure: line 20142: xno: command not found

This should already be fixed in subversion…

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment