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