File: 10-520466-libsqlite3-depends-on-libdl.patch

package info (click to toggle)
sqlite3 3.16.2-5+deb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 88,416 kB
  • sloc: ansic: 195,593; tcl: 14,245; sh: 10,163; yacc: 1,246; makefile: 1,058; cs: 299; cpp: 128
file content (43 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download | duplicates (8)
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
Index: sqlite3-3.7.17/configure.ac
===================================================================
--- sqlite3-3.7.17.orig/configure.ac	2013-05-20 12:56:30.000000000 +0200
+++ sqlite3-3.7.17/configure.ac	2013-05-21 22:20:46.000000000 +0200
@@ -233,6 +233,38 @@
 AC_SUBST(BUILD_CC)
 
 ##########
+# Do we want to support load_extension()?
+#
+AC_ARG_ENABLE(load-extension, 
+AC_HELP_STRING([--enable-load-extension],
+	       [Include SQL functions for loading extension libraries]),,
+              enable_load_extension=auto)
+
+if test "x$enable_load_extension" = xyes ||
+   test "x$enable_load_extension" = xauto; then
+
+  can_load_extension=yes
+  # libtool will already have looked for <dlfcn.h>
+  if test $ac_cv_header_dlfcn_h = no; then
+    can_load_extension=no
+  else
+    AC_SEARCH_LIBS(dlopen, dl, , [can_load_extension=no])
+  fi
+elif test "x$enable_load_extension" = xno; then
+  can_load_extension=no
+else
+  AC_MSG_ERROR([invalid argument to --enable-load-extension])
+fi
+
+if test $can_load_extension = no; then
+  if test "x$enable_load_extension" = xyes; then
+    AC_MSG_ERROR([<dlfcn.h> routines missing, load_extension() not supported])
+  fi
+  AC_DEFINE(SQLITE_OMIT_LOAD_EXTENSION, 1,
+            [Define if the load_extension() sql function should be omitted.])
+fi
+
+##########
 # Do we want to support multithreaded use of sqlite
 #
 AC_ARG_ENABLE(threadsafe,