summaryrefslogtreecommitdiff
path: root/devel/bennugd-core/files/patch-configure
blob: e13174f974eaaf92c38acda362ff26833635ce0d (plain) (blame)
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
--- configure.orig	2009-07-22 06:02:45.000000000 +0400
+++ configure	2009-11-06 06:00:29.000000000 +0300
@@ -10929,7 +10929,7 @@
 	    COMMON_LDFLAGS="-L/usr/i586-mingw32msvc/lib -lshlwapi"
 	    ;;
 
-    dragonfly*)
+    freebsd* | dragonfly*)
         INCLUDES="-I/usr/local/include"
         COMMON_CFLAGS="-Wall -DTARGET_BSD"
 	    COMMON_LDFLAGS="-L/usr/local/lib -lpthread"
@@ -12461,13 +12461,13 @@
    { (exit 1); exit 1; }; }
 fi
 
-{ $as_echo "$as_me:$LINENO: checking for des_ecb_encrypt in -ldes" >&5
-$as_echo_n "checking for des_ecb_encrypt in -ldes... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for des_ecb_encrypt in -lcrypto" >&5
+$as_echo_n "checking for des_ecb_encrypt in -lcrypto... " >&6; }
 if test "${ac_cv_lib_des_des_ecb_encrypt+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ldes  $LIBS"
+LIBS="-lcrypto $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -12481,11 +12481,11 @@
 #ifdef __cplusplus
 extern "C"
 #endif
-char des_ecb_encrypt ();
+char DES_ecb_encrypt ();
 int
 main ()
 {
-return des_ecb_encrypt ();
+return DES_ecb_encrypt();
   ;
   return 0;
 }
@@ -12587,7 +12587,7 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <des.h>
+#include <openssl/des.h>
 _ACEOF
 if { (ac_try="$ac_cpp conftest.$ac_ext"
 case "(($ac_try" in
@@ -12655,7 +12655,7 @@
 
 fi
 if test "x$ac_cv_header_des_h" = x""yes; then
-  DESLIBS="-ldes"
+  DESLIBS="-lcrypto"
 fi