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