3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 Index: sqlite-3.2.1/configure.ac
7 ===================================================================
8 --- sqlite-3.2.1.orig/configure.ac 2005-03-23 17:08:39.000000000 +0100
9 +++ sqlite-3.2.1/configure.ac 2005-04-25 23:02:40.000000000 +0200
11 default_build_cflags="-g"
12 if test "$config_BUILD_CC" = ""; then
14 - if test "$cross_compiling" = "yes"; then
15 - AC_MSG_ERROR([unable to find a compiler for building build tools])
18 +# if test "$cross_compiling" = "yes"; then
19 +# AC_MSG_ERROR([unable to find a compiler for building build tools])
23 default_build_cflags=$CFLAGS
25 BUILD_CC=$config_BUILD_CC
27 # Figure out what C libraries are required to compile programs
28 # that use "readline()" library.
30 -if test "$config_TARGET_READLINE_LIBS" != ""; then
31 - TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
35 - AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap])
36 - AC_CHECK_LIB([readline], [readline])
37 - TARGET_READLINE_LIBS="$LIBS"
39 +TARGET_READLINE_LIBS="-lreadline"
40 AC_SUBST(TARGET_READLINE_LIBS)
43 # Figure out where to get the READLINE header files.
45 -AC_MSG_CHECKING([readline header files])
47 -if test "$config_TARGET_READLINE_INC" != ""; then
48 - TARGET_READLINE_INC=$config_TARGET_READLINE_INC
51 -if test "$found" = "yes"; then
52 - AC_MSG_RESULT($TARGET_READLINE_INC)
54 - AC_MSG_RESULT(not specified: still searching...)
55 - AC_CHECK_HEADER(readline.h, [found=yes])
57 -if test "$found" = "no"; then
58 - for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
59 - AC_CHECK_FILE($dir/include/readline.h, found=yes)
60 - if test "$found" = "yes"; then
61 - TARGET_READLINE_INC="-I$dir/include"
64 - AC_CHECK_FILE($dir/include/readline/readline.h, found=yes)
65 - if test "$found" = "yes"; then
66 - TARGET_READLINE_INC="-I$dir/include/readline"
71 -if test "$found" = "yes"; then
72 - if test "$TARGET_READLINE_LIBS" = ""; then
73 - TARGET_HAVE_READLINE=0
75 - TARGET_HAVE_READLINE=1
78 - TARGET_HAVE_READLINE=0
80 +TARGET_READLINE_INC=""
81 +TARGET_HAVE_READLINE=1
82 AC_SUBST(TARGET_READLINE_INC)
83 AC_SUBST(TARGET_HAVE_READLINE)