1
|
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-gtk20 Try and compile with GTK+ 2.0 if available"
|
|
16 ac_help="$ac_help
|
|
17 --disable-gtkport Disable compiling the GTK+ port"
|
|
18 ac_help="$ac_help
|
|
19 --disable-textport Disable compiling the text port"
|
|
20 ac_help="$ac_help
|
|
21 --enable-dmalloc Enable the dmalloc library"
|
|
22 ac_help="$ac_help
|
|
23 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
|
|
24 ac_help="$ac_help
|
|
25 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
|
|
26 ac_help="$ac_help
|
|
27 --disable-glibtest Do not try to compile and run a test GLIB program"
|
|
28 ac_help="$ac_help
|
|
29 --with-readline turn on readline [default=yes, default tries -lncurses, -lcurses, -ltermcap]"
|
|
30 ac_help="$ac_help
|
|
31 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
|
|
32 ac_help="$ac_help
|
|
33 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
|
|
34 ac_help="$ac_help
|
|
35 --disable-gtktest Do not try to compile and run a test GTK program"
|
|
36 ac_help="$ac_help
|
|
37 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
|
|
38 ac_help="$ac_help
|
|
39 --disable-nls do not use Native Language Support"
|
|
40 ac_help="$ac_help
|
|
41 --with-included-gettext use the GNU gettext library included here"
|
|
42
|
|
43 # Initialize some variables set by options.
|
|
44 # The variables have the same names as the options, with
|
|
45 # dashes changed to underlines.
|
|
46 build=NONE
|
|
47 cache_file=./config.cache
|
|
48 exec_prefix=NONE
|
|
49 host=NONE
|
|
50 no_create=
|
|
51 nonopt=NONE
|
|
52 no_recursion=
|
|
53 prefix=NONE
|
|
54 program_prefix=NONE
|
|
55 program_suffix=NONE
|
|
56 program_transform_name=s,x,x,
|
|
57 silent=
|
|
58 site=
|
|
59 srcdir=
|
|
60 target=NONE
|
|
61 verbose=
|
|
62 x_includes=NONE
|
|
63 x_libraries=NONE
|
|
64 bindir='${exec_prefix}/bin'
|
|
65 sbindir='${exec_prefix}/sbin'
|
|
66 libexecdir='${exec_prefix}/libexec'
|
|
67 datadir='${prefix}/share'
|
|
68 sysconfdir='${prefix}/etc'
|
|
69 sharedstatedir='${prefix}/com'
|
|
70 localstatedir='${prefix}/var'
|
|
71 libdir='${exec_prefix}/lib'
|
|
72 includedir='${prefix}/include'
|
|
73 oldincludedir='/usr/include'
|
|
74 infodir='${prefix}/info'
|
|
75 mandir='${prefix}/man'
|
|
76
|
|
77 # Initialize some other variables.
|
|
78 subdirs=
|
|
79 MFLAGS= MAKEFLAGS=
|
|
80 SHELL=${CONFIG_SHELL-/bin/sh}
|
|
81 # Maximum number of lines to put in a shell here document.
|
|
82 ac_max_here_lines=12
|
|
83
|
|
84 ac_prev=
|
|
85 for ac_option
|
|
86 do
|
|
87
|
|
88 # If the previous option needs an argument, assign it.
|
|
89 if test -n "$ac_prev"; then
|
|
90 eval "$ac_prev=\$ac_option"
|
|
91 ac_prev=
|
|
92 continue
|
|
93 fi
|
|
94
|
|
95 case "$ac_option" in
|
|
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
97 *) ac_optarg= ;;
|
|
98 esac
|
|
99
|
|
100 # Accept the important Cygnus configure options, so we can diagnose typos.
|
|
101
|
|
102 case "$ac_option" in
|
|
103
|
|
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
|
105 ac_prev=bindir ;;
|
|
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
|
107 bindir="$ac_optarg" ;;
|
|
108
|
|
109 -build | --build | --buil | --bui | --bu)
|
|
110 ac_prev=build ;;
|
|
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
|
112 build="$ac_optarg" ;;
|
|
113
|
|
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
116 ac_prev=cache_file ;;
|
|
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
|
119 cache_file="$ac_optarg" ;;
|
|
120
|
|
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
|
122 ac_prev=datadir ;;
|
|
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
|
124 | --da=*)
|
|
125 datadir="$ac_optarg" ;;
|
|
126
|
|
127 -disable-* | --disable-*)
|
|
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
|
129 # Reject names that are not valid shell variable names.
|
|
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
132 fi
|
|
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
134 eval "enable_${ac_feature}=no" ;;
|
|
135
|
|
136 -enable-* | --enable-*)
|
|
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
|
138 # Reject names that are not valid shell variable names.
|
|
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
|
141 fi
|
|
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
|
143 case "$ac_option" in
|
|
144 *=*) ;;
|
|
145 *) ac_optarg=yes ;;
|
|
146 esac
|
|
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
|
|
148
|
|
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
|
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
|
151 | --exec | --exe | --ex)
|
|
152 ac_prev=exec_prefix ;;
|
|
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
|
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
|
155 | --exec=* | --exe=* | --ex=*)
|
|
156 exec_prefix="$ac_optarg" ;;
|
|
157
|
|
158 -gas | --gas | --ga | --g)
|
|
159 # Obsolete; use --with-gas.
|
|
160 with_gas=yes ;;
|
|
161
|
|
162 -help | --help | --hel | --he)
|
|
163 # Omit some internal or obsolete options to make the list less imposing.
|
|
164 # This message is too long to be a string in the A/UX 3.1 sh.
|
|
165 cat << EOF
|
|
166 Usage: configure [options] [host]
|
|
167 Options: [defaults in brackets after descriptions]
|
|
168 Configuration:
|
|
169 --cache-file=FILE cache test results in FILE
|
|
170 --help print this message
|
|
171 --no-create do not create output files
|
|
172 --quiet, --silent do not print \`checking...' messages
|
|
173 --version print the version of autoconf that created configure
|
|
174 Directory and file names:
|
|
175 --prefix=PREFIX install architecture-independent files in PREFIX
|
|
176 [$ac_default_prefix]
|
|
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
|
178 [same as prefix]
|
|
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
|
|
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
|
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
|
182 --datadir=DIR read-only architecture-independent data in DIR
|
|
183 [PREFIX/share]
|
|
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
|
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
|
186 [PREFIX/com]
|
|
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
|
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
|
189 --includedir=DIR C header files in DIR [PREFIX/include]
|
|
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
|
191 --infodir=DIR info documentation in DIR [PREFIX/info]
|
|
192 --mandir=DIR man documentation in DIR [PREFIX/man]
|
|
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
|
|
194 --program-prefix=PREFIX prepend PREFIX to installed program names
|
|
195 --program-suffix=SUFFIX append SUFFIX to installed program names
|
|
196 --program-transform-name=PROGRAM
|
|
197 run sed PROGRAM on installed program names
|
|
198 EOF
|
|
199 cat << EOF
|
|
200 Host type:
|
|
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
|
|
202 --host=HOST configure for HOST [guessed]
|
|
203 --target=TARGET configure for TARGET [TARGET=HOST]
|
|
204 Features and packages:
|
|
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
|
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
|
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
|
209 --x-includes=DIR X include files are in DIR
|
|
210 --x-libraries=DIR X library files are in DIR
|
|
211 EOF
|
|
212 if test -n "$ac_help"; then
|
|
213 echo "--enable and --with options recognized:$ac_help"
|
|
214 fi
|
|
215 exit 0 ;;
|
|
216
|
|
217 -host | --host | --hos | --ho)
|
|
218 ac_prev=host ;;
|
|
219 -host=* | --host=* | --hos=* | --ho=*)
|
|
220 host="$ac_optarg" ;;
|
|
221
|
|
222 -includedir | --includedir | --includedi | --included | --include \
|
|
223 | --includ | --inclu | --incl | --inc)
|
|
224 ac_prev=includedir ;;
|
|
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
|
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
|
227 includedir="$ac_optarg" ;;
|
|
228
|
|
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
|
230 ac_prev=infodir ;;
|
|
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
|
232 infodir="$ac_optarg" ;;
|
|
233
|
|
234 -libdir | --libdir | --libdi | --libd)
|
|
235 ac_prev=libdir ;;
|
|
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
|
237 libdir="$ac_optarg" ;;
|
|
238
|
|
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
|
240 | --libexe | --libex | --libe)
|
|
241 ac_prev=libexecdir ;;
|
|
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
|
243 | --libexe=* | --libex=* | --libe=*)
|
|
244 libexecdir="$ac_optarg" ;;
|
|
245
|
|
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
|
247 | --localstate | --localstat | --localsta | --localst \
|
|
248 | --locals | --local | --loca | --loc | --lo)
|
|
249 ac_prev=localstatedir ;;
|
|
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
|
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
|
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
|
253 localstatedir="$ac_optarg" ;;
|
|
254
|
|
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
|
256 ac_prev=mandir ;;
|
|
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
|
258 mandir="$ac_optarg" ;;
|
|
259
|
|
260 -nfp | --nfp | --nf)
|
|
261 # Obsolete; use --without-fp.
|
|
262 with_fp=no ;;
|
|
263
|
|
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
265 | --no-cr | --no-c)
|
|
266 no_create=yes ;;
|
|
267
|
|
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
|
270 no_recursion=yes ;;
|
|
271
|
|
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
|
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
|
274 | --oldin | --oldi | --old | --ol | --o)
|
|
275 ac_prev=oldincludedir ;;
|
|
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
|
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
|
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
|
279 oldincludedir="$ac_optarg" ;;
|
|
280
|
|
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
282 ac_prev=prefix ;;
|
|
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
284 prefix="$ac_optarg" ;;
|
|
285
|
|
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
|
287 | --program-pre | --program-pr | --program-p)
|
|
288 ac_prev=program_prefix ;;
|
|
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
|
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
|
291 program_prefix="$ac_optarg" ;;
|
|
292
|
|
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
|
294 | --program-suf | --program-su | --program-s)
|
|
295 ac_prev=program_suffix ;;
|
|
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
|
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
|
298 program_suffix="$ac_optarg" ;;
|
|
299
|
|
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 ac_prev=program_transform_name ;;
|
|
308 -program-transform-name=* | --program-transform-name=* \
|
|
309 | --program-transform-nam=* | --program-transform-na=* \
|
|
310 | --program-transform-n=* | --program-transform-=* \
|
|
311 | --program-transform=* | --program-transfor=* \
|
|
312 | --program-transfo=* | --program-transf=* \
|
|
313 | --program-trans=* | --program-tran=* \
|
|
314 | --progr-tra=* | --program-tr=* | --program-t=*)
|
|
315 program_transform_name="$ac_optarg" ;;
|
|
316
|
|
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
|
318 | -silent | --silent | --silen | --sile | --sil)
|
|
319 silent=yes ;;
|
|
320
|
|
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
|
322 ac_prev=sbindir ;;
|
|
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
|
324 | --sbi=* | --sb=*)
|
|
325 sbindir="$ac_optarg" ;;
|
|
326
|
|
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
|
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
|
329 | --sharedst | --shareds | --shared | --share | --shar \
|
|
330 | --sha | --sh)
|
|
331 ac_prev=sharedstatedir ;;
|
|
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
|
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
|
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
|
335 | --sha=* | --sh=*)
|
|
336 sharedstatedir="$ac_optarg" ;;
|
|
337
|
|
338 -site | --site | --sit)
|
|
339 ac_prev=site ;;
|
|
340 -site=* | --site=* | --sit=*)
|
|
341 site="$ac_optarg" ;;
|
|
342
|
|
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
344 ac_prev=srcdir ;;
|
|
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
346 srcdir="$ac_optarg" ;;
|
|
347
|
|
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
|
349 | --syscon | --sysco | --sysc | --sys | --sy)
|
|
350 ac_prev=sysconfdir ;;
|
|
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
|
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
|
353 sysconfdir="$ac_optarg" ;;
|
|
354
|
|
355 -target | --target | --targe | --targ | --tar | --ta | --t)
|
|
356 ac_prev=target ;;
|
|
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
|
358 target="$ac_optarg" ;;
|
|
359
|
|
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
|
361 verbose=yes ;;
|
|
362
|
|
363 -version | --version | --versio | --versi | --vers)
|
|
364 echo "configure generated by autoconf version 2.13"
|
|
365 exit 0 ;;
|
|
366
|
|
367 -with-* | --with-*)
|
|
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
|
369 # Reject names that are not valid shell variable names.
|
|
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
|
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
372 fi
|
|
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
374 case "$ac_option" in
|
|
375 *=*) ;;
|
|
376 *) ac_optarg=yes ;;
|
|
377 esac
|
|
378 eval "with_${ac_package}='$ac_optarg'" ;;
|
|
379
|
|
380 -without-* | --without-*)
|
|
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
|
382 # Reject names that are not valid shell variable names.
|
|
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
|
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
|
385 fi
|
|
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
|
|
387 eval "with_${ac_package}=no" ;;
|
|
388
|
|
389 --x)
|
|
390 # Obsolete; use --with-x.
|
|
391 with_x=yes ;;
|
|
392
|
|
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
|
394 | --x-incl | --x-inc | --x-in | --x-i)
|
|
395 ac_prev=x_includes ;;
|
|
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
|
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
|
398 x_includes="$ac_optarg" ;;
|
|
399
|
|
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
|
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
|
402 ac_prev=x_libraries ;;
|
|
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
|
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
|
405 x_libraries="$ac_optarg" ;;
|
|
406
|
|
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
|
408 ;;
|
|
409
|
|
410 *)
|
|
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
|
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
|
|
413 fi
|
|
414 if test "x$nonopt" != xNONE; then
|
|
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
|
416 fi
|
|
417 nonopt="$ac_option"
|
|
418 ;;
|
|
419
|
|
420 esac
|
|
421 done
|
|
422
|
|
423 if test -n "$ac_prev"; then
|
|
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
|
425 fi
|
|
426
|
|
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
428
|
|
429 # File descriptor usage:
|
|
430 # 0 standard input
|
|
431 # 1 file creation
|
|
432 # 2 errors and warnings
|
|
433 # 3 some systems may open it to /dev/tty
|
|
434 # 4 used on the Kubota Titan
|
|
435 # 6 checking for... messages and results
|
|
436 # 5 compiler messages saved in config.log
|
|
437 if test "$silent" = yes; then
|
|
438 exec 6>/dev/null
|
|
439 else
|
|
440 exec 6>&1
|
|
441 fi
|
|
442 exec 5>./config.log
|
|
443
|
|
444 echo "\
|
|
445 This file contains any messages produced by compilers while
|
|
446 running configure, to aid debugging if configure makes a mistake.
|
|
447 " 1>&5
|
|
448
|
|
449 # Strip out --no-create and --no-recursion so they do not pile up.
|
|
450 # Also quote any args containing shell metacharacters.
|
|
451 ac_configure_args=
|
|
452 for ac_arg
|
|
453 do
|
|
454 case "$ac_arg" in
|
|
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
|
456 | --no-cr | --no-c) ;;
|
|
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
|
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
|
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
|
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
|
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
|
462 esac
|
|
463 done
|
|
464
|
|
465 # NLS nuisances.
|
|
466 # Only set these to C if already set. These must not be set unconditionally
|
|
467 # because not all systems understand e.g. LANG=C (notably SCO).
|
|
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
|
469 # Non-C LC_CTYPE values break the ctype check.
|
|
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
|
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
|
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
|
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
|
474
|
|
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
|
476 rm -rf conftest* confdefs.h
|
|
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
|
478 echo > confdefs.h
|
|
479
|
|
480 # A filename unique to this package, relative to the directory that
|
|
481 # configure is in, which we can look for to find out if srcdir is correct.
|
|
482 ac_unique_file=lib/gftp.h
|
|
483
|
|
484 # Find the source files, if location was not specified.
|
|
485 if test -z "$srcdir"; then
|
|
486 ac_srcdir_defaulted=yes
|
|
487 # Try the directory containing this script, then its parent.
|
|
488 ac_prog=$0
|
|
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
|
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
|
491 srcdir=$ac_confdir
|
|
492 if test ! -r $srcdir/$ac_unique_file; then
|
|
493 srcdir=..
|
|
494 fi
|
|
495 else
|
|
496 ac_srcdir_defaulted=no
|
|
497 fi
|
|
498 if test ! -r $srcdir/$ac_unique_file; then
|
|
499 if test "$ac_srcdir_defaulted" = yes; then
|
|
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
|
501 else
|
|
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
|
503 fi
|
|
504 fi
|
|
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
|
506
|
|
507 # Prefer explicitly selected file to automatically selected ones.
|
|
508 if test -z "$CONFIG_SITE"; then
|
|
509 if test "x$prefix" != xNONE; then
|
|
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
|
511 else
|
|
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
|
513 fi
|
|
514 fi
|
|
515 for ac_site_file in $CONFIG_SITE; do
|
|
516 if test -r "$ac_site_file"; then
|
|
517 echo "loading site script $ac_site_file"
|
|
518 . "$ac_site_file"
|
|
519 fi
|
|
520 done
|
|
521
|
|
522 if test -r "$cache_file"; then
|
|
523 echo "loading cache $cache_file"
|
|
524 . $cache_file
|
|
525 else
|
|
526 echo "creating cache $cache_file"
|
|
527 > $cache_file
|
|
528 fi
|
|
529
|
|
530 ac_ext=c
|
|
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
532 ac_cpp='$CPP $CPPFLAGS'
|
|
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
535 cross_compiling=$ac_cv_prog_cc_cross
|
|
536
|
|
537 ac_exeext=
|
|
538 ac_objext=o
|
|
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
|
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
|
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
|
542 ac_n= ac_c='
|
|
543 ' ac_t=' '
|
|
544 else
|
|
545 ac_n=-n ac_c= ac_t=
|
|
546 fi
|
|
547 else
|
|
548 ac_n= ac_c='\c' ac_t=
|
|
549 fi
|
|
550
|
|
551
|
|
552
|
|
553
|
|
554
|
|
555
|
|
556 ac_aux_dir=
|
|
557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
|
558 if test -f $ac_dir/install-sh; then
|
|
559 ac_aux_dir=$ac_dir
|
|
560 ac_install_sh="$ac_aux_dir/install-sh -c"
|
|
561 break
|
|
562 elif test -f $ac_dir/install.sh; then
|
|
563 ac_aux_dir=$ac_dir
|
|
564 ac_install_sh="$ac_aux_dir/install.sh -c"
|
|
565 break
|
|
566 fi
|
|
567 done
|
|
568 if test -z "$ac_aux_dir"; then
|
|
569 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
|
570 fi
|
|
571 ac_config_guess=$ac_aux_dir/config.guess
|
|
572 ac_config_sub=$ac_aux_dir/config.sub
|
|
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
|
574
|
|
575 # Find a good install program. We prefer a C program (faster),
|
|
576 # so one script is as good as another. But avoid the broken or
|
|
577 # incompatible versions:
|
|
578 # SysV /etc/install, /usr/sbin/install
|
|
579 # SunOS /usr/etc/install
|
|
580 # IRIX /sbin/install
|
|
581 # AIX /bin/install
|
|
582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
585 # ./install, which can be erroneously created by make from ./install.sh.
|
|
586 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
587 echo "configure:588: checking for a BSD compatible install" >&5
|
|
588 if test -z "$INSTALL"; then
|
|
589 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|
590 echo $ac_n "(cached) $ac_c" 1>&6
|
|
591 else
|
|
592 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
|
593 for ac_dir in $PATH; do
|
|
594 # Account for people who put trailing slashes in PATH elements.
|
|
595 case "$ac_dir/" in
|
|
596 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
597 *)
|
|
598 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
599 # Don't use installbsd from OSF since it installs stuff as root
|
|
600 # by default.
|
|
601 for ac_prog in ginstall scoinst install; do
|
|
602 if test -f $ac_dir/$ac_prog; then
|
|
603 if test $ac_prog = install &&
|
|
604 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
605 # AIX install. It has an incompatible calling convention.
|
|
606 :
|
|
607 else
|
|
608 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
609 break 2
|
|
610 fi
|
|
611 fi
|
|
612 done
|
|
613 ;;
|
|
614 esac
|
|
615 done
|
|
616 IFS="$ac_save_IFS"
|
|
617
|
|
618 fi
|
|
619 if test "${ac_cv_path_install+set}" = set; then
|
|
620 INSTALL="$ac_cv_path_install"
|
|
621 else
|
|
622 # As a last resort, use the slow shell script. We don't cache a
|
|
623 # path for INSTALL within a source directory, because that will
|
|
624 # break other packages using the cache if that directory is
|
|
625 # removed, or if the path is relative.
|
|
626 INSTALL="$ac_install_sh"
|
|
627 fi
|
|
628 fi
|
|
629 echo "$ac_t""$INSTALL" 1>&6
|
|
630
|
|
631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
632 # It thinks the first close brace ends the variable substitution.
|
|
633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
634
|
|
635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
636
|
|
637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
638
|
|
639 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
|
640 echo "configure:641: checking whether build environment is sane" >&5
|
|
641 # Just in case
|
|
642 sleep 1
|
|
643 echo timestamp > conftestfile
|
|
644 # Do `set' in a subshell so we don't clobber the current shell's
|
|
645 # arguments. Must try -L first in case configure is actually a
|
|
646 # symlink; some systems play weird games with the mod time of symlinks
|
|
647 # (eg FreeBSD returns the mod time of the symlink's containing
|
|
648 # directory).
|
|
649 if (
|
|
650 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
|
651 if test "$*" = "X"; then
|
|
652 # -L didn't work.
|
|
653 set X `ls -t $srcdir/configure conftestfile`
|
|
654 fi
|
|
655 if test "$*" != "X $srcdir/configure conftestfile" \
|
|
656 && test "$*" != "X conftestfile $srcdir/configure"; then
|
|
657
|
|
658 # If neither matched, then we have a broken ls. This can happen
|
|
659 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
660 # broken ls alias from the environment. This has actually
|
|
661 # happened. Such a system could not be considered "sane".
|
|
662 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
|
663 alias in your environment" 1>&2; exit 1; }
|
|
664 fi
|
|
665
|
|
666 test "$2" = conftestfile
|
|
667 )
|
|
668 then
|
|
669 # Ok.
|
|
670 :
|
|
671 else
|
|
672 { echo "configure: error: newly created file is older than distributed files!
|
|
673 Check your system clock" 1>&2; exit 1; }
|
|
674 fi
|
|
675 rm -f conftest*
|
|
676 echo "$ac_t""yes" 1>&6
|
|
677 if test "$program_transform_name" = s,x,x,; then
|
|
678 program_transform_name=
|
|
679 else
|
|
680 # Double any \ or $. echo might interpret backslashes.
|
|
681 cat <<\EOF_SED > conftestsed
|
|
682 s,\\,\\\\,g; s,\$,$$,g
|
|
683 EOF_SED
|
|
684 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
|
685 rm -f conftestsed
|
|
686 fi
|
|
687 test "$program_prefix" != NONE &&
|
|
688 program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
|
689 # Use a double $ so make ignores it.
|
|
690 test "$program_suffix" != NONE &&
|
|
691 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
|
692
|
|
693 # sed with no file args requires a program.
|
|
694 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
|
695
|
|
696 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
697 echo "configure:698: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
698 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
699 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|
700 echo $ac_n "(cached) $ac_c" 1>&6
|
|
701 else
|
|
702 cat > conftestmake <<\EOF
|
|
703 all:
|
|
704 @echo 'ac_maketemp="${MAKE}"'
|
|
705 EOF
|
|
706 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
707 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
708 if test -n "$ac_maketemp"; then
|
|
709 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
710 else
|
|
711 eval ac_cv_prog_make_${ac_make}_set=no
|
|
712 fi
|
|
713 rm -f conftestmake
|
|
714 fi
|
|
715 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
716 echo "$ac_t""yes" 1>&6
|
|
717 SET_MAKE=
|
|
718 else
|
|
719 echo "$ac_t""no" 1>&6
|
|
720 SET_MAKE="MAKE=${MAKE-make}"
|
|
721 fi
|
|
722
|
|
723
|
|
724 PACKAGE=gftp
|
|
725
|
|
726 VERSION=2.0.13
|
|
727
|
|
728 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
|
729 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
|
730 fi
|
|
731 cat >> confdefs.h <<EOF
|
|
732 #define PACKAGE "$PACKAGE"
|
|
733 EOF
|
|
734
|
|
735 cat >> confdefs.h <<EOF
|
|
736 #define VERSION "$VERSION"
|
|
737 EOF
|
|
738
|
|
739
|
|
740
|
|
741 missing_dir=`cd $ac_aux_dir && pwd`
|
|
742 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
|
743 echo "configure:744: checking for working aclocal" >&5
|
|
744 # Run test in a subshell; some versions of sh will print an error if
|
|
745 # an executable is not found, even if stderr is redirected.
|
|
746 # Redirect stdin to placate older versions of autoconf. Sigh.
|
|
747 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
|
748 ACLOCAL=aclocal
|
|
749 echo "$ac_t""found" 1>&6
|
|
750 else
|
|
751 ACLOCAL="$missing_dir/missing aclocal"
|
|
752 echo "$ac_t""missing" 1>&6
|
|
753 fi
|
|
754
|
|
755 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
|
756 echo "configure:757: checking for working autoconf" >&5
|
|
757 # Run test in a subshell; some versions of sh will print an error if
|
|
758 # an executable is not found, even if stderr is redirected.
|
|
759 # Redirect stdin to placate older versions of autoconf. Sigh.
|
|
760 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
|
761 AUTOCONF=autoconf
|
|
762 echo "$ac_t""found" 1>&6
|
|
763 else
|
|
764 AUTOCONF="$missing_dir/missing autoconf"
|
|
765 echo "$ac_t""missing" 1>&6
|
|
766 fi
|
|
767
|
|
768 echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
|
769 echo "configure:770: checking for working automake" >&5
|
|
770 # Run test in a subshell; some versions of sh will print an error if
|
|
771 # an executable is not found, even if stderr is redirected.
|
|
772 # Redirect stdin to placate older versions of autoconf. Sigh.
|
|
773 if (automake --version) < /dev/null > /dev/null 2>&1; then
|
|
774 AUTOMAKE=automake
|
|
775 echo "$ac_t""found" 1>&6
|
|
776 else
|
|
777 AUTOMAKE="$missing_dir/missing automake"
|
|
778 echo "$ac_t""missing" 1>&6
|
|
779 fi
|
|
780
|
|
781 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
|
782 echo "configure:783: checking for working autoheader" >&5
|
|
783 # Run test in a subshell; some versions of sh will print an error if
|
|
784 # an executable is not found, even if stderr is redirected.
|
|
785 # Redirect stdin to placate older versions of autoconf. Sigh.
|
|
786 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
|
787 AUTOHEADER=autoheader
|
|
788 echo "$ac_t""found" 1>&6
|
|
789 else
|
|
790 AUTOHEADER="$missing_dir/missing autoheader"
|
|
791 echo "$ac_t""missing" 1>&6
|
|
792 fi
|
|
793
|
|
794 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
|
795 echo "configure:796: checking for working makeinfo" >&5
|
|
796 # Run test in a subshell; some versions of sh will print an error if
|
|
797 # an executable is not found, even if stderr is redirected.
|
|
798 # Redirect stdin to placate older versions of autoconf. Sigh.
|
|
799 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
|
800 MAKEINFO=makeinfo
|
|
801 echo "$ac_t""found" 1>&6
|
|
802 else
|
|
803 MAKEINFO="$missing_dir/missing makeinfo"
|
|
804 echo "$ac_t""missing" 1>&6
|
|
805 fi
|
|
806
|
|
807
|
|
808
|
|
809 # Check whether --enable-gtk20 or --disable-gtk20 was given.
|
|
810 if test "${enable_gtk20+set}" = set; then
|
|
811 enableval="$enable_gtk20"
|
|
812 enable_gtk20=1
|
|
813 else
|
|
814 enable_gtk20=0
|
|
815 fi
|
|
816
|
|
817 # Check whether --enable-gtkport or --disable-gtkport was given.
|
|
818 if test "${enable_gtkport+set}" = set; then
|
|
819 enableval="$enable_gtkport"
|
|
820 enable_gtkport=0
|
|
821 else
|
|
822 enable_gtkport=1
|
|
823 fi
|
|
824
|
|
825 # Check whether --enable-textport or --disable-textport was given.
|
|
826 if test "${enable_textport+set}" = set; then
|
|
827 enableval="$enable_textport"
|
|
828 enable_textport=0
|
|
829 else
|
|
830 enable_textport=1
|
|
831 fi
|
|
832
|
|
833 # Check whether --enable-dmalloc or --disable-dmalloc was given.
|
|
834 if test "${enable_dmalloc+set}" = set; then
|
|
835 enableval="$enable_dmalloc"
|
|
836 enable_dmalloc=1
|
|
837 else
|
|
838 enable_dmalloc=0
|
|
839 fi
|
|
840
|
|
841
|
|
842
|
|
843
|
|
844
|
|
845
|
|
846 ALL_LINGUAS="bg cs da de es fi fr it ja ko nl no pl pt_BR ru sv tr zh_CN.GB2312 zh_TW.Big5"
|
|
847
|
|
848
|
|
849 # Make sure we can run config.sub.
|
|
850 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
|
851 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
|
852 fi
|
|
853
|
|
854 echo $ac_n "checking host system type""... $ac_c" 1>&6
|
|
855 echo "configure:856: checking host system type" >&5
|
|
856
|
|
857 host_alias=$host
|
|
858 case "$host_alias" in
|
|
859 NONE)
|
|
860 case $nonopt in
|
|
861 NONE)
|
|
862 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
|
863 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
|
864 fi ;;
|
|
865 *) host_alias=$nonopt ;;
|
|
866 esac ;;
|
|
867 esac
|
|
868
|
|
869 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
|
870 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
|
871 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
|
872 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
873 echo "$ac_t""$host" 1>&6
|
|
874
|
|
875
|
|
876 for ac_prog in mawk gawk nawk awk
|
|
877 do
|
|
878 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
879 set dummy $ac_prog; ac_word=$2
|
|
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
881 echo "configure:882: checking for $ac_word" >&5
|
|
882 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
|
883 echo $ac_n "(cached) $ac_c" 1>&6
|
|
884 else
|
|
885 if test -n "$AWK"; then
|
|
886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
|
887 else
|
|
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
889 ac_dummy="$PATH"
|
|
890 for ac_dir in $ac_dummy; do
|
|
891 test -z "$ac_dir" && ac_dir=.
|
|
892 if test -f $ac_dir/$ac_word; then
|
|
893 ac_cv_prog_AWK="$ac_prog"
|
|
894 break
|
|
895 fi
|
|
896 done
|
|
897 IFS="$ac_save_ifs"
|
|
898 fi
|
|
899 fi
|
|
900 AWK="$ac_cv_prog_AWK"
|
|
901 if test -n "$AWK"; then
|
|
902 echo "$ac_t""$AWK" 1>&6
|
|
903 else
|
|
904 echo "$ac_t""no" 1>&6
|
|
905 fi
|
|
906
|
|
907 test -n "$AWK" && break
|
|
908 done
|
|
909
|
|
910 # Extract the first word of "gcc", so it can be a program name with args.
|
|
911 set dummy gcc; ac_word=$2
|
|
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
913 echo "configure:914: checking for $ac_word" >&5
|
|
914 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
915 echo $ac_n "(cached) $ac_c" 1>&6
|
|
916 else
|
|
917 if test -n "$CC"; then
|
|
918 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
919 else
|
|
920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
921 ac_dummy="$PATH"
|
|
922 for ac_dir in $ac_dummy; do
|
|
923 test -z "$ac_dir" && ac_dir=.
|
|
924 if test -f $ac_dir/$ac_word; then
|
|
925 ac_cv_prog_CC="gcc"
|
|
926 break
|
|
927 fi
|
|
928 done
|
|
929 IFS="$ac_save_ifs"
|
|
930 fi
|
|
931 fi
|
|
932 CC="$ac_cv_prog_CC"
|
|
933 if test -n "$CC"; then
|
|
934 echo "$ac_t""$CC" 1>&6
|
|
935 else
|
|
936 echo "$ac_t""no" 1>&6
|
|
937 fi
|
|
938
|
|
939 if test -z "$CC"; then
|
|
940 # Extract the first word of "cc", so it can be a program name with args.
|
|
941 set dummy cc; ac_word=$2
|
|
942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
943 echo "configure:944: checking for $ac_word" >&5
|
|
944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
945 echo $ac_n "(cached) $ac_c" 1>&6
|
|
946 else
|
|
947 if test -n "$CC"; then
|
|
948 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
949 else
|
|
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
951 ac_prog_rejected=no
|
|
952 ac_dummy="$PATH"
|
|
953 for ac_dir in $ac_dummy; do
|
|
954 test -z "$ac_dir" && ac_dir=.
|
|
955 if test -f $ac_dir/$ac_word; then
|
|
956 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
|
957 ac_prog_rejected=yes
|
|
958 continue
|
|
959 fi
|
|
960 ac_cv_prog_CC="cc"
|
|
961 break
|
|
962 fi
|
|
963 done
|
|
964 IFS="$ac_save_ifs"
|
|
965 if test $ac_prog_rejected = yes; then
|
|
966 # We found a bogon in the path, so make sure we never use it.
|
|
967 set dummy $ac_cv_prog_CC
|
|
968 shift
|
|
969 if test $# -gt 0; then
|
|
970 # We chose a different compiler from the bogus one.
|
|
971 # However, it has the same basename, so the bogon will be chosen
|
|
972 # first if we set CC to just the basename; use the full file name.
|
|
973 shift
|
|
974 set dummy "$ac_dir/$ac_word" "$@"
|
|
975 shift
|
|
976 ac_cv_prog_CC="$@"
|
|
977 fi
|
|
978 fi
|
|
979 fi
|
|
980 fi
|
|
981 CC="$ac_cv_prog_CC"
|
|
982 if test -n "$CC"; then
|
|
983 echo "$ac_t""$CC" 1>&6
|
|
984 else
|
|
985 echo "$ac_t""no" 1>&6
|
|
986 fi
|
|
987
|
|
988 if test -z "$CC"; then
|
|
989 case "`uname -s`" in
|
|
990 *win32* | *WIN32*)
|
|
991 # Extract the first word of "cl", so it can be a program name with args.
|
|
992 set dummy cl; ac_word=$2
|
|
993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
994 echo "configure:995: checking for $ac_word" >&5
|
|
995 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
|
996 echo $ac_n "(cached) $ac_c" 1>&6
|
|
997 else
|
|
998 if test -n "$CC"; then
|
|
999 ac_cv_prog_CC="$CC" # Let the user override the test.
|
|
1000 else
|
|
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1002 ac_dummy="$PATH"
|
|
1003 for ac_dir in $ac_dummy; do
|
|
1004 test -z "$ac_dir" && ac_dir=.
|
|
1005 if test -f $ac_dir/$ac_word; then
|
|
1006 ac_cv_prog_CC="cl"
|
|
1007 break
|
|
1008 fi
|
|
1009 done
|
|
1010 IFS="$ac_save_ifs"
|
|
1011 fi
|
|
1012 fi
|
|
1013 CC="$ac_cv_prog_CC"
|
|
1014 if test -n "$CC"; then
|
|
1015 echo "$ac_t""$CC" 1>&6
|
|
1016 else
|
|
1017 echo "$ac_t""no" 1>&6
|
|
1018 fi
|
|
1019 ;;
|
|
1020 esac
|
|
1021 fi
|
|
1022 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
|
1023 fi
|
|
1024
|
|
1025 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
|
1026 echo "configure:1027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
|
1027
|
|
1028 ac_ext=c
|
|
1029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
1030 ac_cpp='$CPP $CPPFLAGS'
|
|
1031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
1032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
1033 cross_compiling=$ac_cv_prog_cc_cross
|
|
1034
|
|
1035 cat > conftest.$ac_ext << EOF
|
|
1036
|
|
1037 #line 1038 "configure"
|
|
1038 #include "confdefs.h"
|
|
1039
|
|
1040 main(){return(0);}
|
|
1041 EOF
|
|
1042 if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
1043 ac_cv_prog_cc_works=yes
|
|
1044 # If we can't run a trivial program, we are probably using a cross compiler.
|
|
1045 if (./conftest; exit) 2>/dev/null; then
|
|
1046 ac_cv_prog_cc_cross=no
|
|
1047 else
|
|
1048 ac_cv_prog_cc_cross=yes
|
|
1049 fi
|
|
1050 else
|
|
1051 echo "configure: failed program was:" >&5
|
|
1052 cat conftest.$ac_ext >&5
|
|
1053 ac_cv_prog_cc_works=no
|
|
1054 fi
|
|
1055 rm -fr conftest*
|
|
1056 ac_ext=c
|
|
1057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
|
1058 ac_cpp='$CPP $CPPFLAGS'
|
|
1059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
|
1060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
|
1061 cross_compiling=$ac_cv_prog_cc_cross
|
|
1062
|
|
1063 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
|
1064 if test $ac_cv_prog_cc_works = no; then
|
|
1065 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
|
1066 fi
|
|
1067 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
|
1068 echo "configure:1069: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
|
1069 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
|
1070 cross_compiling=$ac_cv_prog_cc_cross
|
|
1071
|
|
1072 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
|
1073 echo "configure:1074: checking whether we are using GNU C" >&5
|
|
1074 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
|
1075 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1076 else
|
|
1077 cat > conftest.c <<EOF
|
|
1078 #ifdef __GNUC__
|
|
1079 yes;
|
|
1080 #endif
|
|
1081 EOF
|
|
1082 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
|
1083 ac_cv_prog_gcc=yes
|
|
1084 else
|
|
1085 ac_cv_prog_gcc=no
|
|
1086 fi
|
|
1087 fi
|
|
1088
|
|
1089 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
|
1090
|
|
1091 if test $ac_cv_prog_gcc = yes; then
|
|
1092 GCC=yes
|
|
1093 else
|
|
1094 GCC=
|
|
1095 fi
|
|
1096
|
|
1097 ac_test_CFLAGS="${CFLAGS+set}"
|
|
1098 ac_save_CFLAGS="$CFLAGS"
|
|
1099 CFLAGS=
|
|
1100 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
|
1101 echo "configure:1102: checking whether ${CC-cc} accepts -g" >&5
|
|
1102 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
|
1103 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1104 else
|
|
1105 echo 'void f(){}' > conftest.c
|
|
1106 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
|
1107 ac_cv_prog_cc_g=yes
|
|
1108 else
|
|
1109 ac_cv_prog_cc_g=no
|
|
1110 fi
|
|
1111 rm -f conftest*
|
|
1112
|
|
1113 fi
|
|
1114
|
|
1115 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
|
1116 if test "$ac_test_CFLAGS" = set; then
|
|
1117 CFLAGS="$ac_save_CFLAGS"
|
|
1118 elif test $ac_cv_prog_cc_g = yes; then
|
|
1119 if test "$GCC" = yes; then
|
|
1120 CFLAGS="-g -O2"
|
|
1121 else
|
|
1122 CFLAGS="-g"
|
|
1123 fi
|
|
1124 else
|
|
1125 if test "$GCC" = yes; then
|
|
1126 CFLAGS="-O2"
|
|
1127 else
|
|
1128 CFLAGS=
|
|
1129 fi
|
|
1130 fi
|
|
1131
|
|
1132 # Find a good install program. We prefer a C program (faster),
|
|
1133 # so one script is as good as another. But avoid the broken or
|
|
1134 # incompatible versions:
|
|
1135 # SysV /etc/install, /usr/sbin/install
|
|
1136 # SunOS /usr/etc/install
|
|
1137 # IRIX /sbin/install
|
|
1138 # AIX /bin/install
|
|
1139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
|
1140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
|
1141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
|
1142 # ./install, which can be erroneously created by make from ./install.sh.
|
|
1143 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
|
1144 echo "configure:1145: checking for a BSD compatible install" >&5
|
|
1145 if test -z "$INSTALL"; then
|
|
1146 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
|
1147 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1148 else
|
|
1149 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
|
1150 for ac_dir in $PATH; do
|
|
1151 # Account for people who put trailing slashes in PATH elements.
|
|
1152 case "$ac_dir/" in
|
|
1153 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
|
1154 *)
|
|
1155 # OSF1 and SCO ODT 3.0 have their own names for install.
|
|
1156 # Don't use installbsd from OSF since it installs stuff as root
|
|
1157 # by default.
|
|
1158 for ac_prog in ginstall scoinst install; do
|
|
1159 if test -f $ac_dir/$ac_prog; then
|
|
1160 if test $ac_prog = install &&
|
|
1161 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
|
1162 # AIX install. It has an incompatible calling convention.
|
|
1163 :
|
|
1164 else
|
|
1165 ac_cv_path_install="$ac_dir/$ac_prog -c"
|
|
1166 break 2
|
|
1167 fi
|
|
1168 fi
|
|
1169 done
|
|
1170 ;;
|
|
1171 esac
|
|
1172 done
|
|
1173 IFS="$ac_save_IFS"
|
|
1174
|
|
1175 fi
|
|
1176 if test "${ac_cv_path_install+set}" = set; then
|
|
1177 INSTALL="$ac_cv_path_install"
|
|
1178 else
|
|
1179 # As a last resort, use the slow shell script. We don't cache a
|
|
1180 # path for INSTALL within a source directory, because that will
|
|
1181 # break other packages using the cache if that directory is
|
|
1182 # removed, or if the path is relative.
|
|
1183 INSTALL="$ac_install_sh"
|
|
1184 fi
|
|
1185 fi
|
|
1186 echo "$ac_t""$INSTALL" 1>&6
|
|
1187
|
|
1188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
|
1189 # It thinks the first close brace ends the variable substitution.
|
|
1190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
|
1191
|
|
1192 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
|
1193
|
|
1194 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
1195
|
|
1196 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
|
1197 echo "configure:1198: checking whether ln -s works" >&5
|
|
1198 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
|
1199 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1200 else
|
|
1201 rm -f conftestdata
|
|
1202 if ln -s X conftestdata 2>/dev/null
|
|
1203 then
|
|
1204 rm -f conftestdata
|
|
1205 ac_cv_prog_LN_S="ln -s"
|
|
1206 else
|
|
1207 ac_cv_prog_LN_S=ln
|
|
1208 fi
|
|
1209 fi
|
|
1210 LN_S="$ac_cv_prog_LN_S"
|
|
1211 if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
|
1212 echo "$ac_t""yes" 1>&6
|
|
1213 else
|
|
1214 echo "$ac_t""no" 1>&6
|
|
1215 fi
|
|
1216
|
|
1217 # Extract the first word of "ranlib", so it can be a program name with args.
|
|
1218 set dummy ranlib; ac_word=$2
|
|
1219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
1220 echo "configure:1221: checking for $ac_word" >&5
|
|
1221 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
|
1222 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1223 else
|
|
1224 if test -n "$RANLIB"; then
|
|
1225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
|
1226 else
|
|
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
1228 ac_dummy="$PATH"
|
|
1229 for ac_dir in $ac_dummy; do
|
|
1230 test -z "$ac_dir" && ac_dir=.
|
|
1231 if test -f $ac_dir/$ac_word; then
|
|
1232 ac_cv_prog_RANLIB="ranlib"
|
|
1233 break
|
|
1234 fi
|
|
1235 done
|
|
1236 IFS="$ac_save_ifs"
|
|
1237 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
|
1238 fi
|
|
1239 fi
|
|
1240 RANLIB="$ac_cv_prog_RANLIB"
|
|
1241 if test -n "$RANLIB"; then
|
|
1242 echo "$ac_t""$RANLIB" 1>&6
|
|
1243 else
|
|
1244 echo "$ac_t""no" 1>&6
|
|
1245 fi
|
|
1246
|
|
1247 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
|
1248 echo "configure:1249: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
|
1249 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
|
1250 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
|
1251 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1252 else
|
|
1253 cat > conftestmake <<\EOF
|
|
1254 all:
|
|
1255 @echo 'ac_maketemp="${MAKE}"'
|
|
1256 EOF
|
|
1257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
|
1258 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
|
1259 if test -n "$ac_maketemp"; then
|
|
1260 eval ac_cv_prog_make_${ac_make}_set=yes
|
|
1261 else
|
|
1262 eval ac_cv_prog_make_${ac_make}_set=no
|
|
1263 fi
|
|
1264 rm -f conftestmake
|
|
1265 fi
|
|
1266 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
|
1267 echo "$ac_t""yes" 1>&6
|
|
1268 SET_MAKE=
|
|
1269 else
|
|
1270 echo "$ac_t""no" 1>&6
|
|
1271 SET_MAKE="MAKE=${MAKE-make}"
|
|
1272 fi
|
|
1273
|
|
1274
|
|
1275 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
|
|
1276 echo "configure:1277: checking for strerror in -lcposix" >&5
|
|
1277 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
|
|
1278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
1279 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1280 else
|
|
1281 ac_save_LIBS="$LIBS"
|
|
1282 LIBS="-lcposix $LIBS"
|
|
1283 cat > conftest.$ac_ext <<EOF
|
|
1284 #line 1285 "configure"
|
|
1285 #include "confdefs.h"
|
|
1286 /* Override any gcc2 internal prototype to avoid an error. */
|
|
1287 /* We use char because int might match the return type of a gcc2
|
|
1288 builtin and then its argument prototype would still apply. */
|
|
1289 char strerror();
|
|
1290
|
|
1291 int main() {
|
|
1292 strerror()
|
|
1293 ; return 0; }
|
|
1294 EOF
|
|
1295 if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
1296 rm -rf conftest*
|
|
1297 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
1298 else
|
|
1299 echo "configure: failed program was:" >&5
|
|
1300 cat conftest.$ac_ext >&5
|
|
1301 rm -rf conftest*
|
|
1302 eval "ac_cv_lib_$ac_lib_var=no"
|
|
1303 fi
|
|
1304 rm -f conftest*
|
|
1305 LIBS="$ac_save_LIBS"
|
|
1306
|
|
1307 fi
|
|
1308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
1309 echo "$ac_t""yes" 1>&6
|
|
1310 LIBS="$LIBS -lcposix"
|
|
1311 else
|
|
1312 echo "$ac_t""no" 1>&6
|
|
1313 fi
|
|
1314
|
|
1315
|
|
1316
|
|
1317
|
|
1318 ac_header_dirent=no
|
|
1319 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
|
|
1320 do
|
|
1321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
1322 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
|
|
1323 echo "configure:1324: checking for $ac_hdr that defines DIR" >&5
|
|
1324 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
|
|
1325 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1326 else
|
|
1327 cat > conftest.$ac_ext <<EOF
|
|
1328 #line 1329 "configure"
|
|
1329 #include "confdefs.h"
|
|
1330 #include <sys/types.h>
|
|
1331 #include <$ac_hdr>
|
|
1332 int main() {
|
|
1333 DIR *dirp = 0;
|
|
1334 ; return 0; }
|
|
1335 EOF
|
|
1336 if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
1337 rm -rf conftest*
|
|
1338 eval "ac_cv_header_dirent_$ac_safe=yes"
|
|
1339 else
|
|
1340 echo "configure: failed program was:" >&5
|
|
1341 cat conftest.$ac_ext >&5
|
|
1342 rm -rf conftest*
|
|
1343 eval "ac_cv_header_dirent_$ac_safe=no"
|
|
1344 fi
|
|
1345 rm -f conftest*
|
|
1346 fi
|
|
1347 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
|
|
1348 echo "$ac_t""yes" 1>&6
|
|
1349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
1350 cat >> confdefs.h <<EOF
|
|
1351 #define $ac_tr_hdr 1
|
|
1352 EOF
|
|
1353 ac_header_dirent=$ac_hdr; break
|
|
1354 else
|
|
1355 echo "$ac_t""no" 1>&6
|
|
1356 fi
|
|
1357 done
|
|
1358 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
|
1359 if test $ac_header_dirent = dirent.h; then
|
|
1360 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
|
|
1361 echo "configure:1362: checking for opendir in -ldir" >&5
|
|
1362 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
|
|
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
1364 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1365 else
|
|
1366 ac_save_LIBS="$LIBS"
|
|
1367 LIBS="-ldir $LIBS"
|
|
1368 cat > conftest.$ac_ext <<EOF
|
|
1369 #line 1370 "configure"
|
|
1370 #include "confdefs.h"
|
|
1371 /* Override any gcc2 internal prototype to avoid an error. */
|
|
1372 /* We use char because int might match the return type of a gcc2
|
|
1373 builtin and then its argument prototype would still apply. */
|
|
1374 char opendir();
|
|
1375
|
|
1376 int main() {
|
|
1377 opendir()
|
|
1378 ; return 0; }
|
|
1379 EOF
|
|
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
1381 rm -rf conftest*
|
|
1382 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
1383 else
|
|
1384 echo "configure: failed program was:" >&5
|
|
1385 cat conftest.$ac_ext >&5
|
|
1386 rm -rf conftest*
|
|
1387 eval "ac_cv_lib_$ac_lib_var=no"
|
|
1388 fi
|
|
1389 rm -f conftest*
|
|
1390 LIBS="$ac_save_LIBS"
|
|
1391
|
|
1392 fi
|
|
1393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
1394 echo "$ac_t""yes" 1>&6
|
|
1395 LIBS="$LIBS -ldir"
|
|
1396 else
|
|
1397 echo "$ac_t""no" 1>&6
|
|
1398 fi
|
|
1399
|
|
1400 else
|
|
1401 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
|
|
1402 echo "configure:1403: checking for opendir in -lx" >&5
|
|
1403 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
|
|
1404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
1405 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1406 else
|
|
1407 ac_save_LIBS="$LIBS"
|
|
1408 LIBS="-lx $LIBS"
|
|
1409 cat > conftest.$ac_ext <<EOF
|
|
1410 #line 1411 "configure"
|
|
1411 #include "confdefs.h"
|
|
1412 /* Override any gcc2 internal prototype to avoid an error. */
|
|
1413 /* We use char because int might match the return type of a gcc2
|
|
1414 builtin and then its argument prototype would still apply. */
|
|
1415 char opendir();
|
|
1416
|
|
1417 int main() {
|
|
1418 opendir()
|
|
1419 ; return 0; }
|
|
1420 EOF
|
|
1421 if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
1422 rm -rf conftest*
|
|
1423 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
1424 else
|
|
1425 echo "configure: failed program was:" >&5
|
|
1426 cat conftest.$ac_ext >&5
|
|
1427 rm -rf conftest*
|
|
1428 eval "ac_cv_lib_$ac_lib_var=no"
|
|
1429 fi
|
|
1430 rm -f conftest*
|
|
1431 LIBS="$ac_save_LIBS"
|
|
1432
|
|
1433 fi
|
|
1434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
1435 echo "$ac_t""yes" 1>&6
|
|
1436 LIBS="$LIBS -lx"
|
|
1437 else
|
|
1438 echo "$ac_t""no" 1>&6
|
|
1439 fi
|
|
1440
|
|
1441 fi
|
|
1442
|
|
1443 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
|
1444 echo "configure:1445: checking how to run the C preprocessor" >&5
|
|
1445 # On Suns, sometimes $CPP names a directory.
|
|
1446 if test -n "$CPP" && test -d "$CPP"; then
|
|
1447 CPP=
|
|
1448 fi
|
|
1449 if test -z "$CPP"; then
|
|
1450 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|
1451 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1452 else
|
|
1453 # This must be in double quotes, not single quotes, because CPP may get
|
|
1454 # substituted into the Makefile and "${CC-cc}" will confuse make.
|
|
1455 CPP="${CC-cc} -E"
|
|
1456 # On the NeXT, cc -E runs the code through the compiler's parser,
|
|
1457 # not just through cpp.
|
|
1458 cat > conftest.$ac_ext <<EOF
|
|
1459 #line 1460 "configure"
|
|
1460 #include "confdefs.h"
|
|
1461 #include <assert.h>
|
|
1462 Syntax Error
|
|
1463 EOF
|
|
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
1466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
1467 if test -z "$ac_err"; then
|
|
1468 :
|
|
1469 else
|
|
1470 echo "$ac_err" >&5
|
|
1471 echo "configure: failed program was:" >&5
|
|
1472 cat conftest.$ac_ext >&5
|
|
1473 rm -rf conftest*
|
|
1474 CPP="${CC-cc} -E -traditional-cpp"
|
|
1475 cat > conftest.$ac_ext <<EOF
|
|
1476 #line 1477 "configure"
|
|
1477 #include "confdefs.h"
|
|
1478 #include <assert.h>
|
|
1479 Syntax Error
|
|
1480 EOF
|
|
1481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
1482 { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
1483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
1484 if test -z "$ac_err"; then
|
|
1485 :
|
|
1486 else
|
|
1487 echo "$ac_err" >&5
|
|
1488 echo "configure: failed program was:" >&5
|
|
1489 cat conftest.$ac_ext >&5
|
|
1490 rm -rf conftest*
|
|
1491 CPP="${CC-cc} -nologo -E"
|
|
1492 cat > conftest.$ac_ext <<EOF
|
|
1493 #line 1494 "configure"
|
|
1494 #include "confdefs.h"
|
|
1495 #include <assert.h>
|
|
1496 Syntax Error
|
|
1497 EOF
|
|
1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
1501 if test -z "$ac_err"; then
|
|
1502 :
|
|
1503 else
|
|
1504 echo "$ac_err" >&5
|
|
1505 echo "configure: failed program was:" >&5
|
|
1506 cat conftest.$ac_ext >&5
|
|
1507 rm -rf conftest*
|
|
1508 CPP=/lib/cpp
|
|
1509 fi
|
|
1510 rm -f conftest*
|
|
1511 fi
|
|
1512 rm -f conftest*
|
|
1513 fi
|
|
1514 rm -f conftest*
|
|
1515 ac_cv_prog_CPP="$CPP"
|
|
1516 fi
|
|
1517 CPP="$ac_cv_prog_CPP"
|
|
1518 else
|
|
1519 ac_cv_prog_CPP="$CPP"
|
|
1520 fi
|
|
1521 echo "$ac_t""$CPP" 1>&6
|
|
1522
|
|
1523 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
|
1524 echo "configure:1525: checking for ANSI C header files" >&5
|
|
1525 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
|
1526 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1527 else
|
|
1528 cat > conftest.$ac_ext <<EOF
|
|
1529 #line 1530 "configure"
|
|
1530 #include "confdefs.h"
|
|
1531 #include <stdlib.h>
|
|
1532 #include <stdarg.h>
|
|
1533 #include <string.h>
|
|
1534 #include <float.h>
|
|
1535 EOF
|
|
1536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
1537 { (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
1538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
1539 if test -z "$ac_err"; then
|
|
1540 rm -rf conftest*
|
|
1541 ac_cv_header_stdc=yes
|
|
1542 else
|
|
1543 echo "$ac_err" >&5
|
|
1544 echo "configure: failed program was:" >&5
|
|
1545 cat conftest.$ac_ext >&5
|
|
1546 rm -rf conftest*
|
|
1547 ac_cv_header_stdc=no
|
|
1548 fi
|
|
1549 rm -f conftest*
|
|
1550
|
|
1551 if test $ac_cv_header_stdc = yes; then
|
|
1552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
|
1553 cat > conftest.$ac_ext <<EOF
|
|
1554 #line 1555 "configure"
|
|
1555 #include "confdefs.h"
|
|
1556 #include <string.h>
|
|
1557 EOF
|
|
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
1559 egrep "memchr" >/dev/null 2>&1; then
|
|
1560 :
|
|
1561 else
|
|
1562 rm -rf conftest*
|
|
1563 ac_cv_header_stdc=no
|
|
1564 fi
|
|
1565 rm -f conftest*
|
|
1566
|
|
1567 fi
|
|
1568
|
|
1569 if test $ac_cv_header_stdc = yes; then
|
|
1570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
|
1571 cat > conftest.$ac_ext <<EOF
|
|
1572 #line 1573 "configure"
|
|
1573 #include "confdefs.h"
|
|
1574 #include <stdlib.h>
|
|
1575 EOF
|
|
1576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
1577 egrep "free" >/dev/null 2>&1; then
|
|
1578 :
|
|
1579 else
|
|
1580 rm -rf conftest*
|
|
1581 ac_cv_header_stdc=no
|
|
1582 fi
|
|
1583 rm -f conftest*
|
|
1584
|
|
1585 fi
|
|
1586
|
|
1587 if test $ac_cv_header_stdc = yes; then
|
|
1588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
|
1589 if test "$cross_compiling" = yes; then
|
|
1590 :
|
|
1591 else
|
|
1592 cat > conftest.$ac_ext <<EOF
|
|
1593 #line 1594 "configure"
|
|
1594 #include "confdefs.h"
|
|
1595 #include <ctype.h>
|
|
1596 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
|
1597 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
|
1598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
|
1599 int main () { int i; for (i = 0; i < 256; i++)
|
|
1600 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
|
|
1601 exit (0); }
|
|
1602
|
|
1603 EOF
|
|
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
1605 then
|
|
1606 :
|
|
1607 else
|
|
1608 echo "configure: failed program was:" >&5
|
|
1609 cat conftest.$ac_ext >&5
|
|
1610 rm -fr conftest*
|
|
1611 ac_cv_header_stdc=no
|
|
1612 fi
|
|
1613 rm -fr conftest*
|
|
1614 fi
|
|
1615
|
|
1616 fi
|
|
1617 fi
|
|
1618
|
|
1619 echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
|
1620 if test $ac_cv_header_stdc = yes; then
|
|
1621 cat >> confdefs.h <<\EOF
|
|
1622 #define STDC_HEADERS 1
|
|
1623 EOF
|
|
1624
|
|
1625 fi
|
|
1626
|
|
1627 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
|
|
1628 echo "configure:1629: checking for sys/wait.h that is POSIX.1 compatible" >&5
|
|
1629 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
|
|
1630 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1631 else
|
|
1632 cat > conftest.$ac_ext <<EOF
|
|
1633 #line 1634 "configure"
|
|
1634 #include "confdefs.h"
|
|
1635 #include <sys/types.h>
|
|
1636 #include <sys/wait.h>
|
|
1637 #ifndef WEXITSTATUS
|
|
1638 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
|
1639 #endif
|
|
1640 #ifndef WIFEXITED
|
|
1641 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
|
1642 #endif
|
|
1643 int main() {
|
|
1644 int s;
|
|
1645 wait (&s);
|
|
1646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
|
|
1647 ; return 0; }
|
|
1648 EOF
|
|
1649 if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
1650 rm -rf conftest*
|
|
1651 ac_cv_header_sys_wait_h=yes
|
|
1652 else
|
|
1653 echo "configure: failed program was:" >&5
|
|
1654 cat conftest.$ac_ext >&5
|
|
1655 rm -rf conftest*
|
|
1656 ac_cv_header_sys_wait_h=no
|
|
1657 fi
|
|
1658 rm -f conftest*
|
|
1659 fi
|
|
1660
|
|
1661 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
|
|
1662 if test $ac_cv_header_sys_wait_h = yes; then
|
|
1663 cat >> confdefs.h <<\EOF
|
|
1664 #define HAVE_SYS_WAIT_H 1
|
|
1665 EOF
|
|
1666
|
|
1667 fi
|
|
1668
|
|
1669 for ac_hdr in fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h
|
|
1670 do
|
|
1671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
1672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
1673 echo "configure:1674: checking for $ac_hdr" >&5
|
|
1674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
1675 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1676 else
|
|
1677 cat > conftest.$ac_ext <<EOF
|
|
1678 #line 1679 "configure"
|
|
1679 #include "confdefs.h"
|
|
1680 #include <$ac_hdr>
|
|
1681 EOF
|
|
1682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
1683 { (eval echo configure:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
1684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
1685 if test -z "$ac_err"; then
|
|
1686 rm -rf conftest*
|
|
1687 eval "ac_cv_header_$ac_safe=yes"
|
|
1688 else
|
|
1689 echo "$ac_err" >&5
|
|
1690 echo "configure: failed program was:" >&5
|
|
1691 cat conftest.$ac_ext >&5
|
|
1692 rm -rf conftest*
|
|
1693 eval "ac_cv_header_$ac_safe=no"
|
|
1694 fi
|
|
1695 rm -f conftest*
|
|
1696 fi
|
|
1697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
1698 echo "$ac_t""yes" 1>&6
|
|
1699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
1700 cat >> confdefs.h <<EOF
|
|
1701 #define $ac_tr_hdr 1
|
|
1702 EOF
|
|
1703
|
|
1704 else
|
|
1705 echo "$ac_t""no" 1>&6
|
|
1706 fi
|
|
1707 done
|
|
1708
|
|
1709
|
|
1710 echo $ac_n "checking for working const""... $ac_c" 1>&6
|
|
1711 echo "configure:1712: checking for working const" >&5
|
|
1712 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
|
1713 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1714 else
|
|
1715 cat > conftest.$ac_ext <<EOF
|
|
1716 #line 1717 "configure"
|
|
1717 #include "confdefs.h"
|
|
1718
|
|
1719 int main() {
|
|
1720
|
|
1721 /* Ultrix mips cc rejects this. */
|
|
1722 typedef int charset[2]; const charset x;
|
|
1723 /* SunOS 4.1.1 cc rejects this. */
|
|
1724 char const *const *ccp;
|
|
1725 char **p;
|
|
1726 /* NEC SVR4.0.2 mips cc rejects this. */
|
|
1727 struct point {int x, y;};
|
|
1728 static struct point const zero = {0,0};
|
|
1729 /* AIX XL C 1.02.0.0 rejects this.
|
|
1730 It does not let you subtract one const X* pointer from another in an arm
|
|
1731 of an if-expression whose if-part is not a constant expression */
|
|
1732 const char *g = "string";
|
|
1733 ccp = &g + (g ? g-g : 0);
|
|
1734 /* HPUX 7.0 cc rejects these. */
|
|
1735 ++ccp;
|
|
1736 p = (char**) ccp;
|
|
1737 ccp = (char const *const *) p;
|
|
1738 { /* SCO 3.2v4 cc rejects this. */
|
|
1739 char *t;
|
|
1740 char const *s = 0 ? (char *) 0 : (char const *) 0;
|
|
1741
|
|
1742 *t++ = 0;
|
|
1743 }
|
|
1744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
|
1745 int x[] = {25, 17};
|
|
1746 const int *foo = &x[0];
|
|
1747 ++foo;
|
|
1748 }
|
|
1749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
|
1750 typedef const int *iptr;
|
|
1751 iptr p = 0;
|
|
1752 ++p;
|
|
1753 }
|
|
1754 { /* AIX XL C 1.02.0.0 rejects this saying
|
|
1755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
|
1756 struct s { int j; const int *ap[3]; };
|
|
1757 struct s *b; b->j = 5;
|
|
1758 }
|
|
1759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
|
1760 const int foo = 10;
|
|
1761 }
|
|
1762
|
|
1763 ; return 0; }
|
|
1764 EOF
|
|
1765 if { (eval echo configure:1766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
1766 rm -rf conftest*
|
|
1767 ac_cv_c_const=yes
|
|
1768 else
|
|
1769 echo "configure: failed program was:" >&5
|
|
1770 cat conftest.$ac_ext >&5
|
|
1771 rm -rf conftest*
|
|
1772 ac_cv_c_const=no
|
|
1773 fi
|
|
1774 rm -f conftest*
|
|
1775 fi
|
|
1776
|
|
1777 echo "$ac_t""$ac_cv_c_const" 1>&6
|
|
1778 if test $ac_cv_c_const = no; then
|
|
1779 cat >> confdefs.h <<\EOF
|
|
1780 #define const
|
|
1781 EOF
|
|
1782
|
|
1783 fi
|
|
1784
|
|
1785 echo $ac_n "checking for inline""... $ac_c" 1>&6
|
|
1786 echo "configure:1787: checking for inline" >&5
|
|
1787 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
|
|
1788 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1789 else
|
|
1790 ac_cv_c_inline=no
|
|
1791 for ac_kw in inline __inline__ __inline; do
|
|
1792 cat > conftest.$ac_ext <<EOF
|
|
1793 #line 1794 "configure"
|
|
1794 #include "confdefs.h"
|
|
1795
|
|
1796 int main() {
|
|
1797 } $ac_kw foo() {
|
|
1798 ; return 0; }
|
|
1799 EOF
|
|
1800 if { (eval echo configure:1801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
1801 rm -rf conftest*
|
|
1802 ac_cv_c_inline=$ac_kw; break
|
|
1803 else
|
|
1804 echo "configure: failed program was:" >&5
|
|
1805 cat conftest.$ac_ext >&5
|
|
1806 fi
|
|
1807 rm -f conftest*
|
|
1808 done
|
|
1809
|
|
1810 fi
|
|
1811
|
|
1812 echo "$ac_t""$ac_cv_c_inline" 1>&6
|
|
1813 case "$ac_cv_c_inline" in
|
|
1814 inline | yes) ;;
|
|
1815 no) cat >> confdefs.h <<\EOF
|
|
1816 #define inline
|
|
1817 EOF
|
|
1818 ;;
|
|
1819 *) cat >> confdefs.h <<EOF
|
|
1820 #define inline $ac_cv_c_inline
|
|
1821 EOF
|
|
1822 ;;
|
|
1823 esac
|
|
1824
|
|
1825 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
|
|
1826 echo "configure:1827: checking for mode_t" >&5
|
|
1827 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
|
|
1828 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1829 else
|
|
1830 cat > conftest.$ac_ext <<EOF
|
|
1831 #line 1832 "configure"
|
|
1832 #include "confdefs.h"
|
|
1833 #include <sys/types.h>
|
|
1834 #if STDC_HEADERS
|
|
1835 #include <stdlib.h>
|
|
1836 #include <stddef.h>
|
|
1837 #endif
|
|
1838 EOF
|
|
1839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
1840 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
1841 rm -rf conftest*
|
|
1842 ac_cv_type_mode_t=yes
|
|
1843 else
|
|
1844 rm -rf conftest*
|
|
1845 ac_cv_type_mode_t=no
|
|
1846 fi
|
|
1847 rm -f conftest*
|
|
1848
|
|
1849 fi
|
|
1850 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
|
|
1851 if test $ac_cv_type_mode_t = no; then
|
|
1852 cat >> confdefs.h <<\EOF
|
|
1853 #define mode_t int
|
|
1854 EOF
|
|
1855
|
|
1856 fi
|
|
1857
|
|
1858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
|
|
1859 echo "configure:1860: checking for pid_t" >&5
|
|
1860 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
|
|
1861 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1862 else
|
|
1863 cat > conftest.$ac_ext <<EOF
|
|
1864 #line 1865 "configure"
|
|
1865 #include "confdefs.h"
|
|
1866 #include <sys/types.h>
|
|
1867 #if STDC_HEADERS
|
|
1868 #include <stdlib.h>
|
|
1869 #include <stddef.h>
|
|
1870 #endif
|
|
1871 EOF
|
|
1872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
1873 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
1874 rm -rf conftest*
|
|
1875 ac_cv_type_pid_t=yes
|
|
1876 else
|
|
1877 rm -rf conftest*
|
|
1878 ac_cv_type_pid_t=no
|
|
1879 fi
|
|
1880 rm -f conftest*
|
|
1881
|
|
1882 fi
|
|
1883 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
|
|
1884 if test $ac_cv_type_pid_t = no; then
|
|
1885 cat >> confdefs.h <<\EOF
|
|
1886 #define pid_t int
|
|
1887 EOF
|
|
1888
|
|
1889 fi
|
|
1890
|
|
1891 echo $ac_n "checking for size_t""... $ac_c" 1>&6
|
|
1892 echo "configure:1893: checking for size_t" >&5
|
|
1893 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
|
|
1894 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1895 else
|
|
1896 cat > conftest.$ac_ext <<EOF
|
|
1897 #line 1898 "configure"
|
|
1898 #include "confdefs.h"
|
|
1899 #include <sys/types.h>
|
|
1900 #if STDC_HEADERS
|
|
1901 #include <stdlib.h>
|
|
1902 #include <stddef.h>
|
|
1903 #endif
|
|
1904 EOF
|
|
1905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
1906 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
1907 rm -rf conftest*
|
|
1908 ac_cv_type_size_t=yes
|
|
1909 else
|
|
1910 rm -rf conftest*
|
|
1911 ac_cv_type_size_t=no
|
|
1912 fi
|
|
1913 rm -f conftest*
|
|
1914
|
|
1915 fi
|
|
1916 echo "$ac_t""$ac_cv_type_size_t" 1>&6
|
|
1917 if test $ac_cv_type_size_t = no; then
|
|
1918 cat >> confdefs.h <<\EOF
|
|
1919 #define size_t unsigned
|
|
1920 EOF
|
|
1921
|
|
1922 fi
|
|
1923
|
|
1924 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
|
1925 echo "configure:1926: checking whether time.h and sys/time.h may both be included" >&5
|
|
1926 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
|
1927 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1928 else
|
|
1929 cat > conftest.$ac_ext <<EOF
|
|
1930 #line 1931 "configure"
|
|
1931 #include "confdefs.h"
|
|
1932 #include <sys/types.h>
|
|
1933 #include <sys/time.h>
|
|
1934 #include <time.h>
|
|
1935 int main() {
|
|
1936 struct tm *tp;
|
|
1937 ; return 0; }
|
|
1938 EOF
|
|
1939 if { (eval echo configure:1940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
1940 rm -rf conftest*
|
|
1941 ac_cv_header_time=yes
|
|
1942 else
|
|
1943 echo "configure: failed program was:" >&5
|
|
1944 cat conftest.$ac_ext >&5
|
|
1945 rm -rf conftest*
|
|
1946 ac_cv_header_time=no
|
|
1947 fi
|
|
1948 rm -f conftest*
|
|
1949 fi
|
|
1950
|
|
1951 echo "$ac_t""$ac_cv_header_time" 1>&6
|
|
1952 if test $ac_cv_header_time = yes; then
|
|
1953 cat >> confdefs.h <<\EOF
|
|
1954 #define TIME_WITH_SYS_TIME 1
|
|
1955 EOF
|
|
1956
|
|
1957 fi
|
|
1958
|
|
1959 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
|
1960 echo "configure:1961: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
1961 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
|
1962 echo $ac_n "(cached) $ac_c" 1>&6
|
|
1963 else
|
|
1964 cat > conftest.$ac_ext <<EOF
|
|
1965 #line 1966 "configure"
|
|
1966 #include "confdefs.h"
|
|
1967 #include <sys/types.h>
|
|
1968 #include <time.h>
|
|
1969 int main() {
|
|
1970 struct tm *tp; tp->tm_sec;
|
|
1971 ; return 0; }
|
|
1972 EOF
|
|
1973 if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
1974 rm -rf conftest*
|
|
1975 ac_cv_struct_tm=time.h
|
|
1976 else
|
|
1977 echo "configure: failed program was:" >&5
|
|
1978 cat conftest.$ac_ext >&5
|
|
1979 rm -rf conftest*
|
|
1980 ac_cv_struct_tm=sys/time.h
|
|
1981 fi
|
|
1982 rm -f conftest*
|
|
1983 fi
|
|
1984
|
|
1985 echo "$ac_t""$ac_cv_struct_tm" 1>&6
|
|
1986 if test $ac_cv_struct_tm = sys/time.h; then
|
|
1987 cat >> confdefs.h <<\EOF
|
|
1988 #define TM_IN_SYS_TIME 1
|
|
1989 EOF
|
|
1990
|
|
1991 fi
|
|
1992
|
|
1993
|
|
1994 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
|
1995 # for constant arguments. Useless!
|
|
1996 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
|
|
1997 echo "configure:1998: checking for working alloca.h" >&5
|
|
1998 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
|
|
1999 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2000 else
|
|
2001 cat > conftest.$ac_ext <<EOF
|
|
2002 #line 2003 "configure"
|
|
2003 #include "confdefs.h"
|
|
2004 #include <alloca.h>
|
|
2005 int main() {
|
|
2006 char *p = alloca(2 * sizeof(int));
|
|
2007 ; return 0; }
|
|
2008 EOF
|
|
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
2010 rm -rf conftest*
|
|
2011 ac_cv_header_alloca_h=yes
|
|
2012 else
|
|
2013 echo "configure: failed program was:" >&5
|
|
2014 cat conftest.$ac_ext >&5
|
|
2015 rm -rf conftest*
|
|
2016 ac_cv_header_alloca_h=no
|
|
2017 fi
|
|
2018 rm -f conftest*
|
|
2019 fi
|
|
2020
|
|
2021 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
|
|
2022 if test $ac_cv_header_alloca_h = yes; then
|
|
2023 cat >> confdefs.h <<\EOF
|
|
2024 #define HAVE_ALLOCA_H 1
|
|
2025 EOF
|
|
2026
|
|
2027 fi
|
|
2028
|
|
2029 echo $ac_n "checking for alloca""... $ac_c" 1>&6
|
|
2030 echo "configure:2031: checking for alloca" >&5
|
|
2031 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
|
|
2032 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2033 else
|
|
2034 cat > conftest.$ac_ext <<EOF
|
|
2035 #line 2036 "configure"
|
|
2036 #include "confdefs.h"
|
|
2037
|
|
2038 #ifdef __GNUC__
|
|
2039 # define alloca __builtin_alloca
|
|
2040 #else
|
|
2041 # ifdef _MSC_VER
|
|
2042 # include <malloc.h>
|
|
2043 # define alloca _alloca
|
|
2044 # else
|
|
2045 # if HAVE_ALLOCA_H
|
|
2046 # include <alloca.h>
|
|
2047 # else
|
|
2048 # ifdef _AIX
|
|
2049 #pragma alloca
|
|
2050 # else
|
|
2051 # ifndef alloca /* predefined by HP cc +Olibcalls */
|
|
2052 char *alloca ();
|
|
2053 # endif
|
|
2054 # endif
|
|
2055 # endif
|
|
2056 # endif
|
|
2057 #endif
|
|
2058
|
|
2059 int main() {
|
|
2060 char *p = (char *) alloca(1);
|
|
2061 ; return 0; }
|
|
2062 EOF
|
|
2063 if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
2064 rm -rf conftest*
|
|
2065 ac_cv_func_alloca_works=yes
|
|
2066 else
|
|
2067 echo "configure: failed program was:" >&5
|
|
2068 cat conftest.$ac_ext >&5
|
|
2069 rm -rf conftest*
|
|
2070 ac_cv_func_alloca_works=no
|
|
2071 fi
|
|
2072 rm -f conftest*
|
|
2073 fi
|
|
2074
|
|
2075 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
|
|
2076 if test $ac_cv_func_alloca_works = yes; then
|
|
2077 cat >> confdefs.h <<\EOF
|
|
2078 #define HAVE_ALLOCA 1
|
|
2079 EOF
|
|
2080
|
|
2081 fi
|
|
2082
|
|
2083 if test $ac_cv_func_alloca_works = no; then
|
|
2084 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
|
2085 # that cause trouble. Some versions do not even contain alloca or
|
|
2086 # contain a buggy version. If you still want to use their alloca,
|
|
2087 # use ar to extract alloca.o from them instead of compiling alloca.c.
|
|
2088 ALLOCA=alloca.${ac_objext}
|
|
2089 cat >> confdefs.h <<\EOF
|
|
2090 #define C_ALLOCA 1
|
|
2091 EOF
|
|
2092
|
|
2093
|
|
2094 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
|
|
2095 echo "configure:2096: checking whether alloca needs Cray hooks" >&5
|
|
2096 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
|
|
2097 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2098 else
|
|
2099 cat > conftest.$ac_ext <<EOF
|
|
2100 #line 2101 "configure"
|
|
2101 #include "confdefs.h"
|
|
2102 #if defined(CRAY) && ! defined(CRAY2)
|
|
2103 webecray
|
|
2104 #else
|
|
2105 wenotbecray
|
|
2106 #endif
|
|
2107
|
|
2108 EOF
|
|
2109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2110 egrep "webecray" >/dev/null 2>&1; then
|
|
2111 rm -rf conftest*
|
|
2112 ac_cv_os_cray=yes
|
|
2113 else
|
|
2114 rm -rf conftest*
|
|
2115 ac_cv_os_cray=no
|
|
2116 fi
|
|
2117 rm -f conftest*
|
|
2118
|
|
2119 fi
|
|
2120
|
|
2121 echo "$ac_t""$ac_cv_os_cray" 1>&6
|
|
2122 if test $ac_cv_os_cray = yes; then
|
|
2123 for ac_func in _getb67 GETB67 getb67; do
|
|
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
2125 echo "configure:2126: checking for $ac_func" >&5
|
|
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
2127 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2128 else
|
|
2129 cat > conftest.$ac_ext <<EOF
|
|
2130 #line 2131 "configure"
|
|
2131 #include "confdefs.h"
|
|
2132 /* System header to define __stub macros and hopefully few prototypes,
|
|
2133 which can conflict with char $ac_func(); below. */
|
|
2134 #include <assert.h>
|
|
2135 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2136 /* We use char because int might match the return type of a gcc2
|
|
2137 builtin and then its argument prototype would still apply. */
|
|
2138 char $ac_func();
|
|
2139
|
|
2140 int main() {
|
|
2141
|
|
2142 /* The GNU C library defines this for functions which it implements
|
|
2143 to always fail with ENOSYS. Some functions are actually named
|
|
2144 something starting with __ and the normal name is an alias. */
|
|
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
2146 choke me
|
|
2147 #else
|
|
2148 $ac_func();
|
|
2149 #endif
|
|
2150
|
|
2151 ; return 0; }
|
|
2152 EOF
|
|
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
2154 rm -rf conftest*
|
|
2155 eval "ac_cv_func_$ac_func=yes"
|
|
2156 else
|
|
2157 echo "configure: failed program was:" >&5
|
|
2158 cat conftest.$ac_ext >&5
|
|
2159 rm -rf conftest*
|
|
2160 eval "ac_cv_func_$ac_func=no"
|
|
2161 fi
|
|
2162 rm -f conftest*
|
|
2163 fi
|
|
2164
|
|
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
2166 echo "$ac_t""yes" 1>&6
|
|
2167 cat >> confdefs.h <<EOF
|
|
2168 #define CRAY_STACKSEG_END $ac_func
|
|
2169 EOF
|
|
2170
|
|
2171 break
|
|
2172 else
|
|
2173 echo "$ac_t""no" 1>&6
|
|
2174 fi
|
|
2175
|
|
2176 done
|
|
2177 fi
|
|
2178
|
|
2179 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
|
|
2180 echo "configure:2181: checking stack direction for C alloca" >&5
|
|
2181 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
|
|
2182 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2183 else
|
|
2184 if test "$cross_compiling" = yes; then
|
|
2185 ac_cv_c_stack_direction=0
|
|
2186 else
|
|
2187 cat > conftest.$ac_ext <<EOF
|
|
2188 #line 2189 "configure"
|
|
2189 #include "confdefs.h"
|
|
2190 find_stack_direction ()
|
|
2191 {
|
|
2192 static char *addr = 0;
|
|
2193 auto char dummy;
|
|
2194 if (addr == 0)
|
|
2195 {
|
|
2196 addr = &dummy;
|
|
2197 return find_stack_direction ();
|
|
2198 }
|
|
2199 else
|
|
2200 return (&dummy > addr) ? 1 : -1;
|
|
2201 }
|
|
2202 main ()
|
|
2203 {
|
|
2204 exit (find_stack_direction() < 0);
|
|
2205 }
|
|
2206 EOF
|
|
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
2208 then
|
|
2209 ac_cv_c_stack_direction=1
|
|
2210 else
|
|
2211 echo "configure: failed program was:" >&5
|
|
2212 cat conftest.$ac_ext >&5
|
|
2213 rm -fr conftest*
|
|
2214 ac_cv_c_stack_direction=-1
|
|
2215 fi
|
|
2216 rm -fr conftest*
|
|
2217 fi
|
|
2218
|
|
2219 fi
|
|
2220
|
|
2221 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
|
|
2222 cat >> confdefs.h <<EOF
|
|
2223 #define STACK_DIRECTION $ac_cv_c_stack_direction
|
|
2224 EOF
|
|
2225
|
|
2226 fi
|
|
2227
|
|
2228 if test $ac_cv_prog_gcc = yes; then
|
|
2229 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
|
|
2230 echo "configure:2231: checking whether ${CC-cc} needs -traditional" >&5
|
|
2231 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
|
|
2232 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2233 else
|
|
2234 ac_pattern="Autoconf.*'x'"
|
|
2235 cat > conftest.$ac_ext <<EOF
|
|
2236 #line 2237 "configure"
|
|
2237 #include "confdefs.h"
|
|
2238 #include <sgtty.h>
|
|
2239 Autoconf TIOCGETP
|
|
2240 EOF
|
|
2241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2242 egrep "$ac_pattern" >/dev/null 2>&1; then
|
|
2243 rm -rf conftest*
|
|
2244 ac_cv_prog_gcc_traditional=yes
|
|
2245 else
|
|
2246 rm -rf conftest*
|
|
2247 ac_cv_prog_gcc_traditional=no
|
|
2248 fi
|
|
2249 rm -f conftest*
|
|
2250
|
|
2251
|
|
2252 if test $ac_cv_prog_gcc_traditional = no; then
|
|
2253 cat > conftest.$ac_ext <<EOF
|
|
2254 #line 2255 "configure"
|
|
2255 #include "confdefs.h"
|
|
2256 #include <termio.h>
|
|
2257 Autoconf TCGETA
|
|
2258 EOF
|
|
2259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
2260 egrep "$ac_pattern" >/dev/null 2>&1; then
|
|
2261 rm -rf conftest*
|
|
2262 ac_cv_prog_gcc_traditional=yes
|
|
2263 fi
|
|
2264 rm -f conftest*
|
|
2265
|
|
2266 fi
|
|
2267 fi
|
|
2268
|
|
2269 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
|
|
2270 if test $ac_cv_prog_gcc_traditional = yes; then
|
|
2271 CC="$CC -traditional"
|
|
2272 fi
|
|
2273 fi
|
|
2274
|
|
2275 for ac_hdr in unistd.h
|
|
2276 do
|
|
2277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
2278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
2279 echo "configure:2280: checking for $ac_hdr" >&5
|
|
2280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
2281 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2282 else
|
|
2283 cat > conftest.$ac_ext <<EOF
|
|
2284 #line 2285 "configure"
|
|
2285 #include "confdefs.h"
|
|
2286 #include <$ac_hdr>
|
|
2287 EOF
|
|
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
2291 if test -z "$ac_err"; then
|
|
2292 rm -rf conftest*
|
|
2293 eval "ac_cv_header_$ac_safe=yes"
|
|
2294 else
|
|
2295 echo "$ac_err" >&5
|
|
2296 echo "configure: failed program was:" >&5
|
|
2297 cat conftest.$ac_ext >&5
|
|
2298 rm -rf conftest*
|
|
2299 eval "ac_cv_header_$ac_safe=no"
|
|
2300 fi
|
|
2301 rm -f conftest*
|
|
2302 fi
|
|
2303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
2304 echo "$ac_t""yes" 1>&6
|
|
2305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
2306 cat >> confdefs.h <<EOF
|
|
2307 #define $ac_tr_hdr 1
|
|
2308 EOF
|
|
2309
|
|
2310 else
|
|
2311 echo "$ac_t""no" 1>&6
|
|
2312 fi
|
|
2313 done
|
|
2314
|
|
2315 for ac_func in getpagesize
|
|
2316 do
|
|
2317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
2318 echo "configure:2319: checking for $ac_func" >&5
|
|
2319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
2320 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2321 else
|
|
2322 cat > conftest.$ac_ext <<EOF
|
|
2323 #line 2324 "configure"
|
|
2324 #include "confdefs.h"
|
|
2325 /* System header to define __stub macros and hopefully few prototypes,
|
|
2326 which can conflict with char $ac_func(); below. */
|
|
2327 #include <assert.h>
|
|
2328 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2329 /* We use char because int might match the return type of a gcc2
|
|
2330 builtin and then its argument prototype would still apply. */
|
|
2331 char $ac_func();
|
|
2332
|
|
2333 int main() {
|
|
2334
|
|
2335 /* The GNU C library defines this for functions which it implements
|
|
2336 to always fail with ENOSYS. Some functions are actually named
|
|
2337 something starting with __ and the normal name is an alias. */
|
|
2338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
2339 choke me
|
|
2340 #else
|
|
2341 $ac_func();
|
|
2342 #endif
|
|
2343
|
|
2344 ; return 0; }
|
|
2345 EOF
|
|
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
2347 rm -rf conftest*
|
|
2348 eval "ac_cv_func_$ac_func=yes"
|
|
2349 else
|
|
2350 echo "configure: failed program was:" >&5
|
|
2351 cat conftest.$ac_ext >&5
|
|
2352 rm -rf conftest*
|
|
2353 eval "ac_cv_func_$ac_func=no"
|
|
2354 fi
|
|
2355 rm -f conftest*
|
|
2356 fi
|
|
2357
|
|
2358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
2359 echo "$ac_t""yes" 1>&6
|
|
2360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
2361 cat >> confdefs.h <<EOF
|
|
2362 #define $ac_tr_func 1
|
|
2363 EOF
|
|
2364
|
|
2365 else
|
|
2366 echo "$ac_t""no" 1>&6
|
|
2367 fi
|
|
2368 done
|
|
2369
|
|
2370 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
|
|
2371 echo "configure:2372: checking for working mmap" >&5
|
|
2372 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
|
|
2373 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2374 else
|
|
2375 if test "$cross_compiling" = yes; then
|
|
2376 ac_cv_func_mmap_fixed_mapped=no
|
|
2377 else
|
|
2378 cat > conftest.$ac_ext <<EOF
|
|
2379 #line 2380 "configure"
|
|
2380 #include "confdefs.h"
|
|
2381
|
|
2382 /* Thanks to Mike Haertel and Jim Avera for this test.
|
|
2383 Here is a matrix of mmap possibilities:
|
|
2384 mmap private not fixed
|
|
2385 mmap private fixed at somewhere currently unmapped
|
|
2386 mmap private fixed at somewhere already mapped
|
|
2387 mmap shared not fixed
|
|
2388 mmap shared fixed at somewhere currently unmapped
|
|
2389 mmap shared fixed at somewhere already mapped
|
|
2390 For private mappings, we should verify that changes cannot be read()
|
|
2391 back from the file, nor mmap's back from the file at a different
|
|
2392 address. (There have been systems where private was not correctly
|
|
2393 implemented like the infamous i386 svr4.0, and systems where the
|
|
2394 VM page cache was not coherent with the filesystem buffer cache
|
|
2395 like early versions of FreeBSD and possibly contemporary NetBSD.)
|
|
2396 For shared mappings, we should conversely verify that changes get
|
|
2397 propogated back to all the places they're supposed to be.
|
|
2398
|
|
2399 Grep wants private fixed already mapped.
|
|
2400 The main things grep needs to know about mmap are:
|
|
2401 * does it exist and is it safe to write into the mmap'd area
|
|
2402 * how to use it (BSD variants) */
|
|
2403 #include <sys/types.h>
|
|
2404 #include <fcntl.h>
|
|
2405 #include <sys/mman.h>
|
|
2406
|
|
2407 /* This mess was copied from the GNU getpagesize.h. */
|
|
2408 #ifndef HAVE_GETPAGESIZE
|
|
2409 # ifdef HAVE_UNISTD_H
|
|
2410 # include <unistd.h>
|
|
2411 # endif
|
|
2412
|
|
2413 /* Assume that all systems that can run configure have sys/param.h. */
|
|
2414 # ifndef HAVE_SYS_PARAM_H
|
|
2415 # define HAVE_SYS_PARAM_H 1
|
|
2416 # endif
|
|
2417
|
|
2418 # ifdef _SC_PAGESIZE
|
|
2419 # define getpagesize() sysconf(_SC_PAGESIZE)
|
|
2420 # else /* no _SC_PAGESIZE */
|
|
2421 # ifdef HAVE_SYS_PARAM_H
|
|
2422 # include <sys/param.h>
|
|
2423 # ifdef EXEC_PAGESIZE
|
|
2424 # define getpagesize() EXEC_PAGESIZE
|
|
2425 # else /* no EXEC_PAGESIZE */
|
|
2426 # ifdef NBPG
|
|
2427 # define getpagesize() NBPG * CLSIZE
|
|
2428 # ifndef CLSIZE
|
|
2429 # define CLSIZE 1
|
|
2430 # endif /* no CLSIZE */
|
|
2431 # else /* no NBPG */
|
|
2432 # ifdef NBPC
|
|
2433 # define getpagesize() NBPC
|
|
2434 # else /* no NBPC */
|
|
2435 # ifdef PAGESIZE
|
|
2436 # define getpagesize() PAGESIZE
|
|
2437 # endif /* PAGESIZE */
|
|
2438 # endif /* no NBPC */
|
|
2439 # endif /* no NBPG */
|
|
2440 # endif /* no EXEC_PAGESIZE */
|
|
2441 # else /* no HAVE_SYS_PARAM_H */
|
|
2442 # define getpagesize() 8192 /* punt totally */
|
|
2443 # endif /* no HAVE_SYS_PARAM_H */
|
|
2444 # endif /* no _SC_PAGESIZE */
|
|
2445
|
|
2446 #endif /* no HAVE_GETPAGESIZE */
|
|
2447
|
|
2448 #ifdef __cplusplus
|
|
2449 extern "C" { void *malloc(unsigned); }
|
|
2450 #else
|
|
2451 char *malloc();
|
|
2452 #endif
|
|
2453
|
|
2454 int
|
|
2455 main()
|
|
2456 {
|
|
2457 char *data, *data2, *data3;
|
|
2458 int i, pagesize;
|
|
2459 int fd;
|
|
2460
|
|
2461 pagesize = getpagesize();
|
|
2462
|
|
2463 /*
|
|
2464 * First, make a file with some known garbage in it.
|
|
2465 */
|
|
2466 data = malloc(pagesize);
|
|
2467 if (!data)
|
|
2468 exit(1);
|
|
2469 for (i = 0; i < pagesize; ++i)
|
|
2470 *(data + i) = rand();
|
|
2471 umask(0);
|
|
2472 fd = creat("conftestmmap", 0600);
|
|
2473 if (fd < 0)
|
|
2474 exit(1);
|
|
2475 if (write(fd, data, pagesize) != pagesize)
|
|
2476 exit(1);
|
|
2477 close(fd);
|
|
2478
|
|
2479 /*
|
|
2480 * Next, try to mmap the file at a fixed address which
|
|
2481 * already has something else allocated at it. If we can,
|
|
2482 * also make sure that we see the same garbage.
|
|
2483 */
|
|
2484 fd = open("conftestmmap", O_RDWR);
|
|
2485 if (fd < 0)
|
|
2486 exit(1);
|
|
2487 data2 = malloc(2 * pagesize);
|
|
2488 if (!data2)
|
|
2489 exit(1);
|
|
2490 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
|
|
2491 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
|
|
2492 MAP_PRIVATE | MAP_FIXED, fd, 0L))
|
|
2493 exit(1);
|
|
2494 for (i = 0; i < pagesize; ++i)
|
|
2495 if (*(data + i) != *(data2 + i))
|
|
2496 exit(1);
|
|
2497
|
|
2498 /*
|
|
2499 * Finally, make sure that changes to the mapped area
|
|
2500 * do not percolate back to the file as seen by read().
|
|
2501 * (This is a bug on some variants of i386 svr4.0.)
|
|
2502 */
|
|
2503 for (i = 0; i < pagesize; ++i)
|
|
2504 *(data2 + i) = *(data2 + i) + 1;
|
|
2505 data3 = malloc(pagesize);
|
|
2506 if (!data3)
|
|
2507 exit(1);
|
|
2508 if (read(fd, data3, pagesize) != pagesize)
|
|
2509 exit(1);
|
|
2510 for (i = 0; i < pagesize; ++i)
|
|
2511 if (*(data + i) != *(data3 + i))
|
|
2512 exit(1);
|
|
2513 close(fd);
|
|
2514 unlink("conftestmmap");
|
|
2515 exit(0);
|
|
2516 }
|
|
2517
|
|
2518 EOF
|
|
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
2520 then
|
|
2521 ac_cv_func_mmap_fixed_mapped=yes
|
|
2522 else
|
|
2523 echo "configure: failed program was:" >&5
|
|
2524 cat conftest.$ac_ext >&5
|
|
2525 rm -fr conftest*
|
|
2526 ac_cv_func_mmap_fixed_mapped=no
|
|
2527 fi
|
|
2528 rm -fr conftest*
|
|
2529 fi
|
|
2530
|
|
2531 fi
|
|
2532
|
|
2533 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
|
|
2534 if test $ac_cv_func_mmap_fixed_mapped = yes; then
|
|
2535 cat >> confdefs.h <<\EOF
|
|
2536 #define HAVE_MMAP 1
|
|
2537 EOF
|
|
2538
|
|
2539 fi
|
|
2540
|
|
2541 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
|
|
2542 echo "configure:2543: checking return type of signal handlers" >&5
|
|
2543 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
|
|
2544 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2545 else
|
|
2546 cat > conftest.$ac_ext <<EOF
|
|
2547 #line 2548 "configure"
|
|
2548 #include "confdefs.h"
|
|
2549 #include <sys/types.h>
|
|
2550 #include <signal.h>
|
|
2551 #ifdef signal
|
|
2552 #undef signal
|
|
2553 #endif
|
|
2554 #ifdef __cplusplus
|
|
2555 extern "C" void (*signal (int, void (*)(int)))(int);
|
|
2556 #else
|
|
2557 void (*signal ()) ();
|
|
2558 #endif
|
|
2559
|
|
2560 int main() {
|
|
2561 int i;
|
|
2562 ; return 0; }
|
|
2563 EOF
|
|
2564 if { (eval echo configure:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
2565 rm -rf conftest*
|
|
2566 ac_cv_type_signal=void
|
|
2567 else
|
|
2568 echo "configure: failed program was:" >&5
|
|
2569 cat conftest.$ac_ext >&5
|
|
2570 rm -rf conftest*
|
|
2571 ac_cv_type_signal=int
|
|
2572 fi
|
|
2573 rm -f conftest*
|
|
2574 fi
|
|
2575
|
|
2576 echo "$ac_t""$ac_cv_type_signal" 1>&6
|
|
2577 cat >> confdefs.h <<EOF
|
|
2578 #define RETSIGTYPE $ac_cv_type_signal
|
|
2579 EOF
|
|
2580
|
|
2581
|
|
2582 echo $ac_n "checking for strftime""... $ac_c" 1>&6
|
|
2583 echo "configure:2584: checking for strftime" >&5
|
|
2584 if eval "test \"`echo '$''{'ac_cv_func_strftime'+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 strftime(); 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 strftime();
|
|
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_strftime) || defined (__stub___strftime)
|
|
2604 choke me
|
|
2605 #else
|
|
2606 strftime();
|
|
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_strftime=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_strftime=no"
|
|
2619 fi
|
|
2620 rm -f conftest*
|
|
2621 fi
|
|
2622
|
|
2623 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
|
|
2624 echo "$ac_t""yes" 1>&6
|
|
2625 cat >> confdefs.h <<\EOF
|
|
2626 #define HAVE_STRFTIME 1
|
|
2627 EOF
|
|
2628
|
|
2629 else
|
|
2630 echo "$ac_t""no" 1>&6
|
|
2631 # strftime is in -lintl on SCO UNIX.
|
|
2632 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
|
|
2633 echo "configure:2634: checking for strftime in -lintl" >&5
|
|
2634 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
|
|
2635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
2636 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2637 else
|
|
2638 ac_save_LIBS="$LIBS"
|
|
2639 LIBS="-lintl $LIBS"
|
|
2640 cat > conftest.$ac_ext <<EOF
|
|
2641 #line 2642 "configure"
|
|
2642 #include "confdefs.h"
|
|
2643 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2644 /* We use char because int might match the return type of a gcc2
|
|
2645 builtin and then its argument prototype would still apply. */
|
|
2646 char strftime();
|
|
2647
|
|
2648 int main() {
|
|
2649 strftime()
|
|
2650 ; return 0; }
|
|
2651 EOF
|
|
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
2653 rm -rf conftest*
|
|
2654 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
2655 else
|
|
2656 echo "configure: failed program was:" >&5
|
|
2657 cat conftest.$ac_ext >&5
|
|
2658 rm -rf conftest*
|
|
2659 eval "ac_cv_lib_$ac_lib_var=no"
|
|
2660 fi
|
|
2661 rm -f conftest*
|
|
2662 LIBS="$ac_save_LIBS"
|
|
2663
|
|
2664 fi
|
|
2665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
2666 echo "$ac_t""yes" 1>&6
|
|
2667 cat >> confdefs.h <<\EOF
|
|
2668 #define HAVE_STRFTIME 1
|
|
2669 EOF
|
|
2670
|
|
2671 LIBS="-lintl $LIBS"
|
|
2672 else
|
|
2673 echo "$ac_t""no" 1>&6
|
|
2674 fi
|
|
2675
|
|
2676 fi
|
|
2677
|
|
2678 echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
|
|
2679 echo "configure:2680: checking whether utime accepts a null argument" >&5
|
|
2680 if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
|
|
2681 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2682 else
|
|
2683 rm -f conftestdata; > conftestdata
|
|
2684 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
|
|
2685 if test "$cross_compiling" = yes; then
|
|
2686 ac_cv_func_utime_null=no
|
|
2687 else
|
|
2688 cat > conftest.$ac_ext <<EOF
|
|
2689 #line 2690 "configure"
|
|
2690 #include "confdefs.h"
|
|
2691 #include <sys/types.h>
|
|
2692 #include <sys/stat.h>
|
|
2693 main() {
|
|
2694 struct stat s, t;
|
|
2695 exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
|
|
2696 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
|
|
2697 && t.st_mtime - s.st_mtime < 120));
|
|
2698 }
|
|
2699 EOF
|
|
2700 if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
2701 then
|
|
2702 ac_cv_func_utime_null=yes
|
|
2703 else
|
|
2704 echo "configure: failed program was:" >&5
|
|
2705 cat conftest.$ac_ext >&5
|
|
2706 rm -fr conftest*
|
|
2707 ac_cv_func_utime_null=no
|
|
2708 fi
|
|
2709 rm -fr conftest*
|
|
2710 fi
|
|
2711
|
|
2712 rm -f core core.* *.core
|
|
2713 fi
|
|
2714
|
|
2715 echo "$ac_t""$ac_cv_func_utime_null" 1>&6
|
|
2716 if test $ac_cv_func_utime_null = yes; then
|
|
2717 cat >> confdefs.h <<\EOF
|
|
2718 #define HAVE_UTIME_NULL 1
|
|
2719 EOF
|
|
2720
|
|
2721 fi
|
|
2722
|
|
2723 for ac_func in gai_strerror getaddrinfo getcwd gettimeofday getwd mkdir mktime putenv rmdir select socket strdup strstr strtod strtol uname
|
|
2724 do
|
|
2725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
2726 echo "configure:2727: checking for $ac_func" >&5
|
|
2727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
2728 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2729 else
|
|
2730 cat > conftest.$ac_ext <<EOF
|
|
2731 #line 2732 "configure"
|
|
2732 #include "confdefs.h"
|
|
2733 /* System header to define __stub macros and hopefully few prototypes,
|
|
2734 which can conflict with char $ac_func(); below. */
|
|
2735 #include <assert.h>
|
|
2736 /* Override any gcc2 internal prototype to avoid an error. */
|
|
2737 /* We use char because int might match the return type of a gcc2
|
|
2738 builtin and then its argument prototype would still apply. */
|
|
2739 char $ac_func();
|
|
2740
|
|
2741 int main() {
|
|
2742
|
|
2743 /* The GNU C library defines this for functions which it implements
|
|
2744 to always fail with ENOSYS. Some functions are actually named
|
|
2745 something starting with __ and the normal name is an alias. */
|
|
2746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
2747 choke me
|
|
2748 #else
|
|
2749 $ac_func();
|
|
2750 #endif
|
|
2751
|
|
2752 ; return 0; }
|
|
2753 EOF
|
|
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
2755 rm -rf conftest*
|
|
2756 eval "ac_cv_func_$ac_func=yes"
|
|
2757 else
|
|
2758 echo "configure: failed program was:" >&5
|
|
2759 cat conftest.$ac_ext >&5
|
|
2760 rm -rf conftest*
|
|
2761 eval "ac_cv_func_$ac_func=no"
|
|
2762 fi
|
|
2763 rm -f conftest*
|
|
2764 fi
|
|
2765
|
|
2766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
2767 echo "$ac_t""yes" 1>&6
|
|
2768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
2769 cat >> confdefs.h <<EOF
|
|
2770 #define $ac_tr_func 1
|
|
2771 EOF
|
|
2772
|
|
2773 else
|
|
2774 echo "$ac_t""no" 1>&6
|
|
2775 fi
|
|
2776 done
|
|
2777
|
|
2778
|
|
2779 if test "x$enable_gtk20" = "x1" ; then
|
|
2780
|
|
2781 succeeded=no
|
|
2782
|
|
2783 if test -z "$PKG_CONFIG"; then
|
|
2784 # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
2785 set dummy pkg-config; ac_word=$2
|
|
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
2787 echo "configure:2788: checking for $ac_word" >&5
|
|
2788 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
|
|
2789 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2790 else
|
|
2791 case "$PKG_CONFIG" in
|
|
2792 /*)
|
|
2793 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
2794 ;;
|
|
2795 ?:/*)
|
|
2796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
|
|
2797 ;;
|
|
2798 *)
|
|
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2800 ac_dummy="$PATH"
|
|
2801 for ac_dir in $ac_dummy; do
|
|
2802 test -z "$ac_dir" && ac_dir=.
|
|
2803 if test -f $ac_dir/$ac_word; then
|
|
2804 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
|
|
2805 break
|
|
2806 fi
|
|
2807 done
|
|
2808 IFS="$ac_save_ifs"
|
|
2809 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
|
2810 ;;
|
|
2811 esac
|
|
2812 fi
|
|
2813 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
|
2814 if test -n "$PKG_CONFIG"; then
|
|
2815 echo "$ac_t""$PKG_CONFIG" 1>&6
|
|
2816 else
|
|
2817 echo "$ac_t""no" 1>&6
|
|
2818 fi
|
|
2819
|
|
2820 fi
|
|
2821
|
|
2822 if test "$PKG_CONFIG" = "no" ; then
|
|
2823 echo "*** The pkg-config script could not be found. Make sure it is"
|
|
2824 echo "*** in your path, or set the PKG_CONFIG environment variable"
|
|
2825 echo "*** to the full path to pkg-config."
|
|
2826 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
|
2827 else
|
|
2828 PKG_CONFIG_MIN_VERSION=0.9.0
|
|
2829 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
|
2830 echo $ac_n "checking for glib-2.0 >= 1.3.8""... $ac_c" 1>&6
|
|
2831 echo "configure:2832: checking for glib-2.0 >= 1.3.8" >&5
|
|
2832
|
|
2833 if $PKG_CONFIG --exists "glib-2.0 >= 1.3.8" ; then
|
|
2834 echo "$ac_t""yes" 1>&6
|
|
2835 succeeded=yes
|
|
2836
|
|
2837 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
|
|
2838 echo "configure:2839: checking GLIB_CFLAGS" >&5
|
|
2839 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.8"`
|
|
2840 echo "$ac_t""$GLIB_CFLAGS" 1>&6
|
|
2841
|
|
2842 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
|
|
2843 echo "configure:2844: checking GLIB_LIBS" >&5
|
|
2844 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.8"`
|
|
2845 echo "$ac_t""$GLIB_LIBS" 1>&6
|
|
2846 else
|
|
2847 GLIB_CFLAGS=""
|
|
2848 GLIB_LIBS=""
|
|
2849 ## If we have a custom action on failure, don't print errors, but
|
|
2850 ## do set a variable so people can do so.
|
|
2851 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.8"`
|
|
2852 echo $GLIB_PKG_ERRORS
|
|
2853 fi
|
|
2854
|
|
2855
|
|
2856
|
|
2857 else
|
|
2858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
|
2859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
|
2860 fi
|
|
2861 fi
|
|
2862
|
|
2863 if test $succeeded = yes; then
|
|
2864 :
|
|
2865 else
|
|
2866 { echo "configure: error: Library requirements (glib-2.0 >= 1.3.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
|
|
2867 fi
|
|
2868
|
|
2869 fi
|
|
2870
|
|
2871 if test "x$GFTP_TEXT" = "x" ; then
|
|
2872 # Check whether --with-glib-prefix or --without-glib-prefix was given.
|
|
2873 if test "${with_glib_prefix+set}" = set; then
|
|
2874 withval="$with_glib_prefix"
|
|
2875 glib_config_prefix="$withval"
|
|
2876 else
|
|
2877 glib_config_prefix=""
|
|
2878 fi
|
|
2879
|
|
2880 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
|
|
2881 if test "${with_glib_exec_prefix+set}" = set; then
|
|
2882 withval="$with_glib_exec_prefix"
|
|
2883 glib_config_exec_prefix="$withval"
|
|
2884 else
|
|
2885 glib_config_exec_prefix=""
|
|
2886 fi
|
|
2887
|
|
2888 # Check whether --enable-glibtest or --disable-glibtest was given.
|
|
2889 if test "${enable_glibtest+set}" = set; then
|
|
2890 enableval="$enable_glibtest"
|
|
2891 :
|
|
2892 else
|
|
2893 enable_glibtest=yes
|
|
2894 fi
|
|
2895
|
|
2896
|
|
2897 if test x$glib_config_exec_prefix != x ; then
|
|
2898 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
|
|
2899 if test x${GLIB_CONFIG+set} != xset ; then
|
|
2900 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
|
|
2901 fi
|
|
2902 fi
|
|
2903 if test x$glib_config_prefix != x ; then
|
|
2904 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
|
|
2905 if test x${GLIB_CONFIG+set} != xset ; then
|
|
2906 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
|
|
2907 fi
|
|
2908 fi
|
|
2909
|
|
2910 for module in .
|
|
2911 do
|
|
2912 case "$module" in
|
|
2913 gmodule)
|
|
2914 glib_config_args="$glib_config_args gmodule"
|
|
2915 ;;
|
|
2916 gthread)
|
|
2917 glib_config_args="$glib_config_args gthread"
|
|
2918 ;;
|
|
2919 esac
|
|
2920 done
|
|
2921
|
|
2922 # Extract the first word of "glib-config", so it can be a program name with args.
|
|
2923 set dummy glib-config; ac_word=$2
|
|
2924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
2925 echo "configure:2926: checking for $ac_word" >&5
|
|
2926 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
|
|
2927 echo $ac_n "(cached) $ac_c" 1>&6
|
|
2928 else
|
|
2929 case "$GLIB_CONFIG" in
|
|
2930 /*)
|
|
2931 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
|
|
2932 ;;
|
|
2933 ?:/*)
|
|
2934 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
|
|
2935 ;;
|
|
2936 *)
|
|
2937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
2938 ac_dummy="$PATH"
|
|
2939 for ac_dir in $ac_dummy; do
|
|
2940 test -z "$ac_dir" && ac_dir=.
|
|
2941 if test -f $ac_dir/$ac_word; then
|
|
2942 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
|
|
2943 break
|
|
2944 fi
|
|
2945 done
|
|
2946 IFS="$ac_save_ifs"
|
|
2947 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
|
|
2948 ;;
|
|
2949 esac
|
|
2950 fi
|
|
2951 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
|
|
2952 if test -n "$GLIB_CONFIG"; then
|
|
2953 echo "$ac_t""$GLIB_CONFIG" 1>&6
|
|
2954 else
|
|
2955 echo "$ac_t""no" 1>&6
|
|
2956 fi
|
|
2957
|
|
2958 min_glib_version=1.2.3
|
|
2959 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
|
|
2960 echo "configure:2961: checking for GLIB - version >= $min_glib_version" >&5
|
|
2961 no_glib=""
|
|
2962 if test "$GLIB_CONFIG" = "no" ; then
|
|
2963 no_glib=yes
|
|
2964 else
|
|
2965 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
|
|
2966 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
|
|
2967 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
|
|
2968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
2969 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
|
|
2970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
2971 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
|
|
2972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
2973 if test "x$enable_glibtest" = "xyes" ; then
|
|
2974 ac_save_CFLAGS="$CFLAGS"
|
|
2975 ac_save_LIBS="$LIBS"
|
|
2976 CFLAGS="$CFLAGS $GLIB_CFLAGS"
|
|
2977 LIBS="$GLIB_LIBS $LIBS"
|
|
2978 rm -f conf.glibtest
|
|
2979 if test "$cross_compiling" = yes; then
|
|
2980 echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
2981 else
|
|
2982 cat > conftest.$ac_ext <<EOF
|
|
2983 #line 2984 "configure"
|
|
2984 #include "confdefs.h"
|
|
2985
|
|
2986 #include <glib.h>
|
|
2987 #include <stdio.h>
|
|
2988 #include <stdlib.h>
|
|
2989
|
|
2990 int
|
|
2991 main ()
|
|
2992 {
|
|
2993 int major, minor, micro;
|
|
2994 char *tmp_version;
|
|
2995
|
|
2996 system ("touch conf.glibtest");
|
|
2997
|
|
2998 /* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
2999 tmp_version = g_strdup("$min_glib_version");
|
|
3000 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
3001 printf("%s, bad version string\n", "$min_glib_version");
|
|
3002 exit(1);
|
|
3003 }
|
|
3004
|
|
3005 if ((glib_major_version != $glib_config_major_version) ||
|
|
3006 (glib_minor_version != $glib_config_minor_version) ||
|
|
3007 (glib_micro_version != $glib_config_micro_version))
|
|
3008 {
|
|
3009 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
|
|
3010 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
|
|
3011 glib_major_version, glib_minor_version, glib_micro_version);
|
|
3012 printf ("*** was found! If glib-config was correct, then it is best\n");
|
|
3013 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
|
|
3014 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
|
3015 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
|
3016 printf("*** required on your system.\n");
|
|
3017 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
|
|
3018 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
|
|
3019 printf("*** before re-running configure\n");
|
|
3020 }
|
|
3021 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
|
|
3022 (glib_minor_version != GLIB_MINOR_VERSION) ||
|
|
3023 (glib_micro_version != GLIB_MICRO_VERSION))
|
|
3024 {
|
|
3025 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
|
|
3026 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
|
|
3027 printf("*** library (version %d.%d.%d)\n",
|
|
3028 glib_major_version, glib_minor_version, glib_micro_version);
|
|
3029 }
|
|
3030 else
|
|
3031 {
|
|
3032 if ((glib_major_version > major) ||
|
|
3033 ((glib_major_version == major) && (glib_minor_version > minor)) ||
|
|
3034 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
|
|
3035 {
|
|
3036 return 0;
|
|
3037 }
|
|
3038 else
|
|
3039 {
|
|
3040 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
|
|
3041 glib_major_version, glib_minor_version, glib_micro_version);
|
|
3042 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
|
|
3043 major, minor, micro);
|
|
3044 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
|
|
3045 printf("***\n");
|
|
3046 printf("*** If you have already installed a sufficiently new version, this error\n");
|
|
3047 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
|
|
3048 printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
|
3049 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
|
|
3050 printf("*** correct copy of glib-config. (In this case, you will have to\n");
|
|
3051 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
|
3052 printf("*** so that the correct libraries are found at run-time))\n");
|
|
3053 }
|
|
3054 }
|
|
3055 return 1;
|
|
3056 }
|
|
3057
|
|
3058 EOF
|
|
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
3060 then
|
|
3061 :
|
|
3062 else
|
|
3063 echo "configure: failed program was:" >&5
|
|
3064 cat conftest.$ac_ext >&5
|
|
3065 rm -fr conftest*
|
|
3066 no_glib=yes
|
|
3067 fi
|
|
3068 rm -fr conftest*
|
|
3069 fi
|
|
3070
|
|
3071 CFLAGS="$ac_save_CFLAGS"
|
|
3072 LIBS="$ac_save_LIBS"
|
|
3073 fi
|
|
3074 fi
|
|
3075 if test "x$no_glib" = x ; then
|
|
3076 echo "$ac_t""yes" 1>&6
|
|
3077 :
|
|
3078 else
|
|
3079 echo "$ac_t""no" 1>&6
|
|
3080 if test "$GLIB_CONFIG" = "no" ; then
|
|
3081 echo "*** The glib-config script installed by GLIB could not be found"
|
|
3082 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
|
|
3083 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
|
|
3084 echo "*** full path to glib-config."
|
|
3085 else
|
|
3086 if test -f conf.glibtest ; then
|
|
3087 :
|
|
3088 else
|
|
3089 echo "*** Could not run GLIB test program, checking why..."
|
|
3090 CFLAGS="$CFLAGS $GLIB_CFLAGS"
|
|
3091 LIBS="$LIBS $GLIB_LIBS"
|
|
3092 cat > conftest.$ac_ext <<EOF
|
|
3093 #line 3094 "configure"
|
|
3094 #include "confdefs.h"
|
|
3095
|
|
3096 #include <glib.h>
|
|
3097 #include <stdio.h>
|
|
3098
|
|
3099 int main() {
|
|
3100 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
|
|
3101 ; return 0; }
|
|
3102 EOF
|
|
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3104 rm -rf conftest*
|
|
3105 echo "*** The test program compiled, but did not run. This usually means"
|
|
3106 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
|
|
3107 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
|
|
3108 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
3109 echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
3110 echo "*** is required on your system"
|
|
3111 echo "***"
|
|
3112 echo "*** If you have an old version installed, it is best to remove it, although"
|
|
3113 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
|
3114 echo "***"
|
|
3115 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
|
|
3116 echo "*** came with the system with the command"
|
|
3117 echo "***"
|
|
3118 echo "*** rpm --erase --nodeps gtk gtk-devel"
|
|
3119 else
|
|
3120 echo "configure: failed program was:" >&5
|
|
3121 cat conftest.$ac_ext >&5
|
|
3122 rm -rf conftest*
|
|
3123 echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
3124 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
|
|
3125 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
|
|
3126 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
|
|
3127 fi
|
|
3128 rm -f conftest*
|
|
3129 CFLAGS="$ac_save_CFLAGS"
|
|
3130 LIBS="$ac_save_LIBS"
|
|
3131 fi
|
|
3132 fi
|
|
3133 GLIB_CFLAGS=""
|
|
3134 GLIB_LIBS=""
|
|
3135 { echo "configure: error: gFTP needs GLIB 1.2.3 or higher" 1>&2; exit 1; }
|
|
3136 fi
|
|
3137
|
|
3138
|
|
3139 rm -f conf.glibtest
|
|
3140
|
|
3141 fi
|
|
3142
|
|
3143 GFTP_TEXT=""
|
|
3144 EXTRA_LIBS=""
|
|
3145 USE_READLINE="yes"
|
|
3146 READLINE_LIBS=""
|
|
3147 if test "x$enable_textport" = "x1" ; then
|
|
3148 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
|
|
3149 echo "configure:3150: checking for socket in -lsocket" >&5
|
|
3150 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
|
|
3151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3152 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3153 else
|
|
3154 ac_save_LIBS="$LIBS"
|
|
3155 LIBS="-lsocket $LIBS"
|
|
3156 cat > conftest.$ac_ext <<EOF
|
|
3157 #line 3158 "configure"
|
|
3158 #include "confdefs.h"
|
|
3159 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3160 /* We use char because int might match the return type of a gcc2
|
|
3161 builtin and then its argument prototype would still apply. */
|
|
3162 char socket();
|
|
3163
|
|
3164 int main() {
|
|
3165 socket()
|
|
3166 ; return 0; }
|
|
3167 EOF
|
|
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3169 rm -rf conftest*
|
|
3170 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3171 else
|
|
3172 echo "configure: failed program was:" >&5
|
|
3173 cat conftest.$ac_ext >&5
|
|
3174 rm -rf conftest*
|
|
3175 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3176 fi
|
|
3177 rm -f conftest*
|
|
3178 LIBS="$ac_save_LIBS"
|
|
3179
|
|
3180 fi
|
|
3181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3182 echo "$ac_t""yes" 1>&6
|
|
3183 EXTRA_LIBS="-lsocket"
|
|
3184 else
|
|
3185 echo "$ac_t""no" 1>&6
|
|
3186 fi
|
|
3187
|
|
3188
|
|
3189 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
|
|
3190 echo "configure:3191: checking for gethostbyname in -lnsl" >&5
|
|
3191 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
|
|
3192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3193 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3194 else
|
|
3195 ac_save_LIBS="$LIBS"
|
|
3196 LIBS="-lnsl $LIBS"
|
|
3197 cat > conftest.$ac_ext <<EOF
|
|
3198 #line 3199 "configure"
|
|
3199 #include "confdefs.h"
|
|
3200 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3201 /* We use char because int might match the return type of a gcc2
|
|
3202 builtin and then its argument prototype would still apply. */
|
|
3203 char gethostbyname();
|
|
3204
|
|
3205 int main() {
|
|
3206 gethostbyname()
|
|
3207 ; return 0; }
|
|
3208 EOF
|
|
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3210 rm -rf conftest*
|
|
3211 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3212 else
|
|
3213 echo "configure: failed program was:" >&5
|
|
3214 cat conftest.$ac_ext >&5
|
|
3215 rm -rf conftest*
|
|
3216 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3217 fi
|
|
3218 rm -f conftest*
|
|
3219 LIBS="$ac_save_LIBS"
|
|
3220
|
|
3221 fi
|
|
3222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3223 echo "$ac_t""yes" 1>&6
|
|
3224 EXTRA_LIBS="$EXTRA_LIBS -lnsl"
|
|
3225 else
|
|
3226 echo "$ac_t""no" 1>&6
|
|
3227 fi
|
|
3228
|
|
3229
|
|
3230 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
|
|
3231 echo "configure:3232: checking whether to use readline" >&5
|
|
3232 # Check whether --with-readline or --without-readline was given.
|
|
3233 if test "${with_readline+set}" = set; then
|
|
3234 withval="$with_readline"
|
|
3235 case "${withval}" in
|
|
3236 yes) USE_READLINE="yes" ; echo "$ac_t""yes" 1>&6 ;;
|
|
3237 no) USE_READLINE="no" ; echo "$ac_t""no" 1>&6 ;;
|
|
3238 only) USE_READLINE="yes"
|
|
3239 EXTRA_LIBREADLINE_DEPS=" "
|
|
3240 echo "$ac_t""yes (using only readline)" 1>&6 ;;
|
|
3241 *) USE_READLINE="yes"
|
|
3242 EXTRA_LIBREADLINE_DEPS="${withval}"
|
|
3243 echo "$ac_t""yes (using extra libraries ${withval})" 1>&6 ;;
|
|
3244 esac
|
|
3245 else
|
|
3246 echo "$ac_t""${USE_READLINE}" 1>&6
|
|
3247 fi
|
|
3248
|
|
3249
|
|
3250 if test "$USE_READLINE" = yes ; then
|
|
3251 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
|
|
3252 unset ac_cv_lib_readline_readline
|
|
3253 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
3254 echo "configure:3255: checking for readline in -lreadline" >&5
|
|
3255 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
3256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3257 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3258 else
|
|
3259 ac_save_LIBS="$LIBS"
|
|
3260 LIBS="-lreadline -lncurses $LIBS"
|
|
3261 cat > conftest.$ac_ext <<EOF
|
|
3262 #line 3263 "configure"
|
|
3263 #include "confdefs.h"
|
|
3264 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3265 /* We use char because int might match the return type of a gcc2
|
|
3266 builtin and then its argument prototype would still apply. */
|
|
3267 char readline();
|
|
3268
|
|
3269 int main() {
|
|
3270 readline()
|
|
3271 ; return 0; }
|
|
3272 EOF
|
|
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3274 rm -rf conftest*
|
|
3275 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3276 else
|
|
3277 echo "configure: failed program was:" >&5
|
|
3278 cat conftest.$ac_ext >&5
|
|
3279 rm -rf conftest*
|
|
3280 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3281 fi
|
|
3282 rm -f conftest*
|
|
3283 LIBS="$ac_save_LIBS"
|
|
3284
|
|
3285 fi
|
|
3286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3287 echo "$ac_t""yes" 1>&6
|
|
3288 HAVE_LIBREADLINE=true
|
|
3289 else
|
|
3290 echo "$ac_t""no" 1>&6
|
|
3291 HAVE_LIBREADLINE=false
|
|
3292 fi
|
|
3293
|
|
3294 if test x${HAVE_LIBREADLINE} = xtrue ; then
|
|
3295 echo " Using -lreadline -lncurses"
|
|
3296 EXTRA_LIBREADLINE_DEPS=-lncurses
|
|
3297 cat >> confdefs.h <<\EOF
|
|
3298 #define HAVE_LIBREADLINE 1
|
|
3299 EOF
|
|
3300
|
|
3301 else
|
|
3302 unset ac_cv_lib_readline_readline
|
|
3303 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
3304 echo "configure:3305: checking for readline in -lreadline" >&5
|
|
3305 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3307 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3308 else
|
|
3309 ac_save_LIBS="$LIBS"
|
|
3310 LIBS="-lreadline -lcurses $LIBS"
|
|
3311 cat > conftest.$ac_ext <<EOF
|
|
3312 #line 3313 "configure"
|
|
3313 #include "confdefs.h"
|
|
3314 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3315 /* We use char because int might match the return type of a gcc2
|
|
3316 builtin and then its argument prototype would still apply. */
|
|
3317 char readline();
|
|
3318
|
|
3319 int main() {
|
|
3320 readline()
|
|
3321 ; return 0; }
|
|
3322 EOF
|
|
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3324 rm -rf conftest*
|
|
3325 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3326 else
|
|
3327 echo "configure: failed program was:" >&5
|
|
3328 cat conftest.$ac_ext >&5
|
|
3329 rm -rf conftest*
|
|
3330 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3331 fi
|
|
3332 rm -f conftest*
|
|
3333 LIBS="$ac_save_LIBS"
|
|
3334
|
|
3335 fi
|
|
3336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3337 echo "$ac_t""yes" 1>&6
|
|
3338 HAVE_LIBREADLINE=true
|
|
3339 else
|
|
3340 echo "$ac_t""no" 1>&6
|
|
3341 HAVE_LIBREADLINE=false
|
|
3342 fi
|
|
3343
|
|
3344 if test x${HAVE_LIBREADLINE} = xtrue ; then
|
|
3345 echo " Using -lreadline -lcurses"
|
|
3346 EXTRA_LIBREADLINE_DEPS=-lcurses
|
|
3347 cat >> confdefs.h <<\EOF
|
|
3348 #define HAVE_LIBREADLINE 1
|
|
3349 EOF
|
|
3350
|
|
3351 else
|
|
3352 unset ac_cv_lib_readline_readline
|
|
3353 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
3354 echo "configure:3355: checking for readline in -lreadline" >&5
|
|
3355 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
3356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3357 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3358 else
|
|
3359 ac_save_LIBS="$LIBS"
|
|
3360 LIBS="-lreadline -ltermcap $LIBS"
|
|
3361 cat > conftest.$ac_ext <<EOF
|
|
3362 #line 3363 "configure"
|
|
3363 #include "confdefs.h"
|
|
3364 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3365 /* We use char because int might match the return type of a gcc2
|
|
3366 builtin and then its argument prototype would still apply. */
|
|
3367 char readline();
|
|
3368
|
|
3369 int main() {
|
|
3370 readline()
|
|
3371 ; return 0; }
|
|
3372 EOF
|
|
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3374 rm -rf conftest*
|
|
3375 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3376 else
|
|
3377 echo "configure: failed program was:" >&5
|
|
3378 cat conftest.$ac_ext >&5
|
|
3379 rm -rf conftest*
|
|
3380 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3381 fi
|
|
3382 rm -f conftest*
|
|
3383 LIBS="$ac_save_LIBS"
|
|
3384
|
|
3385 fi
|
|
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3387 echo "$ac_t""yes" 1>&6
|
|
3388 HAVE_LIBREADLINE=true
|
|
3389 else
|
|
3390 echo "$ac_t""no" 1>&6
|
|
3391 HAVE_LIBREADLINE=false
|
|
3392 fi
|
|
3393
|
|
3394 if test x${HAVE_LIBREADLINE} = xtrue ; then
|
|
3395 echo " Using -lreadline -ltermcap"
|
|
3396 EXTRA_LIBREADLINE_DEPS=-ltermcap
|
|
3397 cat >> confdefs.h <<\EOF
|
|
3398 #define HAVE_LIBREADLINE 1
|
|
3399 EOF
|
|
3400
|
|
3401 else
|
|
3402 unset ac_cv_lib_readline_readline
|
|
3403 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
3404 echo "configure:3405: checking for readline in -lreadline" >&5
|
|
3405 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
3406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3407 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3408 else
|
|
3409 ac_save_LIBS="$LIBS"
|
|
3410 LIBS="-lreadline $LIBS"
|
|
3411 cat > conftest.$ac_ext <<EOF
|
|
3412 #line 3413 "configure"
|
|
3413 #include "confdefs.h"
|
|
3414 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3415 /* We use char because int might match the return type of a gcc2
|
|
3416 builtin and then its argument prototype would still apply. */
|
|
3417 char readline();
|
|
3418
|
|
3419 int main() {
|
|
3420 readline()
|
|
3421 ; return 0; }
|
|
3422 EOF
|
|
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3424 rm -rf conftest*
|
|
3425 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3426 else
|
|
3427 echo "configure: failed program was:" >&5
|
|
3428 cat conftest.$ac_ext >&5
|
|
3429 rm -rf conftest*
|
|
3430 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3431 fi
|
|
3432 rm -f conftest*
|
|
3433 LIBS="$ac_save_LIBS"
|
|
3434
|
|
3435 fi
|
|
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3437 echo "$ac_t""yes" 1>&6
|
|
3438 HAVE_LIBREADLINE=true
|
|
3439 else
|
|
3440 echo "$ac_t""no" 1>&6
|
|
3441 HAVE_LIBREADLINE=false
|
|
3442 fi
|
|
3443
|
|
3444 if test x${HAVE_LIBREADLINE} = xtrue ; then
|
|
3445 cat >> confdefs.h <<\EOF
|
|
3446 #define HAVE_LIBREADLINE 1
|
|
3447 EOF
|
|
3448
|
|
3449 else
|
|
3450 cat >> confdefs.h <<\EOF
|
|
3451 #define HAVE_LIBREADLINE 0
|
|
3452 EOF
|
|
3453
|
|
3454 fi
|
|
3455 fi
|
|
3456 fi
|
|
3457 fi
|
|
3458 else
|
|
3459 unset ac_cv_lib_readline_readline
|
|
3460 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
|
|
3461 echo "configure:3462: checking for readline in -lreadline" >&5
|
|
3462 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
|
|
3463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3464 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3465 else
|
|
3466 ac_save_LIBS="$LIBS"
|
|
3467 LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS"
|
|
3468 cat > conftest.$ac_ext <<EOF
|
|
3469 #line 3470 "configure"
|
|
3470 #include "confdefs.h"
|
|
3471 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3472 /* We use char because int might match the return type of a gcc2
|
|
3473 builtin and then its argument prototype would still apply. */
|
|
3474 char readline();
|
|
3475
|
|
3476 int main() {
|
|
3477 readline()
|
|
3478 ; return 0; }
|
|
3479 EOF
|
|
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3481 rm -rf conftest*
|
|
3482 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3483 else
|
|
3484 echo "configure: failed program was:" >&5
|
|
3485 cat conftest.$ac_ext >&5
|
|
3486 rm -rf conftest*
|
|
3487 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3488 fi
|
|
3489 rm -f conftest*
|
|
3490 LIBS="$ac_save_LIBS"
|
|
3491
|
|
3492 fi
|
|
3493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3494 echo "$ac_t""yes" 1>&6
|
|
3495 HAVE_LIBREADLINE=true
|
|
3496 else
|
|
3497 echo "$ac_t""no" 1>&6
|
|
3498 HAVE_LIBREADLINE=false
|
|
3499 fi
|
|
3500
|
|
3501 if test x${HAVE_LIBREADLINE} = xtrue ; then
|
|
3502 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
|
|
3503 cat >> confdefs.h <<\EOF
|
|
3504 #define HAVE_LIBREADLINE 1
|
|
3505 EOF
|
|
3506
|
|
3507 else
|
|
3508 cat >> confdefs.h <<\EOF
|
|
3509 #define HAVE_LIBREADLINE 0
|
|
3510 EOF
|
|
3511
|
|
3512 fi
|
|
3513 fi
|
|
3514 else
|
|
3515 HAVE_LIBREADLINE=false
|
|
3516 cat >> confdefs.h <<\EOF
|
|
3517 #define HAVE_LIBREADLINE 0
|
|
3518 EOF
|
|
3519
|
|
3520 fi
|
|
3521 if test x${HAVE_LIBREADLINE} = xtrue; then
|
|
3522 READLINE_LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS}"
|
|
3523 GFTP_TEXT="gftp-text"
|
|
3524 fi
|
|
3525 fi
|
|
3526
|
|
3527 echo $ac_n "checking for log10 in -lm""... $ac_c" 1>&6
|
|
3528 echo "configure:3529: checking for log10 in -lm" >&5
|
|
3529 ac_lib_var=`echo m'_'log10 | sed 'y%./+-%__p_%'`
|
|
3530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3531 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3532 else
|
|
3533 ac_save_LIBS="$LIBS"
|
|
3534 LIBS="-lm $LIBS"
|
|
3535 cat > conftest.$ac_ext <<EOF
|
|
3536 #line 3537 "configure"
|
|
3537 #include "confdefs.h"
|
|
3538 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3539 /* We use char because int might match the return type of a gcc2
|
|
3540 builtin and then its argument prototype would still apply. */
|
|
3541 char log10();
|
|
3542
|
|
3543 int main() {
|
|
3544 log10()
|
|
3545 ; return 0; }
|
|
3546 EOF
|
|
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3548 rm -rf conftest*
|
|
3549 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3550 else
|
|
3551 echo "configure: failed program was:" >&5
|
|
3552 cat conftest.$ac_ext >&5
|
|
3553 rm -rf conftest*
|
|
3554 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3555 fi
|
|
3556 rm -f conftest*
|
|
3557 LIBS="$ac_save_LIBS"
|
|
3558
|
|
3559 fi
|
|
3560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3561 echo "$ac_t""yes" 1>&6
|
|
3562 EXTRA_LIBS="$EXTRA_LIBS -lm"
|
|
3563 else
|
|
3564 echo "$ac_t""no" 1>&6
|
|
3565 fi
|
|
3566
|
|
3567
|
|
3568 if test "x$enable_dmalloc" = "x1" ; then
|
|
3569 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
|
|
3570 echo "configure:3571: checking for dmalloc_shutdown in -ldmalloc" >&5
|
|
3571 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
|
|
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3573 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3574 else
|
|
3575 ac_save_LIBS="$LIBS"
|
|
3576 LIBS="-ldmalloc $LIBS"
|
|
3577 cat > conftest.$ac_ext <<EOF
|
|
3578 #line 3579 "configure"
|
|
3579 #include "confdefs.h"
|
|
3580 /* Override any gcc2 internal prototype to avoid an error. */
|
|
3581 /* We use char because int might match the return type of a gcc2
|
|
3582 builtin and then its argument prototype would still apply. */
|
|
3583 char dmalloc_shutdown();
|
|
3584
|
|
3585 int main() {
|
|
3586 dmalloc_shutdown()
|
|
3587 ; return 0; }
|
|
3588 EOF
|
|
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3590 rm -rf conftest*
|
|
3591 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
3592 else
|
|
3593 echo "configure: failed program was:" >&5
|
|
3594 cat conftest.$ac_ext >&5
|
|
3595 rm -rf conftest*
|
|
3596 eval "ac_cv_lib_$ac_lib_var=no"
|
|
3597 fi
|
|
3598 rm -f conftest*
|
|
3599 LIBS="$ac_save_LIBS"
|
|
3600
|
|
3601 fi
|
|
3602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
3603 echo "$ac_t""yes" 1>&6
|
|
3604
|
|
3605 cat >> confdefs.h <<\EOF
|
|
3606 #define HAVE_DMALLOC 1
|
|
3607 EOF
|
|
3608
|
|
3609 EXTRA_LIBS="$EXTRA_LIBS -ldmalloc"
|
|
3610 else
|
|
3611 echo "$ac_t""no" 1>&6
|
|
3612 fi
|
|
3613
|
|
3614 fi
|
|
3615
|
|
3616
|
|
3617
|
|
3618
|
|
3619
|
|
3620 GFTP_GTK=""
|
|
3621 PTHREAD_CFLAGS=""
|
|
3622 PTHREAD_LIBS=""
|
|
3623 if test "x$enable_gtkport" = "x1" ; then
|
|
3624 if test "x$enable_gtk20" = "x1" ; then
|
|
3625
|
|
3626 succeeded=no
|
|
3627
|
|
3628 if test -z "$PKG_CONFIG"; then
|
|
3629 # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
3630 set dummy pkg-config; ac_word=$2
|
|
3631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
3632 echo "configure:3633: checking for $ac_word" >&5
|
|
3633 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
|
|
3634 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3635 else
|
|
3636 case "$PKG_CONFIG" in
|
|
3637 /*)
|
|
3638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
3639 ;;
|
|
3640 ?:/*)
|
|
3641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
|
|
3642 ;;
|
|
3643 *)
|
|
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3645 ac_dummy="$PATH"
|
|
3646 for ac_dir in $ac_dummy; do
|
|
3647 test -z "$ac_dir" && ac_dir=.
|
|
3648 if test -f $ac_dir/$ac_word; then
|
|
3649 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
|
|
3650 break
|
|
3651 fi
|
|
3652 done
|
|
3653 IFS="$ac_save_ifs"
|
|
3654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
|
3655 ;;
|
|
3656 esac
|
|
3657 fi
|
|
3658 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
|
3659 if test -n "$PKG_CONFIG"; then
|
|
3660 echo "$ac_t""$PKG_CONFIG" 1>&6
|
|
3661 else
|
|
3662 echo "$ac_t""no" 1>&6
|
|
3663 fi
|
|
3664
|
|
3665 fi
|
|
3666
|
|
3667 if test "$PKG_CONFIG" = "no" ; then
|
|
3668 echo "*** The pkg-config script could not be found. Make sure it is"
|
|
3669 echo "*** in your path, or set the PKG_CONFIG environment variable"
|
|
3670 echo "*** to the full path to pkg-config."
|
|
3671 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
|
3672 else
|
|
3673 PKG_CONFIG_MIN_VERSION=0.9.0
|
|
3674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
|
3675 echo $ac_n "checking for gtk+-2.0 >= 1.3.8""... $ac_c" 1>&6
|
|
3676 echo "configure:3677: checking for gtk+-2.0 >= 1.3.8" >&5
|
|
3677
|
|
3678 if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3.8" ; then
|
|
3679 echo "$ac_t""yes" 1>&6
|
|
3680 succeeded=yes
|
|
3681
|
|
3682 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
|
|
3683 echo "configure:3684: checking GTK_CFLAGS" >&5
|
|
3684 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3.8"`
|
|
3685 echo "$ac_t""$GTK_CFLAGS" 1>&6
|
|
3686
|
|
3687 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
|
|
3688 echo "configure:3689: checking GTK_LIBS" >&5
|
|
3689 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 1.3.8"`
|
|
3690 echo "$ac_t""$GTK_LIBS" 1>&6
|
|
3691 else
|
|
3692 GTK_CFLAGS=""
|
|
3693 GTK_LIBS=""
|
|
3694 ## If we have a custom action on failure, don't print errors, but
|
|
3695 ## do set a variable so people can do so.
|
|
3696 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 1.3.8"`
|
|
3697 echo $GTK_PKG_ERRORS
|
|
3698 fi
|
|
3699
|
|
3700
|
|
3701
|
|
3702 else
|
|
3703 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
|
3704 echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
|
3705 fi
|
|
3706 fi
|
|
3707
|
|
3708 if test $succeeded = yes; then
|
|
3709 GFTP_GTK=gftp-gtk
|
|
3710 else
|
|
3711 { echo "configure: error: Library requirements (gtk+-2.0 >= 1.3.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
|
|
3712 fi
|
|
3713
|
|
3714 fi
|
|
3715
|
|
3716 if test "x$GFTP_GTK" = "x" ; then
|
|
3717 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
|
|
3718 if test "${with_gtk_prefix+set}" = set; then
|
|
3719 withval="$with_gtk_prefix"
|
|
3720 gtk_config_prefix="$withval"
|
|
3721 else
|
|
3722 gtk_config_prefix=""
|
|
3723 fi
|
|
3724
|
|
3725 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
|
|
3726 if test "${with_gtk_exec_prefix+set}" = set; then
|
|
3727 withval="$with_gtk_exec_prefix"
|
|
3728 gtk_config_exec_prefix="$withval"
|
|
3729 else
|
|
3730 gtk_config_exec_prefix=""
|
|
3731 fi
|
|
3732
|
|
3733 # Check whether --enable-gtktest or --disable-gtktest was given.
|
|
3734 if test "${enable_gtktest+set}" = set; then
|
|
3735 enableval="$enable_gtktest"
|
|
3736 :
|
|
3737 else
|
|
3738 enable_gtktest=yes
|
|
3739 fi
|
|
3740
|
|
3741
|
|
3742 for module in .
|
|
3743 do
|
|
3744 case "$module" in
|
|
3745 gthread)
|
|
3746 gtk_config_args="$gtk_config_args gthread"
|
|
3747 ;;
|
|
3748 esac
|
|
3749 done
|
|
3750
|
|
3751 if test x$gtk_config_exec_prefix != x ; then
|
|
3752 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
|
|
3753 if test x${GTK_CONFIG+set} != xset ; then
|
|
3754 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
|
|
3755 fi
|
|
3756 fi
|
|
3757 if test x$gtk_config_prefix != x ; then
|
|
3758 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
|
|
3759 if test x${GTK_CONFIG+set} != xset ; then
|
|
3760 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
|
|
3761 fi
|
|
3762 fi
|
|
3763
|
|
3764 # Extract the first word of "gtk-config", so it can be a program name with args.
|
|
3765 set dummy gtk-config; ac_word=$2
|
|
3766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
3767 echo "configure:3768: checking for $ac_word" >&5
|
|
3768 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
|
|
3769 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3770 else
|
|
3771 case "$GTK_CONFIG" in
|
|
3772 /*)
|
|
3773 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
|
|
3774 ;;
|
|
3775 ?:/*)
|
|
3776 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
|
|
3777 ;;
|
|
3778 *)
|
|
3779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
3780 ac_dummy="$PATH"
|
|
3781 for ac_dir in $ac_dummy; do
|
|
3782 test -z "$ac_dir" && ac_dir=.
|
|
3783 if test -f $ac_dir/$ac_word; then
|
|
3784 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
|
|
3785 break
|
|
3786 fi
|
|
3787 done
|
|
3788 IFS="$ac_save_ifs"
|
|
3789 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
|
|
3790 ;;
|
|
3791 esac
|
|
3792 fi
|
|
3793 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
|
|
3794 if test -n "$GTK_CONFIG"; then
|
|
3795 echo "$ac_t""$GTK_CONFIG" 1>&6
|
|
3796 else
|
|
3797 echo "$ac_t""no" 1>&6
|
|
3798 fi
|
|
3799
|
|
3800 min_gtk_version=1.2.3
|
|
3801 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
|
|
3802 echo "configure:3803: checking for GTK - version >= $min_gtk_version" >&5
|
|
3803 no_gtk=""
|
|
3804 if test "$GTK_CONFIG" = "no" ; then
|
|
3805 no_gtk=yes
|
|
3806 else
|
|
3807 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
|
|
3808 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
|
|
3809 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
3810 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
3811 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
3812 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
3813 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
|
|
3814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
3815 if test "x$enable_gtktest" = "xyes" ; then
|
|
3816 ac_save_CFLAGS="$CFLAGS"
|
|
3817 ac_save_LIBS="$LIBS"
|
|
3818 CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
3819 LIBS="$GTK_LIBS $LIBS"
|
|
3820 rm -f conf.gtktest
|
|
3821 if test "$cross_compiling" = yes; then
|
|
3822 echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
3823 else
|
|
3824 cat > conftest.$ac_ext <<EOF
|
|
3825 #line 3826 "configure"
|
|
3826 #include "confdefs.h"
|
|
3827
|
|
3828 #include <gtk/gtk.h>
|
|
3829 #include <stdio.h>
|
|
3830 #include <stdlib.h>
|
|
3831
|
|
3832 int
|
|
3833 main ()
|
|
3834 {
|
|
3835 int major, minor, micro;
|
|
3836 char *tmp_version;
|
|
3837
|
|
3838 system ("touch conf.gtktest");
|
|
3839
|
|
3840 /* HP/UX 9 (%@#!) writes to sscanf strings */
|
|
3841 tmp_version = g_strdup("$min_gtk_version");
|
|
3842 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
|
|
3843 printf("%s, bad version string\n", "$min_gtk_version");
|
|
3844 exit(1);
|
|
3845 }
|
|
3846
|
|
3847 if ((gtk_major_version != $gtk_config_major_version) ||
|
|
3848 (gtk_minor_version != $gtk_config_minor_version) ||
|
|
3849 (gtk_micro_version != $gtk_config_micro_version))
|
|
3850 {
|
|
3851 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
|
|
3852 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
|
|
3853 gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
3854 printf ("*** was found! If gtk-config was correct, then it is best\n");
|
|
3855 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
|
|
3856 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
|
3857 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
|
3858 printf("*** required on your system.\n");
|
|
3859 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
|
|
3860 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
|
|
3861 printf("*** before re-running configure\n");
|
|
3862 }
|
|
3863 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
|
|
3864 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
|
|
3865 (gtk_minor_version != GTK_MINOR_VERSION) ||
|
|
3866 (gtk_micro_version != GTK_MICRO_VERSION))
|
|
3867 {
|
|
3868 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
|
|
3869 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
|
|
3870 printf("*** library (version %d.%d.%d)\n",
|
|
3871 gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
3872 }
|
|
3873 #endif /* defined (GTK_MAJOR_VERSION) ... */
|
|
3874 else
|
|
3875 {
|
|
3876 if ((gtk_major_version > major) ||
|
|
3877 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
|
|
3878 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
|
|
3879 {
|
|
3880 return 0;
|
|
3881 }
|
|
3882 else
|
|
3883 {
|
|
3884 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
|
|
3885 gtk_major_version, gtk_minor_version, gtk_micro_version);
|
|
3886 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
|
|
3887 major, minor, micro);
|
|
3888 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
|
|
3889 printf("***\n");
|
|
3890 printf("*** If you have already installed a sufficiently new version, this error\n");
|
|
3891 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
|
|
3892 printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
|
3893 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
|
|
3894 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
|
|
3895 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
|
3896 printf("*** so that the correct libraries are found at run-time))\n");
|
|
3897 }
|
|
3898 }
|
|
3899 return 1;
|
|
3900 }
|
|
3901
|
|
3902 EOF
|
|
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
|
3904 then
|
|
3905 :
|
|
3906 else
|
|
3907 echo "configure: failed program was:" >&5
|
|
3908 cat conftest.$ac_ext >&5
|
|
3909 rm -fr conftest*
|
|
3910 no_gtk=yes
|
|
3911 fi
|
|
3912 rm -fr conftest*
|
|
3913 fi
|
|
3914
|
|
3915 CFLAGS="$ac_save_CFLAGS"
|
|
3916 LIBS="$ac_save_LIBS"
|
|
3917 fi
|
|
3918 fi
|
|
3919 if test "x$no_gtk" = x ; then
|
|
3920 echo "$ac_t""yes" 1>&6
|
|
3921 GFTP_GTK=gftp-gtk
|
|
3922 else
|
|
3923 echo "$ac_t""no" 1>&6
|
|
3924 if test "$GTK_CONFIG" = "no" ; then
|
|
3925 echo "*** The gtk-config script installed by GTK could not be found"
|
|
3926 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
|
|
3927 echo "*** your path, or set the GTK_CONFIG environment variable to the"
|
|
3928 echo "*** full path to gtk-config."
|
|
3929 else
|
|
3930 if test -f conf.gtktest ; then
|
|
3931 :
|
|
3932 else
|
|
3933 echo "*** Could not run GTK test program, checking why..."
|
|
3934 CFLAGS="$CFLAGS $GTK_CFLAGS"
|
|
3935 LIBS="$LIBS $GTK_LIBS"
|
|
3936 cat > conftest.$ac_ext <<EOF
|
|
3937 #line 3938 "configure"
|
|
3938 #include "confdefs.h"
|
|
3939
|
|
3940 #include <gtk/gtk.h>
|
|
3941 #include <stdio.h>
|
|
3942
|
|
3943 int main() {
|
|
3944 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
|
|
3945 ; return 0; }
|
|
3946 EOF
|
|
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
3948 rm -rf conftest*
|
|
3949 echo "*** The test program compiled, but did not run. This usually means"
|
|
3950 echo "*** that the run-time linker is not finding GTK or finding the wrong"
|
|
3951 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
|
|
3952 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
3953 echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
|
3954 echo "*** is required on your system"
|
|
3955 echo "***"
|
|
3956 echo "*** If you have an old version installed, it is best to remove it, although"
|
|
3957 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
|
3958 echo "***"
|
|
3959 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
|
|
3960 echo "*** came with the system with the command"
|
|
3961 echo "***"
|
|
3962 echo "*** rpm --erase --nodeps gtk gtk-devel"
|
|
3963 else
|
|
3964 echo "configure: failed program was:" >&5
|
|
3965 cat conftest.$ac_ext >&5
|
|
3966 rm -rf conftest*
|
|
3967 echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
3968 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
|
|
3969 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
|
|
3970 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
|
|
3971 fi
|
|
3972 rm -f conftest*
|
|
3973 CFLAGS="$ac_save_CFLAGS"
|
|
3974 LIBS="$ac_save_LIBS"
|
|
3975 fi
|
|
3976 fi
|
|
3977 GTK_CFLAGS=""
|
|
3978 GTK_LIBS=""
|
|
3979 echo "configure: warning: gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version" 1>&2
|
|
3980 fi
|
|
3981
|
|
3982
|
|
3983 rm -f conf.gtktest
|
|
3984
|
|
3985 fi
|
|
3986
|
|
3987 if test "x$GFTP_GTK" = xgftp-gtk; then
|
|
3988 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
|
3989 echo "configure:3990: checking for pthread_create in -lpthread" >&5
|
|
3990 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
|
|
3991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
3992 echo $ac_n "(cached) $ac_c" 1>&6
|
|
3993 else
|
|
3994 ac_save_LIBS="$LIBS"
|
|
3995 LIBS="-lpthread $LIBS"
|
|
3996 cat > conftest.$ac_ext <<EOF
|
|
3997 #line 3998 "configure"
|
|
3998 #include "confdefs.h"
|
|
3999 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4000 /* We use char because int might match the return type of a gcc2
|
|
4001 builtin and then its argument prototype would still apply. */
|
|
4002 char pthread_create();
|
|
4003
|
|
4004 int main() {
|
|
4005 pthread_create()
|
|
4006 ; return 0; }
|
|
4007 EOF
|
|
4008 if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4009 rm -rf conftest*
|
|
4010 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4011 else
|
|
4012 echo "configure: failed program was:" >&5
|
|
4013 cat conftest.$ac_ext >&5
|
|
4014 rm -rf conftest*
|
|
4015 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4016 fi
|
|
4017 rm -f conftest*
|
|
4018 LIBS="$ac_save_LIBS"
|
|
4019
|
|
4020 fi
|
|
4021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
4022 echo "$ac_t""yes" 1>&6
|
|
4023 PTHREAD_LIBS="-lpthread"
|
|
4024 else
|
|
4025 echo "$ac_t""no" 1>&6
|
|
4026 fi
|
|
4027
|
|
4028
|
|
4029 if test "x$PTHREAD_LIBS" = x ; then
|
|
4030 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
|
|
4031 echo "configure:4032: checking for pthread_create in -lpthreads" >&5
|
|
4032 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
|
|
4033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
4034 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4035 else
|
|
4036 ac_save_LIBS="$LIBS"
|
|
4037 LIBS="-lpthreads $LIBS"
|
|
4038 cat > conftest.$ac_ext <<EOF
|
|
4039 #line 4040 "configure"
|
|
4040 #include "confdefs.h"
|
|
4041 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4042 /* We use char because int might match the return type of a gcc2
|
|
4043 builtin and then its argument prototype would still apply. */
|
|
4044 char pthread_create();
|
|
4045
|
|
4046 int main() {
|
|
4047 pthread_create()
|
|
4048 ; return 0; }
|
|
4049 EOF
|
|
4050 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4051 rm -rf conftest*
|
|
4052 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4053 else
|
|
4054 echo "configure: failed program was:" >&5
|
|
4055 cat conftest.$ac_ext >&5
|
|
4056 rm -rf conftest*
|
|
4057 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4058 fi
|
|
4059 rm -f conftest*
|
|
4060 LIBS="$ac_save_LIBS"
|
|
4061
|
|
4062 fi
|
|
4063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
4064 echo "$ac_t""yes" 1>&6
|
|
4065 PTHREAD_LIBS="-lpthreads"
|
|
4066 else
|
|
4067 echo "$ac_t""no" 1>&6
|
|
4068 fi
|
|
4069
|
|
4070 fi
|
|
4071
|
|
4072 if test "x$PTHREAD_LIBS" = x ; then
|
|
4073 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
|
|
4074 echo "configure:4075: checking for pthread_create in -lc_r" >&5
|
|
4075 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
|
|
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
4077 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4078 else
|
|
4079 ac_save_LIBS="$LIBS"
|
|
4080 LIBS="-lc_r $LIBS"
|
|
4081 cat > conftest.$ac_ext <<EOF
|
|
4082 #line 4083 "configure"
|
|
4083 #include "confdefs.h"
|
|
4084 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4085 /* We use char because int might match the return type of a gcc2
|
|
4086 builtin and then its argument prototype would still apply. */
|
|
4087 char pthread_create();
|
|
4088
|
|
4089 int main() {
|
|
4090 pthread_create()
|
|
4091 ; return 0; }
|
|
4092 EOF
|
|
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4094 rm -rf conftest*
|
|
4095 eval "ac_cv_lib_$ac_lib_var=yes"
|
|
4096 else
|
|
4097 echo "configure: failed program was:" >&5
|
|
4098 cat conftest.$ac_ext >&5
|
|
4099 rm -rf conftest*
|
|
4100 eval "ac_cv_lib_$ac_lib_var=no"
|
|
4101 fi
|
|
4102 rm -f conftest*
|
|
4103 LIBS="$ac_save_LIBS"
|
|
4104
|
|
4105 fi
|
|
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
|
4107 echo "$ac_t""yes" 1>&6
|
|
4108 PTHREAD_LIBS="-lc_r"
|
|
4109 else
|
|
4110 echo "$ac_t""no" 1>&6
|
|
4111 fi
|
|
4112
|
|
4113 fi
|
|
4114
|
|
4115 if test "x$PTHREAD_LIBS" = x ; then
|
|
4116 echo ;
|
|
4117 echo "Error: Cannot find the pthread libraries. If you don't have them installed," ;
|
|
4118 echo "your X libraries probably aren't thread safe either. You can download the" ;
|
|
4119 echo "pthread library and the thread safe X libraries from my webpage at" ;
|
|
4120 echo "http://www.gftp.org/. Note the pthread library and the thread safe" ;
|
|
4121 echo "X libraries on my webpage are for Linux libc5 machines ONLY" ;
|
|
4122 echo ;
|
|
4123 exit
|
|
4124 fi
|
|
4125
|
|
4126 PTHREAD_CFLAGS="-D_REENTRANT"
|
|
4127
|
|
4128 # I took some of these from the glib 1.3.3 configure.in
|
|
4129 case $host in
|
|
4130 *-hpux*)
|
|
4131 # From H.Merijn Brand <h.m.brand@hccnet.nl>
|
|
4132 echo '#define pthread_attr_init(x) __pthread_attr_init_system(x)'
|
|
4133 +>>confdefs.h
|
|
4134 ;;
|
|
4135 *-aix*)
|
|
4136 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
|
|
4137 if test x"$GCC" = xyes; then
|
|
4138 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -mthreads"
|
|
4139 fi
|
|
4140 ;;
|
|
4141 *-freebsd*)
|
|
4142 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
|
|
4143
|
|
4144 # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
|
|
4145 # -mthreads flag.
|
|
4146 ;;
|
|
4147 *-openbsd*)
|
|
4148 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
|
|
4149 if test "x$PTHREAD_LIBS" = "x-lc_r"; then
|
|
4150 PTHREAD_LIBS="-pthread"
|
|
4151 fi
|
|
4152 ;;
|
|
4153 *-sysv5uw7*) # UnixWare 7
|
|
4154 if test "$GCC" != "yes"; then
|
|
4155 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -Kthread"
|
|
4156 else
|
|
4157 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -pthread"
|
|
4158 fi
|
|
4159 ;;
|
|
4160 *-dg-dgux*) # DG/UX
|
|
4161 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
|
|
4162 esac
|
|
4163 fi
|
|
4164 fi
|
|
4165
|
|
4166
|
|
4167
|
|
4168
|
|
4169 echo $ac_n "checking for off_t""... $ac_c" 1>&6
|
|
4170 echo "configure:4171: checking for off_t" >&5
|
|
4171 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
|
|
4172 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4173 else
|
|
4174 cat > conftest.$ac_ext <<EOF
|
|
4175 #line 4176 "configure"
|
|
4176 #include "confdefs.h"
|
|
4177 #include <sys/types.h>
|
|
4178 #if STDC_HEADERS
|
|
4179 #include <stdlib.h>
|
|
4180 #include <stddef.h>
|
|
4181 #endif
|
|
4182 EOF
|
|
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4184 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
|
|
4185 rm -rf conftest*
|
|
4186 ac_cv_type_off_t=yes
|
|
4187 else
|
|
4188 rm -rf conftest*
|
|
4189 ac_cv_type_off_t=no
|
|
4190 fi
|
|
4191 rm -f conftest*
|
|
4192
|
|
4193 fi
|
|
4194 echo "$ac_t""$ac_cv_type_off_t" 1>&6
|
|
4195 if test $ac_cv_type_off_t = no; then
|
|
4196 cat >> confdefs.h <<\EOF
|
|
4197 #define off_t long
|
|
4198 EOF
|
|
4199
|
|
4200 fi
|
|
4201
|
|
4202
|
|
4203 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
|
|
4204 echo "configure:4205: checking whether we are using the GNU C Library 2.1 or newer" >&5
|
|
4205 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
|
|
4206 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4207 else
|
|
4208 cat > conftest.$ac_ext <<EOF
|
|
4209 #line 4210 "configure"
|
|
4210 #include "confdefs.h"
|
|
4211
|
|
4212 #include <features.h>
|
|
4213 #ifdef __GNU_LIBRARY__
|
|
4214 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
|
|
4215 Lucky GNU user
|
|
4216 #endif
|
|
4217 #endif
|
|
4218
|
|
4219 EOF
|
|
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
4221 egrep "Lucky GNU user" >/dev/null 2>&1; then
|
|
4222 rm -rf conftest*
|
|
4223 ac_cv_gnu_library_2_1=yes
|
|
4224 else
|
|
4225 rm -rf conftest*
|
|
4226 ac_cv_gnu_library_2_1=no
|
|
4227 fi
|
|
4228 rm -f conftest*
|
|
4229
|
|
4230
|
|
4231
|
|
4232 fi
|
|
4233
|
|
4234 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
|
|
4235
|
|
4236 GLIBC21="$ac_cv_gnu_library_2_1"
|
|
4237
|
|
4238
|
|
4239
|
|
4240 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
|
|
4241 stdlib.h string.h unistd.h sys/param.h
|
|
4242 do
|
|
4243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
|
4244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
|
4245 echo "configure:4246: checking for $ac_hdr" >&5
|
|
4246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
4247 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4248 else
|
|
4249 cat > conftest.$ac_ext <<EOF
|
|
4250 #line 4251 "configure"
|
|
4251 #include "confdefs.h"
|
|
4252 #include <$ac_hdr>
|
|
4253 EOF
|
|
4254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
4255 { (eval echo configure:4256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
4256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
4257 if test -z "$ac_err"; then
|
|
4258 rm -rf conftest*
|
|
4259 eval "ac_cv_header_$ac_safe=yes"
|
|
4260 else
|
|
4261 echo "$ac_err" >&5
|
|
4262 echo "configure: failed program was:" >&5
|
|
4263 cat conftest.$ac_ext >&5
|
|
4264 rm -rf conftest*
|
|
4265 eval "ac_cv_header_$ac_safe=no"
|
|
4266 fi
|
|
4267 rm -f conftest*
|
|
4268 fi
|
|
4269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
4270 echo "$ac_t""yes" 1>&6
|
|
4271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
|
|
4272 cat >> confdefs.h <<EOF
|
|
4273 #define $ac_tr_hdr 1
|
|
4274 EOF
|
|
4275
|
|
4276 else
|
|
4277 echo "$ac_t""no" 1>&6
|
|
4278 fi
|
|
4279 done
|
|
4280
|
|
4281 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
|
|
4282 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
|
|
4283 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
|
|
4284 do
|
|
4285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
4286 echo "configure:4287: checking for $ac_func" >&5
|
|
4287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
4288 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4289 else
|
|
4290 cat > conftest.$ac_ext <<EOF
|
|
4291 #line 4292 "configure"
|
|
4292 #include "confdefs.h"
|
|
4293 /* System header to define __stub macros and hopefully few prototypes,
|
|
4294 which can conflict with char $ac_func(); below. */
|
|
4295 #include <assert.h>
|
|
4296 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4297 /* We use char because int might match the return type of a gcc2
|
|
4298 builtin and then its argument prototype would still apply. */
|
|
4299 char $ac_func();
|
|
4300
|
|
4301 int main() {
|
|
4302
|
|
4303 /* The GNU C library defines this for functions which it implements
|
|
4304 to always fail with ENOSYS. Some functions are actually named
|
|
4305 something starting with __ and the normal name is an alias. */
|
|
4306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4307 choke me
|
|
4308 #else
|
|
4309 $ac_func();
|
|
4310 #endif
|
|
4311
|
|
4312 ; return 0; }
|
|
4313 EOF
|
|
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4315 rm -rf conftest*
|
|
4316 eval "ac_cv_func_$ac_func=yes"
|
|
4317 else
|
|
4318 echo "configure: failed program was:" >&5
|
|
4319 cat conftest.$ac_ext >&5
|
|
4320 rm -rf conftest*
|
|
4321 eval "ac_cv_func_$ac_func=no"
|
|
4322 fi
|
|
4323 rm -f conftest*
|
|
4324 fi
|
|
4325
|
|
4326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4327 echo "$ac_t""yes" 1>&6
|
|
4328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4329 cat >> confdefs.h <<EOF
|
|
4330 #define $ac_tr_func 1
|
|
4331 EOF
|
|
4332
|
|
4333 else
|
|
4334 echo "$ac_t""no" 1>&6
|
|
4335 fi
|
|
4336 done
|
|
4337
|
|
4338
|
|
4339
|
|
4340
|
|
4341 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
|
4342 if test "${with_libiconv_prefix+set}" = set; then
|
|
4343 withval="$with_libiconv_prefix"
|
|
4344
|
|
4345 for dir in `echo "$withval" | tr : ' '`; do
|
|
4346 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
|
4347 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
|
4348 done
|
|
4349
|
|
4350 fi
|
|
4351
|
|
4352
|
|
4353 echo $ac_n "checking for iconv""... $ac_c" 1>&6
|
|
4354 echo "configure:4355: checking for iconv" >&5
|
|
4355 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
|
|
4356 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4357 else
|
|
4358
|
|
4359 am_cv_func_iconv="no, consider installing GNU libiconv"
|
|
4360 am_cv_lib_iconv=no
|
|
4361 cat > conftest.$ac_ext <<EOF
|
|
4362 #line 4363 "configure"
|
|
4363 #include "confdefs.h"
|
|
4364 #include <stdlib.h>
|
|
4365 #include <iconv.h>
|
|
4366 int main() {
|
|
4367 iconv_t cd = iconv_open("","");
|
|
4368 iconv(cd,NULL,NULL,NULL,NULL);
|
|
4369 iconv_close(cd);
|
|
4370 ; return 0; }
|
|
4371 EOF
|
|
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4373 rm -rf conftest*
|
|
4374 am_cv_func_iconv=yes
|
|
4375 else
|
|
4376 echo "configure: failed program was:" >&5
|
|
4377 cat conftest.$ac_ext >&5
|
|
4378 fi
|
|
4379 rm -f conftest*
|
|
4380 if test "$am_cv_func_iconv" != yes; then
|
|
4381 am_save_LIBS="$LIBS"
|
|
4382 LIBS="$LIBS -liconv"
|
|
4383 cat > conftest.$ac_ext <<EOF
|
|
4384 #line 4385 "configure"
|
|
4385 #include "confdefs.h"
|
|
4386 #include <stdlib.h>
|
|
4387 #include <iconv.h>
|
|
4388 int main() {
|
|
4389 iconv_t cd = iconv_open("","");
|
|
4390 iconv(cd,NULL,NULL,NULL,NULL);
|
|
4391 iconv_close(cd);
|
|
4392 ; return 0; }
|
|
4393 EOF
|
|
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4395 rm -rf conftest*
|
|
4396 am_cv_lib_iconv=yes
|
|
4397 am_cv_func_iconv=yes
|
|
4398 else
|
|
4399 echo "configure: failed program was:" >&5
|
|
4400 cat conftest.$ac_ext >&5
|
|
4401 fi
|
|
4402 rm -f conftest*
|
|
4403 LIBS="$am_save_LIBS"
|
|
4404 fi
|
|
4405
|
|
4406 fi
|
|
4407
|
|
4408 echo "$ac_t""$am_cv_func_iconv" 1>&6
|
|
4409 if test "$am_cv_func_iconv" = yes; then
|
|
4410 cat >> confdefs.h <<\EOF
|
|
4411 #define HAVE_ICONV 1
|
|
4412 EOF
|
|
4413
|
|
4414 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
|
|
4415 echo "configure:4416: checking for iconv declaration" >&5
|
|
4416 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
|
|
4417 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4418 else
|
|
4419
|
|
4420 cat > conftest.$ac_ext <<EOF
|
|
4421 #line 4422 "configure"
|
|
4422 #include "confdefs.h"
|
|
4423
|
|
4424 #include <stdlib.h>
|
|
4425 #include <iconv.h>
|
|
4426 extern
|
|
4427 #ifdef __cplusplus
|
|
4428 "C"
|
|
4429 #endif
|
|
4430 #if defined(__STDC__) || defined(__cplusplus)
|
|
4431 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
|
4432 #else
|
|
4433 size_t iconv();
|
|
4434 #endif
|
|
4435
|
|
4436 int main() {
|
|
4437
|
|
4438 ; return 0; }
|
|
4439 EOF
|
|
4440 if { (eval echo configure:4441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
4441 rm -rf conftest*
|
|
4442 am_cv_proto_iconv_arg1=""
|
|
4443 else
|
|
4444 echo "configure: failed program was:" >&5
|
|
4445 cat conftest.$ac_ext >&5
|
|
4446 rm -rf conftest*
|
|
4447 am_cv_proto_iconv_arg1="const"
|
|
4448 fi
|
|
4449 rm -f conftest*
|
|
4450 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
|
4451 fi
|
|
4452
|
|
4453 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
|
4454 echo "$ac_t""${ac_t:-
|
|
4455 }$am_cv_proto_iconv" 1>&6
|
|
4456 cat >> confdefs.h <<EOF
|
|
4457 #define ICONV_CONST $am_cv_proto_iconv_arg1
|
|
4458 EOF
|
|
4459
|
|
4460 fi
|
|
4461 LIBICONV=
|
|
4462 if test "$am_cv_lib_iconv" = yes; then
|
|
4463 LIBICONV="-liconv"
|
|
4464 fi
|
|
4465
|
|
4466
|
|
4467
|
|
4468 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
|
|
4469 echo "configure:4470: checking for nl_langinfo and CODESET" >&5
|
|
4470 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
|
|
4471 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4472 else
|
|
4473 cat > conftest.$ac_ext <<EOF
|
|
4474 #line 4475 "configure"
|
|
4475 #include "confdefs.h"
|
|
4476 #include <langinfo.h>
|
|
4477 int main() {
|
|
4478 char* cs = nl_langinfo(CODESET);
|
|
4479 ; return 0; }
|
|
4480 EOF
|
|
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4482 rm -rf conftest*
|
|
4483 am_cv_langinfo_codeset=yes
|
|
4484 else
|
|
4485 echo "configure: failed program was:" >&5
|
|
4486 cat conftest.$ac_ext >&5
|
|
4487 rm -rf conftest*
|
|
4488 am_cv_langinfo_codeset=no
|
|
4489 fi
|
|
4490 rm -f conftest*
|
|
4491
|
|
4492 fi
|
|
4493
|
|
4494 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
|
|
4495 if test $am_cv_langinfo_codeset = yes; then
|
|
4496 cat >> confdefs.h <<\EOF
|
|
4497 #define HAVE_LANGINFO_CODESET 1
|
|
4498 EOF
|
|
4499
|
|
4500 fi
|
|
4501
|
|
4502 if test $ac_cv_header_locale_h = yes; then
|
|
4503 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
|
|
4504 echo "configure:4505: checking for LC_MESSAGES" >&5
|
|
4505 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
|
|
4506 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4507 else
|
|
4508 cat > conftest.$ac_ext <<EOF
|
|
4509 #line 4510 "configure"
|
|
4510 #include "confdefs.h"
|
|
4511 #include <locale.h>
|
|
4512 int main() {
|
|
4513 return LC_MESSAGES
|
|
4514 ; return 0; }
|
|
4515 EOF
|
|
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4517 rm -rf conftest*
|
|
4518 am_cv_val_LC_MESSAGES=yes
|
|
4519 else
|
|
4520 echo "configure: failed program was:" >&5
|
|
4521 cat conftest.$ac_ext >&5
|
|
4522 rm -rf conftest*
|
|
4523 am_cv_val_LC_MESSAGES=no
|
|
4524 fi
|
|
4525 rm -f conftest*
|
|
4526 fi
|
|
4527
|
|
4528 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
|
|
4529 if test $am_cv_val_LC_MESSAGES = yes; then
|
|
4530 cat >> confdefs.h <<\EOF
|
|
4531 #define HAVE_LC_MESSAGES 1
|
|
4532 EOF
|
|
4533
|
|
4534 fi
|
|
4535 fi
|
|
4536 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
|
|
4537 echo "configure:4538: checking whether NLS is requested" >&5
|
|
4538 # Check whether --enable-nls or --disable-nls was given.
|
|
4539 if test "${enable_nls+set}" = set; then
|
|
4540 enableval="$enable_nls"
|
|
4541 USE_NLS=$enableval
|
|
4542 else
|
|
4543 USE_NLS=yes
|
|
4544 fi
|
|
4545
|
|
4546 echo "$ac_t""$USE_NLS" 1>&6
|
|
4547
|
|
4548
|
|
4549 BUILD_INCLUDED_LIBINTL=no
|
|
4550 USE_INCLUDED_LIBINTL=no
|
|
4551 INTLLIBS=
|
|
4552
|
|
4553 if test "$USE_NLS" = "yes"; then
|
|
4554 cat >> confdefs.h <<\EOF
|
|
4555 #define ENABLE_NLS 1
|
|
4556 EOF
|
|
4557
|
|
4558 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
|
|
4559 echo "configure:4560: checking whether included gettext is requested" >&5
|
|
4560 # Check whether --with-included-gettext or --without-included-gettext was given.
|
|
4561 if test "${with_included_gettext+set}" = set; then
|
|
4562 withval="$with_included_gettext"
|
|
4563 nls_cv_force_use_gnu_gettext=$withval
|
|
4564 else
|
|
4565 nls_cv_force_use_gnu_gettext=no
|
|
4566 fi
|
|
4567
|
|
4568 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
|
|
4569
|
|
4570 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|
4571 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|
4572 CATOBJEXT=NONE
|
|
4573
|
|
4574
|
|
4575
|
|
4576
|
|
4577 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
|
|
4578 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
|
|
4579 echo "configure:4580: checking for libintl.h" >&5
|
|
4580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
4581 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4582 else
|
|
4583 cat > conftest.$ac_ext <<EOF
|
|
4584 #line 4585 "configure"
|
|
4585 #include "confdefs.h"
|
|
4586 #include <libintl.h>
|
|
4587 EOF
|
|
4588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
4589 { (eval echo configure:4590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
4590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
4591 if test -z "$ac_err"; then
|
|
4592 rm -rf conftest*
|
|
4593 eval "ac_cv_header_$ac_safe=yes"
|
|
4594 else
|
|
4595 echo "$ac_err" >&5
|
|
4596 echo "configure: failed program was:" >&5
|
|
4597 cat conftest.$ac_ext >&5
|
|
4598 rm -rf conftest*
|
|
4599 eval "ac_cv_header_$ac_safe=no"
|
|
4600 fi
|
|
4601 rm -f conftest*
|
|
4602 fi
|
|
4603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
4604 echo "$ac_t""yes" 1>&6
|
|
4605 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
|
|
4606 echo "configure:4607: checking for GNU gettext in libc" >&5
|
|
4607 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
|
|
4608 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4609 else
|
|
4610 cat > conftest.$ac_ext <<EOF
|
|
4611 #line 4612 "configure"
|
|
4612 #include "confdefs.h"
|
|
4613 #include <libintl.h>
|
|
4614 extern int _nl_msg_cat_cntr;
|
|
4615 int main() {
|
|
4616 bindtextdomain ("", "");
|
|
4617 return (int) gettext ("") + _nl_msg_cat_cntr
|
|
4618 ; return 0; }
|
|
4619 EOF
|
|
4620 if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4621 rm -rf conftest*
|
|
4622 gt_cv_func_gnugettext1_libc=yes
|
|
4623 else
|
|
4624 echo "configure: failed program was:" >&5
|
|
4625 cat conftest.$ac_ext >&5
|
|
4626 rm -rf conftest*
|
|
4627 gt_cv_func_gnugettext1_libc=no
|
|
4628 fi
|
|
4629 rm -f conftest*
|
|
4630 fi
|
|
4631
|
|
4632 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
|
|
4633
|
|
4634 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
|
|
4635 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
|
|
4636 echo "configure:4637: checking for GNU gettext in libintl" >&5
|
|
4637 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
|
|
4638 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4639 else
|
|
4640 gt_save_LIBS="$LIBS"
|
|
4641 LIBS="$LIBS -lintl $LIBICONV"
|
|
4642 cat > conftest.$ac_ext <<EOF
|
|
4643 #line 4644 "configure"
|
|
4644 #include "confdefs.h"
|
|
4645 #include <libintl.h>
|
|
4646 extern int _nl_msg_cat_cntr;
|
|
4647 int main() {
|
|
4648 bindtextdomain ("", "");
|
|
4649 return (int) gettext ("") + _nl_msg_cat_cntr
|
|
4650 ; return 0; }
|
|
4651 EOF
|
|
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4653 rm -rf conftest*
|
|
4654 gt_cv_func_gnugettext1_libintl=yes
|
|
4655 else
|
|
4656 echo "configure: failed program was:" >&5
|
|
4657 cat conftest.$ac_ext >&5
|
|
4658 rm -rf conftest*
|
|
4659 gt_cv_func_gnugettext1_libintl=no
|
|
4660 fi
|
|
4661 rm -f conftest*
|
|
4662 LIBS="$gt_save_LIBS"
|
|
4663 fi
|
|
4664
|
|
4665 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
|
|
4666 fi
|
|
4667
|
|
4668 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
|
|
4669 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
|
|
4670 && test "$PACKAGE" != gettext; }; then
|
|
4671 cat >> confdefs.h <<\EOF
|
|
4672 #define HAVE_GETTEXT 1
|
|
4673 EOF
|
|
4674
|
|
4675
|
|
4676 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
|
|
4677 INTLLIBS="-lintl $LIBICONV"
|
|
4678 fi
|
|
4679
|
|
4680 gt_save_LIBS="$LIBS"
|
|
4681 LIBS="$LIBS $INTLLIBS"
|
|
4682 for ac_func in dcgettext
|
|
4683 do
|
|
4684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
|
4685 echo "configure:4686: checking for $ac_func" >&5
|
|
4686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
|
4687 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4688 else
|
|
4689 cat > conftest.$ac_ext <<EOF
|
|
4690 #line 4691 "configure"
|
|
4691 #include "confdefs.h"
|
|
4692 /* System header to define __stub macros and hopefully few prototypes,
|
|
4693 which can conflict with char $ac_func(); below. */
|
|
4694 #include <assert.h>
|
|
4695 /* Override any gcc2 internal prototype to avoid an error. */
|
|
4696 /* We use char because int might match the return type of a gcc2
|
|
4697 builtin and then its argument prototype would still apply. */
|
|
4698 char $ac_func();
|
|
4699
|
|
4700 int main() {
|
|
4701
|
|
4702 /* The GNU C library defines this for functions which it implements
|
|
4703 to always fail with ENOSYS. Some functions are actually named
|
|
4704 something starting with __ and the normal name is an alias. */
|
|
4705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
4706 choke me
|
|
4707 #else
|
|
4708 $ac_func();
|
|
4709 #endif
|
|
4710
|
|
4711 ; return 0; }
|
|
4712 EOF
|
|
4713 if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
|
4714 rm -rf conftest*
|
|
4715 eval "ac_cv_func_$ac_func=yes"
|
|
4716 else
|
|
4717 echo "configure: failed program was:" >&5
|
|
4718 cat conftest.$ac_ext >&5
|
|
4719 rm -rf conftest*
|
|
4720 eval "ac_cv_func_$ac_func=no"
|
|
4721 fi
|
|
4722 rm -f conftest*
|
|
4723 fi
|
|
4724
|
|
4725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
|
|
4726 echo "$ac_t""yes" 1>&6
|
|
4727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
4728 cat >> confdefs.h <<EOF
|
|
4729 #define $ac_tr_func 1
|
|
4730 EOF
|
|
4731
|
|
4732 else
|
|
4733 echo "$ac_t""no" 1>&6
|
|
4734 fi
|
|
4735 done
|
|
4736
|
|
4737 LIBS="$gt_save_LIBS"
|
|
4738
|
|
4739 # Extract the first word of "msgfmt", so it can be a program name with args.
|
|
4740 set dummy msgfmt; ac_word=$2
|
|
4741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
4742 echo "configure:4743: checking for $ac_word" >&5
|
|
4743 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|
4744 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4745 else
|
|
4746 case "$MSGFMT" in
|
|
4747 /*)
|
|
4748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|
4749 ;;
|
|
4750 *)
|
|
4751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
4752 for ac_dir in $PATH; do
|
|
4753 test -z "$ac_dir" && ac_dir=.
|
|
4754 if test -f $ac_dir/$ac_word; then
|
|
4755 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
|
|
4756 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|
4757 break
|
|
4758 fi
|
|
4759 fi
|
|
4760 done
|
|
4761 IFS="$ac_save_ifs"
|
|
4762 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
|
|
4763 ;;
|
|
4764 esac
|
|
4765 fi
|
|
4766 MSGFMT="$ac_cv_path_MSGFMT"
|
|
4767 if test "$MSGFMT" != ":"; then
|
|
4768 echo "$ac_t""$MSGFMT" 1>&6
|
|
4769 else
|
|
4770 echo "$ac_t""no" 1>&6
|
|
4771 fi
|
|
4772
|
|
4773 # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|
4774 set dummy gmsgfmt; ac_word=$2
|
|
4775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
4776 echo "configure:4777: checking for $ac_word" >&5
|
|
4777 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|
4778 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4779 else
|
|
4780 case "$GMSGFMT" in
|
|
4781 /*)
|
|
4782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|
4783 ;;
|
|
4784 ?:/*)
|
|
4785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|
4786 ;;
|
|
4787 *)
|
|
4788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4789 ac_dummy="$PATH"
|
|
4790 for ac_dir in $ac_dummy; do
|
|
4791 test -z "$ac_dir" && ac_dir=.
|
|
4792 if test -f $ac_dir/$ac_word; then
|
|
4793 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|
4794 break
|
|
4795 fi
|
|
4796 done
|
|
4797 IFS="$ac_save_ifs"
|
|
4798 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|
4799 ;;
|
|
4800 esac
|
|
4801 fi
|
|
4802 GMSGFMT="$ac_cv_path_GMSGFMT"
|
|
4803 if test -n "$GMSGFMT"; then
|
|
4804 echo "$ac_t""$GMSGFMT" 1>&6
|
|
4805 else
|
|
4806 echo "$ac_t""no" 1>&6
|
|
4807 fi
|
|
4808
|
|
4809
|
|
4810 # Extract the first word of "xgettext", so it can be a program name with args.
|
|
4811 set dummy xgettext; ac_word=$2
|
|
4812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
4813 echo "configure:4814: checking for $ac_word" >&5
|
|
4814 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|
4815 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4816 else
|
|
4817 case "$XGETTEXT" in
|
|
4818 /*)
|
|
4819 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|
4820 ;;
|
|
4821 *)
|
|
4822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
4823 for ac_dir in $PATH; do
|
|
4824 test -z "$ac_dir" && ac_dir=.
|
|
4825 if test -f $ac_dir/$ac_word; then
|
|
4826 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
|
|
4827 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|
4828 break
|
|
4829 fi
|
|
4830 fi
|
|
4831 done
|
|
4832 IFS="$ac_save_ifs"
|
|
4833 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|
4834 ;;
|
|
4835 esac
|
|
4836 fi
|
|
4837 XGETTEXT="$ac_cv_path_XGETTEXT"
|
|
4838 if test "$XGETTEXT" != ":"; then
|
|
4839 echo "$ac_t""$XGETTEXT" 1>&6
|
|
4840 else
|
|
4841 echo "$ac_t""no" 1>&6
|
|
4842 fi
|
|
4843
|
|
4844
|
|
4845 CATOBJEXT=.gmo
|
|
4846 fi
|
|
4847
|
|
4848 else
|
|
4849 echo "$ac_t""no" 1>&6
|
|
4850 fi
|
|
4851
|
|
4852
|
|
4853 if test "$CATOBJEXT" = "NONE"; then
|
|
4854 nls_cv_use_gnu_gettext=yes
|
|
4855 fi
|
|
4856 fi
|
|
4857
|
|
4858 if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
4859 INTLOBJS="\$(GETTOBJS)"
|
|
4860 # Extract the first word of "msgfmt", so it can be a program name with args.
|
|
4861 set dummy msgfmt; ac_word=$2
|
|
4862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
4863 echo "configure:4864: checking for $ac_word" >&5
|
|
4864 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
|
4865 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4866 else
|
|
4867 case "$MSGFMT" in
|
|
4868 /*)
|
|
4869 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|
4870 ;;
|
|
4871 *)
|
|
4872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
4873 for ac_dir in $PATH; do
|
|
4874 test -z "$ac_dir" && ac_dir=.
|
|
4875 if test -f $ac_dir/$ac_word; then
|
|
4876 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
|
|
4877 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|
4878 break
|
|
4879 fi
|
|
4880 fi
|
|
4881 done
|
|
4882 IFS="$ac_save_ifs"
|
|
4883 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
|
|
4884 ;;
|
|
4885 esac
|
|
4886 fi
|
|
4887 MSGFMT="$ac_cv_path_MSGFMT"
|
|
4888 if test "$MSGFMT" != ":"; then
|
|
4889 echo "$ac_t""$MSGFMT" 1>&6
|
|
4890 else
|
|
4891 echo "$ac_t""no" 1>&6
|
|
4892 fi
|
|
4893
|
|
4894 # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|
4895 set dummy gmsgfmt; ac_word=$2
|
|
4896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
4897 echo "configure:4898: checking for $ac_word" >&5
|
|
4898 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
|
4899 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4900 else
|
|
4901 case "$GMSGFMT" in
|
|
4902 /*)
|
|
4903 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|
4904 ;;
|
|
4905 ?:/*)
|
|
4906 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
|
4907 ;;
|
|
4908 *)
|
|
4909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
4910 ac_dummy="$PATH"
|
|
4911 for ac_dir in $ac_dummy; do
|
|
4912 test -z "$ac_dir" && ac_dir=.
|
|
4913 if test -f $ac_dir/$ac_word; then
|
|
4914 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
|
4915 break
|
|
4916 fi
|
|
4917 done
|
|
4918 IFS="$ac_save_ifs"
|
|
4919 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|
4920 ;;
|
|
4921 esac
|
|
4922 fi
|
|
4923 GMSGFMT="$ac_cv_path_GMSGFMT"
|
|
4924 if test -n "$GMSGFMT"; then
|
|
4925 echo "$ac_t""$GMSGFMT" 1>&6
|
|
4926 else
|
|
4927 echo "$ac_t""no" 1>&6
|
|
4928 fi
|
|
4929
|
|
4930 # Extract the first word of "xgettext", so it can be a program name with args.
|
|
4931 set dummy xgettext; ac_word=$2
|
|
4932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
4933 echo "configure:4934: checking for $ac_word" >&5
|
|
4934 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
|
4935 echo $ac_n "(cached) $ac_c" 1>&6
|
|
4936 else
|
|
4937 case "$XGETTEXT" in
|
|
4938 /*)
|
|
4939 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|
4940 ;;
|
|
4941 *)
|
|
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
4943 for ac_dir in $PATH; do
|
|
4944 test -z "$ac_dir" && ac_dir=.
|
|
4945 if test -f $ac_dir/$ac_word; then
|
|
4946 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
|
|
4947 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|
4948 break
|
|
4949 fi
|
|
4950 fi
|
|
4951 done
|
|
4952 IFS="$ac_save_ifs"
|
|
4953 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|
4954 ;;
|
|
4955 esac
|
|
4956 fi
|
|
4957 XGETTEXT="$ac_cv_path_XGETTEXT"
|
|
4958 if test "$XGETTEXT" != ":"; then
|
|
4959 echo "$ac_t""$XGETTEXT" 1>&6
|
|
4960 else
|
|
4961 echo "$ac_t""no" 1>&6
|
|
4962 fi
|
|
4963
|
|
4964
|
|
4965 BUILD_INCLUDED_LIBINTL=yes
|
|
4966 USE_INCLUDED_LIBINTL=yes
|
|
4967 CATOBJEXT=.gmo
|
|
4968 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
|
|
4969 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
|
|
4970 fi
|
|
4971
|
|
4972 if test "$GMSGFMT" != ":"; then
|
|
4973 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
|
|
4974 : ;
|
|
4975 else
|
|
4976 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
|
|
4977 GMSGFMT=":"
|
|
4978 fi
|
|
4979 fi
|
|
4980
|
|
4981 if test "$XGETTEXT" != ":"; then
|
|
4982 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
|
|
4983 : ;
|
|
4984 else
|
|
4985 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
|
|
4986 XGETTEXT=":"
|
|
4987 fi
|
|
4988 fi
|
|
4989
|
|
4990 POSUB=po
|
|
4991 fi
|
|
4992
|
|
4993
|
|
4994
|
|
4995 if test "$PACKAGE" = gettext; then
|
|
4996 BUILD_INCLUDED_LIBINTL=yes
|
|
4997 fi
|
|
4998
|
|
4999 for ac_prog in bison
|
|
5000 do
|
|
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
5002 set dummy $ac_prog; ac_word=$2
|
|
5003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
5004 echo "configure:5005: checking for $ac_word" >&5
|
|
5005 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
|
|
5006 echo $ac_n "(cached) $ac_c" 1>&6
|
|
5007 else
|
|
5008 if test -n "$INTLBISON"; then
|
|
5009 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
|
|
5010 else
|
|
5011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
5012 ac_dummy="$PATH"
|
|
5013 for ac_dir in $ac_dummy; do
|
|
5014 test -z "$ac_dir" && ac_dir=.
|
|
5015 if test -f $ac_dir/$ac_word; then
|
|
5016 ac_cv_prog_INTLBISON="$ac_prog"
|
|
5017 break
|
|
5018 fi
|
|
5019 done
|
|
5020 IFS="$ac_save_ifs"
|
|
5021 fi
|
|
5022 fi
|
|
5023 INTLBISON="$ac_cv_prog_INTLBISON"
|
|
5024 if test -n "$INTLBISON"; then
|
|
5025 echo "$ac_t""$INTLBISON" 1>&6
|
|
5026 else
|
|
5027 echo "$ac_t""no" 1>&6
|
|
5028 fi
|
|
5029
|
|
5030 test -n "$INTLBISON" && break
|
|
5031 done
|
|
5032
|
|
5033 if test -z "$INTLBISON"; then
|
|
5034 ac_verc_fail=yes
|
|
5035 else
|
|
5036 echo $ac_n "checking version of bison""... $ac_c" 1>&6
|
|
5037 echo "configure:5038: checking version of bison" >&5
|
|
5038 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
|
|
5039 case $ac_prog_version in
|
|
5040 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
|
|
5041 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
|
|
5042 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
|
|
5043 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
|
|
5044 esac
|
|
5045 echo "$ac_t""$ac_prog_version" 1>&6
|
|
5046 fi
|
|
5047 if test $ac_verc_fail = yes; then
|
|
5048 INTLBISON=:
|
|
5049 fi
|
|
5050
|
|
5051 for lang in $ALL_LINGUAS; do
|
|
5052 GMOFILES="$GMOFILES $lang.gmo"
|
|
5053 POFILES="$POFILES $lang.po"
|
|
5054 done
|
|
5055
|
|
5056
|
|
5057
|
|
5058
|
|
5059
|
|
5060
|
|
5061
|
|
5062
|
|
5063
|
|
5064
|
|
5065
|
|
5066 nls_cv_header_intl=
|
|
5067 nls_cv_header_libgt=
|
|
5068
|
|
5069 DATADIRNAME=share
|
|
5070
|
|
5071
|
|
5072 INSTOBJEXT=.mo
|
|
5073
|
|
5074
|
|
5075 GENCAT=gencat
|
|
5076
|
|
5077
|
|
5078
|
|
5079 if test "x$CATOBJEXT" != "x"; then
|
|
5080 if test "x$ALL_LINGUAS" = "x"; then
|
|
5081 LINGUAS=
|
|
5082 else
|
|
5083 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
|
|
5084 echo "configure:5085: checking for catalogs to be installed" >&5
|
|
5085 NEW_LINGUAS=
|
|
5086 for presentlang in $ALL_LINGUAS; do
|
|
5087 useit=no
|
|
5088 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
|
|
5089 # Use the presentlang catalog if desiredlang is
|
|
5090 # a. equal to presentlang, or
|
|
5091 # b. a variant of presentlang (because in this case,
|
|
5092 # presentlang can be used as a fallback for messages
|
|
5093 # which are not translated in the desiredlang catalog).
|
|
5094 case "$desiredlang" in
|
|
5095 "$presentlang"*) useit=yes;;
|
|
5096 esac
|
|
5097 done
|
|
5098 if test $useit = yes; then
|
|
5099 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
|
|
5100 fi
|
|
5101 done
|
|
5102 LINGUAS=$NEW_LINGUAS
|
|
5103 echo "$ac_t""$LINGUAS" 1>&6
|
|
5104 fi
|
|
5105
|
|
5106 if test -n "$LINGUAS"; then
|
|
5107 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|
5108 fi
|
|
5109 fi
|
|
5110
|
|
5111 MKINSTALLDIRS=
|
|
5112 if test -n "$ac_aux_dir"; then
|
|
5113 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
|
|
5114 fi
|
|
5115 if test -z "$MKINSTALLDIRS"; then
|
|
5116 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
|
5117 fi
|
|
5118
|
|
5119
|
|
5120 INTL_LIBTOOL_SUFFIX_PREFIX=
|
|
5121
|
|
5122
|
|
5123
|
|
5124 trap '' 1 2 15
|
|
5125 cat > confcache <<\EOF
|
|
5126 # This file is a shell script that caches the results of configure
|
|
5127 # tests run on this system so they can be shared between configure
|
|
5128 # scripts and configure runs. It is not useful on other systems.
|
|
5129 # If it contains results you don't want to keep, you may remove or edit it.
|
|
5130 #
|
|
5131 # By default, configure uses ./config.cache as the cache file,
|
|
5132 # creating it if it does not exist already. You can give configure
|
|
5133 # the --cache-file=FILE option to use a different cache file; that is
|
|
5134 # what configure does when it calls configure scripts in
|
|
5135 # subdirectories, so they share the cache.
|
|
5136 # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
|
5137 # config.status only pays attention to the cache file if you give it the
|
|
5138 # --recheck option to rerun configure.
|
|
5139 #
|
|
5140 EOF
|
|
5141 # The following way of writing the cache mishandles newlines in values,
|
|
5142 # but we know of no workaround that is simple, portable, and efficient.
|
|
5143 # So, don't put newlines in cache variables' values.
|
|
5144 # Ultrix sh set writes to stderr and can't be redirected directly,
|
|
5145 # and sets the high bit in the cache file unless we assign to the vars.
|
|
5146 (set) 2>&1 |
|
|
5147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
|
5148 *ac_space=\ *)
|
|
5149 # `set' does not quote correctly, so add quotes (double-quote substitution
|
|
5150 # turns \\\\ into \\, and sed turns \\ into \).
|
|
5151 sed -n \
|
|
5152 -e "s/'/'\\\\''/g" \
|
|
5153 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
|
5154 ;;
|
|
5155 *)
|
|
5156 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
|
5157 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
|
5158 ;;
|
|
5159 esac >> confcache
|
|
5160 if cmp -s $cache_file confcache; then
|
|
5161 :
|
|
5162 else
|
|
5163 if test -w $cache_file; then
|
|
5164 echo "updating cache $cache_file"
|
|
5165 cat confcache > $cache_file
|
|
5166 else
|
|
5167 echo "not updating unwritable cache $cache_file"
|
|
5168 fi
|
|
5169 fi
|
|
5170 rm -f confcache
|
|
5171
|
|
5172 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
|
5173
|
|
5174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
5175 # Let make expand exec_prefix.
|
|
5176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
5177
|
|
5178 # Any assignment to VPATH causes Sun make to only execute
|
|
5179 # the first set of double-colon rules, so remove it if not needed.
|
|
5180 # If there is a colon in the path, we need to keep it.
|
|
5181 if test "x$srcdir" = x.; then
|
|
5182 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
|
5183 fi
|
|
5184
|
|
5185 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
|
5186
|
|
5187 DEFS=-DHAVE_CONFIG_H
|
|
5188
|
|
5189 # Without the "./", some shells look in PATH for config.status.
|
|
5190 : ${CONFIG_STATUS=./config.status}
|
|
5191
|
|
5192 echo creating $CONFIG_STATUS
|
|
5193 rm -f $CONFIG_STATUS
|
|
5194 cat > $CONFIG_STATUS <<EOF
|
|
5195 #! /bin/sh
|
|
5196 # Generated automatically by configure.
|
|
5197 # Run this file to recreate the current configuration.
|
|
5198 # This directory was configured as follows,
|
|
5199 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
|
5200 #
|
|
5201 # $0 $ac_configure_args
|
|
5202 #
|
|
5203 # Compiler output produced by configure, useful for debugging
|
|
5204 # configure, is in ./config.log if it exists.
|
|
5205
|
|
5206 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
|
5207 for ac_option
|
|
5208 do
|
|
5209 case "\$ac_option" in
|
|
5210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
|
5211 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
|
5212 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
|
5213 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
|
5214 echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
|
5215 exit 0 ;;
|
|
5216 -help | --help | --hel | --he | --h)
|
|
5217 echo "\$ac_cs_usage"; exit 0 ;;
|
|
5218 *) echo "\$ac_cs_usage"; exit 1 ;;
|
|
5219 esac
|
|
5220 done
|
|
5221
|
|
5222 ac_given_srcdir=$srcdir
|
|
5223 ac_given_INSTALL="$INSTALL"
|
|
5224
|
|
5225 trap 'rm -fr `echo "Makefile intl/Makefile po/Makefile.in docs/Makefile docs/sample.gftp/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile lib/Makefile gftp.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
|
5226 EOF
|
|
5227 cat >> $CONFIG_STATUS <<EOF
|
|
5228
|
|
5229 # Protect against being on the right side of a sed subst in config.status.
|
|
5230 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
|
5231 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
|
5232 $ac_vpsub
|
|
5233 $extrasub
|
|
5234 s%@SHELL@%$SHELL%g
|
|
5235 s%@CFLAGS@%$CFLAGS%g
|
|
5236 s%@CPPFLAGS@%$CPPFLAGS%g
|
|
5237 s%@CXXFLAGS@%$CXXFLAGS%g
|
|
5238 s%@FFLAGS@%$FFLAGS%g
|
|
5239 s%@DEFS@%$DEFS%g
|
|
5240 s%@LDFLAGS@%$LDFLAGS%g
|
|
5241 s%@LIBS@%$LIBS%g
|
|
5242 s%@exec_prefix@%$exec_prefix%g
|
|
5243 s%@prefix@%$prefix%g
|
|
5244 s%@program_transform_name@%$program_transform_name%g
|
|
5245 s%@bindir@%$bindir%g
|
|
5246 s%@sbindir@%$sbindir%g
|
|
5247 s%@libexecdir@%$libexecdir%g
|
|
5248 s%@datadir@%$datadir%g
|
|
5249 s%@sysconfdir@%$sysconfdir%g
|
|
5250 s%@sharedstatedir@%$sharedstatedir%g
|
|
5251 s%@localstatedir@%$localstatedir%g
|
|
5252 s%@libdir@%$libdir%g
|
|
5253 s%@includedir@%$includedir%g
|
|
5254 s%@oldincludedir@%$oldincludedir%g
|
|
5255 s%@infodir@%$infodir%g
|
|
5256 s%@mandir@%$mandir%g
|
|
5257 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
|
5258 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
|
5259 s%@INSTALL_DATA@%$INSTALL_DATA%g
|
|
5260 s%@PACKAGE@%$PACKAGE%g
|
|
5261 s%@VERSION@%$VERSION%g
|
|
5262 s%@ACLOCAL@%$ACLOCAL%g
|
|
5263 s%@AUTOCONF@%$AUTOCONF%g
|
|
5264 s%@AUTOMAKE@%$AUTOMAKE%g
|
|
5265 s%@AUTOHEADER@%$AUTOHEADER%g
|
|
5266 s%@MAKEINFO@%$MAKEINFO%g
|
|
5267 s%@SET_MAKE@%$SET_MAKE%g
|
|
5268 s%@PREFIX@%$PREFIX%g
|
|
5269 s%@host@%$host%g
|
|
5270 s%@host_alias@%$host_alias%g
|
|
5271 s%@host_cpu@%$host_cpu%g
|
|
5272 s%@host_vendor@%$host_vendor%g
|
|
5273 s%@host_os@%$host_os%g
|
|
5274 s%@AWK@%$AWK%g
|
|
5275 s%@CC@%$CC%g
|
|
5276 s%@LN_S@%$LN_S%g
|
|
5277 s%@RANLIB@%$RANLIB%g
|
|
5278 s%@CPP@%$CPP%g
|
|
5279 s%@ALLOCA@%$ALLOCA%g
|
|
5280 s%@PKG_CONFIG@%$PKG_CONFIG%g
|
|
5281 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
|
|
5282 s%@GLIB_LIBS@%$GLIB_LIBS%g
|
|
5283 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
|
|
5284 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
|
|
5285 s%@READLINE_LIBS@%$READLINE_LIBS%g
|
|
5286 s%@GFTP_TEXT@%$GFTP_TEXT%g
|
|
5287 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
|
|
5288 s%@GTK_LIBS@%$GTK_LIBS%g
|
|
5289 s%@GTK_CONFIG@%$GTK_CONFIG%g
|
|
5290 s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
|
|
5291 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
|
|
5292 s%@GFTP_GTK@%$GFTP_GTK%g
|
|
5293 s%@GLIBC21@%$GLIBC21%g
|
|
5294 s%@LIBICONV@%$LIBICONV%g
|
|
5295 s%@USE_NLS@%$USE_NLS%g
|
|
5296 s%@MSGFMT@%$MSGFMT%g
|
|
5297 s%@GMSGFMT@%$GMSGFMT%g
|
|
5298 s%@XGETTEXT@%$XGETTEXT%g
|
|
5299 s%@INTLBISON@%$INTLBISON%g
|
|
5300 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
|
|
5301 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
|
|
5302 s%@CATALOGS@%$CATALOGS%g
|
|
5303 s%@CATOBJEXT@%$CATOBJEXT%g
|
|
5304 s%@GMOFILES@%$GMOFILES%g
|
|
5305 s%@INTLLIBS@%$INTLLIBS%g
|
|
5306 s%@INTLOBJS@%$INTLOBJS%g
|
|
5307 s%@POFILES@%$POFILES%g
|
|
5308 s%@POSUB@%$POSUB%g
|
|
5309 s%@DATADIRNAME@%$DATADIRNAME%g
|
|
5310 s%@INSTOBJEXT@%$INSTOBJEXT%g
|
|
5311 s%@GENCAT@%$GENCAT%g
|
|
5312 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
|
|
5313 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
|
|
5314
|
|
5315 CEOF
|
|
5316 EOF
|
|
5317
|
|
5318 cat >> $CONFIG_STATUS <<\EOF
|
|
5319
|
|
5320 # Split the substitutions into bite-sized pieces for seds with
|
|
5321 # small command number limits, like on Digital OSF/1 and HP-UX.
|
|
5322 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
|
5323 ac_file=1 # Number of current file.
|
|
5324 ac_beg=1 # First line for current file.
|
|
5325 ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
|
5326 ac_more_lines=:
|
|
5327 ac_sed_cmds=""
|
|
5328 while $ac_more_lines; do
|
|
5329 if test $ac_beg -gt 1; then
|
|
5330 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
5331 else
|
|
5332 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
|
5333 fi
|
|
5334 if test ! -s conftest.s$ac_file; then
|
|
5335 ac_more_lines=false
|
|
5336 rm -f conftest.s$ac_file
|
|
5337 else
|
|
5338 if test -z "$ac_sed_cmds"; then
|
|
5339 ac_sed_cmds="sed -f conftest.s$ac_file"
|
|
5340 else
|
|
5341 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
|
5342 fi
|
|
5343 ac_file=`expr $ac_file + 1`
|
|
5344 ac_beg=$ac_end
|
|
5345 ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
|
5346 fi
|
|
5347 done
|
|
5348 if test -z "$ac_sed_cmds"; then
|
|
5349 ac_sed_cmds=cat
|
|
5350 fi
|
|
5351 EOF
|
|
5352
|
|
5353 cat >> $CONFIG_STATUS <<EOF
|
|
5354
|
|
5355 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile po/Makefile.in docs/Makefile docs/sample.gftp/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile lib/Makefile gftp.spec"}
|
|
5356 EOF
|
|
5357 cat >> $CONFIG_STATUS <<\EOF
|
|
5358 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
|
5359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
5360 case "$ac_file" in
|
|
5361 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
5362 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
5363 *) ac_file_in="${ac_file}.in" ;;
|
|
5364 esac
|
|
5365
|
|
5366 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
|
5367
|
|
5368 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
5369 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
5370 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
5371 # The file is in a subdirectory.
|
|
5372 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
5373 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
|
5374 # A "../" for each directory in $ac_dir_suffix.
|
|
5375 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
|
5376 else
|
|
5377 ac_dir_suffix= ac_dots=
|
|
5378 fi
|
|
5379
|
|
5380 case "$ac_given_srcdir" in
|
|
5381 .) srcdir=.
|
|
5382 if test -z "$ac_dots"; then top_srcdir=.
|
|
5383 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
|
5384 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
|
5385 *) # Relative path.
|
|
5386 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
|
5387 top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
5388 esac
|
|
5389
|
|
5390 case "$ac_given_INSTALL" in
|
|
5391 [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
|
5392 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
|
5393 esac
|
|
5394
|
|
5395 echo creating "$ac_file"
|
|
5396 rm -f "$ac_file"
|
|
5397 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
|
5398 case "$ac_file" in
|
|
5399 *Makefile*) ac_comsub="1i\\
|
|
5400 # $configure_input" ;;
|
|
5401 *) ac_comsub= ;;
|
|
5402 esac
|
|
5403
|
|
5404 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
5405 sed -e "$ac_comsub
|
|
5406 s%@configure_input@%$configure_input%g
|
|
5407 s%@srcdir@%$srcdir%g
|
|
5408 s%@top_srcdir@%$top_srcdir%g
|
|
5409 s%@INSTALL@%$INSTALL%g
|
|
5410 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
|
5411 fi; done
|
|
5412 rm -f conftest.s*
|
|
5413
|
|
5414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
|
5415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
|
5416 #
|
|
5417 # ac_d sets the value in "#define NAME VALUE" lines.
|
|
5418 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
|
5419 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
|
5420 ac_dC='\3'
|
|
5421 ac_dD='%g'
|
|
5422 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
|
5423 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
5424 ac_uB='\([ ]\)%\1#\2define\3'
|
|
5425 ac_uC=' '
|
|
5426 ac_uD='\4%g'
|
|
5427 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
|
5428 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
|
5429 ac_eB='$%\1#\2define\3'
|
|
5430 ac_eC=' '
|
|
5431 ac_eD='%g'
|
|
5432
|
|
5433 if test "${CONFIG_HEADERS+set}" != set; then
|
|
5434 EOF
|
|
5435 cat >> $CONFIG_STATUS <<EOF
|
|
5436 CONFIG_HEADERS="config.h"
|
|
5437 EOF
|
|
5438 cat >> $CONFIG_STATUS <<\EOF
|
|
5439 fi
|
|
5440 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
|
5441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
|
5442 case "$ac_file" in
|
|
5443 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
|
5444 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
5445 *) ac_file_in="${ac_file}.in" ;;
|
|
5446 esac
|
|
5447
|
|
5448 echo creating $ac_file
|
|
5449
|
|
5450 rm -f conftest.frag conftest.in conftest.out
|
|
5451 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
|
5452 cat $ac_file_inputs > conftest.in
|
|
5453
|
|
5454 EOF
|
|
5455
|
|
5456 # Transform confdefs.h into a sed script conftest.vals that substitutes
|
|
5457 # the proper values into config.h.in to produce config.h. And first:
|
|
5458 # Protect against being on the right side of a sed subst in config.status.
|
|
5459 # Protect against being in an unquoted here document in config.status.
|
|
5460 rm -f conftest.vals
|
|
5461 cat > conftest.hdr <<\EOF
|
|
5462 s/[\\&%]/\\&/g
|
|
5463 s%[\\$`]%\\&%g
|
|
5464 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
|
5465 s%ac_d%ac_u%gp
|
|
5466 s%ac_u%ac_e%gp
|
|
5467 EOF
|
|
5468 sed -n -f conftest.hdr confdefs.h > conftest.vals
|
|
5469 rm -f conftest.hdr
|
|
5470
|
|
5471 # This sed command replaces #undef with comments. This is necessary, for
|
|
5472 # example, in the case of _POSIX_SOURCE, which is predefined and required
|
|
5473 # on some systems where configure will not decide to define it.
|
|
5474 cat >> conftest.vals <<\EOF
|
|
5475 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
|
5476 EOF
|
|
5477
|
|
5478 # Break up conftest.vals because some shells have a limit on
|
|
5479 # the size of here documents, and old seds have small limits too.
|
|
5480
|
|
5481 rm -f conftest.tail
|
|
5482 while :
|
|
5483 do
|
|
5484 ac_lines=`grep -c . conftest.vals`
|
|
5485 # grep -c gives empty output for an empty file on some AIX systems.
|
|
5486 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
|
5487 # Write a limited-size here document to conftest.frag.
|
|
5488 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
|
5489 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
|
5490 echo 'CEOF
|
|
5491 sed -f conftest.frag conftest.in > conftest.out
|
|
5492 rm -f conftest.in
|
|
5493 mv conftest.out conftest.in
|
|
5494 ' >> $CONFIG_STATUS
|
|
5495 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
|
5496 rm -f conftest.vals
|
|
5497 mv conftest.tail conftest.vals
|
|
5498 done
|
|
5499 rm -f conftest.vals
|
|
5500
|
|
5501 cat >> $CONFIG_STATUS <<\EOF
|
|
5502 rm -f conftest.frag conftest.h
|
|
5503 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
|
5504 cat conftest.in >> conftest.h
|
|
5505 rm -f conftest.in
|
|
5506 if cmp -s $ac_file conftest.h 2>/dev/null; then
|
|
5507 echo "$ac_file is unchanged"
|
|
5508 rm -f conftest.h
|
|
5509 else
|
|
5510 # Remove last slash and all that follows it. Not all systems have dirname.
|
|
5511 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
|
5512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
|
5513 # The file is in a subdirectory.
|
|
5514 test ! -d "$ac_dir" && mkdir "$ac_dir"
|
|
5515 fi
|
|
5516 rm -f $ac_file
|
|
5517 mv conftest.h $ac_file
|
|
5518 fi
|
|
5519 fi; done
|
|
5520
|
|
5521 EOF
|
|
5522 cat >> $CONFIG_STATUS <<EOF
|
|
5523
|
|
5524
|
|
5525
|
|
5526 EOF
|
|
5527 cat >> $CONFIG_STATUS <<\EOF
|
|
5528 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
|
5529 for ac_file in $CONFIG_FILES; do
|
|
5530 # Support "outfile[:infile[:infile...]]"
|
|
5531 case "$ac_file" in
|
|
5532 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
5533 esac
|
|
5534 # PO directories have a Makefile.in generated from Makefile.in.in.
|
|
5535 case "$ac_file" in */Makefile.in)
|
|
5536 # Adjust a relative srcdir.
|
|
5537 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
5538 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
|
|
5539 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
5540 # In autoconf-2.13 it is called $ac_given_srcdir.
|
|
5541 # In autoconf-2.50 it is called $srcdir.
|
|
5542 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
5543 case "$ac_given_srcdir" in
|
|
5544 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
5545 /*) top_srcdir="$ac_given_srcdir" ;;
|
|
5546 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
5547 esac
|
|
5548 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
|
5549 rm -f "$ac_dir/POTFILES"
|
|
5550 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
|
5551 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
|
|
5552 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
|
5553 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
|
5554 fi
|
|
5555 ;;
|
|
5556 esac
|
|
5557 done
|
|
5558
|
|
5559 exit 0
|
|
5560 EOF
|
|
5561 chmod +x $CONFIG_STATUS
|
|
5562 rm -fr confdefs* $ac_clean_files
|
|
5563 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
|
5564
|