| 1 | /*
|
| 2 | cc -o conftest -O2 -g \
|
| 3 | -I/usr/pkg/include \
|
| 4 | -L/usr/pkg/lib -Wl,-R/usr/pkg/lib \
|
| 5 | -z relro -z now \
|
| 6 | -lprelude -lgnutls -lgcrypt -lgpg-error \
|
| 7 | conftest.c
|
| 8 | */
|
| 9 |
|
| 10 | /* confdefs.h. */
|
| 11 | #define PACKAGE_NAME ""
|
| 12 | #define PACKAGE_TARNAME ""
|
| 13 | #define PACKAGE_VERSION ""
|
| 14 | #define PACKAGE_STRING ""
|
| 15 | #define PACKAGE_BUGREPORT ""
|
| 16 | #define PACKAGE "libpreludedb"
|
| 17 | #define VERSION "0.9.15.3"
|
| 18 | #define STDC_HEADERS 1
|
| 19 | #define HAVE_SYS_TYPES_H 1
|
| 20 | #define HAVE_SYS_STAT_H 1
|
| 21 | #define HAVE_STDLIB_H 1
|
| 22 | #define HAVE_STRING_H 1
|
| 23 | #define HAVE_MEMORY_H 1
|
| 24 | #define HAVE_STRINGS_H 1
|
| 25 | #define HAVE_INTTYPES_H 1
|
| 26 | #define HAVE_STDINT_H 1
|
| 27 | #define HAVE_UNISTD_H 1
|
| 28 | #define __EXTENSIONS__ 1
|
| 29 | #define _ALL_SOURCE 1
|
| 30 | #define _GNU_SOURCE 1
|
| 31 | #define _POSIX_PTHREAD_SEMANTICS 1
|
| 32 | #define _TANDEM_SOURCE 1
|
| 33 | #define HAVE_DLFCN_H 1
|
| 34 | #define LT_OBJDIR ".libs/"
|
| 35 | /* end confdefs.h. */
|
| 36 |
|
| 37 | #include <stdio.h>
|
| 38 | #include <stdlib.h>
|
| 39 | #include <string.h>
|
| 40 | #include <libprelude/prelude.h>
|
| 41 |
|
| 42 | int
|
| 43 | main ()
|
| 44 | {
|
| 45 | system ("touch conf.libpreludetest");
|
| 46 |
|
| 47 | if( strcmp( prelude_check_version(NULL), "0.9.24.1" ) )
|
| 48 | {
|
| 49 | printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
|
| 50 | "0.9.24.1", prelude_check_version(NULL) );
|
| 51 | printf("*** was found! If libprelude-config was correct, then it is best\n");
|
| 52 | printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
|
| 53 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
| 54 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
| 55 | printf("*** required on your system.\n");
|
| 56 | printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
|
| 57 | printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
|
| 58 | printf("*** before re-running configure\n");
|
| 59 | }
|
| 60 | else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) ) {
|
| 61 | printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
|
| 62 | printf("*** library (version %s)\n", prelude_check_version(NULL) );
|
| 63 | }
|
| 64 | else {
|
| 65 | if ( prelude_check_version( "0.9.9" ) )
|
| 66 | return 0;
|
| 67 | else {
|
| 68 | printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
|
| 69 | prelude_check_version(NULL) );
|
| 70 | printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
|
| 71 | "0.9.9" );
|
| 72 | printf("*** LIBPRELUDE is always available from http://www.prelude-ids.com/development/download/\n");
|
| 73 | printf("*** \n");
|
| 74 | printf("*** If you have already installed a sufficiently new version, this error\n");
|
| 75 | printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
|
| 76 | printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
| 77 | printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
|
| 78 | printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
|
| 79 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
| 80 | printf("*** so that the correct libraries are found at run-time))\n");
|
| 81 | }
|
| 82 | }
|
| 83 | return 1;
|
| 84 | }
|