added -posix check for NeXTStep
authorManish Singh <yosh@src.gnome.org>
Wed, 9 Sep 1998 09:52:31 +0000 (09:52 +0000)
committerManish Singh <yosh@src.gnome.org>
Wed, 9 Sep 1998 09:52:31 +0000 (09:52 +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 3d91963..2caee70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 3d91963..2caee70 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
 Tue Sep  8 05:04:06 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: abandon the use of ATEXIT(), we keep the fallback
index 20458ce..47461ce 100644 (file)
@@ -129,6 +129,18 @@ AC_TRY_RUN([#include <math.h>
 )
 LIBS=$glib_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),
+  glib_save_CFLAGS=$CFLAGS
+  CFLAGS="$CFLAGS -posix"
+  AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
+    AC_MSG_RESULT(-posix),
+    AC_MSG_RESULT()
+    CFLAGS=$glib_save_CFLAGS
+    AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
+
 # Checks for header files.
 AC_HEADER_STDC