Commit 55c5b0c7 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

make sure -lm is in $LIBS for the finite/isfinite test, fixes issues on

2002-08-03  Manish Singh  <yosh@gimp.org>

        * configure.in: make sure -lm is in $LIBS for the finite/isfinite
        test, fixes issues on newer FreeBSD

        * plug-ins/common/jpeg.c: cast statbuf.st_size to glong for
        g_snprintf
parent 3d92aa58
2002-08-03 Manish Singh <yosh@gimp.org>
* configure.in: make sure -lm is in $LIBS for the finite/isfinite
test, fixes issues on newer FreeBSD
* plug-ins/common/jpeg.c: cast statbuf.st_size to glong for
g_snprintf
2002-08-03 Maurits Rijk <lpeek.mrijk@consunet.nl> 2002-08-03 Maurits Rijk <lpeek.mrijk@consunet.nl>
* plug-ins/imagemap/Makefile.am (EXTRA_DIST): removed *.xpm files for * plug-ins/imagemap/Makefile.am (EXTRA_DIST): removed *.xpm files for
......
...@@ -287,21 +287,6 @@ AC_TRY_RUN([#include <math.h> ...@@ -287,21 +287,6 @@ AC_TRY_RUN([#include <math.h>
AC_MSG_RESULT), AC_MSG_RESULT),
AC_MSG_RESULT()) AC_MSG_RESULT())
LIBS=$gimp_save_LIBS
dnl NeXTStep cc seems to need this
AC_MSG_CHECKING([for extra flags for POSIX compliance])
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
AC_MSG_RESULT(none needed),
gimp_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -posix"
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
AC_MSG_RESULT(-posix),
AC_MSG_RESULT()
CFLAGS=$gimp_save_CFLAGS
AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
dnl Check for finite or isfinite dnl Check for finite or isfinite
AC_CHECK_FUNCS(finite, , [ AC_CHECK_FUNCS(finite, , [
AC_MSG_CHECKING(for finite in <math.h>) AC_MSG_CHECKING(for finite in <math.h>)
...@@ -317,6 +302,21 @@ AC_CHECK_FUNCS(finite, , [ ...@@ -317,6 +302,21 @@ AC_CHECK_FUNCS(finite, , [
AC_SUBST(HAVE_FINITE) AC_SUBST(HAVE_FINITE)
AC_SUBST(HAVE_ISFINITE) AC_SUBST(HAVE_ISFINITE)
LIBS=$gimp_save_LIBS
dnl NeXTStep cc seems to need this
AC_MSG_CHECKING([for extra flags for POSIX compliance])
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
AC_MSG_RESULT(none needed),
gimp_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -posix"
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
AC_MSG_RESULT(-posix),
AC_MSG_RESULT()
CFLAGS=$gimp_save_CFLAGS
AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
dnl check for rint dnl check for rint
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT, 1, AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT, 1,
[Define to 1 if you have the rint function.]), [ [Define to 1 if you have the rint function.]), [
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp) ...@@ -1130,7 +1130,7 @@ background_jpeg_save (PreviewPersistent *pp)
stat (pp->file_name, &buf); stat (pp->file_name, &buf);
g_snprintf (temp, sizeof (temp), g_snprintf (temp, sizeof (temp),
_("Size: %ld bytes (%02.01f kB)"), _("Size: %ld bytes (%02.01f kB)"),
(gint) buf.st_size, (gdouble) (buf.st_size) / 1024.0); (glong) buf.st_size, (gdouble) (buf.st_size) / 1024.0);
gtk_label_set_text (GTK_LABEL (preview_size), temp); gtk_label_set_text (GTK_LABEL (preview_size), temp);
/* and load the preview */ /* and load the preview */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment