]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/sqlite/sqlite-2.8.9/crosscompile.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / sqlite / sqlite-2.8.9 / crosscompile.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- sqlite/configure.ac~crosscompile    2003-12-22 15:29:33.000000000 +0100
7 +++ sqlite/configure.ac 2004-01-14 01:03:08.000000000 +0100
8 @@ -202,10 +202,10 @@
9  default_build_cflags="-g"
10  if test "$config_BUILD_CC" = ""; then
11    AC_PROG_CC
12 -  if test "$cross_compiling" = "yes"; then
13 -    AC_MSG_ERROR([unable to find a compiler for building build tools])
14 -  fi
15 -  BUILD_CC=$CC
16 +#  if test "$cross_compiling" = "yes"; then
17 +#    AC_MSG_ERROR([unable to find a compiler for building build tools])
18 +#  fi
19 +  BUILD_CC=gcc
20    default_build_cflags=$CFLAGS
21  else
22    BUILD_CC=$config_BUILD_CC
23 @@ -417,120 +417,14 @@
24  fi
25  AC_SUBST(TARGET_LIBS)
26  
27 -##########
28 -# Figure out what C libraries are required to compile Tcl programs.
29 -#
30 -if test "$config_TARGET_TCL_LIBS" != ""; then
31 -  TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS"
32 -else
33 -  if test "$with_tcl" != ""; then
34 -    extra=`echo $with_tcl/$tclsubdir/libtcl8*.a`
35 -  fi
36 -  CC=$TARGET_CC
37 -  AC_CHECK_FUNC(sin, LIBS="", LIBS="-lm")
38 -  AC_CHECK_LIB(dl, dlopen)
39 -  otherlibs=$LIBS
40 -  if test "$extra" != ""; then
41 -    LIBS=$extra
42 -  else 
43 -    LIBS=""
44 -    AC_SEARCH_LIBS(Tcl_Init, dnl
45 -        tcl8.4 tcl8.3 tcl84 tcl83 tcl,,,$otherlibs)
46 -  fi
47 -  TARGET_TCL_LIBS="$LIBS $otherlibs"
48 -fi
49 -AC_SUBST(TARGET_TCL_LIBS)
50 -
51 -##########
52 -# Figure out where to get the TCL header files.
53 -#
54 -AC_MSG_CHECKING([TCL header files])
55 -found=no
56 -if test "$config_TARGET_TCL_INC" != ""; then
57 -  TARGET_TCL_INC=$config_TARGET_TCL_INC
58 -  found=yes
59 -else
60 -  if test "$with_tcl" != ""; then
61 -    TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir"
62 -    found=yes
63 -  else
64 -    TARGET_TCL_INC=""
65 -    found=no
66 -  fi
67 -fi
68 -if test "$found" = "yes"; then
69 -  AC_MSG_RESULT($TARGET_TCL_INC)
70 -else
71 -  AC_MSG_RESULT(not specified: still searching...)
72 -  AC_CHECK_HEADER(tcl.h, [found=yes])
73 -fi
74 -if test "$found" = "no"; then
75 -  for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do
76 -    AC_CHECK_FILE($dir/include/tcl.h, found=yes)
77 -    if test "$found" = "yes"; then
78 -      TARGET_TCL_INC="-I$dir/include"
79 -      break
80 -    fi
81 -  done
82 -fi
83 -if test "$found" = "no"; then
84 -  TARGET_TCL_INC="-DNO_TCL=1"
85 -fi
86 +TARGET_TCL_INC="-DNO_TCL=1"
87  AC_SUBST(TARGET_TCL_INC)
88  
89 -##########
90 -# Figure out what C libraries are required to compile programs
91 -# that use "readline()" library.
92 -#
93 -if test "$config_TARGET_READLINE_LIBS" != ""; then
94 -  TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS"
95 -else
96 -  CC=$TARGET_CC
97 -  LIBS=""
98 -  AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap])
99 -  AC_CHECK_LIB([readline], [readline])
100 -  TARGET_READLINE_LIBS="$LIBS"
101 -fi
102 +TARGET_READLINE_LIBS="-lreadline"
103  AC_SUBST(TARGET_READLINE_LIBS)
104  
105 -##########
106 -# Figure out where to get the READLINE header files.
107 -#
108 -AC_MSG_CHECKING([readline header files])
109 -found=no
110 -if test "$config_TARGET_READLINE_INC" != ""; then
111 -  TARGET_READLINE_INC=$config_TARGET_READLINE_INC
112 -  found=yes
113 -fi
114 -if test "$found" = "yes"; then
115 -  AC_MSG_RESULT($TARGET_READLINE_INC)
116 -else
117 -  AC_MSG_RESULT(not specified: still searching...)
118 -  AC_CHECK_HEADER(readline.h, [found=yes])
119 -fi
120 -if test "$found" = "no"; then
121 -  for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
122 -    AC_CHECK_FILE($dir/include/readline.h, found=yes)
123 -    if test "$found" = "yes"; then
124 -      TARGET_READLINE_INC="-I$dir/include"
125 -      break
126 -    fi
127 -    AC_CHECK_FILE($dir/include/readline/readline.h, found=yes)
128 -    if test "$found" = "yes"; then
129 -      TARGET_READLINE_INC="-I$dir/include/readline"
130 -      break
131 -    fi
132 -  done
133 -fi
134 -if test "$found" = "yes"; then
135 -  if test "$TARGET_READLINE_LIBS" = ""; then
136 -    TARGET_HAVE_READLINE=0
137 -  else
138 -    TARGET_HAVE_READLINE=1
139 -  fi
140 -else
141 -  TARGET_HAVE_READLINE=0
142 -fi
143 +TARGET_HAVE_READLINE=1
144 +TARGET_READLINE_INC=""
145  AC_SUBST(TARGET_READLINE_INC)
146  AC_SUBST(TARGET_HAVE_READLINE)
147