diff --git a/ChangeLog b/ChangeLog index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 31a1899cff..e3c514c3a7 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Mon Sep 7 22:20:40 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance + Thu Aug 13 09:11:11 BST 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/configure.in b/configure.in index 3d396a3297..62fc511b33 100644 --- a/configure.in +++ b/configure.in @@ -85,6 +85,26 @@ if test "x$GCC" = "xyes"; then fi fi +dnl DU4 native cc currently needs -std1 for ANSI mode (instead of K&R) +AC_MSG_CHECKING([for extra flags to get ANSI library prototypes]) +gtk_save_LIBS=$LIBS +LIBS="$LIBS -lm" +AC_TRY_RUN([#include + int main (void) { return (log(1) != log(1.)); }], + AC_MSG_RESULT(none needed), + gtk_save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -std1" + AC_TRY_RUN([#include + int main (void) { return (log(1) != log(1.)); }], + AC_MSG_RESULT(-std1), + AC_MSG_RESULT() + CFLAGS=$gtk_save_CFLAGS + AC_MSG_WARN( + [No ANSI prototypes found in library. (-std1 didn't work.)]) + ) +) +LIBS=$gtk_save_LIBS + if test "x$enable_xim" = "xyes"; then CFLAGS="$CFLAGS -DUSE_XIM" fi