# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # configure.ac # # This file is processed by autoconf to generate a configure script. # the configure script is then used to configure the build. # AC_INIT([TripleSoup], [0.0.1]) AC_CONFIG_HEADER([include/config.h]) AM_INIT_AUTOMAKE # dnl include our homebrew scripts sinclude(build/apache2.m4) sinclude(build/redland.m4) sinclude(build/dbm.m4) srcdir=`pwd` topdir=`pwd` # Defaults that some systems will need to override A_EXT=a ARFLAGS="-ar" CFLAGS="-Wall -O2" OBJ_EXT=o PICFLAGS="-fPIC -DPIC" SO_EXT=so SO_FLAGS=-shared AC_ARG_WITH(cflags, [ --with-cflags Specify additional flags to pass to preprocessor] , [ if test "x$withval" != "xno"; then CFLAGS="$CFLAGS $withval" fi ] ) AC_ARG_WITH(cppflags, [ --with-cppflags Specify additional flags to pass to preprocessor] , [ if test "x$withval" != "xno"; then CPPFLAGS="$CPPFLAGS $withval" fi ] ) AC_PROG_CC AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_RANLIB TS_CHECK_APACHE2 TS_CHECK_REDLAND TS_FIND_BERKELEY_DB AC_SUBST(topdir) AC_SUBST(A_EXT) AC_SUBST(APXS) AC_SUBST(ARFLAGS) AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) AC_SUBST(OBJ_EXT) AC_SUBST(PICFLAGS) AC_SUBST(REDLAND) AC_SUBST(SO_EXT) AC_SUBST(SO_FLAGS) AC_CONFIG_FILES([bin/b/Makefile build/rules.mk libraries/b/Makefile modules/sparql/Makefile perl/rdfstore/Makefile.PL]) AC_OUTPUT (cd perl/rdfstore && perl Makefile.PL)