components/apr-1_5/patches/apr_common.m4.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Fri, 21 Mar 2014 07:47:48 -0700
changeset 1782 5aa8051aaa4b
permissions -rw-r--r--
PSARC/2014/099 APR and APR-util 1.5; EOF APR and APR-util 1.3 18397386 APR 1.5.0

Patch origin: in-house
Patch status: Solaris-specific; not suitable for upstream

This is added to fix the MKDEP value for Solaris Studio compiler.

--- build/apr_common.m4.orig	Mon Oct 29 04:47:32 2007
+++ build/apr_common.m4	Wed Aug 13 01:36:00 2008
@@ -948,7 +948,7 @@
   int main() { return 0; }
 EOF
   MKDEP="true"
-  for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
+  for i in "$CC -MM" "$CC -M" "$CC -xM" "$CPP -MM" "$CPP -M" "$CPP -xM" "cpp -M"; do
     AC_MSG_CHECKING([if $i can create proper make dependencies])
     if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
       MKDEP=$i