mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
set up automake
This commit is contained in:
parent
8dd4a63366
commit
3b516557f2
@ -1,7 +0,0 @@
|
||||
CC = gcc
|
||||
CFLAGS = -O2 -DPTHREADS -DHAVE_STDARG_H=1
|
||||
OBJS = TSRM.o
|
||||
AR = ar
|
||||
|
||||
libtsrm.a: $(OBJS)
|
||||
$(AR) cru libtsrm.a $(OBJS)
|
4
TSRM/Makefile.am
Normal file
4
TSRM/Makefile.am
Normal file
@ -0,0 +1,4 @@
|
||||
## process this file with automake to produce Makefile.am
|
||||
AUTOMAKE_OPTIONS=foreign
|
||||
lib_LIBRARIES=libtsrm.a
|
||||
libtsrm_a_SOURCES = TSRM.c
|
@ -17,8 +17,8 @@
|
||||
#ifndef _TSRM_H
|
||||
#define _TSRM_H
|
||||
|
||||
#if !(WIN32||WINNT)
|
||||
# define PTHREADS
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#if WIN32||WINNT
|
||||
|
7
TSRM/acconfig.h
Normal file
7
TSRM/acconfig.h
Normal file
@ -0,0 +1,7 @@
|
||||
#undef PTHREADS
|
||||
|
||||
#ifdef DEFINE_TSRM_VERSION
|
||||
# undef PACKAGE
|
||||
# undef VERSION
|
||||
#endif
|
||||
|
24
TSRM/buildconf
Executable file
24
TSRM/buildconf
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
mv aclocal.m4 aclocal.m4.old 2>/dev/null
|
||||
aclocal
|
||||
if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then
|
||||
echo keeping ${1}aclocal.m4
|
||||
mv aclocal.m4.old aclocal.m4
|
||||
else
|
||||
echo created or modified ${1}aclocal.m4
|
||||
fi
|
||||
|
||||
autoheader
|
||||
|
||||
automake --add-missing --include-deps
|
||||
|
||||
mv configure configure.old 2>/dev/null
|
||||
autoconf
|
||||
if cmp configure.old configure > /dev/null 2>&1; then
|
||||
echo keeping ${1}configure
|
||||
mv configure.old configure
|
||||
else
|
||||
echo created or modified ${1}configure
|
||||
fi
|
||||
|
21
TSRM/configure.in
Normal file
21
TSRM/configure.in
Normal file
@ -0,0 +1,21 @@
|
||||
dnl $Id$
|
||||
dnl
|
||||
dnl Minimalistic configure.in for TSRM.
|
||||
dnl
|
||||
|
||||
AC_INIT(TSRM.c)
|
||||
AM_INIT_AUTOMAKE(TSRM, 1.0)
|
||||
AM_CONFIG_HEADER(tsrm_config.h)
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CC_C_O
|
||||
AC_PROG_RANLIB
|
||||
|
||||
AC_CHECK_LIB(pthread, pthread_create, [
|
||||
AC_DEFINE(PTHREADS)
|
||||
LIBS="$LIBS -lpthread"
|
||||
],[
|
||||
AC_MSG_ERROR(You need pthreads to build TSRM.)
|
||||
])
|
||||
|
||||
AC_OUTPUT(Makefile)
|
Loading…
Reference in New Issue
Block a user