configure.in: added -std1 check for ANSI compliance (from gtk)
authorManish Singh <yosh@src.gnome.org>
Mon, 7 Sep 1998 02:13:51 +0000 (02:13 +0000)
committerManish Singh <yosh@src.gnome.org>
Mon, 7 Sep 1998 02:13:51 +0000 (02:13 +0000)
-Yosh

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in

index 887bd4a..4a3d932 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 887bd4a..4a3d932 100644 (file)
@@ -1,3 +1,7 @@
+Sun Sep  6 19:08:53 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -std1 check for ANSI compliance (from gtk)
+
 Sun Sep  6 12:31:50 PDT 1998 Manish Singh <yosh@gimp.org>
 
        * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit
index 533bda8..c45184b 100644 (file)
@@ -109,6 +109,25 @@ if eval "test x$GCC = xyes"; then
   fi
 fi
 
+AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
+glib_save_LDFLAGS=$LDFLAGS
+LIBS="$LIBS -lm"
+AC_TRY_RUN([#include <math.h>
+             int main (void) { return (log(1) != log(1.)); }],
+     AC_MSG_RESULT(none needed),
+     glib_save_CFLAGS=$CFLAGS
+     CFLAGS="$CFLAGS -std1"
+     AC_TRY_RUN([#include <math.h>
+                 int main (void) { return (log(1) != log(1.)); }],
+         AC_MSG_RESULT(-std1),
+         AC_MSG_RESULT()
+         CFLAGS=$glib_save_CFLAGS
+         AC_MSG_WARN(
+                [No ANSI prototypes found in library. (-std1 didn't work.)])
+     )
+)
+LIBS=$glib_save_LIBS
+
 # Checks for header files.
 AC_HEADER_STDC