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