Update of /cvsroot/mahogany/M
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13710

Modified Files:
        acinclude.m4 
Log Message:
added M_GCC_OPTION

Index: acinclude.m4
===================================================================
RCS file: /cvsroot/mahogany/M/acinclude.m4,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -u -2 -r1.10 -r1.11
--- acinclude.m4        25 Aug 2006 15:08:24 -0000      1.10
+++ acinclude.m4        25 Aug 2006 15:38:28 -0000      1.11
@@ -170,2 +170,19 @@
   ]
 )
+
+dnl M_GCC_OPTION(OPTION, ACTION-IF-SUPPORTED, ACTION-IF-NOT-SUPPORTED)
+dnl
+dnl Check if gcc supports the given option (fails if compiler is not gcc)
+AC_DEFUN([M_GCC_OPTION], [
+   AC_REQUIRE([AC_PROG_CC])
+   if test "x$GCC" = "xyes"; then
+      echo 'void f(){}' >conftest.c
+      case "`$CC $1 -c conftest.c 2>&1`" in
+         '') ifelse([$2], , :, [$2]) ;;
+         *)  ifelse([$3], , :, [$3]) ;;
+      esac
+      rm -f conftest.*
+   else
+      ifelse([$3], , :, [$3])
+   fi
+])


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to