# ***************************************************************************** # configure.in : script de compilation # configure.in : compilation script # # # getxml : Traducteur XML - XML translator # Copyright (c) 2000-2001 Philippe Roy # Auteur - Author : Philippe Roy # # # Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier # sous les termes de la licence publique générale GNU telle qu'elle est publiée par # la Free Software Foundation ; soit la version 2 de la licence, ou # (comme vous voulez) toute version ultérieure. # # Ce programme est distribué dans l'espoir qu'il sera utile, # mais SANS AUCUNE GARANTIE ; même sans la garantie de # COMMERCIALITÉ ou d'ADÉQUATION A UN BUT PARTICULIER. Voir la # licence publique générale GNU pour plus de détails. # # Vous devriez avoir reçu une copie de la licence publique générale GNU # avec ce programme ; si ce n'est pas le cas, écrivez à la Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ***************************************************************************** dnl *************************************************************************** dnl getxml dnl *************************************************************************** AC_INIT(configure.in) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(getxml, 1.0.4) AC_DEFINE(GETXML_PACKAGE, "getxml") AC_DEFINE(GETXML_VERSION, "1.0.4") AC_DEFINE(GETXML_DATEVERSION, "08/2001") dnl *************************************************************************** dnl Standard dnl *************************************************************************** AM_MAINTAINER_MODE AC_CANONICAL_HOST AM_ACLOCAL_INCLUDE(macros) AC_ISC_POSIX AC_PROG_CC AC_STDC_HEADERS AC_ARG_PROGRAM AM_PROG_LIBTOOL AC_SUBST(QTTHREADS_LIB) AC_SUBST(TERMCAP_LIB) AC_SUBST(READLINE_LIB) AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) dnl *************************************************************************** dnl Infrastructure dnl *************************************************************************** dnl libxml AC_MSG_CHECKING(for libxml) if xml-config --libs > /dev/null 2>&1; then AC_MSG_RESULT(yes) xml_msg=yes else AC_MSG_ERROR(libxml library not found) xml_msg=no fi XML_CFLAGS=`xml-config --cflags` XML_LIBS=`xml-config --libs` AC_SUBST(XML_CFLAGS) AC_SUBST(XML_LIBS) # AC_MSG_CHECKING(for libxml library) # if xml2-config --libs > /dev/null 2>&1; then # AC_MSG_RESULT(yes) # xml_msg=yes # else # AC_MSG_ERROR(libxml library not found) # xml_msg=no # fi # XML_CFLAGS=`xml2-config --cflags` # XML_LIBS=`xml2-config --libs` # AC_SUBST(XML_CFLAGS) # AC_SUBST(XML_LIBS) dnl GLib AC_MSG_CHECKING(for GLib) if glib-config --libs > /dev/null 2>&1; then AC_MSG_RESULT(yes) glib_msg=yes else AC_MSG_ERROR(GLib library not found) glib_msg=no fi GLIB_CFLAGS=`glib-config --cflags` GLIB_LIBS=`glib-config --libs` AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) dnl *************************************************************************** dnl fr: Script de compilation dnl en: Compilation script dnl *************************************************************************** AC_OUTPUT([ Makefile macros/Makefile src/Makefile test/Makefile ]) dnl *************************************************************************** dnl Echo dnl *************************************************************************** echo "---------------------------------------------------------------------- getxml configuration: Source code location: ${srcdir} Compiler: ${CC} Prefix: $prefix Infrastructure: - GLib: ${glib_msg} - libxml: ${xml_msg} ----------------------------------------------------------------------"