Skip to content

Instantly share code, notes, and snippets.

@pierrejoye
Created January 10, 2015 08:11
Show Gist options
  • Select an option

  • Save pierrejoye/0859e3702ceb3bb652b6 to your computer and use it in GitHub Desktop.

Select an option

Save pierrejoye/0859e3702ceb3bb652b6 to your computer and use it in GitHub Desktop.
bundle script draft patch #2
diff --git a/acinclude.m4 b/acinclude.m4
index a4d4d50..84299c3 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2604,6 +2604,20 @@ AC_DEFUN([PHP_INSTALL_HEADERS],[
])
])
+dnl
+dnl PHP_BUILTIN_SCRIPT(name, file)
+dnl
+dnl data to be built with the extension
+dnl
+AC_DEFUN([PHP_BUILTIN_SCRIPT],[
+ destdir=PHP_EXT_DIR($1)
+
+ echo "const char *extname_script =" > $destdir/builtinscript.c && hexdump -e '16/1 "_x%02X" "\n"' $2 | sed 's/_/\\/g; s/\\x //g; s/.*/ "&"/' >> $destdir/builtinscript.c && echo ";" >> $destdir/builtinscript.c
+
+ PHP_ADD_SOURCES(PHP_EXT_DIR($1), builtinscript.c)
+ ])
+])
+
dnl
dnl PHP_AP_EXTRACT_VERSION(/path/httpd)
dnl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment