+ AC_MSG_RESULT(no)
+ if test "$GEDCOM_CONFIG" = "no" ; then
+ echo "*** The gedcom-config script installed by gedcom-parse could not be found"
+ echo "*** If gedcom-parse was installed in PREFIX, make sure PREFIX/bin is in"
+ echo "*** your path, or set the GEDCOM_CONFIG environment variable to the"
+ echo "*** full path to gedcom-config."
+ echo "*** It could also be that your version of gedcom-parse is too old."
+ echo "*** You need at least version $min_gedcom_version. The latest version"
+ echo "*** of gedcom-parse can always be found at this location:"
+ echo "*** https://sourceforge.net/projects/gedcom-parse"
+ else
+ if test -f conf.gedcomtest ; then
+ :
+ else
+ echo "*** Could not run gedcom-parse test program, checking why..."
+ CFLAGS="$CFLAGS $GEDCOM_CFLAGS"
+ LIBS="$LIBS $GEDCOM_LIBS"
+ AC_TRY_LINK([
+#include <stdio.h>
+#include "gedcom.h"
+], [ return ((GEDCOM_PARSE_VERSION_MAJOR) || (GEDCOM_PARSE_VERSION_MINOR) || (GEDCOM_PARSE_VERSION_PATCH)); ],
+ [ echo "*** The test program compiled, but did not run. This usually means"
+ echo "*** that the run-time linker is not finding gedcom-parse or finding the wrong"
+ echo "*** version of gedcom-parse. If it is not finding gedcom-parse, you'll need"
+ echo "*** to set your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
+ echo "*** to point to the installed location Also, make sure you have run ldconfig"
+ echo "*** if that is required on your system"
+ echo "***"
+ echo "*** If you have an old version installed, it is best to remove it, although"
+ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
+ echo "***"],
+ [ echo "*** The test program failed to compile or link. See the file config.log for the"
+ echo "*** exact error that occured. This usually means gedcom-parse was incorrectly"
+ echo "*** installed or that you have moved gedcom-parse since it was installed."
+ echo "*** In the latter case, you may want to edit the gedcom-config script: $GEDCOM_CONFIG" ])
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+ fi
+ fi
+ GEDCOM_CFLAGS=""
+ GEDCOM_LIBS=""
+ ifelse([$3], , :, [$3])