OK, I tried installing the SDL devel package for Windows and I included various SDL paths in my PATH variable:
Copy code to clipboard 1 export PATH="/SDL/SDL-1.2.15:/SDL/SDL-1.2.15/bin:/SDL/SDL-1.2.15/include/SDL:/SDL/SDL-1.2.15/lib:$PATH"
However, configure still failed with "The test program failed to compile or link. See the file config.log for..."
config.log contains this:
Copy code to clipboard 1 This file contains any messages produced by compilers while
2 running configure, to aid debugging if configure makes a mistake.
3
4 It was created by dosbox configure SVN, which was
5 generated by GNU Autoconf 2.68. Invocation command line was
6
7 $ ./configure
8
9 ## --------- ##
10 ## Platform. ##
11 ## --------- ##
12
13 hostname = asuk
14 uname -m = i686
15 uname -r = 1.0.17(0.48/3/2)
16 uname -s = MINGW32_NT-5.1
17 uname -v = 2011-04-24 23:39
18
19 /usr/bin/uname -p = unknown
20 /bin/uname -X = unknown
21
22 /bin/arch = unknown
23 /usr/bin/arch -k = unknown
24 /usr/convex/getsysinfo = unknown
25 /usr/bin/hostinfo = unknown
26 /bin/machine = unknown
27 /usr/bin/oslevel = unknown
28 /bin/universe = unknown
29
30 PATH: /SDL/SDL-1.2.15
31 PATH: /SDL/SDL-1.2.15/bin
32 PATH: /SDL/SDL-1.2.15/include/SDL
33 PATH: /SDL/SDL-1.2.15/lib
34 PATH: .
35 PATH: /usr/local/bin
36 PATH: /mingw/bin
37 PATH: /bin
38 PATH: /c/Program Files/gimp-2.7.2/bin
39 PATH: /c/Perl/site/bin
40 PATH: /c/Perl/bin
41 PATH: /c/WINDOWS/system32
42 PATH: /c/WINDOWS
43 PATH: /c/WINDOWS/System32/Wbem
44 PATH: /c/Program Files/Microsoft SQL Server/90/Tools/binn/
45 PATH: /c/Program Files/WinMerge
46 PATH: /c/Program Files/TortoiseSVN/bin
47 PATH: /c/Jeremy/Home/unxutils/usr/local/wbin
48 PATH: /c/Jeremy
49 PATH: /c/Program Files/Smart Projects/IsoBuster
50 PATH: /c/Program Files/Perforce
51 PATH: /c/Program Files/Paint Shop Pro 6
52
53
54 ## ----------- ##
55 ## Core tests. ##
56 ## ----------- ##
57
58 configure:2483: checking build system type
59 configure:2497: result: i686-pc-mingw32
60 configure:2517: checking host system type
… Show last 445 lines 61 configure:2530: result: i686-pc-mingw32
62 configure:2568: checking for a BSD-compatible install
63 configure:2636: result: /bin/install -c
64 configure:2647: checking whether build environment is sane
65 configure:2697: result: yes
66 configure:2838: checking for a thread-safe mkdir -p
67 configure:2877: result: /bin/mkdir -p
68 configure:2890: checking for gawk
69 configure:2906: found /bin/gawk
70 configure:2917: result: gawk
71 configure:2928: checking whether make sets $(MAKE)
72 configure:2950: result: yes
73 configure:3033: checking whether make sets $(MAKE)
74 configure:3055: result: yes
75 configure:3112: checking for gcc
76 configure:3128: found /mingw/bin/gcc
77 configure:3139: result: gcc
78 configure:3368: checking for C compiler version
79 configure:3377: gcc --version >&5
80 gcc.exe (GCC) 4.6.1
81 Copyright (C) 2011 Free Software Foundation, Inc.
82 This is free software; see the source for copying conditions. There is NO
83 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
84
85 configure:3388: $? = 0
86 configure:3377: gcc -v >&5
87 Using built-in specs.
88 COLLECT_GCC=C:\MinGW\bin\gcc.exe
89 COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/lto-wrapper.exe
90 Target: mingw32
91 Configured with: ../gcc-4.6.1/configure --enable-languages=c,c++,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
92 Thread model: win32
93 gcc version 4.6.1 (GCC)
94 configure:3388: $? = 0
95 configure:3377: gcc -V >&5
96 gcc.exe: error: unrecognized option '-V'
97 gcc.exe: fatal error: no input files
98 compilation terminated.
99 configure:3388: $? = 1
100 configure:3377: gcc -qversion >&5
101 gcc.exe: error: unrecognized option '-qversion'
102 gcc.exe: fatal error: no input files
103 compilation terminated.
104 configure:3388: $? = 1
105 configure:3408: checking whether the C compiler works
106 configure:3430: gcc conftest.c >&5
107 configure:3434: $? = 0
108 configure:3482: result: yes
109 configure:3485: checking for C compiler default output file name
110 configure:3487: result: a.exe
111 configure:3493: checking for suffix of executables
112 configure:3500: gcc -o conftest.exe conftest.c >&5
113 configure:3504: $? = 0
114 configure:3526: result: .exe
115 configure:3548: checking whether we are cross compiling
116 configure:3556: gcc -o conftest.exe conftest.c >&5
117 configure:3560: $? = 0
118 configure:3567: ./conftest.exe
119 configure:3571: $? = 0
120 configure:3586: result: no
121 configure:3591: checking for suffix of object files
122 configure:3613: gcc -c conftest.c >&5
123 configure:3617: $? = 0
124 configure:3638: result: o
125 configure:3642: checking whether we are using the GNU C compiler
126 configure:3661: gcc -c conftest.c >&5
127 configure:3661: $? = 0
128 configure:3670: result: yes
129 configure:3679: checking whether gcc accepts -g
130 configure:3699: gcc -c -g conftest.c >&5
131 configure:3699: $? = 0
132 configure:3740: result: yes
133 configure:3757: checking for gcc option to accept ISO C89
134 configure:3821: gcc -c -g -O2 conftest.c >&5
135 configure:3821: $? = 0
136 configure:3834: result: none needed
137 configure:3865: checking for style of include used by make
138 configure:3893: result: GNU
139 configure:3918: checking dependency style of gcc
140 configure:4028: result: gcc3
141 configure:4048: checking how to run the C preprocessor
142 configure:4079: gcc -E conftest.c
143 configure:4079: $? = 0
144 configure:4093: gcc -E conftest.c
145 conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
146 compilation terminated.
147 configure:4093: $? = 1
148 configure: failed program was:
149 | /* confdefs.h */
150 | #define PACKAGE_NAME "dosbox"
151 | #define PACKAGE_TARNAME "dosbox"
152 | #define PACKAGE_VERSION "SVN"
153 | #define PACKAGE_STRING "dosbox SVN"
154 | #define PACKAGE_BUGREPORT ""
155 | #define PACKAGE_URL ""
156 | #define PACKAGE "dosbox"
157 | #define VERSION "SVN"
158 | /* end confdefs.h. */
159 | #include <ac_nonexistent.h>
160 configure:4118: result: gcc -E
161 configure:4138: gcc -E conftest.c
162 configure:4138: $? = 0
163 configure:4152: gcc -E conftest.c
164 conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
165 compilation terminated.
166 configure:4152: $? = 1
167 configure: failed program was:
168 | /* confdefs.h */
169 | #define PACKAGE_NAME "dosbox"
170 | #define PACKAGE_TARNAME "dosbox"
171 | #define PACKAGE_VERSION "SVN"
172 | #define PACKAGE_STRING "dosbox SVN"
173 | #define PACKAGE_BUGREPORT ""
174 | #define PACKAGE_URL ""
175 | #define PACKAGE "dosbox"
176 | #define VERSION "SVN"
177 | /* end confdefs.h. */
178 | #include <ac_nonexistent.h>
179 configure:4238: checking for g++
180 configure:4254: found /mingw/bin/g++
181 configure:4265: result: g++
182 configure:4292: checking for C++ compiler version
183 configure:4301: g++ --version >&5
184 g++.exe (GCC) 4.6.1
185 Copyright (C) 2011 Free Software Foundation, Inc.
186 This is free software; see the source for copying conditions. There is NO
187 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
188
189 configure:4312: $? = 0
190 configure:4301: g++ -v >&5
191 Using built-in specs.
192 COLLECT_GCC=C:\MinGW\bin\g++.exe
193 COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.1/lto-wrapper.exe
194 Target: mingw32
195 Configured with: ../gcc-4.6.1/configure --enable-languages=c,c++,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
196 Thread model: win32
197 gcc version 4.6.1 (GCC)
198 configure:4312: $? = 0
199 configure:4301: g++ -V >&5
200 g++.exe: error: unrecognized option '-V'
201 g++.exe: fatal error: no input files
202 compilation terminated.
203 configure:4312: $? = 1
204 configure:4301: g++ -qversion >&5
205 g++.exe: error: unrecognized option '-qversion'
206 g++.exe: fatal error: no input files
207 compilation terminated.
208 configure:4312: $? = 1
209 configure:4316: checking whether we are using the GNU C++ compiler
210 configure:4335: g++ -c conftest.cpp >&5
211 configure:4335: $? = 0
212 configure:4344: result: yes
213 configure:4353: checking whether g++ accepts -g
214 configure:4373: g++ -c -g conftest.cpp >&5
215 configure:4373: $? = 0
216 configure:4414: result: yes
217 configure:4439: checking dependency style of g++
218 configure:4549: result: gcc3
219 configure:4608: checking for ranlib
220 configure:4624: found /mingw/bin/ranlib
221 configure:4635: result: ranlib
222 configure:4705: checking for sdl-config
223 configure:4723: found /SDL/SDL-1.2.15/bin/sdl-config
224 configure:4736: result: /SDL/SDL-1.2.15/bin/sdl-config
225 configure:4745: checking for SDL - version >= 1.2.0
226 configure:4830: gcc -o conftest.exe -g -O2 -I/usr/local/cross-tools/i686-w64-mingw32/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main conftest.c -L/usr/local/cross-tools/i686-w64-mingw32/lib -lmingw32 -lSDLmain -lSDL -mwindows >&5
227 conftest.c:15:17: fatal error: SDL.h: No such file or directory
228 compilation terminated.
229 configure:4830: $? = 1
230 configure: program exited with status 1
231 configure: failed program was:
232 | /* confdefs.h */
233 | #define PACKAGE_NAME "dosbox"
234 | #define PACKAGE_TARNAME "dosbox"
235 | #define PACKAGE_VERSION "SVN"
236 | #define PACKAGE_STRING "dosbox SVN"
237 | #define PACKAGE_BUGREPORT ""
238 | #define PACKAGE_URL ""
239 | #define PACKAGE "dosbox"
240 | #define VERSION "SVN"
241 | /* end confdefs.h. */
242 |
243 | #include <stdio.h>
244 | #include <stdlib.h>
245 | #include <string.h>
246 | #include "SDL.h"
247 |
248 | char*
249 | my_strdup (char *str)
250 | {
251 | char *new_str;
252 |
253 | if (str)
254 | {
255 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
256 | strcpy (new_str, str);
257 | }
258 | else
259 | new_str = NULL;
260 |
261 | return new_str;
262 | }
263 |
264 | int main (int argc, char *argv[])
265 | {
266 | int major, minor, micro;
267 | char *tmp_version;
268 |
269 | /* This hangs on some systems (?)
270 | system ("touch conf.sdltest");
271 | */
272 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
273 |
274 | /* HP/UX 9 (%@#!) writes to sscanf strings */
275 | tmp_version = my_strdup("1.2.0");
276 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
277 | printf("%s, bad version string\n", "1.2.0");
278 | exit(1);
279 | }
280 |
281 | if ((1 > major) ||
282 | ((1 == major) && (2 > minor)) ||
283 | ((1 == major) && (2 == minor) && (15 >= micro)))
284 | {
285 | return 0;
286 | }
287 | else
288 | {
289 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", 1, 2, 15);
290 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
291 | printf("*** best to upgrade to the required version.\n");
292 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
293 | printf("*** to point to the correct copy of sdl-config, and remove the file\n");
294 | printf("*** config.cache before re-running configure\n");
295 | return 1;
296 | }
297 | }
298 |
299 |
300 configure:4848: result: no
301 configure:4876: gcc -o conftest.exe -g -O2 -I/usr/local/cross-tools/i686-w64-mingw32/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main conftest.c -L/usr/local/cross-tools/i686-w64-mingw32/lib -lmingw32 -lSDLmain -lSDL -mwindows >&5
302 conftest.c:13:17: fatal error: SDL.h: No such file or directory
303 compilation terminated.
304 configure:4876: $? = 1
305 configure: failed program was:
306 | /* confdefs.h */
307 | #define PACKAGE_NAME "dosbox"
308 | #define PACKAGE_TARNAME "dosbox"
309 | #define PACKAGE_VERSION "SVN"
310 | #define PACKAGE_STRING "dosbox SVN"
311 | #define PACKAGE_BUGREPORT ""
312 | #define PACKAGE_URL ""
313 | #define PACKAGE "dosbox"
314 | #define VERSION "SVN"
315 | /* end confdefs.h. */
316 |
317 | #include <stdio.h>
318 | #include "SDL.h"
319 |
320 | int
321 | main ()
322 | {
323 | return 0;
324 | ;
325 | return 0;
326 | }
327 configure:4900: error: *** SDL version 1.2.0 not found!
328
329 ## ---------------- ##
330 ## Cache variables. ##
331 ## ---------------- ##
332
333 ac_cv_build=i686-pc-mingw32
334 ac_cv_c_compiler_gnu=yes
335 ac_cv_cxx_compiler_gnu=yes
336 ac_cv_env_CCC_set=
337 ac_cv_env_CCC_value=
338 ac_cv_env_CC_set=
339 ac_cv_env_CC_value=
340 ac_cv_env_CFLAGS_set=
341 ac_cv_env_CFLAGS_value=
342 ac_cv_env_CPPFLAGS_set=
343 ac_cv_env_CPPFLAGS_value=
344 ac_cv_env_CPP_set=
345 ac_cv_env_CPP_value=
346 ac_cv_env_CXXFLAGS_set=
347 ac_cv_env_CXXFLAGS_value=
348 ac_cv_env_CXX_set=
349 ac_cv_env_CXX_value=
350 ac_cv_env_LDFLAGS_set=
351 ac_cv_env_LDFLAGS_value=
352 ac_cv_env_LIBS_set=
353 ac_cv_env_LIBS_value=
354 ac_cv_env_build_alias_set=
355 ac_cv_env_build_alias_value=
356 ac_cv_env_host_alias_set=
357 ac_cv_env_host_alias_value=
358 ac_cv_env_target_alias_set=
359 ac_cv_env_target_alias_value=
360 ac_cv_exeext=.exe
361 ac_cv_host=i686-pc-mingw32
362 ac_cv_objext=o
363 ac_cv_path_SDL_CONFIG=/SDL/SDL-1.2.15/bin/sdl-config
364 ac_cv_path_install='/bin/install -c'
365 ac_cv_path_mkdir=/bin/mkdir
366 ac_cv_prog_AWK=gawk
367 ac_cv_prog_CPP='gcc -E'
368 ac_cv_prog_ac_ct_CC=gcc
369 ac_cv_prog_ac_ct_CXX=g++
370 ac_cv_prog_ac_ct_RANLIB=ranlib
371 ac_cv_prog_cc_c89=
372 ac_cv_prog_cc_g=yes
373 ac_cv_prog_cxx_g=yes
374 ac_cv_prog_make_make_set=yes
375 am_cv_CC_dependencies_compiler_type=gcc3
376 am_cv_CXX_dependencies_compiler_type=gcc3
377
378 ## ----------------- ##
379 ## Output variables. ##
380 ## ----------------- ##
381
382 ACLOCAL='${SHELL} /c/Development/DOSBox/trunk/missing --run aclocal-1.11'
383 ALSA_CFLAGS=''
384 ALSA_LIBS=''
385 AMDEPBACKSLASH='\'
386 AMDEP_FALSE='#'
387 AMDEP_TRUE=''
388 AMTAR='${SHELL} /c/Development/DOSBox/trunk/missing --run tar'
389 AUTOCONF='${SHELL} /c/Development/DOSBox/trunk/missing --run autoconf'
390 AUTOHEADER='${SHELL} /c/Development/DOSBox/trunk/missing --run autoheader'
391 AUTOMAKE='${SHELL} /c/Development/DOSBox/trunk/missing --run automake-1.11'
392 AWK='gawk'
393 CC='gcc'
394 CCDEPMODE='depmode=gcc3'
395 CFLAGS='-g -O2'
396 CPP='gcc -E'
397 CPPFLAGS=''
398 CXX='g++'
399 CXXDEPMODE='depmode=gcc3'
400 CXXFLAGS='-g -O2'
401 CYGPATH_W='echo'
402 DEFS=''
403 DEPDIR='.deps'
404 ECHO_C=''
405 ECHO_N='-n'
406 ECHO_T=''
407 EGREP=''
408 EXEEXT='.exe'
409 GREP=''
410 HAVE_WINDRES_FALSE=''
411 HAVE_WINDRES_TRUE=''
412 INSTALL_DATA='${INSTALL} -m 644'
413 INSTALL_PROGRAM='${INSTALL}'
414 INSTALL_SCRIPT='${INSTALL}'
415 INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
416 LDFLAGS=''
417 LIBOBJS=''
418 LIBS=''
419 LTLIBOBJS=''
420 MAKEINFO='${SHELL} /c/Development/DOSBox/trunk/missing --run makeinfo'
421 MKDIR_P='/bin/mkdir -p'
422 OBJEXT='o'
423 PACKAGE='dosbox'
424 PACKAGE_BUGREPORT=''
425 PACKAGE_NAME='dosbox'
426 PACKAGE_STRING='dosbox SVN'
427 PACKAGE_TARNAME='dosbox'
428 PACKAGE_URL=''
429 PACKAGE_VERSION='SVN'
430 PATH_SEPARATOR=':'
431 RANLIB='ranlib'
432 SDL_CFLAGS=''
433 SDL_CONFIG='/SDL/SDL-1.2.15/bin/sdl-config'
434 SDL_LIBS=''
435 SET_MAKE=''
436 SHELL='/bin/sh'
437 STRIP=''
438 VERSION='SVN'
439 WINDRES=''
440 ac_ct_CC='gcc'
441 ac_ct_CXX='g++'
442 am__EXEEXT_FALSE=''
443 am__EXEEXT_TRUE=''
444 am__fastdepCC_FALSE='#'
445 am__fastdepCC_TRUE=''
446 am__fastdepCXX_FALSE='#'
447 am__fastdepCXX_TRUE=''
448 am__include='include'
449 am__isrc=''
450 am__leading_dot='.'
451 am__quote=''
452 am__tar='${AMTAR} chof - "$$tardir"'
453 am__untar='${AMTAR} xf -'
454 bindir='${exec_prefix}/bin'
455 build='i686-pc-mingw32'
456 build_alias=''
457 build_cpu='i686'
458 build_os='mingw32'
459 build_vendor='pc'
460 datadir='${datarootdir}'
461 datarootdir='${prefix}/share'
462 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
463 dvidir='${docdir}'
464 exec_prefix='NONE'
465 host='i686-pc-mingw32'
466 host_alias=''
467 host_cpu='i686'
468 host_os='mingw32'
469 host_vendor='pc'
470 htmldir='${docdir}'
471 includedir='${prefix}/include'
472 infodir='${datarootdir}/info'
473 install_sh='${SHELL} /c/Development/DOSBox/trunk/install-sh'
474 libdir='${exec_prefix}/lib'
475 libexecdir='${exec_prefix}/libexec'
476 localedir='${datarootdir}/locale'
477 localstatedir='${prefix}/var'
478 mandir='${datarootdir}/man'
479 mkdir_p='/bin/mkdir -p'
480 oldincludedir='/usr/include'
481 pdfdir='${docdir}'
482 prefix='NONE'
483 program_transform_name='s,x,x,'
484 psdir='${docdir}'
485 sbindir='${exec_prefix}/sbin'
486 sharedstatedir='${prefix}/com'
487 sysconfdir='${prefix}/etc'
488 target_alias=''
489
490 ## ----------- ##
491 ## confdefs.h. ##
492 ## ----------- ##
493
494 /* confdefs.h */
495 #define PACKAGE_NAME "dosbox"
496 #define PACKAGE_TARNAME "dosbox"
497 #define PACKAGE_VERSION "SVN"
498 #define PACKAGE_STRING "dosbox SVN"
499 #define PACKAGE_BUGREPORT ""
500 #define PACKAGE_URL ""
501 #define PACKAGE "dosbox"
502 #define VERSION "SVN"
503
504 configure: exit 1
For some reason it doesn't seem to be able to find SDL.h even though typing SDL.h on the commandline does find the file. Any ideas how to fix this?