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