From: Manish Singh Date: Mon, 7 Sep 1998 02:13:51 +0000 (+0000) Subject: configure.in: added -std1 check for ANSI compliance (from gtk) X-Git-Tag: GLIB_1_1_3a~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=affa6a06770c047761586bede62ca8e8cdef3cfb;p=platform%2Fupstream%2Fglib.git configure.in: added -std1 check for ANSI compliance (from gtk) -Yosh --- diff --git a/ChangeLog b/ChangeLog index 887bd4a..4a3d932 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 887bd4a..4a3d932 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Sun Sep 6 19:08:53 PDT 1998 Manish Singh + + * configure.in: added -std1 check for ANSI compliance (from gtk) + Sun Sep 6 12:31:50 PDT 1998 Manish Singh * glib.h: provide proper ATEXIT behavior on NeXTStep by !atexit diff --git a/configure.in b/configure.in index 533bda8..c45184b 100644 --- a/configure.in +++ b/configure.in @@ -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 + int main (void) { return (log(1) != log(1.)); }], + AC_MSG_RESULT(none needed), + glib_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=$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