|
/*
|
|
cc -o conftest -O2 -g \
|
|
-I/usr/pkg/include \
|
|
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib \
|
|
-z relro -z now \
|
|
-lprelude -lgnutls -lgcrypt -lgpg-error \
|
|
conftest.c
|
|
*/
|
|
|
|
/* confdefs.h. */
|
|
#define PACKAGE_NAME ""
|
|
#define PACKAGE_TARNAME ""
|
|
#define PACKAGE_VERSION ""
|
|
#define PACKAGE_STRING ""
|
|
#define PACKAGE_BUGREPORT ""
|
|
#define PACKAGE "libpreludedb"
|
|
#define VERSION "0.9.15.3"
|
|
#define STDC_HEADERS 1
|
|
#define HAVE_SYS_TYPES_H 1
|
|
#define HAVE_SYS_STAT_H 1
|
|
#define HAVE_STDLIB_H 1
|
|
#define HAVE_STRING_H 1
|
|
#define HAVE_MEMORY_H 1
|
|
#define HAVE_STRINGS_H 1
|
|
#define HAVE_INTTYPES_H 1
|
|
#define HAVE_STDINT_H 1
|
|
#define HAVE_UNISTD_H 1
|
|
#define __EXTENSIONS__ 1
|
|
#define _ALL_SOURCE 1
|
|
#define _GNU_SOURCE 1
|
|
#define _POSIX_PTHREAD_SEMANTICS 1
|
|
#define _TANDEM_SOURCE 1
|
|
#define HAVE_DLFCN_H 1
|
|
#define LT_OBJDIR ".libs/"
|
|
/* end confdefs.h. */
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <libprelude/prelude.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
system ("touch conf.libpreludetest");
|
|
|
|
if( strcmp( prelude_check_version(NULL), "0.9.24.1" ) )
|
|
{
|
|
printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
|
|
"0.9.24.1", prelude_check_version(NULL) );
|
|
printf("*** was found! If libprelude-config was correct, then it is best\n");
|
|
printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
|
|
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
|
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
|
printf("*** required on your system.\n");
|
|
printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
|
|
printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
|
|
printf("*** before re-running configure\n");
|
|
}
|
|
else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) ) {
|
|
printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
|
|
printf("*** library (version %s)\n", prelude_check_version(NULL) );
|
|
}
|
|
else {
|
|
if ( prelude_check_version( "0.9.9" ) )
|
|
return 0;
|
|
else {
|
|
printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
|
|
prelude_check_version(NULL) );
|
|
printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
|
|
"0.9.9" );
|
|
printf("*** LIBPRELUDE is always available from http://www.prelude-ids.com/development/download/\n");
|
|
printf("*** \n");
|
|
printf("*** If you have already installed a sufficiently new version, this error\n");
|
|
printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
|
|
printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
|
printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
|
|
printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
|
|
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
|
printf("*** so that the correct libraries are found at run-time))\n");
|
|
}
|
|
}
|
|
return 1;
|
|
}
|