libs-gdl2/configure.ac

73 lines
2.3 KiB
Text
Raw Normal View History

# configure.in for GDL2 library
# Process this file with autoconf to produce a configure script.
#
# Copyright (C) 2002,2004,2005 Free Software Foundation, Inc.
#
# Written by: Mirko Viviani <mirko.viviani@rccr.cremona.it>
#
# This file is part of the GDL2 library.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library;
# If not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
builtin(include, config/postgres.m4)dnl
AC_INIT
if test -z "$GNUSTEP_SYSTEM_ROOT"; then
AC_MSG_ERROR([You must run the GNUstep initialization script first!])
fi
AC_CONFIG_HEADER(config.h)
#--------------------------------------------------------------------
# Check for Postgres database
#--------------------------------------------------------------------
AM_PATH_PGSQL(enable_pgsql=yes, enable_pgsql=no)
if test $enable_pgsql = yes; then
EOADAPTORS="$EOADAPTORS Postgres95"
HAVE_PGSQL=1
# AC_DEFINE(HAVE_LIBXML,1,
# [Define if libxml available])
else
HAVE_PGSQL=0
fi
AC_SUBST(EOADAPTORS)
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------
AC_MSG_CHECKING(for the version of GDL2 we are compiling)
if test -f "Version"; then
. ./Version
fi
AC_MSG_RESULT($VERSION)
AC_SUBST(VERSION)
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(SUBMINOR_VERSION)
AC_SUBST(GCC_VERSION)
#--------------------------------------------------------------------
# Write the Makefiles
#--------------------------------------------------------------------
AC_CONFIG_FILES([gdl2.make EOAdaptors/GNUmakefile EOAdaptors/Postgres95/GNUmakefile EOAdaptors/Postgres95/config.mak])
AC_OUTPUT