|
| 1 | +dnl aclocal.m4 generated automatically by aclocal 1.3 |
| 2 | + |
| 3 | +dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. |
| 4 | +dnl This Makefile.in is free software; the Free Software Foundation |
| 5 | +dnl gives unlimited permission to copy and/or distribute it, |
| 6 | +dnl with or without modifications, as long as this notice is preserved. |
| 7 | + |
| 8 | +dnl This program is distributed in the hope that it will be useful, |
| 9 | +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 10 | +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 11 | +dnl PARTICULAR PURPOSE. |
| 12 | + |
1 | 13 | dnl $Id$
|
2 | 14 | dnl
|
3 | 15 | dnl This file contains local autoconf functions.
|
@@ -227,28 +239,6 @@ main() {
|
227 | 239 | ])
|
228 | 240 | ])
|
229 | 241 |
|
230 |
| -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*- |
231 |
| -## Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
232 |
| -## Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
233 |
| -## |
234 |
| -## This program is free software; you can redistribute it and/or modify |
235 |
| -## it under the terms of the GNU General Public License as published by |
236 |
| -## the Free Software Foundation; either version 2 of the License, or |
237 |
| -## (at your option) any later version. |
238 |
| -## |
239 |
| -## This program is distributed in the hope that it will be useful, but |
240 |
| -## WITHOUT ANY WARRANTY; without even the implied warranty of |
241 |
| -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
242 |
| -## General Public License for more details. |
243 |
| -## |
244 |
| -## You should have received a copy of the GNU General Public License |
245 |
| -## along with this program; if not, write to the Free Software |
246 |
| -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
247 |
| -## |
248 |
| -## As a special exception to the GNU General Public License, if you |
249 |
| -## distribute this file as part of a program that contains a |
250 |
| -## configuration script generated by Autoconf, you may include it under |
251 |
| -## the same distribution terms that you use for the rest of that program. |
252 | 242 |
|
253 | 243 | # serial 9 AM_PROG_LIBTOOL
|
254 | 244 | AC_DEFUN(AM_PROG_LIBTOOL,
|
@@ -415,3 +405,101 @@ Check your system clock])
|
415 | 405 | fi
|
416 | 406 | rm -f conftest*
|
417 | 407 | AC_MSG_RESULT(yes)])
|
| 408 | + |
| 409 | +dnl |
| 410 | +dnl Stuff to do when setting up a new extension. |
| 411 | +dnl XXX have to change the hardcoding of ".a" when we want to be able |
| 412 | +dnl to make dynamic libraries as well. |
| 413 | +dnl |
| 414 | +AC_DEFUN(PHP_EXTENSION,[ |
| 415 | + EXT_SUBDIRS="$EXT_SUBDIRS $1" |
| 416 | + _extlib="libphpext_$1.a" |
| 417 | + EXT_LIBS="$EXT_LIBS $1/$_extlib" |
| 418 | + EXTINFO_DEPS="$EXTINFO_DEPS ../ext/$1/extinfo.c.stub" |
| 419 | +]) |
| 420 | + |
| 421 | +AC_SUBST(EXT_SUBDIRS) |
| 422 | +AC_SUBST(EXT_LIBS) |
| 423 | +AC_SUBST(EXTINFO_DEPS) |
| 424 | + |
| 425 | +# Do all the work for Automake. This macro actually does too much -- |
| 426 | +# some checks are only needed if your package does certain things. |
| 427 | +# But this isn't really a big deal. |
| 428 | + |
| 429 | +# serial 1 |
| 430 | + |
| 431 | +dnl Usage: |
| 432 | +dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
| 433 | + |
| 434 | +AC_DEFUN(AM_INIT_AUTOMAKE, |
| 435 | +[AC_REQUIRE([AM_PROG_INSTALL]) |
| 436 | +PACKAGE=[$1] |
| 437 | +AC_SUBST(PACKAGE) |
| 438 | +VERSION=[$2] |
| 439 | +AC_SUBST(VERSION) |
| 440 | +dnl test to see if srcdir already configured |
| 441 | +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 442 | + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| 443 | +fi |
| 444 | +ifelse([$3],, |
| 445 | +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") |
| 446 | +AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) |
| 447 | +AC_REQUIRE([AM_SANITY_CHECK]) |
| 448 | +AC_REQUIRE([AC_ARG_PROGRAM]) |
| 449 | +dnl FIXME This is truly gross. |
| 450 | +missing_dir=`cd $ac_aux_dir && pwd` |
| 451 | +AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) |
| 452 | +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
| 453 | +AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) |
| 454 | +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
| 455 | +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
| 456 | +AC_REQUIRE([AC_PROG_MAKE_SET])]) |
| 457 | + |
| 458 | + |
| 459 | +# serial 1 |
| 460 | + |
| 461 | +AC_DEFUN(AM_PROG_INSTALL, |
| 462 | +[AC_REQUIRE([AC_PROG_INSTALL]) |
| 463 | +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 464 | +AC_SUBST(INSTALL_SCRIPT)dnl |
| 465 | +]) |
| 466 | + |
| 467 | +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
| 468 | +dnl The program must properly implement --version. |
| 469 | +AC_DEFUN(AM_MISSING_PROG, |
| 470 | +[AC_MSG_CHECKING(for working $2) |
| 471 | +# Run test in a subshell; some versions of sh will print an error if |
| 472 | +# an executable is not found, even if stderr is redirected. |
| 473 | +# Redirect stdin to placate older versions of autoconf. Sigh. |
| 474 | +if ($2 --version) < /dev/null > /dev/null 2>&1; then |
| 475 | + $1=$2 |
| 476 | + AC_MSG_RESULT(found) |
| 477 | +else |
| 478 | + $1="$3/missing $2" |
| 479 | + AC_MSG_RESULT(missing) |
| 480 | +fi |
| 481 | +AC_SUBST($1)]) |
| 482 | + |
| 483 | +# Like AC_CONFIG_HEADER, but automatically create stamp file. |
| 484 | + |
| 485 | +AC_DEFUN(AM_CONFIG_HEADER, |
| 486 | +[AC_PREREQ([2.12]) |
| 487 | +AC_CONFIG_HEADER([$1]) |
| 488 | +dnl When config.status generates a header, we must update the stamp-h file. |
| 489 | +dnl This file resides in the same directory as the config header |
| 490 | +dnl that is generated. We must strip everything past the first ":", |
| 491 | +dnl and everything past the last "/". |
| 492 | +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl |
| 493 | +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, |
| 494 | +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, |
| 495 | +<<am_indx=1 |
| 496 | +for am_file in <<$1>>; do |
| 497 | + case " <<$>>CONFIG_HEADERS " in |
| 498 | + *" <<$>>am_file "*<<)>> |
| 499 | + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx |
| 500 | + ;; |
| 501 | + esac |
| 502 | + am_indx=`expr "<<$>>am_indx" + 1` |
| 503 | +done<<>>dnl>>) |
| 504 | +changequote([,]))]) |
| 505 | + |
0 commit comments