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