1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
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= |
---|
52 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
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) |
---|
336 | echo "configure generated by autoconf version 2.13" |
---|
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=tc.vers.c |
---|
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${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
507 | cross_compiling=$ac_cv_prog_cc_cross |
---|
508 | |
---|
509 | ac_exeext= |
---|
510 | ac_objext=o |
---|
511 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
512 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
513 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
514 | ac_n= ac_c=' |
---|
515 | ' ac_t=' ' |
---|
516 | else |
---|
517 | ac_n=-n ac_c= ac_t= |
---|
518 | fi |
---|
519 | else |
---|
520 | ac_n= ac_c='\c' ac_t= |
---|
521 | fi |
---|
522 | |
---|
523 | |
---|
524 | |
---|
525 | tcsh_configure_args="$@" |
---|
526 | # Shift out arguments leaving the optional platform name. |
---|
527 | while test -n "$1" ; do |
---|
528 | case "$1" in |
---|
529 | -*) shift ;; |
---|
530 | *) break ;; |
---|
531 | esac |
---|
532 | done |
---|
533 | |
---|
534 | echo $ac_n "checking for the canonical name of this system""... $ac_c" 1>&6 |
---|
535 | echo "configure:536: checking for the canonical name of this system" >&5 |
---|
536 | if test "$1" = '' ; then |
---|
537 | PATH=$srcdir:$PATH # Prefer the tcsh source directory, it might be there. |
---|
538 | export PATH |
---|
539 | new_canonical=`(config.guess) 2>/dev/null` || new_canonical=unknown |
---|
540 | else |
---|
541 | new_canonical="$1" |
---|
542 | fi |
---|
543 | if eval "test \"`echo '$''{'tcsh_cv_canonical'+set}'`\" = set"; then |
---|
544 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
545 | else |
---|
546 | tcsh_cv_canonical=${new_canonical} |
---|
547 | fi |
---|
548 | |
---|
549 | echo "$ac_t""$tcsh_cv_canonical" 1>&6 |
---|
550 | |
---|
551 | if test "$tcsh_cv_canonical" != "$new_canonical" |
---|
552 | then |
---|
553 | echo "configure: warning: Cache configured for \`${tcsh_cv_canonical}'." 1>&2 |
---|
554 | echo "configure: warning: This system is \`${new_canonical}'." 1>&2 |
---|
555 | echo "configure: warning: Assuming invalid cache - removing \`${cache_file}'." 1>&2 |
---|
556 | echo "configure: warning: Restarting..." 1>&2 |
---|
557 | rm -f "$cache_file" |
---|
558 | exec ${CONFIG_SHELL-/bin/sh} $0 "$tcsh_configure_args" |
---|
559 | fi |
---|
560 | |
---|
561 | |
---|
562 | case "${tcsh_cv_canonical}" in |
---|
563 | |
---|
564 | ## Alpha (DEC) machines. |
---|
565 | alpha-dec-osf* ) |
---|
566 | tcsh_config_file=decosf1 |
---|
567 | ;; |
---|
568 | |
---|
569 | ## Ultrix |
---|
570 | *-dec-ultrix* ) |
---|
571 | tcsh_config_file=ultrix |
---|
572 | ;; |
---|
573 | |
---|
574 | ## DGUX |
---|
575 | *-dg-dguxR4* ) |
---|
576 | tcsh_config_file=dgux5.4 |
---|
577 | ;; |
---|
578 | m88k-dg-dgux5.4R* ) |
---|
579 | tcsh_config_file=dgux5.4 |
---|
580 | ;; |
---|
581 | |
---|
582 | ## HP/UX |
---|
583 | *-hp-hpux7* ) |
---|
584 | tcsh_config_file=hpux7 |
---|
585 | ;; |
---|
586 | *-hp-hpux[89]* ) |
---|
587 | tcsh_config_file=hpux8 |
---|
588 | ;; |
---|
589 | *-hp-hpux10* ) |
---|
590 | tcsh_config_file=hpux8 |
---|
591 | ;; |
---|
592 | |
---|
593 | ## IBM AIX systems |
---|
594 | *-ibm-aix*) |
---|
595 | tcsh_config_file=aix |
---|
596 | ;; |
---|
597 | |
---|
598 | ## Linux |
---|
599 | *-*-linux* ) |
---|
600 | tcsh_config_file=linux |
---|
601 | ;; |
---|
602 | |
---|
603 | ## Motorola systems |
---|
604 | m68k-motorola-sysv* ) |
---|
605 | tcsh_config_file=sysV68 |
---|
606 | ;; |
---|
607 | m88k-motorola-sysv3* ) |
---|
608 | tcsh_config_file=sysV88 |
---|
609 | ;; |
---|
610 | |
---|
611 | ## NetBSD systems |
---|
612 | *-*-netbsd*) |
---|
613 | tcsh_config_file=bsd4.4 |
---|
614 | ;; |
---|
615 | |
---|
616 | ## FreeBSD systems |
---|
617 | *-*-freebsd*) |
---|
618 | tcsh_config_file=bsd4.4 |
---|
619 | ;; |
---|
620 | |
---|
621 | ## OpenBSD systems |
---|
622 | *-*-openbsd*) |
---|
623 | tcsh_config_file=bsd4.4 |
---|
624 | ;; |
---|
625 | |
---|
626 | ## BSDI systems |
---|
627 | *-*-bsdi*) |
---|
628 | tcsh_config_file=bsd4.4 |
---|
629 | ;; |
---|
630 | |
---|
631 | ## Silicon Graphics machines |
---|
632 | *-sgi-iri* ) |
---|
633 | tcsh_config_file=sgi |
---|
634 | NON_GNU_DFLAGS='-D__STDC__' |
---|
635 | case "${tcsh_cv_canonical}" in |
---|
636 | *-irix[34]*) |
---|
637 | LIBS='-lsun -lbsd -lc_s' |
---|
638 | ;; |
---|
639 | esac |
---|
640 | ;; |
---|
641 | |
---|
642 | ## Suns |
---|
643 | *-sun-sunos3* ) |
---|
644 | tcsh_config_file=sunos35 |
---|
645 | ;; |
---|
646 | *-sun-sunos4.0* ) |
---|
647 | tcsh_config_file=sunos40 |
---|
648 | ;; |
---|
649 | *-sun-sunos4.1.[12]* ) |
---|
650 | tcsh_config_file=sunos41 |
---|
651 | ;; |
---|
652 | *-sun-sunos4.1.[3456]* ) |
---|
653 | tcsh_config_file=sunos413 |
---|
654 | ;; |
---|
655 | *-*-solaris2.[01]* ) # Should handle sparc or x86 |
---|
656 | tcsh_config_file=sol2 |
---|
657 | ;; |
---|
658 | *-sun-solaris2.2* ) # Sparc only release |
---|
659 | tcsh_config_file=sol22 |
---|
660 | ;; |
---|
661 | *-sun-solaris2.3* ) # Sparc only release |
---|
662 | tcsh_config_file=sol23 |
---|
663 | ;; |
---|
664 | *-*-solaris2.[45]* ) # Should handle sparc, x86 and powerpc |
---|
665 | tcsh_config_file=sol24 |
---|
666 | ;; |
---|
667 | *-*-solaris2.[67]* ) # Should handle sparc, x86 and powerpc |
---|
668 | tcsh_config_file=sol26 |
---|
669 | ;; |
---|
670 | |
---|
671 | ## Dell SVR4 |
---|
672 | *-dell-sysv4* ) |
---|
673 | tcsh_config_file=sysv4 |
---|
674 | DFLAGS="$DFLAGS -DDELL" |
---|
675 | ;; |
---|
676 | |
---|
677 | ## SVR4 (Generic and otherwise) |
---|
678 | *-*-sysv4* ) |
---|
679 | tcsh_config_file=sysv4 |
---|
680 | ;; |
---|
681 | |
---|
682 | ## Tektronix systems |
---|
683 | m68k-tektronix-bsd* ) |
---|
684 | tcsh_config_file=bsd |
---|
685 | NON_GNU_DFLAGS='-DBSD -DUTek' |
---|
686 | ;; |
---|
687 | m88k-tektronix-sysv3* ) |
---|
688 | tcsh_config_file=tekXD88 |
---|
689 | ;; |
---|
690 | |
---|
691 | ## SCO |
---|
692 | *-sco3.2v5*) |
---|
693 | tcsh_config_file=sco32v5 |
---|
694 | ;; |
---|
695 | *-sco3.2v4*) |
---|
696 | tcsh_config_file=sco32v4 |
---|
697 | ;; |
---|
698 | *-sco3.2v2*) |
---|
699 | tcsh_config_file=sco32v2 |
---|
700 | ;; |
---|
701 | |
---|
702 | ## Siemens Nixdorf BS2000 |
---|
703 | bs2000-sni-posix) |
---|
704 | tcsh_config_file=bs2000 |
---|
705 | ;; |
---|
706 | ## Cray |
---|
707 | *-cray-unicos*) |
---|
708 | tcsh_config_file=cray |
---|
709 | ;; |
---|
710 | |
---|
711 | * ) |
---|
712 | { echo "configure: error: Tcsh can't guess the configuration file name |
---|
713 | for \`${tcsh_cv_canonical}' systems. |
---|
714 | Check tcsh's \`Ported' file for manual configuration instructions." 1>&2; exit 1; } |
---|
715 | ;; |
---|
716 | |
---|
717 | esac |
---|
718 | |
---|
719 | echo "Tcsh will use configuration file \`$tcsh_config_file'." |
---|
720 | |
---|
721 | |
---|
722 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
723 | set dummy gcc; ac_word=$2 |
---|
724 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
725 | echo "configure:726: checking for $ac_word" >&5 |
---|
726 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
727 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
728 | else |
---|
729 | if test -n "$CC"; then |
---|
730 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
731 | else |
---|
732 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
733 | ac_dummy="$PATH" |
---|
734 | for ac_dir in $ac_dummy; do |
---|
735 | test -z "$ac_dir" && ac_dir=. |
---|
736 | if test -f $ac_dir/$ac_word; then |
---|
737 | ac_cv_prog_CC="gcc" |
---|
738 | break |
---|
739 | fi |
---|
740 | done |
---|
741 | IFS="$ac_save_ifs" |
---|
742 | fi |
---|
743 | fi |
---|
744 | CC="$ac_cv_prog_CC" |
---|
745 | if test -n "$CC"; then |
---|
746 | echo "$ac_t""$CC" 1>&6 |
---|
747 | else |
---|
748 | echo "$ac_t""no" 1>&6 |
---|
749 | fi |
---|
750 | |
---|
751 | if test -z "$CC"; then |
---|
752 | # Extract the first word of "cc", so it can be a program name with args. |
---|
753 | set dummy cc; ac_word=$2 |
---|
754 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
755 | echo "configure:756: checking for $ac_word" >&5 |
---|
756 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
757 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
758 | else |
---|
759 | if test -n "$CC"; then |
---|
760 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
761 | else |
---|
762 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
763 | ac_prog_rejected=no |
---|
764 | ac_dummy="$PATH" |
---|
765 | for ac_dir in $ac_dummy; do |
---|
766 | test -z "$ac_dir" && ac_dir=. |
---|
767 | if test -f $ac_dir/$ac_word; then |
---|
768 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
769 | ac_prog_rejected=yes |
---|
770 | continue |
---|
771 | fi |
---|
772 | ac_cv_prog_CC="cc" |
---|
773 | break |
---|
774 | fi |
---|
775 | done |
---|
776 | IFS="$ac_save_ifs" |
---|
777 | if test $ac_prog_rejected = yes; then |
---|
778 | # We found a bogon in the path, so make sure we never use it. |
---|
779 | set dummy $ac_cv_prog_CC |
---|
780 | shift |
---|
781 | if test $# -gt 0; then |
---|
782 | # We chose a different compiler from the bogus one. |
---|
783 | # However, it has the same basename, so the bogon will be chosen |
---|
784 | # first if we set CC to just the basename; use the full file name. |
---|
785 | shift |
---|
786 | set dummy "$ac_dir/$ac_word" "$@" |
---|
787 | shift |
---|
788 | ac_cv_prog_CC="$@" |
---|
789 | fi |
---|
790 | fi |
---|
791 | fi |
---|
792 | fi |
---|
793 | CC="$ac_cv_prog_CC" |
---|
794 | if test -n "$CC"; then |
---|
795 | echo "$ac_t""$CC" 1>&6 |
---|
796 | else |
---|
797 | echo "$ac_t""no" 1>&6 |
---|
798 | fi |
---|
799 | |
---|
800 | if test -z "$CC"; then |
---|
801 | case "`uname -s`" in |
---|
802 | *win32* | *WIN32*) |
---|
803 | # Extract the first word of "cl", so it can be a program name with args. |
---|
804 | set dummy cl; ac_word=$2 |
---|
805 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
806 | echo "configure:807: checking for $ac_word" >&5 |
---|
807 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
808 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
809 | else |
---|
810 | if test -n "$CC"; then |
---|
811 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
812 | else |
---|
813 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
814 | ac_dummy="$PATH" |
---|
815 | for ac_dir in $ac_dummy; do |
---|
816 | test -z "$ac_dir" && ac_dir=. |
---|
817 | if test -f $ac_dir/$ac_word; then |
---|
818 | ac_cv_prog_CC="cl" |
---|
819 | break |
---|
820 | fi |
---|
821 | done |
---|
822 | IFS="$ac_save_ifs" |
---|
823 | fi |
---|
824 | fi |
---|
825 | CC="$ac_cv_prog_CC" |
---|
826 | if test -n "$CC"; then |
---|
827 | echo "$ac_t""$CC" 1>&6 |
---|
828 | else |
---|
829 | echo "$ac_t""no" 1>&6 |
---|
830 | fi |
---|
831 | ;; |
---|
832 | esac |
---|
833 | fi |
---|
834 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
835 | fi |
---|
836 | |
---|
837 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
838 | echo "configure:839: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
839 | |
---|
840 | ac_ext=c |
---|
841 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
842 | ac_cpp='$CPP $CPPFLAGS' |
---|
843 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
844 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
845 | cross_compiling=$ac_cv_prog_cc_cross |
---|
846 | |
---|
847 | cat > conftest.$ac_ext << EOF |
---|
848 | |
---|
849 | #line 850 "configure" |
---|
850 | #include "confdefs.h" |
---|
851 | |
---|
852 | main(){return(0);} |
---|
853 | EOF |
---|
854 | if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
855 | ac_cv_prog_cc_works=yes |
---|
856 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
857 | if (./conftest; exit) 2>/dev/null; then |
---|
858 | ac_cv_prog_cc_cross=no |
---|
859 | else |
---|
860 | ac_cv_prog_cc_cross=yes |
---|
861 | fi |
---|
862 | else |
---|
863 | echo "configure: failed program was:" >&5 |
---|
864 | cat conftest.$ac_ext >&5 |
---|
865 | ac_cv_prog_cc_works=no |
---|
866 | fi |
---|
867 | rm -fr conftest* |
---|
868 | ac_ext=c |
---|
869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
870 | ac_cpp='$CPP $CPPFLAGS' |
---|
871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
873 | cross_compiling=$ac_cv_prog_cc_cross |
---|
874 | |
---|
875 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
876 | if test $ac_cv_prog_cc_works = no; then |
---|
877 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
878 | fi |
---|
879 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
880 | echo "configure:881: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
881 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
882 | cross_compiling=$ac_cv_prog_cc_cross |
---|
883 | |
---|
884 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
885 | echo "configure:886: checking whether we are using GNU C" >&5 |
---|
886 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
887 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
888 | else |
---|
889 | cat > conftest.c <<EOF |
---|
890 | #ifdef __GNUC__ |
---|
891 | yes; |
---|
892 | #endif |
---|
893 | EOF |
---|
894 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
895 | ac_cv_prog_gcc=yes |
---|
896 | else |
---|
897 | ac_cv_prog_gcc=no |
---|
898 | fi |
---|
899 | fi |
---|
900 | |
---|
901 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
902 | |
---|
903 | if test $ac_cv_prog_gcc = yes; then |
---|
904 | GCC=yes |
---|
905 | else |
---|
906 | GCC= |
---|
907 | fi |
---|
908 | |
---|
909 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
910 | ac_save_CFLAGS="$CFLAGS" |
---|
911 | CFLAGS= |
---|
912 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
913 | echo "configure:914: checking whether ${CC-cc} accepts -g" >&5 |
---|
914 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
915 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
916 | else |
---|
917 | echo 'void f(){}' > conftest.c |
---|
918 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
919 | ac_cv_prog_cc_g=yes |
---|
920 | else |
---|
921 | ac_cv_prog_cc_g=no |
---|
922 | fi |
---|
923 | rm -f conftest* |
---|
924 | |
---|
925 | fi |
---|
926 | |
---|
927 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
928 | if test "$ac_test_CFLAGS" = set; then |
---|
929 | CFLAGS="$ac_save_CFLAGS" |
---|
930 | elif test $ac_cv_prog_cc_g = yes; then |
---|
931 | if test "$GCC" = yes; then |
---|
932 | CFLAGS="-g -O2" |
---|
933 | else |
---|
934 | CFLAGS="-g" |
---|
935 | fi |
---|
936 | else |
---|
937 | if test "$GCC" = yes; then |
---|
938 | CFLAGS="-O2" |
---|
939 | else |
---|
940 | CFLAGS= |
---|
941 | fi |
---|
942 | fi |
---|
943 | |
---|
944 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
945 | echo "configure:946: checking how to run the C preprocessor" >&5 |
---|
946 | # On Suns, sometimes $CPP names a directory. |
---|
947 | if test -n "$CPP" && test -d "$CPP"; then |
---|
948 | CPP= |
---|
949 | fi |
---|
950 | if test -z "$CPP"; then |
---|
951 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
953 | else |
---|
954 | # This must be in double quotes, not single quotes, because CPP may get |
---|
955 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
956 | CPP="${CC-cc} -E" |
---|
957 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
958 | # not just through cpp. |
---|
959 | cat > conftest.$ac_ext <<EOF |
---|
960 | #line 961 "configure" |
---|
961 | #include "confdefs.h" |
---|
962 | #include <assert.h> |
---|
963 | Syntax Error |
---|
964 | EOF |
---|
965 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
966 | { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
967 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
968 | if test -z "$ac_err"; then |
---|
969 | : |
---|
970 | else |
---|
971 | echo "$ac_err" >&5 |
---|
972 | echo "configure: failed program was:" >&5 |
---|
973 | cat conftest.$ac_ext >&5 |
---|
974 | rm -rf conftest* |
---|
975 | CPP="${CC-cc} -E -traditional-cpp" |
---|
976 | cat > conftest.$ac_ext <<EOF |
---|
977 | #line 978 "configure" |
---|
978 | #include "confdefs.h" |
---|
979 | #include <assert.h> |
---|
980 | Syntax Error |
---|
981 | EOF |
---|
982 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
983 | { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
984 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
985 | if test -z "$ac_err"; then |
---|
986 | : |
---|
987 | else |
---|
988 | echo "$ac_err" >&5 |
---|
989 | echo "configure: failed program was:" >&5 |
---|
990 | cat conftest.$ac_ext >&5 |
---|
991 | rm -rf conftest* |
---|
992 | CPP="${CC-cc} -nologo -E" |
---|
993 | cat > conftest.$ac_ext <<EOF |
---|
994 | #line 995 "configure" |
---|
995 | #include "confdefs.h" |
---|
996 | #include <assert.h> |
---|
997 | Syntax Error |
---|
998 | EOF |
---|
999 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1000 | { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1001 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1002 | if test -z "$ac_err"; then |
---|
1003 | : |
---|
1004 | else |
---|
1005 | echo "$ac_err" >&5 |
---|
1006 | echo "configure: failed program was:" >&5 |
---|
1007 | cat conftest.$ac_ext >&5 |
---|
1008 | rm -rf conftest* |
---|
1009 | CPP=/lib/cpp |
---|
1010 | fi |
---|
1011 | rm -f conftest* |
---|
1012 | fi |
---|
1013 | rm -f conftest* |
---|
1014 | fi |
---|
1015 | rm -f conftest* |
---|
1016 | ac_cv_prog_CPP="$CPP" |
---|
1017 | fi |
---|
1018 | CPP="$ac_cv_prog_CPP" |
---|
1019 | else |
---|
1020 | ac_cv_prog_CPP="$CPP" |
---|
1021 | fi |
---|
1022 | echo "$ac_t""$CPP" 1>&6 |
---|
1023 | |
---|
1024 | if test $ac_cv_prog_gcc = yes; then |
---|
1025 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
---|
1026 | echo "configure:1027: checking whether ${CC-cc} needs -traditional" >&5 |
---|
1027 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
---|
1028 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1029 | else |
---|
1030 | ac_pattern="Autoconf.*'x'" |
---|
1031 | cat > conftest.$ac_ext <<EOF |
---|
1032 | #line 1033 "configure" |
---|
1033 | #include "confdefs.h" |
---|
1034 | #include <sgtty.h> |
---|
1035 | Autoconf TIOCGETP |
---|
1036 | EOF |
---|
1037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1038 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
1039 | rm -rf conftest* |
---|
1040 | ac_cv_prog_gcc_traditional=yes |
---|
1041 | else |
---|
1042 | rm -rf conftest* |
---|
1043 | ac_cv_prog_gcc_traditional=no |
---|
1044 | fi |
---|
1045 | rm -f conftest* |
---|
1046 | |
---|
1047 | |
---|
1048 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
1049 | cat > conftest.$ac_ext <<EOF |
---|
1050 | #line 1051 "configure" |
---|
1051 | #include "confdefs.h" |
---|
1052 | #include <termio.h> |
---|
1053 | Autoconf TCGETA |
---|
1054 | EOF |
---|
1055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
1056 | egrep "$ac_pattern" >/dev/null 2>&1; then |
---|
1057 | rm -rf conftest* |
---|
1058 | ac_cv_prog_gcc_traditional=yes |
---|
1059 | fi |
---|
1060 | rm -f conftest* |
---|
1061 | |
---|
1062 | fi |
---|
1063 | fi |
---|
1064 | |
---|
1065 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
---|
1066 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
1067 | CC="$CC -traditional" |
---|
1068 | fi |
---|
1069 | fi |
---|
1070 | |
---|
1071 | |
---|
1072 | if test $ac_cv_prog_gcc = no ; then |
---|
1073 | DFLAGS="$DFLAGS $NON_GNU_DFLAGS" |
---|
1074 | CFLAGS="$CFLAGS $NON_GNU_CFLAGS" |
---|
1075 | fi |
---|
1076 | |
---|
1077 | echo $ac_n "checking for crypt""... $ac_c" 1>&6 |
---|
1078 | echo "configure:1079: checking for crypt" >&5 |
---|
1079 | if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then |
---|
1080 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1081 | else |
---|
1082 | cat > conftest.$ac_ext <<EOF |
---|
1083 | #line 1084 "configure" |
---|
1084 | #include "confdefs.h" |
---|
1085 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1086 | which can conflict with char crypt(); below. */ |
---|
1087 | #include <assert.h> |
---|
1088 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1089 | /* We use char because int might match the return type of a gcc2 |
---|
1090 | builtin and then its argument prototype would still apply. */ |
---|
1091 | char crypt(); |
---|
1092 | |
---|
1093 | int main() { |
---|
1094 | |
---|
1095 | /* The GNU C library defines this for functions which it implements |
---|
1096 | to always fail with ENOSYS. Some functions are actually named |
---|
1097 | something starting with __ and the normal name is an alias. */ |
---|
1098 | #if defined (__stub_crypt) || defined (__stub___crypt) |
---|
1099 | choke me |
---|
1100 | #else |
---|
1101 | crypt(); |
---|
1102 | #endif |
---|
1103 | |
---|
1104 | ; return 0; } |
---|
1105 | EOF |
---|
1106 | if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1107 | rm -rf conftest* |
---|
1108 | eval "ac_cv_func_crypt=yes" |
---|
1109 | else |
---|
1110 | echo "configure: failed program was:" >&5 |
---|
1111 | cat conftest.$ac_ext >&5 |
---|
1112 | rm -rf conftest* |
---|
1113 | eval "ac_cv_func_crypt=no" |
---|
1114 | fi |
---|
1115 | rm -f conftest* |
---|
1116 | fi |
---|
1117 | |
---|
1118 | if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then |
---|
1119 | echo "$ac_t""yes" 1>&6 |
---|
1120 | : |
---|
1121 | else |
---|
1122 | echo "$ac_t""no" 1>&6 |
---|
1123 | fi |
---|
1124 | |
---|
1125 | if test $ac_cv_func_crypt = no; then |
---|
1126 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
---|
1127 | echo "configure:1128: checking for crypt in -lcrypt" >&5 |
---|
1128 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
---|
1129 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1130 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1131 | else |
---|
1132 | ac_save_LIBS="$LIBS" |
---|
1133 | LIBS="-lcrypt $LIBS" |
---|
1134 | cat > conftest.$ac_ext <<EOF |
---|
1135 | #line 1136 "configure" |
---|
1136 | #include "confdefs.h" |
---|
1137 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1138 | /* We use char because int might match the return type of a gcc2 |
---|
1139 | builtin and then its argument prototype would still apply. */ |
---|
1140 | char crypt(); |
---|
1141 | |
---|
1142 | int main() { |
---|
1143 | crypt() |
---|
1144 | ; return 0; } |
---|
1145 | EOF |
---|
1146 | if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1147 | rm -rf conftest* |
---|
1148 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1149 | else |
---|
1150 | echo "configure: failed program was:" >&5 |
---|
1151 | cat conftest.$ac_ext >&5 |
---|
1152 | rm -rf conftest* |
---|
1153 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1154 | fi |
---|
1155 | rm -f conftest* |
---|
1156 | LIBS="$ac_save_LIBS" |
---|
1157 | |
---|
1158 | fi |
---|
1159 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1160 | echo "$ac_t""yes" 1>&6 |
---|
1161 | ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1162 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1163 | cat >> confdefs.h <<EOF |
---|
1164 | #define $ac_tr_lib 1 |
---|
1165 | EOF |
---|
1166 | |
---|
1167 | LIBS="-lcrypt $LIBS" |
---|
1168 | |
---|
1169 | else |
---|
1170 | echo "$ac_t""no" 1>&6 |
---|
1171 | fi |
---|
1172 | |
---|
1173 | fi |
---|
1174 | echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6 |
---|
1175 | echo "configure:1176: checking for tgetent in -ltermlib" >&5 |
---|
1176 | ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'` |
---|
1177 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1178 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1179 | else |
---|
1180 | ac_save_LIBS="$LIBS" |
---|
1181 | LIBS="-ltermlib $LIBS" |
---|
1182 | cat > conftest.$ac_ext <<EOF |
---|
1183 | #line 1184 "configure" |
---|
1184 | #include "confdefs.h" |
---|
1185 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1186 | /* We use char because int might match the return type of a gcc2 |
---|
1187 | builtin and then its argument prototype would still apply. */ |
---|
1188 | char tgetent(); |
---|
1189 | |
---|
1190 | int main() { |
---|
1191 | tgetent() |
---|
1192 | ; return 0; } |
---|
1193 | EOF |
---|
1194 | if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1195 | rm -rf conftest* |
---|
1196 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1197 | else |
---|
1198 | echo "configure: failed program was:" >&5 |
---|
1199 | cat conftest.$ac_ext >&5 |
---|
1200 | rm -rf conftest* |
---|
1201 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1202 | fi |
---|
1203 | rm -f conftest* |
---|
1204 | LIBS="$ac_save_LIBS" |
---|
1205 | |
---|
1206 | fi |
---|
1207 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1208 | echo "$ac_t""yes" 1>&6 |
---|
1209 | ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1210 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1211 | cat >> confdefs.h <<EOF |
---|
1212 | #define $ac_tr_lib 1 |
---|
1213 | EOF |
---|
1214 | |
---|
1215 | LIBS="-ltermlib $LIBS" |
---|
1216 | |
---|
1217 | else |
---|
1218 | echo "$ac_t""no" 1>&6 |
---|
1219 | fi |
---|
1220 | |
---|
1221 | if test $ac_cv_lib_termlib_tgetent = no ; then |
---|
1222 | echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
---|
1223 | echo "configure:1224: checking for tgetent in -lcurses" >&5 |
---|
1224 | ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
---|
1225 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1226 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1227 | else |
---|
1228 | ac_save_LIBS="$LIBS" |
---|
1229 | LIBS="-lcurses $LIBS" |
---|
1230 | cat > conftest.$ac_ext <<EOF |
---|
1231 | #line 1232 "configure" |
---|
1232 | #include "confdefs.h" |
---|
1233 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1234 | /* We use char because int might match the return type of a gcc2 |
---|
1235 | builtin and then its argument prototype would still apply. */ |
---|
1236 | char tgetent(); |
---|
1237 | |
---|
1238 | int main() { |
---|
1239 | tgetent() |
---|
1240 | ; return 0; } |
---|
1241 | EOF |
---|
1242 | if { (eval echo configure:1243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1243 | rm -rf conftest* |
---|
1244 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1245 | else |
---|
1246 | echo "configure: failed program was:" >&5 |
---|
1247 | cat conftest.$ac_ext >&5 |
---|
1248 | rm -rf conftest* |
---|
1249 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1250 | fi |
---|
1251 | rm -f conftest* |
---|
1252 | LIBS="$ac_save_LIBS" |
---|
1253 | |
---|
1254 | fi |
---|
1255 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1256 | echo "$ac_t""yes" 1>&6 |
---|
1257 | ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1258 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1259 | cat >> confdefs.h <<EOF |
---|
1260 | #define $ac_tr_lib 1 |
---|
1261 | EOF |
---|
1262 | |
---|
1263 | LIBS="-lcurses $LIBS" |
---|
1264 | |
---|
1265 | else |
---|
1266 | echo "$ac_t""no" 1>&6 |
---|
1267 | fi |
---|
1268 | |
---|
1269 | if test $ac_cv_lib_curses_tgetent = no ; then |
---|
1270 | echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
---|
1271 | echo "configure:1272: checking for tgetent in -ltermcap" >&5 |
---|
1272 | ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
---|
1273 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1274 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1275 | else |
---|
1276 | ac_save_LIBS="$LIBS" |
---|
1277 | LIBS="-ltermcap $LIBS" |
---|
1278 | cat > conftest.$ac_ext <<EOF |
---|
1279 | #line 1280 "configure" |
---|
1280 | #include "confdefs.h" |
---|
1281 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1282 | /* We use char because int might match the return type of a gcc2 |
---|
1283 | builtin and then its argument prototype would still apply. */ |
---|
1284 | char tgetent(); |
---|
1285 | |
---|
1286 | int main() { |
---|
1287 | tgetent() |
---|
1288 | ; return 0; } |
---|
1289 | EOF |
---|
1290 | if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1291 | rm -rf conftest* |
---|
1292 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1293 | else |
---|
1294 | echo "configure: failed program was:" >&5 |
---|
1295 | cat conftest.$ac_ext >&5 |
---|
1296 | rm -rf conftest* |
---|
1297 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1298 | fi |
---|
1299 | rm -f conftest* |
---|
1300 | LIBS="$ac_save_LIBS" |
---|
1301 | |
---|
1302 | fi |
---|
1303 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1304 | echo "$ac_t""yes" 1>&6 |
---|
1305 | ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1306 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1307 | cat >> confdefs.h <<EOF |
---|
1308 | #define $ac_tr_lib 1 |
---|
1309 | EOF |
---|
1310 | |
---|
1311 | LIBS="-ltermcap $LIBS" |
---|
1312 | |
---|
1313 | else |
---|
1314 | echo "$ac_t""no" 1>&6 |
---|
1315 | fi |
---|
1316 | |
---|
1317 | fi |
---|
1318 | fi |
---|
1319 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
1320 | echo "configure:1321: checking for gethostbyname" >&5 |
---|
1321 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
1322 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1323 | else |
---|
1324 | cat > conftest.$ac_ext <<EOF |
---|
1325 | #line 1326 "configure" |
---|
1326 | #include "confdefs.h" |
---|
1327 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1328 | which can conflict with char gethostbyname(); below. */ |
---|
1329 | #include <assert.h> |
---|
1330 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1331 | /* We use char because int might match the return type of a gcc2 |
---|
1332 | builtin and then its argument prototype would still apply. */ |
---|
1333 | char gethostbyname(); |
---|
1334 | |
---|
1335 | int main() { |
---|
1336 | |
---|
1337 | /* The GNU C library defines this for functions which it implements |
---|
1338 | to always fail with ENOSYS. Some functions are actually named |
---|
1339 | something starting with __ and the normal name is an alias. */ |
---|
1340 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
1341 | choke me |
---|
1342 | #else |
---|
1343 | gethostbyname(); |
---|
1344 | #endif |
---|
1345 | |
---|
1346 | ; return 0; } |
---|
1347 | EOF |
---|
1348 | if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1349 | rm -rf conftest* |
---|
1350 | eval "ac_cv_func_gethostbyname=yes" |
---|
1351 | else |
---|
1352 | echo "configure: failed program was:" >&5 |
---|
1353 | cat conftest.$ac_ext >&5 |
---|
1354 | rm -rf conftest* |
---|
1355 | eval "ac_cv_func_gethostbyname=no" |
---|
1356 | fi |
---|
1357 | rm -f conftest* |
---|
1358 | fi |
---|
1359 | |
---|
1360 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
1361 | echo "$ac_t""yes" 1>&6 |
---|
1362 | : |
---|
1363 | else |
---|
1364 | echo "$ac_t""no" 1>&6 |
---|
1365 | fi |
---|
1366 | |
---|
1367 | if test $ac_cv_func_gethostbyname = no; then |
---|
1368 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
1369 | echo "configure:1370: checking for gethostbyname in -lnsl" >&5 |
---|
1370 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
1371 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1372 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1373 | else |
---|
1374 | ac_save_LIBS="$LIBS" |
---|
1375 | LIBS="-lnsl $LIBS" |
---|
1376 | cat > conftest.$ac_ext <<EOF |
---|
1377 | #line 1378 "configure" |
---|
1378 | #include "confdefs.h" |
---|
1379 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1380 | /* We use char because int might match the return type of a gcc2 |
---|
1381 | builtin and then its argument prototype would still apply. */ |
---|
1382 | char gethostbyname(); |
---|
1383 | |
---|
1384 | int main() { |
---|
1385 | gethostbyname() |
---|
1386 | ; return 0; } |
---|
1387 | EOF |
---|
1388 | if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1389 | rm -rf conftest* |
---|
1390 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1391 | else |
---|
1392 | echo "configure: failed program was:" >&5 |
---|
1393 | cat conftest.$ac_ext >&5 |
---|
1394 | rm -rf conftest* |
---|
1395 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1396 | fi |
---|
1397 | rm -f conftest* |
---|
1398 | LIBS="$ac_save_LIBS" |
---|
1399 | |
---|
1400 | fi |
---|
1401 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1402 | echo "$ac_t""yes" 1>&6 |
---|
1403 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1404 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1405 | cat >> confdefs.h <<EOF |
---|
1406 | #define $ac_tr_lib 1 |
---|
1407 | EOF |
---|
1408 | |
---|
1409 | LIBS="-lnsl $LIBS" |
---|
1410 | |
---|
1411 | else |
---|
1412 | echo "$ac_t""no" 1>&6 |
---|
1413 | fi |
---|
1414 | |
---|
1415 | fi |
---|
1416 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
---|
1417 | echo "configure:1418: checking for connect" >&5 |
---|
1418 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
---|
1419 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1420 | else |
---|
1421 | cat > conftest.$ac_ext <<EOF |
---|
1422 | #line 1423 "configure" |
---|
1423 | #include "confdefs.h" |
---|
1424 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1425 | which can conflict with char connect(); below. */ |
---|
1426 | #include <assert.h> |
---|
1427 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1428 | /* We use char because int might match the return type of a gcc2 |
---|
1429 | builtin and then its argument prototype would still apply. */ |
---|
1430 | char connect(); |
---|
1431 | |
---|
1432 | int main() { |
---|
1433 | |
---|
1434 | /* The GNU C library defines this for functions which it implements |
---|
1435 | to always fail with ENOSYS. Some functions are actually named |
---|
1436 | something starting with __ and the normal name is an alias. */ |
---|
1437 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
1438 | choke me |
---|
1439 | #else |
---|
1440 | connect(); |
---|
1441 | #endif |
---|
1442 | |
---|
1443 | ; return 0; } |
---|
1444 | EOF |
---|
1445 | if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1446 | rm -rf conftest* |
---|
1447 | eval "ac_cv_func_connect=yes" |
---|
1448 | else |
---|
1449 | echo "configure: failed program was:" >&5 |
---|
1450 | cat conftest.$ac_ext >&5 |
---|
1451 | rm -rf conftest* |
---|
1452 | eval "ac_cv_func_connect=no" |
---|
1453 | fi |
---|
1454 | rm -f conftest* |
---|
1455 | fi |
---|
1456 | |
---|
1457 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
---|
1458 | echo "$ac_t""yes" 1>&6 |
---|
1459 | : |
---|
1460 | else |
---|
1461 | echo "$ac_t""no" 1>&6 |
---|
1462 | fi |
---|
1463 | |
---|
1464 | if test $ac_cv_func_connect = no; then |
---|
1465 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
---|
1466 | echo "configure:1467: checking for connect in -lsocket" >&5 |
---|
1467 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
---|
1468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1469 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1470 | else |
---|
1471 | ac_save_LIBS="$LIBS" |
---|
1472 | LIBS="-lsocket $LIBS" |
---|
1473 | cat > conftest.$ac_ext <<EOF |
---|
1474 | #line 1475 "configure" |
---|
1475 | #include "confdefs.h" |
---|
1476 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1477 | /* We use char because int might match the return type of a gcc2 |
---|
1478 | builtin and then its argument prototype would still apply. */ |
---|
1479 | char connect(); |
---|
1480 | |
---|
1481 | int main() { |
---|
1482 | connect() |
---|
1483 | ; return 0; } |
---|
1484 | EOF |
---|
1485 | if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1486 | rm -rf conftest* |
---|
1487 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1488 | else |
---|
1489 | echo "configure: failed program was:" >&5 |
---|
1490 | cat conftest.$ac_ext >&5 |
---|
1491 | rm -rf conftest* |
---|
1492 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1493 | fi |
---|
1494 | rm -f conftest* |
---|
1495 | LIBS="$ac_save_LIBS" |
---|
1496 | |
---|
1497 | fi |
---|
1498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1499 | echo "$ac_t""yes" 1>&6 |
---|
1500 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
1501 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
1502 | cat >> confdefs.h <<EOF |
---|
1503 | #define $ac_tr_lib 1 |
---|
1504 | EOF |
---|
1505 | |
---|
1506 | LIBS="-lsocket $LIBS" |
---|
1507 | |
---|
1508 | else |
---|
1509 | echo "$ac_t""no" 1>&6 |
---|
1510 | fi |
---|
1511 | |
---|
1512 | fi |
---|
1513 | |
---|
1514 | |
---|
1515 | echo $ac_n "checking for res_send""... $ac_c" 1>&6 |
---|
1516 | echo "configure:1517: checking for res_send" >&5 |
---|
1517 | if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then |
---|
1518 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1519 | else |
---|
1520 | cat > conftest.$ac_ext <<EOF |
---|
1521 | #line 1522 "configure" |
---|
1522 | #include "confdefs.h" |
---|
1523 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1524 | which can conflict with char res_send(); below. */ |
---|
1525 | #include <assert.h> |
---|
1526 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1527 | /* We use char because int might match the return type of a gcc2 |
---|
1528 | builtin and then its argument prototype would still apply. */ |
---|
1529 | char res_send(); |
---|
1530 | |
---|
1531 | int main() { |
---|
1532 | |
---|
1533 | /* The GNU C library defines this for functions which it implements |
---|
1534 | to always fail with ENOSYS. Some functions are actually named |
---|
1535 | something starting with __ and the normal name is an alias. */ |
---|
1536 | #if defined (__stub_res_send) || defined (__stub___res_send) |
---|
1537 | choke me |
---|
1538 | #else |
---|
1539 | res_send(); |
---|
1540 | #endif |
---|
1541 | |
---|
1542 | ; return 0; } |
---|
1543 | EOF |
---|
1544 | if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1545 | rm -rf conftest* |
---|
1546 | eval "ac_cv_func_res_send=yes" |
---|
1547 | else |
---|
1548 | echo "configure: failed program was:" >&5 |
---|
1549 | cat conftest.$ac_ext >&5 |
---|
1550 | rm -rf conftest* |
---|
1551 | eval "ac_cv_func_res_send=no" |
---|
1552 | fi |
---|
1553 | rm -f conftest* |
---|
1554 | fi |
---|
1555 | |
---|
1556 | if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then |
---|
1557 | echo "$ac_t""yes" 1>&6 |
---|
1558 | : |
---|
1559 | else |
---|
1560 | echo "$ac_t""no" 1>&6 |
---|
1561 | echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6 |
---|
1562 | echo "configure:1563: checking for res_send in -lresolv" >&5 |
---|
1563 | ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'` |
---|
1564 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
1565 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1566 | else |
---|
1567 | ac_save_LIBS="$LIBS" |
---|
1568 | LIBS="-lresolv $LIBS" |
---|
1569 | cat > conftest.$ac_ext <<EOF |
---|
1570 | #line 1571 "configure" |
---|
1571 | #include "confdefs.h" |
---|
1572 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
1573 | /* We use char because int might match the return type of a gcc2 |
---|
1574 | builtin and then its argument prototype would still apply. */ |
---|
1575 | char res_send(); |
---|
1576 | |
---|
1577 | int main() { |
---|
1578 | res_send() |
---|
1579 | ; return 0; } |
---|
1580 | EOF |
---|
1581 | if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1582 | rm -rf conftest* |
---|
1583 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
1584 | else |
---|
1585 | echo "configure: failed program was:" >&5 |
---|
1586 | cat conftest.$ac_ext >&5 |
---|
1587 | rm -rf conftest* |
---|
1588 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
1589 | fi |
---|
1590 | rm -f conftest* |
---|
1591 | LIBS="$ac_save_LIBS" |
---|
1592 | |
---|
1593 | fi |
---|
1594 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
1595 | echo "$ac_t""yes" 1>&6 |
---|
1596 | HES_RES_LIB=-lresolv |
---|
1597 | else |
---|
1598 | echo "$ac_t""no" 1>&6 |
---|
1599 | fi |
---|
1600 | |
---|
1601 | fi |
---|
1602 | |
---|
1603 | |
---|
1604 | |
---|
1605 | |
---|
1606 | trap '' 1 2 15 |
---|
1607 | cat > confcache <<\EOF |
---|
1608 | # This file is a shell script that caches the results of configure |
---|
1609 | # tests run on this system so they can be shared between configure |
---|
1610 | # scripts and configure runs. It is not useful on other systems. |
---|
1611 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1612 | # |
---|
1613 | # By default, configure uses ./config.cache as the cache file, |
---|
1614 | # creating it if it does not exist already. You can give configure |
---|
1615 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1616 | # what configure does when it calls configure scripts in |
---|
1617 | # subdirectories, so they share the cache. |
---|
1618 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1619 | # config.status only pays attention to the cache file if you give it the |
---|
1620 | # --recheck option to rerun configure. |
---|
1621 | # |
---|
1622 | EOF |
---|
1623 | # The following way of writing the cache mishandles newlines in values, |
---|
1624 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1625 | # So, don't put newlines in cache variables' values. |
---|
1626 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1627 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1628 | (set) 2>&1 | |
---|
1629 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
1630 | *ac_space=\ *) |
---|
1631 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1632 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1633 | sed -n \ |
---|
1634 | -e "s/'/'\\\\''/g" \ |
---|
1635 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1636 | ;; |
---|
1637 | *) |
---|
1638 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1639 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1640 | ;; |
---|
1641 | esac >> confcache |
---|
1642 | if cmp -s $cache_file confcache; then |
---|
1643 | : |
---|
1644 | else |
---|
1645 | if test -w $cache_file; then |
---|
1646 | echo "updating cache $cache_file" |
---|
1647 | cat confcache > $cache_file |
---|
1648 | else |
---|
1649 | echo "not updating unwritable cache $cache_file" |
---|
1650 | fi |
---|
1651 | fi |
---|
1652 | rm -f confcache |
---|
1653 | |
---|
1654 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
1655 | |
---|
1656 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
1657 | # Let make expand exec_prefix. |
---|
1658 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
1659 | |
---|
1660 | # Any assignment to VPATH causes Sun make to only execute |
---|
1661 | # the first set of double-colon rules, so remove it if not needed. |
---|
1662 | # If there is a colon in the path, we need to keep it. |
---|
1663 | if test "x$srcdir" = x.; then |
---|
1664 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
1665 | fi |
---|
1666 | |
---|
1667 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
1668 | |
---|
1669 | DEFS=-DHAVE_CONFIG_H |
---|
1670 | |
---|
1671 | # Without the "./", some shells look in PATH for config.status. |
---|
1672 | : ${CONFIG_STATUS=./config.status} |
---|
1673 | |
---|
1674 | echo creating $CONFIG_STATUS |
---|
1675 | rm -f $CONFIG_STATUS |
---|
1676 | cat > $CONFIG_STATUS <<EOF |
---|
1677 | #! /bin/sh |
---|
1678 | # Generated automatically by configure. |
---|
1679 | # Run this file to recreate the current configuration. |
---|
1680 | # This directory was configured as follows, |
---|
1681 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
1682 | # |
---|
1683 | # $0 $ac_configure_args |
---|
1684 | # |
---|
1685 | # Compiler output produced by configure, useful for debugging |
---|
1686 | # configure, is in ./config.log if it exists. |
---|
1687 | |
---|
1688 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
1689 | for ac_option |
---|
1690 | do |
---|
1691 | case "\$ac_option" in |
---|
1692 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
1693 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
1694 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
1695 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
1696 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
1697 | exit 0 ;; |
---|
1698 | -help | --help | --hel | --he | --h) |
---|
1699 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
1700 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
1701 | esac |
---|
1702 | done |
---|
1703 | |
---|
1704 | ac_given_srcdir=$srcdir |
---|
1705 | |
---|
1706 | trap 'rm -fr `echo "Makefile config.h:config/${tcsh_config_file}:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
1707 | EOF |
---|
1708 | cat >> $CONFIG_STATUS <<EOF |
---|
1709 | |
---|
1710 | # Protect against being on the right side of a sed subst in config.status. |
---|
1711 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
1712 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
1713 | $ac_vpsub |
---|
1714 | $extrasub |
---|
1715 | s%@SHELL@%$SHELL%g |
---|
1716 | s%@CFLAGS@%$CFLAGS%g |
---|
1717 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
1718 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
1719 | s%@FFLAGS@%$FFLAGS%g |
---|
1720 | s%@DEFS@%$DEFS%g |
---|
1721 | s%@LDFLAGS@%$LDFLAGS%g |
---|
1722 | s%@LIBS@%$LIBS%g |
---|
1723 | s%@exec_prefix@%$exec_prefix%g |
---|
1724 | s%@prefix@%$prefix%g |
---|
1725 | s%@program_transform_name@%$program_transform_name%g |
---|
1726 | s%@bindir@%$bindir%g |
---|
1727 | s%@sbindir@%$sbindir%g |
---|
1728 | s%@libexecdir@%$libexecdir%g |
---|
1729 | s%@datadir@%$datadir%g |
---|
1730 | s%@sysconfdir@%$sysconfdir%g |
---|
1731 | s%@sharedstatedir@%$sharedstatedir%g |
---|
1732 | s%@localstatedir@%$localstatedir%g |
---|
1733 | s%@libdir@%$libdir%g |
---|
1734 | s%@includedir@%$includedir%g |
---|
1735 | s%@oldincludedir@%$oldincludedir%g |
---|
1736 | s%@infodir@%$infodir%g |
---|
1737 | s%@mandir@%$mandir%g |
---|
1738 | s%@CC@%$CC%g |
---|
1739 | s%@CPP@%$CPP%g |
---|
1740 | s%@DFLAGS@%$DFLAGS%g |
---|
1741 | s%@HES_RES_LIB@%$HES_RES_LIB%g |
---|
1742 | s%@lbindir@%$lbindir%g |
---|
1743 | |
---|
1744 | CEOF |
---|
1745 | EOF |
---|
1746 | |
---|
1747 | cat >> $CONFIG_STATUS <<\EOF |
---|
1748 | |
---|
1749 | # Split the substitutions into bite-sized pieces for seds with |
---|
1750 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
1751 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
1752 | ac_file=1 # Number of current file. |
---|
1753 | ac_beg=1 # First line for current file. |
---|
1754 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
1755 | ac_more_lines=: |
---|
1756 | ac_sed_cmds="" |
---|
1757 | while $ac_more_lines; do |
---|
1758 | if test $ac_beg -gt 1; then |
---|
1759 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1760 | else |
---|
1761 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
1762 | fi |
---|
1763 | if test ! -s conftest.s$ac_file; then |
---|
1764 | ac_more_lines=false |
---|
1765 | rm -f conftest.s$ac_file |
---|
1766 | else |
---|
1767 | if test -z "$ac_sed_cmds"; then |
---|
1768 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
1769 | else |
---|
1770 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
1771 | fi |
---|
1772 | ac_file=`expr $ac_file + 1` |
---|
1773 | ac_beg=$ac_end |
---|
1774 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
1775 | fi |
---|
1776 | done |
---|
1777 | if test -z "$ac_sed_cmds"; then |
---|
1778 | ac_sed_cmds=cat |
---|
1779 | fi |
---|
1780 | EOF |
---|
1781 | |
---|
1782 | cat >> $CONFIG_STATUS <<EOF |
---|
1783 | |
---|
1784 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
---|
1785 | EOF |
---|
1786 | cat >> $CONFIG_STATUS <<\EOF |
---|
1787 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
1788 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
1789 | case "$ac_file" in |
---|
1790 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
1791 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1792 | *) ac_file_in="${ac_file}.in" ;; |
---|
1793 | esac |
---|
1794 | |
---|
1795 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
1796 | |
---|
1797 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1798 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1799 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1800 | # The file is in a subdirectory. |
---|
1801 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1802 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
1803 | # A "../" for each directory in $ac_dir_suffix. |
---|
1804 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
1805 | else |
---|
1806 | ac_dir_suffix= ac_dots= |
---|
1807 | fi |
---|
1808 | |
---|
1809 | case "$ac_given_srcdir" in |
---|
1810 | .) srcdir=. |
---|
1811 | if test -z "$ac_dots"; then top_srcdir=. |
---|
1812 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
1813 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
1814 | *) # Relative path. |
---|
1815 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
1816 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
1817 | esac |
---|
1818 | |
---|
1819 | |
---|
1820 | echo creating "$ac_file" |
---|
1821 | rm -f "$ac_file" |
---|
1822 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
1823 | case "$ac_file" in |
---|
1824 | *Makefile*) ac_comsub="1i\\ |
---|
1825 | # $configure_input" ;; |
---|
1826 | *) ac_comsub= ;; |
---|
1827 | esac |
---|
1828 | |
---|
1829 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
1830 | sed -e "$ac_comsub |
---|
1831 | s%@configure_input@%$configure_input%g |
---|
1832 | s%@srcdir@%$srcdir%g |
---|
1833 | s%@top_srcdir@%$top_srcdir%g |
---|
1834 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
1835 | fi; done |
---|
1836 | rm -f conftest.s* |
---|
1837 | |
---|
1838 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
1839 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
1840 | # |
---|
1841 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
1842 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
1843 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
1844 | ac_dC='\3' |
---|
1845 | ac_dD='%g' |
---|
1846 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
1847 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
1848 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
1849 | ac_uC=' ' |
---|
1850 | ac_uD='\4%g' |
---|
1851 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
1852 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
1853 | ac_eB='$%\1#\2define\3' |
---|
1854 | ac_eC=' ' |
---|
1855 | ac_eD='%g' |
---|
1856 | |
---|
1857 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
1858 | EOF |
---|
1859 | cat >> $CONFIG_STATUS <<EOF |
---|
1860 | CONFIG_HEADERS="config.h:config/${tcsh_config_file}:config.h.in" |
---|
1861 | EOF |
---|
1862 | cat >> $CONFIG_STATUS <<\EOF |
---|
1863 | fi |
---|
1864 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
1865 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
1866 | case "$ac_file" in |
---|
1867 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
1868 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
1869 | *) ac_file_in="${ac_file}.in" ;; |
---|
1870 | esac |
---|
1871 | |
---|
1872 | echo creating $ac_file |
---|
1873 | |
---|
1874 | rm -f conftest.frag conftest.in conftest.out |
---|
1875 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
1876 | cat $ac_file_inputs > conftest.in |
---|
1877 | |
---|
1878 | EOF |
---|
1879 | |
---|
1880 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
1881 | # the proper values into config.h.in to produce config.h. And first: |
---|
1882 | # Protect against being on the right side of a sed subst in config.status. |
---|
1883 | # Protect against being in an unquoted here document in config.status. |
---|
1884 | rm -f conftest.vals |
---|
1885 | cat > conftest.hdr <<\EOF |
---|
1886 | s/[\\&%]/\\&/g |
---|
1887 | s%[\\$`]%\\&%g |
---|
1888 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
1889 | s%ac_d%ac_u%gp |
---|
1890 | s%ac_u%ac_e%gp |
---|
1891 | EOF |
---|
1892 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
1893 | rm -f conftest.hdr |
---|
1894 | |
---|
1895 | # This sed command replaces #undef with comments. This is necessary, for |
---|
1896 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
1897 | # on some systems where configure will not decide to define it. |
---|
1898 | cat >> conftest.vals <<\EOF |
---|
1899 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
1900 | EOF |
---|
1901 | |
---|
1902 | # Break up conftest.vals because some shells have a limit on |
---|
1903 | # the size of here documents, and old seds have small limits too. |
---|
1904 | |
---|
1905 | rm -f conftest.tail |
---|
1906 | while : |
---|
1907 | do |
---|
1908 | ac_lines=`grep -c . conftest.vals` |
---|
1909 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
1910 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
1911 | # Write a limited-size here document to conftest.frag. |
---|
1912 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
1913 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
1914 | echo 'CEOF |
---|
1915 | sed -f conftest.frag conftest.in > conftest.out |
---|
1916 | rm -f conftest.in |
---|
1917 | mv conftest.out conftest.in |
---|
1918 | ' >> $CONFIG_STATUS |
---|
1919 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
1920 | rm -f conftest.vals |
---|
1921 | mv conftest.tail conftest.vals |
---|
1922 | done |
---|
1923 | rm -f conftest.vals |
---|
1924 | |
---|
1925 | cat >> $CONFIG_STATUS <<\EOF |
---|
1926 | rm -f conftest.frag conftest.h |
---|
1927 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
1928 | cat conftest.in >> conftest.h |
---|
1929 | rm -f conftest.in |
---|
1930 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
1931 | echo "$ac_file is unchanged" |
---|
1932 | rm -f conftest.h |
---|
1933 | else |
---|
1934 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
1935 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
1936 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
1937 | # The file is in a subdirectory. |
---|
1938 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
1939 | fi |
---|
1940 | rm -f $ac_file |
---|
1941 | mv conftest.h $ac_file |
---|
1942 | fi |
---|
1943 | fi; done |
---|
1944 | |
---|
1945 | EOF |
---|
1946 | cat >> $CONFIG_STATUS <<EOF |
---|
1947 | |
---|
1948 | EOF |
---|
1949 | cat >> $CONFIG_STATUS <<\EOF |
---|
1950 | |
---|
1951 | exit 0 |
---|
1952 | EOF |
---|
1953 | chmod +x $CONFIG_STATUS |
---|
1954 | rm -fr confdefs* $ac_clean_files |
---|
1955 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
1956 | |
---|