annotate mcabber/macros/missing/gnutls-extra.m4 @ 1264:6c5c86345e6a

Add gnutls-extra.m4 to the macros/missing directory
author Mikael Berthe <mikael@lilotux.net>
date Wed, 04 Jul 2007 18:04:46 +0200
parents
children
rev   line source
1264
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
1 dnl Autoconf macros for libgnutls-extra
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
2 dnl $id$
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
3
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
4 # Modified for LIBGNUTLS_EXTRA -- nmav
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
5 # Configure paths for LIBGCRYPT
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
6 # Shamelessly stolen from the one of XDELTA by Owen Taylor
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
7 # Werner Koch 99-12-09
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
8
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
9 dnl AM_PATH_LIBGNUTLS_EXTRA([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
10 dnl Test for libgnutls-extra, and define LIBGNUTLS_EXTRA_CFLAGS and LIBGNUTLS_EXTRA_LIBS
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
11 dnl
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
12 AC_DEFUN([AM_PATH_LIBGNUTLS_EXTRA],
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
13 [dnl
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
14 dnl Get the cflags and libraries from the libgnutls-extra-config script
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
15 dnl
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
16 AC_ARG_WITH(libgnutls-extra-prefix,
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
17 [ --with-libgnutls-extra-prefix=PFX Prefix where libgnutls-extra is installed (optional)],
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
18 libgnutls_extra_config_prefix="$withval", libgnutls_extra_config_prefix="")
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
19
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
20 if test x$libgnutls_extra_config_prefix != x ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
21 if test x${LIBGNUTLS_EXTRA_CONFIG+set} != xset ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
22 LIBGNUTLS_EXTRA_CONFIG=$libgnutls_extra_config_prefix/bin/libgnutls-extra-config
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
23 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
24 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
25
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
26 AC_PATH_PROG(LIBGNUTLS_EXTRA_CONFIG, libgnutls-extra-config, no)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
27 min_libgnutls_version=ifelse([$1], ,0.1.0,$1)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
28 AC_MSG_CHECKING(for libgnutls - version >= $min_libgnutls_version)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
29 no_libgnutls=""
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
30 if test "$LIBGNUTLS_EXTRA_CONFIG" = "no" ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
31 no_libgnutls=yes
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
32 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
33 LIBGNUTLS_EXTRA_CFLAGS=`$LIBGNUTLS_EXTRA_CONFIG $libgnutls_extra_config_args --cflags`
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
34 LIBGNUTLS_EXTRA_LIBS=`$LIBGNUTLS_EXTRA_CONFIG $libgnutls_extra_config_args --libs`
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
35 libgnutls_extra_config_version=`$LIBGNUTLS_EXTRA_CONFIG $libgnutls_extra_config_args --version`
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
36
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
37
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
38 ac_save_CFLAGS="$CFLAGS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
39 ac_save_LIBS="$LIBS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
40 CFLAGS="$CFLAGS $LIBGNUTLS_EXTRA_CFLAGS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
41 LIBS="$LIBS $LIBGNUTLS_EXTRA_LIBS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
42 dnl
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
43 dnl Now check if the installed libgnutls is sufficiently new. Also sanity
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
44 dnl checks the results of libgnutls-extra-config to some extent
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
45 dnl
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
46 rm -f conf.libgnutlstest
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
47 AC_TRY_RUN([
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
48 #include <stdio.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
49 #include <stdlib.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
50 #include <string.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
51 #include <gnutls/extra.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
52
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
53 int
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
54 main ()
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
55 {
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
56 system ("touch conf.libgnutlstest");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
57
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
58 if( strcmp( gnutls_extra_check_version(NULL), "$libgnutls_extra_config_version" ) )
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
59 {
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
60 printf("\n*** 'libgnutls-extra-config --version' returned %s, but LIBGNUTLS_EXTRA (%s)\n",
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
61 "$libgnutls_extra_config_version", gnutls_extra_check_version(NULL) );
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
62 printf("*** was found! If libgnutls-extra-config was correct, then it is best\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
63 printf("*** to remove the old version of LIBGNUTLS_EXTRA. You may also be able to fix the error\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
64 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
65 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
66 printf("*** required on your system.\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
67 printf("*** If libgnutls-extra-config was wrong, set the environment variable LIBGNUTLS_EXTRA_CONFIG\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
68 printf("*** to point to the correct copy of libgnutls-extra-config, and remove the file config.cache\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
69 printf("*** before re-running configure\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
70 }
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
71 else if ( strcmp(gnutls_extra_check_version(NULL), LIBGNUTLS_EXTRA_VERSION ) )
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
72 {
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
73 printf("\n*** LIBGNUTLS_EXTRA header file (version %s) does not match\n", LIBGNUTLS_EXTRA_VERSION);
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
74 printf("*** library (version %s). This is may be due to a different version of gnutls\n", gnutls_extra_check_version(NULL) );
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
75 printf("*** and gnutls-extra.\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
76 }
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
77 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
78 {
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
79 if ( gnutls_extra_check_version( "$min_libgnutls_version" ) )
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
80 {
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
81 return 0;
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
82 }
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
83 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
84 {
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
85 printf("no\n*** An old version of LIBGNUTLS_EXTRA (%s) was found.\n",
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
86 gnutls_extra_check_version(NULL) );
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
87 printf("*** You need a version of LIBGNUTLS_EXTRA newer than %s. The latest version of\n",
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
88 "$min_libgnutls_version" );
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
89 printf("*** LIBGNUTLS_EXTRA is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
90 printf("*** \n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
91 printf("*** If you have already installed a sufficiently new version, this error\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
92 printf("*** probably means that the wrong copy of the libgnutls-extra-config shell script is\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
93 printf("*** being found. The easiest way to fix this is to remove the old version\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
94 printf("*** of LIBGNUTLS_EXTRA, but you can also set the LIBGNUTLS_EXTRA_CONFIG environment to point to the\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
95 printf("*** correct copy of libgnutls-extra-config. (In this case, you will have to\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
96 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
97 printf("*** so that the correct libraries are found at run-time))\n");
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
98 }
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
99 }
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
100 return 1;
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
101 }
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
102 ],, no_libgnutls=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
103 CFLAGS="$ac_save_CFLAGS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
104 LIBS="$ac_save_LIBS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
105 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
106
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
107 if test "x$no_libgnutls" = x ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
108 AC_MSG_RESULT(yes)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
109 ifelse([$2], , :, [$2])
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
110 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
111 if test -f conf.libgnutlstest ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
112 :
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
113 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
114 AC_MSG_RESULT(no)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
115 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
116 if test "$LIBGNUTLS_EXTRA_CONFIG" = "no" ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
117 echo "*** The libgnutls-extra-config script installed by LIBGNUTLS_EXTRA could not be found"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
118 echo "*** If LIBGNUTLS_EXTRA was installed in PREFIX, make sure PREFIX/bin is in"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
119 echo "*** your path, or set the LIBGNUTLS_EXTRA_CONFIG environment variable to the"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
120 echo "*** full path to libgnutls-extra-config."
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
121 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
122 if test -f conf.libgnutlstest ; then
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
123 :
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
124 else
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
125 echo "*** Could not run libgnutls test program, checking why..."
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
126 CFLAGS="$CFLAGS $LIBGNUTLS_EXTRA_CFLAGS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
127 LIBS="$LIBS $LIBGNUTLS_EXTRA_LIBS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
128 AC_TRY_LINK([
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
129 #include <stdio.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
130 #include <stdlib.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
131 #include <string.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
132 #include <gnutls/extra.h>
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
133 ], [ return !!gnutls_extra_check_version(NULL); ],
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
134 [ echo "*** The test program compiled, but did not run. This usually means"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
135 echo "*** that the run-time linker is not finding LIBGNUTLS_EXTRA or finding the wrong"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
136 echo "*** version of LIBGNUTLS_EXTRA. If it is not finding LIBGNUTLS_EXTRA, you'll need to set your"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
137 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
138 echo "*** to the installed location Also, make sure you have run ldconfig if that"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
139 echo "*** is required on your system"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
140 echo "***"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
141 echo "*** If you have an old version installed, it is best to remove it, although"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
142 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
143 echo "***" ],
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
144 [ echo "*** The test program failed to compile or link. See the file config.log for the"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
145 echo "*** exact error that occured. This usually means LIBGNUTLS_EXTRA was incorrectly installed"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
146 echo "*** or that you have moved LIBGNUTLS_EXTRA since it was installed. In the latter case, you"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
147 echo "*** may want to edit the libgnutls-extra-config script: $LIBGNUTLS_EXTRA_CONFIG" ])
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
148 CFLAGS="$ac_save_CFLAGS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
149 LIBS="$ac_save_LIBS"
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
150 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
151 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
152 LIBGNUTLS_EXTRA_CFLAGS=""
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
153 LIBGNUTLS_EXTRA_LIBS=""
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
154 ifelse([$3], , :, [$3])
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
155 fi
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
156 rm -f conf.libgnutlstest
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
157 AC_SUBST(LIBGNUTLS_EXTRA_CFLAGS)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
158 AC_SUBST(LIBGNUTLS_EXTRA_LIBS)
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
159 ])
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
160
6c5c86345e6a Add gnutls-extra.m4 to the macros/missing directory
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
161 dnl *-*wedit:notab*-* Please keep this as the last line.