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