dnl Setting projet libraries and includes
LDFLAGS="$LDFLAGS -L../libkmath -L../libk -L../libcio -L../libir"
ctlibs_base="$ctlibs_base -lkmath -lk -lcio"
-if test -n "$pngdir" ; then
+if test "$png" = "true" ; then
ctlibs_base="$ctlibs_base -lpng"
fi
if test "$zlib" = "true" ; then
ctlibs_base="$ctlibs_base -lz"
fi
-if test "$png" = "true" ; then
- ctlibs_base="$ctlibs_base -lpng"
-fi
if test "$g2" = "true" ; then
ctlibs_base="$ctlibs_base -lg2"
fi