1 | #! /bin/sh |
---|
2 | |
---|
3 | # Guess values for system-dependent variables and create Makefiles. |
---|
4 | # Generated automatically using autoconf version 2.13 |
---|
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
6 | # |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | |
---|
10 | # Defaults: |
---|
11 | ac_help= |
---|
12 | ac_default_prefix=/usr/local |
---|
13 | # Any additions from configure.in: |
---|
14 | ac_help="$ac_help |
---|
15 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-static[=PKGS] build static libraries [default=yes]" |
---|
18 | ac_help="$ac_help |
---|
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
---|
20 | ac_help="$ac_help |
---|
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
---|
22 | ac_help="$ac_help |
---|
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
---|
24 | ac_help="$ac_help |
---|
25 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
---|
26 | ac_help="$ac_help |
---|
27 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
---|
28 | ac_help="$ac_help |
---|
29 | --disable-gtktest Do not try to compile and run a test GTK program" |
---|
30 | ac_help="$ac_help |
---|
31 | --with-x use the X Window System" |
---|
32 | ac_help="$ac_help |
---|
33 | --enable-capplet build the GNOME capplet [default=yes]" |
---|
34 | |
---|
35 | # Initialize some variables set by options. |
---|
36 | # The variables have the same names as the options, with |
---|
37 | # dashes changed to underlines. |
---|
38 | build=NONE |
---|
39 | cache_file=./config.cache |
---|
40 | exec_prefix=NONE |
---|
41 | host=NONE |
---|
42 | no_create= |
---|
43 | nonopt=NONE |
---|
44 | no_recursion= |
---|
45 | prefix=NONE |
---|
46 | program_prefix=NONE |
---|
47 | program_suffix=NONE |
---|
48 | program_transform_name=s,x,x, |
---|
49 | silent= |
---|
50 | site= |
---|
51 | srcdir= |
---|
52 | target=NONE |
---|
53 | verbose= |
---|
54 | x_includes=NONE |
---|
55 | x_libraries=NONE |
---|
56 | bindir='${exec_prefix}/bin' |
---|
57 | sbindir='${exec_prefix}/sbin' |
---|
58 | libexecdir='${exec_prefix}/libexec' |
---|
59 | datadir='${prefix}/share' |
---|
60 | sysconfdir='${prefix}/etc' |
---|
61 | sharedstatedir='${prefix}/com' |
---|
62 | localstatedir='${prefix}/var' |
---|
63 | libdir='${exec_prefix}/lib' |
---|
64 | includedir='${prefix}/include' |
---|
65 | oldincludedir='/usr/include' |
---|
66 | infodir='${prefix}/info' |
---|
67 | mandir='${prefix}/man' |
---|
68 | |
---|
69 | # Initialize some other variables. |
---|
70 | subdirs= |
---|
71 | MFLAGS= MAKEFLAGS= |
---|
72 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
73 | # Maximum number of lines to put in a shell here document. |
---|
74 | ac_max_here_lines=12 |
---|
75 | |
---|
76 | ac_prev= |
---|
77 | for ac_option |
---|
78 | do |
---|
79 | |
---|
80 | # If the previous option needs an argument, assign it. |
---|
81 | if test -n "$ac_prev"; then |
---|
82 | eval "$ac_prev=\$ac_option" |
---|
83 | ac_prev= |
---|
84 | continue |
---|
85 | fi |
---|
86 | |
---|
87 | case "$ac_option" in |
---|
88 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
89 | *) ac_optarg= ;; |
---|
90 | esac |
---|
91 | |
---|
92 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
93 | |
---|
94 | case "$ac_option" in |
---|
95 | |
---|
96 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
97 | ac_prev=bindir ;; |
---|
98 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
99 | bindir="$ac_optarg" ;; |
---|
100 | |
---|
101 | -build | --build | --buil | --bui | --bu) |
---|
102 | ac_prev=build ;; |
---|
103 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
104 | build="$ac_optarg" ;; |
---|
105 | |
---|
106 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
107 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
108 | ac_prev=cache_file ;; |
---|
109 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
110 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
111 | cache_file="$ac_optarg" ;; |
---|
112 | |
---|
113 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
114 | ac_prev=datadir ;; |
---|
115 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
116 | | --da=*) |
---|
117 | datadir="$ac_optarg" ;; |
---|
118 | |
---|
119 | -disable-* | --disable-*) |
---|
120 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
121 | # Reject names that are not valid shell variable names. |
---|
122 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
123 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
124 | fi |
---|
125 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
126 | eval "enable_${ac_feature}=no" ;; |
---|
127 | |
---|
128 | -enable-* | --enable-*) |
---|
129 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
130 | # Reject names that are not valid shell variable names. |
---|
131 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
133 | fi |
---|
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
135 | case "$ac_option" in |
---|
136 | *=*) ;; |
---|
137 | *) ac_optarg=yes ;; |
---|
138 | esac |
---|
139 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
140 | |
---|
141 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
142 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
143 | | --exec | --exe | --ex) |
---|
144 | ac_prev=exec_prefix ;; |
---|
145 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
146 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
147 | | --exec=* | --exe=* | --ex=*) |
---|
148 | exec_prefix="$ac_optarg" ;; |
---|
149 | |
---|
150 | -gas | --gas | --ga | --g) |
---|
151 | # Obsolete; use --with-gas. |
---|
152 | with_gas=yes ;; |
---|
153 | |
---|
154 | -help | --help | --hel | --he) |
---|
155 | # Omit some internal or obsolete options to make the list less imposing. |
---|
156 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
157 | cat << EOF |
---|
158 | Usage: configure [options] [host] |
---|
159 | Options: [defaults in brackets after descriptions] |
---|
160 | Configuration: |
---|
161 | --cache-file=FILE cache test results in FILE |
---|
162 | --help print this message |
---|
163 | --no-create do not create output files |
---|
164 | --quiet, --silent do not print \`checking...' messages |
---|
165 | --version print the version of autoconf that created configure |
---|
166 | Directory and file names: |
---|
167 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
168 | [$ac_default_prefix] |
---|
169 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
170 | [same as prefix] |
---|
171 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
172 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
173 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
174 | --datadir=DIR read-only architecture-independent data in DIR |
---|
175 | [PREFIX/share] |
---|
176 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
177 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
178 | [PREFIX/com] |
---|
179 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
180 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
181 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
182 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
183 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
184 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
185 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
186 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
187 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
188 | --program-transform-name=PROGRAM |
---|
189 | run sed PROGRAM on installed program names |
---|
190 | EOF |
---|
191 | cat << EOF |
---|
192 | Host type: |
---|
193 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
194 | --host=HOST configure for HOST [guessed] |
---|
195 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
196 | Features and packages: |
---|
197 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
198 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
199 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
200 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
201 | --x-includes=DIR X include files are in DIR |
---|
202 | --x-libraries=DIR X library files are in DIR |
---|
203 | EOF |
---|
204 | if test -n "$ac_help"; then |
---|
205 | echo "--enable and --with options recognized:$ac_help" |
---|
206 | fi |
---|
207 | exit 0 ;; |
---|
208 | |
---|
209 | -host | --host | --hos | --ho) |
---|
210 | ac_prev=host ;; |
---|
211 | -host=* | --host=* | --hos=* | --ho=*) |
---|
212 | host="$ac_optarg" ;; |
---|
213 | |
---|
214 | -includedir | --includedir | --includedi | --included | --include \ |
---|
215 | | --includ | --inclu | --incl | --inc) |
---|
216 | ac_prev=includedir ;; |
---|
217 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
218 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
219 | includedir="$ac_optarg" ;; |
---|
220 | |
---|
221 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
222 | ac_prev=infodir ;; |
---|
223 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
224 | infodir="$ac_optarg" ;; |
---|
225 | |
---|
226 | -libdir | --libdir | --libdi | --libd) |
---|
227 | ac_prev=libdir ;; |
---|
228 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
229 | libdir="$ac_optarg" ;; |
---|
230 | |
---|
231 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
232 | | --libexe | --libex | --libe) |
---|
233 | ac_prev=libexecdir ;; |
---|
234 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
235 | | --libexe=* | --libex=* | --libe=*) |
---|
236 | libexecdir="$ac_optarg" ;; |
---|
237 | |
---|
238 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
239 | | --localstate | --localstat | --localsta | --localst \ |
---|
240 | | --locals | --local | --loca | --loc | --lo) |
---|
241 | ac_prev=localstatedir ;; |
---|
242 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
243 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
244 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
245 | localstatedir="$ac_optarg" ;; |
---|
246 | |
---|
247 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
248 | ac_prev=mandir ;; |
---|
249 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
250 | mandir="$ac_optarg" ;; |
---|
251 | |
---|
252 | -nfp | --nfp | --nf) |
---|
253 | # Obsolete; use --without-fp. |
---|
254 | with_fp=no ;; |
---|
255 | |
---|
256 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
257 | | --no-cr | --no-c) |
---|
258 | no_create=yes ;; |
---|
259 | |
---|
260 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
261 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
262 | no_recursion=yes ;; |
---|
263 | |
---|
264 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
265 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
266 | | --oldin | --oldi | --old | --ol | --o) |
---|
267 | ac_prev=oldincludedir ;; |
---|
268 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
269 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
270 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
271 | oldincludedir="$ac_optarg" ;; |
---|
272 | |
---|
273 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
274 | ac_prev=prefix ;; |
---|
275 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
276 | prefix="$ac_optarg" ;; |
---|
277 | |
---|
278 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
279 | | --program-pre | --program-pr | --program-p) |
---|
280 | ac_prev=program_prefix ;; |
---|
281 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
282 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
283 | program_prefix="$ac_optarg" ;; |
---|
284 | |
---|
285 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
286 | | --program-suf | --program-su | --program-s) |
---|
287 | ac_prev=program_suffix ;; |
---|
288 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
289 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
290 | program_suffix="$ac_optarg" ;; |
---|
291 | |
---|
292 | -program-transform-name | --program-transform-name \ |
---|
293 | | --program-transform-nam | --program-transform-na \ |
---|
294 | | --program-transform-n | --program-transform- \ |
---|
295 | | --program-transform | --program-transfor \ |
---|
296 | | --program-transfo | --program-transf \ |
---|
297 | | --program-trans | --program-tran \ |
---|
298 | | --progr-tra | --program-tr | --program-t) |
---|
299 | ac_prev=program_transform_name ;; |
---|
300 | -program-transform-name=* | --program-transform-name=* \ |
---|
301 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
302 | | --program-transform-n=* | --program-transform-=* \ |
---|
303 | | --program-transform=* | --program-transfor=* \ |
---|
304 | | --program-transfo=* | --program-transf=* \ |
---|
305 | | --program-trans=* | --program-tran=* \ |
---|
306 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
307 | program_transform_name="$ac_optarg" ;; |
---|
308 | |
---|
309 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
310 | | -silent | --silent | --silen | --sile | --sil) |
---|
311 | silent=yes ;; |
---|
312 | |
---|
313 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
314 | ac_prev=sbindir ;; |
---|
315 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
316 | | --sbi=* | --sb=*) |
---|
317 | sbindir="$ac_optarg" ;; |
---|
318 | |
---|
319 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
320 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
321 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
322 | | --sha | --sh) |
---|
323 | ac_prev=sharedstatedir ;; |
---|
324 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
325 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
326 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
327 | | --sha=* | --sh=*) |
---|
328 | sharedstatedir="$ac_optarg" ;; |
---|
329 | |
---|
330 | -site | --site | --sit) |
---|
331 | ac_prev=site ;; |
---|
332 | -site=* | --site=* | --sit=*) |
---|
333 | site="$ac_optarg" ;; |
---|
334 | |
---|
335 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
336 | ac_prev=srcdir ;; |
---|
337 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
338 | srcdir="$ac_optarg" ;; |
---|
339 | |
---|
340 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
341 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
342 | ac_prev=sysconfdir ;; |
---|
343 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
344 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
345 | sysconfdir="$ac_optarg" ;; |
---|
346 | |
---|
347 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
348 | ac_prev=target ;; |
---|
349 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
350 | target="$ac_optarg" ;; |
---|
351 | |
---|
352 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
353 | verbose=yes ;; |
---|
354 | |
---|
355 | -version | --version | --versio | --versi | --vers) |
---|
356 | echo "configure generated by autoconf version 2.13" |
---|
357 | exit 0 ;; |
---|
358 | |
---|
359 | -with-* | --with-*) |
---|
360 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
361 | # Reject names that are not valid shell variable names. |
---|
362 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
363 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
364 | fi |
---|
365 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
366 | case "$ac_option" in |
---|
367 | *=*) ;; |
---|
368 | *) ac_optarg=yes ;; |
---|
369 | esac |
---|
370 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
371 | |
---|
372 | -without-* | --without-*) |
---|
373 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
374 | # Reject names that are not valid shell variable names. |
---|
375 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
376 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
377 | fi |
---|
378 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
379 | eval "with_${ac_package}=no" ;; |
---|
380 | |
---|
381 | --x) |
---|
382 | # Obsolete; use --with-x. |
---|
383 | with_x=yes ;; |
---|
384 | |
---|
385 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
386 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
387 | ac_prev=x_includes ;; |
---|
388 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
389 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
390 | x_includes="$ac_optarg" ;; |
---|
391 | |
---|
392 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
393 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
394 | ac_prev=x_libraries ;; |
---|
395 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
396 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
397 | x_libraries="$ac_optarg" ;; |
---|
398 | |
---|
399 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
400 | ;; |
---|
401 | |
---|
402 | *) |
---|
403 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
404 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
405 | fi |
---|
406 | if test "x$nonopt" != xNONE; then |
---|
407 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
408 | fi |
---|
409 | nonopt="$ac_option" |
---|
410 | ;; |
---|
411 | |
---|
412 | esac |
---|
413 | done |
---|
414 | |
---|
415 | if test -n "$ac_prev"; then |
---|
416 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
417 | fi |
---|
418 | |
---|
419 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
420 | |
---|
421 | # File descriptor usage: |
---|
422 | # 0 standard input |
---|
423 | # 1 file creation |
---|
424 | # 2 errors and warnings |
---|
425 | # 3 some systems may open it to /dev/tty |
---|
426 | # 4 used on the Kubota Titan |
---|
427 | # 6 checking for... messages and results |
---|
428 | # 5 compiler messages saved in config.log |
---|
429 | if test "$silent" = yes; then |
---|
430 | exec 6>/dev/null |
---|
431 | else |
---|
432 | exec 6>&1 |
---|
433 | fi |
---|
434 | exec 5>./config.log |
---|
435 | |
---|
436 | echo "\ |
---|
437 | This file contains any messages produced by compilers while |
---|
438 | running configure, to aid debugging if configure makes a mistake. |
---|
439 | " 1>&5 |
---|
440 | |
---|
441 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
442 | # Also quote any args containing shell metacharacters. |
---|
443 | ac_configure_args= |
---|
444 | for ac_arg |
---|
445 | do |
---|
446 | case "$ac_arg" in |
---|
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
448 | | --no-cr | --no-c) ;; |
---|
449 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
450 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
451 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
452 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
453 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
454 | esac |
---|
455 | done |
---|
456 | |
---|
457 | # NLS nuisances. |
---|
458 | # Only set these to C if already set. These must not be set unconditionally |
---|
459 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
460 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
461 | # Non-C LC_CTYPE values break the ctype check. |
---|
462 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
463 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
464 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
465 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
466 | |
---|
467 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
468 | rm -rf conftest* confdefs.h |
---|
469 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
470 | echo > confdefs.h |
---|
471 | |
---|
472 | # A filename unique to this package, relative to the directory that |
---|
473 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
474 | ac_unique_file=src/xalf.c |
---|
475 | |
---|
476 | # Find the source files, if location was not specified. |
---|
477 | if test -z "$srcdir"; then |
---|
478 | ac_srcdir_defaulted=yes |
---|
479 | # Try the directory containing this script, then its parent. |
---|
480 | ac_prog=$0 |
---|
481 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
482 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
483 | srcdir=$ac_confdir |
---|
484 | if test ! -r $srcdir/$ac_unique_file; then |
---|
485 | srcdir=.. |
---|
486 | fi |
---|
487 | else |
---|
488 | ac_srcdir_defaulted=no |
---|
489 | fi |
---|
490 | if test ! -r $srcdir/$ac_unique_file; then |
---|
491 | if test "$ac_srcdir_defaulted" = yes; then |
---|
492 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
493 | else |
---|
494 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
495 | fi |
---|
496 | fi |
---|
497 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
498 | |
---|
499 | # Prefer explicitly selected file to automatically selected ones. |
---|
500 | if test -z "$CONFIG_SITE"; then |
---|
501 | if test "x$prefix" != xNONE; then |
---|
502 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
503 | else |
---|
504 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
505 | fi |
---|
506 | fi |
---|
507 | for ac_site_file in $CONFIG_SITE; do |
---|
508 | if test -r "$ac_site_file"; then |
---|
509 | echo "loading site script $ac_site_file" |
---|
510 | . "$ac_site_file" |
---|
511 | fi |
---|
512 | done |
---|
513 | |
---|
514 | if test -r "$cache_file"; then |
---|
515 | echo "loading cache $cache_file" |
---|
516 | . $cache_file |
---|
517 | else |
---|
518 | echo "creating cache $cache_file" |
---|
519 | > $cache_file |
---|
520 | fi |
---|
521 | |
---|
522 | ac_ext=c |
---|
523 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
524 | ac_cpp='$CPP $CPPFLAGS' |
---|
525 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
526 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
527 | cross_compiling=$ac_cv_prog_cc_cross |
---|
528 | |
---|
529 | ac_exeext= |
---|
530 | ac_objext=o |
---|
531 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
532 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
533 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
534 | ac_n= ac_c=' |
---|
535 | ' ac_t=' ' |
---|
536 | else |
---|
537 | ac_n=-n ac_c= ac_t= |
---|
538 | fi |
---|
539 | else |
---|
540 | ac_n= ac_c='\c' ac_t= |
---|
541 | fi |
---|
542 | |
---|
543 | |
---|
544 | |
---|
545 | ac_aux_dir= |
---|
546 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
547 | if test -f $ac_dir/install-sh; then |
---|
548 | ac_aux_dir=$ac_dir |
---|
549 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
550 | break |
---|
551 | elif test -f $ac_dir/install.sh; then |
---|
552 | ac_aux_dir=$ac_dir |
---|
553 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
554 | break |
---|
555 | fi |
---|
556 | done |
---|
557 | if test -z "$ac_aux_dir"; then |
---|
558 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
559 | fi |
---|
560 | ac_config_guess=$ac_aux_dir/config.guess |
---|
561 | ac_config_sub=$ac_aux_dir/config.sub |
---|
562 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
563 | |
---|
564 | # Find a good install program. We prefer a C program (faster), |
---|
565 | # so one script is as good as another. But avoid the broken or |
---|
566 | # incompatible versions: |
---|
567 | # SysV /etc/install, /usr/sbin/install |
---|
568 | # SunOS /usr/etc/install |
---|
569 | # IRIX /sbin/install |
---|
570 | # AIX /bin/install |
---|
571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
574 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
575 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
576 | echo "configure:577: checking for a BSD compatible install" >&5 |
---|
577 | if test -z "$INSTALL"; then |
---|
578 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
579 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
580 | else |
---|
581 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
582 | for ac_dir in $PATH; do |
---|
583 | # Account for people who put trailing slashes in PATH elements. |
---|
584 | case "$ac_dir/" in |
---|
585 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
586 | *) |
---|
587 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
588 | # Don't use installbsd from OSF since it installs stuff as root |
---|
589 | # by default. |
---|
590 | for ac_prog in ginstall scoinst install; do |
---|
591 | if test -f $ac_dir/$ac_prog; then |
---|
592 | if test $ac_prog = install && |
---|
593 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
594 | # AIX install. It has an incompatible calling convention. |
---|
595 | : |
---|
596 | else |
---|
597 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
598 | break 2 |
---|
599 | fi |
---|
600 | fi |
---|
601 | done |
---|
602 | ;; |
---|
603 | esac |
---|
604 | done |
---|
605 | IFS="$ac_save_IFS" |
---|
606 | |
---|
607 | fi |
---|
608 | if test "${ac_cv_path_install+set}" = set; then |
---|
609 | INSTALL="$ac_cv_path_install" |
---|
610 | else |
---|
611 | # As a last resort, use the slow shell script. We don't cache a |
---|
612 | # path for INSTALL within a source directory, because that will |
---|
613 | # break other packages using the cache if that directory is |
---|
614 | # removed, or if the path is relative. |
---|
615 | INSTALL="$ac_install_sh" |
---|
616 | fi |
---|
617 | fi |
---|
618 | echo "$ac_t""$INSTALL" 1>&6 |
---|
619 | |
---|
620 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
621 | # It thinks the first close brace ends the variable substitution. |
---|
622 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
623 | |
---|
624 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
625 | |
---|
626 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
627 | |
---|
628 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
629 | echo "configure:630: checking whether build environment is sane" >&5 |
---|
630 | # Just in case |
---|
631 | sleep 1 |
---|
632 | echo timestamp > conftestfile |
---|
633 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
634 | # arguments. Must try -L first in case configure is actually a |
---|
635 | # symlink; some systems play weird games with the mod time of symlinks |
---|
636 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
637 | # directory). |
---|
638 | if ( |
---|
639 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
640 | if test "$*" = "X"; then |
---|
641 | # -L didn't work. |
---|
642 | set X `ls -t $srcdir/configure conftestfile` |
---|
643 | fi |
---|
644 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
645 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
646 | |
---|
647 | # If neither matched, then we have a broken ls. This can happen |
---|
648 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
649 | # broken ls alias from the environment. This has actually |
---|
650 | # happened. Such a system could not be considered "sane". |
---|
651 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
652 | alias in your environment" 1>&2; exit 1; } |
---|
653 | fi |
---|
654 | |
---|
655 | test "$2" = conftestfile |
---|
656 | ) |
---|
657 | then |
---|
658 | # Ok. |
---|
659 | : |
---|
660 | else |
---|
661 | { echo "configure: error: newly created file is older than distributed files! |
---|
662 | Check your system clock" 1>&2; exit 1; } |
---|
663 | fi |
---|
664 | rm -f conftest* |
---|
665 | echo "$ac_t""yes" 1>&6 |
---|
666 | if test "$program_transform_name" = s,x,x,; then |
---|
667 | program_transform_name= |
---|
668 | else |
---|
669 | # Double any \ or $. echo might interpret backslashes. |
---|
670 | cat <<\EOF_SED > conftestsed |
---|
671 | s,\\,\\\\,g; s,\$,$$,g |
---|
672 | EOF_SED |
---|
673 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
674 | rm -f conftestsed |
---|
675 | fi |
---|
676 | test "$program_prefix" != NONE && |
---|
677 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
678 | # Use a double $ so make ignores it. |
---|
679 | test "$program_suffix" != NONE && |
---|
680 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
681 | |
---|
682 | # sed with no file args requires a program. |
---|
683 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
684 | |
---|
685 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
686 | echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
687 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
688 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
689 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
690 | else |
---|
691 | cat > conftestmake <<\EOF |
---|
692 | all: |
---|
693 | @echo 'ac_maketemp="${MAKE}"' |
---|
694 | EOF |
---|
695 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
696 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
697 | if test -n "$ac_maketemp"; then |
---|
698 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
699 | else |
---|
700 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
701 | fi |
---|
702 | rm -f conftestmake |
---|
703 | fi |
---|
704 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
705 | echo "$ac_t""yes" 1>&6 |
---|
706 | SET_MAKE= |
---|
707 | else |
---|
708 | echo "$ac_t""no" 1>&6 |
---|
709 | SET_MAKE="MAKE=${MAKE-make}" |
---|
710 | fi |
---|
711 | |
---|
712 | |
---|
713 | PACKAGE=xalf |
---|
714 | |
---|
715 | VERSION=0.12 |
---|
716 | |
---|
717 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
718 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
719 | fi |
---|
720 | cat >> confdefs.h <<EOF |
---|
721 | #define PACKAGE "$PACKAGE" |
---|
722 | EOF |
---|
723 | |
---|
724 | cat >> confdefs.h <<EOF |
---|
725 | #define VERSION "$VERSION" |
---|
726 | EOF |
---|
727 | |
---|
728 | |
---|
729 | |
---|
730 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
731 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
732 | echo "configure:733: checking for working aclocal" >&5 |
---|
733 | # Run test in a subshell; some versions of sh will print an error if |
---|
734 | # an executable is not found, even if stderr is redirected. |
---|
735 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
736 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
737 | ACLOCAL=aclocal |
---|
738 | echo "$ac_t""found" 1>&6 |
---|
739 | else |
---|
740 | ACLOCAL="$missing_dir/missing aclocal" |
---|
741 | echo "$ac_t""missing" 1>&6 |
---|
742 | fi |
---|
743 | |
---|
744 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
745 | echo "configure:746: checking for working autoconf" >&5 |
---|
746 | # Run test in a subshell; some versions of sh will print an error if |
---|
747 | # an executable is not found, even if stderr is redirected. |
---|
748 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
749 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
750 | AUTOCONF=autoconf |
---|
751 | echo "$ac_t""found" 1>&6 |
---|
752 | else |
---|
753 | AUTOCONF="$missing_dir/missing autoconf" |
---|
754 | echo "$ac_t""missing" 1>&6 |
---|
755 | fi |
---|
756 | |
---|
757 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
758 | echo "configure:759: checking for working automake" >&5 |
---|
759 | # Run test in a subshell; some versions of sh will print an error if |
---|
760 | # an executable is not found, even if stderr is redirected. |
---|
761 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
762 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
763 | AUTOMAKE=automake |
---|
764 | echo "$ac_t""found" 1>&6 |
---|
765 | else |
---|
766 | AUTOMAKE="$missing_dir/missing automake" |
---|
767 | echo "$ac_t""missing" 1>&6 |
---|
768 | fi |
---|
769 | |
---|
770 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
771 | echo "configure:772: checking for working autoheader" >&5 |
---|
772 | # Run test in a subshell; some versions of sh will print an error if |
---|
773 | # an executable is not found, even if stderr is redirected. |
---|
774 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
775 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
776 | AUTOHEADER=autoheader |
---|
777 | echo "$ac_t""found" 1>&6 |
---|
778 | else |
---|
779 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
780 | echo "$ac_t""missing" 1>&6 |
---|
781 | fi |
---|
782 | |
---|
783 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
784 | echo "configure:785: checking for working makeinfo" >&5 |
---|
785 | # Run test in a subshell; some versions of sh will print an error if |
---|
786 | # an executable is not found, even if stderr is redirected. |
---|
787 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
788 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
789 | MAKEINFO=makeinfo |
---|
790 | echo "$ac_t""found" 1>&6 |
---|
791 | else |
---|
792 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
793 | echo "$ac_t""missing" 1>&6 |
---|
794 | fi |
---|
795 | |
---|
796 | |
---|
797 | |
---|
798 | |
---|
799 | |
---|
800 | |
---|
801 | |
---|
802 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
803 | set dummy gcc; ac_word=$2 |
---|
804 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
805 | echo "configure:806: checking for $ac_word" >&5 |
---|
806 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
807 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
808 | else |
---|
809 | if test -n "$CC"; then |
---|
810 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
811 | else |
---|
812 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
813 | ac_dummy="$PATH" |
---|
814 | for ac_dir in $ac_dummy; do |
---|
815 | test -z "$ac_dir" && ac_dir=. |
---|
816 | if test -f $ac_dir/$ac_word; then |
---|
817 | ac_cv_prog_CC="gcc" |
---|
818 | break |
---|
819 | fi |
---|
820 | done |
---|
821 | IFS="$ac_save_ifs" |
---|
822 | fi |
---|
823 | fi |
---|
824 | CC="$ac_cv_prog_CC" |
---|
825 | if test -n "$CC"; then |
---|
826 | echo "$ac_t""$CC" 1>&6 |
---|
827 | else |
---|
828 | echo "$ac_t""no" 1>&6 |
---|
829 | fi |
---|
830 | |
---|
831 | if test -z "$CC"; then |
---|
832 | # Extract the first word of "cc", so it can be a program name with args. |
---|
833 | set dummy cc; ac_word=$2 |
---|
834 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
835 | echo "configure:836: checking for $ac_word" >&5 |
---|
836 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
837 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
838 | else |
---|
839 | if test -n "$CC"; then |
---|
840 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
841 | else |
---|
842 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
843 | ac_prog_rejected=no |
---|
844 | ac_dummy="$PATH" |
---|
845 | for ac_dir in $ac_dummy; do |
---|
846 | test -z "$ac_dir" && ac_dir=. |
---|
847 | if test -f $ac_dir/$ac_word; then |
---|
848 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
849 | ac_prog_rejected=yes |
---|
850 | continue |
---|
851 | fi |
---|
852 | ac_cv_prog_CC="cc" |
---|
853 | break |
---|
854 | fi |
---|
855 | done |
---|
856 | IFS="$ac_save_ifs" |
---|
857 | if test $ac_prog_rejected = yes; then |
---|
858 | # We found a bogon in the path, so make sure we never use it. |
---|
859 | set dummy $ac_cv_prog_CC |
---|
860 | shift |
---|
861 | if test $# -gt 0; then |
---|
862 | # We chose a different compiler from the bogus one. |
---|
863 | # However, it has the same basename, so the bogon will be chosen |
---|
864 | # first if we set CC to just the basename; use the full file name. |
---|
865 | shift |
---|
866 | set dummy "$ac_dir/$ac_word" "$@" |
---|
867 | shift |
---|
868 | ac_cv_prog_CC="$@" |
---|
869 | fi |
---|
870 | fi |
---|
871 | fi |
---|
872 | fi |
---|
873 | CC="$ac_cv_prog_CC" |
---|
874 | if test -n "$CC"; then |
---|
875 | echo "$ac_t""$CC" 1>&6 |
---|
876 | else |
---|
877 | echo "$ac_t""no" 1>&6 |
---|
878 | fi |
---|
879 | |
---|
880 | if test -z "$CC"; then |
---|
881 | case "`uname -s`" in |
---|
882 | *win32* | *WIN32*) |
---|
883 | # Extract the first word of "cl", so it can be a program name with args. |
---|
884 | set dummy cl; ac_word=$2 |
---|
885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
886 | echo "configure:887: checking for $ac_word" >&5 |
---|
887 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
888 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
889 | else |
---|
890 | if test -n "$CC"; then |
---|
891 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
892 | else |
---|
893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
894 | ac_dummy="$PATH" |
---|
895 | for ac_dir in $ac_dummy; do |
---|
896 | test -z "$ac_dir" && ac_dir=. |
---|
897 | if test -f $ac_dir/$ac_word; then |
---|
898 | ac_cv_prog_CC="cl" |
---|
899 | break |
---|
900 | fi |
---|
901 | done |
---|
902 | IFS="$ac_save_ifs" |
---|
903 | fi |
---|
904 | fi |
---|
905 | CC="$ac_cv_prog_CC" |
---|
906 | if test -n "$CC"; then |
---|
907 | echo "$ac_t""$CC" 1>&6 |
---|
908 | else |
---|
909 | echo "$ac_t""no" 1>&6 |
---|
910 | fi |
---|
911 | ;; |
---|
912 | esac |
---|
913 | fi |
---|
914 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
915 | fi |
---|
916 | |
---|
917 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
918 | echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
919 | |
---|
920 | ac_ext=c |
---|
921 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
922 | ac_cpp='$CPP $CPPFLAGS' |
---|
923 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
924 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
925 | cross_compiling=$ac_cv_prog_cc_cross |
---|
926 | |
---|
927 | cat > conftest.$ac_ext << EOF |
---|
928 | |
---|
929 | #line 930 "configure" |
---|
930 | #include "confdefs.h" |
---|
931 | |
---|
932 | main(){return(0);} |
---|
933 | EOF |
---|
934 | if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
935 | ac_cv_prog_cc_works=yes |
---|
936 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
937 | if (./conftest; exit) 2>/dev/null; then |
---|
938 | ac_cv_prog_cc_cross=no |
---|
939 | else |
---|
940 | ac_cv_prog_cc_cross=yes |
---|
941 | fi |
---|
942 | else |
---|
943 | echo "configure: failed program was:" >&5 |
---|
944 | cat conftest.$ac_ext >&5 |
---|
945 | ac_cv_prog_cc_works=no |
---|
946 | fi |
---|
947 | rm -fr conftest* |
---|
948 | ac_ext=c |
---|
949 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
950 | ac_cpp='$CPP $CPPFLAGS' |
---|
951 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
952 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
953 | cross_compiling=$ac_cv_prog_cc_cross |
---|
954 | |
---|
955 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
956 | if test $ac_cv_prog_cc_works = no; then |
---|
957 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
958 | fi |
---|
959 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
960 | echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
961 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
962 | cross_compiling=$ac_cv_prog_cc_cross |
---|
963 | |
---|
964 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
965 | echo "configure:966: checking whether we are using GNU C" >&5 |
---|
966 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
967 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
968 | else |
---|
969 | cat > conftest.c <<EOF |
---|
970 | #ifdef __GNUC__ |
---|
971 | yes; |
---|
972 | #endif |
---|
973 | EOF |
---|
974 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
975 | ac_cv_prog_gcc=yes |
---|
976 | else |
---|
977 | ac_cv_prog_gcc=no |
---|
978 | fi |
---|
979 | fi |
---|
980 | |
---|
981 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
982 | |
---|
983 | if test $ac_cv_prog_gcc = yes; then |
---|
984 | GCC=yes |
---|
985 | else |
---|
986 | GCC= |
---|
987 | fi |
---|
988 | |
---|
989 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
990 | ac_save_CFLAGS="$CFLAGS" |
---|
991 | CFLAGS= |
---|
992 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
993 | echo "configure:994: checking whether ${CC-cc} accepts -g" >&5 |
---|
994 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
995 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
996 | else |
---|
997 | echo 'void f(){}' > conftest.c |
---|
998 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
999 | ac_cv_prog_cc_g=yes |
---|
1000 | else |
---|
1001 | ac_cv_prog_cc_g=no |
---|
1002 | fi |
---|
1003 | rm -f conftest* |
---|
1004 | |
---|
1005 | fi |
---|
1006 | |
---|
1007 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1008 | if test "$ac_test_CFLAGS" = set; then |
---|
1009 | CFLAGS="$ac_save_CFLAGS" |
---|
1010 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1011 | if test "$GCC" = yes; then |
---|
1012 | CFLAGS="-g -O2" |
---|
1013 | else |
---|
1014 | CFLAGS="-g" |
---|
1015 | fi |
---|
1016 | else |
---|
1017 | if test "$GCC" = yes; then |
---|
1018 | CFLAGS="-O2" |
---|
1019 | else |
---|
1020 | CFLAGS= |
---|
1021 | fi |
---|
1022 | fi |
---|
1023 | |
---|
1024 | |
---|
1025 | # Check whether --enable-shared or --disable-shared was given. |
---|
1026 | if test "${enable_shared+set}" = set; then |
---|
1027 | enableval="$enable_shared" |
---|
1028 | p=${PACKAGE-default} |
---|
1029 | case "$enableval" in |
---|
1030 | yes) enable_shared=yes ;; |
---|
1031 | no) enable_shared=no ;; |
---|
1032 | *) |
---|
1033 | enable_shared=no |
---|
1034 | # Look at the argument we got. We use all the common list separators. |
---|
1035 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1036 | for pkg in $enableval; do |
---|
1037 | if test "X$pkg" = "X$p"; then |
---|
1038 | enable_shared=yes |
---|
1039 | fi |
---|
1040 | done |
---|
1041 | IFS="$ac_save_ifs" |
---|
1042 | ;; |
---|
1043 | esac |
---|
1044 | else |
---|
1045 | enable_shared=yes |
---|
1046 | fi |
---|
1047 | |
---|
1048 | # Check whether --enable-static or --disable-static was given. |
---|
1049 | if test "${enable_static+set}" = set; then |
---|
1050 | enableval="$enable_static" |
---|
1051 | p=${PACKAGE-default} |
---|
1052 | case "$enableval" in |
---|
1053 | yes) enable_static=yes ;; |
---|
1054 | no) enable_static=no ;; |
---|
1055 | *) |
---|
1056 | enable_static=no |
---|
1057 | # Look at the argument we got. We use all the common list separators. |
---|
1058 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1059 | for pkg in $enableval; do |
---|
1060 | if test "X$pkg" = "X$p"; then |
---|
1061 | enable_static=yes |
---|
1062 | fi |
---|
1063 | done |
---|
1064 | IFS="$ac_save_ifs" |
---|
1065 | ;; |
---|
1066 | esac |
---|
1067 | else |
---|
1068 | enable_static=yes |
---|
1069 | fi |
---|
1070 | |
---|
1071 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
1072 | if test "${enable_fast_install+set}" = set; then |
---|
1073 | enableval="$enable_fast_install" |
---|
1074 | p=${PACKAGE-default} |
---|
1075 | case "$enableval" in |
---|
1076 | yes) enable_fast_install=yes ;; |
---|
1077 | no) enable_fast_install=no ;; |
---|
1078 | *) |
---|
1079 | enable_fast_install=no |
---|
1080 | # Look at the argument we got. We use all the common list separators. |
---|
1081 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
1082 | for pkg in $enableval; do |
---|
1083 | if test "X$pkg" = "X$p"; then |
---|
1084 | enable_fast_install=yes |
---|
1085 | fi |
---|
1086 | done |
---|
1087 | IFS="$ac_save_ifs" |
---|
1088 | ;; |
---|
1089 | esac |
---|
1090 | else |
---|
1091 | enable_fast_install=yes |
---|
1092 | fi |
---|
1093 | |
---|
1094 | |
---|
1095 | # Make sure we can run config.sub. |
---|
1096 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
1097 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
1098 | fi |
---|
1099 | |
---|
1100 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
1101 | echo "configure:1102: checking host system type" >&5 |
---|
1102 | |
---|
1103 | host_alias=$host |
---|
1104 | case "$host_alias" in |
---|
1105 | NONE) |
---|
1106 | case $nonopt in |
---|
1107 | NONE) |
---|
1108 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
1109 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
1110 | fi ;; |
---|
1111 | *) host_alias=$nonopt ;; |
---|
1112 | esac ;; |
---|
1113 | esac |
---|
1114 | |
---|
1115 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
1116 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1117 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1118 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1119 | echo "$ac_t""$host" 1>&6 |
---|
1120 | |
---|
1121 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
1122 | echo "configure:1123: checking build system type" >&5 |
---|
1123 | |
---|
1124 | build_alias=$build |
---|
1125 | case "$build_alias" in |
---|
1126 | NONE) |
---|
1127 | case $nonopt in |
---|
1128 | NONE) build_alias=$host_alias ;; |
---|
1129 | *) build_alias=$nonopt ;; |
---|
1130 | esac ;; |
---|
1131 | esac |
---|
1132 | |
---|
1133 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
1134 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1135 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1136 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1137 | echo "$ac_t""$build" 1>&6 |
---|
1138 | |
---|
1139 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
1140 | set dummy ranlib; ac_word=$2 |
---|
1141 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1142 | echo "configure:1143: checking for $ac_word" >&5 |
---|
1143 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
1144 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1145 | else |
---|
1146 | if test -n "$RANLIB"; then |
---|
1147 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
1148 | else |
---|
1149 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1150 | ac_dummy="$PATH" |
---|
1151 | for ac_dir in $ac_dummy; do |
---|
1152 | test -z "$ac_dir" && ac_dir=. |
---|
1153 | if test -f $ac_dir/$ac_word; then |
---|
1154 | ac_cv_prog_RANLIB="ranlib" |
---|
1155 | break |
---|
1156 | fi |
---|
1157 | done |
---|
1158 | IFS="$ac_save_ifs" |
---|
1159 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
1160 | fi |
---|
1161 | fi |
---|
1162 | RANLIB="$ac_cv_prog_RANLIB" |
---|
1163 | if test -n "$RANLIB"; then |
---|
1164 | echo "$ac_t""$RANLIB" 1>&6 |
---|
1165 | else |
---|
1166 | echo "$ac_t""no" 1>&6 |
---|
1167 | fi |
---|
1168 | |
---|
1169 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
1170 | if test "${with_gnu_ld+set}" = set; then |
---|
1171 | withval="$with_gnu_ld" |
---|
1172 | test "$withval" = no || with_gnu_ld=yes |
---|
1173 | else |
---|
1174 | with_gnu_ld=no |
---|
1175 | fi |
---|
1176 | |
---|
1177 | ac_prog=ld |
---|
1178 | if test "$ac_cv_prog_gcc" = yes; then |
---|
1179 | # Check if gcc -print-prog-name=ld gives a path. |
---|
1180 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
---|
1181 | echo "configure:1182: checking for ld used by GCC" >&5 |
---|
1182 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
---|
1183 | case "$ac_prog" in |
---|
1184 | # Accept absolute paths. |
---|
1185 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
1186 | re_direlt='/[^/][^/]*/\.\./' |
---|
1187 | # Canonicalize the path of ld |
---|
1188 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
1189 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
1190 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
1191 | done |
---|
1192 | test -z "$LD" && LD="$ac_prog" |
---|
1193 | ;; |
---|
1194 | "") |
---|
1195 | # If it fails, then pretend we aren't using GCC. |
---|
1196 | ac_prog=ld |
---|
1197 | ;; |
---|
1198 | *) |
---|
1199 | # If it is relative, then search for the first ld in PATH. |
---|
1200 | with_gnu_ld=unknown |
---|
1201 | ;; |
---|
1202 | esac |
---|
1203 | elif test "$with_gnu_ld" = yes; then |
---|
1204 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
---|
1205 | echo "configure:1206: checking for GNU ld" >&5 |
---|
1206 | else |
---|
1207 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
---|
1208 | echo "configure:1209: checking for non-GNU ld" >&5 |
---|
1209 | fi |
---|
1210 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
---|
1211 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1212 | else |
---|
1213 | if test -z "$LD"; then |
---|
1214 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
1215 | for ac_dir in $PATH; do |
---|
1216 | test -z "$ac_dir" && ac_dir=. |
---|
1217 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
1218 | ac_cv_path_LD="$ac_dir/$ac_prog" |
---|
1219 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
1220 | # but apparently some GNU ld's only accept -v. |
---|
1221 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
1222 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
1223 | test "$with_gnu_ld" != no && break |
---|
1224 | else |
---|
1225 | test "$with_gnu_ld" != yes && break |
---|
1226 | fi |
---|
1227 | fi |
---|
1228 | done |
---|
1229 | IFS="$ac_save_ifs" |
---|
1230 | else |
---|
1231 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
1232 | fi |
---|
1233 | fi |
---|
1234 | |
---|
1235 | LD="$ac_cv_path_LD" |
---|
1236 | if test -n "$LD"; then |
---|
1237 | echo "$ac_t""$LD" 1>&6 |
---|
1238 | else |
---|
1239 | echo "$ac_t""no" 1>&6 |
---|
1240 | fi |
---|
1241 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
---|
1242 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
---|
1243 | echo "configure:1244: checking if the linker ($LD) is GNU ld" >&5 |
---|
1244 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
---|
1245 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1246 | else |
---|
1247 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
1248 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
1249 | ac_cv_prog_gnu_ld=yes |
---|
1250 | else |
---|
1251 | ac_cv_prog_gnu_ld=no |
---|
1252 | fi |
---|
1253 | fi |
---|
1254 | |
---|
1255 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
---|
1256 | |
---|
1257 | |
---|
1258 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
---|
1259 | echo "configure:1260: checking for BSD-compatible nm" >&5 |
---|
1260 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
---|
1261 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1262 | else |
---|
1263 | if test -n "$NM"; then |
---|
1264 | # Let the user override the test. |
---|
1265 | ac_cv_path_NM="$NM" |
---|
1266 | else |
---|
1267 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
1268 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
1269 | test -z "$ac_dir" && ac_dir=. |
---|
1270 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
---|
1271 | # Check to see if the nm accepts a BSD-compat flag. |
---|
1272 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
1273 | # nm: unknown option "B" ignored |
---|
1274 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
1275 | ac_cv_path_NM="$ac_dir/nm -B" |
---|
1276 | break |
---|
1277 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
1278 | ac_cv_path_NM="$ac_dir/nm -p" |
---|
1279 | break |
---|
1280 | else |
---|
1281 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
---|
1282 | continue # so that we can try to find one that supports BSD flags |
---|
1283 | fi |
---|
1284 | fi |
---|
1285 | done |
---|
1286 | IFS="$ac_save_ifs" |
---|
1287 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
---|
1288 | fi |
---|
1289 | fi |
---|
1290 | |
---|
1291 | NM="$ac_cv_path_NM" |
---|
1292 | echo "$ac_t""$NM" 1>&6 |
---|
1293 | |
---|
1294 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1295 | echo "configure:1296: checking whether ln -s works" >&5 |
---|
1296 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1297 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1298 | else |
---|
1299 | rm -f conftestdata |
---|
1300 | if ln -s X conftestdata 2>/dev/null |
---|
1301 | then |
---|
1302 | rm -f conftestdata |
---|
1303 | ac_cv_prog_LN_S="ln -s" |
---|
1304 | else |
---|
1305 | ac_cv_prog_LN_S=ln |
---|
1306 | fi |
---|
1307 | fi |
---|
1308 | LN_S="$ac_cv_prog_LN_S" |
---|
1309 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1310 | echo "$ac_t""yes" 1>&6 |
---|
1311 | else |
---|
1312 | echo "$ac_t""no" 1>&6 |
---|
1313 | fi |
---|
1314 | |
---|
1315 | |
---|
1316 | case "$target" in |
---|
1317 | NONE) lt_target="$host" ;; |
---|
1318 | *) lt_target="$target" ;; |
---|
1319 | esac |
---|
1320 | |
---|
1321 | # Check for any special flags to pass to ltconfig. |
---|
1322 | # |
---|
1323 | # the following will cause an existing older ltconfig to fail, so |
---|
1324 | # we ignore this at the expense of the cache file... Checking this |
---|
1325 | # will just take longer ... bummer! |
---|
1326 | #libtool_flags="--cache-file=$cache_file" |
---|
1327 | # |
---|
1328 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
---|
1329 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
---|
1330 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
---|
1331 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
---|
1332 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
---|
1333 | |
---|
1334 | |
---|
1335 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
1336 | if test "${enable_libtool_lock+set}" = set; then |
---|
1337 | enableval="$enable_libtool_lock" |
---|
1338 | : |
---|
1339 | fi |
---|
1340 | |
---|
1341 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
---|
1342 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
---|
1343 | |
---|
1344 | # Some flags need to be propagated to the compiler or linker for good |
---|
1345 | # libtool support. |
---|
1346 | case "$lt_target" in |
---|
1347 | *-*-irix6*) |
---|
1348 | # Find out which ABI we are using. |
---|
1349 | echo '#line 1350 "configure"' > conftest.$ac_ext |
---|
1350 | if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
1351 | case "`/usr/bin/file conftest.o`" in |
---|
1352 | *32-bit*) |
---|
1353 | LD="${LD-ld} -32" |
---|
1354 | ;; |
---|
1355 | *N32*) |
---|
1356 | LD="${LD-ld} -n32" |
---|
1357 | ;; |
---|
1358 | *64-bit*) |
---|
1359 | LD="${LD-ld} -64" |
---|
1360 | ;; |
---|
1361 | esac |
---|
1362 | fi |
---|
1363 | rm -rf conftest* |
---|
1364 | ;; |
---|
1365 | |
---|
1366 | *-*-sco3.2v5*) |
---|
1367 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
1368 | SAVE_CFLAGS="$CFLAGS" |
---|
1369 | CFLAGS="$CFLAGS -belf" |
---|
1370 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
---|
1371 | echo "configure:1372: checking whether the C compiler needs -belf" >&5 |
---|
1372 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
---|
1373 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1374 | else |
---|
1375 | cat > conftest.$ac_ext <<EOF |
---|
1376 | #line 1377 "configure" |
---|
1377 | #include "confdefs.h" |
---|
1378 | |
---|
1379 | int main() { |
---|
1380 | |
---|
1381 | ; return 0; } |
---|
1382 | EOF |
---|
1383 | if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1384 | rm -rf conftest* |
---|
1385 | lt_cv_cc_needs_belf=yes |
---|
1386 | else |
---|
1387 | echo "configure: failed program was:" >&5 |
---|
1388 | cat conftest.$ac_ext >&5 |
---|
1389 | rm -rf conftest* |
---|
1390 | lt_cv_cc_needs_belf=no |
---|
1391 | fi |
---|
1392 | rm -f conftest* |
---|
1393 | fi |
---|
1394 | |
---|
1395 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
---|
1396 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
1397 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
1398 | CFLAGS="$SAVE_CFLAGS" |
---|
1399 | fi |
---|
1400 | ;; |
---|
1401 | |
---|
1402 | |
---|
1403 | esac |
---|
1404 | |
---|
1405 | |
---|
1406 | # Save cache, so that ltconfig can load it |
---|
1407 | cat > confcache <<\EOF |
---|
1408 | # This file is a shell script that caches the results of configure |
---|
1409 | # tests run on this system so they can be shared between configure |
---|
1410 | # scripts and configure runs. It is not useful on other systems. |
---|
1411 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
1412 | # |
---|
1413 | # By default, configure uses ./config.cache as the cache file, |
---|
1414 | # creating it if it does not exist already. You can give configure |
---|
1415 | # the --cache-file=FILE option to use a different cache file; that is |
---|
1416 | # what configure does when it calls configure scripts in |
---|
1417 | # subdirectories, so they share the cache. |
---|
1418 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
1419 | # config.status only pays attention to the cache file if you give it the |
---|
1420 | # --recheck option to rerun configure. |
---|
1421 | # |
---|
1422 | EOF |
---|
1423 | # The following way of writing the cache mishandles newlines in values, |
---|
1424 | # but we know of no workaround that is simple, portable, and efficient. |
---|
1425 | # So, don't put newlines in cache variables' values. |
---|
1426 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
1427 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
1428 | (set) 2>&1 | |
---|
1429 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
1430 | *ac_space=\ *) |
---|
1431 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
1432 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
1433 | sed -n \ |
---|
1434 | -e "s/'/'\\\\''/g" \ |
---|
1435 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
1436 | ;; |
---|
1437 | *) |
---|
1438 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
1439 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
1440 | ;; |
---|
1441 | esac >> confcache |
---|
1442 | if cmp -s $cache_file confcache; then |
---|
1443 | : |
---|
1444 | else |
---|
1445 | if test -w $cache_file; then |
---|
1446 | echo "updating cache $cache_file" |
---|
1447 | cat confcache > $cache_file |
---|
1448 | else |
---|
1449 | echo "not updating unwritable cache $cache_file" |
---|
1450 | fi |
---|
1451 | fi |
---|
1452 | rm -f confcache |
---|
1453 | |
---|
1454 | |
---|
1455 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
---|
1456 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
---|
1457 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
---|
1458 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
---|
1459 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
---|
1460 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
---|
1461 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
---|
1462 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
---|
1463 | |
---|
1464 | # Reload cache, that may have been modified by ltconfig |
---|
1465 | if test -r "$cache_file"; then |
---|
1466 | echo "loading cache $cache_file" |
---|
1467 | . $cache_file |
---|
1468 | else |
---|
1469 | echo "creating cache $cache_file" |
---|
1470 | > $cache_file |
---|
1471 | fi |
---|
1472 | |
---|
1473 | |
---|
1474 | # This can be used to rebuild libtool when needed |
---|
1475 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
---|
1476 | |
---|
1477 | # Always use our own libtool. |
---|
1478 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
1479 | |
---|
1480 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
1481 | # clobbered by the next message. |
---|
1482 | exec 5>>./config.log |
---|
1483 | |
---|
1484 | |
---|
1485 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
1486 | echo "configure:1487: checking whether build environment is sane" >&5 |
---|
1487 | # Just in case |
---|
1488 | sleep 1 |
---|
1489 | echo timestamp > conftestfile |
---|
1490 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1491 | # arguments. Must try -L first in case configure is actually a |
---|
1492 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1493 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1494 | # directory). |
---|
1495 | if ( |
---|
1496 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
1497 | if test "$*" = "X"; then |
---|
1498 | # -L didn't work. |
---|
1499 | set X `ls -t $srcdir/configure conftestfile` |
---|
1500 | fi |
---|
1501 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
1502 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
1503 | |
---|
1504 | # If neither matched, then we have a broken ls. This can happen |
---|
1505 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1506 | # broken ls alias from the environment. This has actually |
---|
1507 | # happened. Such a system could not be considered "sane". |
---|
1508 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
1509 | alias in your environment" 1>&2; exit 1; } |
---|
1510 | fi |
---|
1511 | |
---|
1512 | test "$2" = conftestfile |
---|
1513 | ) |
---|
1514 | then |
---|
1515 | # Ok. |
---|
1516 | : |
---|
1517 | else |
---|
1518 | { echo "configure: error: newly created file is older than distributed files! |
---|
1519 | Check your system clock" 1>&2; exit 1; } |
---|
1520 | fi |
---|
1521 | rm -f conftest* |
---|
1522 | echo "$ac_t""yes" 1>&6 |
---|
1523 | |
---|
1524 | # Find a good install program. We prefer a C program (faster), |
---|
1525 | # so one script is as good as another. But avoid the broken or |
---|
1526 | # incompatible versions: |
---|
1527 | # SysV /etc/install, /usr/sbin/install |
---|
1528 | # SunOS /usr/etc/install |
---|
1529 | # IRIX /sbin/install |
---|
1530 | # AIX /bin/install |
---|
1531 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1532 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1533 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1534 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1535 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
1536 | echo "configure:1537: checking for a BSD compatible install" >&5 |
---|
1537 | if test -z "$INSTALL"; then |
---|
1538 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
1539 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1540 | else |
---|
1541 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
1542 | for ac_dir in $PATH; do |
---|
1543 | # Account for people who put trailing slashes in PATH elements. |
---|
1544 | case "$ac_dir/" in |
---|
1545 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
1546 | *) |
---|
1547 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1548 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1549 | # by default. |
---|
1550 | for ac_prog in ginstall scoinst install; do |
---|
1551 | if test -f $ac_dir/$ac_prog; then |
---|
1552 | if test $ac_prog = install && |
---|
1553 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
1554 | # AIX install. It has an incompatible calling convention. |
---|
1555 | : |
---|
1556 | else |
---|
1557 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
1558 | break 2 |
---|
1559 | fi |
---|
1560 | fi |
---|
1561 | done |
---|
1562 | ;; |
---|
1563 | esac |
---|
1564 | done |
---|
1565 | IFS="$ac_save_IFS" |
---|
1566 | |
---|
1567 | fi |
---|
1568 | if test "${ac_cv_path_install+set}" = set; then |
---|
1569 | INSTALL="$ac_cv_path_install" |
---|
1570 | else |
---|
1571 | # As a last resort, use the slow shell script. We don't cache a |
---|
1572 | # path for INSTALL within a source directory, because that will |
---|
1573 | # break other packages using the cache if that directory is |
---|
1574 | # removed, or if the path is relative. |
---|
1575 | INSTALL="$ac_install_sh" |
---|
1576 | fi |
---|
1577 | fi |
---|
1578 | echo "$ac_t""$INSTALL" 1>&6 |
---|
1579 | |
---|
1580 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1581 | # It thinks the first close brace ends the variable substitution. |
---|
1582 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1583 | |
---|
1584 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
1585 | |
---|
1586 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1587 | |
---|
1588 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
1589 | echo "configure:1590: checking whether ln -s works" >&5 |
---|
1590 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
1591 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1592 | else |
---|
1593 | rm -f conftestdata |
---|
1594 | if ln -s X conftestdata 2>/dev/null |
---|
1595 | then |
---|
1596 | rm -f conftestdata |
---|
1597 | ac_cv_prog_LN_S="ln -s" |
---|
1598 | else |
---|
1599 | ac_cv_prog_LN_S=ln |
---|
1600 | fi |
---|
1601 | fi |
---|
1602 | LN_S="$ac_cv_prog_LN_S" |
---|
1603 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
1604 | echo "$ac_t""yes" 1>&6 |
---|
1605 | else |
---|
1606 | echo "$ac_t""no" 1>&6 |
---|
1607 | fi |
---|
1608 | |
---|
1609 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
1610 | echo "configure:1611: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
1611 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
1612 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
1613 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1614 | else |
---|
1615 | cat > conftestmake <<\EOF |
---|
1616 | all: |
---|
1617 | @echo 'ac_maketemp="${MAKE}"' |
---|
1618 | EOF |
---|
1619 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1620 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
1621 | if test -n "$ac_maketemp"; then |
---|
1622 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1623 | else |
---|
1624 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1625 | fi |
---|
1626 | rm -f conftestmake |
---|
1627 | fi |
---|
1628 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1629 | echo "$ac_t""yes" 1>&6 |
---|
1630 | SET_MAKE= |
---|
1631 | else |
---|
1632 | echo "$ac_t""no" 1>&6 |
---|
1633 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1634 | fi |
---|
1635 | |
---|
1636 | |
---|
1637 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
---|
1638 | if test "${with_gtk_prefix+set}" = set; then |
---|
1639 | withval="$with_gtk_prefix" |
---|
1640 | gtk_config_prefix="$withval" |
---|
1641 | else |
---|
1642 | gtk_config_prefix="" |
---|
1643 | fi |
---|
1644 | |
---|
1645 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
---|
1646 | if test "${with_gtk_exec_prefix+set}" = set; then |
---|
1647 | withval="$with_gtk_exec_prefix" |
---|
1648 | gtk_config_exec_prefix="$withval" |
---|
1649 | else |
---|
1650 | gtk_config_exec_prefix="" |
---|
1651 | fi |
---|
1652 | |
---|
1653 | # Check whether --enable-gtktest or --disable-gtktest was given. |
---|
1654 | if test "${enable_gtktest+set}" = set; then |
---|
1655 | enableval="$enable_gtktest" |
---|
1656 | : |
---|
1657 | else |
---|
1658 | enable_gtktest=yes |
---|
1659 | fi |
---|
1660 | |
---|
1661 | |
---|
1662 | for module in . |
---|
1663 | do |
---|
1664 | case "$module" in |
---|
1665 | gthread) |
---|
1666 | gtk_config_args="$gtk_config_args gthread" |
---|
1667 | ;; |
---|
1668 | esac |
---|
1669 | done |
---|
1670 | |
---|
1671 | if test x$gtk_config_exec_prefix != x ; then |
---|
1672 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
---|
1673 | if test x${GTK_CONFIG+set} != xset ; then |
---|
1674 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
---|
1675 | fi |
---|
1676 | fi |
---|
1677 | if test x$gtk_config_prefix != x ; then |
---|
1678 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
---|
1679 | if test x${GTK_CONFIG+set} != xset ; then |
---|
1680 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
---|
1681 | fi |
---|
1682 | fi |
---|
1683 | |
---|
1684 | # Extract the first word of "gtk-config", so it can be a program name with args. |
---|
1685 | set dummy gtk-config; ac_word=$2 |
---|
1686 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1687 | echo "configure:1688: checking for $ac_word" >&5 |
---|
1688 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
---|
1689 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1690 | else |
---|
1691 | case "$GTK_CONFIG" in |
---|
1692 | /*) |
---|
1693 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
---|
1694 | ;; |
---|
1695 | ?:/*) |
---|
1696 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
---|
1697 | ;; |
---|
1698 | *) |
---|
1699 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1700 | ac_dummy="$PATH" |
---|
1701 | for ac_dir in $ac_dummy; do |
---|
1702 | test -z "$ac_dir" && ac_dir=. |
---|
1703 | if test -f $ac_dir/$ac_word; then |
---|
1704 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
---|
1705 | break |
---|
1706 | fi |
---|
1707 | done |
---|
1708 | IFS="$ac_save_ifs" |
---|
1709 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
---|
1710 | ;; |
---|
1711 | esac |
---|
1712 | fi |
---|
1713 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
---|
1714 | if test -n "$GTK_CONFIG"; then |
---|
1715 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
---|
1716 | else |
---|
1717 | echo "$ac_t""no" 1>&6 |
---|
1718 | fi |
---|
1719 | |
---|
1720 | min_gtk_version=1.2.0 |
---|
1721 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
---|
1722 | echo "configure:1723: checking for GTK - version >= $min_gtk_version" >&5 |
---|
1723 | no_gtk="" |
---|
1724 | if test "$GTK_CONFIG" = "no" ; then |
---|
1725 | no_gtk=yes |
---|
1726 | else |
---|
1727 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
---|
1728 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
---|
1729 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
1730 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
1731 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
1732 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
1733 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
---|
1734 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
1735 | if test "x$enable_gtktest" = "xyes" ; then |
---|
1736 | ac_save_CFLAGS="$CFLAGS" |
---|
1737 | ac_save_LIBS="$LIBS" |
---|
1738 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
1739 | LIBS="$GTK_LIBS $LIBS" |
---|
1740 | rm -f conf.gtktest |
---|
1741 | if test "$cross_compiling" = yes; then |
---|
1742 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
1743 | else |
---|
1744 | cat > conftest.$ac_ext <<EOF |
---|
1745 | #line 1746 "configure" |
---|
1746 | #include "confdefs.h" |
---|
1747 | |
---|
1748 | #include <gtk/gtk.h> |
---|
1749 | #include <stdio.h> |
---|
1750 | #include <stdlib.h> |
---|
1751 | |
---|
1752 | int |
---|
1753 | main () |
---|
1754 | { |
---|
1755 | int major, minor, micro; |
---|
1756 | char *tmp_version; |
---|
1757 | |
---|
1758 | system ("touch conf.gtktest"); |
---|
1759 | |
---|
1760 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
1761 | tmp_version = g_strdup("$min_gtk_version"); |
---|
1762 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
1763 | printf("%s, bad version string\n", "$min_gtk_version"); |
---|
1764 | exit(1); |
---|
1765 | } |
---|
1766 | |
---|
1767 | if ((gtk_major_version != $gtk_config_major_version) || |
---|
1768 | (gtk_minor_version != $gtk_config_minor_version) || |
---|
1769 | (gtk_micro_version != $gtk_config_micro_version)) |
---|
1770 | { |
---|
1771 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
---|
1772 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
---|
1773 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
1774 | printf ("*** was found! If gtk-config was correct, then it is best\n"); |
---|
1775 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
---|
1776 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
1777 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
1778 | printf("*** required on your system.\n"); |
---|
1779 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); |
---|
1780 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); |
---|
1781 | printf("*** before re-running configure\n"); |
---|
1782 | } |
---|
1783 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
---|
1784 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
---|
1785 | (gtk_minor_version != GTK_MINOR_VERSION) || |
---|
1786 | (gtk_micro_version != GTK_MICRO_VERSION)) |
---|
1787 | { |
---|
1788 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
---|
1789 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
---|
1790 | printf("*** library (version %d.%d.%d)\n", |
---|
1791 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
1792 | } |
---|
1793 | #endif /* defined (GTK_MAJOR_VERSION) ... */ |
---|
1794 | else |
---|
1795 | { |
---|
1796 | if ((gtk_major_version > major) || |
---|
1797 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
---|
1798 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
---|
1799 | { |
---|
1800 | return 0; |
---|
1801 | } |
---|
1802 | else |
---|
1803 | { |
---|
1804 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
---|
1805 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
---|
1806 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
---|
1807 | major, minor, micro); |
---|
1808 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
---|
1809 | printf("***\n"); |
---|
1810 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
1811 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); |
---|
1812 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
1813 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); |
---|
1814 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); |
---|
1815 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
1816 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
1817 | } |
---|
1818 | } |
---|
1819 | return 1; |
---|
1820 | } |
---|
1821 | |
---|
1822 | EOF |
---|
1823 | if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
1824 | then |
---|
1825 | : |
---|
1826 | else |
---|
1827 | echo "configure: failed program was:" >&5 |
---|
1828 | cat conftest.$ac_ext >&5 |
---|
1829 | rm -fr conftest* |
---|
1830 | no_gtk=yes |
---|
1831 | fi |
---|
1832 | rm -fr conftest* |
---|
1833 | fi |
---|
1834 | |
---|
1835 | CFLAGS="$ac_save_CFLAGS" |
---|
1836 | LIBS="$ac_save_LIBS" |
---|
1837 | fi |
---|
1838 | fi |
---|
1839 | if test "x$no_gtk" = x ; then |
---|
1840 | echo "$ac_t""yes" 1>&6 |
---|
1841 | : |
---|
1842 | else |
---|
1843 | echo "$ac_t""no" 1>&6 |
---|
1844 | if test "$GTK_CONFIG" = "no" ; then |
---|
1845 | echo "*** The gtk-config script installed by GTK could not be found" |
---|
1846 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" |
---|
1847 | echo "*** your path, or set the GTK_CONFIG environment variable to the" |
---|
1848 | echo "*** full path to gtk-config." |
---|
1849 | else |
---|
1850 | if test -f conf.gtktest ; then |
---|
1851 | : |
---|
1852 | else |
---|
1853 | echo "*** Could not run GTK test program, checking why..." |
---|
1854 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
---|
1855 | LIBS="$LIBS $GTK_LIBS" |
---|
1856 | cat > conftest.$ac_ext <<EOF |
---|
1857 | #line 1858 "configure" |
---|
1858 | #include "confdefs.h" |
---|
1859 | |
---|
1860 | #include <gtk/gtk.h> |
---|
1861 | #include <stdio.h> |
---|
1862 | |
---|
1863 | int main() { |
---|
1864 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
---|
1865 | ; return 0; } |
---|
1866 | EOF |
---|
1867 | if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1868 | rm -rf conftest* |
---|
1869 | echo "*** The test program compiled, but did not run. This usually means" |
---|
1870 | echo "*** that the run-time linker is not finding GTK or finding the wrong" |
---|
1871 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" |
---|
1872 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
1873 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
1874 | echo "*** is required on your system" |
---|
1875 | echo "***" |
---|
1876 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
1877 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
1878 | echo "***" |
---|
1879 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
1880 | echo "*** came with the system with the command" |
---|
1881 | echo "***" |
---|
1882 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
1883 | else |
---|
1884 | echo "configure: failed program was:" >&5 |
---|
1885 | cat conftest.$ac_ext >&5 |
---|
1886 | rm -rf conftest* |
---|
1887 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
1888 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
---|
1889 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
---|
1890 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
---|
1891 | fi |
---|
1892 | rm -f conftest* |
---|
1893 | CFLAGS="$ac_save_CFLAGS" |
---|
1894 | LIBS="$ac_save_LIBS" |
---|
1895 | fi |
---|
1896 | fi |
---|
1897 | GTK_CFLAGS="" |
---|
1898 | GTK_LIBS="" |
---|
1899 | : |
---|
1900 | fi |
---|
1901 | |
---|
1902 | |
---|
1903 | rm -f conf.gtktest |
---|
1904 | |
---|
1905 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
1906 | echo "configure:1907: checking how to run the C preprocessor" >&5 |
---|
1907 | # On Suns, sometimes $CPP names a directory. |
---|
1908 | if test -n "$CPP" && test -d "$CPP"; then |
---|
1909 | CPP= |
---|
1910 | fi |
---|
1911 | if test -z "$CPP"; then |
---|
1912 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
1913 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1914 | else |
---|
1915 | # This must be in double quotes, not single quotes, because CPP may get |
---|
1916 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
1917 | CPP="${CC-cc} -E" |
---|
1918 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
1919 | # not just through cpp. |
---|
1920 | cat > conftest.$ac_ext <<EOF |
---|
1921 | #line 1922 "configure" |
---|
1922 | #include "confdefs.h" |
---|
1923 | #include <assert.h> |
---|
1924 | Syntax Error |
---|
1925 | EOF |
---|
1926 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1927 | { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1928 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1929 | if test -z "$ac_err"; then |
---|
1930 | : |
---|
1931 | else |
---|
1932 | echo "$ac_err" >&5 |
---|
1933 | echo "configure: failed program was:" >&5 |
---|
1934 | cat conftest.$ac_ext >&5 |
---|
1935 | rm -rf conftest* |
---|
1936 | CPP="${CC-cc} -E -traditional-cpp" |
---|
1937 | cat > conftest.$ac_ext <<EOF |
---|
1938 | #line 1939 "configure" |
---|
1939 | #include "confdefs.h" |
---|
1940 | #include <assert.h> |
---|
1941 | Syntax Error |
---|
1942 | EOF |
---|
1943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1944 | { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1946 | if test -z "$ac_err"; then |
---|
1947 | : |
---|
1948 | else |
---|
1949 | echo "$ac_err" >&5 |
---|
1950 | echo "configure: failed program was:" >&5 |
---|
1951 | cat conftest.$ac_ext >&5 |
---|
1952 | rm -rf conftest* |
---|
1953 | CPP="${CC-cc} -nologo -E" |
---|
1954 | cat > conftest.$ac_ext <<EOF |
---|
1955 | #line 1956 "configure" |
---|
1956 | #include "confdefs.h" |
---|
1957 | #include <assert.h> |
---|
1958 | Syntax Error |
---|
1959 | EOF |
---|
1960 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
1961 | { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
1962 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
1963 | if test -z "$ac_err"; then |
---|
1964 | : |
---|
1965 | else |
---|
1966 | echo "$ac_err" >&5 |
---|
1967 | echo "configure: failed program was:" >&5 |
---|
1968 | cat conftest.$ac_ext >&5 |
---|
1969 | rm -rf conftest* |
---|
1970 | CPP=/lib/cpp |
---|
1971 | fi |
---|
1972 | rm -f conftest* |
---|
1973 | fi |
---|
1974 | rm -f conftest* |
---|
1975 | fi |
---|
1976 | rm -f conftest* |
---|
1977 | ac_cv_prog_CPP="$CPP" |
---|
1978 | fi |
---|
1979 | CPP="$ac_cv_prog_CPP" |
---|
1980 | else |
---|
1981 | ac_cv_prog_CPP="$CPP" |
---|
1982 | fi |
---|
1983 | echo "$ac_t""$CPP" 1>&6 |
---|
1984 | |
---|
1985 | # If we find X, set shell vars x_includes and x_libraries to the |
---|
1986 | # paths, otherwise set no_x=yes. |
---|
1987 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
---|
1988 | # --without-x overrides everything else, but does not touch the cache. |
---|
1989 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
---|
1990 | echo "configure:1991: checking for X" >&5 |
---|
1991 | |
---|
1992 | # Check whether --with-x or --without-x was given. |
---|
1993 | if test "${with_x+set}" = set; then |
---|
1994 | withval="$with_x" |
---|
1995 | : |
---|
1996 | fi |
---|
1997 | |
---|
1998 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
1999 | if test "x$with_x" = xno; then |
---|
2000 | # The user explicitly disabled X. |
---|
2001 | have_x=disabled |
---|
2002 | else |
---|
2003 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
---|
2004 | # Both variables are already set. |
---|
2005 | have_x=yes |
---|
2006 | else |
---|
2007 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
---|
2008 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2009 | else |
---|
2010 | # One or both of the vars are not set, and there is no cached value. |
---|
2011 | ac_x_includes=NO ac_x_libraries=NO |
---|
2012 | rm -fr conftestdir |
---|
2013 | if mkdir conftestdir; then |
---|
2014 | cd conftestdir |
---|
2015 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
---|
2016 | cat > Imakefile <<'EOF' |
---|
2017 | acfindx: |
---|
2018 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
---|
2019 | EOF |
---|
2020 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
2021 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
2022 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
---|
2023 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
2024 | for ac_extension in a so sl; do |
---|
2025 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
---|
2026 | test -f $ac_im_libdir/libX11.$ac_extension; then |
---|
2027 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
2028 | fi |
---|
2029 | done |
---|
2030 | # Screen out bogus values from the imake configuration. They are |
---|
2031 | # bogus both because they are the default anyway, and because |
---|
2032 | # using them would break gcc on systems where it needs fixed includes. |
---|
2033 | case "$ac_im_incroot" in |
---|
2034 | /usr/include) ;; |
---|
2035 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
---|
2036 | esac |
---|
2037 | case "$ac_im_usrlibdir" in |
---|
2038 | /usr/lib | /lib) ;; |
---|
2039 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
---|
2040 | esac |
---|
2041 | fi |
---|
2042 | cd .. |
---|
2043 | rm -fr conftestdir |
---|
2044 | fi |
---|
2045 | |
---|
2046 | if test "$ac_x_includes" = NO; then |
---|
2047 | # Guess where to find include files, by looking for this one X11 .h file. |
---|
2048 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
---|
2049 | |
---|
2050 | # First, try using that file with no special directory specified. |
---|
2051 | cat > conftest.$ac_ext <<EOF |
---|
2052 | #line 2053 "configure" |
---|
2053 | #include "confdefs.h" |
---|
2054 | #include <$x_direct_test_include> |
---|
2055 | EOF |
---|
2056 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
2057 | { (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
2058 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
2059 | if test -z "$ac_err"; then |
---|
2060 | rm -rf conftest* |
---|
2061 | # We can compile using X headers with no special include directory. |
---|
2062 | ac_x_includes= |
---|
2063 | else |
---|
2064 | echo "$ac_err" >&5 |
---|
2065 | echo "configure: failed program was:" >&5 |
---|
2066 | cat conftest.$ac_ext >&5 |
---|
2067 | rm -rf conftest* |
---|
2068 | # Look for the header file in a standard set of common directories. |
---|
2069 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
2070 | for ac_dir in \ |
---|
2071 | /usr/X11/include \ |
---|
2072 | /usr/X11R6/include \ |
---|
2073 | /usr/X11R5/include \ |
---|
2074 | /usr/X11R4/include \ |
---|
2075 | \ |
---|
2076 | /usr/include/X11 \ |
---|
2077 | /usr/include/X11R6 \ |
---|
2078 | /usr/include/X11R5 \ |
---|
2079 | /usr/include/X11R4 \ |
---|
2080 | \ |
---|
2081 | /usr/local/X11/include \ |
---|
2082 | /usr/local/X11R6/include \ |
---|
2083 | /usr/local/X11R5/include \ |
---|
2084 | /usr/local/X11R4/include \ |
---|
2085 | \ |
---|
2086 | /usr/local/include/X11 \ |
---|
2087 | /usr/local/include/X11R6 \ |
---|
2088 | /usr/local/include/X11R5 \ |
---|
2089 | /usr/local/include/X11R4 \ |
---|
2090 | \ |
---|
2091 | /usr/X386/include \ |
---|
2092 | /usr/x386/include \ |
---|
2093 | /usr/XFree86/include/X11 \ |
---|
2094 | \ |
---|
2095 | /usr/include \ |
---|
2096 | /usr/local/include \ |
---|
2097 | /usr/unsupported/include \ |
---|
2098 | /usr/athena/include \ |
---|
2099 | /usr/local/x11r5/include \ |
---|
2100 | /usr/lpp/Xamples/include \ |
---|
2101 | \ |
---|
2102 | /usr/openwin/include \ |
---|
2103 | /usr/openwin/share/include \ |
---|
2104 | ; \ |
---|
2105 | do |
---|
2106 | if test -r "$ac_dir/$x_direct_test_include"; then |
---|
2107 | ac_x_includes=$ac_dir |
---|
2108 | break |
---|
2109 | fi |
---|
2110 | done |
---|
2111 | fi |
---|
2112 | rm -f conftest* |
---|
2113 | fi # $ac_x_includes = NO |
---|
2114 | |
---|
2115 | if test "$ac_x_libraries" = NO; then |
---|
2116 | # Check for the libraries. |
---|
2117 | |
---|
2118 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
---|
2119 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
---|
2120 | |
---|
2121 | # See if we find them without any special options. |
---|
2122 | # Don't add to $LIBS permanently. |
---|
2123 | ac_save_LIBS="$LIBS" |
---|
2124 | LIBS="-l$x_direct_test_library $LIBS" |
---|
2125 | cat > conftest.$ac_ext <<EOF |
---|
2126 | #line 2127 "configure" |
---|
2127 | #include "confdefs.h" |
---|
2128 | |
---|
2129 | int main() { |
---|
2130 | ${x_direct_test_function}() |
---|
2131 | ; return 0; } |
---|
2132 | EOF |
---|
2133 | if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2134 | rm -rf conftest* |
---|
2135 | LIBS="$ac_save_LIBS" |
---|
2136 | # We can link X programs with no special library path. |
---|
2137 | ac_x_libraries= |
---|
2138 | else |
---|
2139 | echo "configure: failed program was:" >&5 |
---|
2140 | cat conftest.$ac_ext >&5 |
---|
2141 | rm -rf conftest* |
---|
2142 | LIBS="$ac_save_LIBS" |
---|
2143 | # First see if replacing the include by lib works. |
---|
2144 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
2145 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
---|
2146 | /usr/X11/lib \ |
---|
2147 | /usr/X11R6/lib \ |
---|
2148 | /usr/X11R5/lib \ |
---|
2149 | /usr/X11R4/lib \ |
---|
2150 | \ |
---|
2151 | /usr/lib/X11 \ |
---|
2152 | /usr/lib/X11R6 \ |
---|
2153 | /usr/lib/X11R5 \ |
---|
2154 | /usr/lib/X11R4 \ |
---|
2155 | \ |
---|
2156 | /usr/local/X11/lib \ |
---|
2157 | /usr/local/X11R6/lib \ |
---|
2158 | /usr/local/X11R5/lib \ |
---|
2159 | /usr/local/X11R4/lib \ |
---|
2160 | \ |
---|
2161 | /usr/local/lib/X11 \ |
---|
2162 | /usr/local/lib/X11R6 \ |
---|
2163 | /usr/local/lib/X11R5 \ |
---|
2164 | /usr/local/lib/X11R4 \ |
---|
2165 | \ |
---|
2166 | /usr/X386/lib \ |
---|
2167 | /usr/x386/lib \ |
---|
2168 | /usr/XFree86/lib/X11 \ |
---|
2169 | \ |
---|
2170 | /usr/lib \ |
---|
2171 | /usr/local/lib \ |
---|
2172 | /usr/unsupported/lib \ |
---|
2173 | /usr/athena/lib \ |
---|
2174 | /usr/local/x11r5/lib \ |
---|
2175 | /usr/lpp/Xamples/lib \ |
---|
2176 | /lib/usr/lib/X11 \ |
---|
2177 | \ |
---|
2178 | /usr/openwin/lib \ |
---|
2179 | /usr/openwin/share/lib \ |
---|
2180 | ; \ |
---|
2181 | do |
---|
2182 | for ac_extension in a so sl; do |
---|
2183 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
---|
2184 | ac_x_libraries=$ac_dir |
---|
2185 | break 2 |
---|
2186 | fi |
---|
2187 | done |
---|
2188 | done |
---|
2189 | fi |
---|
2190 | rm -f conftest* |
---|
2191 | fi # $ac_x_libraries = NO |
---|
2192 | |
---|
2193 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
---|
2194 | # Didn't find X anywhere. Cache the known absence of X. |
---|
2195 | ac_cv_have_x="have_x=no" |
---|
2196 | else |
---|
2197 | # Record where we found X for the cache. |
---|
2198 | ac_cv_have_x="have_x=yes \ |
---|
2199 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
---|
2200 | fi |
---|
2201 | fi |
---|
2202 | fi |
---|
2203 | eval "$ac_cv_have_x" |
---|
2204 | fi # $with_x != no |
---|
2205 | |
---|
2206 | if test "$have_x" != yes; then |
---|
2207 | echo "$ac_t""$have_x" 1>&6 |
---|
2208 | no_x=yes |
---|
2209 | else |
---|
2210 | # If each of the values was on the command line, it overrides each guess. |
---|
2211 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
2212 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
2213 | # Update the cache value to reflect the command line values. |
---|
2214 | ac_cv_have_x="have_x=yes \ |
---|
2215 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
---|
2216 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
---|
2217 | fi |
---|
2218 | |
---|
2219 | if test "$no_x" = yes; then |
---|
2220 | # Not all programs may use this symbol, but it does not hurt to define it. |
---|
2221 | cat >> confdefs.h <<\EOF |
---|
2222 | #define X_DISPLAY_MISSING 1 |
---|
2223 | EOF |
---|
2224 | |
---|
2225 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
---|
2226 | else |
---|
2227 | if test -n "$x_includes"; then |
---|
2228 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
---|
2229 | fi |
---|
2230 | |
---|
2231 | # It would also be nice to do this for all -L options, not just this one. |
---|
2232 | if test -n "$x_libraries"; then |
---|
2233 | X_LIBS="$X_LIBS -L$x_libraries" |
---|
2234 | # For Solaris; some versions of Sun CC require a space after -R and |
---|
2235 | # others require no space. Words are not sufficient . . . . |
---|
2236 | case "`(uname -sr) 2>/dev/null`" in |
---|
2237 | "SunOS 5"*) |
---|
2238 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
---|
2239 | echo "configure:2240: checking whether -R must be followed by a space" >&5 |
---|
2240 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
---|
2241 | cat > conftest.$ac_ext <<EOF |
---|
2242 | #line 2243 "configure" |
---|
2243 | #include "confdefs.h" |
---|
2244 | |
---|
2245 | int main() { |
---|
2246 | |
---|
2247 | ; return 0; } |
---|
2248 | EOF |
---|
2249 | if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2250 | rm -rf conftest* |
---|
2251 | ac_R_nospace=yes |
---|
2252 | else |
---|
2253 | echo "configure: failed program was:" >&5 |
---|
2254 | cat conftest.$ac_ext >&5 |
---|
2255 | rm -rf conftest* |
---|
2256 | ac_R_nospace=no |
---|
2257 | fi |
---|
2258 | rm -f conftest* |
---|
2259 | if test $ac_R_nospace = yes; then |
---|
2260 | echo "$ac_t""no" 1>&6 |
---|
2261 | X_LIBS="$X_LIBS -R$x_libraries" |
---|
2262 | else |
---|
2263 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
---|
2264 | cat > conftest.$ac_ext <<EOF |
---|
2265 | #line 2266 "configure" |
---|
2266 | #include "confdefs.h" |
---|
2267 | |
---|
2268 | int main() { |
---|
2269 | |
---|
2270 | ; return 0; } |
---|
2271 | EOF |
---|
2272 | if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2273 | rm -rf conftest* |
---|
2274 | ac_R_space=yes |
---|
2275 | else |
---|
2276 | echo "configure: failed program was:" >&5 |
---|
2277 | cat conftest.$ac_ext >&5 |
---|
2278 | rm -rf conftest* |
---|
2279 | ac_R_space=no |
---|
2280 | fi |
---|
2281 | rm -f conftest* |
---|
2282 | if test $ac_R_space = yes; then |
---|
2283 | echo "$ac_t""yes" 1>&6 |
---|
2284 | X_LIBS="$X_LIBS -R $x_libraries" |
---|
2285 | else |
---|
2286 | echo "$ac_t""neither works" 1>&6 |
---|
2287 | fi |
---|
2288 | fi |
---|
2289 | LIBS="$ac_xsave_LIBS" |
---|
2290 | esac |
---|
2291 | fi |
---|
2292 | |
---|
2293 | # Check for system-dependent libraries X programs must link with. |
---|
2294 | # Do this before checking for the system-independent R6 libraries |
---|
2295 | # (-lICE), since we may need -lsocket or whatever for X linking. |
---|
2296 | |
---|
2297 | if test "$ISC" = yes; then |
---|
2298 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
---|
2299 | else |
---|
2300 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
---|
2301 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
---|
2302 | # the Alpha needs dnet_stub (dnet does not exist). |
---|
2303 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
---|
2304 | echo "configure:2305: checking for dnet_ntoa in -ldnet" >&5 |
---|
2305 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
---|
2306 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2307 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2308 | else |
---|
2309 | ac_save_LIBS="$LIBS" |
---|
2310 | LIBS="-ldnet $LIBS" |
---|
2311 | cat > conftest.$ac_ext <<EOF |
---|
2312 | #line 2313 "configure" |
---|
2313 | #include "confdefs.h" |
---|
2314 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2315 | /* We use char because int might match the return type of a gcc2 |
---|
2316 | builtin and then its argument prototype would still apply. */ |
---|
2317 | char dnet_ntoa(); |
---|
2318 | |
---|
2319 | int main() { |
---|
2320 | dnet_ntoa() |
---|
2321 | ; return 0; } |
---|
2322 | EOF |
---|
2323 | if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2324 | rm -rf conftest* |
---|
2325 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2326 | else |
---|
2327 | echo "configure: failed program was:" >&5 |
---|
2328 | cat conftest.$ac_ext >&5 |
---|
2329 | rm -rf conftest* |
---|
2330 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2331 | fi |
---|
2332 | rm -f conftest* |
---|
2333 | LIBS="$ac_save_LIBS" |
---|
2334 | |
---|
2335 | fi |
---|
2336 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2337 | echo "$ac_t""yes" 1>&6 |
---|
2338 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
---|
2339 | else |
---|
2340 | echo "$ac_t""no" 1>&6 |
---|
2341 | fi |
---|
2342 | |
---|
2343 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
---|
2344 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
---|
2345 | echo "configure:2346: checking for dnet_ntoa in -ldnet_stub" >&5 |
---|
2346 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
---|
2347 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2348 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2349 | else |
---|
2350 | ac_save_LIBS="$LIBS" |
---|
2351 | LIBS="-ldnet_stub $LIBS" |
---|
2352 | cat > conftest.$ac_ext <<EOF |
---|
2353 | #line 2354 "configure" |
---|
2354 | #include "confdefs.h" |
---|
2355 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2356 | /* We use char because int might match the return type of a gcc2 |
---|
2357 | builtin and then its argument prototype would still apply. */ |
---|
2358 | char dnet_ntoa(); |
---|
2359 | |
---|
2360 | int main() { |
---|
2361 | dnet_ntoa() |
---|
2362 | ; return 0; } |
---|
2363 | EOF |
---|
2364 | if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2365 | rm -rf conftest* |
---|
2366 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2367 | else |
---|
2368 | echo "configure: failed program was:" >&5 |
---|
2369 | cat conftest.$ac_ext >&5 |
---|
2370 | rm -rf conftest* |
---|
2371 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2372 | fi |
---|
2373 | rm -f conftest* |
---|
2374 | LIBS="$ac_save_LIBS" |
---|
2375 | |
---|
2376 | fi |
---|
2377 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2378 | echo "$ac_t""yes" 1>&6 |
---|
2379 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
---|
2380 | else |
---|
2381 | echo "$ac_t""no" 1>&6 |
---|
2382 | fi |
---|
2383 | |
---|
2384 | fi |
---|
2385 | |
---|
2386 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
---|
2387 | # to get the SysV transport functions. |
---|
2388 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
---|
2389 | # needs -lnsl. |
---|
2390 | # The nsl library prevents programs from opening the X display |
---|
2391 | # on Irix 5.2, according to dickey@clark.net. |
---|
2392 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
2393 | echo "configure:2394: checking for gethostbyname" >&5 |
---|
2394 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
2395 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2396 | else |
---|
2397 | cat > conftest.$ac_ext <<EOF |
---|
2398 | #line 2399 "configure" |
---|
2399 | #include "confdefs.h" |
---|
2400 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2401 | which can conflict with char gethostbyname(); below. */ |
---|
2402 | #include <assert.h> |
---|
2403 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2404 | /* We use char because int might match the return type of a gcc2 |
---|
2405 | builtin and then its argument prototype would still apply. */ |
---|
2406 | char gethostbyname(); |
---|
2407 | |
---|
2408 | int main() { |
---|
2409 | |
---|
2410 | /* The GNU C library defines this for functions which it implements |
---|
2411 | to always fail with ENOSYS. Some functions are actually named |
---|
2412 | something starting with __ and the normal name is an alias. */ |
---|
2413 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
2414 | choke me |
---|
2415 | #else |
---|
2416 | gethostbyname(); |
---|
2417 | #endif |
---|
2418 | |
---|
2419 | ; return 0; } |
---|
2420 | EOF |
---|
2421 | if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2422 | rm -rf conftest* |
---|
2423 | eval "ac_cv_func_gethostbyname=yes" |
---|
2424 | else |
---|
2425 | echo "configure: failed program was:" >&5 |
---|
2426 | cat conftest.$ac_ext >&5 |
---|
2427 | rm -rf conftest* |
---|
2428 | eval "ac_cv_func_gethostbyname=no" |
---|
2429 | fi |
---|
2430 | rm -f conftest* |
---|
2431 | fi |
---|
2432 | |
---|
2433 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
2434 | echo "$ac_t""yes" 1>&6 |
---|
2435 | : |
---|
2436 | else |
---|
2437 | echo "$ac_t""no" 1>&6 |
---|
2438 | fi |
---|
2439 | |
---|
2440 | if test $ac_cv_func_gethostbyname = no; then |
---|
2441 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
2442 | echo "configure:2443: checking for gethostbyname in -lnsl" >&5 |
---|
2443 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
2444 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2445 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2446 | else |
---|
2447 | ac_save_LIBS="$LIBS" |
---|
2448 | LIBS="-lnsl $LIBS" |
---|
2449 | cat > conftest.$ac_ext <<EOF |
---|
2450 | #line 2451 "configure" |
---|
2451 | #include "confdefs.h" |
---|
2452 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2453 | /* We use char because int might match the return type of a gcc2 |
---|
2454 | builtin and then its argument prototype would still apply. */ |
---|
2455 | char gethostbyname(); |
---|
2456 | |
---|
2457 | int main() { |
---|
2458 | gethostbyname() |
---|
2459 | ; return 0; } |
---|
2460 | EOF |
---|
2461 | if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2462 | rm -rf conftest* |
---|
2463 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2464 | else |
---|
2465 | echo "configure: failed program was:" >&5 |
---|
2466 | cat conftest.$ac_ext >&5 |
---|
2467 | rm -rf conftest* |
---|
2468 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2469 | fi |
---|
2470 | rm -f conftest* |
---|
2471 | LIBS="$ac_save_LIBS" |
---|
2472 | |
---|
2473 | fi |
---|
2474 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2475 | echo "$ac_t""yes" 1>&6 |
---|
2476 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
---|
2477 | else |
---|
2478 | echo "$ac_t""no" 1>&6 |
---|
2479 | fi |
---|
2480 | |
---|
2481 | fi |
---|
2482 | |
---|
2483 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
---|
2484 | # socket/setsockopt and other routines are undefined under SCO ODT |
---|
2485 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
---|
2486 | # on later versions), says simon@lia.di.epfl.ch: it contains |
---|
2487 | # gethostby* variants that don't use the nameserver (or something). |
---|
2488 | # -lsocket must be given before -lnsl if both are needed. |
---|
2489 | # We assume that if connect needs -lnsl, so does gethostbyname. |
---|
2490 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
---|
2491 | echo "configure:2492: checking for connect" >&5 |
---|
2492 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
---|
2493 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2494 | else |
---|
2495 | cat > conftest.$ac_ext <<EOF |
---|
2496 | #line 2497 "configure" |
---|
2497 | #include "confdefs.h" |
---|
2498 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2499 | which can conflict with char connect(); below. */ |
---|
2500 | #include <assert.h> |
---|
2501 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2502 | /* We use char because int might match the return type of a gcc2 |
---|
2503 | builtin and then its argument prototype would still apply. */ |
---|
2504 | char connect(); |
---|
2505 | |
---|
2506 | int main() { |
---|
2507 | |
---|
2508 | /* The GNU C library defines this for functions which it implements |
---|
2509 | to always fail with ENOSYS. Some functions are actually named |
---|
2510 | something starting with __ and the normal name is an alias. */ |
---|
2511 | #if defined (__stub_connect) || defined (__stub___connect) |
---|
2512 | choke me |
---|
2513 | #else |
---|
2514 | connect(); |
---|
2515 | #endif |
---|
2516 | |
---|
2517 | ; return 0; } |
---|
2518 | EOF |
---|
2519 | if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2520 | rm -rf conftest* |
---|
2521 | eval "ac_cv_func_connect=yes" |
---|
2522 | else |
---|
2523 | echo "configure: failed program was:" >&5 |
---|
2524 | cat conftest.$ac_ext >&5 |
---|
2525 | rm -rf conftest* |
---|
2526 | eval "ac_cv_func_connect=no" |
---|
2527 | fi |
---|
2528 | rm -f conftest* |
---|
2529 | fi |
---|
2530 | |
---|
2531 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
---|
2532 | echo "$ac_t""yes" 1>&6 |
---|
2533 | : |
---|
2534 | else |
---|
2535 | echo "$ac_t""no" 1>&6 |
---|
2536 | fi |
---|
2537 | |
---|
2538 | if test $ac_cv_func_connect = no; then |
---|
2539 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
---|
2540 | echo "configure:2541: checking for connect in -lsocket" >&5 |
---|
2541 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
---|
2542 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2543 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2544 | else |
---|
2545 | ac_save_LIBS="$LIBS" |
---|
2546 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
---|
2547 | cat > conftest.$ac_ext <<EOF |
---|
2548 | #line 2549 "configure" |
---|
2549 | #include "confdefs.h" |
---|
2550 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2551 | /* We use char because int might match the return type of a gcc2 |
---|
2552 | builtin and then its argument prototype would still apply. */ |
---|
2553 | char connect(); |
---|
2554 | |
---|
2555 | int main() { |
---|
2556 | connect() |
---|
2557 | ; return 0; } |
---|
2558 | EOF |
---|
2559 | if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2560 | rm -rf conftest* |
---|
2561 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2562 | else |
---|
2563 | echo "configure: failed program was:" >&5 |
---|
2564 | cat conftest.$ac_ext >&5 |
---|
2565 | rm -rf conftest* |
---|
2566 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2567 | fi |
---|
2568 | rm -f conftest* |
---|
2569 | LIBS="$ac_save_LIBS" |
---|
2570 | |
---|
2571 | fi |
---|
2572 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2573 | echo "$ac_t""yes" 1>&6 |
---|
2574 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
---|
2575 | else |
---|
2576 | echo "$ac_t""no" 1>&6 |
---|
2577 | fi |
---|
2578 | |
---|
2579 | fi |
---|
2580 | |
---|
2581 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
---|
2582 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
---|
2583 | echo "configure:2584: checking for remove" >&5 |
---|
2584 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
---|
2585 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2586 | else |
---|
2587 | cat > conftest.$ac_ext <<EOF |
---|
2588 | #line 2589 "configure" |
---|
2589 | #include "confdefs.h" |
---|
2590 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2591 | which can conflict with char remove(); below. */ |
---|
2592 | #include <assert.h> |
---|
2593 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2594 | /* We use char because int might match the return type of a gcc2 |
---|
2595 | builtin and then its argument prototype would still apply. */ |
---|
2596 | char remove(); |
---|
2597 | |
---|
2598 | int main() { |
---|
2599 | |
---|
2600 | /* The GNU C library defines this for functions which it implements |
---|
2601 | to always fail with ENOSYS. Some functions are actually named |
---|
2602 | something starting with __ and the normal name is an alias. */ |
---|
2603 | #if defined (__stub_remove) || defined (__stub___remove) |
---|
2604 | choke me |
---|
2605 | #else |
---|
2606 | remove(); |
---|
2607 | #endif |
---|
2608 | |
---|
2609 | ; return 0; } |
---|
2610 | EOF |
---|
2611 | if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2612 | rm -rf conftest* |
---|
2613 | eval "ac_cv_func_remove=yes" |
---|
2614 | else |
---|
2615 | echo "configure: failed program was:" >&5 |
---|
2616 | cat conftest.$ac_ext >&5 |
---|
2617 | rm -rf conftest* |
---|
2618 | eval "ac_cv_func_remove=no" |
---|
2619 | fi |
---|
2620 | rm -f conftest* |
---|
2621 | fi |
---|
2622 | |
---|
2623 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
---|
2624 | echo "$ac_t""yes" 1>&6 |
---|
2625 | : |
---|
2626 | else |
---|
2627 | echo "$ac_t""no" 1>&6 |
---|
2628 | fi |
---|
2629 | |
---|
2630 | if test $ac_cv_func_remove = no; then |
---|
2631 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
---|
2632 | echo "configure:2633: checking for remove in -lposix" >&5 |
---|
2633 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
---|
2634 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2635 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2636 | else |
---|
2637 | ac_save_LIBS="$LIBS" |
---|
2638 | LIBS="-lposix $LIBS" |
---|
2639 | cat > conftest.$ac_ext <<EOF |
---|
2640 | #line 2641 "configure" |
---|
2641 | #include "confdefs.h" |
---|
2642 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2643 | /* We use char because int might match the return type of a gcc2 |
---|
2644 | builtin and then its argument prototype would still apply. */ |
---|
2645 | char remove(); |
---|
2646 | |
---|
2647 | int main() { |
---|
2648 | remove() |
---|
2649 | ; return 0; } |
---|
2650 | EOF |
---|
2651 | if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2652 | rm -rf conftest* |
---|
2653 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2654 | else |
---|
2655 | echo "configure: failed program was:" >&5 |
---|
2656 | cat conftest.$ac_ext >&5 |
---|
2657 | rm -rf conftest* |
---|
2658 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2659 | fi |
---|
2660 | rm -f conftest* |
---|
2661 | LIBS="$ac_save_LIBS" |
---|
2662 | |
---|
2663 | fi |
---|
2664 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2665 | echo "$ac_t""yes" 1>&6 |
---|
2666 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
---|
2667 | else |
---|
2668 | echo "$ac_t""no" 1>&6 |
---|
2669 | fi |
---|
2670 | |
---|
2671 | fi |
---|
2672 | |
---|
2673 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
---|
2674 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
---|
2675 | echo "configure:2676: checking for shmat" >&5 |
---|
2676 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
---|
2677 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2678 | else |
---|
2679 | cat > conftest.$ac_ext <<EOF |
---|
2680 | #line 2681 "configure" |
---|
2681 | #include "confdefs.h" |
---|
2682 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2683 | which can conflict with char shmat(); below. */ |
---|
2684 | #include <assert.h> |
---|
2685 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2686 | /* We use char because int might match the return type of a gcc2 |
---|
2687 | builtin and then its argument prototype would still apply. */ |
---|
2688 | char shmat(); |
---|
2689 | |
---|
2690 | int main() { |
---|
2691 | |
---|
2692 | /* The GNU C library defines this for functions which it implements |
---|
2693 | to always fail with ENOSYS. Some functions are actually named |
---|
2694 | something starting with __ and the normal name is an alias. */ |
---|
2695 | #if defined (__stub_shmat) || defined (__stub___shmat) |
---|
2696 | choke me |
---|
2697 | #else |
---|
2698 | shmat(); |
---|
2699 | #endif |
---|
2700 | |
---|
2701 | ; return 0; } |
---|
2702 | EOF |
---|
2703 | if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2704 | rm -rf conftest* |
---|
2705 | eval "ac_cv_func_shmat=yes" |
---|
2706 | else |
---|
2707 | echo "configure: failed program was:" >&5 |
---|
2708 | cat conftest.$ac_ext >&5 |
---|
2709 | rm -rf conftest* |
---|
2710 | eval "ac_cv_func_shmat=no" |
---|
2711 | fi |
---|
2712 | rm -f conftest* |
---|
2713 | fi |
---|
2714 | |
---|
2715 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
---|
2716 | echo "$ac_t""yes" 1>&6 |
---|
2717 | : |
---|
2718 | else |
---|
2719 | echo "$ac_t""no" 1>&6 |
---|
2720 | fi |
---|
2721 | |
---|
2722 | if test $ac_cv_func_shmat = no; then |
---|
2723 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
---|
2724 | echo "configure:2725: checking for shmat in -lipc" >&5 |
---|
2725 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
---|
2726 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2727 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2728 | else |
---|
2729 | ac_save_LIBS="$LIBS" |
---|
2730 | LIBS="-lipc $LIBS" |
---|
2731 | cat > conftest.$ac_ext <<EOF |
---|
2732 | #line 2733 "configure" |
---|
2733 | #include "confdefs.h" |
---|
2734 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2735 | /* We use char because int might match the return type of a gcc2 |
---|
2736 | builtin and then its argument prototype would still apply. */ |
---|
2737 | char shmat(); |
---|
2738 | |
---|
2739 | int main() { |
---|
2740 | shmat() |
---|
2741 | ; return 0; } |
---|
2742 | EOF |
---|
2743 | if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2744 | rm -rf conftest* |
---|
2745 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2746 | else |
---|
2747 | echo "configure: failed program was:" >&5 |
---|
2748 | cat conftest.$ac_ext >&5 |
---|
2749 | rm -rf conftest* |
---|
2750 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2751 | fi |
---|
2752 | rm -f conftest* |
---|
2753 | LIBS="$ac_save_LIBS" |
---|
2754 | |
---|
2755 | fi |
---|
2756 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2757 | echo "$ac_t""yes" 1>&6 |
---|
2758 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
---|
2759 | else |
---|
2760 | echo "$ac_t""no" 1>&6 |
---|
2761 | fi |
---|
2762 | |
---|
2763 | fi |
---|
2764 | fi |
---|
2765 | |
---|
2766 | # Check for libraries that X11R6 Xt/Xaw programs need. |
---|
2767 | ac_save_LDFLAGS="$LDFLAGS" |
---|
2768 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
---|
2769 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
---|
2770 | # check for ICE first), but we must link in the order -lSM -lICE or |
---|
2771 | # we get undefined symbols. So assume we have SM if we have ICE. |
---|
2772 | # These have to be linked with before -lX11, unlike the other |
---|
2773 | # libraries we check for below, so use a different variable. |
---|
2774 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
---|
2775 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
---|
2776 | echo "configure:2777: checking for IceConnectionNumber in -lICE" >&5 |
---|
2777 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
---|
2778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
2779 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2780 | else |
---|
2781 | ac_save_LIBS="$LIBS" |
---|
2782 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
---|
2783 | cat > conftest.$ac_ext <<EOF |
---|
2784 | #line 2785 "configure" |
---|
2785 | #include "confdefs.h" |
---|
2786 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2787 | /* We use char because int might match the return type of a gcc2 |
---|
2788 | builtin and then its argument prototype would still apply. */ |
---|
2789 | char IceConnectionNumber(); |
---|
2790 | |
---|
2791 | int main() { |
---|
2792 | IceConnectionNumber() |
---|
2793 | ; return 0; } |
---|
2794 | EOF |
---|
2795 | if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2796 | rm -rf conftest* |
---|
2797 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
2798 | else |
---|
2799 | echo "configure: failed program was:" >&5 |
---|
2800 | cat conftest.$ac_ext >&5 |
---|
2801 | rm -rf conftest* |
---|
2802 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
2803 | fi |
---|
2804 | rm -f conftest* |
---|
2805 | LIBS="$ac_save_LIBS" |
---|
2806 | |
---|
2807 | fi |
---|
2808 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
2809 | echo "$ac_t""yes" 1>&6 |
---|
2810 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
---|
2811 | else |
---|
2812 | echo "$ac_t""no" 1>&6 |
---|
2813 | fi |
---|
2814 | |
---|
2815 | LDFLAGS="$ac_save_LDFLAGS" |
---|
2816 | |
---|
2817 | fi |
---|
2818 | |
---|
2819 | |
---|
2820 | for ac_func in unsetenv |
---|
2821 | do |
---|
2822 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
2823 | echo "configure:2824: checking for $ac_func" >&5 |
---|
2824 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
2825 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2826 | else |
---|
2827 | cat > conftest.$ac_ext <<EOF |
---|
2828 | #line 2829 "configure" |
---|
2829 | #include "confdefs.h" |
---|
2830 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2831 | which can conflict with char $ac_func(); below. */ |
---|
2832 | #include <assert.h> |
---|
2833 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2834 | /* We use char because int might match the return type of a gcc2 |
---|
2835 | builtin and then its argument prototype would still apply. */ |
---|
2836 | char $ac_func(); |
---|
2837 | |
---|
2838 | int main() { |
---|
2839 | |
---|
2840 | /* The GNU C library defines this for functions which it implements |
---|
2841 | to always fail with ENOSYS. Some functions are actually named |
---|
2842 | something starting with __ and the normal name is an alias. */ |
---|
2843 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
2844 | choke me |
---|
2845 | #else |
---|
2846 | $ac_func(); |
---|
2847 | #endif |
---|
2848 | |
---|
2849 | ; return 0; } |
---|
2850 | EOF |
---|
2851 | if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2852 | rm -rf conftest* |
---|
2853 | eval "ac_cv_func_$ac_func=yes" |
---|
2854 | else |
---|
2855 | echo "configure: failed program was:" >&5 |
---|
2856 | cat conftest.$ac_ext >&5 |
---|
2857 | rm -rf conftest* |
---|
2858 | eval "ac_cv_func_$ac_func=no" |
---|
2859 | fi |
---|
2860 | rm -f conftest* |
---|
2861 | fi |
---|
2862 | |
---|
2863 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
2864 | echo "$ac_t""yes" 1>&6 |
---|
2865 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
2866 | cat >> confdefs.h <<EOF |
---|
2867 | #define $ac_tr_func 1 |
---|
2868 | EOF |
---|
2869 | |
---|
2870 | else |
---|
2871 | echo "$ac_t""no" 1>&6 |
---|
2872 | fi |
---|
2873 | done |
---|
2874 | |
---|
2875 | |
---|
2876 | echo $ac_n "checking for getopt_long""... $ac_c" 1>&6 |
---|
2877 | echo "configure:2878: checking for getopt_long" >&5 |
---|
2878 | if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then |
---|
2879 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2880 | else |
---|
2881 | cat > conftest.$ac_ext <<EOF |
---|
2882 | #line 2883 "configure" |
---|
2883 | #include "confdefs.h" |
---|
2884 | /* System header to define __stub macros and hopefully few prototypes, |
---|
2885 | which can conflict with char getopt_long(); below. */ |
---|
2886 | #include <assert.h> |
---|
2887 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
2888 | /* We use char because int might match the return type of a gcc2 |
---|
2889 | builtin and then its argument prototype would still apply. */ |
---|
2890 | char getopt_long(); |
---|
2891 | |
---|
2892 | int main() { |
---|
2893 | |
---|
2894 | /* The GNU C library defines this for functions which it implements |
---|
2895 | to always fail with ENOSYS. Some functions are actually named |
---|
2896 | something starting with __ and the normal name is an alias. */ |
---|
2897 | #if defined (__stub_getopt_long) || defined (__stub___getopt_long) |
---|
2898 | choke me |
---|
2899 | #else |
---|
2900 | getopt_long(); |
---|
2901 | #endif |
---|
2902 | |
---|
2903 | ; return 0; } |
---|
2904 | EOF |
---|
2905 | if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
2906 | rm -rf conftest* |
---|
2907 | eval "ac_cv_func_getopt_long=yes" |
---|
2908 | else |
---|
2909 | echo "configure: failed program was:" >&5 |
---|
2910 | cat conftest.$ac_ext >&5 |
---|
2911 | rm -rf conftest* |
---|
2912 | eval "ac_cv_func_getopt_long=no" |
---|
2913 | fi |
---|
2914 | rm -f conftest* |
---|
2915 | fi |
---|
2916 | |
---|
2917 | if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then |
---|
2918 | echo "$ac_t""yes" 1>&6 |
---|
2919 | : |
---|
2920 | else |
---|
2921 | echo "$ac_t""no" 1>&6 |
---|
2922 | LIBOBJS="$LIBOBJS getopt.o getopt1.o" |
---|
2923 | fi |
---|
2924 | |
---|
2925 | |
---|
2926 | |
---|
2927 | |
---|
2928 | ac_safe=`echo "/lib/ld-linux.so.1" | sed 'y%./+-%__p_%'` |
---|
2929 | echo $ac_n "checking for /lib/ld-linux.so.1""... $ac_c" 1>&6 |
---|
2930 | echo "configure:2931: checking for /lib/ld-linux.so.1" >&5 |
---|
2931 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then |
---|
2932 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2933 | else |
---|
2934 | if test "$cross_compiling" = yes; then |
---|
2935 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } |
---|
2936 | else |
---|
2937 | if test -r /lib/ld-linux.so.1; then |
---|
2938 | eval "ac_cv_file_$ac_safe=yes" |
---|
2939 | else |
---|
2940 | eval "ac_cv_file_$ac_safe=no" |
---|
2941 | fi |
---|
2942 | fi |
---|
2943 | fi |
---|
2944 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
---|
2945 | echo "$ac_t""yes" 1>&6 |
---|
2946 | cat >> confdefs.h <<\EOF |
---|
2947 | #define MULTI_PRELOAD 1 |
---|
2948 | EOF |
---|
2949 | |
---|
2950 | else |
---|
2951 | echo "$ac_t""no" 1>&6 |
---|
2952 | |
---|
2953 | fi |
---|
2954 | |
---|
2955 | |
---|
2956 | ac_safe=`echo "/lib/ld-linux.so.2" | sed 'y%./+-%__p_%'` |
---|
2957 | echo $ac_n "checking for /lib/ld-linux.so.2""... $ac_c" 1>&6 |
---|
2958 | echo "configure:2959: checking for /lib/ld-linux.so.2" >&5 |
---|
2959 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then |
---|
2960 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2961 | else |
---|
2962 | if test "$cross_compiling" = yes; then |
---|
2963 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } |
---|
2964 | else |
---|
2965 | if test -r /lib/ld-linux.so.2; then |
---|
2966 | eval "ac_cv_file_$ac_safe=yes" |
---|
2967 | else |
---|
2968 | eval "ac_cv_file_$ac_safe=no" |
---|
2969 | fi |
---|
2970 | fi |
---|
2971 | fi |
---|
2972 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
---|
2973 | echo "$ac_t""yes" 1>&6 |
---|
2974 | cat >> confdefs.h <<\EOF |
---|
2975 | #define MULTI_PRELOAD 1 |
---|
2976 | EOF |
---|
2977 | |
---|
2978 | else |
---|
2979 | echo "$ac_t""no" 1>&6 |
---|
2980 | |
---|
2981 | fi |
---|
2982 | |
---|
2983 | |
---|
2984 | # Check whether --enable-capplet or --disable-capplet was given. |
---|
2985 | if test "${enable_capplet+set}" = set; then |
---|
2986 | enableval="$enable_capplet" |
---|
2987 | enable_capplet="$enableval" |
---|
2988 | else |
---|
2989 | enable_capplet=yes |
---|
2990 | fi |
---|
2991 | |
---|
2992 | if test "$enable_capplet" = "yes"; then |
---|
2993 | echo $ac_n "checking for GNOME control center config""... $ac_c" 1>&6 |
---|
2994 | echo "configure:2995: checking for GNOME control center config" >&5 |
---|
2995 | GNOME_CC_CFLAGS="`gnome-config --cflags capplet`" |
---|
2996 | GNOME_CC_LIBS="`gnome-config --libs capplet`" |
---|
2997 | if test $? -ne 0; then |
---|
2998 | echo "$ac_t""no" 1>&6 |
---|
2999 | echo "configure: warning: Can't run "gnome-config capplet", not building capplet" 1>&2 |
---|
3000 | enable_capplet=no |
---|
3001 | else |
---|
3002 | echo "$ac_t""yes" 1>&6 |
---|
3003 | |
---|
3004 | |
---|
3005 | fi |
---|
3006 | fi |
---|
3007 | |
---|
3008 | |
---|
3009 | if test x$enable_capplet = xyes; then |
---|
3010 | COMPILE_CAPPLET_TRUE= |
---|
3011 | COMPILE_CAPPLET_FALSE='#' |
---|
3012 | else |
---|
3013 | COMPILE_CAPPLET_TRUE='#' |
---|
3014 | COMPILE_CAPPLET_FALSE= |
---|
3015 | fi |
---|
3016 | |
---|
3017 | case "$host" in |
---|
3018 | *-sgi-irix6*) |
---|
3019 | need_ldinit=yes |
---|
3020 | /usr/sbin/getabi add "$CFLAGS" > /dev/null 2>&1 |
---|
3021 | case $? in |
---|
3022 | 3) |
---|
3023 | cat >> confdefs.h <<\EOF |
---|
3024 | #define RLD_LIST "_RLDN32_LIST" |
---|
3025 | EOF |
---|
3026 | |
---|
3027 | ;; |
---|
3028 | *) |
---|
3029 | cat >> confdefs.h <<\EOF |
---|
3030 | #define RLD_LIST "_RLD_LIST" |
---|
3031 | EOF |
---|
3032 | |
---|
3033 | ;; |
---|
3034 | esac |
---|
3035 | ;; |
---|
3036 | *) |
---|
3037 | need_ldinit=no |
---|
3038 | ;; |
---|
3039 | esac |
---|
3040 | |
---|
3041 | |
---|
3042 | if test x$need_ldinit = xyes; then |
---|
3043 | NEED_LD_INIT_OPTION_TRUE= |
---|
3044 | NEED_LD_INIT_OPTION_FALSE='#' |
---|
3045 | else |
---|
3046 | NEED_LD_INIT_OPTION_TRUE='#' |
---|
3047 | NEED_LD_INIT_OPTION_FALSE= |
---|
3048 | fi |
---|
3049 | |
---|
3050 | cat >> confdefs.h <<\EOF |
---|
3051 | #define DEFAULT_TIMEOUT 240 |
---|
3052 | EOF |
---|
3053 | |
---|
3054 | |
---|
3055 | trap '' 1 2 15 |
---|
3056 | cat > confcache <<\EOF |
---|
3057 | # This file is a shell script that caches the results of configure |
---|
3058 | # tests run on this system so they can be shared between configure |
---|
3059 | # scripts and configure runs. It is not useful on other systems. |
---|
3060 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
3061 | # |
---|
3062 | # By default, configure uses ./config.cache as the cache file, |
---|
3063 | # creating it if it does not exist already. You can give configure |
---|
3064 | # the --cache-file=FILE option to use a different cache file; that is |
---|
3065 | # what configure does when it calls configure scripts in |
---|
3066 | # subdirectories, so they share the cache. |
---|
3067 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
3068 | # config.status only pays attention to the cache file if you give it the |
---|
3069 | # --recheck option to rerun configure. |
---|
3070 | # |
---|
3071 | EOF |
---|
3072 | # The following way of writing the cache mishandles newlines in values, |
---|
3073 | # but we know of no workaround that is simple, portable, and efficient. |
---|
3074 | # So, don't put newlines in cache variables' values. |
---|
3075 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
3076 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
3077 | (set) 2>&1 | |
---|
3078 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
3079 | *ac_space=\ *) |
---|
3080 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
3081 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
3082 | sed -n \ |
---|
3083 | -e "s/'/'\\\\''/g" \ |
---|
3084 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
3085 | ;; |
---|
3086 | *) |
---|
3087 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
3088 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
3089 | ;; |
---|
3090 | esac >> confcache |
---|
3091 | if cmp -s $cache_file confcache; then |
---|
3092 | : |
---|
3093 | else |
---|
3094 | if test -w $cache_file; then |
---|
3095 | echo "updating cache $cache_file" |
---|
3096 | cat confcache > $cache_file |
---|
3097 | else |
---|
3098 | echo "not updating unwritable cache $cache_file" |
---|
3099 | fi |
---|
3100 | fi |
---|
3101 | rm -f confcache |
---|
3102 | |
---|
3103 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
3104 | |
---|
3105 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
3106 | # Let make expand exec_prefix. |
---|
3107 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
3108 | |
---|
3109 | # Any assignment to VPATH causes Sun make to only execute |
---|
3110 | # the first set of double-colon rules, so remove it if not needed. |
---|
3111 | # If there is a colon in the path, we need to keep it. |
---|
3112 | if test "x$srcdir" = x.; then |
---|
3113 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
3114 | fi |
---|
3115 | |
---|
3116 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
3117 | |
---|
3118 | DEFS=-DHAVE_CONFIG_H |
---|
3119 | |
---|
3120 | # Without the "./", some shells look in PATH for config.status. |
---|
3121 | : ${CONFIG_STATUS=./config.status} |
---|
3122 | |
---|
3123 | echo creating $CONFIG_STATUS |
---|
3124 | rm -f $CONFIG_STATUS |
---|
3125 | cat > $CONFIG_STATUS <<EOF |
---|
3126 | #! /bin/sh |
---|
3127 | # Generated automatically by configure. |
---|
3128 | # Run this file to recreate the current configuration. |
---|
3129 | # This directory was configured as follows, |
---|
3130 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
3131 | # |
---|
3132 | # $0 $ac_configure_args |
---|
3133 | # |
---|
3134 | # Compiler output produced by configure, useful for debugging |
---|
3135 | # configure, is in ./config.log if it exists. |
---|
3136 | |
---|
3137 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
3138 | for ac_option |
---|
3139 | do |
---|
3140 | case "\$ac_option" in |
---|
3141 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
3142 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
3143 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
3144 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
3145 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
3146 | exit 0 ;; |
---|
3147 | -help | --help | --hel | --he | --h) |
---|
3148 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
3149 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
3150 | esac |
---|
3151 | done |
---|
3152 | |
---|
3153 | ac_given_srcdir=$srcdir |
---|
3154 | ac_given_INSTALL="$INSTALL" |
---|
3155 | |
---|
3156 | trap 'rm -fr `echo "Makefile |
---|
3157 | extras/Makefile |
---|
3158 | lib/Makefile |
---|
3159 | src/Makefile |
---|
3160 | capplet/Makefile |
---|
3161 | config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
3162 | EOF |
---|
3163 | cat >> $CONFIG_STATUS <<EOF |
---|
3164 | |
---|
3165 | # Protect against being on the right side of a sed subst in config.status. |
---|
3166 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
3167 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
3168 | $ac_vpsub |
---|
3169 | $extrasub |
---|
3170 | s%@SHELL@%$SHELL%g |
---|
3171 | s%@CFLAGS@%$CFLAGS%g |
---|
3172 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
3173 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
3174 | s%@FFLAGS@%$FFLAGS%g |
---|
3175 | s%@DEFS@%$DEFS%g |
---|
3176 | s%@LDFLAGS@%$LDFLAGS%g |
---|
3177 | s%@LIBS@%$LIBS%g |
---|
3178 | s%@exec_prefix@%$exec_prefix%g |
---|
3179 | s%@prefix@%$prefix%g |
---|
3180 | s%@program_transform_name@%$program_transform_name%g |
---|
3181 | s%@bindir@%$bindir%g |
---|
3182 | s%@sbindir@%$sbindir%g |
---|
3183 | s%@libexecdir@%$libexecdir%g |
---|
3184 | s%@datadir@%$datadir%g |
---|
3185 | s%@sysconfdir@%$sysconfdir%g |
---|
3186 | s%@sharedstatedir@%$sharedstatedir%g |
---|
3187 | s%@localstatedir@%$localstatedir%g |
---|
3188 | s%@libdir@%$libdir%g |
---|
3189 | s%@includedir@%$includedir%g |
---|
3190 | s%@oldincludedir@%$oldincludedir%g |
---|
3191 | s%@infodir@%$infodir%g |
---|
3192 | s%@mandir@%$mandir%g |
---|
3193 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
3194 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
3195 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
3196 | s%@PACKAGE@%$PACKAGE%g |
---|
3197 | s%@VERSION@%$VERSION%g |
---|
3198 | s%@ACLOCAL@%$ACLOCAL%g |
---|
3199 | s%@AUTOCONF@%$AUTOCONF%g |
---|
3200 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
3201 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
3202 | s%@MAKEINFO@%$MAKEINFO%g |
---|
3203 | s%@SET_MAKE@%$SET_MAKE%g |
---|
3204 | s%@CC@%$CC%g |
---|
3205 | s%@host@%$host%g |
---|
3206 | s%@host_alias@%$host_alias%g |
---|
3207 | s%@host_cpu@%$host_cpu%g |
---|
3208 | s%@host_vendor@%$host_vendor%g |
---|
3209 | s%@host_os@%$host_os%g |
---|
3210 | s%@build@%$build%g |
---|
3211 | s%@build_alias@%$build_alias%g |
---|
3212 | s%@build_cpu@%$build_cpu%g |
---|
3213 | s%@build_vendor@%$build_vendor%g |
---|
3214 | s%@build_os@%$build_os%g |
---|
3215 | s%@RANLIB@%$RANLIB%g |
---|
3216 | s%@LN_S@%$LN_S%g |
---|
3217 | s%@LIBTOOL@%$LIBTOOL%g |
---|
3218 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
---|
3219 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
---|
3220 | s%@GTK_LIBS@%$GTK_LIBS%g |
---|
3221 | s%@CPP@%$CPP%g |
---|
3222 | s%@X_CFLAGS@%$X_CFLAGS%g |
---|
3223 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
---|
3224 | s%@X_LIBS@%$X_LIBS%g |
---|
3225 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
---|
3226 | s%@LIBOBJS@%$LIBOBJS%g |
---|
3227 | s%@GNOME_CC_CFLAGS@%$GNOME_CC_CFLAGS%g |
---|
3228 | s%@GNOME_CC_LIBS@%$GNOME_CC_LIBS%g |
---|
3229 | s%@COMPILE_CAPPLET_TRUE@%$COMPILE_CAPPLET_TRUE%g |
---|
3230 | s%@COMPILE_CAPPLET_FALSE@%$COMPILE_CAPPLET_FALSE%g |
---|
3231 | s%@NEED_LD_INIT_OPTION_TRUE@%$NEED_LD_INIT_OPTION_TRUE%g |
---|
3232 | s%@NEED_LD_INIT_OPTION_FALSE@%$NEED_LD_INIT_OPTION_FALSE%g |
---|
3233 | |
---|
3234 | CEOF |
---|
3235 | EOF |
---|
3236 | |
---|
3237 | cat >> $CONFIG_STATUS <<\EOF |
---|
3238 | |
---|
3239 | # Split the substitutions into bite-sized pieces for seds with |
---|
3240 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
3241 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
3242 | ac_file=1 # Number of current file. |
---|
3243 | ac_beg=1 # First line for current file. |
---|
3244 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
3245 | ac_more_lines=: |
---|
3246 | ac_sed_cmds="" |
---|
3247 | while $ac_more_lines; do |
---|
3248 | if test $ac_beg -gt 1; then |
---|
3249 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
3250 | else |
---|
3251 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
3252 | fi |
---|
3253 | if test ! -s conftest.s$ac_file; then |
---|
3254 | ac_more_lines=false |
---|
3255 | rm -f conftest.s$ac_file |
---|
3256 | else |
---|
3257 | if test -z "$ac_sed_cmds"; then |
---|
3258 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
3259 | else |
---|
3260 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
3261 | fi |
---|
3262 | ac_file=`expr $ac_file + 1` |
---|
3263 | ac_beg=$ac_end |
---|
3264 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
3265 | fi |
---|
3266 | done |
---|
3267 | if test -z "$ac_sed_cmds"; then |
---|
3268 | ac_sed_cmds=cat |
---|
3269 | fi |
---|
3270 | EOF |
---|
3271 | |
---|
3272 | cat >> $CONFIG_STATUS <<EOF |
---|
3273 | |
---|
3274 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
3275 | extras/Makefile |
---|
3276 | lib/Makefile |
---|
3277 | src/Makefile |
---|
3278 | capplet/Makefile |
---|
3279 | "} |
---|
3280 | EOF |
---|
3281 | cat >> $CONFIG_STATUS <<\EOF |
---|
3282 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
3283 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
3284 | case "$ac_file" in |
---|
3285 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
3286 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
3287 | *) ac_file_in="${ac_file}.in" ;; |
---|
3288 | esac |
---|
3289 | |
---|
3290 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
3291 | |
---|
3292 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
3293 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
3294 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
3295 | # The file is in a subdirectory. |
---|
3296 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
3297 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
3298 | # A "../" for each directory in $ac_dir_suffix. |
---|
3299 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
3300 | else |
---|
3301 | ac_dir_suffix= ac_dots= |
---|
3302 | fi |
---|
3303 | |
---|
3304 | case "$ac_given_srcdir" in |
---|
3305 | .) srcdir=. |
---|
3306 | if test -z "$ac_dots"; then top_srcdir=. |
---|
3307 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
3308 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
3309 | *) # Relative path. |
---|
3310 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
3311 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
3312 | esac |
---|
3313 | |
---|
3314 | case "$ac_given_INSTALL" in |
---|
3315 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
3316 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
3317 | esac |
---|
3318 | |
---|
3319 | echo creating "$ac_file" |
---|
3320 | rm -f "$ac_file" |
---|
3321 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
3322 | case "$ac_file" in |
---|
3323 | *Makefile*) ac_comsub="1i\\ |
---|
3324 | # $configure_input" ;; |
---|
3325 | *) ac_comsub= ;; |
---|
3326 | esac |
---|
3327 | |
---|
3328 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
3329 | sed -e "$ac_comsub |
---|
3330 | s%@configure_input@%$configure_input%g |
---|
3331 | s%@srcdir@%$srcdir%g |
---|
3332 | s%@top_srcdir@%$top_srcdir%g |
---|
3333 | s%@INSTALL@%$INSTALL%g |
---|
3334 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
3335 | fi; done |
---|
3336 | rm -f conftest.s* |
---|
3337 | |
---|
3338 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
3339 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
3340 | # |
---|
3341 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
3342 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
3343 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
3344 | ac_dC='\3' |
---|
3345 | ac_dD='%g' |
---|
3346 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
3347 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
3348 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
3349 | ac_uC=' ' |
---|
3350 | ac_uD='\4%g' |
---|
3351 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
3352 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
3353 | ac_eB='$%\1#\2define\3' |
---|
3354 | ac_eC=' ' |
---|
3355 | ac_eD='%g' |
---|
3356 | |
---|
3357 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
3358 | EOF |
---|
3359 | cat >> $CONFIG_STATUS <<EOF |
---|
3360 | CONFIG_HEADERS="config.h" |
---|
3361 | EOF |
---|
3362 | cat >> $CONFIG_STATUS <<\EOF |
---|
3363 | fi |
---|
3364 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
3365 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
3366 | case "$ac_file" in |
---|
3367 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
3368 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
3369 | *) ac_file_in="${ac_file}.in" ;; |
---|
3370 | esac |
---|
3371 | |
---|
3372 | echo creating $ac_file |
---|
3373 | |
---|
3374 | rm -f conftest.frag conftest.in conftest.out |
---|
3375 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
3376 | cat $ac_file_inputs > conftest.in |
---|
3377 | |
---|
3378 | EOF |
---|
3379 | |
---|
3380 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
3381 | # the proper values into config.h.in to produce config.h. And first: |
---|
3382 | # Protect against being on the right side of a sed subst in config.status. |
---|
3383 | # Protect against being in an unquoted here document in config.status. |
---|
3384 | rm -f conftest.vals |
---|
3385 | cat > conftest.hdr <<\EOF |
---|
3386 | s/[\\&%]/\\&/g |
---|
3387 | s%[\\$`]%\\&%g |
---|
3388 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
3389 | s%ac_d%ac_u%gp |
---|
3390 | s%ac_u%ac_e%gp |
---|
3391 | EOF |
---|
3392 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
3393 | rm -f conftest.hdr |
---|
3394 | |
---|
3395 | # This sed command replaces #undef with comments. This is necessary, for |
---|
3396 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
3397 | # on some systems where configure will not decide to define it. |
---|
3398 | cat >> conftest.vals <<\EOF |
---|
3399 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
3400 | EOF |
---|
3401 | |
---|
3402 | # Break up conftest.vals because some shells have a limit on |
---|
3403 | # the size of here documents, and old seds have small limits too. |
---|
3404 | |
---|
3405 | rm -f conftest.tail |
---|
3406 | while : |
---|
3407 | do |
---|
3408 | ac_lines=`grep -c . conftest.vals` |
---|
3409 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
3410 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
3411 | # Write a limited-size here document to conftest.frag. |
---|
3412 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
3413 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
3414 | echo 'CEOF |
---|
3415 | sed -f conftest.frag conftest.in > conftest.out |
---|
3416 | rm -f conftest.in |
---|
3417 | mv conftest.out conftest.in |
---|
3418 | ' >> $CONFIG_STATUS |
---|
3419 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
3420 | rm -f conftest.vals |
---|
3421 | mv conftest.tail conftest.vals |
---|
3422 | done |
---|
3423 | rm -f conftest.vals |
---|
3424 | |
---|
3425 | cat >> $CONFIG_STATUS <<\EOF |
---|
3426 | rm -f conftest.frag conftest.h |
---|
3427 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
3428 | cat conftest.in >> conftest.h |
---|
3429 | rm -f conftest.in |
---|
3430 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
3431 | echo "$ac_file is unchanged" |
---|
3432 | rm -f conftest.h |
---|
3433 | else |
---|
3434 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
3435 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
3436 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
3437 | # The file is in a subdirectory. |
---|
3438 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
3439 | fi |
---|
3440 | rm -f $ac_file |
---|
3441 | mv conftest.h $ac_file |
---|
3442 | fi |
---|
3443 | fi; done |
---|
3444 | |
---|
3445 | EOF |
---|
3446 | cat >> $CONFIG_STATUS <<EOF |
---|
3447 | |
---|
3448 | |
---|
3449 | EOF |
---|
3450 | cat >> $CONFIG_STATUS <<\EOF |
---|
3451 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
3452 | |
---|
3453 | exit 0 |
---|
3454 | EOF |
---|
3455 | chmod +x $CONFIG_STATUS |
---|
3456 | rm -fr confdefs* $ac_clean_files |
---|
3457 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
3458 | |
---|
3459 | |
---|