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