summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>1999-05-08 18:16:30 +0000
committerAndrey Hristov <andrey@php.net>1999-05-08 18:16:30 +0000
commitcd901e858650ed2778c6fc777aefc2fe0538e347 (patch)
tree701ce117f5c0db12d43eac1a6e82f61993951e6d
parentae6f852cb67f2cab0787035811efc0426f8e2d86 (diff)
downloadphp-git-cd901e858650ed2778c6fc777aefc2fe0538e347.tar.gz
-fixed configure.in.in to use genif.sh instead of genif.pl
-fixed genif.sh -updated php3_mysql.h to have phpext_mysql_ptr
-rw-r--r--configure.in.in2
-rw-r--r--ext/mysql/php3_mysql.h2
-rw-r--r--genif.sh5
3 files changed, 5 insertions, 4 deletions
diff --git a/configure.in.in b/configure.in.in
index c0c08ad299..9ea289df70 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -876,7 +876,7 @@ chmod +x scripts/mkextlib
echo "creating internal_functions.c"
extensions=\`grep '^s.@EXT_SUBDIRS@' \$0|sed -e 's/^.*@% *//' -e 's/%.*$//'\`
mv -f internal_functions.c internal_functions.c.old 2>/dev/null
-perl $srcdir/genif.pl $srcdir/internal_functions.c.in \$srcdir \$extensions > internal_functions.c
+sh $srcdir/genif.sh $srcdir/internal_functions.c.in \$srcdir \$extensions > internal_functions.c
if cmp internal_functions.c.old internal_functions.c > /dev/null 2>&1; then
echo "internal_functions.c is unchanged"
mv internal_functions.c.old internal_functions.c
diff --git a/ext/mysql/php3_mysql.h b/ext/mysql/php3_mysql.h
index 0769edf5cb..748ad70a67 100644
--- a/ext/mysql/php3_mysql.h
+++ b/ext/mysql/php3_mysql.h
@@ -116,4 +116,6 @@ extern ZEND_API php_mysql_globals mysql_globals;
#endif
+#define phpext_mysql_ptr mysql_module_ptr
+
#endif /* _PHP3_MYSQL_H */
diff --git a/genif.sh b/genif.sh
index d30c37e581..571e2b9a88 100644
--- a/genif.sh
+++ b/genif.sh
@@ -1,6 +1,6 @@
#! /bin/sh
-# $Id: genif.sh,v 1.1 1999-05-06 20:52:19 sas Exp $
+# $Id: genif.sh,v 1.2 1999-05-08 18:16:29 andrey Exp $
# replacement for genif.pl
infile="$1"
@@ -16,8 +16,7 @@ fi
cmd1='echo $data | grep @EXT_INCLUDE_CODE@ > /dev/null 2>&1'
cmd2='echo $data | grep @EXT_MODULE_PTRS@ > /dev/null 2>&1'
-while read ; do
- data="$REPLY"
+while read data; do
if eval $cmd1 ; then
for ext in $* ; do
for pre in php3 php php4 zend; do