mcatan 2004/06/04 10:42:57
Modified: . configure.in
Log:
fixed solaris specific options (gcc vs sunpro cc)
Revision Changes Path
1.41 +14 -0 logging-log4cxx/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/logging-log4cxx/configure.in,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- configure.in 30 May 2004 07:50:27 -0000 1.40
+++ configure.in 4 Jun 2004 17:42:57 -0000 1.41
@@ -177,8 +177,22 @@
LIBS="-pthread $LIBS"
;;
*solaris*)
+ AC_COMPILE_IFELSE(
+ AC_LANG_PROGRAM(,[
+ #if defined(sparc) && defined(__SUNPRO_CC)
+ char c;
+ #endif
+ c = 0;]),
+ sunpro_cc=yes,
+ sunpro_cc=no)
+ if test "x$sunpro_cc" = "xyes"
+ then
CPPFLAGS="$CPPFLAGS -D_REENTRANT
-features=%all,no%iddollar,extensions -xarch=v8plus"
LIBS="-lpthread -lrt -xarch=v8plus $LIBS"
+ else
+ CPPFLAGS="$CPPFLAGS -D_REENTRANT"
+ LIBS="-lpthread -lrt $LIBS"
+ fi
;;
*)
CPPFLAGS="$CPPFLAGS -D_REENTRANT"