1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/365690485-php_extension_config

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
config.m4 2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
365690485@qq.com Отправлено 29.09.2013 07:40 8f0bb0f
dnl $Id$
dnl config.m4 for extension config
dnl Comments in this file start with the string 'dnl'.
dnl Remove where necessary. This file will not work
dnl without editing.
dnl If your extension references something external, use with:
dnl PHP_ARG_WITH(config, for config support,
dnl Make sure that the comment is aligned:
dnl [ --with-config Include config support])
dnl Otherwise use enable:
PHP_ARG_ENABLE(config, whether to enable config support,
dnl Make sure that the comment is aligned:
[ --enable-config Enable config support])
if test "$PHP_CONFIG" != "no"; then
dnl Write more examples of tests here...
dnl # --with-config -> check with-path
dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
dnl SEARCH_FOR="/include/config.h" # you most likely want to change this
dnl if test -r $PHP_CONFIG/$SEARCH_FOR; then # path given as parameter
dnl CONFIG_DIR=$PHP_CONFIG
dnl else # search default path list
dnl AC_MSG_CHECKING([for config files in default path])
dnl for i in $SEARCH_PATH ; do
dnl if test -r $i/$SEARCH_FOR; then
dnl CONFIG_DIR=$i
dnl AC_MSG_RESULT(found in $i)
dnl fi
dnl done
dnl fi
dnl
dnl if test -z "$CONFIG_DIR"; then
dnl AC_MSG_RESULT([not found])
dnl AC_MSG_ERROR([Please reinstall the config distribution])
dnl fi
dnl # --with-config -> add include path
dnl PHP_ADD_INCLUDE($CONFIG_DIR/include)
dnl # --with-config -> check for lib and symbol presence
dnl LIBNAME=config # you may want to change this
dnl LIBSYMBOL=config # you most likely want to change this
dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
dnl [
dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $CONFIG_DIR/lib, CONFIG_SHARED_LIBADD)
dnl AC_DEFINE(HAVE_CONFIGLIB,1,[ ])
dnl ],[
dnl AC_MSG_ERROR([wrong config lib version or lib not found])
dnl ],[
dnl -L$CONFIG_DIR/lib -lm
dnl ])
dnl
dnl PHP_SUBST(CONFIG_SHARED_LIBADD)
PHP_NEW_EXTENSION(config, config.c, $ext_shared)
fi

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/365690485-php_extension_config.git
git@api.gitlife.ru:oschina-mirror/365690485-php_extension_config.git
oschina-mirror
365690485-php_extension_config
365690485-php_extension_config
master