/[mldonkey]/mldonkey/config/configure
ViewVC logotype

Contents of /mldonkey/config/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.29 - (show annotations) (download)
Thu Oct 24 13:17:16 2002 UTC (21 years, 6 months ago) by mldonkey
Branch: MAIN
Changes since 1.28: +2 -2 lines
-

1 #! /bin/sh
2
3 # From configure.in Revision: 1.61
4
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.13
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Defaults:
13 ac_help=
14 ac_default_prefix=/usr/local
15 # Any additions from configure.in:
16 ac_help="$ac_help
17 --disable-multinet: allows you to only compile support for edonkey"
18 ac_help="$ac_help
19 --enable-checks: force mldonkey to perform bound checks on array/string access"
20 ac_help="$ac_help
21 --enable-batch: reply YES to all queries in this script"
22 ac_help="$ac_help
23 --disable-audiogalaxy: allows you to remove support for Audio Galaxy"
24 ac_help="$ac_help
25 --disable-opennap: allows you to remove support for Open Napster"
26 ac_help="$ac_help
27 --disable-limewire: allows you to remove support for LimeWire"
28 ac_help="$ac_help
29 --disable-directconnect: allows you to remove support for Direct Connect"
30 ac_help="$ac_help
31 --disable-soulseek: allows you to remove support for SoulSeek"
32 ac_help="$ac_help
33 --disable-openft: allows you to remove support for OpenFT"
34 ac_help="$ac_help
35 --disable-cymes: allows you to remove support for Cymes"
36 ac_help="$ac_help
37 --disable-donkey: allows you to remove support for eDonkey"
38 ac_help="$ac_help
39 --enable-local-prefix=prefix: allows you to specify where you want temporary tools to be installed (prefix must be absolute)"
40
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
44 build=NONE
45 cache_file=./config.cache
46 exec_prefix=NONE
47 host=NONE
48 no_create=
49 nonopt=NONE
50 no_recursion=
51 prefix=NONE
52 program_prefix=NONE
53 program_suffix=NONE
54 program_transform_name=s,x,x,
55 silent=
56 site=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
74
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
81
82 ac_prev=
83 for ac_option
84 do
85
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
91 fi
92
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
97
98 # Accept the important Cygnus configure options, so we can diagnose typos.
99
100 case "$ac_option" in
101
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
106
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
111
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
118
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
124
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
133
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 fi
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
146
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
155
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
159
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
196 EOF
197 cat << EOF
198 Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
209 EOF
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
212 fi
213 exit 0 ;;
214
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
219
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
226
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
231
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
236
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
243
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
252
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
257
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
261
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
265
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
269
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
278
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
283
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
290
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
297
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
314
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
318
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
324
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
335
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
340
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 ac_prev=srcdir ;;
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
345
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
352
353 -target | --target | --targe | --targ | --tar | --ta | --t)
354 ac_prev=target ;;
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
357
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 verbose=yes ;;
360
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.13"
363 exit 0 ;;
364
365 -with-* | --with-*)
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 case "$ac_option" in
373 *=*) ;;
374 *) ac_optarg=yes ;;
375 esac
376 eval "with_${ac_package}='$ac_optarg'" ;;
377
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 fi
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
386
387 --x)
388 # Obsolete; use --with-x.
389 with_x=yes ;;
390
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
397
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
404
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 ;;
407
408 *)
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 fi
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 fi
415 nonopt="$ac_option"
416 ;;
417
418 esac
419 done
420
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 fi
424
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426
427 # File descriptor usage:
428 # 0 standard input
429 # 1 file creation
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
436 exec 6>/dev/null
437 else
438 exec 6>&1
439 fi
440 exec 5>./config.log
441
442 echo "\
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
445 " 1>&5
446
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
449 ac_configure_args=
450 for ac_arg
451 do
452 case "$ac_arg" in
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 esac
461 done
462
463 # NLS nuisances.
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 echo > confdefs.h
477
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=Makefile.config.in
481
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
486 ac_prog=$0
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 srcdir=$ac_confdir
490 if test ! -r $srcdir/$ac_unique_file; then
491 srcdir=..
492 fi
493 else
494 ac_srcdir_defaulted=no
495 fi
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 else
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 fi
502 fi
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 else
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 fi
512 fi
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
517 fi
518 done
519
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
522 . $cache_file
523 else
524 echo "creating cache $cache_file"
525 > $cache_file
526 fi
527
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
534
535 ac_exeext=
536 ac_objext=o
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='
541 ' ac_t=' '
542 else
543 ac_n=-n ac_c= ac_t=
544 fi
545 else
546 ac_n= ac_c='\c' ac_t=
547 fi
548
549
550
551
552 CURRENT_VERSION=2.00+2
553
554 REQUIRED_OCAML=3.06
555 REQUIRED_LABLGTK=1.2.4
556
557 touch install-sh
558
559 BATCH=no
560 AUDIO_GALAXY=no
561 OPEN_NAPSTER=yes
562 LIMEWIRE=yes
563 DIRECT_CONNECT=yes
564 SOULSEEK=yes
565 OPENFT=yes
566 CYMES=no
567 DONKEY=yes
568
569 MULTINET=yes
570 # Check whether --enable-multinet or --disable-multinet was given.
571 if test "${enable_multinet+set}" = set; then
572 enableval="$enable_multinet"
573 MULTINET="$enableval"
574 fi
575
576
577 # Check whether --enable-checks or --disable-checks was given.
578 if test "${enable_checks+set}" = set; then
579 enableval="$enable_checks"
580 CHECKBOUNDS="$enableval"
581 fi
582
583
584 if test "$CHECKBOUNDS" = "yes"; then
585 CHECKBOUNDS=true
586 else
587 CHECKBOUNDS=false
588 fi
589
590 if test ! "$MULTINET" = "yes"; then
591 AUDIO_GALAXY=no
592 OPEN_NAPSTER=no
593 LIMEWIRE=no
594 DIRECT_CONNECT=no
595 SOULSEEK=no
596 OPENFT=no
597 CYMES=no
598 RELEASENAME="$RELEASENAME-nomultinet"
599 fi
600
601 # Check whether --enable-batch or --disable-batch was given.
602 if test "${enable_batch+set}" = set; then
603 enableval="$enable_batch"
604 BATCH="$enableval"
605 fi
606
607
608 # Check whether --enable-audiogalaxy or --disable-audiogalaxy was given.
609 if test "${enable_audiogalaxy+set}" = set; then
610 enableval="$enable_audiogalaxy"
611 AUDIO_GALAXY="$enableval"
612 fi
613
614
615 # Check whether --enable-opennap or --disable-opennap was given.
616 if test "${enable_opennap+set}" = set; then
617 enableval="$enable_opennap"
618 OPEN_NAPSTER="$enableval"
619 fi
620
621
622 # Check whether --enable-limewire or --disable-limewire was given.
623 if test "${enable_limewire+set}" = set; then
624 enableval="$enable_limewire"
625 LIMEWIRE="$enableval"
626 fi
627
628
629 # Check whether --enable-directconnect or --disable-directconnect was given.
630 if test "${enable_directconnect+set}" = set; then
631 enableval="$enable_directconnect"
632 DIRECT_CONNECT="$enableval"
633 fi
634
635
636 # Check whether --enable-soulseek or --disable-soulseek was given.
637 if test "${enable_soulseek+set}" = set; then
638 enableval="$enable_soulseek"
639 SOULSEEK="$enableval"
640 fi
641
642
643 # Check whether --enable-openft or --disable-openft was given.
644 if test "${enable_openft+set}" = set; then
645 enableval="$enable_openft"
646 OPENFT="$enableval"
647 fi
648
649
650 # Check whether --enable-cymes or --disable-cymes was given.
651 if test "${enable_cymes+set}" = set; then
652 enableval="$enable_cymes"
653 CYMES="$enableval"
654 fi
655
656
657 # Check whether --enable-donkey or --disable-donkey was given.
658 if test "${enable_donkey+set}" = set; then
659 enableval="$enable_donkey"
660 DONKEY="$enableval"
661 fi
662
663
664 ac_aux_dir=
665 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
666 if test -f $ac_dir/install-sh; then
667 ac_aux_dir=$ac_dir
668 ac_install_sh="$ac_aux_dir/install-sh -c"
669 break
670 elif test -f $ac_dir/install.sh; then
671 ac_aux_dir=$ac_dir
672 ac_install_sh="$ac_aux_dir/install.sh -c"
673 break
674 fi
675 done
676 if test -z "$ac_aux_dir"; then
677 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
678 fi
679 ac_config_guess=$ac_aux_dir/config.guess
680 ac_config_sub=$ac_aux_dir/config.sub
681 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
682
683
684 # Make sure we can run config.sub.
685 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
687 fi
688
689 echo $ac_n "checking host system type""... $ac_c" 1>&6
690 echo "configure:691: checking host system type" >&5
691
692 host_alias=$host
693 case "$host_alias" in
694 NONE)
695 case $nonopt in
696 NONE)
697 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
698 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
699 fi ;;
700 *) host_alias=$nonopt ;;
701 esac ;;
702 esac
703
704 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
705 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$host" 1>&6
709
710 # Extract the first word of "gcc", so it can be a program name with args.
711 set dummy gcc; ac_word=$2
712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
713 echo "configure:714: checking for $ac_word" >&5
714 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
716 else
717 if test -n "$CC"; then
718 ac_cv_prog_CC="$CC" # Let the user override the test.
719 else
720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
721 ac_dummy="$PATH"
722 for ac_dir in $ac_dummy; do
723 test -z "$ac_dir" && ac_dir=.
724 if test -f $ac_dir/$ac_word; then
725 ac_cv_prog_CC="gcc"
726 break
727 fi
728 done
729 IFS="$ac_save_ifs"
730 fi
731 fi
732 CC="$ac_cv_prog_CC"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
735 else
736 echo "$ac_t""no" 1>&6
737 fi
738
739 if test -z "$CC"; then
740 # Extract the first word of "cc", so it can be a program name with args.
741 set dummy cc; ac_word=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746 else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749 else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_prog_rejected=no
752 ac_dummy="$PATH"
753 for ac_dir in $ac_dummy; do
754 test -z "$ac_dir" && ac_dir=.
755 if test -f $ac_dir/$ac_word; then
756 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
757 ac_prog_rejected=yes
758 continue
759 fi
760 ac_cv_prog_CC="cc"
761 break
762 fi
763 done
764 IFS="$ac_save_ifs"
765 if test $ac_prog_rejected = yes; then
766 # We found a bogon in the path, so make sure we never use it.
767 set dummy $ac_cv_prog_CC
768 shift
769 if test $# -gt 0; then
770 # We chose a different compiler from the bogus one.
771 # However, it has the same basename, so the bogon will be chosen
772 # first if we set CC to just the basename; use the full file name.
773 shift
774 set dummy "$ac_dir/$ac_word" "$@"
775 shift
776 ac_cv_prog_CC="$@"
777 fi
778 fi
779 fi
780 fi
781 CC="$ac_cv_prog_CC"
782 if test -n "$CC"; then
783 echo "$ac_t""$CC" 1>&6
784 else
785 echo "$ac_t""no" 1>&6
786 fi
787
788 if test -z "$CC"; then
789 case "`uname -s`" in
790 *win32* | *WIN32*)
791 # Extract the first word of "cl", so it can be a program name with args.
792 set dummy cl; ac_word=$2
793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794 echo "configure:795: checking for $ac_word" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
797 else
798 if test -n "$CC"; then
799 ac_cv_prog_CC="$CC" # Let the user override the test.
800 else
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
802 ac_dummy="$PATH"
803 for ac_dir in $ac_dummy; do
804 test -z "$ac_dir" && ac_dir=.
805 if test -f $ac_dir/$ac_word; then
806 ac_cv_prog_CC="cl"
807 break
808 fi
809 done
810 IFS="$ac_save_ifs"
811 fi
812 fi
813 CC="$ac_cv_prog_CC"
814 if test -n "$CC"; then
815 echo "$ac_t""$CC" 1>&6
816 else
817 echo "$ac_t""no" 1>&6
818 fi
819 ;;
820 esac
821 fi
822 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
823 fi
824
825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
826 echo "configure:827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
827
828 ac_ext=c
829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
830 ac_cpp='$CPP $CPPFLAGS'
831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
833 cross_compiling=$ac_cv_prog_cc_cross
834
835 cat > conftest.$ac_ext << EOF
836
837 #line 838 "configure"
838 #include "confdefs.h"
839
840 main(){return(0);}
841 EOF
842 if { (eval echo configure:843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
843 ac_cv_prog_cc_works=yes
844 # If we can't run a trivial program, we are probably using a cross compiler.
845 if (./conftest; exit) 2>/dev/null; then
846 ac_cv_prog_cc_cross=no
847 else
848 ac_cv_prog_cc_cross=yes
849 fi
850 else
851 echo "configure: failed program was:" >&5
852 cat conftest.$ac_ext >&5
853 ac_cv_prog_cc_works=no
854 fi
855 rm -fr conftest*
856 ac_ext=c
857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
858 ac_cpp='$CPP $CPPFLAGS'
859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
861 cross_compiling=$ac_cv_prog_cc_cross
862
863 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
864 if test $ac_cv_prog_cc_works = no; then
865 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
866 fi
867 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
868 echo "configure:869: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
869 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
870 cross_compiling=$ac_cv_prog_cc_cross
871
872 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
873 echo "configure:874: checking whether we are using GNU C" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
876 else
877 cat > conftest.c <<EOF
878 #ifdef __GNUC__
879 yes;
880 #endif
881 EOF
882 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
883 ac_cv_prog_gcc=yes
884 else
885 ac_cv_prog_gcc=no
886 fi
887 fi
888
889 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
890
891 if test $ac_cv_prog_gcc = yes; then
892 GCC=yes
893 else
894 GCC=
895 fi
896
897 ac_test_CFLAGS="${CFLAGS+set}"
898 ac_save_CFLAGS="$CFLAGS"
899 CFLAGS=
900 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
901 echo "configure:902: checking whether ${CC-cc} accepts -g" >&5
902 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
904 else
905 echo 'void f(){}' > conftest.c
906 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
907 ac_cv_prog_cc_g=yes
908 else
909 ac_cv_prog_cc_g=no
910 fi
911 rm -f conftest*
912
913 fi
914
915 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
916 if test "$ac_test_CFLAGS" = set; then
917 CFLAGS="$ac_save_CFLAGS"
918 elif test $ac_cv_prog_cc_g = yes; then
919 if test "$GCC" = yes; then
920 CFLAGS="-g -O2"
921 else
922 CFLAGS="-g"
923 fi
924 else
925 if test "$GCC" = yes; then
926 CFLAGS="-O2"
927 else
928 CFLAGS=
929 fi
930 fi
931
932 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
933 echo "configure:934: checking for Cygwin environment" >&5
934 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936 else
937 cat > conftest.$ac_ext <<EOF
938 #line 939 "configure"
939 #include "confdefs.h"
940
941 int main() {
942
943 #ifndef __CYGWIN__
944 #define __CYGWIN__ __CYGWIN32__
945 #endif
946 return __CYGWIN__;
947 ; return 0; }
948 EOF
949 if { (eval echo configure:950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
950 rm -rf conftest*
951 ac_cv_cygwin=yes
952 else
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
955 rm -rf conftest*
956 ac_cv_cygwin=no
957 fi
958 rm -f conftest*
959 rm -f conftest*
960 fi
961
962 echo "$ac_t""$ac_cv_cygwin" 1>&6
963 CYGWIN=
964 test "$ac_cv_cygwin" = yes && CYGWIN=yes
965 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
966 echo "configure:967: checking for mingw32 environment" >&5
967 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969 else
970 cat > conftest.$ac_ext <<EOF
971 #line 972 "configure"
972 #include "confdefs.h"
973
974 int main() {
975 return __MINGW32__;
976 ; return 0; }
977 EOF
978 if { (eval echo configure:979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
979 rm -rf conftest*
980 ac_cv_mingw32=yes
981 else
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
984 rm -rf conftest*
985 ac_cv_mingw32=no
986 fi
987 rm -f conftest*
988 rm -f conftest*
989 fi
990
991 echo "$ac_t""$ac_cv_mingw32" 1>&6
992 MINGW32=
993 test "$ac_cv_mingw32" = yes && MINGW32=yes
994
995
996 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
997 echo "configure:998: checking for executable suffix" >&5
998 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1002 ac_cv_exeext=.exe
1003 else
1004 rm -f conftest*
1005 echo 'int main () { return 0; }' > conftest.$ac_ext
1006 ac_cv_exeext=
1007 if { (eval echo configure:1008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1008 for file in conftest.*; do
1009 case $file in
1010 *.c | *.o | *.obj) ;;
1011 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1012 esac
1013 done
1014 else
1015 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1016 fi
1017 rm -f conftest*
1018 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1019 fi
1020 fi
1021
1022 EXEEXT=""
1023 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1024 echo "$ac_t""${ac_cv_exeext}" 1>&6
1025 ac_exeext=$EXEEXT
1026
1027 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1028 echo "configure:1029: checking how to run the C preprocessor" >&5
1029 # On Suns, sometimes $CPP names a directory.
1030 if test -n "$CPP" && test -d "$CPP"; then
1031 CPP=
1032 fi
1033 if test -z "$CPP"; then
1034 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1036 else
1037 # This must be in double quotes, not single quotes, because CPP may get
1038 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 CPP="${CC-cc} -E"
1040 # On the NeXT, cc -E runs the code through the compiler's parser,
1041 # not just through cpp.
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <assert.h>
1046 Syntax Error
1047 EOF
1048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1049 { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1051 if test -z "$ac_err"; then
1052 :
1053 else
1054 echo "$ac_err" >&5
1055 echo "configure: failed program was:" >&5
1056 cat conftest.$ac_ext >&5
1057 rm -rf conftest*
1058 CPP="${CC-cc} -E -traditional-cpp"
1059 cat > conftest.$ac_ext <<EOF
1060 #line 1061 "configure"
1061 #include "confdefs.h"
1062 #include <assert.h>
1063 Syntax Error
1064 EOF
1065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1066 { (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1068 if test -z "$ac_err"; then
1069 :
1070 else
1071 echo "$ac_err" >&5
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1074 rm -rf conftest*
1075 CPP="${CC-cc} -nologo -E"
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1079 #include <assert.h>
1080 Syntax Error
1081 EOF
1082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1083 { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1085 if test -z "$ac_err"; then
1086 :
1087 else
1088 echo "$ac_err" >&5
1089 echo "configure: failed program was:" >&5
1090 cat conftest.$ac_ext >&5
1091 rm -rf conftest*
1092 CPP=/lib/cpp
1093 fi
1094 rm -f conftest*
1095 fi
1096 rm -f conftest*
1097 fi
1098 rm -f conftest*
1099 ac_cv_prog_CPP="$CPP"
1100 fi
1101 CPP="$ac_cv_prog_CPP"
1102 else
1103 ac_cv_prog_CPP="$CPP"
1104 fi
1105 echo "$ac_t""$CPP" 1>&6
1106
1107
1108 # Extract the first word of "ranlib", so it can be a program name with args.
1109 set dummy ranlib; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 if test -n "$RANLIB"; then
1116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1117 else
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1119 ac_dummy="$PATH"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1123 ac_cv_prog_RANLIB="ranlib"
1124 break
1125 fi
1126 done
1127 IFS="$ac_save_ifs"
1128 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1129 fi
1130 fi
1131 RANLIB="$ac_cv_prog_RANLIB"
1132 if test -n "$RANLIB"; then
1133 echo "$ac_t""$RANLIB" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1136 fi
1137
1138
1139 OCAML_PATH=
1140
1141 # Extract the first word of "gmake", so it can be a program name with args.
1142 set dummy gmake; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_GNU_MAKE'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 if test -n "$GNU_MAKE"; then
1149 ac_cv_prog_GNU_MAKE="$GNU_MAKE" # Let the user override the test.
1150 else
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 ac_dummy="$PATH"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_GNU_MAKE="gmake"
1157 break
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161 fi
1162 fi
1163 GNU_MAKE="$ac_cv_prog_GNU_MAKE"
1164 if test -n "$GNU_MAKE"; then
1165 echo "$ac_t""$GNU_MAKE" 1>&6
1166 else
1167 echo "$ac_t""no" 1>&6
1168 fi
1169
1170 # Extract the first word of "make", so it can be a program name with args.
1171 set dummy make; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_GNU_MAKE'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 if test -n "$GNU_MAKE"; then
1178 ac_cv_prog_GNU_MAKE="$GNU_MAKE" # Let the user override the test.
1179 else
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181 ac_dummy="$PATH"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_GNU_MAKE="make"
1186 break
1187 fi
1188 done
1189 IFS="$ac_save_ifs"
1190 fi
1191 fi
1192 GNU_MAKE="$ac_cv_prog_GNU_MAKE"
1193 if test -n "$GNU_MAKE"; then
1194 echo "$ac_t""$GNU_MAKE" 1>&6
1195 else
1196 echo "$ac_t""no" 1>&6
1197 fi
1198
1199
1200 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
1201 set dummy ocamlc.opt; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLC'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207 if test -n "$OCAMLC"; then
1208 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
1209 else
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1211 ac_dummy="$PATH"
1212 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_OCAMLC="ocamlc.opt"
1216 break
1217 fi
1218 done
1219 IFS="$ac_save_ifs"
1220 fi
1221 fi
1222 OCAMLC="$ac_cv_prog_OCAMLC"
1223 if test -n "$OCAMLC"; then
1224 echo "$ac_t""$OCAMLC" 1>&6
1225 else
1226 echo "$ac_t""no" 1>&6
1227 fi
1228
1229 # Extract the first word of "ocamlc", so it can be a program name with args.
1230 set dummy ocamlc; ac_word=$2
1231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1232 echo "configure:1233: checking for $ac_word" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLC'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236 if test -n "$OCAMLC"; then
1237 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
1238 else
1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1240 ac_dummy="$PATH"
1241 for ac_dir in $ac_dummy; do
1242 test -z "$ac_dir" && ac_dir=.
1243 if test -f $ac_dir/$ac_word; then
1244 ac_cv_prog_OCAMLC="ocamlrun ocamlc"
1245 break
1246 fi
1247 done
1248 IFS="$ac_save_ifs"
1249 fi
1250 fi
1251 OCAMLC="$ac_cv_prog_OCAMLC"
1252 if test -n "$OCAMLC"; then
1253 echo "$ac_t""$OCAMLC" 1>&6
1254 else
1255 echo "$ac_t""no" 1>&6
1256 fi
1257
1258
1259 cd ..
1260 SOURCE_DIR=`pwd`
1261 cd config
1262
1263 CONFIG_DIR=$SOURCE_DIR/config
1264 PATCH_DIR=$SOURCE_DIR/patches
1265 LOCAL_DIR=$PATCH_DIR/local
1266 BUILD_DIR=$PATCH_DIR/build
1267
1268 # Check whether --enable-local-prefix or --disable-local-prefix was given.
1269 if test "${enable_local_prefix+set}" = set; then
1270 enableval="$enable_local_prefix"
1271 LOCAL_DIR="$enableval"
1272 fi
1273
1274
1275 LOCAL=$LOCAL_DIR
1276 LOCAL_OCAML=$LOCAL_DIR/bin
1277
1278 BUILD_OCAML=no
1279 if test -z "$ac_cv_prog_OCAMLC"; then
1280 BUILD_OCAML=yes
1281 else
1282 echo "Testing ocaml version"
1283 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
1284 case "$OCAMLVERSION" in
1285 "$REQUIRED_OCAML"*) ;;
1286 *) echo "Need build"
1287 BUILD_OCAML=yes;;
1288 esac
1289 fi
1290
1291 if test "$BUILD_OCAML" = "yes"; then
1292
1293
1294 ac_safe=`echo ""$LOCAL_OCAML"/ocamlc.opt" | sed 'y%./+-%__p_%'`
1295 echo $ac_n "checking for "$LOCAL_OCAML"/ocamlc.opt""... $ac_c" 1>&6
1296 echo "configure:1297: checking for "$LOCAL_OCAML"/ocamlc.opt" >&5
1297 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test "$cross_compiling" = yes; then
1301 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1302 else
1303 if test -r "$LOCAL_OCAML"/ocamlc.opt; then
1304 eval "ac_cv_file_$ac_safe=yes"
1305 else
1306 eval "ac_cv_file_$ac_safe=no"
1307 fi
1308 fi
1309 fi
1310 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1312
1313 OCAMLVERSION=`$LOCAL_OCAML/ocamlc.opt -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
1314 case "$OCAMLVERSION" in
1315 "$REQUIRED_OCAML"*)
1316 BUILD_OCAML=no
1317 OCAMLC=$LOCAL_OCAML/ocamlc.opt
1318 ac_cv_prog_OCAMLC=$LOCAL_OCAML/ocamlc.opt
1319 ;;
1320 *) echo "Need build"
1321 esac
1322
1323 else
1324 echo "$ac_t""no" 1>&6
1325
1326 fi
1327
1328 fi
1329
1330 # Extract the first word of "wget", so it can be a program name with args.
1331 set dummy wget; ac_word=$2
1332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_word" >&5
1334 if eval "test \"`echo '$''{'ac_cv_prog_WGET'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1336 else
1337 if test -n "$WGET"; then
1338 ac_cv_prog_WGET="$WGET" # Let the user override the test.
1339 else
1340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 ac_dummy="$PATH"
1342 for ac_dir in $ac_dummy; do
1343 test -z "$ac_dir" && ac_dir=.
1344 if test -f $ac_dir/$ac_word; then
1345 ac_cv_prog_WGET="wget"
1346 break
1347 fi
1348 done
1349 IFS="$ac_save_ifs"
1350 fi
1351 fi
1352 WGET="$ac_cv_prog_WGET"
1353 if test -n "$WGET"; then
1354 echo "$ac_t""$WGET" 1>&6
1355 else
1356 echo "$ac_t""no" 1>&6
1357 fi
1358
1359 if test -z "$ac_cv_prog_WGET"; then
1360 $CC -o wget wget.c || echo "Cannot compile wget.c"
1361 # Extract the first word of "wget", so it can be a program name with args.
1362 set dummy wget; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_path_WGET'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1367 else
1368 case "$WGET" in
1369 /*)
1370 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
1371 ;;
1372 ?:/*)
1373 ac_cv_path_WGET="$WGET" # Let the user override the test with a dos path.
1374 ;;
1375 *)
1376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1377 ac_dummy="$SOURCE_DIR/config"
1378 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 if test -f $ac_dir/$ac_word; then
1381 ac_cv_path_WGET="$ac_dir/$ac_word"
1382 break
1383 fi
1384 done
1385 IFS="$ac_save_ifs"
1386 ;;
1387 esac
1388 fi
1389 WGET="$ac_cv_path_WGET"
1390 if test -n "$WGET"; then
1391 echo "$ac_t""$WGET" 1>&6
1392 else
1393 echo "$ac_t""no" 1>&6
1394 fi
1395
1396 ac_cv_prog_WGET="$ac_cv_path_WGET"
1397 fi
1398 WGET="$ac_cv_prog_WGET"
1399
1400 if test "$BUILD_OCAML" = "yes"; then
1401
1402 echo "******** Objective-Caml $REQUIRED_OCAML is required *********" 1>&2;
1403 echo "******* Check http://ocaml.inria.fr/ ********" 1>&2;
1404 echo "Do you want this script to try to download and install ocaml"
1405 echo "LOCALLY in mldonkey directory ?"
1406 if test "$BATCH" = "no"; then read i; else i=yes; fi
1407 case "$i" in
1408 y* | Y*)
1409 cd $PATCH_DIR
1410 if test ! -f ocaml-"$REQUIRED_OCAML".tar.gz; then
1411 echo Downloading ...
1412
1413 $WGET http://pauillac.inria.fr/caml/distrib/ocaml-"$REQUIRED_OCAML"/ocaml-"$REQUIRED_OCAML".tar.gz
1414 fi
1415 if test ! -f ocaml-"$REQUIRED_OCAML".tar.gz; then exit 1; fi
1416
1417 echo Uncompressing ...
1418 mkdir -p $BUILD_DIR
1419 cd $BUILD_DIR
1420 rm -rf ocaml-"$REQUIRED_OCAML"
1421 gzip -cd $PATCH_DIR/ocaml-"$REQUIRED_OCAML".tar.gz | tar vxf -
1422 cd ocaml-"$REQUIRED_OCAML"
1423 if test -f $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch; then
1424 echo Patching ...
1425 patch -p1 < $PATCH_DIR/ocaml-"$REQUIRED_OCAML".patch
1426 fi
1427 echo Configuring ...
1428 ./configure -prefix $LOCAL_DIR
1429 cd config
1430 cp -f Makefile Makefile.old
1431 sed "s/OTHERLIBRARIES=.*/OTHERLIBRARIES=unix dynlink num str bigarray threads/" Makefile.old > Makefile
1432 cd ..
1433 cp -f $PATCH_DIR/Makefile.ocamldoc ocamldoc/Makefile
1434 echo Compiling ...
1435 $GNU_MAKE world opt opt.opt
1436 echo Installing ...
1437 $GNU_MAKE install
1438 cd $BUILD_DIR
1439 rm -rf ocaml-"$REQUIRED_OCAML"
1440 cd $CONFIG_DIR
1441 echo Ocaml locally installed for mldonkey
1442
1443 if test -f "$LOCAL_OCAML"/ocamlc.opt; then
1444 OCAMLC=$LOCAL_OCAML/ocamlc.opt
1445 ac_cv_prog_OCAMLC=$LOCAL_OCAML/ocamlc.opt
1446 else
1447 if test -f "$LOCAL_OCAML"/ocamlc; then
1448 OCAMLC=$LOCAL_OCAML/ocamlc
1449 ac_cv_prog_OCAMLC=$LOCAL_OCAML/ocamlc
1450 else
1451 echo "Ocaml installation failed"; exit 1
1452 fi
1453 fi
1454 ;;
1455 *) exit 1;;
1456 esac
1457 fi
1458
1459 if test "$OCAMLC" = "$LOCAL_OCAML"/ocamlc.opt ; then
1460 OCAML_PATH="$LOCAL_OCAML"/
1461 OCAMLOPT=$LOCAL_OCAML/ocamlopt.opt
1462 OCAMLMKTOP=$LOCAL_OCAML/ocamlmktop
1463 OCAMLDEP=$LOCAL_OCAML/ocamldep
1464 OCAMLLEX=$LOCAL_OCAML/ocamllex.opt
1465 OCAMLYACC=$LOCAL_OCAML/ocamlyacc
1466 CAMLP4=$LOCAL_OCAML/camlp4
1467 else
1468 if test "$OCAMLC" = "$LOCAL_OCAML"/ocamlc ; then
1469 OCAML_PATH="$LOCAL_OCAML"/
1470 OCAMLOPT=$LOCAL_OCAML/ocamlopt
1471 OCAMLMKTOP=$LOCAL_OCAML/ocamlmktop
1472 OCAMLDEP=$LOCAL_OCAML/ocamldep
1473 OCAMLLEX=$LOCAL_OCAML/ocamllex
1474 OCAMLYACC=$LOCAL_OCAML/ocamlyacc
1475 CAMLP4=$LOCAL_OCAML/camlp4
1476 else
1477 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
1478 set dummy ocamlopt.opt; ac_word=$2
1479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1480 echo "configure:1481: checking for $ac_word" >&5
1481 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLOPT'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484 if test -n "$OCAMLOPT"; then
1485 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
1486 else
1487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1488 ac_dummy="$PATH"
1489 for ac_dir in $ac_dummy; do
1490 test -z "$ac_dir" && ac_dir=.
1491 if test -f $ac_dir/$ac_word; then
1492 ac_cv_prog_OCAMLOPT="ocamlopt.opt"
1493 break
1494 fi
1495 done
1496 IFS="$ac_save_ifs"
1497 fi
1498 fi
1499 OCAMLOPT="$ac_cv_prog_OCAMLOPT"
1500 if test -n "$OCAMLOPT"; then
1501 echo "$ac_t""$OCAMLOPT" 1>&6
1502 else
1503 echo "$ac_t""no" 1>&6
1504 fi
1505
1506 # Extract the first word of "ocamlopt", so it can be a program name with args.
1507 set dummy ocamlopt; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLOPT'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 if test -n "$OCAMLOPT"; then
1514 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
1515 else
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 ac_dummy="$PATH"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_prog_OCAMLOPT="ocamlopt"
1522 break
1523 fi
1524 done
1525 IFS="$ac_save_ifs"
1526 fi
1527 fi
1528 OCAMLOPT="$ac_cv_prog_OCAMLOPT"
1529 if test -n "$OCAMLOPT"; then
1530 echo "$ac_t""$OCAMLOPT" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1533 fi
1534
1535 # Extract the first word of "ocamldep", so it can be a program name with args.
1536 set dummy ocamldep; ac_word=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLDEP'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541 else
1542 if test -n "$OCAMLDEP"; then
1543 ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
1544 else
1545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1546 ac_dummy="$PATH"
1547 for ac_dir in $ac_dummy; do
1548 test -z "$ac_dir" && ac_dir=.
1549 if test -f $ac_dir/$ac_word; then
1550 ac_cv_prog_OCAMLDEP="ocamldep"
1551 break
1552 fi
1553 done
1554 IFS="$ac_save_ifs"
1555 fi
1556 fi
1557 OCAMLDEP="$ac_cv_prog_OCAMLDEP"
1558 if test -n "$OCAMLDEP"; then
1559 echo "$ac_t""$OCAMLDEP" 1>&6
1560 else
1561 echo "$ac_t""no" 1>&6
1562 fi
1563
1564 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
1565 set dummy ocamllex.opt; ac_word=$2
1566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_word" >&5
1568 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLLEX'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1570 else
1571 if test -n "$OCAMLLEX"; then
1572 ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
1573 else
1574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1575 ac_dummy="$PATH"
1576 for ac_dir in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir=.
1578 if test -f $ac_dir/$ac_word; then
1579 ac_cv_prog_OCAMLLEX="ocamllex.opt"
1580 break
1581 fi
1582 done
1583 IFS="$ac_save_ifs"
1584 fi
1585 fi
1586 OCAMLLEX="$ac_cv_prog_OCAMLLEX"
1587 if test -n "$OCAMLLEX"; then
1588 echo "$ac_t""$OCAMLLEX" 1>&6
1589 else
1590 echo "$ac_t""no" 1>&6
1591 fi
1592
1593 # Extract the first word of "ocamllex", so it can be a program name with args.
1594 set dummy ocamllex; ac_word=$2
1595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_word" >&5
1597 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLLEX'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1600 if test -n "$OCAMLLEX"; then
1601 ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
1602 else
1603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1604 ac_dummy="$PATH"
1605 for ac_dir in $ac_dummy; do
1606 test -z "$ac_dir" && ac_dir=.
1607 if test -f $ac_dir/$ac_word; then
1608 ac_cv_prog_OCAMLLEX="ocamllex"
1609 break
1610 fi
1611 done
1612 IFS="$ac_save_ifs"
1613 fi
1614 fi
1615 OCAMLLEX="$ac_cv_prog_OCAMLLEX"
1616 if test -n "$OCAMLLEX"; then
1617 echo "$ac_t""$OCAMLLEX" 1>&6
1618 else
1619 echo "$ac_t""no" 1>&6
1620 fi
1621
1622 # Extract the first word of "ocamlyacc", so it can be a program name with args.
1623 set dummy ocamlyacc; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLYACC'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1628 else
1629 if test -n "$OCAMLYACC"; then
1630 ac_cv_prog_OCAMLYACC="$OCAMLYACC" # Let the user override the test.
1631 else
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1633 ac_dummy="$PATH"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1637 ac_cv_prog_OCAMLYACC="ocamlyacc"
1638 break
1639 fi
1640 done
1641 IFS="$ac_save_ifs"
1642 fi
1643 fi
1644 OCAMLYACC="$ac_cv_prog_OCAMLYACC"
1645 if test -n "$OCAMLYACC"; then
1646 echo "$ac_t""$OCAMLYACC" 1>&6
1647 else
1648 echo "$ac_t""no" 1>&6
1649 fi
1650
1651 # Extract the first word of "ocamlmktop", so it can be a program name with args.
1652 set dummy ocamlmktop; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_OCAMLMKTOP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657 else
1658 if test -n "$OCAMLMKTOP"; then
1659 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
1660 else
1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1662 ac_dummy="$PATH"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1666 ac_cv_prog_OCAMLMKTOP="ocamlmktop"
1667 break
1668 fi
1669 done
1670 IFS="$ac_save_ifs"
1671 fi
1672 fi
1673 OCAMLMKTOP="$ac_cv_prog_OCAMLMKTOP"
1674 if test -n "$OCAMLMKTOP"; then
1675 echo "$ac_t""$OCAMLMKTOP" 1>&6
1676 else
1677 echo "$ac_t""no" 1>&6
1678 fi
1679
1680 # Extract the first word of "camlp4", so it can be a program name with args.
1681 set dummy camlp4; ac_word=$2
1682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1683 echo "configure:1684: checking for $ac_word" >&5
1684 if eval "test \"`echo '$''{'ac_cv_prog_CAMLP4'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687 if test -n "$CAMLP4"; then
1688 ac_cv_prog_CAMLP4="$CAMLP4" # Let the user override the test.
1689 else
1690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1691 ac_dummy="$PATH"
1692 for ac_dir in $ac_dummy; do
1693 test -z "$ac_dir" && ac_dir=.
1694 if test -f $ac_dir/$ac_word; then
1695 ac_cv_prog_CAMLP4="camlp4"
1696 break
1697 fi
1698 done
1699 IFS="$ac_save_ifs"
1700 fi
1701 fi
1702 CAMLP4="$ac_cv_prog_CAMLP4"
1703 if test -n "$CAMLP4"; then
1704 echo "$ac_t""$CAMLP4" 1>&6
1705 else
1706 echo "$ac_t""no" 1>&6
1707 fi
1708
1709 fi
1710 fi
1711
1712 # Extract the first word of "perl", so it can be a program name with args.
1713 set dummy perl; ac_word=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5
1716 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1719 case "$PERL" in
1720 /*)
1721 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1722 ;;
1723 ?:/*)
1724 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1725 ;;
1726 *)
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1728 ac_dummy="$PATH"
1729 for ac_dir in $ac_dummy; do
1730 test -z "$ac_dir" && ac_dir=.
1731 if test -f $ac_dir/$ac_word; then
1732 ac_cv_path_PERL="$ac_dir/$ac_word"
1733 break
1734 fi
1735 done
1736 IFS="$ac_save_ifs"
1737 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1738 ;;
1739 esac
1740 fi
1741 PERL="$ac_cv_path_PERL"
1742 if test -n "$PERL"; then
1743 echo "$ac_t""$PERL" 1>&6
1744 else
1745 echo "$ac_t""no" 1>&6
1746 fi
1747
1748
1749 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
1750 echo "ocamlc version is $OCAMLVERSION"
1751
1752 case "$OCAMLVERSION" in
1753 "$REQUIRED_OCAML"*) ;;
1754 *)
1755 echo "******** Version $REQUIRED_OCAML of Objective-Caml is required *********" 1>&2;
1756 echo "******* Check http://ocaml.inria.fr/ ********" 1>&2;
1757 exit 1;
1758 ;;
1759 esac
1760
1761
1762 OCAMLOPTVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
1763 echo "ocamlopt version is $OCAMLOPTVERSION"
1764
1765 test "$OCAMLOPTVERSION" = "$OCAMLVERSION" || {
1766 echo "******** Version $REQUIRED_OCAML of ocamlopt is required *********" 1>&2;
1767 echo "******* Check http://ocaml.inria.fr/ ********" 1>&2;
1768 exit 1; }
1769
1770
1771 # Sizes of various common basic types
1772 echo $ac_n "checking size of int""... $ac_c" 1>&6
1773 echo "configure:1774: checking size of int" >&5
1774 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 if test "$cross_compiling" = yes; then
1778 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1779 else
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 #include <stdio.h>
1784 main()
1785 {
1786 FILE *f=fopen("conftestval", "w");
1787 if (!f) exit(1);
1788 fprintf(f, "%d\n", sizeof(int));
1789 exit(0);
1790 }
1791 EOF
1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1793 then
1794 ac_cv_sizeof_int=`cat conftestval`
1795 else
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 rm -fr conftest*
1799 ac_cv_sizeof_int=0
1800 fi
1801 rm -fr conftest*
1802 fi
1803
1804 fi
1805 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1806 cat >> confdefs.h <<EOF
1807 #define SIZEOF_INT $ac_cv_sizeof_int
1808 EOF
1809
1810
1811 echo $ac_n "checking size of long""... $ac_c" 1>&6
1812 echo "configure:1813: checking size of long" >&5
1813 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 if test "$cross_compiling" = yes; then
1817 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1818 else
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 #include <stdio.h>
1823 main()
1824 {
1825 FILE *f=fopen("conftestval", "w");
1826 if (!f) exit(1);
1827 fprintf(f, "%d\n", sizeof(long));
1828 exit(0);
1829 }
1830 EOF
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1832 then
1833 ac_cv_sizeof_long=`cat conftestval`
1834 else
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1837 rm -fr conftest*
1838 ac_cv_sizeof_long=0
1839 fi
1840 rm -fr conftest*
1841 fi
1842
1843 fi
1844 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1845 cat >> confdefs.h <<EOF
1846 #define SIZEOF_LONG $ac_cv_sizeof_long
1847 EOF
1848
1849
1850 echo $ac_n "checking size of void *""... $ac_c" 1>&6
1851 echo "configure:1852: checking size of void *" >&5
1852 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1854 else
1855 if test "$cross_compiling" = yes; then
1856 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1857 else
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <stdio.h>
1862 main()
1863 {
1864 FILE *f=fopen("conftestval", "w");
1865 if (!f) exit(1);
1866 fprintf(f, "%d\n", sizeof(void *));
1867 exit(0);
1868 }
1869 EOF
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1871 then
1872 ac_cv_sizeof_void_p=`cat conftestval`
1873 else
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 rm -fr conftest*
1877 ac_cv_sizeof_void_p=0
1878 fi
1879 rm -fr conftest*
1880 fi
1881
1882 fi
1883 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
1884 cat >> confdefs.h <<EOF
1885 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1886 EOF
1887
1888
1889 echo $ac_n "checking size of char""... $ac_c" 1>&6
1890 echo "configure:1891: checking size of char" >&5
1891 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1893 else
1894 if test "$cross_compiling" = yes; then
1895 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1896 else
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1900 #include <stdio.h>
1901 main()
1902 {
1903 FILE *f=fopen("conftestval", "w");
1904 if (!f) exit(1);
1905 fprintf(f, "%d\n", sizeof(char));
1906 exit(0);
1907 }
1908 EOF
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1910 then
1911 ac_cv_sizeof_char=`cat conftestval`
1912 else
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 rm -fr conftest*
1916 ac_cv_sizeof_char=0
1917 fi
1918 rm -fr conftest*
1919 fi
1920
1921 fi
1922 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1923 cat >> confdefs.h <<EOF
1924 #define SIZEOF_CHAR $ac_cv_sizeof_char
1925 EOF
1926
1927
1928 echo $ac_n "checking size of short""... $ac_c" 1>&6
1929 echo "configure:1930: checking size of short" >&5
1930 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 if test "$cross_compiling" = yes; then
1934 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1935 else
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 #include <stdio.h>
1940 main()
1941 {
1942 FILE *f=fopen("conftestval", "w");
1943 if (!f) exit(1);
1944 fprintf(f, "%d\n", sizeof(short));
1945 exit(0);
1946 }
1947 EOF
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1949 then
1950 ac_cv_sizeof_short=`cat conftestval`
1951 else
1952 echo "configure: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1954 rm -fr conftest*
1955 ac_cv_sizeof_short=0
1956 fi
1957 rm -fr conftest*
1958 fi
1959
1960 fi
1961 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1962 cat >> confdefs.h <<EOF
1963 #define SIZEOF_SHORT $ac_cv_sizeof_short
1964 EOF
1965
1966
1967 echo $ac_n "checking size of float""... $ac_c" 1>&6
1968 echo "configure:1969: checking size of float" >&5
1969 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1971 else
1972 if test "$cross_compiling" = yes; then
1973 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1974 else
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1978 #include <stdio.h>
1979 main()
1980 {
1981 FILE *f=fopen("conftestval", "w");
1982 if (!f) exit(1);
1983 fprintf(f, "%d\n", sizeof(float));
1984 exit(0);
1985 }
1986 EOF
1987 if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1988 then
1989 ac_cv_sizeof_float=`cat conftestval`
1990 else
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1993 rm -fr conftest*
1994 ac_cv_sizeof_float=0
1995 fi
1996 rm -fr conftest*
1997 fi
1998
1999 fi
2000 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2001 cat >> confdefs.h <<EOF
2002 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2003 EOF
2004
2005
2006 echo $ac_n "checking size of double""... $ac_c" 1>&6
2007 echo "configure:2008: checking size of double" >&5
2008 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011 if test "$cross_compiling" = yes; then
2012 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2013 else
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 #include <stdio.h>
2018 main()
2019 {
2020 FILE *f=fopen("conftestval", "w");
2021 if (!f) exit(1);
2022 fprintf(f, "%d\n", sizeof(double));
2023 exit(0);
2024 }
2025 EOF
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2027 then
2028 ac_cv_sizeof_double=`cat conftestval`
2029 else
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -fr conftest*
2033 ac_cv_sizeof_double=0
2034 fi
2035 rm -fr conftest*
2036 fi
2037
2038 fi
2039 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2040 cat >> confdefs.h <<EOF
2041 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2042 EOF
2043
2044
2045
2046 # various header files
2047 for ac_hdr in arpa/inet.h
2048 do
2049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_hdr" >&5
2052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2054 else
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 #include <$ac_hdr>
2059 EOF
2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then
2064 rm -rf conftest*
2065 eval "ac_cv_header_$ac_safe=yes"
2066 else
2067 echo "$ac_err" >&5
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 rm -rf conftest*
2071 eval "ac_cv_header_$ac_safe=no"
2072 fi
2073 rm -f conftest*
2074 fi
2075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2078 cat >> confdefs.h <<EOF
2079 #define $ac_tr_hdr 1
2080 EOF
2081
2082 else
2083 echo "$ac_t""no" 1>&6
2084 fi
2085 done
2086
2087 for ac_hdr in netinet/ip.h
2088 do
2089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2091 echo "configure:2092: checking for $ac_hdr" >&5
2092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #include <$ac_hdr>
2099 EOF
2100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2101 { (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2103 if test -z "$ac_err"; then
2104 rm -rf conftest*
2105 eval "ac_cv_header_$ac_safe=yes"
2106 else
2107 echo "$ac_err" >&5
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2110 rm -rf conftest*
2111 eval "ac_cv_header_$ac_safe=no"
2112 fi
2113 rm -f conftest*
2114 fi
2115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2116 echo "$ac_t""yes" 1>&6
2117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2118 cat >> confdefs.h <<EOF
2119 #define $ac_tr_hdr 1
2120 EOF
2121
2122 else
2123 echo "$ac_t""no" 1>&6
2124 fi
2125 done
2126
2127
2128 # poll if possible
2129 for ac_hdr in sys/poll.h
2130 do
2131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_hdr" >&5
2134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 #include <$ac_hdr>
2141 EOF
2142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2143 { (eval echo configure:2144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2145 if test -z "$ac_err"; then
2146 rm -rf conftest*
2147 eval "ac_cv_header_$ac_safe=yes"
2148 else
2149 echo "$ac_err" >&5
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 rm -rf conftest*
2153 eval "ac_cv_header_$ac_safe=no"
2154 fi
2155 rm -f conftest*
2156 fi
2157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2160 cat >> confdefs.h <<EOF
2161 #define $ac_tr_hdr 1
2162 EOF
2163
2164 else
2165 echo "$ac_t""no" 1>&6
2166 fi
2167 done
2168
2169 for ac_func in poll
2170 do
2171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_func" >&5
2173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 /* System header to define __stub macros and hopefully few prototypes,
2180 which can conflict with char $ac_func(); below. */
2181 #include <assert.h>
2182 /* Override any gcc2 internal prototype to avoid an error. */
2183 /* We use char because int might match the return type of a gcc2
2184 builtin and then its argument prototype would still apply. */
2185 char $ac_func();
2186
2187 int main() {
2188
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2193 choke me
2194 #else
2195 $ac_func();
2196 #endif
2197
2198 ; return 0; }
2199 EOF
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 rm -rf conftest*
2202 eval "ac_cv_func_$ac_func=yes"
2203 else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2207 eval "ac_cv_func_$ac_func=no"
2208 fi
2209 rm -f conftest*
2210 fi
2211
2212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2215 cat >> confdefs.h <<EOF
2216 #define $ac_tr_func 1
2217 EOF
2218
2219 else
2220 echo "$ac_t""no" 1>&6
2221 fi
2222 done
2223
2224
2225 ZLIB=no
2226 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
2227 echo "configure:2228: checking for inflate in -lz" >&5
2228 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
2229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 ac_save_LIBS="$LIBS"
2233 LIBS="-lz $LIBS"
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2240 char inflate();
2241
2242 int main() {
2243 inflate()
2244 ; return 0; }
2245 EOF
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 rm -rf conftest*
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2249 else
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=no"
2254 fi
2255 rm -f conftest*
2256 LIBS="$ac_save_LIBS"
2257
2258 fi
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ZLIB=yes
2262 else
2263 echo "$ac_t""no" 1>&6
2264 fi
2265
2266 for ac_hdr in zlib.h
2267 do
2268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_hdr" >&5
2271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273 else
2274 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2277 #include <$ac_hdr>
2278 EOF
2279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2280 { (eval echo configure:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2282 if test -z "$ac_err"; then
2283 rm -rf conftest*
2284 eval "ac_cv_header_$ac_safe=yes"
2285 else
2286 echo "$ac_err" >&5
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2289 rm -rf conftest*
2290 eval "ac_cv_header_$ac_safe=no"
2291 fi
2292 rm -f conftest*
2293 fi
2294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2297 cat >> confdefs.h <<EOF
2298 #define $ac_tr_hdr 1
2299 EOF
2300
2301 else
2302 echo "$ac_t""no" 1>&6
2303 ZLIB=no
2304 fi
2305 done
2306
2307
2308 # On linux plaforms, we will have to check that includes from kernel are
2309 # available.
2310 case $host in
2311 *linux*)
2312 for ac_hdr in linux/limits.h
2313 do
2314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <$ac_hdr>
2324 EOF
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2329 rm -rf conftest*
2330 eval "ac_cv_header_$ac_safe=yes"
2331 else
2332 echo "$ac_err" >&5
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2335 rm -rf conftest*
2336 eval "ac_cv_header_$ac_safe=no"
2337 fi
2338 rm -f conftest*
2339 fi
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h <<EOF
2344 #define $ac_tr_hdr 1
2345 EOF
2346
2347 else
2348 echo "$ac_t""no" 1>&6
2349 OLD_CPPFLAGS=$CPPFLAGS
2350 CPPFLAGS="-I /usr/src/linux/include"
2351 ac_safe=`echo "linux/types.h" | sed 'y%./+-%__p_%'`
2352 echo $ac_n "checking for linux/types.h""... $ac_c" 1>&6
2353 echo "configure:2354: checking for linux/types.h" >&5
2354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356 else
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <linux/types.h>
2361 EOF
2362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2363 { (eval echo configure:2364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2365 if test -z "$ac_err"; then
2366 rm -rf conftest*
2367 eval "ac_cv_header_$ac_safe=yes"
2368 else
2369 echo "$ac_err" >&5
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_header_$ac_safe=no"
2374 fi
2375 rm -f conftest*
2376 fi
2377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 CONFIG_INCLUDES="-I /usr/src/linux/include"
2380 else
2381 echo "$ac_t""no" 1>&6
2382 fi
2383
2384 CPPFLAGS=$OLD_CPPFLAGS
2385
2386 fi
2387 done
2388
2389 ;;
2390 *) ;;
2391 esac
2392
2393 echo $ac_n "checking Additionnal includes""... $ac_c" 1>&6
2394 echo "configure:2395: checking Additionnal includes" >&5
2395 echo "$ac_t""$CONFIG_INCLUDES" 1>&6
2396
2397 OCAMLLIB=`$OCAMLC -where`
2398
2399 if test -f $OCAMLLIB/lablgl.cma; then
2400 LABLGL_CMA=lablgl.cma
2401 fi
2402
2403 if test -f $OCAMLLIB/lablgl.cmxa; then
2404 LABLGL_CMXA=lablgl.cmxa
2405 fi
2406
2407 if test "$AUDIO_GALAXY" = "yes" ; then
2408
2409 ac_safe=`echo "../audio_galaxy" | sed 'y%./+-%__p_%'`
2410 echo $ac_n "checking for ../audio_galaxy""... $ac_c" 1>&6
2411 echo "configure:2412: checking for ../audio_galaxy" >&5
2412 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414 else
2415 if test "$cross_compiling" = yes; then
2416 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2417 else
2418 if test -r ../audio_galaxy; then
2419 eval "ac_cv_file_$ac_safe=yes"
2420 else
2421 eval "ac_cv_file_$ac_safe=no"
2422 fi
2423 fi
2424 fi
2425 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 AUDIO_GALAXY=yes
2428 else
2429 echo "$ac_t""no" 1>&6
2430
2431 AUDIO_GALAXY=no
2432 BAD_TARGETS="$BAD_TARGETS audio_galaxy"
2433
2434 fi
2435
2436 else
2437 BAD_TARGETS="$BAD_TARGETS audio_galaxy"
2438 fi
2439
2440 if test "$OPEN_NAPSTER" = "yes" ; then
2441
2442 ac_safe=`echo "../opennap" | sed 'y%./+-%__p_%'`
2443 echo $ac_n "checking for ../opennap""... $ac_c" 1>&6
2444 echo "configure:2445: checking for ../opennap" >&5
2445 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2448 if test "$cross_compiling" = yes; then
2449 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2450 else
2451 if test -r ../opennap; then
2452 eval "ac_cv_file_$ac_safe=yes"
2453 else
2454 eval "ac_cv_file_$ac_safe=no"
2455 fi
2456 fi
2457 fi
2458 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 OPEN_NAPSTER=yes
2461 else
2462 echo "$ac_t""no" 1>&6
2463
2464 OPEN_NAPSTER=no
2465 BAD_TARGETS="$BAD_TARGETS open_napster"
2466
2467 fi
2468
2469 else
2470 BAD_TARGETS="$BAD_TARGETS open_napster"
2471 fi
2472
2473 if test "$DIRECT_CONNECT" = "yes" ; then
2474
2475 ac_safe=`echo "../direct_connect" | sed 'y%./+-%__p_%'`
2476 echo $ac_n "checking for ../direct_connect""... $ac_c" 1>&6
2477 echo "configure:2478: checking for ../direct_connect" >&5
2478 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 if test "$cross_compiling" = yes; then
2482 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2483 else
2484 if test -r ../direct_connect; then
2485 eval "ac_cv_file_$ac_safe=yes"
2486 else
2487 eval "ac_cv_file_$ac_safe=no"
2488 fi
2489 fi
2490 fi
2491 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2492 echo "$ac_t""yes" 1>&6
2493 DIRECT_CONNECT=yes
2494 else
2495 echo "$ac_t""no" 1>&6
2496
2497 DIRECT_CONNECT=no
2498 BAD_TARGETS="$BAD_TARGETS direct_connect"
2499
2500 fi
2501
2502 else
2503 BAD_TARGETS="$BAD_TARGETS direct_connect"
2504 fi
2505
2506 if test "$LIMEWIRE" = "yes" ; then
2507
2508 ac_safe=`echo "../limewire" | sed 'y%./+-%__p_%'`
2509 echo $ac_n "checking for ../limewire""... $ac_c" 1>&6
2510 echo "configure:2511: checking for ../limewire" >&5
2511 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 if test "$cross_compiling" = yes; then
2515 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2516 else
2517 if test -r ../limewire; then
2518 eval "ac_cv_file_$ac_safe=yes"
2519 else
2520 eval "ac_cv_file_$ac_safe=no"
2521 fi
2522 fi
2523 fi
2524 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 LIMEWIRE=yes
2527 else
2528 echo "$ac_t""no" 1>&6
2529
2530 LIMEWIRE=no
2531 BAD_TARGETS="$BAD_TARGETS limewire"
2532
2533 fi
2534
2535 else
2536 BAD_TARGETS="$BAD_TARGETS limewire"
2537 fi
2538
2539 if test "$SOULSEEK" = "yes" && test "$ZLIB" = "yes"; then
2540
2541 ac_safe=`echo "../soulseek" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for ../soulseek""... $ac_c" 1>&6
2543 echo "configure:2544: checking for ../soulseek" >&5
2544 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 if test "$cross_compiling" = yes; then
2548 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2549 else
2550 if test -r ../soulseek; then
2551 eval "ac_cv_file_$ac_safe=yes"
2552 else
2553 eval "ac_cv_file_$ac_safe=no"
2554 fi
2555 fi
2556 fi
2557 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 SOULSEEK=yes
2560 else
2561 echo "$ac_t""no" 1>&6
2562
2563 SOULSEEK=no
2564 BAD_TARGETS="$BAD_TARGETS soulseek"
2565
2566 fi
2567
2568 else
2569 SOULSEEK=no
2570 BAD_TARGETS="$BAD_TARGETS soulseek"
2571 fi
2572
2573 if test "$OPENFT" = "yes" ; then
2574
2575 ac_safe=`echo "../openFT" | sed 'y%./+-%__p_%'`
2576 echo $ac_n "checking for ../openFT""... $ac_c" 1>&6
2577 echo "configure:2578: checking for ../openFT" >&5
2578 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2581 if test "$cross_compiling" = yes; then
2582 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2583 else
2584 if test -r ../openFT; then
2585 eval "ac_cv_file_$ac_safe=yes"
2586 else
2587 eval "ac_cv_file_$ac_safe=no"
2588 fi
2589 fi
2590 fi
2591 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 OPENFT=yes
2594 else
2595 echo "$ac_t""no" 1>&6
2596
2597 OPENFT=no
2598 BAD_TARGETS="$BAD_TARGETS openFT"
2599
2600 fi
2601
2602 else
2603 BAD_TARGETS="$BAD_TARGETS openFT"
2604 fi
2605
2606 if test "$CYMES" = "yes" ; then
2607
2608 ac_safe=`echo "../cymes" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for ../cymes""... $ac_c" 1>&6
2610 echo "configure:2611: checking for ../cymes" >&5
2611 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 if test "$cross_compiling" = yes; then
2615 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2616 else
2617 if test -r ../cymes; then
2618 eval "ac_cv_file_$ac_safe=yes"
2619 else
2620 eval "ac_cv_file_$ac_safe=no"
2621 fi
2622 fi
2623 fi
2624 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2625 echo "$ac_t""yes" 1>&6
2626 CYMES=yes
2627 else
2628 echo "$ac_t""no" 1>&6
2629
2630 CYMES=no
2631 BAD_TARGETS="$BAD_TARGETS cymes"
2632
2633 fi
2634
2635 else
2636 BAD_TARGETS="$BAD_TARGETS cymes"
2637 fi
2638
2639 if test "$DONKEY" = "yes" ; then
2640
2641
2642 ac_safe=`echo "../donkey" | sed 'y%./+-%__p_%'`
2643 echo $ac_n "checking for ../donkey""... $ac_c" 1>&6
2644 echo "configure:2645: checking for ../donkey" >&5
2645 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647 else
2648 if test "$cross_compiling" = yes; then
2649 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2650 else
2651 if test -r ../donkey; then
2652 eval "ac_cv_file_$ac_safe=yes"
2653 else
2654 eval "ac_cv_file_$ac_safe=no"
2655 fi
2656 fi
2657 fi
2658 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2660
2661 DONKEY=yes
2662
2663 ac_safe=`echo "../server" | sed 'y%./+-%__p_%'`
2664 echo $ac_n "checking for ../server""... $ac_c" 1>&6
2665 echo "configure:2666: checking for ../server" >&5
2666 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668 else
2669 if test "$cross_compiling" = yes; then
2670 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
2671 else
2672 if test -r ../server; then
2673 eval "ac_cv_file_$ac_safe=yes"
2674 else
2675 eval "ac_cv_file_$ac_safe=no"
2676 fi
2677 fi
2678 fi
2679 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 DONKEY_SERVER=yes
2682 else
2683 echo "$ac_t""no" 1>&6
2684
2685 DONKEY_SERVER=no
2686 BAD_TARGETS="$BAD_TARGETS donkey_server"
2687
2688 fi
2689
2690
2691 else
2692 echo "$ac_t""no" 1>&6
2693
2694 DONKEY=no
2695 DONKEY_SERVER=no
2696 BAD_TARGETS="$BAD_TARGETS donkey_server donkey_client"
2697
2698 fi
2699
2700
2701 else
2702 BAD_TARGETS="$BAD_TARGETS donkey_server donkey_client"
2703 fi
2704
2705 # Extract the first word of "gtk-config", so it can be a program name with args.
2706 set dummy gtk-config; ac_word=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_prog_GTK_CONFIG'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2711 else
2712 if test -n "$GTK_CONFIG"; then
2713 ac_cv_prog_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test.
2714 else
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2716 ac_dummy="$PATH"
2717 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if test -f $ac_dir/$ac_word; then
2720 ac_cv_prog_GTK_CONFIG="gtk-config"
2721 break
2722 fi
2723 done
2724 IFS="$ac_save_ifs"
2725 test -z "$ac_cv_prog_GTK_CONFIG" && ac_cv_prog_GTK_CONFIG="no"
2726 fi
2727 fi
2728 GTK_CONFIG="$ac_cv_prog_GTK_CONFIG"
2729 if test -n "$GTK_CONFIG"; then
2730 echo "$ac_t""$GTK_CONFIG" 1>&6
2731 else
2732 echo "$ac_t""no" 1>&6
2733 fi
2734
2735 if test "$GTK_CONFIG" = "no"; then
2736 LABLGTK_CONFIG=no
2737 else
2738 echo $ac_n "checking Checking for native code lablgtk""... $ac_c" 1>&6
2739 echo "configure:2740: checking Checking for native code lablgtk" >&5
2740 if test -f `$OCAMLC -where`/lablgtk/lablgtk.cmxa; then
2741 echo "$ac_t""yes" 1>&6
2742 LABLGTK_CONFIG=yes
2743 else
2744 echo "$ac_t""no" 1>&6
2745 LABLGTK_CONFIG=no
2746 if test -f `$OCAMLC -where`/lablgtk/lablgtk.cma; then
2747 echo "--------------------------------"
2748 echo "Lablgtk is not installed properly. See the INSTALL.txt"
2749 echo "file of mldonkey to see how to compile lablgtk. You"
2750 echo "probably forgot to call 'make opt' before 'make install'."
2751 echo "--------------------------------"
2752 else
2753 echo "Do you want this script to try to download and install lablgtk"
2754 echo "LOCALLY in mldonkey directory ?"
2755 if test "$BATCH" = "no"; then read i; else i=yes; fi
2756 case "$i" in
2757 y* | Y*)
2758
2759 cd $PATCH_DIR
2760 rm -rf lablgtk-"$REQUIRED_LABLGTK"
2761 if test ! -f lablgtk-"$REQUIRED_LABLGTK".tar.gz; then
2762 echo Downloading ...
2763 $WGET http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgtk-"$REQUIRED_LABLGTK".tar.gz
2764 fi
2765 if test ! -f lablgtk-"$REQUIRED_LABLGTK".tar.gz; then exit 1; fi
2766
2767 mkdir -p $BUILD_DIR
2768 cd $BUILD_DIR
2769 echo Uncompressing ...
2770 gzip -cd $PATCH_DIR/lablgtk-"$REQUIRED_LABLGTK".tar.gz | tar xf -
2771 (cd lablgtk-"$REQUIRED_LABLGTK"
2772 PATH=$OCAML_PATH:$PATH
2773 export PATH
2774 echo $PATH
2775 $GNU_MAKE configure
2776 $GNU_MAKE
2777 $GNU_MAKE opt
2778 $GNU_MAKE install
2779 cd ..
2780 rm -rf lablgtk-"$REQUIRED_LABLGTK"
2781 )
2782 cd $CONFIG_DIR
2783 if test -f `$OCAMLC -where`/lablgtk/lablgtk.cmxa; then
2784 LABLGTK_CONFIG=yes
2785 else
2786 echo "Installation of lablgtk failed"
2787 LABLGTK_CONFIG=no
2788 fi
2789 ;;
2790 *);;
2791 esac
2792 fi
2793 fi
2794 fi
2795
2796 echo $ac_n "checking compile GTK GUI""... $ac_c" 1>&6
2797 echo "configure:2798: checking compile GTK GUI" >&5
2798 if test "$LABLGTK_CONFIG" = "no"; then
2799 echo "$ac_t""no" 1>&6
2800 BAD_TARGETS="$BAD_TARGETS mldonkey_gui\$(EXE) mldonkey_gui2\$(EXE) mlchat\$(EXE)"
2801 COMPILE_GUI=no
2802 RELEASENAME="$RELEASENAME-nogui"
2803 else
2804 MORE_TARGETS="$MORE_TARGETS mldonkey_gui\$(EXE) mldonkey_gui2\$(EXE) mlchat\$(EXE)"
2805 GTK_LIBS=`$GTK_CONFIG --libs`
2806 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2807 GTK_VERSION=`$GTK_CONFIG --version`
2808 COMPILE_GUI=yes
2809 echo "$ac_t""yes" 1>&6
2810 fi
2811
2812 case "`uname -s`" in
2813 *win32* | *WIN32*) CURRENT_DIR="";;
2814 *) CURRENT_DIR="./";;
2815 esac
2816
2817 echo $host
2818
2819 case "$host" in
2820 alpha*-*-osf*) arch=alpha; system=digital;;
2821 alpha*-*-linux*) arch=alpha; system=linux;;
2822 alpha*-*-freebsd*) arch=alpha; system=freebsd;;
2823 alpha*-*-netbsd*) arch=alpha; system=netbsd;;
2824 alpha*-*-openbsd*) arch=alpha; system=openbsd;;
2825 sparc-*-sunos4.*) arch=sparc; system=sunos;;
2826 sparc-*-solaris2.*) arch=sparc; system=solaris;;
2827 sparc-*-*bsd*) arch=sparc; system=bsd;;
2828 sparc-*-linux*) arch=sparc; system=linux;;
2829 i?86-*-linux*) arch=i386; system=linux;;
2830 i?86-*-*bsd*) arch=i386; system=bsd;;
2831 i?86-*-nextstep*) arch=i386; system=nextstep;;
2832 i?86-*-solaris*) arch=i386; system=solaris;;
2833 i?86-*-beos*) arch=i386; system=beos;;
2834 i?86-*-cygwin*) arch=i386; system=cygwin;;
2835 mips-*-irix6*) arch=mips; system=irix;;
2836 hppa1.1-*-hpux*) arch=hppa; system=hpux;;
2837 hppa1.1-*-nextstep*) arch=hppa; system=nextstep;;
2838 rs6000-*-aix*) arch=power; model=rs6000; system=aix;;
2839 powerpc-*-aix*) arch=power; model=ppc; system=aix;;
2840 powerpc-*-linux*) arch=power; model=ppc; system=elf;;
2841 powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
2842 powerpc-*-darwin*) arch=power; model=ppc; system=rhapsody
2843 case `uname -r` in
2844 6.0) CHECKBOUNDS=true;;
2845 esac
2846 ;;
2847 arm*-*-linux*) arch=arm; system=linux;;
2848 ia64-*-linux*) arch=ia64; system=linux;;
2849 esac
2850
2851 # Extract the first word of "bzip2", so it can be a program name with args.
2852 set dummy bzip2; ac_word=$2
2853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_word" >&5
2855 if eval "test \"`echo '$''{'ac_cv_prog_COMPRESS'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858 if test -n "$COMPRESS"; then
2859 ac_cv_prog_COMPRESS="$COMPRESS" # Let the user override the test.
2860 else
2861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2862 ac_dummy="$PATH"
2863 for ac_dir in $ac_dummy; do
2864 test -z "$ac_dir" && ac_dir=.
2865 if test -f $ac_dir/$ac_word; then
2866 ac_cv_prog_COMPRESS="bzip2"
2867 break
2868 fi
2869 done
2870 IFS="$ac_save_ifs"
2871 fi
2872 fi
2873 COMPRESS="$ac_cv_prog_COMPRESS"
2874 if test -n "$COMPRESS"; then
2875 echo "$ac_t""$COMPRESS" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880 # Extract the first word of "gzip", so it can be a program name with args.
2881 set dummy gzip; ac_word=$2
2882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2883 echo "configure:2884: checking for $ac_word" >&5
2884 if eval "test \"`echo '$''{'ac_cv_prog_COMPRESS'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2886 else
2887 if test -n "$COMPRESS"; then
2888 ac_cv_prog_COMPRESS="$COMPRESS" # Let the user override the test.
2889 else
2890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2891 ac_dummy="$PATH"
2892 for ac_dir in $ac_dummy; do
2893 test -z "$ac_dir" && ac_dir=.
2894 if test -f $ac_dir/$ac_word; then
2895 ac_cv_prog_COMPRESS="gzip"
2896 break
2897 fi
2898 done
2899 IFS="$ac_save_ifs"
2900 fi
2901 fi
2902 COMPRESS="$ac_cv_prog_COMPRESS"
2903 if test -n "$COMPRESS"; then
2904 echo "$ac_t""$COMPRESS" 1>&6
2905 else
2906 echo "$ac_t""no" 1>&6
2907 fi
2908
2909
2910 if test "$ac_cv_prog_COMPRESS" = "bzip2"; then
2911 COMPRESS_EXT=bz2
2912 else
2913 COMPRESS_EXT=gz
2914 fi
2915
2916
2917 MD4ARCH=$arch
2918 case $host in
2919 i386-pc-linux*) MD4COMP=as; MD4ARCH=i386;;
2920 i486-pc-linux*) MD4COMP=as; MD4ARCH=i486;;
2921 i586-pc-linux*) MD4COMP=as; MD4ARCH=i586;;
2922 i686-pc-linux*) MD4COMP=as; MD4ARCH=i686;;
2923 *) MD4COMP=cc;;
2924 esac
2925
2926 ARCH=$arch
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970 AUTOCONF=../lib/autoconf.ml
2971 trap '' 1 2 15
2972 cat > confcache <<\EOF
2973 # This file is a shell script that caches the results of configure
2974 # tests run on this system so they can be shared between configure
2975 # scripts and configure runs. It is not useful on other systems.
2976 # If it contains results you don't want to keep, you may remove or edit it.
2977 #
2978 # By default, configure uses ./config.cache as the cache file,
2979 # creating it if it does not exist already. You can give configure
2980 # the --cache-file=FILE option to use a different cache file; that is
2981 # what configure does when it calls configure scripts in
2982 # subdirectories, so they share the cache.
2983 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2984 # config.status only pays attention to the cache file if you give it the
2985 # --recheck option to rerun configure.
2986 #
2987 EOF
2988 # The following way of writing the cache mishandles newlines in values,
2989 # but we know of no workaround that is simple, portable, and efficient.
2990 # So, don't put newlines in cache variables' values.
2991 # Ultrix sh set writes to stderr and can't be redirected directly,
2992 # and sets the high bit in the cache file unless we assign to the vars.
2993 (set) 2>&1 |
2994 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2995 *ac_space=\ *)
2996 # `set' does not quote correctly, so add quotes (double-quote substitution
2997 # turns \\\\ into \\, and sed turns \\ into \).
2998 sed -n \
2999 -e "s/'/'\\\\''/g" \
3000 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3001 ;;
3002 *)
3003 # `set' quotes correctly as required by POSIX, so do not add quotes.
3004 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3005 ;;
3006 esac >> confcache
3007 if cmp -s $cache_file confcache; then
3008 :
3009 else
3010 if test -w $cache_file; then
3011 echo "updating cache $cache_file"
3012 cat confcache > $cache_file
3013 else
3014 echo "not updating unwritable cache $cache_file"
3015 fi
3016 fi
3017 rm -f confcache
3018
3019 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3020
3021 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3022 # Let make expand exec_prefix.
3023 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3024
3025 # Any assignment to VPATH causes Sun make to only execute
3026 # the first set of double-colon rules, so remove it if not needed.
3027 # If there is a colon in the path, we need to keep it.
3028 if test "x$srcdir" = x.; then
3029 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3030 fi
3031
3032 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3033
3034 DEFS=-DHAVE_CONFIG_H
3035
3036 # Without the "./", some shells look in PATH for config.status.
3037 : ${CONFIG_STATUS=./config.status}
3038
3039 echo creating $CONFIG_STATUS
3040 rm -f $CONFIG_STATUS
3041 cat > $CONFIG_STATUS <<EOF
3042 #! /bin/sh
3043 # Generated automatically by configure.
3044 # Run this file to recreate the current configuration.
3045 # This directory was configured as follows,
3046 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3047 #
3048 # $0 $ac_configure_args
3049 #
3050 # Compiler output produced by configure, useful for debugging
3051 # configure, is in ./config.log if it exists.
3052
3053 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3054 for ac_option
3055 do
3056 case "\$ac_option" in
3057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3058 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3059 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3060 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3061 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3062 exit 0 ;;
3063 -help | --help | --hel | --he | --h)
3064 echo "\$ac_cs_usage"; exit 0 ;;
3065 *) echo "\$ac_cs_usage"; exit 1 ;;
3066 esac
3067 done
3068
3069 ac_given_srcdir=$srcdir
3070
3071 trap 'rm -fr `echo "Makefile.config $AUTOCONF.new config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3072 EOF
3073 cat >> $CONFIG_STATUS <<EOF
3074
3075 # Protect against being on the right side of a sed subst in config.status.
3076 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3077 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3078 $ac_vpsub
3079 $extrasub
3080 s%@SHELL@%$SHELL%g
3081 s%@CFLAGS@%$CFLAGS%g
3082 s%@CPPFLAGS@%$CPPFLAGS%g
3083 s%@CXXFLAGS@%$CXXFLAGS%g
3084 s%@FFLAGS@%$FFLAGS%g
3085 s%@DEFS@%$DEFS%g
3086 s%@LDFLAGS@%$LDFLAGS%g
3087 s%@LIBS@%$LIBS%g
3088 s%@exec_prefix@%$exec_prefix%g
3089 s%@prefix@%$prefix%g
3090 s%@program_transform_name@%$program_transform_name%g
3091 s%@bindir@%$bindir%g
3092 s%@sbindir@%$sbindir%g
3093 s%@libexecdir@%$libexecdir%g
3094 s%@datadir@%$datadir%g
3095 s%@sysconfdir@%$sysconfdir%g
3096 s%@sharedstatedir@%$sharedstatedir%g
3097 s%@localstatedir@%$localstatedir%g
3098 s%@libdir@%$libdir%g
3099 s%@includedir@%$includedir%g
3100 s%@oldincludedir@%$oldincludedir%g
3101 s%@infodir@%$infodir%g
3102 s%@mandir@%$mandir%g
3103 s%@host@%$host%g
3104 s%@host_alias@%$host_alias%g
3105 s%@host_cpu@%$host_cpu%g
3106 s%@host_vendor@%$host_vendor%g
3107 s%@host_os@%$host_os%g
3108 s%@CC@%$CC%g
3109 s%@EXEEXT@%$EXEEXT%g
3110 s%@CPP@%$CPP%g
3111 s%@RANLIB@%$RANLIB%g
3112 s%@GNU_MAKE@%$GNU_MAKE%g
3113 s%@OCAMLC@%$OCAMLC%g
3114 s%@WGET@%$WGET%g
3115 s%@OCAMLOPT@%$OCAMLOPT%g
3116 s%@OCAMLDEP@%$OCAMLDEP%g
3117 s%@OCAMLLEX@%$OCAMLLEX%g
3118 s%@OCAMLYACC@%$OCAMLYACC%g
3119 s%@OCAMLMKTOP@%$OCAMLMKTOP%g
3120 s%@CAMLP4@%$CAMLP4%g
3121 s%@PERL@%$PERL%g
3122 s%@GTK_CONFIG@%$GTK_CONFIG%g
3123 s%@COMPRESS@%$COMPRESS%g
3124 s%@MORE_TARGETS@%$MORE_TARGETS%g
3125 s%@MORE_SUBDIRS@%$MORE_SUBDIRS%g
3126 s%@LABLGL_CMA@%$LABLGL_CMA%g
3127 s%@LABLGL_CMXA@%$LABLGL_CMXA%g
3128 s%@CONFIG_INCLUDES@%$CONFIG_INCLUDES%g
3129 s%@CURRENT_DIR@%$CURRENT_DIR%g
3130 s%@MD4ARCH@%$MD4ARCH%g
3131 s%@MD4COMP@%$MD4COMP%g
3132 s%@ZLIB@%$ZLIB%g
3133 s%@AUDIO_GALAXY@%$AUDIO_GALAXY%g
3134 s%@OPEN_NAPSTER@%$OPEN_NAPSTER%g
3135 s%@DIRECT_CONNECT@%$DIRECT_CONNECT%g
3136 s%@LIMEWIRE@%$LIMEWIRE%g
3137 s%@SOULSEEK@%$SOULSEEK%g
3138 s%@OPENFT@%$OPENFT%g
3139 s%@DONKEY@%$DONKEY%g
3140 s%@OPEN_DONKEY@%$OPEN_DONKEY%g
3141 s%@DONKEY_SERVER@%$DONKEY_SERVER%g
3142 s%@CYMES@%$CYMES%g
3143 s%@OCAMLOPT_DIL@%$OCAMLOPT_DIL%g
3144 s%@COMPILE_GUI@%$COMPILE_GUI%g
3145 s%@REQUIRED_OCAML@%$REQUIRED_OCAML%g
3146 s%@REQUIRED_LABLGTK@%$REQUIRED_LABLGTK%g
3147 s%@ARCH@%$ARCH%g
3148 s%@PATCHED_OCAMLOPT@%$PATCHED_OCAMLOPT%g
3149 s%@COMPRESS_EXT@%$COMPRESS_EXT%g
3150 s%@RELEASENAME@%$RELEASENAME%g
3151 s%@CHECKBOUNDS@%$CHECKBOUNDS%g
3152 s%@CURRENT_VERSION@%$CURRENT_VERSION%g
3153
3154 CEOF
3155 EOF
3156
3157 cat >> $CONFIG_STATUS <<\EOF
3158
3159 # Split the substitutions into bite-sized pieces for seds with
3160 # small command number limits, like on Digital OSF/1 and HP-UX.
3161 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3162 ac_file=1 # Number of current file.
3163 ac_beg=1 # First line for current file.
3164 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3165 ac_more_lines=:
3166 ac_sed_cmds=""
3167 while $ac_more_lines; do
3168 if test $ac_beg -gt 1; then
3169 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3170 else
3171 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3172 fi
3173 if test ! -s conftest.s$ac_file; then
3174 ac_more_lines=false
3175 rm -f conftest.s$ac_file
3176 else
3177 if test -z "$ac_sed_cmds"; then
3178 ac_sed_cmds="sed -f conftest.s$ac_file"
3179 else
3180 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3181 fi
3182 ac_file=`expr $ac_file + 1`
3183 ac_beg=$ac_end
3184 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3185 fi
3186 done
3187 if test -z "$ac_sed_cmds"; then
3188 ac_sed_cmds=cat
3189 fi
3190 EOF
3191
3192 cat >> $CONFIG_STATUS <<EOF
3193
3194 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config $AUTOCONF.new"}
3195 EOF
3196 cat >> $CONFIG_STATUS <<\EOF
3197 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3199 case "$ac_file" in
3200 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3201 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3202 *) ac_file_in="${ac_file}.in" ;;
3203 esac
3204
3205 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3206
3207 # Remove last slash and all that follows it. Not all systems have dirname.
3208 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3210 # The file is in a subdirectory.
3211 test ! -d "$ac_dir" && mkdir "$ac_dir"
3212 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3213 # A "../" for each directory in $ac_dir_suffix.
3214 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3215 else
3216 ac_dir_suffix= ac_dots=
3217 fi
3218
3219 case "$ac_given_srcdir" in
3220 .) srcdir=.
3221 if test -z "$ac_dots"; then top_srcdir=.
3222 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3223 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3224 *) # Relative path.
3225 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3226 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3227 esac
3228
3229
3230 echo creating "$ac_file"
3231 rm -f "$ac_file"
3232 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3233 case "$ac_file" in
3234 *Makefile*) ac_comsub="1i\\
3235 # $configure_input" ;;
3236 *) ac_comsub= ;;
3237 esac
3238
3239 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3240 sed -e "$ac_comsub
3241 s%@configure_input@%$configure_input%g
3242 s%@srcdir@%$srcdir%g
3243 s%@top_srcdir@%$top_srcdir%g
3244 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3245 fi; done
3246 rm -f conftest.s*
3247
3248 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3249 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3250 #
3251 # ac_d sets the value in "#define NAME VALUE" lines.
3252 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3253 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3254 ac_dC='\3'
3255 ac_dD='%g'
3256 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3257 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3258 ac_uB='\([ ]\)%\1#\2define\3'
3259 ac_uC=' '
3260 ac_uD='\4%g'
3261 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3262 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3263 ac_eB='$%\1#\2define\3'
3264 ac_eC=' '
3265 ac_eD='%g'
3266
3267 if test "${CONFIG_HEADERS+set}" != set; then
3268 EOF
3269 cat >> $CONFIG_STATUS <<EOF
3270 CONFIG_HEADERS="config.h"
3271 EOF
3272 cat >> $CONFIG_STATUS <<\EOF
3273 fi
3274 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3276 case "$ac_file" in
3277 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3278 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3279 *) ac_file_in="${ac_file}.in" ;;
3280 esac
3281
3282 echo creating $ac_file
3283
3284 rm -f conftest.frag conftest.in conftest.out
3285 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3286 cat $ac_file_inputs > conftest.in
3287
3288 EOF
3289
3290 # Transform confdefs.h into a sed script conftest.vals that substitutes
3291 # the proper values into config.h.in to produce config.h. And first:
3292 # Protect against being on the right side of a sed subst in config.status.
3293 # Protect against being in an unquoted here document in config.status.
3294 rm -f conftest.vals
3295 cat > conftest.hdr <<\EOF
3296 s/[\\&%]/\\&/g
3297 s%[\\$`]%\\&%g
3298 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3299 s%ac_d%ac_u%gp
3300 s%ac_u%ac_e%gp
3301 EOF
3302 sed -n -f conftest.hdr confdefs.h > conftest.vals
3303 rm -f conftest.hdr
3304
3305 # This sed command replaces #undef with comments. This is necessary, for
3306 # example, in the case of _POSIX_SOURCE, which is predefined and required
3307 # on some systems where configure will not decide to define it.
3308 cat >> conftest.vals <<\EOF
3309 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3310 EOF
3311
3312 # Break up conftest.vals because some shells have a limit on
3313 # the size of here documents, and old seds have small limits too.
3314
3315 rm -f conftest.tail
3316 while :
3317 do
3318 ac_lines=`grep -c . conftest.vals`
3319 # grep -c gives empty output for an empty file on some AIX systems.
3320 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3321 # Write a limited-size here document to conftest.frag.
3322 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3323 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3324 echo 'CEOF
3325 sed -f conftest.frag conftest.in > conftest.out
3326 rm -f conftest.in
3327 mv conftest.out conftest.in
3328 ' >> $CONFIG_STATUS
3329 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3330 rm -f conftest.vals
3331 mv conftest.tail conftest.vals
3332 done
3333 rm -f conftest.vals
3334
3335 cat >> $CONFIG_STATUS <<\EOF
3336 rm -f conftest.frag conftest.h
3337 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3338 cat conftest.in >> conftest.h
3339 rm -f conftest.in
3340 if cmp -s $ac_file conftest.h 2>/dev/null; then
3341 echo "$ac_file is unchanged"
3342 rm -f conftest.h
3343 else
3344 # Remove last slash and all that follows it. Not all systems have dirname.
3345 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3346 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3347 # The file is in a subdirectory.
3348 test ! -d "$ac_dir" && mkdir "$ac_dir"
3349 fi
3350 rm -f $ac_file
3351 mv conftest.h $ac_file
3352 fi
3353 fi; done
3354
3355 EOF
3356 cat >> $CONFIG_STATUS <<EOF
3357
3358 EOF
3359 cat >> $CONFIG_STATUS <<\EOF
3360
3361 exit 0
3362 EOF
3363 chmod +x $CONFIG_STATUS
3364 rm -fr confdefs* $ac_clean_files
3365 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3366
3367 diff $AUTOCONF.new $AUTOCONF 2> /dev/null > /dev/null || cp -f $AUTOCONF.new $AUTOCONF
3368
3369
3370
3371 cd ..
3372 echo "Building dependencies"
3373 $GNU_MAKE depend 2> /dev/null > /dev/null || echo "Building dependencies fails: try: 'make depend' or 'gmake depend'"
3374
3375
3376 echo "The following modules will not be compiled: {" $BAD_TARGETS "}"

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26