extra include files required by the updated <com_err.h> were guarded by "#if HAVE_COM_ERR_H", which configure does not define when compiling the test program. There was also an extra inclusion of <com_err.h> inside the #if/#endif block. For some odd reason, a number of the other include file tests in the configure script are written with an extra #include, but it is harmless in those cases because the #if conditions are not met. Remove the #if test and the redundant include from the test program for <com_err.h>. Make a similar fix to the test for <et/com_err.h>. Reviewed by: mezz
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
--- configure.orig 2010-11-14 22:59:14.000000000 -0800
|
|
+++ configure 2012-06-12 08:40:11.000000000 -0700
|
|
@@ -14174,6 +14174,14 @@
|
|
$as_echo "#define _WIN32_WINNT 0x501" >>confdefs.h
|
|
|
|
;;
|
|
+*freebsd*)
|
|
+ os_win32=no
|
|
+ NO_UNDEFINED=''
|
|
+ SOCKET_LIBS=''
|
|
+ DL_LIB=''
|
|
+ SOFTOKN3_LIB='-lsoftokn3'
|
|
+ LIBEXECDIR_IN_SERVER_FILE="$libexecdir"
|
|
+ ;;
|
|
*)
|
|
os_win32='no'
|
|
NO_UNDEFINED=''
|
|
@@ -16195,9 +16203,8 @@
|
|
fi
|
|
|
|
|
|
- ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" " #if HAVE_ET_COM_ERR_H
|
|
- #include <com_err.h>
|
|
- #endif
|
|
+ ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" " #include <stdio.h>
|
|
+ #include <stdarg.h>
|
|
|
|
"
|
|
if test "x$ac_cv_header_et_com_err_h" = x""yes; then :
|
|
@@ -16207,9 +16214,8 @@
|
|
fi
|
|
|
|
|
|
- ac_fn_c_check_header_compile "$LINENO" "com_err.h" "ac_cv_header_com_err_h" " #if HAVE_COM_ERR_H
|
|
- #include <com_err.h>
|
|
- #endif
|
|
+ ac_fn_c_check_header_compile "$LINENO" "com_err.h" "ac_cv_header_com_err_h" " #include <stdio.h>
|
|
+ #include <stdarg.h>
|
|
|
|
"
|
|
if test "x$ac_cv_header_com_err_h" = x""yes; then :
|