For testing purposes on SunOS systems; directly feed acinclude.m4 with
authorYang Tse <yangsita@gmail.com>
Tue, 29 Jul 2008 19:31:34 +0000 (19:31 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 29 Jul 2008 19:31:34 +0000 (19:31 +0000)
reentrant.m4 and remove reentrant.m4 before calling aclocal.

buildconf

index ef19251..58f9def 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -312,6 +312,18 @@ if test "x$tmp_host_type" = "xSunOS"; then
   IFS=$old_IFS
   echo "buildconf: SED: $SED"
 
+  echo "buildconf: Feeding acinclude.m4 with reentrant.m4"
+
+  sed 's/m4_include.*m4.*reentrant.m4.*//' acinclude.m4 > acinclude.2
+  mv acinclude.2 acinclude.m4
+  cat m4/reentrant.m4 >> acinclude.m4
+  rm -f m4/reentrant.m4
+
+  sed 's/m4_include.*m4.*reentrant.m4.*//' ares/acinclude.m4 > ares/acinclude.2
+  mv ares/acinclude.2 ares/acinclude.m4
+  cat ares/m4/reentrant.m4 >> ares/acinclude.m4
+  rm -f ares/m4/reentrant.m4
+
 fi
 
 echo "buildconf: running libtoolize"