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