summaryrefslogtreecommitdiffstats
path: root/patches/pure-ftpd-1.0.21/generic/configure-sha1-cacheable.diff
blob: 7e399433f44e6fef203a0b3e4d52df7772e61024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# Committed-By: Marc Kleine-Budde <mkl@pengutronix.de>, 2006-11-29
#
# Error:
#
# check for SHA1 is not cross aware, make it cacheable and added cross default value
#
# State:
#
# do not commit, this fixes a generated file
#
Index: pure-ftpd-1.0.21/configure
===================================================================
--- pure-ftpd-1.0.21.orig/configure
+++ pure-ftpd-1.0.21/configure
@@ -21695,7 +21695,6 @@ fi
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 fi
 
-fi
 echo "$as_me:$LINENO: result: $ac_cv_use_system_crypt_md5" >&5
 echo "${ECHO_T}$ac_cv_use_system_crypt_md5" >&6
 if test "x$ac_cv_use_system_crypt_md5" = xyes
@@ -21710,11 +21709,7 @@ fi
 echo "$as_me:$LINENO: checking whether you already have a standard SHA1 implementation" >&5
 echo $ECHO_N "checking whether you already have a standard SHA1 implementation... $ECHO_C" >&6
 if test "$cross_compiling" = yes; then
-  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
-   { (exit 1); exit 1; }; }
+  ac_cv_use_system_crypt_sha1="no (cross compiling)"
 else
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
@@ -21753,14 +21748,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
-
-echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-
-cat >>confdefs.h <<\_ACEOF
-#define USE_SYSTEM_CRYPT_SHA1
-_ACEOF
-
+  ac_cv_use_system_crypt_sha1=yes
 
 else
   echo "$as_me: program exited with status $ac_status" >&5
@@ -21768,13 +21756,24 @@ echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
 ( exit $ac_status )
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ac_cv_use_system_crypt_sha1=no
 
 fi
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 fi
 
+fi
+echo "$as_me:$LINENO: result: $ac_cv_use_system_crypt_sha1" >&5
+echo "${ECHO_T}$ac_cv_use_system_crypt_sha1" >&6
+if test "x$ac_cv_use_system_crypt_sha1" = "xyes"
+then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_SYSTEM_CRYPT_SHA1
+_ACEOF
+
+fi
+
 echo "$as_me:$LINENO: checking whether we are inside a Virtuozzo virtual host" >&5
 echo $ECHO_N "checking whether we are inside a Virtuozzo virtual host... $ECHO_C" >&6
 if test -d /proc/vz; then