]> arthur.barton.de Git - ngircd.git/commitdiff
Added defines for SunOS (5.6). [from HEAD]
authorAlexander Barton <alex@barton.de>
Tue, 22 Apr 2003 20:00:19 +0000 (20:00 +0000)
committerAlexander Barton <alex@barton.de>
Tue, 22 Apr 2003 20:00:19 +0000 (20:00 +0000)
configure.in

index 0b6274d004bd1f12adf52644865271d7f9274c8e..eaf4f0150adce96a154a4a81e1ad8d55072b5cd3 100644 (file)
@@ -8,7 +8,7 @@
 # (at your option) any later version.
 # Please read the file COPYING, README and AUTHORS for more information.
 #
-# $Id: configure.in,v 1.89.2.1 2003/04/21 22:49:45 alex Exp $
+# $Id: configure.in,v 1.89.2.2 2003/04/22 20:00:19 alex Exp $
 #
 
 # -- Initialisierung --
@@ -76,6 +76,13 @@ if test `uname` = "HP-UX"; then
        add_DEFINES="-D_XOPEN_SOURCE_EXTENDED $add_DEFINES"
 fi
 
+if test `uname` = "SunOS"; then
+       # define _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED=1 and __EXTENSIONS__
+       # when compiling on SunOS (tested with 5.6):
+       AC_MSG_RESULT([detected SunOS, defining _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED=1 and __EXTENSIONS__])
+       add_DEFINES="-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__ $add_DEFINES"
+fi
+
 # -- Header --
 
 AC_HEADER_STDC