dnl----------------------------------------------------------------------------- dnl Copyright (c) 2010 Sourcefabric O.P.S. dnl dnl This file is part of the Campcaster project. dnl http://campcaster.sourcefabric.org/ dnl dnl Campcaster is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl Campcaster is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with Campcaster; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA dnl dnl----------------------------------------------------------------------------- dnl----------------------------------------------------------------------------- dnl NOTE: Run all configure related scripts from the tmp directory of the dnl project. dnl This is due to the fact that configure spreads a lot of trash around, dnl like atom4te cache directories, config.* files, etc. into the directory dnl it is being run from. We clearly don't want these in our base directory. dnl----------------------------------------------------------------------------- AC_INIT(StorageServer, 0.0, bugs@campware.org) AC_PREREQ(2.59) AC_COPYRIGHT([Copyright (c) 2010 Sourcefabric O.P.S. under the GNU GPL]) AC_REVISION($Revision$) AC_CONFIG_SRCDIR(../var/BasicStor.php) dnl----------------------------------------------------------------------------- dnl specify wether the Campcaster database and user should be created dnl----------------------------------------------------------------------------- AC_SUBST(CREATE_LS_DATABASE) AC_ARG_WITH([create-database], AC_HELP_STRING([--with-create-database], [specify wether the Campcaster database and database user should be created (no)]), [CREATE_LS_DATABASE=${withval}], [CREATE_LS_DATABASE=no]) AC_MSG_RESULT([creating Campcaster database: ${CREATE_LS_DATABASE}]) dnl----------------------------------------------------------------------------- dnl specify wether the Campcaster database tables should be initialized dnl----------------------------------------------------------------------------- AC_SUBST(INIT_LS_DATABASE) AC_ARG_WITH([init-database], AC_HELP_STRING([--with-init-database], [specify wether the Campcaster database tables should be initialized (no)]), [INIT_LS_DATABASE=${withval}], [INIT_LS_DATABASE=no]) AC_MSG_RESULT([initializing Campcaster database: ${INIT_LS_DATABASE}]) dnl----------------------------------------------------------------------------- dnl specify the FQDN dnl----------------------------------------------------------------------------- AC_SUBST(HOSTNAME) AC_ARG_WITH([hostname], AC_HELP_STRING([--with-hostname], [use the specified hostname (guess)]), [HOSTNAME=${withval}], [HOSTNAME=`hostname -f`]) AC_MSG_RESULT([using hostname: ${HOSTNAME}]) dnl----------------------------------------------------------------------------- dnl specify group in which apache is running dnl----------------------------------------------------------------------------- AC_SUBST(APACHE_GROUP) AC_ARG_WITH([apache-group], AC_HELP_STRING([--with-apache-group], [use apache running in the specified group (apache)]), [APACHE_GROUP=${withval}], [APACHE_GROUP=apache]) AC_MSG_RESULT([using apache group: ${APACHE_GROUP}]) dnl----------------------------------------------------------------------------- dnl specify the web server port dnl----------------------------------------------------------------------------- AC_SUBST(WWW_PORT) AC_ARG_WITH([www-port], AC_HELP_STRING([--with-www-port], [use the specified www port (80)]), [WWW_PORT=${withval}], [WWW_PORT=80]) AC_MSG_RESULT([using www port: ${WWW_PORT}]) dnl----------------------------------------------------------------------------- dnl specify the scheduler server port dnl----------------------------------------------------------------------------- AC_SUBST(SCHEDULER_PORT) AC_ARG_WITH([scheduler-port], AC_HELP_STRING([--with-scheduler-port], [use the specified scheduler port (3344)]), [SCHEDULER_PORT=${withval}], [SCHEDULER_PORT=3344]) AC_MSG_RESULT([using scheduler port: ${SCHEDULER_PORT}]) dnl----------------------------------------------------------------------------- dnl specify the database server name dnl----------------------------------------------------------------------------- AC_SUBST(DB_SERVER) AC_ARG_WITH([database-server], AC_HELP_STRING([--with-database-server], [use the specified database server (localhost)]), [DB_SERVER=${withval}], [DB_SERVER=localhost]) AC_MSG_RESULT([using database server: ${DB_SERVER}]) dnl----------------------------------------------------------------------------- dnl get the name of the Campcaster database dnl----------------------------------------------------------------------------- AC_SUBST(DATABASE) AC_ARG_WITH([database], AC_HELP_STRING([--with-database], [the name of the postgresql database to use (Campcaster)]), [DATABASE=${withval}], [DATABASE=Campcaster]) AC_MSG_RESULT([using database: ${DATABASE}]) dnl----------------------------------------------------------------------------- dnl specify the database server user dnl----------------------------------------------------------------------------- AC_SUBST(DB_USER) AC_ARG_WITH([database-user], AC_HELP_STRING([--with-database-user], [use the specified database server user (campcaster)]), [DB_USER=${withval}], [DB_USER=campcaster]) AC_MSG_RESULT([using database server user: ${DB_USER}]) dnl----------------------------------------------------------------------------- dnl specify the database server user password dnl----------------------------------------------------------------------------- AC_SUBST(DB_PASSWORD) AC_ARG_WITH([database-password], AC_HELP_STRING([--with-database-password], [use the specified database server user password (campcaster)]), [DB_PASSWORD=${withval}], [DB_PASSWORD=campcaster]) AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}]) dnl----------------------------------------------------------------------------- dnl specify web document root dnl----------------------------------------------------------------------------- AC_SUBST(WWW_DOCROOT) AC_ARG_WITH([www-docroot], AC_HELP_STRING([--with-www-docroot], [deploy Campcaster under the specified docroot (/var/www)]), [WWW_DOCROOT=${withval}], [WWW_DOCROOT=/var/www]) AC_MSG_RESULT([using www document root: ${WWW_DOCROOT}]) dnl----------------------------------------------------------------------------- dnl specify url prefix dnl----------------------------------------------------------------------------- AC_SUBST(URL_PREFIX) AC_ARG_WITH([url-prefix], AC_HELP_STRING([--with-url-prefix], [use the specified url prefix (campcaster)]), [URL_PREFIX=${withval}], [URL_PREFIX=campcaster]) AC_MSG_RESULT([using url prefix: ${URL_PREFIX}]) dnl display status info on what libraries will get compiled AC_MSG_NOTICE( [using the following configuration settings: hostname: ${HOSTNAME} www port: ${WWW_PORT} scheduler port: ${SCHEDULER_PORT} database server: ${DB_SERVER} database name: ${DATABASE} database user: ${DB_USER} database user password: ${DB_PASSWORD} creating Campcaster database: ${CREATE_LS_DATABASE} initialize Campcaster database: ${INIT_LS_DATABASE} www document root: ${WWW_DOCROOT} url prefix: ${URL_PREFIX} ]) AC_CONFIG_FILES(../Makefile:../etc/Makefile.in) AC_OUTPUT()