]>
Commit | Line | Data |
---|---|---|
50e1e10f TT |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.4 | |
5 | # Copyright (C) 1992, 1993, 1994 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: | |
14 | ac_help="$ac_help | |
15 | --enable-dll-shlibs select DLL libraries" | |
16 | ac_help="$ac_help | |
17 | --enable-elf-shlibs select ELF shared libraries" | |
18 | ac_help="$ac_help | |
19 | --enable-bsd-shlibs select BSD shared libraries" | |
20 | ac_help="$ac_help | |
21 | --enable-profile build profiling libraries" | |
22 | ac_help="$ac_help | |
23 | --enable-checker build checker libraries" | |
24 | ac_help="$ac_help | |
25 | --enable-gcc-wall enable GCC anal warnings" | |
26 | ||
27 | # Initialize some variables set by options. | |
28 | # The variables have the same names as the options, with | |
29 | # dashes changed to underlines. | |
30 | build=NONE | |
31 | cache_file=./config.cache | |
32 | exec_prefix=NONE | |
33 | host=NONE | |
34 | no_create= | |
35 | nonopt=NONE | |
36 | no_recursion= | |
37 | prefix=NONE | |
38 | program_prefix=NONE | |
39 | program_suffix=NONE | |
40 | program_transform_name=s,x,x, | |
41 | silent= | |
42 | site= | |
43 | srcdir= | |
44 | target=NONE | |
45 | verbose= | |
46 | x_includes=NONE | |
47 | x_libraries=NONE | |
48 | ||
49 | # Initialize some other variables. | |
50 | subdirs= | |
51 | ||
52 | ac_prev= | |
53 | for ac_option | |
54 | do | |
55 | ||
56 | # If the previous option needs an argument, assign it. | |
57 | if test -n "$ac_prev"; then | |
58 | eval "$ac_prev=\$ac_option" | |
59 | ac_prev= | |
60 | continue | |
61 | fi | |
62 | ||
63 | case "$ac_option" in | |
64 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
65 | *) ac_optarg= ;; | |
66 | esac | |
67 | ||
68 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
69 | ||
70 | case "$ac_option" in | |
71 | ||
72 | -build | --build | --buil | --bui | --bu | --b) | |
73 | ac_prev=build ;; | |
74 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) | |
75 | build="$ac_optarg" ;; | |
76 | ||
77 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
78 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
79 | ac_prev=cache_file ;; | |
80 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
81 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
82 | cache_file="$ac_optarg" ;; | |
83 | ||
84 | -disable-* | --disable-*) | |
85 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
86 | # Reject names that are not valid shell variable names. | |
87 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
88 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
89 | fi | |
90 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
91 | eval "enable_${ac_feature}=no" ;; | |
92 | ||
93 | -enable-* | --enable-*) | |
94 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
95 | # Reject names that are not valid shell variable names. | |
96 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
97 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
98 | fi | |
99 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
100 | case "$ac_option" in | |
101 | *=*) ;; | |
102 | *) ac_optarg=yes ;; | |
103 | esac | |
104 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
105 | ||
106 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
107 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
108 | | --exec | --exe | --ex) | |
109 | ac_prev=exec_prefix ;; | |
110 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
111 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
112 | | --exec=* | --exe=* | --ex=*) | |
113 | exec_prefix="$ac_optarg" ;; | |
114 | ||
115 | -gas | --gas | --ga | --g) | |
116 | # Obsolete; use --with-gas. | |
117 | with_gas=yes ;; | |
118 | ||
119 | -help | --help | --hel | --he) | |
120 | # Omit some internal or obsolete options to make the list less imposing. | |
121 | # This message is too long to be a string in the A/UX 3.1 sh. | |
122 | cat << EOF | |
123 | Usage: configure [options] [host] | |
124 | Options: [defaults in brackets after descriptions] | |
125 | Configuration: | |
126 | --cache-file=FILE cache test results in FILE | |
127 | --help print this message | |
128 | --no-create do not create output files | |
129 | --quiet, --silent do not print \`checking...' messages | |
130 | --version print the version of autoconf that created configure | |
131 | Directory and file names: | |
132 | --prefix=PREFIX install architecture-independent files in PREFIX | |
133 | [$ac_default_prefix] | |
134 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX | |
135 | [same as prefix] | |
136 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
137 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
138 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
139 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
140 | Host type: | |
141 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
142 | --host=HOST configure for HOST [guessed] | |
143 | --target=TARGET configure for TARGET [TARGET=HOST] | |
144 | Features and packages: | |
145 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
146 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
147 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
148 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
149 | --x-includes=DIR X include files are in DIR | |
150 | --x-libraries=DIR X library files are in DIR | |
151 | --enable and --with options recognized:$ac_help | |
152 | EOF | |
153 | exit 0 ;; | |
154 | ||
155 | -host | --host | --hos | --ho) | |
156 | ac_prev=host ;; | |
157 | -host=* | --host=* | --hos=* | --ho=*) | |
158 | host="$ac_optarg" ;; | |
159 | ||
160 | -nfp | --nfp | --nf) | |
161 | # Obsolete; use --without-fp. | |
162 | with_fp=no ;; | |
163 | ||
164 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
165 | | --no-cr | --no-c) | |
166 | no_create=yes ;; | |
167 | ||
168 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
169 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
170 | no_recursion=yes ;; | |
171 | ||
172 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
173 | ac_prev=prefix ;; | |
174 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
175 | prefix="$ac_optarg" ;; | |
176 | ||
177 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
178 | | --program-pre | --program-pr | --program-p) | |
179 | ac_prev=program_prefix ;; | |
180 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
181 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
182 | program_prefix="$ac_optarg" ;; | |
183 | ||
184 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
185 | | --program-suf | --program-su | --program-s) | |
186 | ac_prev=program_suffix ;; | |
187 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
188 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
189 | program_suffix="$ac_optarg" ;; | |
190 | ||
191 | -program-transform-name | --program-transform-name \ | |
192 | | --program-transform-nam | --program-transform-na \ | |
193 | | --program-transform-n | --program-transform- \ | |
194 | | --program-transform | --program-transfor \ | |
195 | | --program-transfo | --program-transf \ | |
196 | | --program-trans | --program-tran \ | |
197 | | --progr-tra | --program-tr | --program-t) | |
198 | ac_prev=program_transform_name ;; | |
199 | -program-transform-name=* | --program-transform-name=* \ | |
200 | | --program-transform-nam=* | --program-transform-na=* \ | |
201 | | --program-transform-n=* | --program-transform-=* \ | |
202 | | --program-transform=* | --program-transfor=* \ | |
203 | | --program-transfo=* | --program-transf=* \ | |
204 | | --program-trans=* | --program-tran=* \ | |
205 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
206 | program_transform_name="$ac_optarg" ;; | |
207 | ||
208 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
209 | | -silent | --silent | --silen | --sile | --sil) | |
210 | silent=yes ;; | |
211 | ||
212 | -site | --site | --sit) | |
213 | ac_prev=site ;; | |
214 | -site=* | --site=* | --sit=*) | |
215 | site="$ac_optarg" ;; | |
216 | ||
217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
218 | ac_prev=srcdir ;; | |
219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
220 | srcdir="$ac_optarg" ;; | |
221 | ||
222 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
223 | ac_prev=target ;; | |
224 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
225 | target="$ac_optarg" ;; | |
226 | ||
227 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
228 | verbose=yes ;; | |
229 | ||
230 | -version | --version | --versio | --versi | --vers) | |
231 | echo "configure generated by autoconf version 2.4" | |
232 | exit 0 ;; | |
233 | ||
234 | -with-* | --with-*) | |
235 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
236 | # Reject names that are not valid shell variable names. | |
237 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
238 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
239 | fi | |
240 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
241 | case "$ac_option" in | |
242 | *=*) ;; | |
243 | *) ac_optarg=yes ;; | |
244 | esac | |
245 | eval "with_${ac_package}='$ac_optarg'" ;; | |
246 | ||
247 | -without-* | --without-*) | |
248 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
249 | # Reject names that are not valid shell variable names. | |
250 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
251 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
252 | fi | |
253 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
254 | eval "with_${ac_package}=no" ;; | |
255 | ||
256 | --x) | |
257 | # Obsolete; use --with-x. | |
258 | with_x=yes ;; | |
259 | ||
260 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
261 | | --x-incl | --x-inc | --x-in | --x-i) | |
262 | ac_prev=x_includes ;; | |
263 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
264 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
265 | x_includes="$ac_optarg" ;; | |
266 | ||
267 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
268 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
269 | ac_prev=x_libraries ;; | |
270 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
271 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
272 | x_libraries="$ac_optarg" ;; | |
273 | ||
274 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
275 | ;; | |
276 | ||
277 | *) | |
278 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
279 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
280 | fi | |
281 | if test "x$nonopt" != xNONE; then | |
282 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
283 | fi | |
284 | nonopt="$ac_option" | |
285 | ;; | |
286 | ||
287 | esac | |
288 | done | |
289 | ||
290 | if test -n "$ac_prev"; then | |
291 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
292 | fi | |
293 | ||
294 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
295 | ||
296 | # File descriptor usage: | |
297 | # 0 standard input | |
298 | # 1 file creation | |
299 | # 2 errors and warnings | |
300 | # 3 some systems may open it to /dev/tty | |
301 | # 4 used on the Kubota Titan | |
302 | # 6 checking for... messages and results | |
303 | # 5 compiler messages saved in config.log | |
304 | if test "$silent" = yes; then | |
305 | exec 6>/dev/null | |
306 | else | |
307 | exec 6>&1 | |
308 | fi | |
309 | exec 5>./config.log | |
310 | ||
311 | echo "\ | |
312 | This file contains any messages produced by compilers while | |
313 | running configure, to aid debugging if configure makes a mistake. | |
314 | " 1>&5 | |
315 | ||
316 | # Strip out --no-create and --no-recursion so they do not pile up. | |
317 | # Also quote any args containing shell metacharacters. | |
318 | ac_configure_args= | |
319 | for ac_arg | |
320 | do | |
321 | case "$ac_arg" in | |
322 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
323 | | --no-cr | --no-c) ;; | |
324 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
325 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
326 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
327 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
328 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
329 | esac | |
330 | done | |
331 | ||
332 | # NLS nuisances. | |
333 | # Only set LANG and LC_ALL to C if already set. | |
334 | # These must not be set unconditionally because not all systems understand | |
335 | # e.g. LANG=C (notably SCO). | |
336 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
337 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
338 | ||
339 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
340 | rm -rf conftest* confdefs.h | |
341 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
342 | echo > confdefs.h | |
343 | ||
344 | # A filename unique to this package, relative to the directory that | |
345 | # configure is in, which we can look for to find out if srcdir is correct. | |
346 | ac_unique_file=version.h | |
347 | ||
348 | # Find the source files, if location was not specified. | |
349 | if test -z "$srcdir"; then | |
350 | ac_srcdir_defaulted=yes | |
351 | # Try the directory containing this script, then its parent. | |
352 | ac_prog=$0 | |
353 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
354 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
355 | srcdir=$ac_confdir | |
356 | if test ! -r $srcdir/$ac_unique_file; then | |
357 | srcdir=.. | |
358 | fi | |
359 | else | |
360 | ac_srcdir_defaulted=no | |
361 | fi | |
362 | if test ! -r $srcdir/$ac_unique_file; then | |
363 | if test "$ac_srcdir_defaulted" = yes; then | |
364 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
365 | else | |
366 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
367 | fi | |
368 | fi | |
369 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
370 | ||
371 | # Prefer explicitly selected file to automatically selected ones. | |
372 | if test -z "$CONFIG_SITE"; then | |
373 | if test "x$prefix" != xNONE; then | |
374 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
375 | else | |
376 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
377 | fi | |
378 | fi | |
379 | for ac_site_file in $CONFIG_SITE; do | |
380 | if test -r "$ac_site_file"; then | |
381 | echo "loading site script $ac_site_file" | |
382 | . "$ac_site_file" | |
383 | fi | |
384 | done | |
385 | ||
386 | if test -r "$cache_file"; then | |
387 | echo "loading cache $cache_file" | |
388 | . $cache_file | |
389 | else | |
390 | echo "creating cache $cache_file" | |
391 | > $cache_file | |
392 | fi | |
393 | ||
394 | ac_ext=c | |
395 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
396 | ac_cpp='$CPP $CPPFLAGS' | |
397 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' | |
398 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | |
399 | ||
400 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
401 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
402 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
403 | ac_n= ac_c=' | |
404 | ' ac_t=' ' | |
405 | else | |
406 | ac_n=-n ac_c= ac_t= | |
407 | fi | |
408 | else | |
409 | ac_n= ac_c='\c' ac_t= | |
410 | fi | |
411 | ||
412 | ||
413 | MCONFIG=./MCONFIG | |
414 | ||
415 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. | |
416 | enableval="$enable_dll_shlibs" | |
417 | if test -n "$enableval"; then | |
418 | if test "$enableval" = "no" | |
419 | then | |
420 | DLL_CMT=# | |
421 | MAKEFILE_DLL=/dev/null | |
422 | echo "Disabling DLL shared libraries" | |
423 | else | |
424 | DLL_CMT= | |
425 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib | |
426 | echo "Enabling DLL shared libraries" | |
427 | fi | |
428 | ||
429 | else | |
430 | MAKEFILE_DLL=/dev/null | |
431 | DLL_CMT=# | |
432 | echo "Disabling DLL shared libraries by default" | |
433 | ||
434 | fi | |
435 | ||
436 | ||
437 | ||
438 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. | |
439 | enableval="$enable_elf_shlibs" | |
440 | if test -n "$enableval"; then | |
441 | if test "$enableval" = "no" | |
442 | then | |
443 | ELF_CMT=# | |
444 | MAKEFILE_ELF=/dev/null | |
445 | echo "Disabling ELF shared libraries" | |
446 | else | |
447 | ELF_CMT= | |
448 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
449 | echo "Enabling ELF shared libraries" | |
450 | fi | |
451 | ||
452 | else | |
453 | MAKEFILE_ELF=/dev/null | |
454 | ELF_CMT=# | |
455 | echo "Disabling ELF shared libraries by default" | |
456 | ||
457 | fi | |
458 | ||
459 | ||
460 | ||
461 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. | |
462 | enableval="$enable_bsd_shlibs" | |
463 | if test -n "$enableval"; then | |
464 | if test "$enableval" = "no" | |
465 | then | |
466 | BSDLIB_CMT=# | |
467 | MAKEFILE_BSDLIB=/dev/null | |
468 | echo "Disabling BSD shared libraries" | |
469 | else | |
470 | BSDLIB_CMT= | |
471 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
472 | echo "Enabling BSD shared libraries" | |
473 | fi | |
474 | ||
475 | else | |
476 | MAKEFILE_BSDLIB=/dev/null | |
477 | BSDLIB_CMT=# | |
478 | echo "Disabling BSD shared libraries by default" | |
479 | ||
480 | fi | |
481 | ||
482 | ||
483 | ||
484 | # Check whether --enable-profile or --disable-profile was given. | |
485 | enableval="$enable_profile" | |
486 | if test -n "$enableval"; then | |
487 | if test "$enableval" = "no" | |
488 | then | |
489 | PROFILE_CMT=# | |
490 | MAKEFILE_PROFILE=/dev/null | |
491 | echo "Disabling profiling libraries" | |
492 | else | |
493 | PROFILE_CMT= | |
494 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
495 | echo "Building profiling libraries" | |
496 | fi | |
497 | ||
498 | else | |
499 | PROFILE_CMT=# | |
500 | MAKEFILE_PROFILE=/dev/null | |
501 | echo "Disabling profiling libraries by default" | |
502 | ||
503 | fi | |
504 | ||
505 | ||
506 | ||
507 | # Check whether --enable-checker or --disable-checker was given. | |
508 | enableval="$enable_checker" | |
509 | if test -n "$enableval"; then | |
510 | if test "$enableval" = "no" | |
511 | then | |
512 | CHECKER_CMT=# | |
513 | MAKEFILE_CHECKER=/dev/null | |
514 | echo "Disabling checker libraries" | |
515 | else | |
516 | CHECKER_CMT= | |
517 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | |
518 | echo "Building checker libraries" | |
519 | fi | |
520 | ||
521 | else | |
522 | CHECKER_CMT=# | |
523 | MAKEFILE_CHECKER=/dev/null | |
524 | echo "Disabling checker libraries by default" | |
525 | ||
526 | fi | |
527 | ||
528 | ||
529 | ||
530 | # Check whether --enable-gcc-wall or --disable-gcc-wall was given. | |
531 | enableval="$enable_gcc_wall" | |
532 | if test -n "$enableval"; then | |
533 | if test "$enableval" = "no" | |
534 | then | |
535 | W=# | |
536 | echo "Disabling GCC warnings" | |
537 | else | |
538 | W= | |
539 | echo "Enabling GCC warnings" | |
540 | fi | |
541 | ||
542 | else | |
543 | W=# | |
544 | echo "Disabling GCC warnings by default" | |
545 | ||
546 | fi | |
547 | ||
548 | ||
549 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | |
550 | ||
551 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
552 | set dummy ${MAKE-make}; ac_make=$2 | |
553 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
555 | else | |
556 | cat > conftestmake <<\EOF | |
557 | all: | |
558 | @echo 'ac_maketemp="${MAKE}"' | |
559 | EOF | |
560 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
561 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
562 | if test -n "$ac_maketemp"; then | |
563 | eval ac_cv_prog_make_${ac_make}_set=yes | |
564 | else | |
565 | eval ac_cv_prog_make_${ac_make}_set=no | |
566 | fi | |
567 | rm -f conftestmake | |
568 | fi | |
569 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
570 | echo "$ac_t""yes" 1>&6 | |
571 | SET_MAKE= | |
572 | else | |
573 | echo "$ac_t""no" 1>&6 | |
574 | SET_MAKE="MAKE=${MAKE-make}" | |
575 | fi | |
576 | ||
577 | # Extract the first word of "ln", so it can be a program name with args. | |
578 | set dummy ln; ac_word=$2 | |
579 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
580 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then | |
581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
582 | else | |
583 | case "$LN" in | |
584 | /*) | |
585 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
586 | ;; | |
587 | *) | |
588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
589 | for ac_dir in $PATH; do | |
590 | test -z "$ac_dir" && ac_dir=. | |
591 | if test -f $ac_dir/$ac_word; then | |
592 | ac_cv_path_LN="$ac_dir/$ac_word" | |
593 | break | |
594 | fi | |
595 | done | |
596 | IFS="$ac_save_ifs" | |
597 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" | |
598 | ;; | |
599 | esac | |
600 | fi | |
601 | LN="$ac_cv_path_LN" | |
602 | if test -n "$LN"; then | |
603 | echo "$ac_t""$LN" 1>&6 | |
604 | else | |
605 | echo "$ac_t""no" 1>&6 | |
606 | fi | |
607 | ||
608 | # Extract the first word of "mv", so it can be a program name with args. | |
609 | set dummy mv; ac_word=$2 | |
610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
611 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then | |
612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
613 | else | |
614 | case "$MV" in | |
615 | /*) | |
616 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
617 | ;; | |
618 | *) | |
619 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
620 | for ac_dir in $PATH; do | |
621 | test -z "$ac_dir" && ac_dir=. | |
622 | if test -f $ac_dir/$ac_word; then | |
623 | ac_cv_path_MV="$ac_dir/$ac_word" | |
624 | break | |
625 | fi | |
626 | done | |
627 | IFS="$ac_save_ifs" | |
628 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | |
629 | ;; | |
630 | esac | |
631 | fi | |
632 | MV="$ac_cv_path_MV" | |
633 | if test -n "$MV"; then | |
634 | echo "$ac_t""$MV" 1>&6 | |
635 | else | |
636 | echo "$ac_t""no" 1>&6 | |
637 | fi | |
638 | ||
639 | # Extract the first word of "cp", so it can be a program name with args. | |
640 | set dummy cp; ac_word=$2 | |
641 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
642 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then | |
643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
644 | else | |
645 | case "$CP" in | |
646 | /*) | |
647 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
648 | ;; | |
649 | *) | |
650 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
651 | for ac_dir in $PATH; do | |
652 | test -z "$ac_dir" && ac_dir=. | |
653 | if test -f $ac_dir/$ac_word; then | |
654 | ac_cv_path_CP="$ac_dir/$ac_word" | |
655 | break | |
656 | fi | |
657 | done | |
658 | IFS="$ac_save_ifs" | |
659 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | |
660 | ;; | |
661 | esac | |
662 | fi | |
663 | CP="$ac_cv_path_CP" | |
664 | if test -n "$CP"; then | |
665 | echo "$ac_t""$CP" 1>&6 | |
666 | else | |
667 | echo "$ac_t""no" 1>&6 | |
668 | fi | |
669 | ||
670 | # Extract the first word of "rm", so it can be a program name with args. | |
671 | set dummy rm; ac_word=$2 | |
672 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
673 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then | |
674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
675 | else | |
676 | case "$RM" in | |
677 | /*) | |
678 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
679 | ;; | |
680 | *) | |
681 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
682 | for ac_dir in $PATH; do | |
683 | test -z "$ac_dir" && ac_dir=. | |
684 | if test -f $ac_dir/$ac_word; then | |
685 | ac_cv_path_RM="$ac_dir/$ac_word" | |
686 | break | |
687 | fi | |
688 | done | |
689 | IFS="$ac_save_ifs" | |
690 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | |
691 | ;; | |
692 | esac | |
693 | fi | |
694 | RM="$ac_cv_path_RM" | |
695 | if test -n "$RM"; then | |
696 | echo "$ac_t""$RM" 1>&6 | |
697 | else | |
698 | echo "$ac_t""no" 1>&6 | |
699 | fi | |
700 | ||
701 | # Extract the first word of "chmod", so it can be a program name with args. | |
702 | set dummy chmod; ac_word=$2 | |
703 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
704 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then | |
705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
706 | else | |
707 | case "$CHMOD" in | |
708 | /*) | |
709 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
710 | ;; | |
711 | *) | |
712 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
713 | for ac_dir in $PATH; do | |
714 | test -z "$ac_dir" && ac_dir=. | |
715 | if test -f $ac_dir/$ac_word; then | |
716 | ac_cv_path_CHMOD="$ac_dir/$ac_word" | |
717 | break | |
718 | fi | |
719 | done | |
720 | IFS="$ac_save_ifs" | |
721 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" | |
722 | ;; | |
723 | esac | |
724 | fi | |
725 | CHMOD="$ac_cv_path_CHMOD" | |
726 | if test -n "$CHMOD"; then | |
727 | echo "$ac_t""$CHMOD" 1>&6 | |
728 | else | |
729 | echo "$ac_t""no" 1>&6 | |
730 | fi | |
731 | ||
732 | # Extract the first word of "awk", so it can be a program name with args. | |
733 | set dummy awk; ac_word=$2 | |
734 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
735 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then | |
736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
737 | else | |
738 | case "$AWK" in | |
739 | /*) | |
740 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. | |
741 | ;; | |
742 | *) | |
743 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
744 | for ac_dir in $PATH; do | |
745 | test -z "$ac_dir" && ac_dir=. | |
746 | if test -f $ac_dir/$ac_word; then | |
747 | ac_cv_path_AWK="$ac_dir/$ac_word" | |
748 | break | |
749 | fi | |
750 | done | |
751 | IFS="$ac_save_ifs" | |
752 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" | |
753 | ;; | |
754 | esac | |
755 | fi | |
756 | AWK="$ac_cv_path_AWK" | |
757 | if test -n "$AWK"; then | |
758 | echo "$ac_t""$AWK" 1>&6 | |
759 | else | |
760 | echo "$ac_t""no" 1>&6 | |
761 | fi | |
762 | ||
763 | # Extract the first word of "sed", so it can be a program name with args. | |
764 | set dummy sed; ac_word=$2 | |
765 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
766 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then | |
767 | echo $ac_n "(cached) $ac_c" 1>&6 | |
768 | else | |
769 | case "$SED" in | |
770 | /*) | |
771 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
772 | ;; | |
773 | *) | |
774 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
775 | for ac_dir in $PATH; do | |
776 | test -z "$ac_dir" && ac_dir=. | |
777 | if test -f $ac_dir/$ac_word; then | |
778 | ac_cv_path_SED="$ac_dir/$ac_word" | |
779 | break | |
780 | fi | |
781 | done | |
782 | IFS="$ac_save_ifs" | |
783 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | |
784 | ;; | |
785 | esac | |
786 | fi | |
787 | SED="$ac_cv_path_SED" | |
788 | if test -n "$SED"; then | |
789 | echo "$ac_t""$SED" 1>&6 | |
790 | else | |
791 | echo "$ac_t""no" 1>&6 | |
792 | fi | |
793 | ||
794 | ac_aux_dir= | |
795 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
796 | if test -f $ac_dir/install-sh; then | |
797 | ac_aux_dir=$ac_dir | |
798 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
799 | break | |
800 | elif test -f $ac_dir/install.sh; then | |
801 | ac_aux_dir=$ac_dir | |
802 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
803 | break | |
804 | fi | |
805 | done | |
806 | if test -z "$ac_aux_dir"; then | |
807 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
808 | fi | |
809 | ac_config_guess=$ac_aux_dir/config.guess | |
810 | ac_config_sub=$ac_aux_dir/config.sub | |
811 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
812 | ||
813 | ||
814 | # Make sure we can run config.sub. | |
815 | if $ac_config_sub sun4 >/dev/null 2>&1; then : | |
816 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
817 | fi | |
818 | ||
819 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
820 | ||
821 | host_alias=$host | |
822 | case "$host_alias" in | |
823 | NONE) | |
824 | case $nonopt in | |
825 | NONE) | |
826 | if host_alias=`$ac_config_guess`; then : | |
827 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
828 | fi ;; | |
829 | *) host_alias=$nonopt ;; | |
830 | esac ;; | |
831 | esac | |
832 | ||
833 | host=`$ac_config_sub $host_alias` | |
834 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
835 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
836 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
837 | echo "$ac_t""$host" 1>&6 | |
838 | ||
839 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
840 | ||
841 | build_alias=$build | |
842 | case "$build_alias" in | |
843 | NONE) | |
844 | case $nonopt in | |
845 | NONE) build_alias=$host_alias ;; | |
846 | *) build_alias=$nonopt ;; | |
847 | esac ;; | |
848 | esac | |
849 | ||
850 | build=`$ac_config_sub $build_alias` | |
851 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` | |
852 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
853 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
854 | echo "$ac_t""$build" 1>&6 | |
855 | ||
856 | if test $host != $build; then | |
857 | ac_tool_prefix=${host_alias}- | |
858 | else | |
859 | ac_tool_prefix= | |
860 | fi | |
861 | ||
862 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
863 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
865 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
867 | else | |
868 | if test -n "$AR"; then | |
869 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
870 | else | |
871 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
872 | for ac_dir in $PATH; do | |
873 | test -z "$ac_dir" && ac_dir=. | |
874 | if test -f $ac_dir/$ac_word; then | |
875 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
876 | break | |
877 | fi | |
878 | done | |
879 | IFS="$ac_save_ifs" | |
880 | fi | |
881 | fi | |
882 | AR="$ac_cv_prog_AR" | |
883 | if test -n "$AR"; then | |
884 | echo "$ac_t""$AR" 1>&6 | |
885 | else | |
886 | echo "$ac_t""no" 1>&6 | |
887 | fi | |
888 | ||
889 | ||
890 | if test -z "$ac_cv_prog_AR"; then | |
891 | if test -n "$ac_tool_prefix"; then | |
892 | # Extract the first word of "ar", so it can be a program name with args. | |
893 | set dummy ar; ac_word=$2 | |
894 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
895 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
897 | else | |
898 | if test -n "$AR"; then | |
899 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
900 | else | |
901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
902 | for ac_dir in $PATH; do | |
903 | test -z "$ac_dir" && ac_dir=. | |
904 | if test -f $ac_dir/$ac_word; then | |
905 | ac_cv_prog_AR="ar" | |
906 | break | |
907 | fi | |
908 | done | |
909 | IFS="$ac_save_ifs" | |
910 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
911 | fi | |
912 | fi | |
913 | AR="$ac_cv_prog_AR" | |
914 | if test -n "$AR"; then | |
915 | echo "$ac_t""$AR" 1>&6 | |
916 | else | |
917 | echo "$ac_t""no" 1>&6 | |
918 | fi | |
919 | ||
920 | else | |
921 | AR="ar" | |
922 | fi | |
923 | fi | |
924 | ||
925 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
926 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
927 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
928 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
930 | else | |
931 | if test -n "$RANLIB"; then | |
932 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
933 | else | |
934 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
935 | for ac_dir in $PATH; do | |
936 | test -z "$ac_dir" && ac_dir=. | |
937 | if test -f $ac_dir/$ac_word; then | |
938 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
939 | break | |
940 | fi | |
941 | done | |
942 | IFS="$ac_save_ifs" | |
943 | fi | |
944 | fi | |
945 | RANLIB="$ac_cv_prog_RANLIB" | |
946 | if test -n "$RANLIB"; then | |
947 | echo "$ac_t""$RANLIB" 1>&6 | |
948 | else | |
949 | echo "$ac_t""no" 1>&6 | |
950 | fi | |
951 | ||
952 | ||
953 | if test -z "$ac_cv_prog_RANLIB"; then | |
954 | if test -n "$ac_tool_prefix"; then | |
955 | # Extract the first word of "ranlib", so it can be a program name with args. | |
956 | set dummy ranlib; ac_word=$2 | |
957 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
958 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
960 | else | |
961 | if test -n "$RANLIB"; then | |
962 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
963 | else | |
964 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
965 | for ac_dir in $PATH; do | |
966 | test -z "$ac_dir" && ac_dir=. | |
967 | if test -f $ac_dir/$ac_word; then | |
968 | ac_cv_prog_RANLIB="ranlib" | |
969 | break | |
970 | fi | |
971 | done | |
972 | IFS="$ac_save_ifs" | |
973 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
974 | fi | |
975 | fi | |
976 | RANLIB="$ac_cv_prog_RANLIB" | |
977 | if test -n "$RANLIB"; then | |
978 | echo "$ac_t""$RANLIB" 1>&6 | |
979 | else | |
980 | echo "$ac_t""no" 1>&6 | |
981 | fi | |
982 | ||
983 | else | |
984 | RANLIB=":" | |
985 | fi | |
986 | fi | |
987 | ||
988 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
989 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
990 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
991 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
993 | else | |
994 | if test -n "$STRIP"; then | |
995 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
996 | else | |
997 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
998 | for ac_dir in $PATH; do | |
999 | test -z "$ac_dir" && ac_dir=. | |
1000 | if test -f $ac_dir/$ac_word; then | |
1001 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1002 | break | |
1003 | fi | |
1004 | done | |
1005 | IFS="$ac_save_ifs" | |
1006 | fi | |
1007 | fi | |
1008 | STRIP="$ac_cv_prog_STRIP" | |
1009 | if test -n "$STRIP"; then | |
1010 | echo "$ac_t""$STRIP" 1>&6 | |
1011 | else | |
1012 | echo "$ac_t""no" 1>&6 | |
1013 | fi | |
1014 | ||
1015 | ||
1016 | if test -z "$ac_cv_prog_STRIP"; then | |
1017 | if test -n "$ac_tool_prefix"; then | |
1018 | # Extract the first word of "strip", so it can be a program name with args. | |
1019 | set dummy strip; ac_word=$2 | |
1020 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1021 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
1022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1023 | else | |
1024 | if test -n "$STRIP"; then | |
1025 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1026 | else | |
1027 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1028 | for ac_dir in $PATH; do | |
1029 | test -z "$ac_dir" && ac_dir=. | |
1030 | if test -f $ac_dir/$ac_word; then | |
1031 | ac_cv_prog_STRIP="strip" | |
1032 | break | |
1033 | fi | |
1034 | done | |
1035 | IFS="$ac_save_ifs" | |
1036 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
1037 | fi | |
1038 | fi | |
1039 | STRIP="$ac_cv_prog_STRIP" | |
1040 | if test -n "$STRIP"; then | |
1041 | echo "$ac_t""$STRIP" 1>&6 | |
1042 | else | |
1043 | echo "$ac_t""no" 1>&6 | |
1044 | fi | |
1045 | ||
1046 | else | |
1047 | STRIP=":" | |
1048 | fi | |
1049 | fi | |
1050 | ||
1051 | # Extract the first word of "gcc", so it can be a program name with args. | |
1052 | set dummy gcc; ac_word=$2 | |
1053 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1054 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1056 | else | |
1057 | if test -n "$CC"; then | |
1058 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1059 | else | |
1060 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1061 | for ac_dir in $PATH; do | |
1062 | test -z "$ac_dir" && ac_dir=. | |
1063 | if test -f $ac_dir/$ac_word; then | |
1064 | ac_cv_prog_CC="gcc" | |
1065 | break | |
1066 | fi | |
1067 | done | |
1068 | IFS="$ac_save_ifs" | |
1069 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" | |
1070 | fi | |
1071 | fi | |
1072 | CC="$ac_cv_prog_CC" | |
1073 | if test -n "$CC"; then | |
1074 | echo "$ac_t""$CC" 1>&6 | |
1075 | else | |
1076 | echo "$ac_t""no" 1>&6 | |
1077 | fi | |
1078 | ||
1079 | ||
1080 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1081 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
1082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1083 | else | |
1084 | cat > conftest.c <<EOF | |
1085 | #ifdef __GNUC__ | |
1086 | yes; | |
1087 | #endif | |
1088 | EOF | |
1089 | if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then | |
1090 | ac_cv_prog_gcc=yes | |
1091 | else | |
1092 | ac_cv_prog_gcc=no | |
1093 | fi | |
1094 | fi | |
1095 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1096 | if test $ac_cv_prog_gcc = yes; then | |
1097 | GCC=yes | |
1098 | if test "${CFLAGS+set}" != set; then | |
1099 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1100 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then | |
1101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1102 | else | |
1103 | echo 'void f(){}' > conftest.c | |
1104 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1105 | ac_cv_prog_gcc_g=yes | |
1106 | else | |
1107 | ac_cv_prog_gcc_g=no | |
1108 | fi | |
1109 | rm -f conftest* | |
1110 | ||
1111 | fi | |
1112 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 | |
1113 | if test $ac_cv_prog_gcc_g = yes; then | |
1114 | CFLAGS="-g -O" | |
1115 | else | |
1116 | CFLAGS="-O" | |
1117 | fi | |
1118 | fi | |
1119 | else | |
1120 | GCC= | |
1121 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
1122 | fi | |
1123 | ||
1124 | # Find a good install program. We prefer a C program (faster), | |
1125 | # so one script is as good as another. But avoid the broken or | |
1126 | # incompatible versions: | |
1127 | # SysV /etc/install, /usr/sbin/install | |
1128 | # SunOS /usr/etc/install | |
1129 | # IRIX /sbin/install | |
1130 | # AIX /bin/install | |
1131 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1132 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1133 | # ./install, which can be erroneously created by make from ./install.sh. | |
1134 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
1135 | if test -z "$INSTALL"; then | |
1136 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
1137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1138 | else | |
1139 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1140 | for ac_dir in $PATH; do | |
1141 | # Account for people who put trailing slashes in PATH elements. | |
1142 | case "$ac_dir/" in | |
1143 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
1144 | *) | |
1145 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1146 | for ac_prog in ginstall installbsd scoinst install; do | |
1147 | if test -f $ac_dir/$ac_prog; then | |
1148 | if test $ac_prog = install && | |
1149 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1150 | # AIX install. It has an incompatible calling convention. | |
1151 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1152 | : | |
1153 | else | |
1154 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1155 | break 2 | |
1156 | fi | |
1157 | fi | |
1158 | done | |
1159 | ;; | |
1160 | esac | |
1161 | done | |
1162 | IFS="$ac_save_ifs" | |
1163 | # As a last resort, use the slow shell script. | |
1164 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" | |
1165 | fi | |
1166 | INSTALL="$ac_cv_path_install" | |
1167 | fi | |
1168 | echo "$ac_t""$INSTALL" 1>&6 | |
1169 | ||
1170 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1171 | # It thinks the first close brace ends the variable substitution. | |
1172 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1173 | ||
1174 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1175 | ||
1176 | # If we cannot run a trivial program, we must be cross compiling. | |
1177 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 | |
1178 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then | |
1179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1180 | else | |
1181 | if test "$cross_compiling" = yes; then | |
1182 | ac_cv_c_cross=yes | |
1183 | else | |
1184 | cat > conftest.$ac_ext <<EOF | |
1185 | #line 1186 "configure" | |
1186 | #include "confdefs.h" | |
1187 | main(){return(0);} | |
1188 | EOF | |
1189 | eval $ac_link | |
1190 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
1191 | ac_cv_c_cross=no | |
1192 | else | |
1193 | ac_cv_c_cross=yes | |
1194 | fi | |
1195 | fi | |
1196 | rm -fr conftest* | |
1197 | fi | |
1198 | cross_compiling=$ac_cv_c_cross | |
1199 | echo "$ac_t""$ac_cv_c_cross" 1>&6 | |
1200 | ||
1201 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
1202 | # On Suns, sometimes $CPP names a directory. | |
1203 | if test -n "$CPP" && test -d "$CPP"; then | |
1204 | CPP= | |
1205 | fi | |
1206 | if test -z "$CPP"; then | |
1207 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1209 | else | |
1210 | # This must be in double quotes, not single quotes, because CPP may get | |
1211 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1212 | CPP="${CC-cc} -E" | |
1213 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1214 | # not just through cpp. | |
1215 | cat > conftest.$ac_ext <<EOF | |
1216 | #line 1217 "configure" | |
1217 | #include "confdefs.h" | |
1218 | #include <assert.h> | |
1219 | Syntax Error | |
1220 | EOF | |
1221 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1222 | ac_err=`grep -v '^ *+' conftest.out` | |
1223 | if test -z "$ac_err"; then | |
1224 | : | |
1225 | else | |
1226 | echo "$ac_err" >&5 | |
1227 | rm -rf conftest* | |
1228 | CPP="${CC-cc} -E -traditional-cpp" | |
1229 | cat > conftest.$ac_ext <<EOF | |
1230 | #line 1231 "configure" | |
1231 | #include "confdefs.h" | |
1232 | #include <assert.h> | |
1233 | Syntax Error | |
1234 | EOF | |
1235 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1236 | ac_err=`grep -v '^ *+' conftest.out` | |
1237 | if test -z "$ac_err"; then | |
1238 | : | |
1239 | else | |
1240 | echo "$ac_err" >&5 | |
1241 | rm -rf conftest* | |
1242 | CPP=/lib/cpp | |
1243 | fi | |
1244 | rm -f conftest* | |
1245 | fi | |
1246 | rm -f conftest* | |
1247 | ac_cv_prog_CPP="$CPP" | |
1248 | fi | |
1249 | CPP="$ac_cv_prog_CPP" | |
1250 | else | |
1251 | ac_cv_prog_CPP="$CPP" | |
1252 | fi | |
1253 | echo "$ac_t""$CPP" 1>&6 | |
1254 | ||
1255 | for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h dirent.h getopt.h linux/fd.h sys/disklabel.h | |
1256 | do | |
1257 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` | |
1258 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
1259 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1261 | else | |
1262 | cat > conftest.$ac_ext <<EOF | |
1263 | #line 1264 "configure" | |
1264 | #include "confdefs.h" | |
1265 | #include <$ac_hdr> | |
1266 | EOF | |
1267 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1268 | ac_err=`grep -v '^ *+' conftest.out` | |
1269 | if test -z "$ac_err"; then | |
1270 | rm -rf conftest* | |
1271 | eval "ac_cv_header_$ac_safe=yes" | |
1272 | else | |
1273 | echo "$ac_err" >&5 | |
1274 | rm -rf conftest* | |
1275 | eval "ac_cv_header_$ac_safe=no" | |
1276 | fi | |
1277 | rm -f conftest* | |
1278 | fi | |
1279 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1280 | echo "$ac_t""yes" 1>&6 | |
1281 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` | |
1282 | cat >> confdefs.h <<EOF | |
1283 | #define $ac_tr_hdr 1 | |
1284 | EOF | |
1285 | ||
1286 | else | |
1287 | echo "$ac_t""no" 1>&6 | |
1288 | fi | |
1289 | done | |
1290 | ||
1291 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
1292 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
1293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1294 | else | |
1295 | cat > conftest.$ac_ext <<EOF | |
1296 | #line 1297 "configure" | |
1297 | #include "confdefs.h" | |
1298 | /* System header to define __stub macros and hopefully few prototypes, | |
1299 | which can conflict with char vprintf(); below. */ | |
1300 | #include <assert.h> | |
1301 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1302 | char vprintf(); | |
1303 | ||
1304 | int main() { return 0; } | |
1305 | int t() { | |
1306 | ||
1307 | /* The GNU C library defines this for functions which it implements | |
1308 | to always fail with ENOSYS. Some functions are actually named | |
1309 | something starting with __ and the normal name is an alias. */ | |
1310 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
1311 | choke me | |
1312 | #else | |
1313 | vprintf(); | |
1314 | #endif | |
1315 | ||
1316 | ; return 0; } | |
1317 | EOF | |
1318 | if eval $ac_link; then | |
1319 | rm -rf conftest* | |
1320 | eval "ac_cv_func_vprintf=yes" | |
1321 | else | |
1322 | rm -rf conftest* | |
1323 | eval "ac_cv_func_vprintf=no" | |
1324 | fi | |
1325 | rm -f conftest* | |
1326 | ||
1327 | fi | |
1328 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
1329 | echo "$ac_t""yes" 1>&6 | |
1330 | cat >> confdefs.h <<\EOF | |
1331 | #define HAVE_VPRINTF 1 | |
1332 | EOF | |
1333 | ||
1334 | else | |
1335 | echo "$ac_t""no" 1>&6 | |
1336 | fi | |
1337 | ||
1338 | if test "$ac_cv_func_vprintf" != yes; then | |
1339 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
1340 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
1341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1342 | else | |
1343 | cat > conftest.$ac_ext <<EOF | |
1344 | #line 1345 "configure" | |
1345 | #include "confdefs.h" | |
1346 | /* System header to define __stub macros and hopefully few prototypes, | |
1347 | which can conflict with char _doprnt(); below. */ | |
1348 | #include <assert.h> | |
1349 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1350 | char _doprnt(); | |
1351 | ||
1352 | int main() { return 0; } | |
1353 | int t() { | |
1354 | ||
1355 | /* The GNU C library defines this for functions which it implements | |
1356 | to always fail with ENOSYS. Some functions are actually named | |
1357 | something starting with __ and the normal name is an alias. */ | |
1358 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
1359 | choke me | |
1360 | #else | |
1361 | _doprnt(); | |
1362 | #endif | |
1363 | ||
1364 | ; return 0; } | |
1365 | EOF | |
1366 | if eval $ac_link; then | |
1367 | rm -rf conftest* | |
1368 | eval "ac_cv_func__doprnt=yes" | |
1369 | else | |
1370 | rm -rf conftest* | |
1371 | eval "ac_cv_func__doprnt=no" | |
1372 | fi | |
1373 | rm -f conftest* | |
1374 | ||
1375 | fi | |
1376 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
1377 | echo "$ac_t""yes" 1>&6 | |
1378 | cat >> confdefs.h <<\EOF | |
1379 | #define HAVE_DOPRNT 1 | |
1380 | EOF | |
1381 | ||
1382 | else | |
1383 | echo "$ac_t""no" 1>&6 | |
1384 | fi | |
1385 | ||
1386 | fi | |
1387 | ||
1388 | echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 | |
1389 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then | |
1390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1391 | else | |
1392 | cat > conftest.$ac_ext <<EOF | |
1393 | #line 1394 "configure" | |
1394 | #include "confdefs.h" | |
1395 | #include <sys/types.h> | |
1396 | #include <dirent.h> | |
1397 | int main() { return 0; } | |
1398 | int t() { | |
1399 | struct dirent de; de.d_namlen = 0; | |
1400 | ; return 0; } | |
1401 | EOF | |
1402 | if eval $ac_compile; then | |
1403 | rm -rf conftest* | |
1404 | e2fsprogs_cv_struct_d_namlen=yes | |
1405 | else | |
1406 | rm -rf conftest* | |
1407 | e2fsprogs_cv_struct_d_namlen=no | |
1408 | fi | |
1409 | rm -f conftest* | |
1410 | ||
1411 | fi | |
1412 | ||
1413 | echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 | |
1414 | if test "$e2fsprogs_cv_struct_d_namlen" = yes; then | |
1415 | cat >> confdefs.h <<\EOF | |
1416 | #define HAVE_DIRENT_NAMLEN 1 | |
1417 | EOF | |
1418 | ||
1419 | fi | |
1420 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then | |
1421 | # if cross-compiling, with no cached values, just assume something common. | |
1422 | ac_cv_sizeof_short=2 | |
1423 | ac_cv_sizeof_int=4 | |
1424 | ac_cv_sizeof_long=4 | |
1425 | echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2 | |
1426 | fi | |
1427 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
1428 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
1429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1430 | else | |
1431 | if test "$cross_compiling" = yes; then | |
1432 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
1433 | else | |
1434 | cat > conftest.$ac_ext <<EOF | |
1435 | #line 1436 "configure" | |
1436 | #include "confdefs.h" | |
1437 | #include <stdio.h> | |
1438 | main() | |
1439 | { | |
1440 | FILE *f=fopen("conftestval", "w"); | |
1441 | if (!f) exit(1); | |
1442 | fprintf(f, "%d\n", sizeof(short)); | |
1443 | exit(0); | |
1444 | } | |
1445 | EOF | |
1446 | eval $ac_link | |
1447 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
1448 | ac_cv_sizeof_short=`cat conftestval` | |
1449 | else | |
1450 | ac_cv_sizeof_short=0 | |
1451 | fi | |
1452 | fi | |
1453 | rm -fr conftest* | |
1454 | fi | |
1455 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
1456 | cat >> confdefs.h <<EOF | |
1457 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
1458 | EOF | |
1459 | ||
1460 | ||
1461 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
1462 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
1463 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1464 | else | |
1465 | if test "$cross_compiling" = yes; then | |
1466 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
1467 | else | |
1468 | cat > conftest.$ac_ext <<EOF | |
1469 | #line 1470 "configure" | |
1470 | #include "confdefs.h" | |
1471 | #include <stdio.h> | |
1472 | main() | |
1473 | { | |
1474 | FILE *f=fopen("conftestval", "w"); | |
1475 | if (!f) exit(1); | |
1476 | fprintf(f, "%d\n", sizeof(int)); | |
1477 | exit(0); | |
1478 | } | |
1479 | EOF | |
1480 | eval $ac_link | |
1481 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
1482 | ac_cv_sizeof_int=`cat conftestval` | |
1483 | else | |
1484 | ac_cv_sizeof_int=0 | |
1485 | fi | |
1486 | fi | |
1487 | rm -fr conftest* | |
1488 | fi | |
1489 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
1490 | cat >> confdefs.h <<EOF | |
1491 | #define SIZEOF_INT $ac_cv_sizeof_int | |
1492 | EOF | |
1493 | ||
1494 | ||
1495 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
1496 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
1497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1498 | else | |
1499 | if test "$cross_compiling" = yes; then | |
1500 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
1501 | else | |
1502 | cat > conftest.$ac_ext <<EOF | |
1503 | #line 1504 "configure" | |
1504 | #include "confdefs.h" | |
1505 | #include <stdio.h> | |
1506 | main() | |
1507 | { | |
1508 | FILE *f=fopen("conftestval", "w"); | |
1509 | if (!f) exit(1); | |
1510 | fprintf(f, "%d\n", sizeof(long)); | |
1511 | exit(0); | |
1512 | } | |
1513 | EOF | |
1514 | eval $ac_link | |
1515 | if test -s conftest && (./conftest; exit) 2>/dev/null; then | |
1516 | ac_cv_sizeof_long=`cat conftestval` | |
1517 | else | |
1518 | ac_cv_sizeof_long=0 | |
1519 | fi | |
1520 | fi | |
1521 | rm -fr conftest* | |
1522 | fi | |
1523 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
1524 | cat >> confdefs.h <<EOF | |
1525 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
1526 | EOF | |
1527 | ||
1528 | ||
1529 | SIZEOF_SHORT=$ac_cv_sizeof_short | |
1530 | SIZEOF_INT=$ac_cv_sizeof_int | |
1531 | SIZEOF_LONG=$ac_cv_sizeof_long | |
1532 | ||
1533 | ||
1534 | ||
1535 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 | |
1536 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then | |
1537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1538 | else | |
1539 | cat > conftest.$ac_ext <<EOF | |
1540 | #line 1541 "configure" | |
1541 | #include "confdefs.h" | |
1542 | #include <sys/stat.h> | |
1543 | int main() { return 0; } | |
1544 | int t() { | |
1545 | struct stat stat; stat.st_flags = 0; | |
1546 | ; return 0; } | |
1547 | EOF | |
1548 | if eval $ac_compile; then | |
1549 | rm -rf conftest* | |
1550 | e2fsprogs_cv_struct_st_flags=yes | |
1551 | else | |
1552 | rm -rf conftest* | |
1553 | e2fsprogs_cv_struct_st_flags=no | |
1554 | fi | |
1555 | rm -f conftest* | |
1556 | ||
1557 | fi | |
1558 | ||
1559 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 | |
1560 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | |
1561 | cat >> confdefs.h <<\EOF | |
1562 | #define HAVE_STAT_FLAGS 1 | |
1563 | EOF | |
1564 | ||
1565 | fi | |
1566 | for ac_func in chflags getrusage llseek strdup getmntinfo | |
1567 | do | |
1568 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1569 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1571 | else | |
1572 | cat > conftest.$ac_ext <<EOF | |
1573 | #line 1574 "configure" | |
1574 | #include "confdefs.h" | |
1575 | /* System header to define __stub macros and hopefully few prototypes, | |
1576 | which can conflict with char $ac_func(); below. */ | |
1577 | #include <assert.h> | |
1578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1579 | char $ac_func(); | |
1580 | ||
1581 | int main() { return 0; } | |
1582 | int t() { | |
1583 | ||
1584 | /* The GNU C library defines this for functions which it implements | |
1585 | to always fail with ENOSYS. Some functions are actually named | |
1586 | something starting with __ and the normal name is an alias. */ | |
1587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1588 | choke me | |
1589 | #else | |
1590 | $ac_func(); | |
1591 | #endif | |
1592 | ||
1593 | ; return 0; } | |
1594 | EOF | |
1595 | if eval $ac_link; then | |
1596 | rm -rf conftest* | |
1597 | eval "ac_cv_func_$ac_func=yes" | |
1598 | else | |
1599 | rm -rf conftest* | |
1600 | eval "ac_cv_func_$ac_func=no" | |
1601 | fi | |
1602 | rm -f conftest* | |
1603 | ||
1604 | fi | |
1605 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1606 | echo "$ac_t""yes" 1>&6 | |
1607 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` | |
1608 | cat >> confdefs.h <<EOF | |
1609 | #define $ac_tr_func 1 | |
1610 | EOF | |
1611 | ||
1612 | else | |
1613 | echo "$ac_t""no" 1>&6 | |
1614 | fi | |
1615 | done | |
1616 | ||
1617 | ac_safe=`echo "linux/fs.h" | tr './\055' '___'` | |
1618 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 | |
1619 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1621 | else | |
1622 | cat > conftest.$ac_ext <<EOF | |
1623 | #line 1624 "configure" | |
1624 | #include "confdefs.h" | |
1625 | #include <linux/fs.h> | |
1626 | EOF | |
1627 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1628 | ac_err=`grep -v '^ *+' conftest.out` | |
1629 | if test -z "$ac_err"; then | |
1630 | rm -rf conftest* | |
1631 | eval "ac_cv_header_$ac_safe=yes" | |
1632 | else | |
1633 | echo "$ac_err" >&5 | |
1634 | rm -rf conftest* | |
1635 | eval "ac_cv_header_$ac_safe=no" | |
1636 | fi | |
1637 | rm -f conftest* | |
1638 | fi | |
1639 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
1640 | echo "$ac_t""yes" 1>&6 | |
1641 | linux_headers=yes | |
1642 | else | |
1643 | echo "$ac_t""no" 1>&6 | |
1644 | linux_headers=no | |
1645 | fi | |
1646 | ||
1647 | ||
1648 | if test "$linux_headers" = yes; then | |
1649 | cat >> confdefs.h <<\EOF | |
1650 | #define HAVE_LINUX_FS_H 1 | |
1651 | EOF | |
1652 | ||
1653 | # These are some programs that depend on having linux headers around, and | |
1654 | # won't work otherwise. So we only compile them if we can. | |
1655 | EXTRA_PROGS="$EXTRA_PROGS flushb" | |
1656 | else | |
1657 | LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include' | |
1658 | # Use this include directory with test compiles in the configure script too. | |
1659 | CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include" | |
1660 | fi | |
1661 | ||
1662 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 | |
1663 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then | |
1664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1665 | else | |
1666 | cat > conftest.$ac_ext <<EOF | |
1667 | #line 1668 "configure" | |
1668 | #include "confdefs.h" | |
1669 | #include <unistd.h> | |
1670 | EOF | |
1671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
1672 | egrep "optreset" >/dev/null 2>&1; then | |
1673 | rm -rf conftest* | |
1674 | ac_cv_have_optreset=yes | |
1675 | else | |
1676 | rm -rf conftest* | |
1677 | ac_cv_have_optreset=no | |
1678 | fi | |
1679 | rm -f conftest* | |
1680 | ||
1681 | fi | |
1682 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 | |
1683 | if test $ac_cv_have_optreset = yes; then | |
1684 | cat >> confdefs.h <<\EOF | |
1685 | #define HAVE_OPTRESET 1 | |
1686 | EOF | |
1687 | ||
1688 | fi | |
1689 | echo $ac_n "checking whether struct ext2_inode has frags fields""... $ac_c" 1>&6 | |
1690 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_ext2_inode_frags'+set}'`\" = set"; then | |
1691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1692 | else | |
1693 | cat > conftest.$ac_ext <<EOF | |
1694 | #line 1695 "configure" | |
1695 | #include "confdefs.h" | |
1696 | #include <linux/ext2_fs.h> | |
1697 | int main() { return 0; } | |
1698 | int t() { | |
1699 | struct ext2_inode i; i.i_frag = i.i_fsize = 0; | |
1700 | ; return 0; } | |
1701 | EOF | |
1702 | if eval $ac_compile; then | |
1703 | rm -rf conftest* | |
1704 | e2fsprogs_cv_struct_ext2_inode_frags=yes | |
1705 | else | |
1706 | rm -rf conftest* | |
1707 | e2fsprogs_cv_struct_ext2_inode_frags=no | |
1708 | fi | |
1709 | rm -f conftest* | |
1710 | ||
1711 | fi | |
1712 | ||
1713 | echo "$ac_t""$e2fsprogs_cv_struct_ext2_inode_frags" 1>&6 | |
1714 | if test "$e2fsprogs_cv_struct_ext2_inode_frags" = yes; then | |
1715 | cat >> confdefs.h <<\EOF | |
1716 | #define HAVE_EXT2_FRAGS 1 | |
1717 | EOF | |
1718 | ||
1719 | fi | |
1720 | echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6 | |
1721 | if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then | |
1722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1723 | else | |
1724 | cat > conftest.$ac_ext <<EOF | |
1725 | #line 1726 "configure" | |
1726 | #include "confdefs.h" | |
1727 | #include <linux/ext2_fs.h> | |
1728 | #include <sys/ioctl.h> | |
1729 | int main() { return 0; } | |
1730 | int t() { | |
1731 | ioctl (0, EXT2_IOC_SETVERSION, 0); | |
1732 | ; return 0; } | |
1733 | EOF | |
1734 | if eval $ac_compile; then | |
1735 | rm -rf conftest* | |
1736 | e2fsprogs_cv_ioctl_ext2=yes | |
1737 | else | |
1738 | rm -rf conftest* | |
1739 | e2fsprogs_cv_ioctl_ext2=no | |
1740 | fi | |
1741 | rm -f conftest* | |
1742 | ||
1743 | fi | |
1744 | ||
1745 | echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6 | |
1746 | if test "$e2fsprogs_cv_ioctl_ext2" = yes; then | |
1747 | cat >> confdefs.h <<\EOF | |
1748 | #define HAVE_EXT2_IOCTLS 1 | |
1749 | EOF | |
1750 | ||
1751 | fi | |
1752 | ||
1753 | case "$host_os" in | |
1754 | linux*) | |
1755 | if test "$prefix" = NONE ; then | |
1756 | prefix='/'; | |
1757 | echo "On Linux systems, prefix defaults to '/'" | |
1758 | fi | |
1759 | ;; | |
1760 | esac | |
1761 | ||
1762 | LDFALG_STATIC= | |
1763 | case "$host_os" in | |
1764 | linux*) | |
1765 | LDFLAG_STATIC=-static | |
1766 | echo "On Linux systems, assume -static works" | |
1767 | ;; | |
1768 | esac | |
1769 | ||
1770 | if test "$prefix" = / ; then | |
1771 | usr_prefix=/usr | |
1772 | else | |
1773 | usr_prefix="\${prefix}" | |
1774 | fi | |
1775 | ||
1776 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` | |
1777 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | |
1778 | ||
1779 | ||
1780 | if test "$cross_compiling" = yes ; then | |
1781 | DO_TEST_SUITE= | |
1782 | else | |
1783 | DO_TEST_SUITE=check | |
1784 | fi | |
1785 | ||
1786 | test -d lib || mkdir lib | |
1787 | test -d include || mkdir include | |
1788 | test -d include/linux || mkdir include/linux | |
1789 | trap '' 1 2 15 | |
1790 | cat > confcache <<\EOF | |
1791 | # This file is a shell script that caches the results of configure | |
1792 | # tests run on this system so they can be shared between configure | |
1793 | # scripts and configure runs. It is not useful on other systems. | |
1794 | # If it contains results you don't want to keep, you may remove or edit it. | |
1795 | # | |
1796 | # By default, configure uses ./config.cache as the cache file, | |
1797 | # creating it if it does not exist already. You can give configure | |
1798 | # the --cache-file=FILE option to use a different cache file; that is | |
1799 | # what configure does when it calls configure scripts in | |
1800 | # subdirectories, so they share the cache. | |
1801 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1802 | # config.status only pays attention to the cache file if you give it the | |
1803 | # --recheck option to rerun configure. | |
1804 | # | |
1805 | EOF | |
1806 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1807 | # and sets the high bit in the cache file unless we assign to the vars. | |
1808 | (set) 2>&1 | | |
1809 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ | |
1810 | >> confcache | |
1811 | if cmp -s $cache_file confcache; then | |
1812 | : | |
1813 | else | |
1814 | if test -w $cache_file; then | |
1815 | echo "updating cache $cache_file" | |
1816 | cat confcache > $cache_file | |
1817 | else | |
1818 | echo "not updating unwritable cache $cache_file" | |
1819 | fi | |
1820 | fi | |
1821 | rm -f confcache | |
1822 | ||
1823 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
1824 | ||
1825 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
1826 | # Let make expand exec_prefix. | |
1827 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
1828 | ||
1829 | # Any assignment to VPATH causes Sun make to only execute | |
1830 | # the first set of double-colon rules, so remove it if not needed. | |
1831 | # If there is a colon in the path, we need to keep it. | |
1832 | if test "x$srcdir" = x.; then | |
1833 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1834 | fi | |
1835 | ||
1836 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1837 | ||
1838 | # Transform confdefs.h into DEFS. | |
1839 | # Protect against shell expansion while executing Makefile rules. | |
1840 | # Protect against Makefile macro expansion. | |
1841 | cat > conftest.defs <<\EOF | |
1842 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g | |
1843 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
1844 | s%\[%\\&%g | |
1845 | s%\]%\\&%g | |
1846 | s%\$%$$%g | |
1847 | EOF | |
1848 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
1849 | rm -f conftest.defs | |
1850 | ||
1851 | ||
1852 | # Without the "./", some shells look in PATH for config.status. | |
1853 | : ${CONFIG_STATUS=./config.status} | |
1854 | ||
1855 | echo creating $CONFIG_STATUS | |
1856 | rm -f $CONFIG_STATUS | |
1857 | cat > $CONFIG_STATUS <<EOF | |
1858 | #! /bin/sh | |
1859 | # Generated automatically by configure. | |
1860 | # Run this file to recreate the current configuration. | |
1861 | # This directory was configured as follows, | |
1862 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1863 | # | |
1864 | # $0 $ac_configure_args | |
1865 | # | |
1866 | # Compiler output produced by configure, useful for debugging | |
1867 | # configure, is in ./config.log if it exists. | |
1868 | ||
1869 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
1870 | for ac_option | |
1871 | do | |
1872 | case "\$ac_option" in | |
1873 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
1874 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
1875 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
1876 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
1877 | echo "$CONFIG_STATUS generated by autoconf version 2.4" | |
1878 | exit 0 ;; | |
1879 | -help | --help | --hel | --he | --h) | |
1880 | echo "\$ac_cs_usage"; exit 0 ;; | |
1881 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
1882 | esac | |
1883 | done | |
1884 | ||
1885 | ac_given_srcdir=$srcdir | |
1886 | ac_given_INSTALL="$INSTALL" | |
1887 | ||
1888 | trap 'rm -fr `echo "MCONFIG include/linux/types.h Makefile lib/et/Makefile | |
1889 | lib/et/compile_et.sh lib/ss/Makefile lib/ss/mk_cmds.sh | |
1890 | lib/ext2fs/Makefile lib/e2p/Makefile misc/Makefile | |
1891 | e2fsck/Makefile debugfs/Makefile tests/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1892 | ||
1893 | # Protect against being on the right side of a sed subst in config.status. | |
1894 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; | |
1895 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF | |
1896 | $ac_vpsub | |
1897 | $extrasub | |
1898 | s%@CFLAGS@%$CFLAGS%g | |
1899 | s%@CPPFLAGS@%$CPPFLAGS%g | |
1900 | s%@CXXFLAGS@%$CXXFLAGS%g | |
1901 | s%@DEFS@%$DEFS%g | |
1902 | s%@LDFLAGS@%$LDFLAGS%g | |
1903 | s%@LIBS@%$LIBS%g | |
1904 | s%@exec_prefix@%$exec_prefix%g | |
1905 | s%@prefix@%$prefix%g | |
1906 | s%@program_transform_name@%$program_transform_name%g | |
1907 | /@MCONFIG@/r $MCONFIG | |
1908 | s%@MCONFIG@%%g | |
1909 | s%@DLL_CMT@%$DLL_CMT%g | |
1910 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL | |
1911 | s%@MAKEFILE_DLL@%%g | |
1912 | s%@ELF_CMT@%$ELF_CMT%g | |
1913 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF | |
1914 | s%@MAKEFILE_ELF@%%g | |
1915 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g | |
1916 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB | |
1917 | s%@MAKEFILE_BSDLIB@%%g | |
1918 | s%@PROFILE_CMT@%$PROFILE_CMT%g | |
1919 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE | |
1920 | s%@MAKEFILE_PROFILE@%%g | |
1921 | s%@CHECKER_CMT@%$CHECKER_CMT%g | |
1922 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER | |
1923 | s%@MAKEFILE_CHECKER@%%g | |
1924 | s%@W@%$W%g | |
1925 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY | |
1926 | s%@MAKEFILE_LIBRARY@%%g | |
1927 | s%@SET_MAKE@%$SET_MAKE%g | |
1928 | s%@LN@%$LN%g | |
1929 | s%@MV@%$MV%g | |
1930 | s%@CP@%$CP%g | |
1931 | s%@RM@%$RM%g | |
1932 | s%@CHMOD@%$CHMOD%g | |
1933 | s%@AWK@%$AWK%g | |
1934 | s%@SED@%$SED%g | |
1935 | s%@host@%$host%g | |
1936 | s%@host_alias@%$host_alias%g | |
1937 | s%@host_cpu@%$host_cpu%g | |
1938 | s%@host_vendor@%$host_vendor%g | |
1939 | s%@host_os@%$host_os%g | |
1940 | s%@build@%$build%g | |
1941 | s%@build_alias@%$build_alias%g | |
1942 | s%@build_cpu@%$build_cpu%g | |
1943 | s%@build_vendor@%$build_vendor%g | |
1944 | s%@build_os@%$build_os%g | |
1945 | s%@AR@%$AR%g | |
1946 | s%@RANLIB@%$RANLIB%g | |
1947 | s%@STRIP@%$STRIP%g | |
1948 | s%@CC@%$CC%g | |
1949 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
1950 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
1951 | s%@CPP@%$CPP%g | |
1952 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g | |
1953 | s%@SIZEOF_INT@%$SIZEOF_INT%g | |
1954 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g | |
1955 | s%@EXTRA_PROGS@%$EXTRA_PROGS%g | |
1956 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g | |
1957 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g | |
1958 | s%@usr_prefix@%$usr_prefix%g | |
1959 | s%@SS_DIR@%$SS_DIR%g | |
1960 | s%@ET_DIR@%$ET_DIR%g | |
1961 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g | |
1962 | ||
1963 | CEOF | |
1964 | EOF | |
1965 | cat >> $CONFIG_STATUS <<EOF | |
1966 | ||
1967 | CONFIG_FILES=\${CONFIG_FILES-"MCONFIG include/linux/types.h Makefile lib/et/Makefile | |
1968 | lib/et/compile_et.sh lib/ss/Makefile lib/ss/mk_cmds.sh | |
1969 | lib/ext2fs/Makefile lib/e2p/Makefile misc/Makefile | |
1970 | e2fsck/Makefile debugfs/Makefile tests/Makefile"} | |
1971 | EOF | |
1972 | cat >> $CONFIG_STATUS <<\EOF | |
1973 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
1974 | # Support "outfile[:infile]", defaulting infile="outfile.in". | |
1975 | case "$ac_file" in | |
1976 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
1977 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
1978 | *) ac_file_in="${ac_file}.in" ;; | |
1979 | esac | |
1980 | ||
1981 | # Adjust relative srcdir, etc. for subdirectories. | |
1982 | ||
1983 | # Remove last slash and all that follows it. Not all systems have dirname. | |
1984 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
1985 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
1986 | # The file is in a subdirectory. | |
1987 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
1988 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
1989 | # A "../" for each directory in $ac_dir_suffix. | |
1990 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
1991 | else | |
1992 | ac_dir_suffix= ac_dots= | |
1993 | fi | |
1994 | ||
1995 | case "$ac_given_srcdir" in | |
1996 | .) srcdir=. | |
1997 | if test -z "$ac_dots"; then top_srcdir=. | |
1998 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
1999 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2000 | *) # Relative path. | |
2001 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2002 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2003 | esac | |
2004 | ||
2005 | case "$ac_given_INSTALL" in | |
2006 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2007 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2008 | esac | |
2009 | echo creating "$ac_file" | |
2010 | rm -f "$ac_file" | |
2011 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
2012 | case "$ac_file" in | |
2013 | *Makefile*) ac_comsub="1i\\ | |
2014 | # $configure_input" ;; | |
2015 | *) ac_comsub= ;; | |
2016 | esac | |
2017 | sed -e "$ac_comsub | |
2018 | s%@configure_input@%$configure_input%g | |
2019 | s%@srcdir@%$srcdir%g | |
2020 | s%@top_srcdir@%$top_srcdir%g | |
2021 | s%@INSTALL@%$INSTALL%g | |
2022 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
2023 | fi; done | |
2024 | rm -f conftest.subs | |
2025 | ||
2026 | ||
2027 | ||
2028 | exit 0 | |
2029 | EOF | |
2030 | chmod +x $CONFIG_STATUS | |
2031 | rm -fr confdefs* $ac_clean_files | |
2032 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
2033 |