Permalink
Browse files

- Make the debug client use autoconf/automake. (Derick)

- Added libedit support to the debugclient. (Marco)

SVN Rev: 447
  • Loading branch information...
derickr committed Nov 12, 2002
1 parent 0928aea commit 57d2da2ee3378874724ebcf495372fd764e80f71
View
@@ -1,6 +0,0 @@
-all-optional: debugclient/main.c usefulstuff.c
- @gcc -Wall -g -o debugclient/debugclient debugclient/main.c usefulstuff.c
-
-install-optional:
- @echo "Installing debugclient into '$(prefix)/bin/.'"
- @cp debugclient/debugclient $(prefix)/bin/
View
@@ -0,0 +1,68 @@
+--------------------------------------------------------------------
+ The PHP License, version 3.0
+Copyright (c) 1999 - 2002 The PHP Group. All rights reserved.
+--------------------------------------------------------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, is permitted provided that the following conditions
+are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ 3. The name "PHP" must not be used to endorse or promote products
+ derived from this software without prior written permission. For
+ written permission, please contact group@php.net.
+
+ 4. Products derived from this software may not be called "PHP", nor
+ may "PHP" appear in their name, without prior written permission
+ from group@php.net. You may indicate that your software works in
+ conjunction with PHP by saying "Foo for PHP" instead of calling
+ it "PHP Foo" or "phpfoo"
+
+ 5. The PHP Group may publish revised and/or new versions of the
+ license from time to time. Each version will be given a
+ distinguishing version number.
+ Once covered code has been published under a particular version
+ of the license, you may always continue to use it under the terms
+ of that version. You may also choose to use such covered code
+ under the terms of any subsequent version of the license
+ published by the PHP Group. No one other than the PHP Group has
+ the right to modify the terms applicable to covered code created
+ under this License.
+
+ 6. Redistributions of any form whatsoever must retain the following
+ acknowledgment:
+ "This product includes PHP, freely available from
+ <http://www.php.net/>".
+
+THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
+ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
+DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+--------------------------------------------------------------------
+
+This software consists of voluntary contributions made by many
+individuals on behalf of the PHP Group.
+
+The PHP Group can be contacted via Email at group@php.net.
+
+For more information on the PHP Group and the PHP project,
+please see <http://www.php.net>.
+
+This product includes the Zend Engine, freely available at
+<http://www.zend.com>.
View
@@ -0,0 +1,3 @@
+1. ./configure
+2. make
+3. make install
View
@@ -1,2 +0,0 @@
-all:
- gcc -Wall -g -o debugclient main.c ../usefulstuff.c -I..
View
@@ -0,0 +1,26 @@
+## $Id: Makefile.am,v 1.1 2002-11-12 11:07:59 derick Exp $
+##
+
+## The contents of this file are subject to the Vulcan Logic Public
+## License Version 1.1 (the "License"); you may not use this file
+## except in compliance with the License. You may obtain a copy of
+## the License at http://www.vl-srm.net/vlpl/
+##
+## Software distributed under the License is distributed on an "AS
+## IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+## implied. See the License for the specific language governing
+## rights and limitations under the License.
+##
+## The Original Code is vl-srm.net code.
+##
+## The Initial Developer of the Original Code is the Vulcan Logic
+## Group. Portions created by Vulcan Logic Group are Copyright (C)
+## 2000, 2001, 2002 Vulcan Logic Group. All Rights Reserved.
+##
+## Contributor(s):
+##/
+
+debugclient_LDFLAGS = -export-dynamic
+
+bin_PROGRAMS = debugclient
+debugclient_SOURCES = main.c usefulstuff.c
View
@@ -0,0 +1,77 @@
+dnl
+dnl $Id: acinclude.m4,v 1.1 2002-11-12 11:07:59 derick Exp $
+dnl
+dnl This file contains local autoconf functions.
+dnl The contents of this file are subject to the Vulcan Logic Public
+dnl License Version 1.1 (the "License"); you may not use this file
+dnl except in compliance with the License. You may obtain a copy of
+dnl the License at http://www.vl-srm.net/vlpl/
+dnl
+dnl Software distributed under the License is distributed on an "AS
+dnl IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+dnl implied. See the License for the specific language governing
+dnl rights and limitations under the License.
+dnl
+dnl The Original Code is vl-srm.net code.
+dnl
+dnl The Initial Developer of the Original Code is the Vulcan Logic
+dnl Group. Portions created by Vulcan Logic Group are Copyright (C)
+dnl 2000, 2001, 2002 Vulcan Logic Group. All Rights Reserved.
+dnl
+dnl Contributor(s):
+dnl
+
+dnl
+dnl XDEBUG_MODULE_ADD(modulename [, static])
+dnl
+XDEBUG_STATIC_LDADD=""
+AC_DEFUN(XDEBUG_MODULE_ADD,[
+ XDEBUG_MODULES="$XDEBUG_MODULES $1"
+ if test a$2 != "a"; then
+ XDEBUG_STATIC_MODULES="$XDEBUG_STATIC_MODULES $1"
+ XDEBUG_STATIC_LDADD="$XDEBUG_STATIC_LDADD \$(top_srcdir)/modules/$1/lib$1.la"
+ fi
+ XDEBUG_MOD_MAKEFILES="$XDEBUG_MOD_MAKEFILES modules/$1/Makefile"
+])
+
+dnl
+dnl XDEBUG_HELP_SEPARATOR(text)
+dnl
+AC_DEFUN(XDEBUG_HELP_SEPARATOR,[
+AC_ARG_ENABLE([],[
+$1],[])
+])
+
+dnl
+dnl XDEBUG_SSL_CHECK
+dnl
+AC_DEFUN(XDEBUG_SSL_CHECK,[
+ AC_MSG_CHECKING([where the openssl is installed])
+ AC_ARG_WITH(ssl-dir,
+ [ --with-ssl-dir=<dir> Define the path to OpenSSL install location. [/usr/local] ],
+ [
+
+ test -f $withval/lib/libcrypto.so -o -f $withval/lib/libcrypto.a && XDEBUG_SSL_DIR="$withval"
+ test -f $withval/include/openssl/des.h && INCLUDES="$INCLUDES -I$withval/include"
+
+ if test -z "$XDEBUG_SSL_DIR"; then
+ AC_MSG_ERROR([not found. Check the path given to --with-ssl-dir=<dir>])
+ else
+ AC_MSG_RESULT([$XDEBUG_SSL_DIR])
+ fi
+
+ ],[
+
+ for i in /usr/local/ssl /usr/local /usr /usr/local/openssl; do
+ test -f $i/lib/libcrypto.so -o -f $i/lib/libcrypto.a && XDEBUG_SSL_DIR="$i"
+ test -f $i/include/openssl/des.h && INCLUDES="$INCLUDES -I$i/include"
+ done
+
+ if test -z "$XDEBUG_SSL_DIR"; then
+ AC_MSG_RESULT([not found.])
+ else
+ AC_MSG_RESULT([$XDEBUG_SSL_DIR])
+ fi
+
+ ])
+])
@@ -0,0 +1,115 @@
+#! /bin/sh
+# +----------------------------------------------------------------------+
+# | PHP Version 4 |
+# +----------------------------------------------------------------------+
+# | Copyright (c) 1997-2002 The PHP Group |
+# +----------------------------------------------------------------------+
+# | This source file is subject to version 2.02 of the PHP license, |
+# | that is bundled with this package in the file LICENSE, and is |
+# | available at through the world-wide-web at |
+# | http://www.php.net/license/2_02.txt. |
+# | If you did not receive a copy of the PHP license and are unable to |
+# | obtain it through the world-wide-web, please send a note to |
+# | license@php.net so we can mail you a copy immediately. |
+# +----------------------------------------------------------------------+
+# | Authors: Stig Bakken <ssb@fast.no> |
+# | Sascha Schumann <sascha@schumann.cx> |
+# +----------------------------------------------------------------------+
+#
+# $Id: buildcheck.sh,v 1.1 2002-11-12 11:08:02 derick Exp $
+#
+
+echo "buildconf: checking installation..."
+
+stamp=$1
+
+# autoconf 2.13 or newer
+ac_version=`autoconf --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
+if test -z "$ac_version"; then
+echo "buildconf: autoconf not found."
+echo " You need autoconf version 2.13 or newer installed"
+echo " to build PHP from CVS."
+exit 1
+fi
+IFS=.; set $ac_version; IFS=' '
+if test "$1" = "2" -a "$2" -lt "13" || test "$1" -lt "2"; then
+echo "buildconf: autoconf version $ac_version found."
+echo " You need autoconf version 2.13 or newer installed"
+echo " to build PHP from CVS."
+exit 1
+else
+echo "buildconf: autoconf version $ac_version (ok)"
+fi
+
+
+if test "$1" = "2" && test "$2" -ge "50"; then
+ echo "buildconf: Your version of autoconf likely contains buggy cache code."
+ echo " Running cvsclean for you."
+ echo " To avoid this, install autoconf-2.13 and automake-1.5."
+ ./cvsclean
+ stamp=
+fi
+
+
+# automake 1.4 or newer
+am_version=`automake --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
+am_version_clean=`echo $am_version|sed -e 's/-p[0-9]*$//'`
+if test "$am_version" = ""; then
+echo "buildconf: automake not found."
+echo " You need automake version 1.4 or newer installed"
+echo " to build PHP from CVS."
+exit 1
+fi
+IFS=.; set $am_version_clean; IFS=' '
+if test "$1" = "1" -a "$2" -lt "4" || test "$1" -lt "1"; then
+echo "buildconf: automake version $am_version found."
+echo " You need automake version 1.4 or newer installed"
+echo " to build PHP from CVS."
+exit 1
+else
+echo "buildconf: automake version $am_version (ok)"
+fi
+
+# libtool 1.4 or newer
+# Prefer glibtool over libtool for Mac OS X compatibility
+libtool=`which glibtool 2> /dev/null`
+if test ! -f "$libtool"; then libtool=`which libtool`; fi
+lt_pversion=`$libtool --version 2>/dev/null|sed -n -e 's/^[^0-9]*//' -e 1's/[- ].*//p'`
+if test "$lt_pversion" = ""; then
+echo "buildconf: libtool not found."
+echo " You need libtool version 1.4 or newer installed"
+echo " to build PHP from CVS."
+exit 1
+fi
+lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
+IFS=.; set $lt_version; IFS=' '
+
+if test "$1" -gt "1" || test "$2" -ge "4";
+then
+echo "buildconf: libtool version $lt_pversion (ok)"
+else
+echo "buildconf: libtool version $lt_pversion found."
+echo " You need libtool version 1.4 or newer installed"
+echo " to build PHP from CVS."
+exit 1
+fi
+
+am_prefix=`which automake | sed -e 's#/[^/]*/[^/]*$##'`
+lt_prefix=`echo $libtool | sed -e 's#/[^/]*/[^/]*$##'`
+if test "$am_prefix" != "$lt_prefix"; then
+ echo "WARNING: automake and libtool are installed in different"
+ echo " directories. This may cause aclocal to fail."
+ echo " continuing anyway"
+fi
+
+set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'`
+if test "${1}" = "1" -a "${2}" -lt "28"; then
+echo "buildconf: You need GNU Bison 1.28 or newer installed."
+exit 1
+else
+echo "buildconf: bison version ${1}.${2} (ok)"
+fi
+
+test -n "$stamp" && touch $stamp
+
+exit 0
@@ -0,0 +1,9 @@
+
+all: buildmk.stamp generated_list
+ @$(MAKE) -s -f build/buildconf2.mk
+
+buildmk.stamp: build/buildcheck.sh
+ @build/buildcheck.sh $@
+
+generated_list:
+ @echo config_m4_files = modules/*/config*.m4 >> $@
@@ -0,0 +1,32 @@
+
+include generated_list
+
+TOUCH_FILES = mkinstalldirs install-sh missing
+
+all: $(TOUCH_FILES) config_h.in aclocal.m4 targets configure
+
+targets:
+ @echo rebuilding Makefile templates
+ @for i in `find . -name Makefile.am`; do \
+ (automake -a `dirname $$i`/Makefile 2>/dev/null || true); \
+ echo " `dirname $$i`/Makefile.in"; \
+ done
+
+aclocal.m4: configure.in acinclude.m4
+ @echo rebuilding $@
+ @aclocal 2>&1
+
+config_h.in: configure
+
+# explicitly remove target since autoheader does not seem to work
+# correctly otherwise (timestamps are not updated)
+ @echo rebuilding $@
+ @rm -f $@
+ @autoheader 2>&1
+
+$(TOUCH_FILES):
+ @touch $(TOUCH_FILES)
+
+configure: aclocal.m4 configure.in $(config_m4_files)
+ @echo rebuilding $@
+ @autoconf 2>&1 | (egrep -v 'warning: AC_PROG_LEX invoked multiple times' || true)
@@ -0,0 +1,5 @@
+all:
+ @for i in `find . -name .cvsignore`; do \
+ (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore` *.o *.a || true); \
+ done
+
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+
+dir=$1; shift
+
+for m4file in $dir/*/config.m4; do
+ echo "sinclude($m4file)"
+done
Oops, something went wrong.

0 comments on commit 57d2da2

Please sign in to comment.