>>>> Mats Lidell <matsl(a)xemacs.org> writes:
What confuses the issue is that if I just say with-tls=yes I get
support for NSS(!) compiled in. This seems to work one machine but
not on another. I need to come back on the details here.
Testing on the "another" SuSE machine I get the proper behavior if I
say with-tls=openssl. If I only specify with-tls=yes it figures out I
have openssl on the machine and I get the compile error.
Could there be something with the line "gcc: with_tls=no: No such file
or directory" in the excerpt from config.log below?
Yours
----------------------------------------------------------------------
/* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char NSS_InitContext ();
| int
| main ()
| {
| return NSS_InitContext ();
| ;
| return 0;
| }
configure:43382: result: no
configure:43403: checking openssl/ssl.h usability
configure:43420: gcc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
-Wdeclaration-after-statement -g -I/usr/include/freetype2 conftest.c >&5
configure:43427: $? = 0
configure:43441: result: yes
configure:43445: checking openssl/ssl.h presence
configure:43460: gcc -E -I/usr/include/freetype2 conftest.c
configure:43467: $? = 0
configure:43481: result: yes
configure:43514: checking for openssl/ssl.h
configure:43521: result: yes
configure:43526: checking for SSL_library_init in -lssl
configure:43561: gcc -o conftest -Wall -Wno-switch -Wundef -Wsign-compare
-Wno-char-subscripts -Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wdeclaration-after-statement -g -I/usr/include/freetype2
-lXft -lXrender -lfontconfig -lfreetype -lz -lX11 conftest.c -lXaw -ltiff -lpng
-ljpeg -lXpm -lXft -lfontconfig -lXrender -lXmu -lXt -lXext -lX11 -lSM -lICE -lssl
with_tls=no -lgdbm_compat -lgdbm -lgpm -lncurses -lasound -lm -lutil 1>&5
gcc: with_tls=no: No such file or directory
conftest.c:258: warning: function declaration isn't a prototype
conftest.c:261: warning: function declaration isn't a prototype
configure:43568: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "XEmacs"
| #define PACKAGE_TARNAME "xemacs"
| #define PACKAGE_VERSION "21.5"
| #define PACKAGE_STRING "XEmacs 21.5"
[...]
| #define HAVE_U_INT8_T 1
| #define HAVE_U_INT16_T 1
| #define HAVE_U_INT32_T 1
| #define HAVE_DATABASE 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char SSL_library_init ();
| int
| main ()
| {
| return SSL_library_init ();
| ;
| return 0;
| }
configure:43589: result: no
configure:43868: checking for X509_check_host
configure:43924: gcc -o conftest -Wall -Wno-switch -Wundef -Wsign-compare
-Wno-char-subscripts -Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wdeclaration-after-statement -g -I/usr/include/freetype2
-lXft -lXrender -lfontconfig -lfreetype -lz -lX11 conftest.c -lXaw -ltiff
-lpng -ljpeg -lXpm -lXft -lfontconfig -lXrender -lXmu -lXt -lXext -lX11 -lSM -lICE
-lgdbm_compat -lgdbm -lgpm -lncurses -lasound -lm -lssl -lcrypto -ldl -lz -lutil
1>&5
conftest.c:276: warning: function declaration isn't a prototype
conftest.c:286: warning: function declaration isn't a prototype
/tmp/ccPIjx9I.o: In function `main':
/src/xemacs/work/testing/conftest.c:287: undefined reference to `X509_check_host'
collect2: ld returned 1 exit status
configure:43931: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "XEmacs"
| #define PACKAGE_TARNAME "xemacs"
| #define PACKAGE_VERSION "21.5"
| #define PACKAGE_STRING "XEmacs 21.5"
[...]
| #define HAVE_U_INT8_T 1
| #define HAVE_U_INT16_T 1
| #define HAVE_U_INT32_T 1
| #define HAVE_DATABASE 1
| #define WITH_TLS 1
| #define HAVE_OPENSSL 1
| /* end confdefs.h. */
----------------------------------------------------------------------
Yours
--
%% Mats
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta