| 4281 |
# This is just to silence aclocal about the macro not being used |
# This is just to silence aclocal about the macro not being used |
| 4282 |
ifelse([AC_DISABLE_FAST_INSTALL]) |
ifelse([AC_DISABLE_FAST_INSTALL]) |
| 4283 |
|
|
| 4284 |
# Configure paths for GEDCOMPARSER |
# Copyright 2002 Cyril Picard |
| 4285 |
# Cyril PICARD 26-09-2002 |
# |
| 4286 |
|
# This file is part of the GEDCOMParser library |
| 4287 |
|
# (developed within the Genealogy Free Software Tools project). |
| 4288 |
|
# |
| 4289 |
|
# The GEDCOMParser library is free software; you can redistribute it and/or modify |
| 4290 |
|
# it under the terms of the GNU General Public License as published by |
| 4291 |
|
# the Free Software Foundation; either version 2 of the License, or |
| 4292 |
|
# (at your option) any later version. |
| 4293 |
|
# |
| 4294 |
|
# The GEDCOMParser library is distributed in the hope that it will be useful, |
| 4295 |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4296 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 4297 |
|
# GNU General Public License for more details. |
| 4298 |
|
# |
| 4299 |
|
# You should have received a copy of the GNU General Public License |
| 4300 |
|
# along with the GEDCOMParser library ; if not, write to the Free Software |
| 4301 |
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 4302 |
|
# |
| 4303 |
|
# |
| 4304 |
|
|
| 4305 |
dnl Test for GEDCOMPARSER, and define GEDCOMPARSER_CFLAGS and GEDCOMPARSER_LIBS |
dnl Test for GEDCOMPARSER, and define GEDCOMPARSER_CFLAGS and GEDCOMPARSER_LIBS |
| 4306 |
dnl to be used as follows: |
dnl to be used as follows: |
| 4343 |
else |
else |
| 4344 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
| 4345 |
|
|
| 4346 |
GEDCOMPARSER_CFLAGS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --cflags` |
GEDCOMPARSER_CFLAGS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --cflags gedcomparser` |
| 4347 |
GEDCOMPARSER_LIBS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --libs` |
GEDCOMHELPER_CFLAGS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --cflags gedcomhelper` |
| 4348 |
|
GEDCOMPARSER_LIBS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --libs gedcomparser` |
| 4349 |
|
GEDCOMHELPER_LIBS=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --libs gedcomhelper` |
| 4350 |
gedcomparser_config_major_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
gedcomparser_config_major_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
| 4351 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
| 4352 |
gedcomparser_config_minor_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
gedcomparser_config_minor_version=`$GEDCOMPARSER_CONFIG $gedcomparser_config_args --version | \ |
| 4356 |
if test "x$enable_gedcomparsertest" = "xyes" ; then |
if test "x$enable_gedcomparsertest" = "xyes" ; then |
| 4357 |
ac_save_CXXFLAGS="$CXXFLAGS" |
ac_save_CXXFLAGS="$CXXFLAGS" |
| 4358 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
| 4359 |
CXXFLAGS="$CXXFLAGS $GEDCOMPARSER_CFLAGS" |
CXXFLAGS="$CXXFLAGS $GEDCOMPARSER_CFLAGS $GEDCOMHELPER_CFLAGS" |
| 4360 |
LIBS="$LIBS $GEDCOMPARSER_LIBS" |
LIBS="$LIBS $GEDCOMPARSER_LIBS $GEDCOMHELPER_LIBS" |
| 4361 |
dnl |
dnl |
| 4362 |
dnl Now check if the installed GEDCOMPARSER is sufficiently new. (Also sanity |
dnl Now check if the installed GEDCOMPARSER is sufficiently new. (Also sanity |
| 4363 |
dnl checks the results of gedcomparser-config to some extent |
dnl checks the results of gedcomparser-config to some extent |
| 4367 |
|
|
| 4368 |
#include "GEDCOMParser/Parser.hh" |
#include "GEDCOMParser/Parser.hh" |
| 4369 |
#include "GEDCOMParser/GEDCOMFactory.hh" |
#include "GEDCOMParser/GEDCOMFactory.hh" |
| 4370 |
|
#include "GEDCOMHelper/IndividualRecordHelper.hh" |
| 4371 |
|
|
| 4372 |
int |
int |
| 4373 |
main () |
main () |
| 4374 |
{ |
{ |
| 4375 |
system ("touch conf.gtkmmtest"); |
system ("touch conf.gedcomparsertest"); |
| 4376 |
GEDCOMParser::GEDCOMFactory factory; |
GEDCOMParser::GEDCOMFactory factory; |
| 4377 |
GEDCOMParser::Parser viewparser(&factory); |
GEDCOMParser::Parser viewparser(&factory); |
| 4378 |
|
GEDCOMHelper::IndividualRecordHelper(0,0); |
| 4379 |
return 0; |
return 0; |
| 4380 |
} |
} |
| 4381 |
],, no_gedcomparser=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
],, no_gedcomparser=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
| 4433 |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
| 4434 |
AC_SUBST(GEDCOMPARSER_CFLAGS) |
AC_SUBST(GEDCOMPARSER_CFLAGS) |
| 4435 |
AC_SUBST(GEDCOMPARSER_LIBS) |
AC_SUBST(GEDCOMPARSER_LIBS) |
| 4436 |
|
AC_SUBST(GEDCOMHELPER_CFLAGS) |
| 4437 |
|
AC_SUBST(GEDCOMHELPER_LIBS) |
| 4438 |
rm -f conf.gedcomparsertest |
rm -f conf.gedcomparsertest |
| 4439 |
]) |
]) |
| 4440 |
|
|