diff options
Diffstat (limited to 'xdelta1/configure')
-rwxr-xr-x | xdelta1/configure | 2774 |
1 files changed, 0 insertions, 2774 deletions
diff --git a/xdelta1/configure b/xdelta1/configure deleted file mode 100755 index a66789f..0000000 --- a/xdelta1/configure +++ /dev/null | |||
@@ -1,2774 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # From configure.in configure.in,v 1.2 1998/10/03 00:17:50 jmacd Exp | ||
4 | |||
5 | |||
6 | # Like AC_CONFIG_HEADER, but automatically create stamp file. | ||
7 | |||
8 | |||
9 | |||
10 | # Do all the work for Automake. This macro actually does too much -- | ||
11 | # some checks are only needed if your package does certain things. | ||
12 | # But this isn't really a big deal. | ||
13 | |||
14 | # serial 1 | ||
15 | |||
16 | |||
17 | |||
18 | |||
19 | # | ||
20 | # Check to make sure that the build environment is sane. | ||
21 | # | ||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | # Add --enable-maintainer-mode option to configure. | ||
28 | # From Jim Meyering | ||
29 | |||
30 | # serial 1 | ||
31 | |||
32 | |||
33 | |||
34 | # Define a conditional. | ||
35 | |||
36 | |||
37 | |||
38 | |||
39 | # serial 40 AC_PROG_LIBTOOL | ||
40 | |||
41 | |||
42 | |||
43 | |||
44 | # AC_LIBTOOL_DLOPEN - enable checks for dlopen support | ||
45 | |||
46 | |||
47 | # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's | ||
48 | |||
49 | |||
50 | # AC_ENABLE_SHARED - implement the --enable-shared flag | ||
51 | # Usage: AC_ENABLE_SHARED[(DEFAULT)] | ||
52 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | ||
53 | # `yes'. | ||
54 | |||
55 | |||
56 | # AC_DISABLE_SHARED - set the default shared flag to --disable-shared | ||
57 | |||
58 | |||
59 | # AC_ENABLE_STATIC - implement the --enable-static flag | ||
60 | # Usage: AC_ENABLE_STATIC[(DEFAULT)] | ||
61 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | ||
62 | # `yes'. | ||
63 | |||
64 | |||
65 | # AC_DISABLE_STATIC - set the default static flag to --disable-static | ||
66 | |||
67 | |||
68 | |||
69 | # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag | ||
70 | # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] | ||
71 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | ||
72 | # `yes'. | ||
73 | |||
74 | |||
75 | # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install | ||
76 | |||
77 | |||
78 | # AC_PROG_LD - find the path to the GNU or non-GNU linker | ||
79 | |||
80 | |||
81 | |||
82 | |||
83 | # AC_PROG_NM - find the path to a BSD-compatible name lister | ||
84 | |||
85 | |||
86 | # AC_CHECK_LIBM - check for math library | ||
87 | |||
88 | |||
89 | # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for | ||
90 | # the libltdl convenience library, adds --enable-ltdl-convenience to | ||
91 | # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor | ||
92 | # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed | ||
93 | # to be `${top_builddir}/libltdl'. Make sure you start DIR with | ||
94 | # '${top_builddir}/' (note the single quotes!) if your package is not | ||
95 | # flat, and, if you're not using automake, define top_builddir as | ||
96 | # appropriate in the Makefiles. | ||
97 | |||
98 | |||
99 | # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for | ||
100 | # the libltdl installable library, and adds --enable-ltdl-install to | ||
101 | # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor | ||
102 | # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed | ||
103 | # to be `${top_builddir}/libltdl'. Make sure you start DIR with | ||
104 | # '${top_builddir}/' (note the single quotes!) if your package is not | ||
105 | # flat, and, if you're not using automake, define top_builddir as | ||
106 | # appropriate in the Makefiles. | ||
107 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | ||
108 | |||
109 | |||
110 | |||
111 | |||
112 | # Configure paths for GLIB | ||
113 | # Owen Taylor 97-11-3 | ||
114 | |||
115 | |||
116 | |||
117 | # Guess values for system-dependent variables and create Makefiles. | ||
118 | # Generated automatically using autoconf version 2.13 | ||
119 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | ||
120 | # | ||
121 | # This configure script is free software; the Free Software Foundation | ||
122 | # gives unlimited permission to copy, distribute and modify it. | ||
123 | |||
124 | # Defaults: | ||
125 | ac_help= | ||
126 | ac_default_prefix=/usr/local | ||
127 | # Any additions from configure.in: | ||
128 | ac_help="$ac_help | ||
129 | --enable-maintainer-mode enable make rules and dependencies not useful | ||
130 | (and sometimes confusing) to the casual installer" | ||
131 | ac_help="$ac_help | ||
132 | --enable-debug turn on debugging [default=no]" | ||
133 | ac_help="$ac_help | ||
134 | --enable-profile turn on profiling [default=no]" | ||
135 | ac_help="$ac_help | ||
136 | --enable-shared[=PKGS] build shared libraries [default=yes]" | ||
137 | ac_help="$ac_help | ||
138 | --enable-static[=PKGS] build static libraries [default=yes]" | ||
139 | ac_help="$ac_help | ||
140 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | ||
141 | ac_help="$ac_help | ||
142 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | ||
143 | ac_help="$ac_help | ||
144 | --disable-libtool-lock avoid locking (might break parallel builds)" | ||
145 | ac_help="$ac_help | ||
146 | --with-glib-prefix=PFX Prefix where GLIB is installed (optional)" | ||
147 | ac_help="$ac_help | ||
148 | --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)" | ||
149 | ac_help="$ac_help | ||
150 | --disable-glibtest Do not try to compile and run a test GLIB program" | ||
151 | |||
152 | # Initialize some variables set by options. | ||
153 | # The variables have the same names as the options, with | ||
154 | # dashes changed to underlines. | ||
155 | build=NONE | ||
156 | cache_file=./config.cache | ||
157 | exec_prefix=NONE | ||
158 | host=NONE | ||
159 | no_create= | ||
160 | nonopt=NONE | ||
161 | no_recursion= | ||
162 | prefix=NONE | ||
163 | program_prefix=NONE | ||
164 | program_suffix=NONE | ||
165 | program_transform_name=s,x,x, | ||
166 | silent= | ||
167 | site= | ||
168 | srcdir= | ||
169 | target=NONE | ||
170 | verbose= | ||
171 | x_includes=NONE | ||
172 | x_libraries=NONE | ||
173 | bindir='${exec_prefix}/bin' | ||
174 | sbindir='${exec_prefix}/sbin' | ||
175 | libexecdir='${exec_prefix}/libexec' | ||
176 | datadir='${prefix}/share' | ||
177 | sysconfdir='${prefix}/etc' | ||
178 | sharedstatedir='${prefix}/com' | ||
179 | localstatedir='${prefix}/var' | ||
180 | libdir='${exec_prefix}/lib' | ||
181 | includedir='${prefix}/include' | ||
182 | oldincludedir='/usr/include' | ||
183 | infodir='${prefix}/info' | ||
184 | mandir='${prefix}/man' | ||
185 | |||
186 | # Initialize some other variables. | ||
187 | subdirs= | ||
188 | MFLAGS= MAKEFLAGS= | ||
189 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
190 | # Maximum number of lines to put in a shell here document. | ||
191 | ac_max_here_lines=12 | ||
192 | |||
193 | ac_prev= | ||
194 | for ac_option | ||
195 | do | ||
196 | |||
197 | # If the previous option needs an argument, assign it. | ||
198 | if test -n "$ac_prev"; then | ||
199 | eval "$ac_prev=\$ac_option" | ||
200 | ac_prev= | ||
201 | continue | ||
202 | fi | ||
203 | |||
204 | case "$ac_option" in | ||
205 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
206 | *) ac_optarg= ;; | ||
207 | esac | ||
208 | |||
209 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
210 | |||
211 | case "$ac_option" in | ||
212 | |||
213 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
214 | ac_prev=bindir ;; | ||
215 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
216 | bindir="$ac_optarg" ;; | ||
217 | |||
218 | -build | --build | --buil | --bui | --bu) | ||
219 | ac_prev=build ;; | ||
220 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
221 | build="$ac_optarg" ;; | ||
222 | |||
223 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
224 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
225 | ac_prev=cache_file ;; | ||
226 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
227 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
228 | cache_file="$ac_optarg" ;; | ||
229 | |||
230 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
231 | ac_prev=datadir ;; | ||
232 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
233 | | --da=*) | ||
234 | datadir="$ac_optarg" ;; | ||
235 | |||
236 | -disable-* | --disable-*) | ||
237 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | ||
238 | # Reject names that are not valid shell variable names. | ||
239 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
240 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
241 | fi | ||
242 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
243 | eval "enable_${ac_feature}=no" ;; | ||
244 | |||
245 | -enable-* | --enable-*) | ||
246 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | ||
247 | # Reject names that are not valid shell variable names. | ||
248 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
249 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
250 | fi | ||
251 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
252 | case "$ac_option" in | ||
253 | *=*) ;; | ||
254 | *) ac_optarg=yes ;; | ||
255 | esac | ||
256 | eval "enable_${ac_feature}='$ac_optarg'" ;; | ||
257 | |||
258 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
259 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
260 | | --exec | --exe | --ex) | ||
261 | ac_prev=exec_prefix ;; | ||
262 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
263 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
264 | | --exec=* | --exe=* | --ex=*) | ||
265 | exec_prefix="$ac_optarg" ;; | ||
266 | |||
267 | -gas | --gas | --ga | --g) | ||
268 | # Obsolete; use --with-gas. | ||
269 | with_gas=yes ;; | ||
270 | |||
271 | -help | --help | --hel | --he) | ||
272 | # Omit some internal or obsolete options to make the list less imposing. | ||
273 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
274 | cat << EOF | ||
275 | Usage: configure [options] [host] | ||
276 | Options: [defaults in brackets after descriptions] | ||
277 | Configuration: | ||
278 | --cache-file=FILE cache test results in FILE | ||
279 | --help print this message | ||
280 | --no-create do not create output files | ||
281 | --quiet, --silent do not print \`checking...' messages | ||
282 | --version print the version of autoconf that created configure | ||
283 | Directory and file names: | ||
284 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
285 | [$ac_default_prefix] | ||
286 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
287 | [same as prefix] | ||
288 | --bindir=DIR user executables in DIR [EPREFIX/bin] | ||
289 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | ||
290 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | ||
291 | --datadir=DIR read-only architecture-independent data in DIR | ||
292 | [PREFIX/share] | ||
293 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | ||
294 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | ||
295 | [PREFIX/com] | ||
296 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | ||
297 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | ||
298 | --includedir=DIR C header files in DIR [PREFIX/include] | ||
299 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | ||
300 | --infodir=DIR info documentation in DIR [PREFIX/info] | ||
301 | --mandir=DIR man documentation in DIR [PREFIX/man] | ||
302 | --srcdir=DIR find the sources in DIR [configure dir or ..] | ||
303 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
304 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
305 | --program-transform-name=PROGRAM | ||
306 | run sed PROGRAM on installed program names | ||
307 | EOF | ||
308 | cat << EOF | ||
309 | Host type: | ||
310 | --build=BUILD configure for building on BUILD [BUILD=HOST] | ||
311 | --host=HOST configure for HOST [guessed] | ||
312 | --target=TARGET configure for TARGET [TARGET=HOST] | ||
313 | Features and packages: | ||
314 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
315 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
316 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
317 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
318 | --x-includes=DIR X include files are in DIR | ||
319 | --x-libraries=DIR X library files are in DIR | ||
320 | EOF | ||
321 | if test -n "$ac_help"; then | ||
322 | echo "--enable and --with options recognized:$ac_help" | ||
323 | fi | ||
324 | exit 0 ;; | ||
325 | |||
326 | -host | --host | --hos | --ho) | ||
327 | ac_prev=host ;; | ||
328 | -host=* | --host=* | --hos=* | --ho=*) | ||
329 | host="$ac_optarg" ;; | ||
330 | |||
331 | -includedir | --includedir | --includedi | --included | --include \ | ||
332 | | --includ | --inclu | --incl | --inc) | ||
333 | ac_prev=includedir ;; | ||
334 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
335 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
336 | includedir="$ac_optarg" ;; | ||
337 | |||
338 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
339 | ac_prev=infodir ;; | ||
340 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
341 | infodir="$ac_optarg" ;; | ||
342 | |||
343 | -libdir | --libdir | --libdi | --libd) | ||
344 | ac_prev=libdir ;; | ||
345 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
346 | libdir="$ac_optarg" ;; | ||
347 | |||
348 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
349 | | --libexe | --libex | --libe) | ||
350 | ac_prev=libexecdir ;; | ||
351 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
352 | | --libexe=* | --libex=* | --libe=*) | ||
353 | libexecdir="$ac_optarg" ;; | ||
354 | |||
355 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
356 | | --localstate | --localstat | --localsta | --localst \ | ||
357 | | --locals | --local | --loca | --loc | --lo) | ||
358 | ac_prev=localstatedir ;; | ||
359 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
360 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
361 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
362 | localstatedir="$ac_optarg" ;; | ||
363 | |||
364 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
365 | ac_prev=mandir ;; | ||
366 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
367 | mandir="$ac_optarg" ;; | ||
368 | |||
369 | -nfp | --nfp | --nf) | ||
370 | # Obsolete; use --without-fp. | ||
371 | with_fp=no ;; | ||
372 | |||
373 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
374 | | --no-cr | --no-c) | ||
375 | no_create=yes ;; | ||
376 | |||
377 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
378 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
379 | no_recursion=yes ;; | ||
380 | |||
381 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
382 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
383 | | --oldin | --oldi | --old | --ol | --o) | ||
384 | ac_prev=oldincludedir ;; | ||
385 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
386 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
387 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
388 | oldincludedir="$ac_optarg" ;; | ||
389 | |||
390 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
391 | ac_prev=prefix ;; | ||
392 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
393 | prefix="$ac_optarg" ;; | ||
394 | |||
395 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
396 | | --program-pre | --program-pr | --program-p) | ||
397 | ac_prev=program_prefix ;; | ||
398 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
399 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
400 | program_prefix="$ac_optarg" ;; | ||
401 | |||
402 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
403 | | --program-suf | --program-su | --program-s) | ||
404 | ac_prev=program_suffix ;; | ||
405 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
406 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
407 | program_suffix="$ac_optarg" ;; | ||
408 | |||
409 | -program-transform-name | --program-transform-name \ | ||
410 | | --program-transform-nam | --program-transform-na \ | ||
411 | | --program-transform-n | --program-transform- \ | ||
412 | | --program-transform | --program-transfor \ | ||
413 | | --program-transfo | --program-transf \ | ||
414 | | --program-trans | --program-tran \ | ||
415 | | --progr-tra | --program-tr | --program-t) | ||
416 | ac_prev=program_transform_name ;; | ||
417 | -program-transform-name=* | --program-transform-name=* \ | ||
418 | | --program-transform-nam=* | --program-transform-na=* \ | ||
419 | | --program-transform-n=* | --program-transform-=* \ | ||
420 | | --program-transform=* | --program-transfor=* \ | ||
421 | | --program-transfo=* | --program-transf=* \ | ||
422 | | --program-trans=* | --program-tran=* \ | ||
423 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
424 | program_transform_name="$ac_optarg" ;; | ||
425 | |||
426 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
427 | | -silent | --silent | --silen | --sile | --sil) | ||
428 | silent=yes ;; | ||
429 | |||
430 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
431 | ac_prev=sbindir ;; | ||
432 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
433 | | --sbi=* | --sb=*) | ||
434 | sbindir="$ac_optarg" ;; | ||
435 | |||
436 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
437 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
438 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
439 | | --sha | --sh) | ||
440 | ac_prev=sharedstatedir ;; | ||
441 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
442 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
443 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
444 | | --sha=* | --sh=*) | ||
445 | sharedstatedir="$ac_optarg" ;; | ||
446 | |||
447 | -site | --site | --sit) | ||
448 | ac_prev=site ;; | ||
449 | -site=* | --site=* | --sit=*) | ||
450 | site="$ac_optarg" ;; | ||
451 | |||
452 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
453 | ac_prev=srcdir ;; | ||
454 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
455 | srcdir="$ac_optarg" ;; | ||
456 | |||
457 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
458 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
459 | ac_prev=sysconfdir ;; | ||
460 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
461 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
462 | sysconfdir="$ac_optarg" ;; | ||
463 | |||
464 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
465 | ac_prev=target ;; | ||
466 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
467 | target="$ac_optarg" ;; | ||
468 | |||
469 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
470 | verbose=yes ;; | ||
471 | |||
472 | -version | --version | --versio | --versi | --vers) | ||
473 | echo "configure generated by autoconf version 2.13" | ||
474 | exit 0 ;; | ||
475 | |||
476 | -with-* | --with-*) | ||
477 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | ||
478 | # Reject names that are not valid shell variable names. | ||
479 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
480 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
481 | fi | ||
482 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
483 | case "$ac_option" in | ||
484 | *=*) ;; | ||
485 | *) ac_optarg=yes ;; | ||
486 | esac | ||
487 | eval "with_${ac_package}='$ac_optarg'" ;; | ||
488 | |||
489 | -without-* | --without-*) | ||
490 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | ||
491 | # Reject names that are not valid shell variable names. | ||
492 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
493 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
494 | fi | ||
495 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
496 | eval "with_${ac_package}=no" ;; | ||
497 | |||
498 | --x) | ||
499 | # Obsolete; use --with-x. | ||
500 | with_x=yes ;; | ||
501 | |||
502 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
503 | | --x-incl | --x-inc | --x-in | --x-i) | ||
504 | ac_prev=x_includes ;; | ||
505 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
506 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
507 | x_includes="$ac_optarg" ;; | ||
508 | |||
509 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
510 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
511 | ac_prev=x_libraries ;; | ||
512 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
513 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
514 | x_libraries="$ac_optarg" ;; | ||
515 | |||
516 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | ||
517 | ;; | ||
518 | |||
519 | *) | ||
520 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | ||
521 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | ||
522 | fi | ||
523 | if test "x$nonopt" != xNONE; then | ||
524 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | ||
525 | fi | ||
526 | nonopt="$ac_option" | ||
527 | ;; | ||
528 | |||
529 | esac | ||
530 | done | ||
531 | |||
532 | if test -n "$ac_prev"; then | ||
533 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | ||
534 | fi | ||
535 | |||
536 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
537 | |||
538 | # File descriptor usage: | ||
539 | # 0 standard input | ||
540 | # 1 file creation | ||
541 | # 2 errors and warnings | ||
542 | # 3 some systems may open it to /dev/tty | ||
543 | # 4 used on the Kubota Titan | ||
544 | # 6 checking for... messages and results | ||
545 | # 5 compiler messages saved in config.log | ||
546 | if test "$silent" = yes; then | ||
547 | exec 6>/dev/null | ||
548 | else | ||
549 | exec 6>&1 | ||
550 | fi | ||
551 | exec 5>./config.log | ||
552 | |||
553 | echo "\ | ||
554 | This file contains any messages produced by compilers while | ||
555 | running configure, to aid debugging if configure makes a mistake. | ||
556 | " 1>&5 | ||
557 | |||
558 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
559 | # Also quote any args containing shell metacharacters. | ||
560 | ac_configure_args= | ||
561 | for ac_arg | ||
562 | do | ||
563 | case "$ac_arg" in | ||
564 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
565 | | --no-cr | --no-c) ;; | ||
566 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
567 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
568 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | ||
569 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
570 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | ||
571 | esac | ||
572 | done | ||
573 | |||
574 | # NLS nuisances. | ||
575 | # Only set these to C if already set. These must not be set unconditionally | ||
576 | # because not all systems understand e.g. LANG=C (notably SCO). | ||
577 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | ||
578 | # Non-C LC_CTYPE values break the ctype check. | ||
579 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | ||
580 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | ||
581 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | ||
582 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | ||
583 | |||
584 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
585 | rm -rf conftest* confdefs.h | ||
586 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
587 | echo > confdefs.h | ||
588 | |||
589 | # A filename unique to this package, relative to the directory that | ||
590 | # configure is in, which we can look for to find out if srcdir is correct. | ||
591 | ac_unique_file=xdelta.c | ||
592 | |||
593 | # Find the source files, if location was not specified. | ||
594 | if test -z "$srcdir"; then | ||
595 | ac_srcdir_defaulted=yes | ||
596 | # Try the directory containing this script, then its parent. | ||
597 | ac_prog=$0 | ||
598 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | ||
599 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
600 | srcdir=$ac_confdir | ||
601 | if test ! -r $srcdir/$ac_unique_file; then | ||
602 | srcdir=.. | ||
603 | fi | ||
604 | else | ||
605 | ac_srcdir_defaulted=no | ||
606 | fi | ||
607 | if test ! -r $srcdir/$ac_unique_file; then | ||
608 | if test "$ac_srcdir_defaulted" = yes; then | ||
609 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | ||
610 | else | ||
611 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | ||
612 | fi | ||
613 | fi | ||
614 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | ||
615 | |||
616 | # Prefer explicitly selected file to automatically selected ones. | ||
617 | if test -z "$CONFIG_SITE"; then | ||
618 | if test "x$prefix" != xNONE; then | ||
619 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
620 | else | ||
621 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
622 | fi | ||
623 | fi | ||
624 | for ac_site_file in $CONFIG_SITE; do | ||
625 | if test -r "$ac_site_file"; then | ||
626 | echo "loading site script $ac_site_file" | ||
627 | . "$ac_site_file" | ||
628 | fi | ||
629 | done | ||
630 | |||
631 | if test -r "$cache_file"; then | ||
632 | echo "loading cache $cache_file" | ||
633 | . $cache_file | ||
634 | else | ||
635 | echo "creating cache $cache_file" | ||
636 | > $cache_file | ||
637 | fi | ||
638 | |||
639 | ac_ext=c | ||
640 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
641 | ac_cpp='$CPP $CPPFLAGS' | ||
642 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
643 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
644 | cross_compiling=$ac_cv_prog_cc_cross | ||
645 | |||
646 | ac_exeext= | ||
647 | ac_objext=o | ||
648 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | ||
649 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | ||
650 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | ||
651 | ac_n= ac_c=' | ||
652 | ' ac_t=' ' | ||
653 | else | ||
654 | ac_n=-n ac_c= ac_t= | ||
655 | fi | ||
656 | else | ||
657 | ac_n= ac_c='\c' ac_t= | ||
658 | fi | ||
659 | |||
660 | |||
661 | |||
662 | |||
663 | |||
664 | |||
665 | ac_aux_dir= | ||
666 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
667 | if test -f $ac_dir/install-sh; then | ||
668 | ac_aux_dir=$ac_dir | ||
669 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
670 | break | ||
671 | elif test -f $ac_dir/install.sh; then | ||
672 | ac_aux_dir=$ac_dir | ||
673 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
674 | break | ||
675 | fi | ||
676 | done | ||
677 | if test -z "$ac_aux_dir"; then | ||
678 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | ||
679 | fi | ||
680 | ac_config_guess=$ac_aux_dir/config.guess | ||
681 | ac_config_sub=$ac_aux_dir/config.sub | ||
682 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | ||
683 | |||
684 | # Find a good install program. We prefer a C program (faster), | ||
685 | # so one script is as good as another. But avoid the broken or | ||
686 | # incompatible versions: | ||
687 | # SysV /etc/install, /usr/sbin/install | ||
688 | # SunOS /usr/etc/install | ||
689 | # IRIX /sbin/install | ||
690 | # AIX /bin/install | ||
691 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
692 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
693 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
694 | # ./install, which can be erroneously created by make from ./install.sh. | ||
695 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | ||
696 | echo "configure:697: checking for a BSD compatible install" >&5 | ||
697 | if test -z "$INSTALL"; then | ||
698 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | ||
699 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
700 | else | ||
701 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | ||
702 | for ac_dir in $PATH; do | ||
703 | # Account for people who put trailing slashes in PATH elements. | ||
704 | case "$ac_dir/" in | ||
705 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | ||
706 | *) | ||
707 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
708 | # Don't use installbsd from OSF since it installs stuff as root | ||
709 | # by default. | ||
710 | for ac_prog in ginstall scoinst install; do | ||
711 | if test -f $ac_dir/$ac_prog; then | ||
712 | if test $ac_prog = install && | ||
713 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | ||
714 | # AIX install. It has an incompatible calling convention. | ||
715 | : | ||
716 | else | ||
717 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
718 | break 2 | ||
719 | fi | ||
720 | fi | ||
721 | done | ||
722 | ;; | ||
723 | esac | ||
724 | done | ||
725 | IFS="$ac_save_IFS" | ||
726 | |||
727 | fi | ||
728 | if test "${ac_cv_path_install+set}" = set; then | ||
729 | INSTALL="$ac_cv_path_install" | ||
730 | else | ||
731 | # As a last resort, use the slow shell script. We don't cache a | ||
732 | # path for INSTALL within a source directory, because that will | ||
733 | # break other packages using the cache if that directory is | ||
734 | # removed, or if the path is relative. | ||
735 | INSTALL="$ac_install_sh" | ||
736 | fi | ||
737 | fi | ||
738 | echo "$ac_t""$INSTALL" 1>&6 | ||
739 | |||
740 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
741 | # It thinks the first close brace ends the variable substitution. | ||
742 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
743 | |||
744 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | ||
745 | |||
746 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
747 | |||
748 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | ||
749 | echo "configure:750: checking whether build environment is sane" >&5 | ||
750 | # Just in case | ||
751 | sleep 1 | ||
752 | echo timestamp > conftestfile | ||
753 | # Do `set' in a subshell so we don't clobber the current shell's | ||
754 | # arguments. Must try -L first in case configure is actually a | ||
755 | # symlink; some systems play weird games with the mod time of symlinks | ||
756 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
757 | # directory). | ||
758 | if ( | ||
759 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | ||
760 | if test "$*" = "X"; then | ||
761 | # -L didn't work. | ||
762 | set X `ls -t $srcdir/configure conftestfile` | ||
763 | fi | ||
764 | if test "$*" != "X $srcdir/configure conftestfile" \ | ||
765 | && test "$*" != "X conftestfile $srcdir/configure"; then | ||
766 | |||
767 | # If neither matched, then we have a broken ls. This can happen | ||
768 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
769 | # broken ls alias from the environment. This has actually | ||
770 | # happened. Such a system could not be considered "sane". | ||
771 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | ||
772 | alias in your environment" 1>&2; exit 1; } | ||
773 | fi | ||
774 | |||
775 | test "$2" = conftestfile | ||
776 | ) | ||
777 | then | ||
778 | # Ok. | ||
779 | : | ||
780 | else | ||
781 | { echo "configure: error: newly created file is older than distributed files! | ||
782 | Check your system clock" 1>&2; exit 1; } | ||
783 | fi | ||
784 | rm -f conftest* | ||
785 | echo "$ac_t""yes" 1>&6 | ||
786 | if test "$program_transform_name" = s,x,x,; then | ||
787 | program_transform_name= | ||
788 | else | ||
789 | # Double any \ or $. echo might interpret backslashes. | ||
790 | cat <<\EOF_SED > conftestsed | ||
791 | s,\\,\\\\,g; s,\$,$$,g | ||
792 | EOF_SED | ||
793 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | ||
794 | rm -f conftestsed | ||
795 | fi | ||
796 | test "$program_prefix" != NONE && | ||
797 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | ||
798 | # Use a double $ so make ignores it. | ||
799 | test "$program_suffix" != NONE && | ||
800 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | ||
801 | |||
802 | # sed with no file args requires a program. | ||
803 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | ||
804 | |||
805 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | ||
806 | echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5 | ||
807 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | ||
808 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | ||
809 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
810 | else | ||
811 | cat > conftestmake <<\EOF | ||
812 | all: | ||
813 | @echo 'ac_maketemp="${MAKE}"' | ||
814 | EOF | ||
815 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
816 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | ||
817 | if test -n "$ac_maketemp"; then | ||
818 | eval ac_cv_prog_make_${ac_make}_set=yes | ||
819 | else | ||
820 | eval ac_cv_prog_make_${ac_make}_set=no | ||
821 | fi | ||
822 | rm -f conftestmake | ||
823 | fi | ||
824 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | ||
825 | echo "$ac_t""yes" 1>&6 | ||
826 | SET_MAKE= | ||
827 | else | ||
828 | echo "$ac_t""no" 1>&6 | ||
829 | SET_MAKE="MAKE=${MAKE-make}" | ||
830 | fi | ||
831 | |||
832 | |||
833 | PACKAGE=xdelta | ||
834 | |||
835 | VERSION=1.1.3 | ||
836 | |||
837 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | ||
838 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | ||
839 | fi | ||
840 | |||
841 | |||
842 | |||
843 | missing_dir=`cd $ac_aux_dir && pwd` | ||
844 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | ||
845 | echo "configure:846: checking for working aclocal" >&5 | ||
846 | # Run test in a subshell; some versions of sh will print an error if | ||
847 | # an executable is not found, even if stderr is redirected. | ||
848 | # Redirect stdin to placate older versions of autoconf. Sigh. | ||
849 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | ||
850 | ACLOCAL=aclocal | ||
851 | echo "$ac_t""found" 1>&6 | ||
852 | else | ||
853 | ACLOCAL="$missing_dir/missing aclocal" | ||
854 | echo "$ac_t""missing" 1>&6 | ||
855 | fi | ||
856 | |||
857 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | ||
858 | echo "configure:859: checking for working autoconf" >&5 | ||
859 | # Run test in a subshell; some versions of sh will print an error if | ||
860 | # an executable is not found, even if stderr is redirected. | ||
861 | # Redirect stdin to placate older versions of autoconf. Sigh. | ||
862 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | ||
863 | AUTOCONF=autoconf | ||
864 | echo "$ac_t""found" 1>&6 | ||
865 | else | ||
866 | AUTOCONF="$missing_dir/missing autoconf" | ||
867 | echo "$ac_t""missing" 1>&6 | ||
868 | fi | ||
869 | |||
870 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | ||
871 | echo "configure:872: checking for working automake" >&5 | ||
872 | # Run test in a subshell; some versions of sh will print an error if | ||
873 | # an executable is not found, even if stderr is redirected. | ||
874 | # Redirect stdin to placate older versions of autoconf. Sigh. | ||
875 | if (automake --version) < /dev/null > /dev/null 2>&1; then | ||
876 | AUTOMAKE=automake | ||
877 | echo "$ac_t""found" 1>&6 | ||
878 | else | ||
879 | AUTOMAKE="$missing_dir/missing automake" | ||
880 | echo "$ac_t""missing" 1>&6 | ||
881 | fi | ||
882 | |||
883 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | ||
884 | echo "configure:885: checking for working autoheader" >&5 | ||
885 | # Run test in a subshell; some versions of sh will print an error if | ||
886 | # an executable is not found, even if stderr is redirected. | ||
887 | # Redirect stdin to placate older versions of autoconf. Sigh. | ||
888 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | ||
889 | AUTOHEADER=autoheader | ||
890 | echo "$ac_t""found" 1>&6 | ||
891 | else | ||
892 | AUTOHEADER="$missing_dir/missing autoheader" | ||
893 | echo "$ac_t""missing" 1>&6 | ||
894 | fi | ||
895 | |||
896 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | ||
897 | echo "configure:898: checking for working makeinfo" >&5 | ||
898 | # Run test in a subshell; some versions of sh will print an error if | ||
899 | # an executable is not found, even if stderr is redirected. | ||
900 | # Redirect stdin to placate older versions of autoconf. Sigh. | ||
901 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | ||
902 | MAKEINFO=makeinfo | ||
903 | echo "$ac_t""found" 1>&6 | ||
904 | else | ||
905 | MAKEINFO="$missing_dir/missing makeinfo" | ||
906 | echo "$ac_t""missing" 1>&6 | ||
907 | fi | ||
908 | |||
909 | |||
910 | |||
911 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | ||
912 | echo "configure:913: checking whether to enable maintainer-specific portions of Makefiles" >&5 | ||
913 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | ||
914 | if test "${enable_maintainer_mode+set}" = set; then | ||
915 | enableval="$enable_maintainer_mode" | ||
916 | USE_MAINTAINER_MODE=$enableval | ||
917 | else | ||
918 | USE_MAINTAINER_MODE=no | ||
919 | fi | ||
920 | |||
921 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | ||
922 | |||
923 | |||
924 | if test $USE_MAINTAINER_MODE = yes; then | ||
925 | MAINTAINER_MODE_TRUE= | ||
926 | MAINTAINER_MODE_FALSE='#' | ||
927 | else | ||
928 | MAINTAINER_MODE_TRUE='#' | ||
929 | MAINTAINER_MODE_FALSE= | ||
930 | fi | ||
931 | MAINT=$MAINTAINER_MODE_TRUE | ||
932 | |||
933 | |||
934 | |||
935 | DEBUGFLAG= | ||
936 | PROFILEFLAG= | ||
937 | |||
938 | # Check whether --enable-debug or --disable-debug was given. | ||
939 | if test "${enable_debug+set}" = set; then | ||
940 | enableval="$enable_debug" | ||
941 | : | ||
942 | fi | ||
943 | |||
944 | # Check whether --enable-profile or --disable-profile was given. | ||
945 | if test "${enable_profile+set}" = set; then | ||
946 | enableval="$enable_profile" | ||
947 | : | ||
948 | fi | ||
949 | |||
950 | |||
951 | TMPCFLAGS="$CFLAGS" | ||
952 | CFLAGS= | ||
953 | |||
954 | # Extract the first word of "gcc", so it can be a program name with args. | ||
955 | set dummy gcc; ac_word=$2 | ||
956 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
957 | echo "configure:958: checking for $ac_word" >&5 | ||
958 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
959 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
960 | else | ||
961 | if test -n "$CC"; then | ||
962 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
963 | else | ||
964 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
965 | ac_dummy="$PATH" | ||
966 | for ac_dir in $ac_dummy; do | ||
967 | test -z "$ac_dir" && ac_dir=. | ||
968 | if test -f $ac_dir/$ac_word; then | ||
969 | ac_cv_prog_CC="gcc" | ||
970 | break | ||
971 | fi | ||
972 | done | ||
973 | IFS="$ac_save_ifs" | ||
974 | fi | ||
975 | fi | ||
976 | CC="$ac_cv_prog_CC" | ||
977 | if test -n "$CC"; then | ||
978 | echo "$ac_t""$CC" 1>&6 | ||
979 | else | ||
980 | echo "$ac_t""no" 1>&6 | ||
981 | fi | ||
982 | |||
983 | if test -z "$CC"; then | ||
984 | # Extract the first word of "cc", so it can be a program name with args. | ||
985 | set dummy cc; ac_word=$2 | ||
986 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
987 | echo "configure:988: checking for $ac_word" >&5 | ||
988 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
989 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
990 | else | ||
991 | if test -n "$CC"; then | ||
992 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
993 | else | ||
994 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
995 | ac_prog_rejected=no | ||
996 | ac_dummy="$PATH" | ||
997 | for ac_dir in $ac_dummy; do | ||
998 | test -z "$ac_dir" && ac_dir=. | ||
999 | if test -f $ac_dir/$ac_word; then | ||
1000 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
1001 | ac_prog_rejected=yes | ||
1002 | continue | ||
1003 | fi | ||
1004 | ac_cv_prog_CC="cc" | ||
1005 | break | ||
1006 | fi | ||
1007 | done | ||
1008 | IFS="$ac_save_ifs" | ||
1009 | if test $ac_prog_rejected = yes; then | ||
1010 | # We found a bogon in the path, so make sure we never use it. | ||
1011 | set dummy $ac_cv_prog_CC | ||
1012 | shift | ||
1013 | if test $# -gt 0; then | ||
1014 | # We chose a different compiler from the bogus one. | ||
1015 | # However, it has the same basename, so the bogon will be chosen | ||
1016 | # first if we set CC to just the basename; use the full file name. | ||
1017 | shift | ||
1018 | set dummy "$ac_dir/$ac_word" "$@" | ||
1019 | shift | ||
1020 | ac_cv_prog_CC="$@" | ||
1021 | fi | ||
1022 | fi | ||
1023 | fi | ||
1024 | fi | ||
1025 | CC="$ac_cv_prog_CC" | ||
1026 | if test -n "$CC"; then | ||
1027 | echo "$ac_t""$CC" 1>&6 | ||
1028 | else | ||
1029 | echo "$ac_t""no" 1>&6 | ||
1030 | fi | ||
1031 | |||
1032 | if test -z "$CC"; then | ||
1033 | case "`uname -s`" in | ||
1034 | *win32* | *WIN32*) | ||
1035 | # Extract the first word of "cl", so it can be a program name with args. | ||
1036 | set dummy cl; ac_word=$2 | ||
1037 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1038 | echo "configure:1039: checking for $ac_word" >&5 | ||
1039 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
1040 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1041 | else | ||
1042 | if test -n "$CC"; then | ||
1043 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1044 | else | ||
1045 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1046 | ac_dummy="$PATH" | ||
1047 | for ac_dir in $ac_dummy; do | ||
1048 | test -z "$ac_dir" && ac_dir=. | ||
1049 | if test -f $ac_dir/$ac_word; then | ||
1050 | ac_cv_prog_CC="cl" | ||
1051 | break | ||
1052 | fi | ||
1053 | done | ||
1054 | IFS="$ac_save_ifs" | ||
1055 | fi | ||
1056 | fi | ||
1057 | CC="$ac_cv_prog_CC" | ||
1058 | if test -n "$CC"; then | ||
1059 | echo "$ac_t""$CC" 1>&6 | ||
1060 | else | ||
1061 | echo "$ac_t""no" 1>&6 | ||
1062 | fi | ||
1063 | ;; | ||
1064 | esac | ||
1065 | fi | ||
1066 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | ||
1067 | fi | ||
1068 | |||
1069 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | ||
1070 | echo "configure:1071: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | ||
1071 | |||
1072 | ac_ext=c | ||
1073 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1074 | ac_cpp='$CPP $CPPFLAGS' | ||
1075 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1076 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1077 | cross_compiling=$ac_cv_prog_cc_cross | ||
1078 | |||
1079 | cat > conftest.$ac_ext << EOF | ||
1080 | |||
1081 | #line 1082 "configure" | ||
1082 | #include "confdefs.h" | ||
1083 | |||
1084 | main(){return(0);} | ||
1085 | EOF | ||
1086 | if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1087 | ac_cv_prog_cc_works=yes | ||
1088 | # If we can't run a trivial program, we are probably using a cross compiler. | ||
1089 | if (./conftest; exit) 2>/dev/null; then | ||
1090 | ac_cv_prog_cc_cross=no | ||
1091 | else | ||
1092 | ac_cv_prog_cc_cross=yes | ||
1093 | fi | ||
1094 | else | ||
1095 | echo "configure: failed program was:" >&5 | ||
1096 | cat conftest.$ac_ext >&5 | ||
1097 | ac_cv_prog_cc_works=no | ||
1098 | fi | ||
1099 | rm -fr conftest* | ||
1100 | ac_ext=c | ||
1101 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1102 | ac_cpp='$CPP $CPPFLAGS' | ||
1103 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1104 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1105 | cross_compiling=$ac_cv_prog_cc_cross | ||
1106 | |||
1107 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | ||
1108 | if test $ac_cv_prog_cc_works = no; then | ||
1109 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | ||
1110 | fi | ||
1111 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
1112 | echo "configure:1113: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | ||
1113 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | ||
1114 | cross_compiling=$ac_cv_prog_cc_cross | ||
1115 | |||
1116 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | ||
1117 | echo "configure:1118: checking whether we are using GNU C" >&5 | ||
1118 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | ||
1119 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1120 | else | ||
1121 | cat > conftest.c <<EOF | ||
1122 | #ifdef __GNUC__ | ||
1123 | yes; | ||
1124 | #endif | ||
1125 | EOF | ||
1126 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | ||
1127 | ac_cv_prog_gcc=yes | ||
1128 | else | ||
1129 | ac_cv_prog_gcc=no | ||
1130 | fi | ||
1131 | fi | ||
1132 | |||
1133 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | ||
1134 | |||
1135 | if test $ac_cv_prog_gcc = yes; then | ||
1136 | GCC=yes | ||
1137 | else | ||
1138 | GCC= | ||
1139 | fi | ||
1140 | |||
1141 | ac_test_CFLAGS="${CFLAGS+set}" | ||
1142 | ac_save_CFLAGS="$CFLAGS" | ||
1143 | CFLAGS= | ||
1144 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | ||
1145 | echo "configure:1146: checking whether ${CC-cc} accepts -g" >&5 | ||
1146 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | ||
1147 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1148 | else | ||
1149 | echo 'void f(){}' > conftest.c | ||
1150 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | ||
1151 | ac_cv_prog_cc_g=yes | ||
1152 | else | ||
1153 | ac_cv_prog_cc_g=no | ||
1154 | fi | ||
1155 | rm -f conftest* | ||
1156 | |||
1157 | fi | ||
1158 | |||
1159 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | ||
1160 | if test "$ac_test_CFLAGS" = set; then | ||
1161 | CFLAGS="$ac_save_CFLAGS" | ||
1162 | elif test $ac_cv_prog_cc_g = yes; then | ||
1163 | if test "$GCC" = yes; then | ||
1164 | CFLAGS="-g -O2" | ||
1165 | else | ||
1166 | CFLAGS="-g" | ||
1167 | fi | ||
1168 | else | ||
1169 | if test "$GCC" = yes; then | ||
1170 | CFLAGS="-O2" | ||
1171 | else | ||
1172 | CFLAGS= | ||
1173 | fi | ||
1174 | fi | ||
1175 | |||
1176 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | ||
1177 | echo "configure:1178: checking how to run the C preprocessor" >&5 | ||
1178 | # On Suns, sometimes $CPP names a directory. | ||
1179 | if test -n "$CPP" && test -d "$CPP"; then | ||
1180 | CPP= | ||
1181 | fi | ||
1182 | if test -z "$CPP"; then | ||
1183 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | ||
1184 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1185 | else | ||
1186 | # This must be in double quotes, not single quotes, because CPP may get | ||
1187 | # substituted into the Makefile and "${CC-cc}" will confuse make. | ||
1188 | CPP="${CC-cc} -E" | ||
1189 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
1190 | # not just through cpp. | ||
1191 | cat > conftest.$ac_ext <<EOF | ||
1192 | #line 1193 "configure" | ||
1193 | #include "confdefs.h" | ||
1194 | #include <assert.h> | ||
1195 | Syntax Error | ||
1196 | EOF | ||
1197 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1198 | { (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1199 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1200 | if test -z "$ac_err"; then | ||
1201 | : | ||
1202 | else | ||
1203 | echo "$ac_err" >&5 | ||
1204 | echo "configure: failed program was:" >&5 | ||
1205 | cat conftest.$ac_ext >&5 | ||
1206 | rm -rf conftest* | ||
1207 | CPP="${CC-cc} -E -traditional-cpp" | ||
1208 | cat > conftest.$ac_ext <<EOF | ||
1209 | #line 1210 "configure" | ||
1210 | #include "confdefs.h" | ||
1211 | #include <assert.h> | ||
1212 | Syntax Error | ||
1213 | EOF | ||
1214 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1215 | { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1216 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1217 | if test -z "$ac_err"; then | ||
1218 | : | ||
1219 | else | ||
1220 | echo "$ac_err" >&5 | ||
1221 | echo "configure: failed program was:" >&5 | ||
1222 | cat conftest.$ac_ext >&5 | ||
1223 | rm -rf conftest* | ||
1224 | CPP="${CC-cc} -nologo -E" | ||
1225 | cat > conftest.$ac_ext <<EOF | ||
1226 | #line 1227 "configure" | ||
1227 | #include "confdefs.h" | ||
1228 | #include <assert.h> | ||
1229 | Syntax Error | ||
1230 | EOF | ||
1231 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1232 | { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1233 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1234 | if test -z "$ac_err"; then | ||
1235 | : | ||
1236 | else | ||
1237 | echo "$ac_err" >&5 | ||
1238 | echo "configure: failed program was:" >&5 | ||
1239 | cat conftest.$ac_ext >&5 | ||
1240 | rm -rf conftest* | ||
1241 | CPP=/lib/cpp | ||
1242 | fi | ||
1243 | rm -f conftest* | ||
1244 | fi | ||
1245 | rm -f conftest* | ||
1246 | fi | ||
1247 | rm -f conftest* | ||
1248 | ac_cv_prog_CPP="$CPP" | ||
1249 | fi | ||
1250 | CPP="$ac_cv_prog_CPP" | ||
1251 | else | ||
1252 | ac_cv_prog_CPP="$CPP" | ||
1253 | fi | ||
1254 | echo "$ac_t""$CPP" 1>&6 | ||
1255 | |||
1256 | |||
1257 | CFLAGS=$TMPCFLAGS | ||
1258 | |||
1259 | if test "x$GCC" = "xyes"; then | ||
1260 | case " $CFLAGS " in | ||
1261 | *[\ \ ]-Wall[\ \ ]*) ;; | ||
1262 | *) CFLAGS="$CFLAGS -Wall" ;; | ||
1263 | esac | ||
1264 | |||
1265 | if test "x$enable_debug" = "xyes"; then | ||
1266 | DEBUGFLAG="-g" | ||
1267 | fi | ||
1268 | |||
1269 | if test "x$enable_profile" = "xyes"; then | ||
1270 | PROFILEFLAG="-pg" | ||
1271 | fi | ||
1272 | |||
1273 | if test -n "$DEBUGFLAG"; then | ||
1274 | case " $CFLAGS " in | ||
1275 | *[\ \ ]$DEBUGFLAG[\ \ ]*) ;; | ||
1276 | *) CFLAGS="$DEBUGFLAG $CFLAGS" ;; | ||
1277 | esac | ||
1278 | else | ||
1279 | case " $CFLAGS " in | ||
1280 | *[\ \ ]-O[0-9\ \ ]*) ;; | ||
1281 | *) CFLAGS="$CFLAGS -O3" ;; | ||
1282 | esac | ||
1283 | fi | ||
1284 | |||
1285 | if test -n "$PROFILEFLAG"; then | ||
1286 | case " $CFLAGS " in | ||
1287 | *[\ \ ]$PROFILEFLAG[\ \ ]*) ;; | ||
1288 | *) CFLAGS="$PROFILEFLAG $CFLAGS" ;; | ||
1289 | esac | ||
1290 | fi | ||
1291 | fi | ||
1292 | |||
1293 | # Check whether --enable-shared or --disable-shared was given. | ||
1294 | if test "${enable_shared+set}" = set; then | ||
1295 | enableval="$enable_shared" | ||
1296 | p=${PACKAGE-default} | ||
1297 | case "$enableval" in | ||
1298 | yes) enable_shared=yes ;; | ||
1299 | no) enable_shared=no ;; | ||
1300 | *) | ||
1301 | enable_shared=no | ||
1302 | # Look at the argument we got. We use all the common list separators. | ||
1303 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | ||
1304 | for pkg in $enableval; do | ||
1305 | if test "X$pkg" = "X$p"; then | ||
1306 | enable_shared=yes | ||
1307 | fi | ||
1308 | done | ||
1309 | IFS="$ac_save_ifs" | ||
1310 | ;; | ||
1311 | esac | ||
1312 | else | ||
1313 | enable_shared=yes | ||
1314 | fi | ||
1315 | |||
1316 | # Check whether --enable-static or --disable-static was given. | ||
1317 | if test "${enable_static+set}" = set; then | ||
1318 | enableval="$enable_static" | ||
1319 | p=${PACKAGE-default} | ||
1320 | case "$enableval" in | ||
1321 | yes) enable_static=yes ;; | ||
1322 | no) enable_static=no ;; | ||
1323 | *) | ||
1324 | enable_static=no | ||
1325 | # Look at the argument we got. We use all the common list separators. | ||
1326 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | ||
1327 | for pkg in $enableval; do | ||
1328 | if test "X$pkg" = "X$p"; then | ||
1329 | enable_static=yes | ||
1330 | fi | ||
1331 | done | ||
1332 | IFS="$ac_save_ifs" | ||
1333 | ;; | ||
1334 | esac | ||
1335 | else | ||
1336 | enable_static=yes | ||
1337 | fi | ||
1338 | |||
1339 | # Check whether --enable-fast-install or --disable-fast-install was given. | ||
1340 | if test "${enable_fast_install+set}" = set; then | ||
1341 | enableval="$enable_fast_install" | ||
1342 | p=${PACKAGE-default} | ||
1343 | case "$enableval" in | ||
1344 | yes) enable_fast_install=yes ;; | ||
1345 | no) enable_fast_install=no ;; | ||
1346 | *) | ||
1347 | enable_fast_install=no | ||
1348 | # Look at the argument we got. We use all the common list separators. | ||
1349 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | ||
1350 | for pkg in $enableval; do | ||
1351 | if test "X$pkg" = "X$p"; then | ||
1352 | enable_fast_install=yes | ||
1353 | fi | ||
1354 | done | ||
1355 | IFS="$ac_save_ifs" | ||
1356 | ;; | ||
1357 | esac | ||
1358 | else | ||
1359 | enable_fast_install=yes | ||
1360 | fi | ||
1361 | |||
1362 | |||
1363 | # Make sure we can run config.sub. | ||
1364 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | ||
1365 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | ||
1366 | fi | ||
1367 | |||
1368 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | ||
1369 | echo "configure:1370: checking host system type" >&5 | ||
1370 | |||
1371 | host_alias=$host | ||
1372 | case "$host_alias" in | ||
1373 | NONE) | ||
1374 | case $nonopt in | ||
1375 | NONE) | ||
1376 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | ||
1377 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | ||
1378 | fi ;; | ||
1379 | *) host_alias=$nonopt ;; | ||
1380 | esac ;; | ||
1381 | esac | ||
1382 | |||
1383 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | ||
1384 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1385 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1386 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1387 | echo "$ac_t""$host" 1>&6 | ||
1388 | |||
1389 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | ||
1390 | echo "configure:1391: checking build system type" >&5 | ||
1391 | |||
1392 | build_alias=$build | ||
1393 | case "$build_alias" in | ||
1394 | NONE) | ||
1395 | case $nonopt in | ||
1396 | NONE) build_alias=$host_alias ;; | ||
1397 | *) build_alias=$nonopt ;; | ||
1398 | esac ;; | ||
1399 | esac | ||
1400 | |||
1401 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | ||
1402 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
1403 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
1404 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
1405 | echo "$ac_t""$build" 1>&6 | ||
1406 | |||
1407 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
1408 | set dummy ranlib; ac_word=$2 | ||
1409 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1410 | echo "configure:1411: checking for $ac_word" >&5 | ||
1411 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | ||
1412 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1413 | else | ||
1414 | if test -n "$RANLIB"; then | ||
1415 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
1416 | else | ||
1417 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
1418 | ac_dummy="$PATH" | ||
1419 | for ac_dir in $ac_dummy; do | ||
1420 | test -z "$ac_dir" && ac_dir=. | ||
1421 | if test -f $ac_dir/$ac_word; then | ||
1422 | ac_cv_prog_RANLIB="ranlib" | ||
1423 | break | ||
1424 | fi | ||
1425 | done | ||
1426 | IFS="$ac_save_ifs" | ||
1427 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | ||
1428 | fi | ||
1429 | fi | ||
1430 | RANLIB="$ac_cv_prog_RANLIB" | ||
1431 | if test -n "$RANLIB"; then | ||
1432 | echo "$ac_t""$RANLIB" 1>&6 | ||
1433 | else | ||
1434 | echo "$ac_t""no" 1>&6 | ||
1435 | fi | ||
1436 | |||
1437 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
1438 | if test "${with_gnu_ld+set}" = set; then | ||
1439 | withval="$with_gnu_ld" | ||
1440 | test "$withval" = no || with_gnu_ld=yes | ||
1441 | else | ||
1442 | with_gnu_ld=no | ||
1443 | fi | ||
1444 | |||
1445 | ac_prog=ld | ||
1446 | if test "$ac_cv_prog_gcc" = yes; then | ||
1447 | # Check if gcc -print-prog-name=ld gives a path. | ||
1448 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | ||
1449 | echo "configure:1450: checking for ld used by GCC" >&5 | ||
1450 | ac_prog=`($CC -print-prog-name=ld) 2>&5` | ||
1451 | case "$ac_prog" in | ||
1452 | # Accept absolute paths. | ||
1453 | [\\/]* | [A-Za-z]:[\\/]*) | ||
1454 | re_direlt='/[^/][^/]*/\.\./' | ||
1455 | # Canonicalize the path of ld | ||
1456 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
1457 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
1458 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
1459 | done | ||
1460 | test -z "$LD" && LD="$ac_prog" | ||
1461 | ;; | ||
1462 | "") | ||
1463 | # If it fails, then pretend we aren't using GCC. | ||
1464 | ac_prog=ld | ||
1465 | ;; | ||
1466 | *) | ||
1467 | # If it is relative, then search for the first ld in PATH. | ||
1468 | with_gnu_ld=unknown | ||
1469 | ;; | ||
1470 | esac | ||
1471 | elif test "$with_gnu_ld" = yes; then | ||
1472 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | ||
1473 | echo "configure:1474: checking for GNU ld" >&5 | ||
1474 | else | ||
1475 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | ||
1476 | echo "configure:1477: checking for non-GNU ld" >&5 | ||
1477 | fi | ||
1478 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | ||
1479 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1480 | else | ||
1481 | if test -z "$LD"; then | ||
1482 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
1483 | for ac_dir in $PATH; do | ||
1484 | test -z "$ac_dir" && ac_dir=. | ||
1485 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
1486 | ac_cv_path_LD="$ac_dir/$ac_prog" | ||
1487 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
1488 | # but apparently some GNU ld's only accept -v. | ||
1489 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
1490 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | ||
1491 | test "$with_gnu_ld" != no && break | ||
1492 | else | ||
1493 | test "$with_gnu_ld" != yes && break | ||
1494 | fi | ||
1495 | fi | ||
1496 | done | ||
1497 | IFS="$ac_save_ifs" | ||
1498 | else | ||
1499 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | ||
1500 | fi | ||
1501 | fi | ||
1502 | |||
1503 | LD="$ac_cv_path_LD" | ||
1504 | if test -n "$LD"; then | ||
1505 | echo "$ac_t""$LD" 1>&6 | ||
1506 | else | ||
1507 | echo "$ac_t""no" 1>&6 | ||
1508 | fi | ||
1509 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | ||
1510 | |||
1511 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | ||
1512 | echo "configure:1513: checking if the linker ($LD) is GNU ld" >&5 | ||
1513 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then | ||
1514 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1515 | else | ||
1516 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
1517 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | ||
1518 | ac_cv_prog_gnu_ld=yes | ||
1519 | else | ||
1520 | ac_cv_prog_gnu_ld=no | ||
1521 | fi | ||
1522 | fi | ||
1523 | |||
1524 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | ||
1525 | |||
1526 | |||
1527 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | ||
1528 | echo "configure:1529: checking for BSD-compatible nm" >&5 | ||
1529 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then | ||
1530 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1531 | else | ||
1532 | if test -n "$NM"; then | ||
1533 | # Let the user override the test. | ||
1534 | ac_cv_path_NM="$NM" | ||
1535 | else | ||
1536 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
1537 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | ||
1538 | test -z "$ac_dir" && ac_dir=. | ||
1539 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | ||
1540 | # Check to see if the nm accepts a BSD-compat flag. | ||
1541 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
1542 | # nm: unknown option "B" ignored | ||
1543 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | ||
1544 | ac_cv_path_NM="$ac_dir/nm -B" | ||
1545 | break | ||
1546 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | ||
1547 | ac_cv_path_NM="$ac_dir/nm -p" | ||
1548 | break | ||
1549 | else | ||
1550 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but | ||
1551 | continue # so that we can try to find one that supports BSD flags | ||
1552 | fi | ||
1553 | fi | ||
1554 | done | ||
1555 | IFS="$ac_save_ifs" | ||
1556 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | ||
1557 | fi | ||
1558 | fi | ||
1559 | |||
1560 | NM="$ac_cv_path_NM" | ||
1561 | echo "$ac_t""$NM" 1>&6 | ||
1562 | |||
1563 | |||
1564 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | ||
1565 | echo "configure:1566: checking whether ln -s works" >&5 | ||
1566 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | ||
1567 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1568 | else | ||
1569 | rm -f conftestdata | ||
1570 | if ln -s X conftestdata 2>/dev/null | ||
1571 | then | ||
1572 | rm -f conftestdata | ||
1573 | ac_cv_prog_LN_S="ln -s" | ||
1574 | else | ||
1575 | ac_cv_prog_LN_S=ln | ||
1576 | fi | ||
1577 | fi | ||
1578 | LN_S="$ac_cv_prog_LN_S" | ||
1579 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | ||
1580 | echo "$ac_t""yes" 1>&6 | ||
1581 | else | ||
1582 | echo "$ac_t""no" 1>&6 | ||
1583 | fi | ||
1584 | |||
1585 | |||
1586 | # Check for any special flags to pass to ltconfig. | ||
1587 | libtool_flags="--cache-file=$cache_file" | ||
1588 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | ||
1589 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | ||
1590 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | ||
1591 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | ||
1592 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | ||
1593 | |||
1594 | |||
1595 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | ||
1596 | if test "${enable_libtool_lock+set}" = set; then | ||
1597 | enableval="$enable_libtool_lock" | ||
1598 | : | ||
1599 | fi | ||
1600 | |||
1601 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | ||
1602 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | ||
1603 | |||
1604 | # Some flags need to be propagated to the compiler or linker for good | ||
1605 | # libtool support. | ||
1606 | case "$host" in | ||
1607 | *-*-irix6*) | ||
1608 | # Find out which ABI we are using. | ||
1609 | echo '#line 1610 "configure"' > conftest.$ac_ext | ||
1610 | if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
1611 | case "`/usr/bin/file conftest.o`" in | ||
1612 | *32-bit*) | ||
1613 | LD="${LD-ld} -32" | ||
1614 | ;; | ||
1615 | *N32*) | ||
1616 | LD="${LD-ld} -n32" | ||
1617 | ;; | ||
1618 | *64-bit*) | ||
1619 | LD="${LD-ld} -64" | ||
1620 | ;; | ||
1621 | esac | ||
1622 | fi | ||
1623 | rm -rf conftest* | ||
1624 | ;; | ||
1625 | |||
1626 | *-*-sco3.2v5*) | ||
1627 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
1628 | SAVE_CFLAGS="$CFLAGS" | ||
1629 | CFLAGS="$CFLAGS -belf" | ||
1630 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | ||
1631 | echo "configure:1632: checking whether the C compiler needs -belf" >&5 | ||
1632 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | ||
1633 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1634 | else | ||
1635 | |||
1636 | ac_ext=c | ||
1637 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1638 | ac_cpp='$CPP $CPPFLAGS' | ||
1639 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1640 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1641 | cross_compiling=$ac_cv_prog_cc_cross | ||
1642 | |||
1643 | cat > conftest.$ac_ext <<EOF | ||
1644 | #line 1645 "configure" | ||
1645 | #include "confdefs.h" | ||
1646 | |||
1647 | int main() { | ||
1648 | |||
1649 | ; return 0; } | ||
1650 | EOF | ||
1651 | if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1652 | rm -rf conftest* | ||
1653 | lt_cv_cc_needs_belf=yes | ||
1654 | else | ||
1655 | echo "configure: failed program was:" >&5 | ||
1656 | cat conftest.$ac_ext >&5 | ||
1657 | rm -rf conftest* | ||
1658 | lt_cv_cc_needs_belf=no | ||
1659 | fi | ||
1660 | rm -f conftest* | ||
1661 | ac_ext=c | ||
1662 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
1663 | ac_cpp='$CPP $CPPFLAGS' | ||
1664 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
1665 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
1666 | cross_compiling=$ac_cv_prog_cc_cross | ||
1667 | |||
1668 | fi | ||
1669 | |||
1670 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | ||
1671 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
1672 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
1673 | CFLAGS="$SAVE_CFLAGS" | ||
1674 | fi | ||
1675 | ;; | ||
1676 | |||
1677 | |||
1678 | esac | ||
1679 | |||
1680 | |||
1681 | # Save cache, so that ltconfig can load it | ||
1682 | cat > confcache <<\EOF | ||
1683 | # This file is a shell script that caches the results of configure | ||
1684 | # tests run on this system so they can be shared between configure | ||
1685 | # scripts and configure runs. It is not useful on other systems. | ||
1686 | # If it contains results you don't want to keep, you may remove or edit it. | ||
1687 | # | ||
1688 | # By default, configure uses ./config.cache as the cache file, | ||
1689 | # creating it if it does not exist already. You can give configure | ||
1690 | # the --cache-file=FILE option to use a different cache file; that is | ||
1691 | # what configure does when it calls configure scripts in | ||
1692 | # subdirectories, so they share the cache. | ||
1693 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | ||
1694 | # config.status only pays attention to the cache file if you give it the | ||
1695 | # --recheck option to rerun configure. | ||
1696 | # | ||
1697 | EOF | ||
1698 | # The following way of writing the cache mishandles newlines in values, | ||
1699 | # but we know of no workaround that is simple, portable, and efficient. | ||
1700 | # So, don't put newlines in cache variables' values. | ||
1701 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
1702 | # and sets the high bit in the cache file unless we assign to the vars. | ||
1703 | (set) 2>&1 | | ||
1704 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
1705 | *ac_space=\ *) | ||
1706 | # `set' does not quote correctly, so add quotes (double-quote substitution | ||
1707 | # turns \\\\ into \\, and sed turns \\ into \). | ||
1708 | sed -n \ | ||
1709 | -e "s/'/'\\\\''/g" \ | ||
1710 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | ||
1711 | ;; | ||
1712 | *) | ||
1713 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
1714 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | ||
1715 | ;; | ||
1716 | esac >> confcache | ||
1717 | if cmp -s $cache_file confcache; then | ||
1718 | : | ||
1719 | else | ||
1720 | if test -w $cache_file; then | ||
1721 | echo "updating cache $cache_file" | ||
1722 | cat confcache > $cache_file | ||
1723 | else | ||
1724 | echo "not updating unwritable cache $cache_file" | ||
1725 | fi | ||
1726 | fi | ||
1727 | rm -f confcache | ||
1728 | |||
1729 | |||
1730 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | ||
1731 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | ||
1732 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | ||
1733 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | ||
1734 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | ||
1735 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | ||
1736 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | ||
1737 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | ||
1738 | |||
1739 | # Reload cache, that may have been modified by ltconfig | ||
1740 | if test -r "$cache_file"; then | ||
1741 | echo "loading cache $cache_file" | ||
1742 | . $cache_file | ||
1743 | else | ||
1744 | echo "creating cache $cache_file" | ||
1745 | > $cache_file | ||
1746 | fi | ||
1747 | |||
1748 | |||
1749 | # This can be used to rebuild libtool when needed | ||
1750 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | ||
1751 | |||
1752 | # Always use our own libtool. | ||
1753 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
1754 | |||
1755 | # Redirect the config.log output again, so that the ltconfig log is not | ||
1756 | # clobbered by the next message. | ||
1757 | exec 5>>./config.log | ||
1758 | |||
1759 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | ||
1760 | echo "configure:1761: checking for ANSI C header files" >&5 | ||
1761 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | ||
1762 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1763 | else | ||
1764 | cat > conftest.$ac_ext <<EOF | ||
1765 | #line 1766 "configure" | ||
1766 | #include "confdefs.h" | ||
1767 | #include <stdlib.h> | ||
1768 | #include <stdarg.h> | ||
1769 | #include <string.h> | ||
1770 | #include <float.h> | ||
1771 | EOF | ||
1772 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
1773 | { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
1774 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
1775 | if test -z "$ac_err"; then | ||
1776 | rm -rf conftest* | ||
1777 | ac_cv_header_stdc=yes | ||
1778 | else | ||
1779 | echo "$ac_err" >&5 | ||
1780 | echo "configure: failed program was:" >&5 | ||
1781 | cat conftest.$ac_ext >&5 | ||
1782 | rm -rf conftest* | ||
1783 | ac_cv_header_stdc=no | ||
1784 | fi | ||
1785 | rm -f conftest* | ||
1786 | |||
1787 | if test $ac_cv_header_stdc = yes; then | ||
1788 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
1789 | cat > conftest.$ac_ext <<EOF | ||
1790 | #line 1791 "configure" | ||
1791 | #include "confdefs.h" | ||
1792 | #include <string.h> | ||
1793 | EOF | ||
1794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
1795 | egrep "memchr" >/dev/null 2>&1; then | ||
1796 | : | ||
1797 | else | ||
1798 | rm -rf conftest* | ||
1799 | ac_cv_header_stdc=no | ||
1800 | fi | ||
1801 | rm -f conftest* | ||
1802 | |||
1803 | fi | ||
1804 | |||
1805 | if test $ac_cv_header_stdc = yes; then | ||
1806 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
1807 | cat > conftest.$ac_ext <<EOF | ||
1808 | #line 1809 "configure" | ||
1809 | #include "confdefs.h" | ||
1810 | #include <stdlib.h> | ||
1811 | EOF | ||
1812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
1813 | egrep "free" >/dev/null 2>&1; then | ||
1814 | : | ||
1815 | else | ||
1816 | rm -rf conftest* | ||
1817 | ac_cv_header_stdc=no | ||
1818 | fi | ||
1819 | rm -f conftest* | ||
1820 | |||
1821 | fi | ||
1822 | |||
1823 | if test $ac_cv_header_stdc = yes; then | ||
1824 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
1825 | if test "$cross_compiling" = yes; then | ||
1826 | : | ||
1827 | else | ||
1828 | cat > conftest.$ac_ext <<EOF | ||
1829 | #line 1830 "configure" | ||
1830 | #include "confdefs.h" | ||
1831 | #include <ctype.h> | ||
1832 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
1833 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
1834 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
1835 | int main () { int i; for (i = 0; i < 256; i++) | ||
1836 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | ||
1837 | exit (0); } | ||
1838 | |||
1839 | EOF | ||
1840 | if { (eval echo configure:1841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
1841 | then | ||
1842 | : | ||
1843 | else | ||
1844 | echo "configure: failed program was:" >&5 | ||
1845 | cat conftest.$ac_ext >&5 | ||
1846 | rm -fr conftest* | ||
1847 | ac_cv_header_stdc=no | ||
1848 | fi | ||
1849 | rm -fr conftest* | ||
1850 | fi | ||
1851 | |||
1852 | fi | ||
1853 | fi | ||
1854 | |||
1855 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | ||
1856 | if test $ac_cv_header_stdc = yes; then | ||
1857 | cat >> confdefs.h <<\EOF | ||
1858 | #define STDC_HEADERS 1 | ||
1859 | EOF | ||
1860 | |||
1861 | fi | ||
1862 | |||
1863 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | ||
1864 | echo "configure:1865: checking whether ${MAKE-make} sets \${MAKE}" >&5 | ||
1865 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | ||
1866 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | ||
1867 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1868 | else | ||
1869 | cat > conftestmake <<\EOF | ||
1870 | all: | ||
1871 | @echo 'ac_maketemp="${MAKE}"' | ||
1872 | EOF | ||
1873 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
1874 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | ||
1875 | if test -n "$ac_maketemp"; then | ||
1876 | eval ac_cv_prog_make_${ac_make}_set=yes | ||
1877 | else | ||
1878 | eval ac_cv_prog_make_${ac_make}_set=no | ||
1879 | fi | ||
1880 | rm -f conftestmake | ||
1881 | fi | ||
1882 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | ||
1883 | echo "$ac_t""yes" 1>&6 | ||
1884 | SET_MAKE= | ||
1885 | else | ||
1886 | echo "$ac_t""no" 1>&6 | ||
1887 | SET_MAKE="MAKE=${MAKE-make}" | ||
1888 | fi | ||
1889 | |||
1890 | |||
1891 | for ac_func in gettimeofday | ||
1892 | do | ||
1893 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
1894 | echo "configure:1895: checking for $ac_func" >&5 | ||
1895 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
1896 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1897 | else | ||
1898 | cat > conftest.$ac_ext <<EOF | ||
1899 | #line 1900 "configure" | ||
1900 | #include "confdefs.h" | ||
1901 | /* System header to define __stub macros and hopefully few prototypes, | ||
1902 | which can conflict with char $ac_func(); below. */ | ||
1903 | #include <assert.h> | ||
1904 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
1905 | /* We use char because int might match the return type of a gcc2 | ||
1906 | builtin and then its argument prototype would still apply. */ | ||
1907 | char $ac_func(); | ||
1908 | |||
1909 | int main() { | ||
1910 | |||
1911 | /* The GNU C library defines this for functions which it implements | ||
1912 | to always fail with ENOSYS. Some functions are actually named | ||
1913 | something starting with __ and the normal name is an alias. */ | ||
1914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
1915 | choke me | ||
1916 | #else | ||
1917 | $ac_func(); | ||
1918 | #endif | ||
1919 | |||
1920 | ; return 0; } | ||
1921 | EOF | ||
1922 | if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
1923 | rm -rf conftest* | ||
1924 | eval "ac_cv_func_$ac_func=yes" | ||
1925 | else | ||
1926 | echo "configure: failed program was:" >&5 | ||
1927 | cat conftest.$ac_ext >&5 | ||
1928 | rm -rf conftest* | ||
1929 | eval "ac_cv_func_$ac_func=no" | ||
1930 | fi | ||
1931 | rm -f conftest* | ||
1932 | fi | ||
1933 | |||
1934 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
1935 | echo "$ac_t""yes" 1>&6 | ||
1936 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
1937 | cat >> confdefs.h <<EOF | ||
1938 | #define $ac_tr_func 1 | ||
1939 | EOF | ||
1940 | |||
1941 | else | ||
1942 | echo "$ac_t""no" 1>&6 | ||
1943 | fi | ||
1944 | done | ||
1945 | |||
1946 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | ||
1947 | echo "configure:1948: checking whether time.h and sys/time.h may both be included" >&5 | ||
1948 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | ||
1949 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1950 | else | ||
1951 | cat > conftest.$ac_ext <<EOF | ||
1952 | #line 1953 "configure" | ||
1953 | #include "confdefs.h" | ||
1954 | #include <sys/types.h> | ||
1955 | #include <sys/time.h> | ||
1956 | #include <time.h> | ||
1957 | int main() { | ||
1958 | struct tm *tp; | ||
1959 | ; return 0; } | ||
1960 | EOF | ||
1961 | if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
1962 | rm -rf conftest* | ||
1963 | ac_cv_header_time=yes | ||
1964 | else | ||
1965 | echo "configure: failed program was:" >&5 | ||
1966 | cat conftest.$ac_ext >&5 | ||
1967 | rm -rf conftest* | ||
1968 | ac_cv_header_time=no | ||
1969 | fi | ||
1970 | rm -f conftest* | ||
1971 | fi | ||
1972 | |||
1973 | echo "$ac_t""$ac_cv_header_time" 1>&6 | ||
1974 | if test $ac_cv_header_time = yes; then | ||
1975 | cat >> confdefs.h <<\EOF | ||
1976 | #define TIME_WITH_SYS_TIME 1 | ||
1977 | EOF | ||
1978 | |||
1979 | fi | ||
1980 | |||
1981 | |||
1982 | for ac_prog in emacs xemacs | ||
1983 | do | ||
1984 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1985 | set dummy $ac_prog; ac_word=$2 | ||
1986 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
1987 | echo "configure:1988: checking for $ac_word" >&5 | ||
1988 | if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then | ||
1989 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
1990 | else | ||
1991 | case "$EMACS" in | ||
1992 | /*) | ||
1993 | ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path. | ||
1994 | ;; | ||
1995 | ?:/*) | ||
1996 | ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path. | ||
1997 | ;; | ||
1998 | *) | ||
1999 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
2000 | ac_dummy="$PATH" | ||
2001 | for ac_dir in $ac_dummy; do | ||
2002 | test -z "$ac_dir" && ac_dir=. | ||
2003 | if test -f $ac_dir/$ac_word; then | ||
2004 | ac_cv_path_EMACS="$ac_dir/$ac_word" | ||
2005 | break | ||
2006 | fi | ||
2007 | done | ||
2008 | IFS="$ac_save_ifs" | ||
2009 | ;; | ||
2010 | esac | ||
2011 | fi | ||
2012 | EMACS="$ac_cv_path_EMACS" | ||
2013 | if test -n "$EMACS"; then | ||
2014 | echo "$ac_t""$EMACS" 1>&6 | ||
2015 | else | ||
2016 | echo "$ac_t""no" 1>&6 | ||
2017 | fi | ||
2018 | |||
2019 | test -n "$EMACS" && break | ||
2020 | done | ||
2021 | test -n "$EMACS" || EMACS="emacs" | ||
2022 | |||
2023 | |||
2024 | top_srcdir_absolute=`cd $srcdir; pwd` | ||
2025 | |||
2026 | |||
2027 | # Check whether --with-glib-prefix or --without-glib-prefix was given. | ||
2028 | if test "${with_glib_prefix+set}" = set; then | ||
2029 | withval="$with_glib_prefix" | ||
2030 | glib_config_prefix="$withval" | ||
2031 | else | ||
2032 | glib_config_prefix="" | ||
2033 | fi | ||
2034 | |||
2035 | # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given. | ||
2036 | if test "${with_glib_exec_prefix+set}" = set; then | ||
2037 | withval="$with_glib_exec_prefix" | ||
2038 | glib_config_exec_prefix="$withval" | ||
2039 | else | ||
2040 | glib_config_exec_prefix="" | ||
2041 | fi | ||
2042 | |||
2043 | # Check whether --enable-glibtest or --disable-glibtest was given. | ||
2044 | if test "${enable_glibtest+set}" = set; then | ||
2045 | enableval="$enable_glibtest" | ||
2046 | : | ||
2047 | else | ||
2048 | enable_glibtest=yes | ||
2049 | fi | ||
2050 | |||
2051 | |||
2052 | if test x$glib_config_exec_prefix != x ; then | ||
2053 | glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" | ||
2054 | if test x${GLIB_CONFIG+set} != xset ; then | ||
2055 | GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config | ||
2056 | fi | ||
2057 | fi | ||
2058 | if test x$glib_config_prefix != x ; then | ||
2059 | glib_config_args="$glib_config_args --prefix=$glib_config_prefix" | ||
2060 | if test x${GLIB_CONFIG+set} != xset ; then | ||
2061 | GLIB_CONFIG=$glib_config_prefix/bin/glib-config | ||
2062 | fi | ||
2063 | fi | ||
2064 | |||
2065 | for module in . | ||
2066 | do | ||
2067 | case "$module" in | ||
2068 | gmodule) | ||
2069 | glib_config_args="$glib_config_args gmodule" | ||
2070 | ;; | ||
2071 | gthread) | ||
2072 | glib_config_args="$glib_config_args gthread" | ||
2073 | ;; | ||
2074 | esac | ||
2075 | done | ||
2076 | |||
2077 | # Extract the first word of "glib-config", so it can be a program name with args. | ||
2078 | set dummy glib-config; ac_word=$2 | ||
2079 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
2080 | echo "configure:2081: checking for $ac_word" >&5 | ||
2081 | if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then | ||
2082 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
2083 | else | ||
2084 | case "$GLIB_CONFIG" in | ||
2085 | /*) | ||
2086 | ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path. | ||
2087 | ;; | ||
2088 | ?:/*) | ||
2089 | ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path. | ||
2090 | ;; | ||
2091 | *) | ||
2092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
2093 | ac_dummy="$PATH" | ||
2094 | for ac_dir in $ac_dummy; do | ||
2095 | test -z "$ac_dir" && ac_dir=. | ||
2096 | if test -f $ac_dir/$ac_word; then | ||
2097 | ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word" | ||
2098 | break | ||
2099 | fi | ||
2100 | done | ||
2101 | IFS="$ac_save_ifs" | ||
2102 | test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" | ||
2103 | ;; | ||
2104 | esac | ||
2105 | fi | ||
2106 | GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG" | ||
2107 | if test -n "$GLIB_CONFIG"; then | ||
2108 | echo "$ac_t""$GLIB_CONFIG" 1>&6 | ||
2109 | else | ||
2110 | echo "$ac_t""no" 1>&6 | ||
2111 | fi | ||
2112 | |||
2113 | min_glib_version=1.2.8 | ||
2114 | echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6 | ||
2115 | echo "configure:2116: checking for GLIB - version >= $min_glib_version" >&5 | ||
2116 | no_glib="" | ||
2117 | if test "$GLIB_CONFIG" = "no" ; then | ||
2118 | no_glib=yes | ||
2119 | else | ||
2120 | GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` | ||
2121 | GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` | ||
2122 | glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ | ||
2123 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
2124 | glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ | ||
2125 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
2126 | glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ | ||
2127 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
2128 | if test "x$enable_glibtest" = "xyes" ; then | ||
2129 | ac_save_CFLAGS="$CFLAGS" | ||
2130 | ac_save_LIBS="$LIBS" | ||
2131 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
2132 | LIBS="$GLIB_LIBS $LIBS" | ||
2133 | rm -f conf.glibtest | ||
2134 | if test "$cross_compiling" = yes; then | ||
2135 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
2136 | else | ||
2137 | cat > conftest.$ac_ext <<EOF | ||
2138 | #line 2139 "configure" | ||
2139 | #include "confdefs.h" | ||
2140 | |||
2141 | #include <glib.h> | ||
2142 | #include <stdio.h> | ||
2143 | #include <stdlib.h> | ||
2144 | |||
2145 | int | ||
2146 | main () | ||
2147 | { | ||
2148 | int major, minor, micro; | ||
2149 | char *tmp_version; | ||
2150 | |||
2151 | system ("touch conf.glibtest"); | ||
2152 | |||
2153 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
2154 | tmp_version = g_strdup("$min_glib_version"); | ||
2155 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
2156 | printf("%s, bad version string\n", "$min_glib_version"); | ||
2157 | exit(1); | ||
2158 | } | ||
2159 | |||
2160 | if ((glib_major_version != $glib_config_major_version) || | ||
2161 | (glib_minor_version != $glib_config_minor_version) || | ||
2162 | (glib_micro_version != $glib_config_micro_version)) | ||
2163 | { | ||
2164 | printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
2165 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
2166 | glib_major_version, glib_minor_version, glib_micro_version); | ||
2167 | printf ("*** was found! If glib-config was correct, then it is best\n"); | ||
2168 | printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); | ||
2169 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
2170 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
2171 | printf("*** required on your system.\n"); | ||
2172 | printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); | ||
2173 | printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); | ||
2174 | printf("*** before re-running configure\n"); | ||
2175 | } | ||
2176 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
2177 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
2178 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
2179 | { | ||
2180 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
2181 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
2182 | printf("*** library (version %d.%d.%d)\n", | ||
2183 | glib_major_version, glib_minor_version, glib_micro_version); | ||
2184 | } | ||
2185 | else | ||
2186 | { | ||
2187 | if ((glib_major_version > major) || | ||
2188 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
2189 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
2190 | { | ||
2191 | return 0; | ||
2192 | } | ||
2193 | else | ||
2194 | { | ||
2195 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
2196 | glib_major_version, glib_minor_version, glib_micro_version); | ||
2197 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
2198 | major, minor, micro); | ||
2199 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
2200 | printf("***\n"); | ||
2201 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
2202 | printf("*** probably means that the wrong copy of the glib-config shell script is\n"); | ||
2203 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
2204 | printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); | ||
2205 | printf("*** correct copy of glib-config. (In this case, you will have to\n"); | ||
2206 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
2207 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
2208 | } | ||
2209 | } | ||
2210 | return 1; | ||
2211 | } | ||
2212 | |||
2213 | EOF | ||
2214 | if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
2215 | then | ||
2216 | : | ||
2217 | else | ||
2218 | echo "configure: failed program was:" >&5 | ||
2219 | cat conftest.$ac_ext >&5 | ||
2220 | rm -fr conftest* | ||
2221 | no_glib=yes | ||
2222 | fi | ||
2223 | rm -fr conftest* | ||
2224 | fi | ||
2225 | |||
2226 | CFLAGS="$ac_save_CFLAGS" | ||
2227 | LIBS="$ac_save_LIBS" | ||
2228 | fi | ||
2229 | fi | ||
2230 | if test "x$no_glib" = x ; then | ||
2231 | echo "$ac_t""yes" 1>&6 | ||
2232 | : | ||
2233 | else | ||
2234 | echo "$ac_t""no" 1>&6 | ||
2235 | if test "$GLIB_CONFIG" = "no" ; then | ||
2236 | echo "*** The glib-config script installed by GLIB could not be found" | ||
2237 | echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" | ||
2238 | echo "*** your path, or set the GLIB_CONFIG environment variable to the" | ||
2239 | echo "*** full path to glib-config." | ||
2240 | else | ||
2241 | if test -f conf.glibtest ; then | ||
2242 | : | ||
2243 | else | ||
2244 | echo "*** Could not run GLIB test program, checking why..." | ||
2245 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
2246 | LIBS="$LIBS $GLIB_LIBS" | ||
2247 | cat > conftest.$ac_ext <<EOF | ||
2248 | #line 2249 "configure" | ||
2249 | #include "confdefs.h" | ||
2250 | |||
2251 | #include <glib.h> | ||
2252 | #include <stdio.h> | ||
2253 | |||
2254 | int main() { | ||
2255 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ||
2256 | ; return 0; } | ||
2257 | EOF | ||
2258 | if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
2259 | rm -rf conftest* | ||
2260 | echo "*** The test program compiled, but did not run. This usually means" | ||
2261 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
2262 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
2263 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
2264 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
2265 | echo "*** is required on your system" | ||
2266 | echo "***" | ||
2267 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
2268 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
2269 | echo "***" | ||
2270 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | ||
2271 | echo "*** came with the system with the command" | ||
2272 | echo "***" | ||
2273 | echo "*** rpm --erase --nodeps gtk gtk-devel" | ||
2274 | else | ||
2275 | echo "configure: failed program was:" >&5 | ||
2276 | cat conftest.$ac_ext >&5 | ||
2277 | rm -rf conftest* | ||
2278 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
2279 | echo "*** exact error that occured. This usually means GLIB was incorrectly installed" | ||
2280 | echo "*** or that you have moved GLIB since it was installed. In the latter case, you" | ||
2281 | echo "*** may want to edit the glib-config script: $GLIB_CONFIG" | ||
2282 | fi | ||
2283 | rm -f conftest* | ||
2284 | CFLAGS="$ac_save_CFLAGS" | ||
2285 | LIBS="$ac_save_LIBS" | ||
2286 | fi | ||
2287 | fi | ||
2288 | GLIB_CFLAGS="" | ||
2289 | GLIB_LIBS="" | ||
2290 | { echo "configure: error: Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/" 1>&2; exit 1; } | ||
2291 | fi | ||
2292 | |||
2293 | |||
2294 | rm -f conf.glibtest | ||
2295 | |||
2296 | |||
2297 | echo $ac_n "checking for gzsetparams in -lz""... $ac_c" 1>&6 | ||
2298 | echo "configure:2299: checking for gzsetparams in -lz" >&5 | ||
2299 | ac_lib_var=`echo z'_'gzsetparams | sed 'y%./+-%__p_%'` | ||
2300 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
2301 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
2302 | else | ||
2303 | ac_save_LIBS="$LIBS" | ||
2304 | LIBS="-lz $LIBS" | ||
2305 | cat > conftest.$ac_ext <<EOF | ||
2306 | #line 2307 "configure" | ||
2307 | #include "confdefs.h" | ||
2308 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
2309 | /* We use char because int might match the return type of a gcc2 | ||
2310 | builtin and then its argument prototype would still apply. */ | ||
2311 | char gzsetparams(); | ||
2312 | |||
2313 | int main() { | ||
2314 | gzsetparams() | ||
2315 | ; return 0; } | ||
2316 | EOF | ||
2317 | if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
2318 | rm -rf conftest* | ||
2319 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
2320 | else | ||
2321 | echo "configure: failed program was:" >&5 | ||
2322 | cat conftest.$ac_ext >&5 | ||
2323 | rm -rf conftest* | ||
2324 | eval "ac_cv_lib_$ac_lib_var=no" | ||
2325 | fi | ||
2326 | rm -f conftest* | ||
2327 | LIBS="$ac_save_LIBS" | ||
2328 | |||
2329 | fi | ||
2330 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
2331 | echo "$ac_t""yes" 1>&6 | ||
2332 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | ||
2333 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | ||
2334 | echo "configure:2335: checking for zlib.h" >&5 | ||
2335 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
2336 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
2337 | else | ||
2338 | cat > conftest.$ac_ext <<EOF | ||
2339 | #line 2340 "configure" | ||
2340 | #include "confdefs.h" | ||
2341 | #include <zlib.h> | ||
2342 | EOF | ||
2343 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
2344 | { (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
2345 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
2346 | if test -z "$ac_err"; then | ||
2347 | rm -rf conftest* | ||
2348 | eval "ac_cv_header_$ac_safe=yes" | ||
2349 | else | ||
2350 | echo "$ac_err" >&5 | ||
2351 | echo "configure: failed program was:" >&5 | ||
2352 | cat conftest.$ac_ext >&5 | ||
2353 | rm -rf conftest* | ||
2354 | eval "ac_cv_header_$ac_safe=no" | ||
2355 | fi | ||
2356 | rm -f conftest* | ||
2357 | fi | ||
2358 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
2359 | echo "$ac_t""yes" 1>&6 | ||
2360 | : | ||
2361 | else | ||
2362 | echo "$ac_t""no" 1>&6 | ||
2363 | { echo "configure: error: ZLIB headers not found" 1>&2; exit 1; } | ||
2364 | fi | ||
2365 | |||
2366 | else | ||
2367 | echo "$ac_t""no" 1>&6 | ||
2368 | { echo "configure: error: ZLIB library not found" 1>&2; exit 1; } | ||
2369 | fi | ||
2370 | |||
2371 | |||
2372 | trap '' 1 2 15 | ||
2373 | cat > confcache <<\EOF | ||
2374 | # This file is a shell script that caches the results of configure | ||
2375 | # tests run on this system so they can be shared between configure | ||
2376 | # scripts and configure runs. It is not useful on other systems. | ||
2377 | # If it contains results you don't want to keep, you may remove or edit it. | ||
2378 | # | ||
2379 | # By default, configure uses ./config.cache as the cache file, | ||
2380 | # creating it if it does not exist already. You can give configure | ||
2381 | # the --cache-file=FILE option to use a different cache file; that is | ||
2382 | # what configure does when it calls configure scripts in | ||
2383 | # subdirectories, so they share the cache. | ||
2384 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | ||
2385 | # config.status only pays attention to the cache file if you give it the | ||
2386 | # --recheck option to rerun configure. | ||
2387 | # | ||
2388 | EOF | ||
2389 | # The following way of writing the cache mishandles newlines in values, | ||
2390 | # but we know of no workaround that is simple, portable, and efficient. | ||
2391 | # So, don't put newlines in cache variables' values. | ||
2392 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
2393 | # and sets the high bit in the cache file unless we assign to the vars. | ||
2394 | (set) 2>&1 | | ||
2395 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
2396 | *ac_space=\ *) | ||
2397 | # `set' does not quote correctly, so add quotes (double-quote substitution | ||
2398 | # turns \\\\ into \\, and sed turns \\ into \). | ||
2399 | sed -n \ | ||
2400 | -e "s/'/'\\\\''/g" \ | ||
2401 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | ||
2402 | ;; | ||
2403 | *) | ||
2404 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
2405 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | ||
2406 | ;; | ||
2407 | esac >> confcache | ||
2408 | if cmp -s $cache_file confcache; then | ||
2409 | : | ||
2410 | else | ||
2411 | if test -w $cache_file; then | ||
2412 | echo "updating cache $cache_file" | ||
2413 | cat confcache > $cache_file | ||
2414 | else | ||
2415 | echo "not updating unwritable cache $cache_file" | ||
2416 | fi | ||
2417 | fi | ||
2418 | rm -f confcache | ||
2419 | |||
2420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
2421 | |||
2422 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
2423 | # Let make expand exec_prefix. | ||
2424 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
2425 | |||
2426 | # Any assignment to VPATH causes Sun make to only execute | ||
2427 | # the first set of double-colon rules, so remove it if not needed. | ||
2428 | # If there is a colon in the path, we need to keep it. | ||
2429 | if test "x$srcdir" = x.; then | ||
2430 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | ||
2431 | fi | ||
2432 | |||
2433 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | ||
2434 | |||
2435 | DEFS=-DHAVE_CONFIG_H | ||
2436 | |||
2437 | # Without the "./", some shells look in PATH for config.status. | ||
2438 | : ${CONFIG_STATUS=./config.status} | ||
2439 | |||
2440 | echo creating $CONFIG_STATUS | ||
2441 | rm -f $CONFIG_STATUS | ||
2442 | cat > $CONFIG_STATUS <<EOF | ||
2443 | #! /bin/sh | ||
2444 | # Generated automatically by configure. | ||
2445 | # Run this file to recreate the current configuration. | ||
2446 | # This directory was configured as follows, | ||
2447 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
2448 | # | ||
2449 | # $0 $ac_configure_args | ||
2450 | # | ||
2451 | # Compiler output produced by configure, useful for debugging | ||
2452 | # configure, is in ./config.log if it exists. | ||
2453 | |||
2454 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | ||
2455 | for ac_option | ||
2456 | do | ||
2457 | case "\$ac_option" in | ||
2458 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
2459 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | ||
2460 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | ||
2461 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | ||
2462 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | ||
2463 | exit 0 ;; | ||
2464 | -help | --help | --hel | --he | --h) | ||
2465 | echo "\$ac_cs_usage"; exit 0 ;; | ||
2466 | *) echo "\$ac_cs_usage"; exit 1 ;; | ||
2467 | esac | ||
2468 | done | ||
2469 | |||
2470 | ac_given_srcdir=$srcdir | ||
2471 | ac_given_INSTALL="$INSTALL" | ||
2472 | |||
2473 | trap 'rm -fr `echo "Makefile | ||
2474 | doc/Makefile | ||
2475 | test/Makefile | ||
2476 | djgpp/Makefile | ||
2477 | xdelta-config | ||
2478 | libedsio/Makefile | ||
2479 | libedsio/edsio-comp config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | ||
2480 | EOF | ||
2481 | cat >> $CONFIG_STATUS <<EOF | ||
2482 | |||
2483 | # Protect against being on the right side of a sed subst in config.status. | ||
2484 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | ||
2485 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | ||
2486 | $ac_vpsub | ||
2487 | $extrasub | ||
2488 | s%@SHELL@%$SHELL%g | ||
2489 | s%@CFLAGS@%$CFLAGS%g | ||
2490 | s%@CPPFLAGS@%$CPPFLAGS%g | ||
2491 | s%@CXXFLAGS@%$CXXFLAGS%g | ||
2492 | s%@FFLAGS@%$FFLAGS%g | ||
2493 | s%@DEFS@%$DEFS%g | ||
2494 | s%@LDFLAGS@%$LDFLAGS%g | ||
2495 | s%@LIBS@%$LIBS%g | ||
2496 | s%@exec_prefix@%$exec_prefix%g | ||
2497 | s%@prefix@%$prefix%g | ||
2498 | s%@program_transform_name@%$program_transform_name%g | ||
2499 | s%@bindir@%$bindir%g | ||
2500 | s%@sbindir@%$sbindir%g | ||
2501 | s%@libexecdir@%$libexecdir%g | ||
2502 | s%@datadir@%$datadir%g | ||
2503 | s%@sysconfdir@%$sysconfdir%g | ||
2504 | s%@sharedstatedir@%$sharedstatedir%g | ||
2505 | s%@localstatedir@%$localstatedir%g | ||
2506 | s%@libdir@%$libdir%g | ||
2507 | s%@includedir@%$includedir%g | ||
2508 | s%@oldincludedir@%$oldincludedir%g | ||
2509 | s%@infodir@%$infodir%g | ||
2510 | s%@mandir@%$mandir%g | ||
2511 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | ||
2512 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | ||
2513 | s%@INSTALL_DATA@%$INSTALL_DATA%g | ||
2514 | s%@PACKAGE@%$PACKAGE%g | ||
2515 | s%@VERSION@%$VERSION%g | ||
2516 | s%@ACLOCAL@%$ACLOCAL%g | ||
2517 | s%@AUTOCONF@%$AUTOCONF%g | ||
2518 | s%@AUTOMAKE@%$AUTOMAKE%g | ||
2519 | s%@AUTOHEADER@%$AUTOHEADER%g | ||
2520 | s%@MAKEINFO@%$MAKEINFO%g | ||
2521 | s%@SET_MAKE@%$SET_MAKE%g | ||
2522 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | ||
2523 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | ||
2524 | s%@MAINT@%$MAINT%g | ||
2525 | s%@CC@%$CC%g | ||
2526 | s%@CPP@%$CPP%g | ||
2527 | s%@host@%$host%g | ||
2528 | s%@host_alias@%$host_alias%g | ||
2529 | s%@host_cpu@%$host_cpu%g | ||
2530 | s%@host_vendor@%$host_vendor%g | ||
2531 | s%@host_os@%$host_os%g | ||
2532 | s%@build@%$build%g | ||
2533 | s%@build_alias@%$build_alias%g | ||
2534 | s%@build_cpu@%$build_cpu%g | ||
2535 | s%@build_vendor@%$build_vendor%g | ||
2536 | s%@build_os@%$build_os%g | ||
2537 | s%@RANLIB@%$RANLIB%g | ||
2538 | s%@LD@%$LD%g | ||
2539 | s%@NM@%$NM%g | ||
2540 | s%@LN_S@%$LN_S%g | ||
2541 | s%@LIBTOOL@%$LIBTOOL%g | ||
2542 | s%@EMACS@%$EMACS%g | ||
2543 | s%@top_srcdir_absolute@%$top_srcdir_absolute%g | ||
2544 | s%@GLIB_CONFIG@%$GLIB_CONFIG%g | ||
2545 | s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g | ||
2546 | s%@GLIB_LIBS@%$GLIB_LIBS%g | ||
2547 | |||
2548 | CEOF | ||
2549 | EOF | ||
2550 | |||
2551 | cat >> $CONFIG_STATUS <<\EOF | ||
2552 | |||
2553 | # Split the substitutions into bite-sized pieces for seds with | ||
2554 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
2555 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | ||
2556 | ac_file=1 # Number of current file. | ||
2557 | ac_beg=1 # First line for current file. | ||
2558 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | ||
2559 | ac_more_lines=: | ||
2560 | ac_sed_cmds="" | ||
2561 | while $ac_more_lines; do | ||
2562 | if test $ac_beg -gt 1; then | ||
2563 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | ||
2564 | else | ||
2565 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | ||
2566 | fi | ||
2567 | if test ! -s conftest.s$ac_file; then | ||
2568 | ac_more_lines=false | ||
2569 | rm -f conftest.s$ac_file | ||
2570 | else | ||
2571 | if test -z "$ac_sed_cmds"; then | ||
2572 | ac_sed_cmds="sed -f conftest.s$ac_file" | ||
2573 | else | ||
2574 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | ||
2575 | fi | ||
2576 | ac_file=`expr $ac_file + 1` | ||
2577 | ac_beg=$ac_end | ||
2578 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | ||
2579 | fi | ||
2580 | done | ||
2581 | if test -z "$ac_sed_cmds"; then | ||
2582 | ac_sed_cmds=cat | ||
2583 | fi | ||
2584 | EOF | ||
2585 | |||
2586 | cat >> $CONFIG_STATUS <<EOF | ||
2587 | |||
2588 | CONFIG_FILES=\${CONFIG_FILES-"Makefile | ||
2589 | doc/Makefile | ||
2590 | test/Makefile | ||
2591 | djgpp/Makefile | ||
2592 | xdelta-config | ||
2593 | libedsio/Makefile | ||
2594 | libedsio/edsio-comp"} | ||
2595 | EOF | ||
2596 | cat >> $CONFIG_STATUS <<\EOF | ||
2597 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | ||
2598 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
2599 | case "$ac_file" in | ||
2600 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
2601 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
2602 | *) ac_file_in="${ac_file}.in" ;; | ||
2603 | esac | ||
2604 | |||
2605 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | ||
2606 | |||
2607 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
2608 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
2609 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
2610 | # The file is in a subdirectory. | ||
2611 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
2612 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | ||
2613 | # A "../" for each directory in $ac_dir_suffix. | ||
2614 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | ||
2615 | else | ||
2616 | ac_dir_suffix= ac_dots= | ||
2617 | fi | ||
2618 | |||
2619 | case "$ac_given_srcdir" in | ||
2620 | .) srcdir=. | ||
2621 | if test -z "$ac_dots"; then top_srcdir=. | ||
2622 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | ||
2623 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | ||
2624 | *) # Relative path. | ||
2625 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | ||
2626 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
2627 | esac | ||
2628 | |||
2629 | case "$ac_given_INSTALL" in | ||
2630 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | ||
2631 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | ||
2632 | esac | ||
2633 | |||
2634 | echo creating "$ac_file" | ||
2635 | rm -f "$ac_file" | ||
2636 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | ||
2637 | case "$ac_file" in | ||
2638 | *Makefile*) ac_comsub="1i\\ | ||
2639 | # $configure_input" ;; | ||
2640 | *) ac_comsub= ;; | ||
2641 | esac | ||
2642 | |||
2643 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
2644 | sed -e "$ac_comsub | ||
2645 | s%@configure_input@%$configure_input%g | ||
2646 | s%@srcdir@%$srcdir%g | ||
2647 | s%@top_srcdir@%$top_srcdir%g | ||
2648 | s%@INSTALL@%$INSTALL%g | ||
2649 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | ||
2650 | fi; done | ||
2651 | rm -f conftest.s* | ||
2652 | |||
2653 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
2654 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
2655 | # | ||
2656 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
2657 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
2658 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | ||
2659 | ac_dC='\3' | ||
2660 | ac_dD='%g' | ||
2661 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | ||
2662 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
2663 | ac_uB='\([ ]\)%\1#\2define\3' | ||
2664 | ac_uC=' ' | ||
2665 | ac_uD='\4%g' | ||
2666 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
2667 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
2668 | ac_eB='$%\1#\2define\3' | ||
2669 | ac_eC=' ' | ||
2670 | ac_eD='%g' | ||
2671 | |||
2672 | if test "${CONFIG_HEADERS+set}" != set; then | ||
2673 | EOF | ||
2674 | cat >> $CONFIG_STATUS <<EOF | ||
2675 | CONFIG_HEADERS="config.h" | ||
2676 | EOF | ||
2677 | cat >> $CONFIG_STATUS <<\EOF | ||
2678 | fi | ||
2679 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | ||
2680 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
2681 | case "$ac_file" in | ||
2682 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
2683 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
2684 | *) ac_file_in="${ac_file}.in" ;; | ||
2685 | esac | ||
2686 | |||
2687 | echo creating $ac_file | ||
2688 | |||
2689 | rm -f conftest.frag conftest.in conftest.out | ||
2690 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
2691 | cat $ac_file_inputs > conftest.in | ||
2692 | |||
2693 | EOF | ||
2694 | |||
2695 | # Transform confdefs.h into a sed script conftest.vals that substitutes | ||
2696 | # the proper values into config.h.in to produce config.h. And first: | ||
2697 | # Protect against being on the right side of a sed subst in config.status. | ||
2698 | # Protect against being in an unquoted here document in config.status. | ||
2699 | rm -f conftest.vals | ||
2700 | cat > conftest.hdr <<\EOF | ||
2701 | s/[\\&%]/\\&/g | ||
2702 | s%[\\$`]%\\&%g | ||
2703 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | ||
2704 | s%ac_d%ac_u%gp | ||
2705 | s%ac_u%ac_e%gp | ||
2706 | EOF | ||
2707 | sed -n -f conftest.hdr confdefs.h > conftest.vals | ||
2708 | rm -f conftest.hdr | ||
2709 | |||
2710 | # This sed command replaces #undef with comments. This is necessary, for | ||
2711 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
2712 | # on some systems where configure will not decide to define it. | ||
2713 | cat >> conftest.vals <<\EOF | ||
2714 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | ||
2715 | EOF | ||
2716 | |||
2717 | # Break up conftest.vals because some shells have a limit on | ||
2718 | # the size of here documents, and old seds have small limits too. | ||
2719 | |||
2720 | rm -f conftest.tail | ||
2721 | while : | ||
2722 | do | ||
2723 | ac_lines=`grep -c . conftest.vals` | ||
2724 | # grep -c gives empty output for an empty file on some AIX systems. | ||
2725 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | ||
2726 | # Write a limited-size here document to conftest.frag. | ||
2727 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | ||
2728 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | ||
2729 | echo 'CEOF | ||
2730 | sed -f conftest.frag conftest.in > conftest.out | ||
2731 | rm -f conftest.in | ||
2732 | mv conftest.out conftest.in | ||
2733 | ' >> $CONFIG_STATUS | ||
2734 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | ||
2735 | rm -f conftest.vals | ||
2736 | mv conftest.tail conftest.vals | ||
2737 | done | ||
2738 | rm -f conftest.vals | ||
2739 | |||
2740 | cat >> $CONFIG_STATUS <<\EOF | ||
2741 | rm -f conftest.frag conftest.h | ||
2742 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | ||
2743 | cat conftest.in >> conftest.h | ||
2744 | rm -f conftest.in | ||
2745 | if cmp -s $ac_file conftest.h 2>/dev/null; then | ||
2746 | echo "$ac_file is unchanged" | ||
2747 | rm -f conftest.h | ||
2748 | else | ||
2749 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
2750 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
2751 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
2752 | # The file is in a subdirectory. | ||
2753 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
2754 | fi | ||
2755 | rm -f $ac_file | ||
2756 | mv conftest.h $ac_file | ||
2757 | fi | ||
2758 | fi; done | ||
2759 | |||
2760 | EOF | ||
2761 | cat >> $CONFIG_STATUS <<EOF | ||
2762 | |||
2763 | |||
2764 | EOF | ||
2765 | cat >> $CONFIG_STATUS <<\EOF | ||
2766 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | ||
2767 | chmod +x libedsio/edsio-comp xdelta-config | ||
2768 | |||
2769 | exit 0 | ||
2770 | EOF | ||
2771 | chmod +x $CONFIG_STATUS | ||
2772 | rm -fr confdefs* $ac_clean_files | ||
2773 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | ||
2774 | |||