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_default_prefix=${KDEDIR:-/usr/local/kde}
|
---|
15 | ac_help="$ac_help
|
---|
16 | --disable-fast-perl disable fast Makefile generation (needs perl)"
|
---|
17 | ac_help="$ac_help
|
---|
18 | --enable-debug enables debug symbols [default=no]"
|
---|
19 | ac_help="$ac_help
|
---|
20 | --disable-debug disables debug output and debug symbols [default=no]"
|
---|
21 | ac_help="$ac_help
|
---|
22 | --enable-strict compiles with strict compiler options (may not work!)"
|
---|
23 | ac_help="$ac_help
|
---|
24 | --enable-profile creates profiling infos [default=no]"
|
---|
25 | ac_help="$ac_help
|
---|
26 | --enable-final build size optimized apps (experimental - needs lots of memory)"
|
---|
27 | ac_help="$ac_help
|
---|
28 | --disable-closure don't delay template instantiation"
|
---|
29 | ac_help="$ac_help
|
---|
30 | --enable-shared[=PKGS] build shared libraries [default=yes]"
|
---|
31 | ac_help="$ac_help
|
---|
32 | --enable-static[=PKGS] build static libraries [default=no]"
|
---|
33 | ac_help="$ac_help
|
---|
34 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
|
---|
35 | ac_help="$ac_help
|
---|
36 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
|
---|
37 | ac_help="$ac_help
|
---|
38 | --disable-libtool-lock avoid locking (might break parallel builds)"
|
---|
39 | ac_help="$ac_help
|
---|
40 | --with-pic try to use only PIC/non-PIC objects [default=use both]"
|
---|
41 | ac_help="$ac_help
|
---|
42 | --enable-mt link to threaded Qt (experimental)"
|
---|
43 | ac_help="$ac_help
|
---|
44 | --with-extra-includes=DIR
|
---|
45 | adds non standard include paths"
|
---|
46 | ac_help="$ac_help
|
---|
47 | --with-extra-libs=DIR adds non standard library paths"
|
---|
48 | ac_help="$ac_help
|
---|
49 | --with-qt-dir=DIR where the root of Qt is installed "
|
---|
50 | ac_help="$ac_help
|
---|
51 | --with-qt-includes=DIR where the Qt includes are. "
|
---|
52 | ac_help="$ac_help
|
---|
53 | --with-qt-libraries=DIR where the Qt library is installed."
|
---|
54 | ac_help="$ac_help
|
---|
55 | --disable-rpath do not use the rpath feature of ld"
|
---|
56 | ac_help="$ac_help
|
---|
57 | --disable-path-check don't try to find out, where to install"
|
---|
58 |
|
---|
59 | # Initialize some variables set by options.
|
---|
60 | # The variables have the same names as the options, with
|
---|
61 | # dashes changed to underlines.
|
---|
62 | build=NONE
|
---|
63 | cache_file=./config.cache
|
---|
64 | exec_prefix=NONE
|
---|
65 | host=NONE
|
---|
66 | no_create=
|
---|
67 | nonopt=NONE
|
---|
68 | no_recursion=
|
---|
69 | prefix=NONE
|
---|
70 | program_prefix=NONE
|
---|
71 | program_suffix=NONE
|
---|
72 | program_transform_name=s,x,x,
|
---|
73 | silent=
|
---|
74 | site=
|
---|
75 | srcdir=
|
---|
76 | target=NONE
|
---|
77 | verbose=
|
---|
78 | x_includes=NONE
|
---|
79 | x_libraries=NONE
|
---|
80 | bindir='${exec_prefix}/bin'
|
---|
81 | sbindir='${exec_prefix}/sbin'
|
---|
82 | libexecdir='${exec_prefix}/libexec'
|
---|
83 | datadir='${prefix}/share'
|
---|
84 | sysconfdir='${prefix}/etc'
|
---|
85 | sharedstatedir='${prefix}/com'
|
---|
86 | localstatedir='${prefix}/var'
|
---|
87 | libdir='${exec_prefix}/lib'
|
---|
88 | includedir='${prefix}/include'
|
---|
89 | oldincludedir='/usr/include'
|
---|
90 | infodir='${prefix}/info'
|
---|
91 | mandir='${prefix}/man'
|
---|
92 |
|
---|
93 | # Initialize some other variables.
|
---|
94 | subdirs=
|
---|
95 | MFLAGS= MAKEFLAGS=
|
---|
96 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
97 | # Maximum number of lines to put in a shell here document.
|
---|
98 | ac_max_here_lines=12
|
---|
99 |
|
---|
100 | ac_prev=
|
---|
101 | for ac_option
|
---|
102 | do
|
---|
103 |
|
---|
104 | # If the previous option needs an argument, assign it.
|
---|
105 | if test -n "$ac_prev"; then
|
---|
106 | eval "$ac_prev=\$ac_option"
|
---|
107 | ac_prev=
|
---|
108 | continue
|
---|
109 | fi
|
---|
110 |
|
---|
111 | case "$ac_option" in
|
---|
112 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
113 | *) ac_optarg= ;;
|
---|
114 | esac
|
---|
115 |
|
---|
116 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
117 |
|
---|
118 | case "$ac_option" in
|
---|
119 |
|
---|
120 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
121 | ac_prev=bindir ;;
|
---|
122 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
123 | bindir="$ac_optarg" ;;
|
---|
124 |
|
---|
125 | -build | --build | --buil | --bui | --bu)
|
---|
126 | ac_prev=build ;;
|
---|
127 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
128 | build="$ac_optarg" ;;
|
---|
129 |
|
---|
130 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
131 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
132 | ac_prev=cache_file ;;
|
---|
133 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
134 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
135 | cache_file="$ac_optarg" ;;
|
---|
136 |
|
---|
137 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
138 | ac_prev=datadir ;;
|
---|
139 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
140 | | --da=*)
|
---|
141 | datadir="$ac_optarg" ;;
|
---|
142 |
|
---|
143 | -disable-* | --disable-*)
|
---|
144 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
---|
145 | # Reject names that are not valid shell variable names.
|
---|
146 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
147 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
148 | fi
|
---|
149 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
150 | eval "enable_${ac_feature}=no" ;;
|
---|
151 |
|
---|
152 | -enable-* | --enable-*)
|
---|
153 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
---|
154 | # Reject names that are not valid shell variable names.
|
---|
155 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
156 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
---|
157 | fi
|
---|
158 | ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
---|
159 | case "$ac_option" in
|
---|
160 | *=*) ;;
|
---|
161 | *) ac_optarg=yes ;;
|
---|
162 | esac
|
---|
163 | eval "enable_${ac_feature}='$ac_optarg'" ;;
|
---|
164 |
|
---|
165 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
166 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
167 | | --exec | --exe | --ex)
|
---|
168 | ac_prev=exec_prefix ;;
|
---|
169 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
170 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
171 | | --exec=* | --exe=* | --ex=*)
|
---|
172 | exec_prefix="$ac_optarg" ;;
|
---|
173 |
|
---|
174 | -gas | --gas | --ga | --g)
|
---|
175 | # Obsolete; use --with-gas.
|
---|
176 | with_gas=yes ;;
|
---|
177 |
|
---|
178 | -help | --help | --hel | --he)
|
---|
179 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
180 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
181 | cat << EOF
|
---|
182 | Usage: configure [options] [host]
|
---|
183 | Options: [defaults in brackets after descriptions]
|
---|
184 | Configuration:
|
---|
185 | --cache-file=FILE cache test results in FILE
|
---|
186 | --help print this message
|
---|
187 | --no-create do not create output files
|
---|
188 | --quiet, --silent do not print \`checking...' messages
|
---|
189 | --version print the version of autoconf that created configure
|
---|
190 | Directory and file names:
|
---|
191 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
192 | [$ac_default_prefix]
|
---|
193 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
194 | [same as prefix]
|
---|
195 | --bindir=DIR user executables in DIR [EPREFIX/bin]
|
---|
196 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
---|
197 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
---|
198 | --datadir=DIR read-only architecture-independent data in DIR
|
---|
199 | [PREFIX/share]
|
---|
200 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
---|
201 | --sharedstatedir=DIR modifiable architecture-independent data in DIR
|
---|
202 | [PREFIX/com]
|
---|
203 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
---|
204 | --libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
---|
205 | --includedir=DIR C header files in DIR [PREFIX/include]
|
---|
206 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
---|
207 | --infodir=DIR info documentation in DIR [PREFIX/info]
|
---|
208 | --mandir=DIR man documentation in DIR [PREFIX/man]
|
---|
209 | --srcdir=DIR find the sources in DIR [configure dir or ..]
|
---|
210 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
211 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
212 | --program-transform-name=PROGRAM
|
---|
213 | run sed PROGRAM on installed program names
|
---|
214 | EOF
|
---|
215 | cat << EOF
|
---|
216 | Host type:
|
---|
217 | --build=BUILD configure for building on BUILD [BUILD=HOST]
|
---|
218 | --host=HOST configure for HOST [guessed]
|
---|
219 | --target=TARGET configure for TARGET [TARGET=HOST]
|
---|
220 | Features and packages:
|
---|
221 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
222 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
223 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
224 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
225 | --x-includes=DIR X include files are in DIR
|
---|
226 | --x-libraries=DIR X library files are in DIR
|
---|
227 | EOF
|
---|
228 | if test -n "$ac_help"; then
|
---|
229 | echo "--enable and --with options recognized:$ac_help"
|
---|
230 | fi
|
---|
231 | exit 0 ;;
|
---|
232 |
|
---|
233 | -host | --host | --hos | --ho)
|
---|
234 | ac_prev=host ;;
|
---|
235 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
236 | host="$ac_optarg" ;;
|
---|
237 |
|
---|
238 | -includedir | --includedir | --includedi | --included | --include \
|
---|
239 | | --includ | --inclu | --incl | --inc)
|
---|
240 | ac_prev=includedir ;;
|
---|
241 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
242 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
243 | includedir="$ac_optarg" ;;
|
---|
244 |
|
---|
245 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
246 | ac_prev=infodir ;;
|
---|
247 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
248 | infodir="$ac_optarg" ;;
|
---|
249 |
|
---|
250 | -libdir | --libdir | --libdi | --libd)
|
---|
251 | ac_prev=libdir ;;
|
---|
252 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
253 | libdir="$ac_optarg" ;;
|
---|
254 |
|
---|
255 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
256 | | --libexe | --libex | --libe)
|
---|
257 | ac_prev=libexecdir ;;
|
---|
258 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
259 | | --libexe=* | --libex=* | --libe=*)
|
---|
260 | libexecdir="$ac_optarg" ;;
|
---|
261 |
|
---|
262 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
263 | | --localstate | --localstat | --localsta | --localst \
|
---|
264 | | --locals | --local | --loca | --loc | --lo)
|
---|
265 | ac_prev=localstatedir ;;
|
---|
266 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
267 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
268 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
269 | localstatedir="$ac_optarg" ;;
|
---|
270 |
|
---|
271 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
272 | ac_prev=mandir ;;
|
---|
273 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
274 | mandir="$ac_optarg" ;;
|
---|
275 |
|
---|
276 | -nfp | --nfp | --nf)
|
---|
277 | # Obsolete; use --without-fp.
|
---|
278 | with_fp=no ;;
|
---|
279 |
|
---|
280 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
281 | | --no-cr | --no-c)
|
---|
282 | no_create=yes ;;
|
---|
283 |
|
---|
284 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
285 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
286 | no_recursion=yes ;;
|
---|
287 |
|
---|
288 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
289 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
290 | | --oldin | --oldi | --old | --ol | --o)
|
---|
291 | ac_prev=oldincludedir ;;
|
---|
292 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
293 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
294 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
295 | oldincludedir="$ac_optarg" ;;
|
---|
296 |
|
---|
297 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
298 | ac_prev=prefix ;;
|
---|
299 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
300 | prefix="$ac_optarg" ;;
|
---|
301 |
|
---|
302 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
303 | | --program-pre | --program-pr | --program-p)
|
---|
304 | ac_prev=program_prefix ;;
|
---|
305 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
306 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
307 | program_prefix="$ac_optarg" ;;
|
---|
308 |
|
---|
309 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
310 | | --program-suf | --program-su | --program-s)
|
---|
311 | ac_prev=program_suffix ;;
|
---|
312 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
313 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
314 | program_suffix="$ac_optarg" ;;
|
---|
315 |
|
---|
316 | -program-transform-name | --program-transform-name \
|
---|
317 | | --program-transform-nam | --program-transform-na \
|
---|
318 | | --program-transform-n | --program-transform- \
|
---|
319 | | --program-transform | --program-transfor \
|
---|
320 | | --program-transfo | --program-transf \
|
---|
321 | | --program-trans | --program-tran \
|
---|
322 | | --progr-tra | --program-tr | --program-t)
|
---|
323 | ac_prev=program_transform_name ;;
|
---|
324 | -program-transform-name=* | --program-transform-name=* \
|
---|
325 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
326 | | --program-transform-n=* | --program-transform-=* \
|
---|
327 | | --program-transform=* | --program-transfor=* \
|
---|
328 | | --program-transfo=* | --program-transf=* \
|
---|
329 | | --program-trans=* | --program-tran=* \
|
---|
330 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
331 | program_transform_name="$ac_optarg" ;;
|
---|
332 |
|
---|
333 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
334 | | -silent | --silent | --silen | --sile | --sil)
|
---|
335 | silent=yes ;;
|
---|
336 |
|
---|
337 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
338 | ac_prev=sbindir ;;
|
---|
339 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
340 | | --sbi=* | --sb=*)
|
---|
341 | sbindir="$ac_optarg" ;;
|
---|
342 |
|
---|
343 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
344 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
345 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
346 | | --sha | --sh)
|
---|
347 | ac_prev=sharedstatedir ;;
|
---|
348 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
349 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
350 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
351 | | --sha=* | --sh=*)
|
---|
352 | sharedstatedir="$ac_optarg" ;;
|
---|
353 |
|
---|
354 | -site | --site | --sit)
|
---|
355 | ac_prev=site ;;
|
---|
356 | -site=* | --site=* | --sit=*)
|
---|
357 | site="$ac_optarg" ;;
|
---|
358 |
|
---|
359 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
360 | ac_prev=srcdir ;;
|
---|
361 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
362 | srcdir="$ac_optarg" ;;
|
---|
363 |
|
---|
364 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
365 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
366 | ac_prev=sysconfdir ;;
|
---|
367 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
368 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
369 | sysconfdir="$ac_optarg" ;;
|
---|
370 |
|
---|
371 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
372 | ac_prev=target ;;
|
---|
373 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
374 | target="$ac_optarg" ;;
|
---|
375 |
|
---|
376 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
377 | verbose=yes ;;
|
---|
378 |
|
---|
379 | -version | --version | --versio | --versi | --vers)
|
---|
380 | echo "configure generated by autoconf version 2.13"
|
---|
381 | exit 0 ;;
|
---|
382 |
|
---|
383 | -with-* | --with-*)
|
---|
384 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
---|
385 | # Reject names that are not valid shell variable names.
|
---|
386 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
---|
387 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
388 | fi
|
---|
389 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
390 | case "$ac_option" in
|
---|
391 | *=*) ;;
|
---|
392 | *) ac_optarg=yes ;;
|
---|
393 | esac
|
---|
394 | eval "with_${ac_package}='$ac_optarg'" ;;
|
---|
395 |
|
---|
396 | -without-* | --without-*)
|
---|
397 | ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
---|
398 | # Reject names that are not valid shell variable names.
|
---|
399 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
---|
400 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
---|
401 | fi
|
---|
402 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
403 | eval "with_${ac_package}=no" ;;
|
---|
404 |
|
---|
405 | --x)
|
---|
406 | # Obsolete; use --with-x.
|
---|
407 | with_x=yes ;;
|
---|
408 |
|
---|
409 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
410 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
411 | ac_prev=x_includes ;;
|
---|
412 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
413 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
414 | x_includes="$ac_optarg" ;;
|
---|
415 |
|
---|
416 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
417 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
418 | ac_prev=x_libraries ;;
|
---|
419 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
420 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
421 | x_libraries="$ac_optarg" ;;
|
---|
422 |
|
---|
423 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
---|
424 | ;;
|
---|
425 |
|
---|
426 | *)
|
---|
427 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
---|
428 | echo "configure: warning: $ac_option: invalid host type" 1>&2
|
---|
429 | fi
|
---|
430 | if test "x$nonopt" != xNONE; then
|
---|
431 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
---|
432 | fi
|
---|
433 | nonopt="$ac_option"
|
---|
434 | ;;
|
---|
435 |
|
---|
436 | esac
|
---|
437 | done
|
---|
438 |
|
---|
439 | if test -n "$ac_prev"; then
|
---|
440 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
---|
441 | fi
|
---|
442 |
|
---|
443 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
444 |
|
---|
445 | # File descriptor usage:
|
---|
446 | # 0 standard input
|
---|
447 | # 1 file creation
|
---|
448 | # 2 errors and warnings
|
---|
449 | # 3 some systems may open it to /dev/tty
|
---|
450 | # 4 used on the Kubota Titan
|
---|
451 | # 6 checking for... messages and results
|
---|
452 | # 5 compiler messages saved in config.log
|
---|
453 | if test "$silent" = yes; then
|
---|
454 | exec 6>/dev/null
|
---|
455 | else
|
---|
456 | exec 6>&1
|
---|
457 | fi
|
---|
458 | exec 5>./config.log
|
---|
459 |
|
---|
460 | echo "\
|
---|
461 | This file contains any messages produced by compilers while
|
---|
462 | running configure, to aid debugging if configure makes a mistake.
|
---|
463 | " 1>&5
|
---|
464 |
|
---|
465 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
466 | # Also quote any args containing shell metacharacters.
|
---|
467 | ac_configure_args=
|
---|
468 | for ac_arg
|
---|
469 | do
|
---|
470 | case "$ac_arg" in
|
---|
471 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
472 | | --no-cr | --no-c) ;;
|
---|
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
---|
475 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
---|
476 | ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
477 | *) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
---|
478 | esac
|
---|
479 | done
|
---|
480 |
|
---|
481 | # NLS nuisances.
|
---|
482 | # Only set these to C if already set. These must not be set unconditionally
|
---|
483 | # because not all systems understand e.g. LANG=C (notably SCO).
|
---|
484 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
---|
485 | # Non-C LC_CTYPE values break the ctype check.
|
---|
486 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
---|
487 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
---|
488 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
---|
489 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
---|
490 |
|
---|
491 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
492 | rm -rf conftest* confdefs.h
|
---|
493 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
494 | echo > confdefs.h
|
---|
495 |
|
---|
496 | # A filename unique to this package, relative to the directory that
|
---|
497 | # configure is in, which we can look for to find out if srcdir is correct.
|
---|
498 | ac_unique_file=acinclude.m4
|
---|
499 |
|
---|
500 | # Find the source files, if location was not specified.
|
---|
501 | if test -z "$srcdir"; then
|
---|
502 | ac_srcdir_defaulted=yes
|
---|
503 | # Try the directory containing this script, then its parent.
|
---|
504 | ac_prog=$0
|
---|
505 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
---|
506 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
---|
507 | srcdir=$ac_confdir
|
---|
508 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
509 | srcdir=..
|
---|
510 | fi
|
---|
511 | else
|
---|
512 | ac_srcdir_defaulted=no
|
---|
513 | fi
|
---|
514 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
515 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
516 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
---|
517 | else
|
---|
518 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
---|
519 | fi
|
---|
520 | fi
|
---|
521 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
---|
522 |
|
---|
523 | # Prefer explicitly selected file to automatically selected ones.
|
---|
524 | if test -z "$CONFIG_SITE"; then
|
---|
525 | if test "x$prefix" != xNONE; then
|
---|
526 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
527 | else
|
---|
528 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
529 | fi
|
---|
530 | fi
|
---|
531 | for ac_site_file in $CONFIG_SITE; do
|
---|
532 | if test -r "$ac_site_file"; then
|
---|
533 | echo "loading site script $ac_site_file"
|
---|
534 | . "$ac_site_file"
|
---|
535 | fi
|
---|
536 | done
|
---|
537 |
|
---|
538 | if test -r "$cache_file"; then
|
---|
539 | echo "loading cache $cache_file"
|
---|
540 | . $cache_file
|
---|
541 | else
|
---|
542 | echo "creating cache $cache_file"
|
---|
543 | > $cache_file
|
---|
544 | fi
|
---|
545 |
|
---|
546 | ac_ext=c
|
---|
547 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
548 | ac_cpp='$CPP $CPPFLAGS'
|
---|
549 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
550 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
551 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
552 |
|
---|
553 | ac_exeext=
|
---|
554 | ac_objext=o
|
---|
555 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
---|
556 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
---|
557 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
---|
558 | ac_n= ac_c='
|
---|
559 | ' ac_t=' '
|
---|
560 | else
|
---|
561 | ac_n=-n ac_c= ac_t=
|
---|
562 | fi
|
---|
563 | else
|
---|
564 | ac_n= ac_c='\c' ac_t=
|
---|
565 | fi
|
---|
566 |
|
---|
567 |
|
---|
568 | ac_aux_dir=
|
---|
569 | for ac_dir in admin $srcdir/admin; do
|
---|
570 | if test -f $ac_dir/install-sh; then
|
---|
571 | ac_aux_dir=$ac_dir
|
---|
572 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
573 | break
|
---|
574 | elif test -f $ac_dir/install.sh; then
|
---|
575 | ac_aux_dir=$ac_dir
|
---|
576 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
577 | break
|
---|
578 | fi
|
---|
579 | done
|
---|
580 | if test -z "$ac_aux_dir"; then
|
---|
581 | { echo "configure: error: can not find install-sh or install.sh in admin $srcdir/admin" 1>&2; exit 1; }
|
---|
582 | fi
|
---|
583 | ac_config_guess=$ac_aux_dir/config.guess
|
---|
584 | ac_config_sub=$ac_aux_dir/config.sub
|
---|
585 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
---|
586 |
|
---|
587 |
|
---|
588 |
|
---|
589 | # Do some error checking and defaulting for the host and target type.
|
---|
590 | # The inputs are:
|
---|
591 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT
|
---|
592 | #
|
---|
593 | # The rules are:
|
---|
594 | # 1. You are not allowed to specify --host, --target, and nonopt at the
|
---|
595 | # same time.
|
---|
596 | # 2. Host defaults to nonopt.
|
---|
597 | # 3. If nonopt is not specified, then host defaults to the current host,
|
---|
598 | # as determined by config.guess.
|
---|
599 | # 4. Target and build default to nonopt.
|
---|
600 | # 5. If nonopt is not specified, then target and build default to host.
|
---|
601 |
|
---|
602 | # The aliases save the names the user supplied, while $host etc.
|
---|
603 | # will get canonicalized.
|
---|
604 | case $host---$target---$nonopt in
|
---|
605 | NONE---*---* | *---NONE---* | *---*---NONE) ;;
|
---|
606 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
|
---|
607 | esac
|
---|
608 |
|
---|
609 |
|
---|
610 | # Make sure we can run config.sub.
|
---|
611 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
|
---|
612 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
---|
613 | fi
|
---|
614 |
|
---|
615 | echo $ac_n "checking host system type""... $ac_c" 1>&6
|
---|
616 | echo "configure:617: checking host system type" >&5
|
---|
617 |
|
---|
618 | host_alias=$host
|
---|
619 | case "$host_alias" in
|
---|
620 | NONE)
|
---|
621 | case $nonopt in
|
---|
622 | NONE)
|
---|
623 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
|
---|
624 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
|
---|
625 | fi ;;
|
---|
626 | *) host_alias=$nonopt ;;
|
---|
627 | esac ;;
|
---|
628 | esac
|
---|
629 |
|
---|
630 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
|
---|
631 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
632 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
633 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
634 | echo "$ac_t""$host" 1>&6
|
---|
635 |
|
---|
636 | echo $ac_n "checking target system type""... $ac_c" 1>&6
|
---|
637 | echo "configure:638: checking target system type" >&5
|
---|
638 |
|
---|
639 | target_alias=$target
|
---|
640 | case "$target_alias" in
|
---|
641 | NONE)
|
---|
642 | case $nonopt in
|
---|
643 | NONE) target_alias=$host_alias ;;
|
---|
644 | *) target_alias=$nonopt ;;
|
---|
645 | esac ;;
|
---|
646 | esac
|
---|
647 |
|
---|
648 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
|
---|
649 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
650 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
651 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
652 | echo "$ac_t""$target" 1>&6
|
---|
653 |
|
---|
654 | echo $ac_n "checking build system type""... $ac_c" 1>&6
|
---|
655 | echo "configure:656: checking build system type" >&5
|
---|
656 |
|
---|
657 | build_alias=$build
|
---|
658 | case "$build_alias" in
|
---|
659 | NONE)
|
---|
660 | case $nonopt in
|
---|
661 | NONE) build_alias=$host_alias ;;
|
---|
662 | *) build_alias=$nonopt ;;
|
---|
663 | esac ;;
|
---|
664 | esac
|
---|
665 |
|
---|
666 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
|
---|
667 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
668 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
669 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
670 | echo "$ac_t""$build" 1>&6
|
---|
671 |
|
---|
672 | test "$host_alias" != "$target_alias" &&
|
---|
673 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
674 | NONENONEs,x,x, &&
|
---|
675 | program_prefix=${target_alias}-
|
---|
676 |
|
---|
677 | if test "$program_transform_name" = s,x,x,; then
|
---|
678 | program_transform_name=
|
---|
679 | else
|
---|
680 | # Double any \ or $. echo might interpret backslashes.
|
---|
681 | cat <<\EOF_SED > conftestsed
|
---|
682 | s,\\,\\\\,g; s,\$,$$,g
|
---|
683 | EOF_SED
|
---|
684 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
685 | rm -f conftestsed
|
---|
686 | fi
|
---|
687 | test "$program_prefix" != NONE &&
|
---|
688 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
689 | # Use a double $ so make ignores it.
|
---|
690 | test "$program_suffix" != NONE &&
|
---|
691 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
692 |
|
---|
693 | # sed with no file args requires a program.
|
---|
694 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
695 |
|
---|
696 |
|
---|
697 |
|
---|
698 |
|
---|
699 | test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
|
---|
700 | test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
|
---|
701 | test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
|
---|
702 | # Find a good install program. We prefer a C program (faster),
|
---|
703 | # so one script is as good as another. But avoid the broken or
|
---|
704 | # incompatible versions:
|
---|
705 | # SysV /etc/install, /usr/sbin/install
|
---|
706 | # SunOS /usr/etc/install
|
---|
707 | # IRIX /sbin/install
|
---|
708 | # AIX /bin/install
|
---|
709 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
710 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
711 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
712 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
713 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
---|
714 | echo "configure:715: checking for a BSD compatible install" >&5
|
---|
715 | if test -z "$INSTALL"; then
|
---|
716 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
---|
717 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
718 | else
|
---|
719 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
|
---|
720 | for ac_dir in $PATH; do
|
---|
721 | # Account for people who put trailing slashes in PATH elements.
|
---|
722 | case "$ac_dir/" in
|
---|
723 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
---|
724 | *)
|
---|
725 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
726 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
727 | # by default.
|
---|
728 | for ac_prog in ginstall scoinst install; do
|
---|
729 | if test -f $ac_dir/$ac_prog; then
|
---|
730 | if test $ac_prog = install &&
|
---|
731 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
---|
732 | # AIX install. It has an incompatible calling convention.
|
---|
733 | :
|
---|
734 | else
|
---|
735 | ac_cv_path_install="$ac_dir/$ac_prog -c"
|
---|
736 | break 2
|
---|
737 | fi
|
---|
738 | fi
|
---|
739 | done
|
---|
740 | ;;
|
---|
741 | esac
|
---|
742 | done
|
---|
743 | IFS="$ac_save_IFS"
|
---|
744 |
|
---|
745 | fi
|
---|
746 | if test "${ac_cv_path_install+set}" = set; then
|
---|
747 | INSTALL="$ac_cv_path_install"
|
---|
748 | else
|
---|
749 | # As a last resort, use the slow shell script. We don't cache a
|
---|
750 | # path for INSTALL within a source directory, because that will
|
---|
751 | # break other packages using the cache if that directory is
|
---|
752 | # removed, or if the path is relative.
|
---|
753 | INSTALL="$ac_install_sh"
|
---|
754 | fi
|
---|
755 | fi
|
---|
756 | echo "$ac_t""$INSTALL" 1>&6
|
---|
757 |
|
---|
758 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
759 | # It thinks the first close brace ends the variable substitution.
|
---|
760 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
761 |
|
---|
762 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
---|
763 |
|
---|
764 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
765 |
|
---|
766 |
|
---|
767 | if test -z "$kde_save_INSTALL_given" ; then
|
---|
768 | # OK, user hasn't given any INSTALL, autoconf found one for us
|
---|
769 | # now we test, if it supports the -p flag
|
---|
770 | echo $ac_n "checking for -p flag to install""... $ac_c" 1>&6
|
---|
771 | echo "configure:772: checking for -p flag to install" >&5
|
---|
772 | rm -f confinst.$$.* > /dev/null 2>&1
|
---|
773 | echo "Testtest" > confinst.$$.orig
|
---|
774 | ac_res=no
|
---|
775 | if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
|
---|
776 | if test -f confinst.$$.new ; then
|
---|
777 | # OK, -p seems to do no harm to install
|
---|
778 | INSTALL="${INSTALL} -p"
|
---|
779 | ac_res=yes
|
---|
780 | fi
|
---|
781 | fi
|
---|
782 | rm -f confinst.$$.*
|
---|
783 | echo "$ac_t""$ac_res" 1>&6
|
---|
784 | fi
|
---|
785 |
|
---|
786 | if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
|
---|
787 | INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
|
---|
788 | fi
|
---|
789 | if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
|
---|
790 | INSTALL_SCRIPT='${INSTALL}'
|
---|
791 | fi
|
---|
792 |
|
---|
793 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
---|
794 | echo "configure:795: checking whether build environment is sane" >&5
|
---|
795 | # Just in case
|
---|
796 | sleep 1
|
---|
797 | echo timestamp > conftestfile
|
---|
798 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
799 | # arguments. Must try -L first in case configure is actually a
|
---|
800 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
801 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
802 | # directory).
|
---|
803 | if (
|
---|
804 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
---|
805 | if test "$*" = "X"; then
|
---|
806 | # -L didn't work.
|
---|
807 | set X `ls -t $srcdir/configure conftestfile`
|
---|
808 | fi
|
---|
809 | if test "$*" != "X $srcdir/configure conftestfile" \
|
---|
810 | && test "$*" != "X conftestfile $srcdir/configure"; then
|
---|
811 |
|
---|
812 | # If neither matched, then we have a broken ls. This can happen
|
---|
813 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
814 | # broken ls alias from the environment. This has actually
|
---|
815 | # happened. Such a system could not be considered "sane".
|
---|
816 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
|
---|
817 | alias in your environment" 1>&2; exit 1; }
|
---|
818 | fi
|
---|
819 |
|
---|
820 | test "$2" = conftestfile
|
---|
821 | )
|
---|
822 | then
|
---|
823 | # Ok.
|
---|
824 | :
|
---|
825 | else
|
---|
826 | { echo "configure: error: newly created file is older than distributed files!
|
---|
827 | Check your system clock" 1>&2; exit 1; }
|
---|
828 | fi
|
---|
829 | rm -f conftest*
|
---|
830 | echo "$ac_t""yes" 1>&6
|
---|
831 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
---|
832 | echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
---|
833 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
---|
834 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
---|
835 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
836 | else
|
---|
837 | cat > conftestmake <<\EOF
|
---|
838 | all:
|
---|
839 | @echo 'ac_maketemp="${MAKE}"'
|
---|
840 | EOF
|
---|
841 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
842 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
|
---|
843 | if test -n "$ac_maketemp"; then
|
---|
844 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
845 | else
|
---|
846 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
847 | fi
|
---|
848 | rm -f conftestmake
|
---|
849 | fi
|
---|
850 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
851 | echo "$ac_t""yes" 1>&6
|
---|
852 | SET_MAKE=
|
---|
853 | else
|
---|
854 | echo "$ac_t""no" 1>&6
|
---|
855 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
856 | fi
|
---|
857 |
|
---|
858 |
|
---|
859 | PACKAGE=activemirrorcontrol
|
---|
860 |
|
---|
861 | VERSION=0.1
|
---|
862 |
|
---|
863 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
864 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
---|
865 | fi
|
---|
866 | cat >> confdefs.h <<EOF
|
---|
867 | #define PACKAGE "$PACKAGE"
|
---|
868 | EOF
|
---|
869 |
|
---|
870 | cat >> confdefs.h <<EOF
|
---|
871 | #define VERSION "$VERSION"
|
---|
872 | EOF
|
---|
873 |
|
---|
874 |
|
---|
875 |
|
---|
876 | missing_dir=`cd $ac_aux_dir && pwd`
|
---|
877 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
---|
878 | echo "configure:879: checking for working aclocal" >&5
|
---|
879 | # Run test in a subshell; some versions of sh will print an error if
|
---|
880 | # an executable is not found, even if stderr is redirected.
|
---|
881 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
882 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then
|
---|
883 | ACLOCAL=aclocal
|
---|
884 | echo "$ac_t""found" 1>&6
|
---|
885 | else
|
---|
886 | ACLOCAL="$missing_dir/missing aclocal"
|
---|
887 | echo "$ac_t""missing" 1>&6
|
---|
888 | fi
|
---|
889 |
|
---|
890 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
---|
891 | echo "configure:892: checking for working autoconf" >&5
|
---|
892 | # Run test in a subshell; some versions of sh will print an error if
|
---|
893 | # an executable is not found, even if stderr is redirected.
|
---|
894 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
895 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then
|
---|
896 | AUTOCONF=autoconf
|
---|
897 | echo "$ac_t""found" 1>&6
|
---|
898 | else
|
---|
899 | AUTOCONF="$missing_dir/missing autoconf"
|
---|
900 | echo "$ac_t""missing" 1>&6
|
---|
901 | fi
|
---|
902 |
|
---|
903 | echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
---|
904 | echo "configure:905: checking for working automake" >&5
|
---|
905 | # Run test in a subshell; some versions of sh will print an error if
|
---|
906 | # an executable is not found, even if stderr is redirected.
|
---|
907 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
908 | if (automake --version) < /dev/null > /dev/null 2>&1; then
|
---|
909 | AUTOMAKE=automake
|
---|
910 | echo "$ac_t""found" 1>&6
|
---|
911 | else
|
---|
912 | AUTOMAKE="$missing_dir/missing automake"
|
---|
913 | echo "$ac_t""missing" 1>&6
|
---|
914 | fi
|
---|
915 |
|
---|
916 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
---|
917 | echo "configure:918: checking for working autoheader" >&5
|
---|
918 | # Run test in a subshell; some versions of sh will print an error if
|
---|
919 | # an executable is not found, even if stderr is redirected.
|
---|
920 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
921 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then
|
---|
922 | AUTOHEADER=autoheader
|
---|
923 | echo "$ac_t""found" 1>&6
|
---|
924 | else
|
---|
925 | AUTOHEADER="$missing_dir/missing autoheader"
|
---|
926 | echo "$ac_t""missing" 1>&6
|
---|
927 | fi
|
---|
928 |
|
---|
929 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
---|
930 | echo "configure:931: checking for working makeinfo" >&5
|
---|
931 | # Run test in a subshell; some versions of sh will print an error if
|
---|
932 | # an executable is not found, even if stderr is redirected.
|
---|
933 | # Redirect stdin to placate older versions of autoconf. Sigh.
|
---|
934 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
|
---|
935 | MAKEINFO=makeinfo
|
---|
936 | echo "$ac_t""found" 1>&6
|
---|
937 | else
|
---|
938 | MAKEINFO="$missing_dir/missing makeinfo"
|
---|
939 | echo "$ac_t""missing" 1>&6
|
---|
940 | fi
|
---|
941 |
|
---|
942 |
|
---|
943 |
|
---|
944 | unset CDPATH
|
---|
945 |
|
---|
946 |
|
---|
947 | if test "x$prefix" = "xNONE"; then
|
---|
948 | prefix=$ac_default_prefix
|
---|
949 | ac_configure_args="$ac_configure_args --prefix $prefix"
|
---|
950 | fi
|
---|
951 |
|
---|
952 | # Check whether --enable-fast-perl or --disable-fast-perl was given.
|
---|
953 | if test "${enable_fast_perl+set}" = set; then
|
---|
954 | enableval="$enable_fast_perl"
|
---|
955 | with_fast_perl=$enableval
|
---|
956 | else
|
---|
957 | with_fast_perl=yes
|
---|
958 | fi
|
---|
959 |
|
---|
960 |
|
---|
961 |
|
---|
962 | val=
|
---|
963 | if test -f $srcdir/configure.files ; then
|
---|
964 | val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
|
---|
965 | fi
|
---|
966 | CONF_FILES=
|
---|
967 | if test -n "$val" ; then
|
---|
968 | for i in $val ; do
|
---|
969 | CONF_FILES="$CONF_FILES $i"
|
---|
970 | done
|
---|
971 | fi
|
---|
972 |
|
---|
973 |
|
---|
974 |
|
---|
975 |
|
---|
976 |
|
---|
977 |
|
---|
978 |
|
---|
979 |
|
---|
980 |
|
---|
981 |
|
---|
982 |
|
---|
983 |
|
---|
984 |
|
---|
985 | # Check whether --enable-debug or --disable-debug was given.
|
---|
986 | if test "${enable_debug+set}" = set; then
|
---|
987 | enableval="$enable_debug"
|
---|
988 |
|
---|
989 | if test $enableval = "no"; then
|
---|
990 | kde_use_debug_code="no"
|
---|
991 | kde_use_debug_define=yes
|
---|
992 | else
|
---|
993 | kde_use_debug_code="yes"
|
---|
994 | kde_use_debug_define=no
|
---|
995 | fi
|
---|
996 |
|
---|
997 | else
|
---|
998 | kde_use_debug_code="no"
|
---|
999 | kde_use_debug_define=no
|
---|
1000 |
|
---|
1001 | fi
|
---|
1002 |
|
---|
1003 | # Check whether --enable-dummyoption or --disable-dummyoption was given.
|
---|
1004 | if test "${enable_dummyoption+set}" = set; then
|
---|
1005 | enableval="$enable_dummyoption"
|
---|
1006 | :
|
---|
1007 | fi
|
---|
1008 |
|
---|
1009 |
|
---|
1010 | # Check whether --enable-strict or --disable-strict was given.
|
---|
1011 | if test "${enable_strict+set}" = set; then
|
---|
1012 | enableval="$enable_strict"
|
---|
1013 |
|
---|
1014 | if test $enableval = "no"; then
|
---|
1015 | kde_use_strict_options="no"
|
---|
1016 | else
|
---|
1017 | kde_use_strict_options="yes"
|
---|
1018 | fi
|
---|
1019 |
|
---|
1020 | else
|
---|
1021 | kde_use_strict_options="no"
|
---|
1022 | fi
|
---|
1023 |
|
---|
1024 |
|
---|
1025 | # Check whether --enable-profile or --disable-profile was given.
|
---|
1026 | if test "${enable_profile+set}" = set; then
|
---|
1027 | enableval="$enable_profile"
|
---|
1028 | kde_use_profiling=$enableval
|
---|
1029 | else
|
---|
1030 | kde_use_profiling="no"
|
---|
1031 |
|
---|
1032 | fi
|
---|
1033 |
|
---|
1034 |
|
---|
1035 | echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6
|
---|
1036 | echo "configure:1037: checking for a C-Compiler" >&5
|
---|
1037 | echo "$ac_t""$CC" 1>&6
|
---|
1038 |
|
---|
1039 | if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1040 | set dummy gcc; ac_word=$2
|
---|
1041 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1042 | echo "configure:1043: checking for $ac_word" >&5
|
---|
1043 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1044 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1045 | else
|
---|
1046 | if test -n "$CC"; then
|
---|
1047 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1048 | else
|
---|
1049 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1050 | ac_dummy="$PATH"
|
---|
1051 | for ac_dir in $ac_dummy; do
|
---|
1052 | test -z "$ac_dir" && ac_dir=.
|
---|
1053 | if test -f $ac_dir/$ac_word; then
|
---|
1054 | ac_cv_prog_CC="gcc"
|
---|
1055 | break
|
---|
1056 | fi
|
---|
1057 | done
|
---|
1058 | IFS="$ac_save_ifs"
|
---|
1059 | fi
|
---|
1060 | fi
|
---|
1061 | CC="$ac_cv_prog_CC"
|
---|
1062 | if test -n "$CC"; then
|
---|
1063 | echo "$ac_t""$CC" 1>&6
|
---|
1064 | else
|
---|
1065 | echo "$ac_t""no" 1>&6
|
---|
1066 | fi
|
---|
1067 | fi
|
---|
1068 | if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.
|
---|
1069 | set dummy cc; ac_word=$2
|
---|
1070 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1071 | echo "configure:1072: checking for $ac_word" >&5
|
---|
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_prog_rejected=no
|
---|
1080 | ac_dummy="$PATH"
|
---|
1081 | for ac_dir in $ac_dummy; do
|
---|
1082 | test -z "$ac_dir" && ac_dir=.
|
---|
1083 | if test -f $ac_dir/$ac_word; then
|
---|
1084 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
|
---|
1085 | ac_prog_rejected=yes
|
---|
1086 | continue
|
---|
1087 | fi
|
---|
1088 | ac_cv_prog_CC="cc"
|
---|
1089 | break
|
---|
1090 | fi
|
---|
1091 | done
|
---|
1092 | IFS="$ac_save_ifs"
|
---|
1093 | if test $ac_prog_rejected = yes; then
|
---|
1094 | # We found a bogon in the path, so make sure we never use it.
|
---|
1095 | set dummy $ac_cv_prog_CC
|
---|
1096 | shift
|
---|
1097 | if test $# -gt 0; then
|
---|
1098 | # We chose a different compiler from the bogus one.
|
---|
1099 | # However, it has the same basename, so the bogon will be chosen
|
---|
1100 | # first if we set CC to just the basename; use the full file name.
|
---|
1101 | shift
|
---|
1102 | set dummy "$ac_dir/$ac_word" "$@"
|
---|
1103 | shift
|
---|
1104 | ac_cv_prog_CC="$@"
|
---|
1105 | fi
|
---|
1106 | fi
|
---|
1107 | fi
|
---|
1108 | fi
|
---|
1109 | CC="$ac_cv_prog_CC"
|
---|
1110 | if test -n "$CC"; then
|
---|
1111 | echo "$ac_t""$CC" 1>&6
|
---|
1112 | else
|
---|
1113 | echo "$ac_t""no" 1>&6
|
---|
1114 | fi
|
---|
1115 | fi
|
---|
1116 | if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args.
|
---|
1117 | set dummy xlc; ac_word=$2
|
---|
1118 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1119 | echo "configure:1120: checking for $ac_word" >&5
|
---|
1120 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
|
---|
1121 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1122 | else
|
---|
1123 | if test -n "$CC"; then
|
---|
1124 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1125 | else
|
---|
1126 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1127 | ac_dummy="$PATH"
|
---|
1128 | for ac_dir in $ac_dummy; do
|
---|
1129 | test -z "$ac_dir" && ac_dir=.
|
---|
1130 | if test -f $ac_dir/$ac_word; then
|
---|
1131 | ac_cv_prog_CC="xlc"
|
---|
1132 | break
|
---|
1133 | fi
|
---|
1134 | done
|
---|
1135 | IFS="$ac_save_ifs"
|
---|
1136 | fi
|
---|
1137 | fi
|
---|
1138 | CC="$ac_cv_prog_CC"
|
---|
1139 | if test -n "$CC"; then
|
---|
1140 | echo "$ac_t""$CC" 1>&6
|
---|
1141 | else
|
---|
1142 | echo "$ac_t""no" 1>&6
|
---|
1143 | fi
|
---|
1144 | fi
|
---|
1145 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
|
---|
1146 |
|
---|
1147 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
1148 | echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
|
---|
1149 |
|
---|
1150 | ac_ext=c
|
---|
1151 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1152 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1153 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1154 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1155 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1156 |
|
---|
1157 | cat > conftest.$ac_ext << EOF
|
---|
1158 |
|
---|
1159 | #line 1160 "configure"
|
---|
1160 | #include "confdefs.h"
|
---|
1161 |
|
---|
1162 | main(){return(0);}
|
---|
1163 | EOF
|
---|
1164 | if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1165 | ac_cv_prog_cc_works=yes
|
---|
1166 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
1167 | if (./conftest; exit) 2>/dev/null; then
|
---|
1168 | ac_cv_prog_cc_cross=no
|
---|
1169 | else
|
---|
1170 | ac_cv_prog_cc_cross=yes
|
---|
1171 | fi
|
---|
1172 | else
|
---|
1173 | echo "configure: failed program was:" >&5
|
---|
1174 | cat conftest.$ac_ext >&5
|
---|
1175 | ac_cv_prog_cc_works=no
|
---|
1176 | fi
|
---|
1177 | rm -fr conftest*
|
---|
1178 | ac_ext=c
|
---|
1179 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1180 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1181 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1182 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1183 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1184 |
|
---|
1185 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
|
---|
1186 | if test $ac_cv_prog_cc_works = no; then
|
---|
1187 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
|
---|
1188 | fi
|
---|
1189 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
1190 | echo "configure:1191: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
1191 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
|
---|
1192 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1193 |
|
---|
1194 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
|
---|
1195 | echo "configure:1196: checking whether we are using GNU C" >&5
|
---|
1196 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
|
---|
1197 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1198 | else
|
---|
1199 | cat > conftest.c <<EOF
|
---|
1200 | #ifdef __GNUC__
|
---|
1201 | yes;
|
---|
1202 | #endif
|
---|
1203 | EOF
|
---|
1204 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1205 | ac_cv_prog_gcc=yes
|
---|
1206 | else
|
---|
1207 | ac_cv_prog_gcc=no
|
---|
1208 | fi
|
---|
1209 | fi
|
---|
1210 |
|
---|
1211 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
---|
1212 |
|
---|
1213 | if test $ac_cv_prog_gcc = yes; then
|
---|
1214 | GCC=yes
|
---|
1215 | else
|
---|
1216 | GCC=
|
---|
1217 | fi
|
---|
1218 |
|
---|
1219 | USER_CFLAGS=$CFLAGS
|
---|
1220 | CFLAGS=
|
---|
1221 |
|
---|
1222 | if test -z "$CFLAGS"; then
|
---|
1223 | if test "$kde_use_debug_code" = "yes"; then
|
---|
1224 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
|
---|
1225 | echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
|
---|
1226 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
|
---|
1227 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1228 | else
|
---|
1229 | echo 'void f(){}' > conftest.c
|
---|
1230 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
|
---|
1231 | ac_cv_prog_cc_g=yes
|
---|
1232 | else
|
---|
1233 | ac_cv_prog_cc_g=no
|
---|
1234 | fi
|
---|
1235 | rm -f conftest*
|
---|
1236 |
|
---|
1237 | fi
|
---|
1238 |
|
---|
1239 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
|
---|
1240 | if test $ac_cv_prog_cc_g = yes; then
|
---|
1241 | CFLAGS="-g"
|
---|
1242 | case $host in
|
---|
1243 | *-*-linux-gnu)
|
---|
1244 | CFLAGS="$CFLAGS -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE -D_BSD_SOURCE"
|
---|
1245 | ;;
|
---|
1246 | esac
|
---|
1247 | fi
|
---|
1248 | else
|
---|
1249 | if test "$GCC" = "yes"; then
|
---|
1250 | CFLAGS="-O2"
|
---|
1251 | else
|
---|
1252 | CFLAGS=""
|
---|
1253 | fi
|
---|
1254 | if test "$kde_use_debug_define" = "yes"; then
|
---|
1255 | CFLAGS="$CFLAGS -DNDEBUG"
|
---|
1256 | fi
|
---|
1257 | fi
|
---|
1258 |
|
---|
1259 | if test "$kde_use_profiling" = yes; then
|
---|
1260 | echo $ac_n "checking whether ${CC-cc} accepts -pg""... $ac_c" 1>&6
|
---|
1261 | echo "configure:1262: checking whether ${CC-cc} accepts -pg" >&5
|
---|
1262 | if eval "test \"`echo '$''{'kde_cv_prog_cc_pg'+set}'`\" = set"; then
|
---|
1263 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1264 | else
|
---|
1265 | echo 'void f(){}' > conftest.c
|
---|
1266 | if test -z "`${CC-cc} -pg -c conftest.c 2>&1`"; then
|
---|
1267 | kde_cv_prog_cc_pg=yes
|
---|
1268 | else
|
---|
1269 | kde_cv_prog_cc_pg=no
|
---|
1270 | fi
|
---|
1271 | rm -f conftest*
|
---|
1272 |
|
---|
1273 | fi
|
---|
1274 |
|
---|
1275 | echo "$ac_t""$kde_cv_prog_cc_pg" 1>&6
|
---|
1276 | if test "$kde_cv_prog_cc_pg" = yes; then
|
---|
1277 | CFLAGS="$CFLAGS -pg"
|
---|
1278 | fi
|
---|
1279 | fi
|
---|
1280 |
|
---|
1281 | if test "$GCC" = "yes"; then
|
---|
1282 | CFLAGS="$CFLAGS"
|
---|
1283 |
|
---|
1284 | if test "$kde_use_strict_options" = "yes"; then
|
---|
1285 | CFLAGS="$CFLAGS -W -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
---|
1286 | fi
|
---|
1287 | fi
|
---|
1288 |
|
---|
1289 | fi
|
---|
1290 |
|
---|
1291 | case "$host" in
|
---|
1292 | *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";;
|
---|
1293 | *-*-sysv5uw7*) CFLAGS="$CFLAGS -D_UNIXWARE7";;
|
---|
1294 | esac
|
---|
1295 |
|
---|
1296 | if test -n "$USER_CFLAGS"; then
|
---|
1297 | CFLAGS="$CFLAGS $USER_CFLAGS"
|
---|
1298 | fi
|
---|
1299 |
|
---|
1300 | if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
|
---|
1301 | LDFLAGS=""
|
---|
1302 | fi
|
---|
1303 |
|
---|
1304 |
|
---|
1305 |
|
---|
1306 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
|
---|
1307 | echo "configure:1308: checking how to run the C preprocessor" >&5
|
---|
1308 | # On Suns, sometimes $CPP names a directory.
|
---|
1309 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
1310 | CPP=
|
---|
1311 | fi
|
---|
1312 | if test -z "$CPP"; then
|
---|
1313 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
---|
1314 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1315 | else
|
---|
1316 | # This must be in double quotes, not single quotes, because CPP may get
|
---|
1317 | # substituted into the Makefile and "${CC-cc}" will confuse make.
|
---|
1318 | CPP="${CC-cc} -E"
|
---|
1319 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
1320 | # not just through cpp.
|
---|
1321 | cat > conftest.$ac_ext <<EOF
|
---|
1322 | #line 1323 "configure"
|
---|
1323 | #include "confdefs.h"
|
---|
1324 | #include <assert.h>
|
---|
1325 | Syntax Error
|
---|
1326 | EOF
|
---|
1327 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1328 | { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1329 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1330 | if test -z "$ac_err"; then
|
---|
1331 | :
|
---|
1332 | else
|
---|
1333 | echo "$ac_err" >&5
|
---|
1334 | echo "configure: failed program was:" >&5
|
---|
1335 | cat conftest.$ac_ext >&5
|
---|
1336 | rm -rf conftest*
|
---|
1337 | CPP="${CC-cc} -E -traditional-cpp"
|
---|
1338 | cat > conftest.$ac_ext <<EOF
|
---|
1339 | #line 1340 "configure"
|
---|
1340 | #include "confdefs.h"
|
---|
1341 | #include <assert.h>
|
---|
1342 | Syntax Error
|
---|
1343 | EOF
|
---|
1344 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1345 | { (eval echo configure:1346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1346 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1347 | if test -z "$ac_err"; then
|
---|
1348 | :
|
---|
1349 | else
|
---|
1350 | echo "$ac_err" >&5
|
---|
1351 | echo "configure: failed program was:" >&5
|
---|
1352 | cat conftest.$ac_ext >&5
|
---|
1353 | rm -rf conftest*
|
---|
1354 | CPP=/lib/cpp
|
---|
1355 | fi
|
---|
1356 | rm -f conftest*
|
---|
1357 | fi
|
---|
1358 | rm -f conftest*
|
---|
1359 | ac_cv_prog_CPP="$CPP"
|
---|
1360 | fi
|
---|
1361 | CPP="$ac_cv_prog_CPP"
|
---|
1362 | else
|
---|
1363 | ac_cv_prog_CPP="$CPP"
|
---|
1364 | fi
|
---|
1365 | echo "$ac_t""$CPP" 1>&6
|
---|
1366 |
|
---|
1367 |
|
---|
1368 | echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
|
---|
1369 | echo "configure:1370: checking for a C++-Compiler" >&5
|
---|
1370 | echo "$ac_t""$CXX" 1>&6
|
---|
1371 |
|
---|
1372 | if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args.
|
---|
1373 | set dummy g++; ac_word=$2
|
---|
1374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1375 | echo "configure:1376: checking for $ac_word" >&5
|
---|
1376 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
1377 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1378 | else
|
---|
1379 | if test -n "$CXX"; then
|
---|
1380 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1381 | else
|
---|
1382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1383 | ac_dummy="$PATH"
|
---|
1384 | for ac_dir in $ac_dummy; do
|
---|
1385 | test -z "$ac_dir" && ac_dir=.
|
---|
1386 | if test -f $ac_dir/$ac_word; then
|
---|
1387 | ac_cv_prog_CXX="g++"
|
---|
1388 | break
|
---|
1389 | fi
|
---|
1390 | done
|
---|
1391 | IFS="$ac_save_ifs"
|
---|
1392 | fi
|
---|
1393 | fi
|
---|
1394 | CXX="$ac_cv_prog_CXX"
|
---|
1395 | if test -n "$CXX"; then
|
---|
1396 | echo "$ac_t""$CXX" 1>&6
|
---|
1397 | else
|
---|
1398 | echo "$ac_t""no" 1>&6
|
---|
1399 | fi
|
---|
1400 | fi
|
---|
1401 | if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
|
---|
1402 | set dummy CC; ac_word=$2
|
---|
1403 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1404 | echo "configure:1405: checking for $ac_word" >&5
|
---|
1405 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
1406 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1407 | else
|
---|
1408 | if test -n "$CXX"; then
|
---|
1409 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1410 | else
|
---|
1411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1412 | ac_dummy="$PATH"
|
---|
1413 | for ac_dir in $ac_dummy; do
|
---|
1414 | test -z "$ac_dir" && ac_dir=.
|
---|
1415 | if test -f $ac_dir/$ac_word; then
|
---|
1416 | ac_cv_prog_CXX="CC"
|
---|
1417 | break
|
---|
1418 | fi
|
---|
1419 | done
|
---|
1420 | IFS="$ac_save_ifs"
|
---|
1421 | fi
|
---|
1422 | fi
|
---|
1423 | CXX="$ac_cv_prog_CXX"
|
---|
1424 | if test -n "$CXX"; then
|
---|
1425 | echo "$ac_t""$CXX" 1>&6
|
---|
1426 | else
|
---|
1427 | echo "$ac_t""no" 1>&6
|
---|
1428 | fi
|
---|
1429 | fi
|
---|
1430 | if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
|
---|
1431 | set dummy xlC; ac_word=$2
|
---|
1432 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1433 | echo "configure:1434: checking for $ac_word" >&5
|
---|
1434 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
1435 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1436 | else
|
---|
1437 | if test -n "$CXX"; then
|
---|
1438 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1439 | else
|
---|
1440 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1441 | ac_dummy="$PATH"
|
---|
1442 | for ac_dir in $ac_dummy; do
|
---|
1443 | test -z "$ac_dir" && ac_dir=.
|
---|
1444 | if test -f $ac_dir/$ac_word; then
|
---|
1445 | ac_cv_prog_CXX="xlC"
|
---|
1446 | break
|
---|
1447 | fi
|
---|
1448 | done
|
---|
1449 | IFS="$ac_save_ifs"
|
---|
1450 | fi
|
---|
1451 | fi
|
---|
1452 | CXX="$ac_cv_prog_CXX"
|
---|
1453 | if test -n "$CXX"; then
|
---|
1454 | echo "$ac_t""$CXX" 1>&6
|
---|
1455 | else
|
---|
1456 | echo "$ac_t""no" 1>&6
|
---|
1457 | fi
|
---|
1458 | fi
|
---|
1459 | if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
|
---|
1460 | set dummy DCC; ac_word=$2
|
---|
1461 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
1462 | echo "configure:1463: checking for $ac_word" >&5
|
---|
1463 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
|
---|
1464 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1465 | else
|
---|
1466 | if test -n "$CXX"; then
|
---|
1467 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
1468 | else
|
---|
1469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
1470 | ac_dummy="$PATH"
|
---|
1471 | for ac_dir in $ac_dummy; do
|
---|
1472 | test -z "$ac_dir" && ac_dir=.
|
---|
1473 | if test -f $ac_dir/$ac_word; then
|
---|
1474 | ac_cv_prog_CXX="DCC"
|
---|
1475 | break
|
---|
1476 | fi
|
---|
1477 | done
|
---|
1478 | IFS="$ac_save_ifs"
|
---|
1479 | fi
|
---|
1480 | fi
|
---|
1481 | CXX="$ac_cv_prog_CXX"
|
---|
1482 | if test -n "$CXX"; then
|
---|
1483 | echo "$ac_t""$CXX" 1>&6
|
---|
1484 | else
|
---|
1485 | echo "$ac_t""no" 1>&6
|
---|
1486 | fi
|
---|
1487 | fi
|
---|
1488 | test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
|
---|
1489 |
|
---|
1490 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
|
---|
1491 | echo "configure:1492: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
|
---|
1492 |
|
---|
1493 |
|
---|
1494 | ac_ext=C
|
---|
1495 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1496 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
1497 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1498 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1499 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
1500 |
|
---|
1501 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1502 |
|
---|
1503 |
|
---|
1504 |
|
---|
1505 | cat > conftest.$ac_ext << EOF
|
---|
1506 |
|
---|
1507 | #line 1508 "configure"
|
---|
1508 | #include "confdefs.h"
|
---|
1509 |
|
---|
1510 | int main(){return(0);}
|
---|
1511 | EOF
|
---|
1512 | if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
1513 | ac_cv_prog_cxx_works=yes
|
---|
1514 | # If we can't run a trivial program, we are probably using a cross compiler.
|
---|
1515 | if (./conftest; exit) 2>/dev/null; then
|
---|
1516 | ac_cv_prog_cxx_cross=no
|
---|
1517 | else
|
---|
1518 | ac_cv_prog_cxx_cross=yes
|
---|
1519 | fi
|
---|
1520 | else
|
---|
1521 | echo "configure: failed program was:" >&5
|
---|
1522 | cat conftest.$ac_ext >&5
|
---|
1523 | ac_cv_prog_cxx_works=no
|
---|
1524 | fi
|
---|
1525 | rm -fr conftest*
|
---|
1526 | ac_ext=c
|
---|
1527 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1528 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1529 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1530 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1531 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1532 |
|
---|
1533 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
|
---|
1534 | if test $ac_cv_prog_cxx_works = no; then
|
---|
1535 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
|
---|
1536 | fi
|
---|
1537 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
|
---|
1538 | echo "configure:1539: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
|
---|
1539 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
|
---|
1540 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
1541 |
|
---|
1542 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
|
---|
1543 | echo "configure:1544: checking whether we are using GNU C++" >&5
|
---|
1544 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
|
---|
1545 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1546 | else
|
---|
1547 | cat > conftest.C <<EOF
|
---|
1548 | #ifdef __GNUC__
|
---|
1549 | yes;
|
---|
1550 | #endif
|
---|
1551 | EOF
|
---|
1552 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
|
---|
1553 | ac_cv_prog_gxx=yes
|
---|
1554 | else
|
---|
1555 | ac_cv_prog_gxx=no
|
---|
1556 | fi
|
---|
1557 | fi
|
---|
1558 |
|
---|
1559 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6
|
---|
1560 |
|
---|
1561 | if test $ac_cv_prog_gxx = yes; then
|
---|
1562 | GXX=yes
|
---|
1563 | fi
|
---|
1564 |
|
---|
1565 | USER_CXXFLAGS=$CXXFLAGS
|
---|
1566 | CXXFLAGS=""
|
---|
1567 |
|
---|
1568 | if test -z "$CXXFLAGS"; then
|
---|
1569 | if test "$kde_use_debug_code" = "yes"; then
|
---|
1570 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
|
---|
1571 | echo "configure:1572: checking whether ${CXX-g++} accepts -g" >&5
|
---|
1572 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
|
---|
1573 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1574 | else
|
---|
1575 | echo 'void f(){}' > conftest.cc
|
---|
1576 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
|
---|
1577 | ac_cv_prog_cxx_g=yes
|
---|
1578 | else
|
---|
1579 | ac_cv_prog_cxx_g=no
|
---|
1580 | fi
|
---|
1581 | rm -f conftest*
|
---|
1582 |
|
---|
1583 | fi
|
---|
1584 |
|
---|
1585 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
|
---|
1586 | if test $ac_cv_prog_cxx_g = yes; then
|
---|
1587 | CXXFLAGS="-g"
|
---|
1588 | case $host in *-*-linux-gnu)
|
---|
1589 | CXXFLAGS="$CXXFLAGS -ansi -D_XOPEN_SOURCE -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion"
|
---|
1590 | ;;
|
---|
1591 | esac
|
---|
1592 | fi
|
---|
1593 | else
|
---|
1594 | if test "$GXX" = "yes"; then
|
---|
1595 | CXXFLAGS="-O2"
|
---|
1596 | fi
|
---|
1597 | if test "$kde_use_debug_define" = "yes"; then
|
---|
1598 | CXXFLAGS="$CXXFLAGS -DNDEBUG"
|
---|
1599 | fi
|
---|
1600 | fi
|
---|
1601 |
|
---|
1602 | if test "$kde_use_profiling" = yes; then
|
---|
1603 | echo $ac_n "checking whether ${CXX-g++} accepts -pg""... $ac_c" 1>&6
|
---|
1604 | echo "configure:1605: checking whether ${CXX-g++} accepts -pg" >&5
|
---|
1605 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_pg'+set}'`\" = set"; then
|
---|
1606 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1607 | else
|
---|
1608 | echo 'void f(){}' > conftest.cc
|
---|
1609 | if test -z "`${CXX-g++} -pg -c conftest.cc 2>&1`"; then
|
---|
1610 | kde_cv_prog_cxx_pg=yes
|
---|
1611 | else
|
---|
1612 | kde_cv_prog_cxx_pg=no
|
---|
1613 | fi
|
---|
1614 | rm -f conftest*
|
---|
1615 |
|
---|
1616 | fi
|
---|
1617 |
|
---|
1618 | echo "$ac_t""$kde_cv_prog_cxx_pg" 1>&6
|
---|
1619 | if test "$kde_cv_prog_cxx_pg" = yes; then
|
---|
1620 | CXXFLAGS="$CXXFLAGS -pg"
|
---|
1621 | fi
|
---|
1622 | fi
|
---|
1623 |
|
---|
1624 |
|
---|
1625 |
|
---|
1626 | echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6
|
---|
1627 | echo "configure:1628: checking whether $CXX supports -fno-exceptions" >&5
|
---|
1628 | kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`
|
---|
1629 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1630 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1631 | else
|
---|
1632 |
|
---|
1633 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1634 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1635 | if test -z "`$CXX -fno-exceptions -c conftest.cc 2>&1`"; then
|
---|
1636 | if test -z "`$CXX -fno-exceptions -o conftest conftest.o 2>&1`"; then
|
---|
1637 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1638 | fi
|
---|
1639 | fi
|
---|
1640 | rm -f conftest*
|
---|
1641 |
|
---|
1642 | fi
|
---|
1643 |
|
---|
1644 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1645 | echo "$ac_t""yes" 1>&6
|
---|
1646 | :
|
---|
1647 |
|
---|
1648 | CXXFLAGS="$CXXFLAGS -fno-exceptions"
|
---|
1649 |
|
---|
1650 | else
|
---|
1651 | echo "$ac_t""no" 1>&6
|
---|
1652 | :
|
---|
1653 |
|
---|
1654 | fi
|
---|
1655 |
|
---|
1656 |
|
---|
1657 |
|
---|
1658 |
|
---|
1659 |
|
---|
1660 | echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6
|
---|
1661 | echo "configure:1662: checking whether $CXX supports -fno-check-new" >&5
|
---|
1662 | kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`
|
---|
1663 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1664 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1665 | else
|
---|
1666 |
|
---|
1667 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1668 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1669 | if test -z "`$CXX -fno-check-new -c conftest.cc 2>&1`"; then
|
---|
1670 | if test -z "`$CXX -fno-check-new -o conftest conftest.o 2>&1`"; then
|
---|
1671 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1672 | fi
|
---|
1673 | fi
|
---|
1674 | rm -f conftest*
|
---|
1675 |
|
---|
1676 | fi
|
---|
1677 |
|
---|
1678 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1679 | echo "$ac_t""yes" 1>&6
|
---|
1680 | :
|
---|
1681 |
|
---|
1682 | CXXFLAGS="$CXXFLAGS -fno-check-new"
|
---|
1683 |
|
---|
1684 | else
|
---|
1685 | echo "$ac_t""no" 1>&6
|
---|
1686 | :
|
---|
1687 |
|
---|
1688 | fi
|
---|
1689 |
|
---|
1690 |
|
---|
1691 | if test "$GXX" = "yes"; then
|
---|
1692 | CXXFLAGS="$CXXFLAGS"
|
---|
1693 |
|
---|
1694 | if test true || test "$kde_use_debug_code" = "yes"; then
|
---|
1695 | CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
---|
1696 |
|
---|
1697 |
|
---|
1698 |
|
---|
1699 | echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6
|
---|
1700 | echo "configure:1701: checking whether $CXX supports -Wno-long-long" >&5
|
---|
1701 | kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`
|
---|
1702 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1703 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1704 | else
|
---|
1705 |
|
---|
1706 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1707 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1708 | if test -z "`$CXX -Wno-long-long -c conftest.cc 2>&1`"; then
|
---|
1709 | if test -z "`$CXX -Wno-long-long -o conftest conftest.o 2>&1`"; then
|
---|
1710 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1711 | fi
|
---|
1712 | fi
|
---|
1713 | rm -f conftest*
|
---|
1714 |
|
---|
1715 | fi
|
---|
1716 |
|
---|
1717 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1718 | echo "$ac_t""yes" 1>&6
|
---|
1719 | :
|
---|
1720 |
|
---|
1721 | CXXFLAGS="$CXXFLAGS -Wno-long-long"
|
---|
1722 |
|
---|
1723 | else
|
---|
1724 | echo "$ac_t""no" 1>&6
|
---|
1725 | :
|
---|
1726 |
|
---|
1727 | fi
|
---|
1728 |
|
---|
1729 |
|
---|
1730 |
|
---|
1731 | echo $ac_n "checking whether $CXX supports -Wnon-virtual-dtor""... $ac_c" 1>&6
|
---|
1732 | echo "configure:1733: checking whether $CXX supports -Wnon-virtual-dtor" >&5
|
---|
1733 | kde_cache=`echo Wnon-virtual-dtor | sed 'y%.=/+-%___p_%'`
|
---|
1734 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1735 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1736 | else
|
---|
1737 |
|
---|
1738 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1739 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1740 | if test -z "`$CXX -Wnon-virtual-dtor -c conftest.cc 2>&1`"; then
|
---|
1741 | if test -z "`$CXX -Wnon-virtual-dtor -o conftest conftest.o 2>&1`"; then
|
---|
1742 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1743 | fi
|
---|
1744 | fi
|
---|
1745 | rm -f conftest*
|
---|
1746 |
|
---|
1747 | fi
|
---|
1748 |
|
---|
1749 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1750 | echo "$ac_t""yes" 1>&6
|
---|
1751 | :
|
---|
1752 |
|
---|
1753 | CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
|
---|
1754 |
|
---|
1755 | else
|
---|
1756 | echo "$ac_t""no" 1>&6
|
---|
1757 | :
|
---|
1758 |
|
---|
1759 | fi
|
---|
1760 |
|
---|
1761 |
|
---|
1762 |
|
---|
1763 | echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6
|
---|
1764 | echo "configure:1765: checking whether $CXX supports -fno-builtin" >&5
|
---|
1765 | kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`
|
---|
1766 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1767 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1768 | else
|
---|
1769 |
|
---|
1770 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1771 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1772 | if test -z "`$CXX -fno-builtin -c conftest.cc 2>&1`"; then
|
---|
1773 | if test -z "`$CXX -fno-builtin -o conftest conftest.o 2>&1`"; then
|
---|
1774 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1775 | fi
|
---|
1776 | fi
|
---|
1777 | rm -f conftest*
|
---|
1778 |
|
---|
1779 | fi
|
---|
1780 |
|
---|
1781 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1782 | echo "$ac_t""yes" 1>&6
|
---|
1783 | :
|
---|
1784 |
|
---|
1785 | CXXFLAGS="$CXXFLAGS -fno-builtin"
|
---|
1786 |
|
---|
1787 | else
|
---|
1788 | echo "$ac_t""no" 1>&6
|
---|
1789 | :
|
---|
1790 |
|
---|
1791 | fi
|
---|
1792 |
|
---|
1793 |
|
---|
1794 | fi
|
---|
1795 |
|
---|
1796 | if test "$kde_use_strict_options" = "yes"; then
|
---|
1797 | CXXFLAGS="$CXXFLAGS -Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align"
|
---|
1798 | fi
|
---|
1799 |
|
---|
1800 | if test "$kde_very_strict" = "yes"; then
|
---|
1801 | CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wredundant-decls -Wconversion"
|
---|
1802 | fi
|
---|
1803 | fi
|
---|
1804 | fi
|
---|
1805 |
|
---|
1806 |
|
---|
1807 |
|
---|
1808 | echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6
|
---|
1809 | echo "configure:1810: checking whether $CXX supports -fexceptions" >&5
|
---|
1810 | kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`
|
---|
1811 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1812 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1813 | else
|
---|
1814 |
|
---|
1815 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1816 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1817 | if test -z "`$CXX -fexceptions -c conftest.cc 2>&1`"; then
|
---|
1818 | if test -z "`$CXX -fexceptions -o conftest conftest.o 2>&1`"; then
|
---|
1819 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1820 | fi
|
---|
1821 | fi
|
---|
1822 | rm -f conftest*
|
---|
1823 |
|
---|
1824 | fi
|
---|
1825 |
|
---|
1826 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1827 | echo "$ac_t""yes" 1>&6
|
---|
1828 | :
|
---|
1829 |
|
---|
1830 | USE_EXCEPTIONS="-fexceptions"
|
---|
1831 |
|
---|
1832 | else
|
---|
1833 | echo "$ac_t""no" 1>&6
|
---|
1834 | :
|
---|
1835 | USE_EXCEPTIONS=
|
---|
1836 |
|
---|
1837 | fi
|
---|
1838 |
|
---|
1839 |
|
---|
1840 |
|
---|
1841 |
|
---|
1842 |
|
---|
1843 | echo $ac_n "checking whether $CXX supports -frtti""... $ac_c" 1>&6
|
---|
1844 | echo "configure:1845: checking whether $CXX supports -frtti" >&5
|
---|
1845 | kde_cache=`echo frtti | sed 'y%.=/+-%___p_%'`
|
---|
1846 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
1847 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1848 | else
|
---|
1849 |
|
---|
1850 | echo 'int main() { return 0; }' >conftest.cc
|
---|
1851 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
1852 | if test -z "`$CXX -frtti -c conftest.cc 2>&1`"; then
|
---|
1853 | if test -z "`$CXX -frtti -o conftest conftest.o 2>&1`"; then
|
---|
1854 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
1855 | fi
|
---|
1856 | fi
|
---|
1857 | rm -f conftest*
|
---|
1858 |
|
---|
1859 | fi
|
---|
1860 |
|
---|
1861 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
1862 | echo "$ac_t""yes" 1>&6
|
---|
1863 | :
|
---|
1864 |
|
---|
1865 | USE_RTTI="-frtti"
|
---|
1866 |
|
---|
1867 | else
|
---|
1868 | echo "$ac_t""no" 1>&6
|
---|
1869 | :
|
---|
1870 | USE_RTTI=
|
---|
1871 |
|
---|
1872 | fi
|
---|
1873 |
|
---|
1874 |
|
---|
1875 |
|
---|
1876 | case "$host" in
|
---|
1877 | *-*-irix*) test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS" ;;
|
---|
1878 | *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";;
|
---|
1879 | *-*-sysv5uw7*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE7";;
|
---|
1880 | *-*-solaris*)
|
---|
1881 | if test "$GXX" = yes; then
|
---|
1882 | libstdcpp=`gcc -print-file-name=libstdc++.so`
|
---|
1883 | if test ! -f $libstdcpp; then
|
---|
1884 | { echo "configure: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" 1>&2; exit 1; }
|
---|
1885 | fi
|
---|
1886 | fi
|
---|
1887 | ;;
|
---|
1888 | esac
|
---|
1889 |
|
---|
1890 | if test -n "$USER_CXXFLAGS"; then
|
---|
1891 | CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
|
---|
1892 | fi
|
---|
1893 |
|
---|
1894 | __val=$CXX
|
---|
1895 | __forbid=" -fno-rtti -rpath "
|
---|
1896 | if test -n "$__val"; then
|
---|
1897 | __new=""
|
---|
1898 | ac_save_IFS=$IFS
|
---|
1899 | IFS=" "
|
---|
1900 | for i in $__val; do
|
---|
1901 | case "$__forbid" in
|
---|
1902 | *" $i "*) echo "configure: warning: found forbidden $i in CXX, removing it" 1>&2 ;;
|
---|
1903 | *) # Careful to not add spaces, where there were none, because otherwise
|
---|
1904 | # libtool gets confused, if we change e.g. CXX
|
---|
1905 | if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
|
---|
1906 | esac
|
---|
1907 | done
|
---|
1908 | IFS=$ac_save_IFS
|
---|
1909 | CXX=$__new
|
---|
1910 | fi
|
---|
1911 |
|
---|
1912 | __val=$CXXFLAGS
|
---|
1913 | __forbid=" -fno-rtti -rpath "
|
---|
1914 | if test -n "$__val"; then
|
---|
1915 | __new=""
|
---|
1916 | ac_save_IFS=$IFS
|
---|
1917 | IFS=" "
|
---|
1918 | for i in $__val; do
|
---|
1919 | case "$__forbid" in
|
---|
1920 | *" $i "*) echo "configure: warning: found forbidden $i in CXXFLAGS, removing it" 1>&2 ;;
|
---|
1921 | *) # Careful to not add spaces, where there were none, because otherwise
|
---|
1922 | # libtool gets confused, if we change e.g. CXX
|
---|
1923 | if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
|
---|
1924 | esac
|
---|
1925 | done
|
---|
1926 | IFS=$ac_save_IFS
|
---|
1927 | CXXFLAGS=$__new
|
---|
1928 | fi
|
---|
1929 |
|
---|
1930 |
|
---|
1931 |
|
---|
1932 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
|
---|
1933 | echo "configure:1934: checking how to run the C++ preprocessor" >&5
|
---|
1934 | if test -z "$CXXCPP"; then
|
---|
1935 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
|
---|
1936 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
1937 | else
|
---|
1938 |
|
---|
1939 | ac_ext=C
|
---|
1940 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1941 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
1942 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1943 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1944 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
1945 |
|
---|
1946 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1947 |
|
---|
1948 | CXXCPP="${CXX-g++} -E"
|
---|
1949 | cat > conftest.$ac_ext <<EOF
|
---|
1950 | #line 1951 "configure"
|
---|
1951 | #include "confdefs.h"
|
---|
1952 | #include <stdlib.h>
|
---|
1953 | EOF
|
---|
1954 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
1955 | { (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
1956 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
1957 | if test -z "$ac_err"; then
|
---|
1958 | :
|
---|
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 | CXXCPP=/lib/cpp
|
---|
1965 | fi
|
---|
1966 | rm -f conftest*
|
---|
1967 | ac_cv_prog_CXXCPP="$CXXCPP"
|
---|
1968 | ac_ext=c
|
---|
1969 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
1970 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1971 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
1972 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
1973 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
1974 |
|
---|
1975 | fi
|
---|
1976 | CXXCPP="$ac_cv_prog_CXXCPP"
|
---|
1977 | fi
|
---|
1978 | echo "$ac_t""$CXXCPP" 1>&6
|
---|
1979 |
|
---|
1980 | # the following is to allow programs, that are known to
|
---|
1981 | # have problems when compiled with -O2
|
---|
1982 | if test -n "$CXXFLAGS"; then
|
---|
1983 | kde_safe_IFS=$IFS
|
---|
1984 | IFS=" "
|
---|
1985 | NOOPT_CXXFLAGS=""
|
---|
1986 | for i in $CXXFLAGS; do
|
---|
1987 | case $i in
|
---|
1988 | -O*)
|
---|
1989 | ;;
|
---|
1990 | *)
|
---|
1991 | NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
|
---|
1992 | ;;
|
---|
1993 | esac
|
---|
1994 | done
|
---|
1995 | IFS=$kde_safe_IFS
|
---|
1996 | fi
|
---|
1997 |
|
---|
1998 |
|
---|
1999 |
|
---|
2000 | # Check whether --enable-final or --disable-final was given.
|
---|
2001 | if test "${enable_final+set}" = set; then
|
---|
2002 | enableval="$enable_final"
|
---|
2003 | kde_use_final=$enableval
|
---|
2004 | else
|
---|
2005 | kde_use_final=no
|
---|
2006 | fi
|
---|
2007 |
|
---|
2008 |
|
---|
2009 |
|
---|
2010 | REPO=""
|
---|
2011 | NOREPO=""
|
---|
2012 |
|
---|
2013 |
|
---|
2014 |
|
---|
2015 | echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
|
---|
2016 | echo "configure:2017: checking whether $CXX supports -frepo" >&5
|
---|
2017 | kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`
|
---|
2018 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
2019 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2020 | else
|
---|
2021 |
|
---|
2022 | echo 'int main() { return 0; }' >conftest.cc
|
---|
2023 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
2024 | if test -z "`$CXX -frepo -c conftest.cc 2>&1`"; then
|
---|
2025 | if test -z "`$CXX -frepo -o conftest conftest.o 2>&1`"; then
|
---|
2026 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
2027 | fi
|
---|
2028 | fi
|
---|
2029 | rm -f conftest*
|
---|
2030 |
|
---|
2031 | fi
|
---|
2032 |
|
---|
2033 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
2034 | echo "$ac_t""yes" 1>&6
|
---|
2035 | :
|
---|
2036 |
|
---|
2037 | REPO="-frepo"
|
---|
2038 | NOREPO="-fno-repo"
|
---|
2039 |
|
---|
2040 | else
|
---|
2041 | echo "$ac_t""no" 1>&6
|
---|
2042 | :
|
---|
2043 |
|
---|
2044 | fi
|
---|
2045 |
|
---|
2046 |
|
---|
2047 | if test -z "$REPO"; then
|
---|
2048 |
|
---|
2049 |
|
---|
2050 | echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
|
---|
2051 | echo "configure:2052: checking whether $CXX supports -instances=explicit" >&5
|
---|
2052 | kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`
|
---|
2053 | if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
|
---|
2054 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2055 | else
|
---|
2056 |
|
---|
2057 | echo 'int main() { return 0; }' >conftest.cc
|
---|
2058 | eval "kde_cv_prog_cxx_$kde_cache=no"
|
---|
2059 | if test -z "`$CXX -instances=explicit -c conftest.cc 2>&1`"; then
|
---|
2060 | if test -z "`$CXX -instances=explicit -o conftest conftest.o 2>&1`"; then
|
---|
2061 | eval "kde_cv_prog_cxx_$kde_cache=yes"
|
---|
2062 | fi
|
---|
2063 | fi
|
---|
2064 | rm -f conftest*
|
---|
2065 |
|
---|
2066 | fi
|
---|
2067 |
|
---|
2068 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
|
---|
2069 | echo "$ac_t""yes" 1>&6
|
---|
2070 | :
|
---|
2071 |
|
---|
2072 | REPO="-instances=explicit"
|
---|
2073 | NOREPO="-instances=extern"
|
---|
2074 |
|
---|
2075 | else
|
---|
2076 | echo "$ac_t""no" 1>&6
|
---|
2077 | :
|
---|
2078 |
|
---|
2079 | fi
|
---|
2080 |
|
---|
2081 | fi
|
---|
2082 |
|
---|
2083 | if test -n "$REPO"; then
|
---|
2084 | cat >> confdefs.h <<EOF
|
---|
2085 | #define HAVE_TEMPLATE_REPOSITORY 1
|
---|
2086 | EOF
|
---|
2087 |
|
---|
2088 |
|
---|
2089 | fi
|
---|
2090 |
|
---|
2091 |
|
---|
2092 |
|
---|
2093 |
|
---|
2094 | if test "x$kde_use_final" = "xyes"; then
|
---|
2095 | KDE_USE_FINAL_TRUE=""
|
---|
2096 | KDE_USE_FINAL_FALSE="#"
|
---|
2097 | else
|
---|
2098 | KDE_USE_FINAL_TRUE="#"
|
---|
2099 | KDE_USE_FINAL_FALSE=""
|
---|
2100 | fi
|
---|
2101 |
|
---|
2102 |
|
---|
2103 |
|
---|
2104 | # Check whether --enable-closure or --disable-closure was given.
|
---|
2105 | if test "${enable_closure+set}" = set; then
|
---|
2106 | enableval="$enable_closure"
|
---|
2107 | kde_use_closure=$enableval
|
---|
2108 | else
|
---|
2109 | kde_use_closure=yes
|
---|
2110 | fi
|
---|
2111 |
|
---|
2112 |
|
---|
2113 | if test "x$kde_use_closure" = "xyes"; then
|
---|
2114 | KDE_USE_CLOSURE_TRUE=""
|
---|
2115 | KDE_USE_CLOSURE_FALSE="#"
|
---|
2116 | # CXXFLAGS="$CXXFLAGS $REPO"
|
---|
2117 | else
|
---|
2118 | KDE_USE_CLOSURE_TRUE="#"
|
---|
2119 | KDE_USE_CLOSURE_FALSE=""
|
---|
2120 | fi
|
---|
2121 |
|
---|
2122 |
|
---|
2123 |
|
---|
2124 |
|
---|
2125 |
|
---|
2126 |
|
---|
2127 | KDE_CXXFLAGS=
|
---|
2128 |
|
---|
2129 |
|
---|
2130 | # Check whether --enable-shared or --disable-shared was given.
|
---|
2131 | if test "${enable_shared+set}" = set; then
|
---|
2132 | enableval="$enable_shared"
|
---|
2133 | p=${PACKAGE-default}
|
---|
2134 | case "$enableval" in
|
---|
2135 | yes) enable_shared=yes ;;
|
---|
2136 | no) enable_shared=no ;;
|
---|
2137 | *)
|
---|
2138 | enable_shared=no
|
---|
2139 | # Look at the argument we got. We use all the common list separators.
|
---|
2140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
2141 | for pkg in $enableval; do
|
---|
2142 | if test "X$pkg" = "X$p"; then
|
---|
2143 | enable_shared=yes
|
---|
2144 | fi
|
---|
2145 | done
|
---|
2146 | IFS="$ac_save_ifs"
|
---|
2147 | ;;
|
---|
2148 | esac
|
---|
2149 | else
|
---|
2150 | enable_shared=yes
|
---|
2151 | fi
|
---|
2152 |
|
---|
2153 | # Check whether --enable-static or --disable-static was given.
|
---|
2154 | if test "${enable_static+set}" = set; then
|
---|
2155 | enableval="$enable_static"
|
---|
2156 | p=${PACKAGE-default}
|
---|
2157 | case "$enableval" in
|
---|
2158 | yes) enable_static=yes ;;
|
---|
2159 | no) enable_static=no ;;
|
---|
2160 | *)
|
---|
2161 | enable_static=no
|
---|
2162 | # Look at the argument we got. We use all the common list separators.
|
---|
2163 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
2164 | for pkg in $enableval; do
|
---|
2165 | if test "X$pkg" = "X$p"; then
|
---|
2166 | enable_static=yes
|
---|
2167 | fi
|
---|
2168 | done
|
---|
2169 | IFS="$ac_save_ifs"
|
---|
2170 | ;;
|
---|
2171 | esac
|
---|
2172 | else
|
---|
2173 | enable_static=no
|
---|
2174 | fi
|
---|
2175 |
|
---|
2176 | # Check whether --enable-fast-install or --disable-fast-install was given.
|
---|
2177 | if test "${enable_fast_install+set}" = set; then
|
---|
2178 | enableval="$enable_fast_install"
|
---|
2179 | p=${PACKAGE-default}
|
---|
2180 | case "$enableval" in
|
---|
2181 | yes) enable_fast_install=yes ;;
|
---|
2182 | no) enable_fast_install=no ;;
|
---|
2183 | *)
|
---|
2184 | enable_fast_install=no
|
---|
2185 | # Look at the argument we got. We use all the common list separators.
|
---|
2186 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
|
---|
2187 | for pkg in $enableval; do
|
---|
2188 | if test "X$pkg" = "X$p"; then
|
---|
2189 | enable_fast_install=yes
|
---|
2190 | fi
|
---|
2191 | done
|
---|
2192 | IFS="$ac_save_ifs"
|
---|
2193 | ;;
|
---|
2194 | esac
|
---|
2195 | else
|
---|
2196 | enable_fast_install=yes
|
---|
2197 | fi
|
---|
2198 |
|
---|
2199 | # Check whether --with-gnu-ld or --without-gnu-ld was given.
|
---|
2200 | if test "${with_gnu_ld+set}" = set; then
|
---|
2201 | withval="$with_gnu_ld"
|
---|
2202 | test "$withval" = no || with_gnu_ld=yes
|
---|
2203 | else
|
---|
2204 | with_gnu_ld=no
|
---|
2205 | fi
|
---|
2206 |
|
---|
2207 | ac_prog=ld
|
---|
2208 | if test "$GCC" = yes; then
|
---|
2209 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
2210 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
|
---|
2211 | echo "configure:2212: checking for ld used by GCC" >&5
|
---|
2212 | case $host in
|
---|
2213 | *-*-mingw*)
|
---|
2214 | # gcc leaves a trailing carriage return which upsets mingw
|
---|
2215 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
2216 | *)
|
---|
2217 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
2218 | esac
|
---|
2219 | case "$ac_prog" in
|
---|
2220 | # Accept absolute paths.
|
---|
2221 | [\\/]* | [A-Za-z]:[\\/]*)
|
---|
2222 | re_direlt='/[^/][^/]*/\.\./'
|
---|
2223 | # Canonicalize the path of ld
|
---|
2224 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
|
---|
2225 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
|
---|
2226 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
---|
2227 | done
|
---|
2228 | test -z "$LD" && LD="$ac_prog"
|
---|
2229 | ;;
|
---|
2230 | "")
|
---|
2231 | # If it fails, then pretend we aren't using GCC.
|
---|
2232 | ac_prog=ld
|
---|
2233 | ;;
|
---|
2234 | *)
|
---|
2235 | # If it is relative, then search for the first ld in PATH.
|
---|
2236 | with_gnu_ld=unknown
|
---|
2237 | ;;
|
---|
2238 | esac
|
---|
2239 | elif test "$with_gnu_ld" = yes; then
|
---|
2240 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
|
---|
2241 | echo "configure:2242: checking for GNU ld" >&5
|
---|
2242 | else
|
---|
2243 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
|
---|
2244 | echo "configure:2245: checking for non-GNU ld" >&5
|
---|
2245 | fi
|
---|
2246 | if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
|
---|
2247 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2248 | else
|
---|
2249 | if test -z "$LD"; then
|
---|
2250 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
2251 | for ac_dir in $PATH; do
|
---|
2252 | test -z "$ac_dir" && ac_dir=.
|
---|
2253 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
2254 | lt_cv_path_LD="$ac_dir/$ac_prog"
|
---|
2255 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
2256 | # but apparently some GNU ld's only accept -v.
|
---|
2257 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
2258 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
---|
2259 | test "$with_gnu_ld" != no && break
|
---|
2260 | else
|
---|
2261 | test "$with_gnu_ld" != yes && break
|
---|
2262 | fi
|
---|
2263 | fi
|
---|
2264 | done
|
---|
2265 | IFS="$ac_save_ifs"
|
---|
2266 | else
|
---|
2267 | lt_cv_path_LD="$LD" # Let the user override the test with a path.
|
---|
2268 | fi
|
---|
2269 | fi
|
---|
2270 |
|
---|
2271 | LD="$lt_cv_path_LD"
|
---|
2272 | if test -n "$LD"; then
|
---|
2273 | echo "$ac_t""$LD" 1>&6
|
---|
2274 | else
|
---|
2275 | echo "$ac_t""no" 1>&6
|
---|
2276 | fi
|
---|
2277 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
|
---|
2278 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
|
---|
2279 | echo "configure:2280: checking if the linker ($LD) is GNU ld" >&5
|
---|
2280 | if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
|
---|
2281 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2282 | else
|
---|
2283 | # I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
---|
2284 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
---|
2285 | lt_cv_prog_gnu_ld=yes
|
---|
2286 | else
|
---|
2287 | lt_cv_prog_gnu_ld=no
|
---|
2288 | fi
|
---|
2289 | fi
|
---|
2290 |
|
---|
2291 | echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
|
---|
2292 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
2293 |
|
---|
2294 |
|
---|
2295 | echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
|
---|
2296 | echo "configure:2297: checking for $LD option to reload object files" >&5
|
---|
2297 | if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
|
---|
2298 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2299 | else
|
---|
2300 | lt_cv_ld_reload_flag='-r'
|
---|
2301 | fi
|
---|
2302 |
|
---|
2303 | echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
|
---|
2304 | reload_flag=$lt_cv_ld_reload_flag
|
---|
2305 | test -n "$reload_flag" && reload_flag=" $reload_flag"
|
---|
2306 |
|
---|
2307 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
|
---|
2308 | echo "configure:2309: checking for BSD-compatible nm" >&5
|
---|
2309 | if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
|
---|
2310 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2311 | else
|
---|
2312 | if test -n "$NM"; then
|
---|
2313 | # Let the user override the test.
|
---|
2314 | lt_cv_path_NM="$NM"
|
---|
2315 | else
|
---|
2316 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
|
---|
2317 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
---|
2318 | test -z "$ac_dir" && ac_dir=.
|
---|
2319 | tmp_nm=$ac_dir/${ac_tool_prefix}nm
|
---|
2320 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
|
---|
2321 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
2322 | # Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
---|
2323 | # nm: unknown option "B" ignored
|
---|
2324 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
2325 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
|
---|
2326 | lt_cv_path_NM="$tmp_nm -B"
|
---|
2327 | break
|
---|
2328 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
|
---|
2329 | lt_cv_path_NM="$tmp_nm -p"
|
---|
2330 | break
|
---|
2331 | else
|
---|
2332 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
2333 | continue # so that we can try to find one that supports BSD flags
|
---|
2334 | fi
|
---|
2335 | fi
|
---|
2336 | done
|
---|
2337 | IFS="$ac_save_ifs"
|
---|
2338 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
---|
2339 | fi
|
---|
2340 | fi
|
---|
2341 |
|
---|
2342 | NM="$lt_cv_path_NM"
|
---|
2343 | echo "$ac_t""$NM" 1>&6
|
---|
2344 |
|
---|
2345 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
|
---|
2346 | echo "configure:2347: checking whether ln -s works" >&5
|
---|
2347 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
|
---|
2348 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2349 | else
|
---|
2350 | rm -f conftestdata
|
---|
2351 | if ln -s X conftestdata 2>/dev/null
|
---|
2352 | then
|
---|
2353 | rm -f conftestdata
|
---|
2354 | ac_cv_prog_LN_S="ln -s"
|
---|
2355 | else
|
---|
2356 | ac_cv_prog_LN_S=ln
|
---|
2357 | fi
|
---|
2358 | fi
|
---|
2359 | LN_S="$ac_cv_prog_LN_S"
|
---|
2360 | if test "$ac_cv_prog_LN_S" = "ln -s"; then
|
---|
2361 | echo "$ac_t""yes" 1>&6
|
---|
2362 | else
|
---|
2363 | echo "$ac_t""no" 1>&6
|
---|
2364 | fi
|
---|
2365 |
|
---|
2366 | echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
|
---|
2367 | echo "configure:2368: checking how to recognise dependant libraries" >&5
|
---|
2368 | if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
|
---|
2369 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2370 | else
|
---|
2371 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
2372 | lt_cv_file_magic_test_file=
|
---|
2373 | lt_cv_deplibs_check_method='unknown'
|
---|
2374 | # Need to set the preceding variable on all platforms that support
|
---|
2375 | # interlibrary dependencies.
|
---|
2376 | # 'none' -- dependencies not supported.
|
---|
2377 | # `unknown' -- same as none, but documents that we really don't know.
|
---|
2378 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
2379 | # 'test_compile' -- check by making test program.
|
---|
2380 | # 'file_magic [regex]' -- check by looking for files in library path
|
---|
2381 | # which responds to the $file_magic_cmd with a given egrep regex.
|
---|
2382 | # If you have `file' or equivalent on your system and you're not sure
|
---|
2383 | # whether `pass_all' will *always* work, you probably want this one.
|
---|
2384 |
|
---|
2385 | case "$host_os" in
|
---|
2386 | aix4*)
|
---|
2387 | lt_cv_deplibs_check_method=pass_all
|
---|
2388 | ;;
|
---|
2389 |
|
---|
2390 | beos*)
|
---|
2391 | lt_cv_deplibs_check_method=pass_all
|
---|
2392 | ;;
|
---|
2393 |
|
---|
2394 | bsdi4*)
|
---|
2395 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
2396 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
2397 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
2398 | ;;
|
---|
2399 |
|
---|
2400 | cygwin* | mingw* |pw32*)
|
---|
2401 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
---|
2402 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
2403 | ;;
|
---|
2404 |
|
---|
2405 | darwin* | rhapsody*)
|
---|
2406 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
|
---|
2407 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2408 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
|
---|
2409 | ;;
|
---|
2410 |
|
---|
2411 | freebsd* )
|
---|
2412 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
2413 | case "$host_cpu" in
|
---|
2414 | i*86 )
|
---|
2415 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
2416 | # Let's accept both of them until this is cleared up.
|
---|
2417 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
---|
2418 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2419 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
2420 | ;;
|
---|
2421 | esac
|
---|
2422 | else
|
---|
2423 | lt_cv_deplibs_check_method=pass_all
|
---|
2424 | fi
|
---|
2425 | ;;
|
---|
2426 |
|
---|
2427 | gnu*)
|
---|
2428 | lt_cv_deplibs_check_method=pass_all
|
---|
2429 | ;;
|
---|
2430 |
|
---|
2431 | hpux10.20*|hpux11*)
|
---|
2432 | # TODO: Does this work for hpux-11 too?
|
---|
2433 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
|
---|
2434 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2435 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
2436 | ;;
|
---|
2437 |
|
---|
2438 | irix5* | irix6*)
|
---|
2439 | case "$host_os" in
|
---|
2440 | irix5*)
|
---|
2441 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2442 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
|
---|
2443 | ;;
|
---|
2444 | *)
|
---|
2445 | case "$LD" in
|
---|
2446 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
2447 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
2448 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
2449 | *) libmagic=never-match;;
|
---|
2450 | esac
|
---|
2451 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2452 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
|
---|
2453 | ;;
|
---|
2454 | esac
|
---|
2455 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
|
---|
2456 | lt_cv_deplibs_check_method=pass_all
|
---|
2457 | ;;
|
---|
2458 |
|
---|
2459 | # This must be Linux ELF.
|
---|
2460 | linux-gnu*)
|
---|
2461 | case "$host_cpu" in
|
---|
2462 | alpha* | i*86 | powerpc* | sparc* | ia64* | s390* )
|
---|
2463 | lt_cv_deplibs_check_method=pass_all ;;
|
---|
2464 | *)
|
---|
2465 | # glibc up to 2.1.1 does not perform some relocations on ARM
|
---|
2466 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
|
---|
2467 | esac
|
---|
2468 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
|
---|
2469 | ;;
|
---|
2470 |
|
---|
2471 | netbsd*)
|
---|
2472 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
2473 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
|
---|
2474 | else
|
---|
2475 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
---|
2476 | fi
|
---|
2477 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
2478 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
2479 | ;;
|
---|
2480 |
|
---|
2481 | openbsd* )
|
---|
2482 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
---|
2483 | case "$host_cpu" in
|
---|
2484 | i*86 )
|
---|
2485 | lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
|
---|
2486 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2487 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
2488 | ;;
|
---|
2489 | esac
|
---|
2490 | else
|
---|
2491 | lt_cv_deplibs_check_method=pass_all
|
---|
2492 | fi
|
---|
2493 | ;;
|
---|
2494 |
|
---|
2495 | newsos6)
|
---|
2496 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
2497 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
2498 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
2499 | ;;
|
---|
2500 |
|
---|
2501 | osf3* | osf4* | osf5*)
|
---|
2502 | # this will be overridden with pass_all, but let us keep it just in case
|
---|
2503 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
|
---|
2504 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
2505 | lt_cv_deplibs_check_method=pass_all
|
---|
2506 | ;;
|
---|
2507 |
|
---|
2508 | sco3.2v5*)
|
---|
2509 | lt_cv_deplibs_check_method=pass_all
|
---|
2510 | ;;
|
---|
2511 |
|
---|
2512 | solaris*)
|
---|
2513 | lt_cv_deplibs_check_method=pass_all
|
---|
2514 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
2515 | ;;
|
---|
2516 |
|
---|
2517 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
2518 | case "$host_vendor" in
|
---|
2519 | ncr)
|
---|
2520 | lt_cv_deplibs_check_method=pass_all
|
---|
2521 | ;;
|
---|
2522 | motorola)
|
---|
2523 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
---|
2524 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
2525 | ;;
|
---|
2526 | esac
|
---|
2527 | ;;
|
---|
2528 | esac
|
---|
2529 |
|
---|
2530 | fi
|
---|
2531 |
|
---|
2532 | echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
|
---|
2533 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
2534 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
2535 |
|
---|
2536 | if test $host != $build; then
|
---|
2537 | ac_tool_prefix=${host_alias}-
|
---|
2538 | else
|
---|
2539 | ac_tool_prefix=
|
---|
2540 | fi
|
---|
2541 |
|
---|
2542 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
|
---|
2543 |
|
---|
2544 | # Only perform the check for file, if the check method requires it
|
---|
2545 | case "$deplibs_check_method" in
|
---|
2546 | file_magic*)
|
---|
2547 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
2548 | echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
|
---|
2549 | echo "configure:2550: checking for ${ac_tool_prefix}file" >&5
|
---|
2550 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
2551 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2552 | else
|
---|
2553 | case "$MAGIC_CMD" in
|
---|
2554 | /*)
|
---|
2555 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
2556 | ;;
|
---|
2557 | ?:/*)
|
---|
2558 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
2559 | ;;
|
---|
2560 | *)
|
---|
2561 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
2562 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2563 | ac_dummy="/usr/bin:$PATH"
|
---|
2564 | for ac_dir in $ac_dummy; do
|
---|
2565 | test -z "$ac_dir" && ac_dir=.
|
---|
2566 | if test -f $ac_dir/${ac_tool_prefix}file; then
|
---|
2567 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
|
---|
2568 | if test -n "$file_magic_test_file"; then
|
---|
2569 | case "$deplibs_check_method" in
|
---|
2570 | "file_magic "*)
|
---|
2571 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
2572 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2573 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
2574 | egrep "$file_magic_regex" > /dev/null; then
|
---|
2575 | :
|
---|
2576 | else
|
---|
2577 | cat <<EOF 1>&2
|
---|
2578 |
|
---|
2579 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
2580 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
2581 | *** The result is that libtool may fail to recognize shared libraries
|
---|
2582 | *** as such. This will affect the creation of libtool libraries that
|
---|
2583 | *** depend on shared libraries, but programs linked with such libtool
|
---|
2584 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
2585 | *** may want to report the problem to your system manager and/or to
|
---|
2586 | *** bug-libtool@gnu.org
|
---|
2587 |
|
---|
2588 | EOF
|
---|
2589 | fi ;;
|
---|
2590 | esac
|
---|
2591 | fi
|
---|
2592 | break
|
---|
2593 | fi
|
---|
2594 | done
|
---|
2595 | IFS="$ac_save_ifs"
|
---|
2596 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
2597 | ;;
|
---|
2598 | esac
|
---|
2599 | fi
|
---|
2600 |
|
---|
2601 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2602 | if test -n "$MAGIC_CMD"; then
|
---|
2603 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
2604 | else
|
---|
2605 | echo "$ac_t""no" 1>&6
|
---|
2606 | fi
|
---|
2607 |
|
---|
2608 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
2609 | if test -n "$ac_tool_prefix"; then
|
---|
2610 | echo $ac_n "checking for file""... $ac_c" 1>&6
|
---|
2611 | echo "configure:2612: checking for file" >&5
|
---|
2612 | if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
|
---|
2613 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2614 | else
|
---|
2615 | case "$MAGIC_CMD" in
|
---|
2616 | /*)
|
---|
2617 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
|
---|
2618 | ;;
|
---|
2619 | ?:/*)
|
---|
2620 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
|
---|
2621 | ;;
|
---|
2622 | *)
|
---|
2623 | ac_save_MAGIC_CMD="$MAGIC_CMD"
|
---|
2624 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2625 | ac_dummy="/usr/bin:$PATH"
|
---|
2626 | for ac_dir in $ac_dummy; do
|
---|
2627 | test -z "$ac_dir" && ac_dir=.
|
---|
2628 | if test -f $ac_dir/file; then
|
---|
2629 | lt_cv_path_MAGIC_CMD="$ac_dir/file"
|
---|
2630 | if test -n "$file_magic_test_file"; then
|
---|
2631 | case "$deplibs_check_method" in
|
---|
2632 | "file_magic "*)
|
---|
2633 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
---|
2634 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2635 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
2636 | egrep "$file_magic_regex" > /dev/null; then
|
---|
2637 | :
|
---|
2638 | else
|
---|
2639 | cat <<EOF 1>&2
|
---|
2640 |
|
---|
2641 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
2642 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
2643 | *** The result is that libtool may fail to recognize shared libraries
|
---|
2644 | *** as such. This will affect the creation of libtool libraries that
|
---|
2645 | *** depend on shared libraries, but programs linked with such libtool
|
---|
2646 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
2647 | *** may want to report the problem to your system manager and/or to
|
---|
2648 | *** bug-libtool@gnu.org
|
---|
2649 |
|
---|
2650 | EOF
|
---|
2651 | fi ;;
|
---|
2652 | esac
|
---|
2653 | fi
|
---|
2654 | break
|
---|
2655 | fi
|
---|
2656 | done
|
---|
2657 | IFS="$ac_save_ifs"
|
---|
2658 | MAGIC_CMD="$ac_save_MAGIC_CMD"
|
---|
2659 | ;;
|
---|
2660 | esac
|
---|
2661 | fi
|
---|
2662 |
|
---|
2663 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
---|
2664 | if test -n "$MAGIC_CMD"; then
|
---|
2665 | echo "$ac_t""$MAGIC_CMD" 1>&6
|
---|
2666 | else
|
---|
2667 | echo "$ac_t""no" 1>&6
|
---|
2668 | fi
|
---|
2669 |
|
---|
2670 | else
|
---|
2671 | MAGIC_CMD=:
|
---|
2672 | fi
|
---|
2673 | fi
|
---|
2674 |
|
---|
2675 | fi
|
---|
2676 | ;;
|
---|
2677 | esac
|
---|
2678 |
|
---|
2679 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
2680 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
2681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2682 | echo "configure:2683: checking for $ac_word" >&5
|
---|
2683 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2684 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2685 | else
|
---|
2686 | if test -n "$RANLIB"; then
|
---|
2687 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2688 | else
|
---|
2689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2690 | ac_dummy="$PATH"
|
---|
2691 | for ac_dir in $ac_dummy; do
|
---|
2692 | test -z "$ac_dir" && ac_dir=.
|
---|
2693 | if test -f $ac_dir/$ac_word; then
|
---|
2694 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
2695 | break
|
---|
2696 | fi
|
---|
2697 | done
|
---|
2698 | IFS="$ac_save_ifs"
|
---|
2699 | fi
|
---|
2700 | fi
|
---|
2701 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2702 | if test -n "$RANLIB"; then
|
---|
2703 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2704 | else
|
---|
2705 | echo "$ac_t""no" 1>&6
|
---|
2706 | fi
|
---|
2707 |
|
---|
2708 |
|
---|
2709 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
2710 | if test -n "$ac_tool_prefix"; then
|
---|
2711 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
2712 | set dummy ranlib; ac_word=$2
|
---|
2713 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2714 | echo "configure:2715: checking for $ac_word" >&5
|
---|
2715 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
|
---|
2716 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2717 | else
|
---|
2718 | if test -n "$RANLIB"; then
|
---|
2719 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
2720 | else
|
---|
2721 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2722 | ac_dummy="$PATH"
|
---|
2723 | for ac_dir in $ac_dummy; do
|
---|
2724 | test -z "$ac_dir" && ac_dir=.
|
---|
2725 | if test -f $ac_dir/$ac_word; then
|
---|
2726 | ac_cv_prog_RANLIB="ranlib"
|
---|
2727 | break
|
---|
2728 | fi
|
---|
2729 | done
|
---|
2730 | IFS="$ac_save_ifs"
|
---|
2731 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
|
---|
2732 | fi
|
---|
2733 | fi
|
---|
2734 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
2735 | if test -n "$RANLIB"; then
|
---|
2736 | echo "$ac_t""$RANLIB" 1>&6
|
---|
2737 | else
|
---|
2738 | echo "$ac_t""no" 1>&6
|
---|
2739 | fi
|
---|
2740 |
|
---|
2741 | else
|
---|
2742 | RANLIB=":"
|
---|
2743 | fi
|
---|
2744 | fi
|
---|
2745 |
|
---|
2746 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2747 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2748 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2749 | echo "configure:2750: checking for $ac_word" >&5
|
---|
2750 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2751 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2752 | else
|
---|
2753 | if test -n "$STRIP"; then
|
---|
2754 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2755 | else
|
---|
2756 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2757 | ac_dummy="$PATH"
|
---|
2758 | for ac_dir in $ac_dummy; do
|
---|
2759 | test -z "$ac_dir" && ac_dir=.
|
---|
2760 | if test -f $ac_dir/$ac_word; then
|
---|
2761 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2762 | break
|
---|
2763 | fi
|
---|
2764 | done
|
---|
2765 | IFS="$ac_save_ifs"
|
---|
2766 | fi
|
---|
2767 | fi
|
---|
2768 | STRIP="$ac_cv_prog_STRIP"
|
---|
2769 | if test -n "$STRIP"; then
|
---|
2770 | echo "$ac_t""$STRIP" 1>&6
|
---|
2771 | else
|
---|
2772 | echo "$ac_t""no" 1>&6
|
---|
2773 | fi
|
---|
2774 |
|
---|
2775 |
|
---|
2776 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2777 | if test -n "$ac_tool_prefix"; then
|
---|
2778 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2779 | set dummy strip; ac_word=$2
|
---|
2780 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
2781 | echo "configure:2782: checking for $ac_word" >&5
|
---|
2782 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
|
---|
2783 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2784 | else
|
---|
2785 | if test -n "$STRIP"; then
|
---|
2786 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2787 | else
|
---|
2788 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
2789 | ac_dummy="$PATH"
|
---|
2790 | for ac_dir in $ac_dummy; do
|
---|
2791 | test -z "$ac_dir" && ac_dir=.
|
---|
2792 | if test -f $ac_dir/$ac_word; then
|
---|
2793 | ac_cv_prog_STRIP="strip"
|
---|
2794 | break
|
---|
2795 | fi
|
---|
2796 | done
|
---|
2797 | IFS="$ac_save_ifs"
|
---|
2798 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
|
---|
2799 | fi
|
---|
2800 | fi
|
---|
2801 | STRIP="$ac_cv_prog_STRIP"
|
---|
2802 | if test -n "$STRIP"; then
|
---|
2803 | echo "$ac_t""$STRIP" 1>&6
|
---|
2804 | else
|
---|
2805 | echo "$ac_t""no" 1>&6
|
---|
2806 | fi
|
---|
2807 |
|
---|
2808 | else
|
---|
2809 | STRIP=":"
|
---|
2810 | fi
|
---|
2811 | fi
|
---|
2812 |
|
---|
2813 |
|
---|
2814 | # Check for any special flags to pass to ltconfig.
|
---|
2815 | libtool_flags="--cache-file=$cache_file"
|
---|
2816 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
|
---|
2817 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
|
---|
2818 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
|
---|
2819 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
|
---|
2820 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
---|
2821 | libtool_flags="$libtool_flags --enable-dlopen"
|
---|
2822 |
|
---|
2823 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
|
---|
2824 | if test "${enable_libtool_lock+set}" = set; then
|
---|
2825 | enableval="$enable_libtool_lock"
|
---|
2826 | :
|
---|
2827 | fi
|
---|
2828 |
|
---|
2829 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
|
---|
2830 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
|
---|
2831 |
|
---|
2832 | # Check whether --with-pic or --without-pic was given.
|
---|
2833 | if test "${with_pic+set}" = set; then
|
---|
2834 | withval="$with_pic"
|
---|
2835 | pic_mode="$withval"
|
---|
2836 | else
|
---|
2837 | pic_mode=default
|
---|
2838 | fi
|
---|
2839 |
|
---|
2840 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
|
---|
2841 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
|
---|
2842 |
|
---|
2843 | # Some flags need to be propagated to the compiler or linker for good
|
---|
2844 | # libtool support.
|
---|
2845 | case "$host" in
|
---|
2846 | *-*-irix6*)
|
---|
2847 | # Find out which ABI we are using.
|
---|
2848 | echo '#line 2849 "configure"' > conftest.$ac_ext
|
---|
2849 | if { (eval echo configure:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2850 | case "`/usr/bin/file conftest.$ac_objext`" in
|
---|
2851 | *32-bit*)
|
---|
2852 | LD="${LD-ld} -32"
|
---|
2853 | ;;
|
---|
2854 | *N32*)
|
---|
2855 | LD="${LD-ld} -n32"
|
---|
2856 | ;;
|
---|
2857 | *64-bit*)
|
---|
2858 | LD="${LD-ld} -64"
|
---|
2859 | ;;
|
---|
2860 | esac
|
---|
2861 | fi
|
---|
2862 | rm -rf conftest*
|
---|
2863 | ;;
|
---|
2864 |
|
---|
2865 | *-*-sco3.2v5*)
|
---|
2866 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
2867 | SAVE_CFLAGS="$CFLAGS"
|
---|
2868 | CFLAGS="$CFLAGS -belf"
|
---|
2869 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
|
---|
2870 | echo "configure:2871: checking whether the C compiler needs -belf" >&5
|
---|
2871 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
|
---|
2872 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2873 | else
|
---|
2874 |
|
---|
2875 | ac_ext=c
|
---|
2876 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2877 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2878 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2879 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2880 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2881 |
|
---|
2882 | cat > conftest.$ac_ext <<EOF
|
---|
2883 | #line 2884 "configure"
|
---|
2884 | #include "confdefs.h"
|
---|
2885 |
|
---|
2886 | int main() {
|
---|
2887 |
|
---|
2888 | ; return 0; }
|
---|
2889 | EOF
|
---|
2890 | if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
2891 | rm -rf conftest*
|
---|
2892 | lt_cv_cc_needs_belf=yes
|
---|
2893 | else
|
---|
2894 | echo "configure: failed program was:" >&5
|
---|
2895 | cat conftest.$ac_ext >&5
|
---|
2896 | rm -rf conftest*
|
---|
2897 | lt_cv_cc_needs_belf=no
|
---|
2898 | fi
|
---|
2899 | rm -f conftest*
|
---|
2900 | ac_ext=c
|
---|
2901 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
2902 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2903 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
2904 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
2905 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
2906 |
|
---|
2907 | fi
|
---|
2908 |
|
---|
2909 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
|
---|
2910 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
---|
2911 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
2912 | CFLAGS="$SAVE_CFLAGS"
|
---|
2913 | fi
|
---|
2914 | ;;
|
---|
2915 |
|
---|
2916 |
|
---|
2917 | esac
|
---|
2918 |
|
---|
2919 |
|
---|
2920 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
|
---|
2921 | echo "configure:2922: checking for Cygwin environment" >&5
|
---|
2922 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
|
---|
2923 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2924 | else
|
---|
2925 | cat > conftest.$ac_ext <<EOF
|
---|
2926 | #line 2927 "configure"
|
---|
2927 | #include "confdefs.h"
|
---|
2928 |
|
---|
2929 | int main() {
|
---|
2930 |
|
---|
2931 | #ifndef __CYGWIN__
|
---|
2932 | #define __CYGWIN__ __CYGWIN32__
|
---|
2933 | #endif
|
---|
2934 | return __CYGWIN__;
|
---|
2935 | ; return 0; }
|
---|
2936 | EOF
|
---|
2937 | if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2938 | rm -rf conftest*
|
---|
2939 | ac_cv_cygwin=yes
|
---|
2940 | else
|
---|
2941 | echo "configure: failed program was:" >&5
|
---|
2942 | cat conftest.$ac_ext >&5
|
---|
2943 | rm -rf conftest*
|
---|
2944 | ac_cv_cygwin=no
|
---|
2945 | fi
|
---|
2946 | rm -f conftest*
|
---|
2947 | rm -f conftest*
|
---|
2948 | fi
|
---|
2949 |
|
---|
2950 | echo "$ac_t""$ac_cv_cygwin" 1>&6
|
---|
2951 | CYGWIN=
|
---|
2952 | test "$ac_cv_cygwin" = yes && CYGWIN=yes
|
---|
2953 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
|
---|
2954 | echo "configure:2955: checking for mingw32 environment" >&5
|
---|
2955 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
|
---|
2956 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
2957 | else
|
---|
2958 | cat > conftest.$ac_ext <<EOF
|
---|
2959 | #line 2960 "configure"
|
---|
2960 | #include "confdefs.h"
|
---|
2961 |
|
---|
2962 | int main() {
|
---|
2963 | return __MINGW32__;
|
---|
2964 | ; return 0; }
|
---|
2965 | EOF
|
---|
2966 | if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
2967 | rm -rf conftest*
|
---|
2968 | ac_cv_mingw32=yes
|
---|
2969 | else
|
---|
2970 | echo "configure: failed program was:" >&5
|
---|
2971 | cat conftest.$ac_ext >&5
|
---|
2972 | rm -rf conftest*
|
---|
2973 | ac_cv_mingw32=no
|
---|
2974 | fi
|
---|
2975 | rm -f conftest*
|
---|
2976 | rm -f conftest*
|
---|
2977 | fi
|
---|
2978 |
|
---|
2979 | echo "$ac_t""$ac_cv_mingw32" 1>&6
|
---|
2980 | MINGW32=
|
---|
2981 | test "$ac_cv_mingw32" = yes && MINGW32=yes
|
---|
2982 |
|
---|
2983 | # Save cache, so that ltconfig can load it
|
---|
2984 | cat > confcache <<\EOF
|
---|
2985 | # This file is a shell script that caches the results of configure
|
---|
2986 | # tests run on this system so they can be shared between configure
|
---|
2987 | # scripts and configure runs. It is not useful on other systems.
|
---|
2988 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
2989 | #
|
---|
2990 | # By default, configure uses ./config.cache as the cache file,
|
---|
2991 | # creating it if it does not exist already. You can give configure
|
---|
2992 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
2993 | # what configure does when it calls configure scripts in
|
---|
2994 | # subdirectories, so they share the cache.
|
---|
2995 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
2996 | # config.status only pays attention to the cache file if you give it the
|
---|
2997 | # --recheck option to rerun configure.
|
---|
2998 | #
|
---|
2999 | EOF
|
---|
3000 | # The following way of writing the cache mishandles newlines in values,
|
---|
3001 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
3002 | # So, don't put newlines in cache variables' values.
|
---|
3003 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
3004 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
3005 | (set) 2>&1 |
|
---|
3006 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
3007 | *ac_space=\ *)
|
---|
3008 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
3009 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
3010 | sed -n \
|
---|
3011 | -e "s/'/'\\\\''/g" \
|
---|
3012 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
3013 | ;;
|
---|
3014 | *)
|
---|
3015 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
3016 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
3017 | ;;
|
---|
3018 | esac >> confcache
|
---|
3019 | if cmp -s $cache_file confcache; then
|
---|
3020 | :
|
---|
3021 | else
|
---|
3022 | if test -w $cache_file; then
|
---|
3023 | echo "updating cache $cache_file"
|
---|
3024 | cat confcache > $cache_file
|
---|
3025 | else
|
---|
3026 | echo "not updating unwritable cache $cache_file"
|
---|
3027 | fi
|
---|
3028 | fi
|
---|
3029 | rm -f confcache
|
---|
3030 |
|
---|
3031 |
|
---|
3032 | # Actually configure libtool. ac_aux_dir is where install-sh is found.
|
---|
3033 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
3034 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
3035 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
3036 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
3037 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
3038 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
|
---|
3039 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
---|
3040 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
|
---|
3041 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
|
---|
3042 |
|
---|
3043 | # Reload cache, that may have been modified by ltconfig
|
---|
3044 | if test -r "$cache_file"; then
|
---|
3045 | echo "loading cache $cache_file"
|
---|
3046 | . $cache_file
|
---|
3047 | else
|
---|
3048 | echo "creating cache $cache_file"
|
---|
3049 | > $cache_file
|
---|
3050 | fi
|
---|
3051 |
|
---|
3052 |
|
---|
3053 | # This can be used to rebuild libtool when needed
|
---|
3054 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
|
---|
3055 |
|
---|
3056 | # Always use our own libtool.
|
---|
3057 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
3058 |
|
---|
3059 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
3060 | # clobbered by the next message.
|
---|
3061 | exec 5>>./config.log
|
---|
3062 |
|
---|
3063 |
|
---|
3064 |
|
---|
3065 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
|
---|
3066 | lt_save_CC="$CC"
|
---|
3067 | lt_save_CFLAGS="$CFLAGS"
|
---|
3068 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
|
---|
3069 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
|
---|
3070 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
|
---|
3071 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
|
---|
3072 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
|
---|
3073 | deplibs_check_method="$deplibs_check_method" \
|
---|
3074 | file_magic_cmd="$file_magic_cmd" \
|
---|
3075 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
|
---|
3076 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
|
---|
3077 | || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
|
---|
3078 | CC="$lt_save_CC"
|
---|
3079 | CFLAGS="$lt_save_CFLAGS"
|
---|
3080 |
|
---|
3081 | # Redirect the config.log output again, so that the ltconfig log is not
|
---|
3082 | # clobbered by the next message.
|
---|
3083 | exec 5>>./config.log
|
---|
3084 |
|
---|
3085 |
|
---|
3086 |
|
---|
3087 |
|
---|
3088 |
|
---|
3089 |
|
---|
3090 |
|
---|
3091 |
|
---|
3092 |
|
---|
3093 | ac_ext=c
|
---|
3094 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3095 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3096 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3097 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3098 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
3099 |
|
---|
3100 | echo $ac_n "checking for object suffix""... $ac_c" 1>&6
|
---|
3101 | echo "configure:3102: checking for object suffix" >&5
|
---|
3102 | if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
|
---|
3103 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3104 | else
|
---|
3105 | rm -f conftest*
|
---|
3106 | echo 'int i = 1;' > conftest.$ac_ext
|
---|
3107 | if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3108 | for ac_file in conftest.*; do
|
---|
3109 | case $ac_file in
|
---|
3110 | *.c) ;;
|
---|
3111 | *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
|
---|
3112 | esac
|
---|
3113 | done
|
---|
3114 | else
|
---|
3115 | { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
|
---|
3116 | fi
|
---|
3117 | rm -f conftest*
|
---|
3118 | fi
|
---|
3119 |
|
---|
3120 | echo "$ac_t""$ac_cv_objext" 1>&6
|
---|
3121 | OBJEXT=$ac_cv_objext
|
---|
3122 | ac_objext=$ac_cv_objext
|
---|
3123 |
|
---|
3124 |
|
---|
3125 |
|
---|
3126 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
|
---|
3127 | echo "configure:3128: checking for executable suffix" >&5
|
---|
3128 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
|
---|
3129 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3130 | else
|
---|
3131 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
|
---|
3132 | ac_cv_exeext=.exe
|
---|
3133 | else
|
---|
3134 | rm -f conftest*
|
---|
3135 | echo 'int main () { return 0; }' > conftest.$ac_ext
|
---|
3136 | ac_cv_exeext=
|
---|
3137 | if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
---|
3138 | for file in conftest.*; do
|
---|
3139 | case $file in
|
---|
3140 | *.c | *.o | *.obj) ;;
|
---|
3141 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
|
---|
3142 | esac
|
---|
3143 | done
|
---|
3144 | else
|
---|
3145 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
|
---|
3146 | fi
|
---|
3147 | rm -f conftest*
|
---|
3148 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
|
---|
3149 | fi
|
---|
3150 | fi
|
---|
3151 |
|
---|
3152 | EXEEXT=""
|
---|
3153 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
|
---|
3154 | echo "$ac_t""${ac_cv_exeext}" 1>&6
|
---|
3155 | ac_exeext=$EXEEXT
|
---|
3156 |
|
---|
3157 | ac_ext=c
|
---|
3158 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3159 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3160 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3161 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3162 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
3163 |
|
---|
3164 |
|
---|
3165 |
|
---|
3166 |
|
---|
3167 |
|
---|
3168 |
|
---|
3169 |
|
---|
3170 |
|
---|
3171 |
|
---|
3172 | LIBTOOL_SHELL="/bin/sh ./libtool"
|
---|
3173 | # LIBTOOL="$LIBTOOL --silent"
|
---|
3174 | KDE_PLUGIN="-avoid-version -module -no-undefined"
|
---|
3175 |
|
---|
3176 |
|
---|
3177 |
|
---|
3178 |
|
---|
3179 |
|
---|
3180 | # Extract the first word of "msgfmt", so it can be a program name with args.
|
---|
3181 | set dummy msgfmt; ac_word=$2
|
---|
3182 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3183 | echo "configure:3184: checking for $ac_word" >&5
|
---|
3184 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
|
---|
3185 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3186 | else
|
---|
3187 | case "$MSGFMT" in
|
---|
3188 | /*)
|
---|
3189 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
---|
3190 | ;;
|
---|
3191 | *)
|
---|
3192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
3193 | for ac_dir in $PATH; do
|
---|
3194 | test -z "$ac_dir" && ac_dir=.
|
---|
3195 | if test -f $ac_dir/$ac_word; then
|
---|
3196 | if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
|
---|
3197 | ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
---|
3198 | break
|
---|
3199 | fi
|
---|
3200 | fi
|
---|
3201 | done
|
---|
3202 | IFS="$ac_save_ifs"
|
---|
3203 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
|
---|
3204 | ;;
|
---|
3205 | esac
|
---|
3206 | fi
|
---|
3207 | MSGFMT="$ac_cv_path_MSGFMT"
|
---|
3208 | if test -n "$MSGFMT"; then
|
---|
3209 | echo "$ac_t""$MSGFMT" 1>&6
|
---|
3210 | else
|
---|
3211 | echo "$ac_t""no" 1>&6
|
---|
3212 | fi
|
---|
3213 |
|
---|
3214 | # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
---|
3215 | set dummy gmsgfmt; ac_word=$2
|
---|
3216 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3217 | echo "configure:3218: checking for $ac_word" >&5
|
---|
3218 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
|
---|
3219 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3220 | else
|
---|
3221 | case "$GMSGFMT" in
|
---|
3222 | /*)
|
---|
3223 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
---|
3224 | ;;
|
---|
3225 | ?:/*)
|
---|
3226 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
|
---|
3227 | ;;
|
---|
3228 | *)
|
---|
3229 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
---|
3230 | ac_dummy="$PATH"
|
---|
3231 | for ac_dir in $ac_dummy; do
|
---|
3232 | test -z "$ac_dir" && ac_dir=.
|
---|
3233 | if test -f $ac_dir/$ac_word; then
|
---|
3234 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
|
---|
3235 | break
|
---|
3236 | fi
|
---|
3237 | done
|
---|
3238 | IFS="$ac_save_ifs"
|
---|
3239 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
---|
3240 | ;;
|
---|
3241 | esac
|
---|
3242 | fi
|
---|
3243 | GMSGFMT="$ac_cv_path_GMSGFMT"
|
---|
3244 | if test -n "$GMSGFMT"; then
|
---|
3245 | echo "$ac_t""$GMSGFMT" 1>&6
|
---|
3246 | else
|
---|
3247 | echo "$ac_t""no" 1>&6
|
---|
3248 | fi
|
---|
3249 |
|
---|
3250 |
|
---|
3251 | if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
|
---|
3252 | echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
|
---|
3253 | GMSGFMT=":"
|
---|
3254 | fi
|
---|
3255 | MSGFMT=$GMSGFMT
|
---|
3256 |
|
---|
3257 |
|
---|
3258 |
|
---|
3259 | # Extract the first word of "xgettext", so it can be a program name with args.
|
---|
3260 | set dummy xgettext; ac_word=$2
|
---|
3261 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
---|
3262 | echo "configure:3263: checking for $ac_word" >&5
|
---|
3263 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
|
---|
3264 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3265 | else
|
---|
3266 | case "$XGETTEXT" in
|
---|
3267 | /*)
|
---|
3268 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
---|
3269 | ;;
|
---|
3270 | *)
|
---|
3271 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
---|
3272 | for ac_dir in $PATH; do
|
---|
3273 | test -z "$ac_dir" && ac_dir=.
|
---|
3274 | if test -f $ac_dir/$ac_word; then
|
---|
3275 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
---|
3276 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
---|
3277 | break
|
---|
3278 | fi
|
---|
3279 | fi
|
---|
3280 | done
|
---|
3281 | IFS="$ac_save_ifs"
|
---|
3282 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
---|
3283 | ;;
|
---|
3284 | esac
|
---|
3285 | fi
|
---|
3286 | XGETTEXT="$ac_cv_path_XGETTEXT"
|
---|
3287 | if test -n "$XGETTEXT"; then
|
---|
3288 | echo "$ac_t""$XGETTEXT" 1>&6
|
---|
3289 | else
|
---|
3290 | echo "$ac_t""no" 1>&6
|
---|
3291 | fi
|
---|
3292 |
|
---|
3293 |
|
---|
3294 | if test "$XGETTEXT" != ":"; then
|
---|
3295 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
---|
3296 | : ;
|
---|
3297 | else
|
---|
3298 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
|
---|
3299 | XGETTEXT=":"
|
---|
3300 | fi
|
---|
3301 | fi
|
---|
3302 |
|
---|
3303 |
|
---|
3304 |
|
---|
3305 |
|
---|
3306 |
|
---|
3307 | ac_ext=c
|
---|
3308 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3309 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3310 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3311 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3312 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
3313 |
|
---|
3314 | echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
|
---|
3315 | echo "configure:3316: checking for main in -lcompat" >&5
|
---|
3316 | ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
|
---|
3317 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3318 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3319 | else
|
---|
3320 | ac_save_LIBS="$LIBS"
|
---|
3321 | LIBS="-lcompat $LIBS"
|
---|
3322 | cat > conftest.$ac_ext <<EOF
|
---|
3323 | #line 3324 "configure"
|
---|
3324 | #include "confdefs.h"
|
---|
3325 |
|
---|
3326 | int main() {
|
---|
3327 | main()
|
---|
3328 | ; return 0; }
|
---|
3329 | EOF
|
---|
3330 | if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3331 | rm -rf conftest*
|
---|
3332 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3333 | else
|
---|
3334 | echo "configure: failed program was:" >&5
|
---|
3335 | cat conftest.$ac_ext >&5
|
---|
3336 | rm -rf conftest*
|
---|
3337 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3338 | fi
|
---|
3339 | rm -f conftest*
|
---|
3340 | LIBS="$ac_save_LIBS"
|
---|
3341 |
|
---|
3342 | fi
|
---|
3343 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3344 | echo "$ac_t""yes" 1>&6
|
---|
3345 | LIBCOMPAT="-lcompat"
|
---|
3346 | else
|
---|
3347 | echo "$ac_t""no" 1>&6
|
---|
3348 | fi
|
---|
3349 |
|
---|
3350 | kde_have_crypt=
|
---|
3351 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
|
---|
3352 | echo "configure:3353: checking for crypt in -lcrypt" >&5
|
---|
3353 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
|
---|
3354 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3355 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3356 | else
|
---|
3357 | ac_save_LIBS="$LIBS"
|
---|
3358 | LIBS="-lcrypt $LIBS"
|
---|
3359 | cat > conftest.$ac_ext <<EOF
|
---|
3360 | #line 3361 "configure"
|
---|
3361 | #include "confdefs.h"
|
---|
3362 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3363 | /* We use char because int might match the return type of a gcc2
|
---|
3364 | builtin and then its argument prototype would still apply. */
|
---|
3365 | char crypt();
|
---|
3366 |
|
---|
3367 | int main() {
|
---|
3368 | crypt()
|
---|
3369 | ; return 0; }
|
---|
3370 | EOF
|
---|
3371 | if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3372 | rm -rf conftest*
|
---|
3373 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3374 | else
|
---|
3375 | echo "configure: failed program was:" >&5
|
---|
3376 | cat conftest.$ac_ext >&5
|
---|
3377 | rm -rf conftest*
|
---|
3378 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3379 | fi
|
---|
3380 | rm -f conftest*
|
---|
3381 | LIBS="$ac_save_LIBS"
|
---|
3382 |
|
---|
3383 | fi
|
---|
3384 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3385 | echo "$ac_t""yes" 1>&6
|
---|
3386 | LIBCRYPT="-lcrypt"; kde_have_crypt=yes
|
---|
3387 | else
|
---|
3388 | echo "$ac_t""no" 1>&6
|
---|
3389 | echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
|
---|
3390 | echo "configure:3391: checking for crypt in -lc" >&5
|
---|
3391 | ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
|
---|
3392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3393 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3394 | else
|
---|
3395 | ac_save_LIBS="$LIBS"
|
---|
3396 | LIBS="-lc $LIBS"
|
---|
3397 | cat > conftest.$ac_ext <<EOF
|
---|
3398 | #line 3399 "configure"
|
---|
3399 | #include "confdefs.h"
|
---|
3400 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3401 | /* We use char because int might match the return type of a gcc2
|
---|
3402 | builtin and then its argument prototype would still apply. */
|
---|
3403 | char crypt();
|
---|
3404 |
|
---|
3405 | int main() {
|
---|
3406 | crypt()
|
---|
3407 | ; return 0; }
|
---|
3408 | EOF
|
---|
3409 | if { (eval echo configure:3410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3410 | rm -rf conftest*
|
---|
3411 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3412 | else
|
---|
3413 | echo "configure: failed program was:" >&5
|
---|
3414 | cat conftest.$ac_ext >&5
|
---|
3415 | rm -rf conftest*
|
---|
3416 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3417 | fi
|
---|
3418 | rm -f conftest*
|
---|
3419 | LIBS="$ac_save_LIBS"
|
---|
3420 |
|
---|
3421 | fi
|
---|
3422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3423 | echo "$ac_t""yes" 1>&6
|
---|
3424 | kde_have_crypt=yes
|
---|
3425 | else
|
---|
3426 | echo "$ac_t""no" 1>&6
|
---|
3427 |
|
---|
3428 | echo "configure: warning: you have no crypt in either libcrypt or libc.
|
---|
3429 | You should install libcrypt from another source or configure with PAM
|
---|
3430 | support" 1>&2
|
---|
3431 | kde_have_crypt=no
|
---|
3432 |
|
---|
3433 | fi
|
---|
3434 |
|
---|
3435 | fi
|
---|
3436 |
|
---|
3437 |
|
---|
3438 | if test $kde_have_crypt = yes; then
|
---|
3439 | cat >> confdefs.h <<EOF
|
---|
3440 | #define HAVE_CRYPT 1
|
---|
3441 | EOF
|
---|
3442 |
|
---|
3443 | fi
|
---|
3444 | echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6
|
---|
3445 | echo "configure:3446: checking for the third argument of getsockname" >&5
|
---|
3446 | if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then
|
---|
3447 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3448 | else
|
---|
3449 |
|
---|
3450 | ac_ext=C
|
---|
3451 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3452 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3453 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3454 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3455 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
3456 |
|
---|
3457 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3458 |
|
---|
3459 |
|
---|
3460 | cat > conftest.$ac_ext <<EOF
|
---|
3461 | #line 3462 "configure"
|
---|
3462 | #include "confdefs.h"
|
---|
3463 |
|
---|
3464 | #include <sys/types.h>
|
---|
3465 | #include <sys/socket.h>
|
---|
3466 |
|
---|
3467 | int main() {
|
---|
3468 |
|
---|
3469 | socklen_t a=0;
|
---|
3470 | getsockname(0,(struct sockaddr*)0, &a);
|
---|
3471 |
|
---|
3472 | ; return 0; }
|
---|
3473 | EOF
|
---|
3474 | if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3475 | rm -rf conftest*
|
---|
3476 | ac_cv_ksize_t=socklen_t
|
---|
3477 | else
|
---|
3478 | echo "configure: failed program was:" >&5
|
---|
3479 | cat conftest.$ac_ext >&5
|
---|
3480 | rm -rf conftest*
|
---|
3481 | ac_cv_ksize_t=
|
---|
3482 | fi
|
---|
3483 | rm -f conftest*
|
---|
3484 | if test -z "$ac_cv_ksize_t"; then
|
---|
3485 | ac_safe_cxxflags="$CXXFLAGS"
|
---|
3486 | if test "$GCC" = "yes"; then
|
---|
3487 | CXXFLAGS="-Werror $CXXFLAGS"
|
---|
3488 | fi
|
---|
3489 | cat > conftest.$ac_ext <<EOF
|
---|
3490 | #line 3491 "configure"
|
---|
3491 | #include "confdefs.h"
|
---|
3492 |
|
---|
3493 | #include <sys/types.h>
|
---|
3494 | #include <sys/socket.h>
|
---|
3495 |
|
---|
3496 | int main() {
|
---|
3497 |
|
---|
3498 | int a=0;
|
---|
3499 | getsockname(0,(struct sockaddr*)0, &a);
|
---|
3500 |
|
---|
3501 | ; return 0; }
|
---|
3502 | EOF
|
---|
3503 | if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
3504 | rm -rf conftest*
|
---|
3505 | ac_cv_ksize_t=int
|
---|
3506 | else
|
---|
3507 | echo "configure: failed program was:" >&5
|
---|
3508 | cat conftest.$ac_ext >&5
|
---|
3509 | rm -rf conftest*
|
---|
3510 | ac_cv_ksize_t=size_t
|
---|
3511 | fi
|
---|
3512 | rm -f conftest*
|
---|
3513 | CXXFLAGS="$ac_safe_cxxflags"
|
---|
3514 | fi
|
---|
3515 | ac_ext=c
|
---|
3516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3517 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3519 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3520 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
3521 |
|
---|
3522 |
|
---|
3523 | fi
|
---|
3524 |
|
---|
3525 |
|
---|
3526 | if test -z "$ac_cv_ksize_t"; then
|
---|
3527 | ac_cv_ksize_t=int
|
---|
3528 | fi
|
---|
3529 |
|
---|
3530 | echo "$ac_t""$ac_cv_ksize_t" 1>&6
|
---|
3531 | cat >> confdefs.h <<EOF
|
---|
3532 | #define ksize_t $ac_cv_ksize_t
|
---|
3533 | EOF
|
---|
3534 |
|
---|
3535 |
|
---|
3536 |
|
---|
3537 | ac_ext=c
|
---|
3538 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
3539 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3540 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
3541 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
3542 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
3543 |
|
---|
3544 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
|
---|
3545 | echo "configure:3546: checking for dnet_ntoa in -ldnet" >&5
|
---|
3546 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
---|
3547 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3548 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3549 | else
|
---|
3550 | ac_save_LIBS="$LIBS"
|
---|
3551 | LIBS="-ldnet $LIBS"
|
---|
3552 | cat > conftest.$ac_ext <<EOF
|
---|
3553 | #line 3554 "configure"
|
---|
3554 | #include "confdefs.h"
|
---|
3555 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3556 | /* We use char because int might match the return type of a gcc2
|
---|
3557 | builtin and then its argument prototype would still apply. */
|
---|
3558 | char dnet_ntoa();
|
---|
3559 |
|
---|
3560 | int main() {
|
---|
3561 | dnet_ntoa()
|
---|
3562 | ; return 0; }
|
---|
3563 | EOF
|
---|
3564 | if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3565 | rm -rf conftest*
|
---|
3566 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3567 | else
|
---|
3568 | echo "configure: failed program was:" >&5
|
---|
3569 | cat conftest.$ac_ext >&5
|
---|
3570 | rm -rf conftest*
|
---|
3571 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3572 | fi
|
---|
3573 | rm -f conftest*
|
---|
3574 | LIBS="$ac_save_LIBS"
|
---|
3575 |
|
---|
3576 | fi
|
---|
3577 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3578 | echo "$ac_t""yes" 1>&6
|
---|
3579 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
3580 | else
|
---|
3581 | echo "$ac_t""no" 1>&6
|
---|
3582 | fi
|
---|
3583 |
|
---|
3584 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
3585 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
|
---|
3586 | echo "configure:3587: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
3587 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
|
---|
3588 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3589 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3590 | else
|
---|
3591 | ac_save_LIBS="$LIBS"
|
---|
3592 | LIBS="-ldnet_stub $LIBS"
|
---|
3593 | cat > conftest.$ac_ext <<EOF
|
---|
3594 | #line 3595 "configure"
|
---|
3595 | #include "confdefs.h"
|
---|
3596 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3597 | /* We use char because int might match the return type of a gcc2
|
---|
3598 | builtin and then its argument prototype would still apply. */
|
---|
3599 | char dnet_ntoa();
|
---|
3600 |
|
---|
3601 | int main() {
|
---|
3602 | dnet_ntoa()
|
---|
3603 | ; return 0; }
|
---|
3604 | EOF
|
---|
3605 | if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3606 | rm -rf conftest*
|
---|
3607 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3608 | else
|
---|
3609 | echo "configure: failed program was:" >&5
|
---|
3610 | cat conftest.$ac_ext >&5
|
---|
3611 | rm -rf conftest*
|
---|
3612 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3613 | fi
|
---|
3614 | rm -f conftest*
|
---|
3615 | LIBS="$ac_save_LIBS"
|
---|
3616 |
|
---|
3617 | fi
|
---|
3618 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3619 | echo "$ac_t""yes" 1>&6
|
---|
3620 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
3621 | else
|
---|
3622 | echo "$ac_t""no" 1>&6
|
---|
3623 | fi
|
---|
3624 |
|
---|
3625 | fi
|
---|
3626 | echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
|
---|
3627 | echo "configure:3628: checking for inet_ntoa" >&5
|
---|
3628 | if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
|
---|
3629 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3630 | else
|
---|
3631 | cat > conftest.$ac_ext <<EOF
|
---|
3632 | #line 3633 "configure"
|
---|
3633 | #include "confdefs.h"
|
---|
3634 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3635 | which can conflict with char inet_ntoa(); below. */
|
---|
3636 | #include <assert.h>
|
---|
3637 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3638 | /* We use char because int might match the return type of a gcc2
|
---|
3639 | builtin and then its argument prototype would still apply. */
|
---|
3640 | char inet_ntoa();
|
---|
3641 |
|
---|
3642 | int main() {
|
---|
3643 |
|
---|
3644 | /* The GNU C library defines this for functions which it implements
|
---|
3645 | to always fail with ENOSYS. Some functions are actually named
|
---|
3646 | something starting with __ and the normal name is an alias. */
|
---|
3647 | #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
|
---|
3648 | choke me
|
---|
3649 | #else
|
---|
3650 | inet_ntoa();
|
---|
3651 | #endif
|
---|
3652 |
|
---|
3653 | ; return 0; }
|
---|
3654 | EOF
|
---|
3655 | if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3656 | rm -rf conftest*
|
---|
3657 | eval "ac_cv_func_inet_ntoa=yes"
|
---|
3658 | else
|
---|
3659 | echo "configure: failed program was:" >&5
|
---|
3660 | cat conftest.$ac_ext >&5
|
---|
3661 | rm -rf conftest*
|
---|
3662 | eval "ac_cv_func_inet_ntoa=no"
|
---|
3663 | fi
|
---|
3664 | rm -f conftest*
|
---|
3665 | fi
|
---|
3666 |
|
---|
3667 | if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
|
---|
3668 | echo "$ac_t""yes" 1>&6
|
---|
3669 | :
|
---|
3670 | else
|
---|
3671 | echo "$ac_t""no" 1>&6
|
---|
3672 | fi
|
---|
3673 |
|
---|
3674 | if test $ac_cv_func_inet_ntoa = no; then
|
---|
3675 | echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
|
---|
3676 | echo "configure:3677: checking for inet_ntoa in -lnsl" >&5
|
---|
3677 | ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
|
---|
3678 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3679 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3680 | else
|
---|
3681 | ac_save_LIBS="$LIBS"
|
---|
3682 | LIBS="-lnsl $LIBS"
|
---|
3683 | cat > conftest.$ac_ext <<EOF
|
---|
3684 | #line 3685 "configure"
|
---|
3685 | #include "confdefs.h"
|
---|
3686 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3687 | /* We use char because int might match the return type of a gcc2
|
---|
3688 | builtin and then its argument prototype would still apply. */
|
---|
3689 | char inet_ntoa();
|
---|
3690 |
|
---|
3691 | int main() {
|
---|
3692 | inet_ntoa()
|
---|
3693 | ; return 0; }
|
---|
3694 | EOF
|
---|
3695 | if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3696 | rm -rf conftest*
|
---|
3697 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3698 | else
|
---|
3699 | echo "configure: failed program was:" >&5
|
---|
3700 | cat conftest.$ac_ext >&5
|
---|
3701 | rm -rf conftest*
|
---|
3702 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3703 | fi
|
---|
3704 | rm -f conftest*
|
---|
3705 | LIBS="$ac_save_LIBS"
|
---|
3706 |
|
---|
3707 | fi
|
---|
3708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3709 | echo "$ac_t""yes" 1>&6
|
---|
3710 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
3711 | else
|
---|
3712 | echo "$ac_t""no" 1>&6
|
---|
3713 | fi
|
---|
3714 |
|
---|
3715 | fi
|
---|
3716 | echo $ac_n "checking for connect""... $ac_c" 1>&6
|
---|
3717 | echo "configure:3718: checking for connect" >&5
|
---|
3718 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
|
---|
3719 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3720 | else
|
---|
3721 | cat > conftest.$ac_ext <<EOF
|
---|
3722 | #line 3723 "configure"
|
---|
3723 | #include "confdefs.h"
|
---|
3724 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3725 | which can conflict with char connect(); below. */
|
---|
3726 | #include <assert.h>
|
---|
3727 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3728 | /* We use char because int might match the return type of a gcc2
|
---|
3729 | builtin and then its argument prototype would still apply. */
|
---|
3730 | char connect();
|
---|
3731 |
|
---|
3732 | int main() {
|
---|
3733 |
|
---|
3734 | /* The GNU C library defines this for functions which it implements
|
---|
3735 | to always fail with ENOSYS. Some functions are actually named
|
---|
3736 | something starting with __ and the normal name is an alias. */
|
---|
3737 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
3738 | choke me
|
---|
3739 | #else
|
---|
3740 | connect();
|
---|
3741 | #endif
|
---|
3742 |
|
---|
3743 | ; return 0; }
|
---|
3744 | EOF
|
---|
3745 | if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3746 | rm -rf conftest*
|
---|
3747 | eval "ac_cv_func_connect=yes"
|
---|
3748 | else
|
---|
3749 | echo "configure: failed program was:" >&5
|
---|
3750 | cat conftest.$ac_ext >&5
|
---|
3751 | rm -rf conftest*
|
---|
3752 | eval "ac_cv_func_connect=no"
|
---|
3753 | fi
|
---|
3754 | rm -f conftest*
|
---|
3755 | fi
|
---|
3756 |
|
---|
3757 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
|
---|
3758 | echo "$ac_t""yes" 1>&6
|
---|
3759 | :
|
---|
3760 | else
|
---|
3761 | echo "$ac_t""no" 1>&6
|
---|
3762 | fi
|
---|
3763 |
|
---|
3764 | if test $ac_cv_func_connect = no; then
|
---|
3765 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
|
---|
3766 | echo "configure:3767: checking for connect in -lsocket" >&5
|
---|
3767 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
|
---|
3768 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3769 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3770 | else
|
---|
3771 | ac_save_LIBS="$LIBS"
|
---|
3772 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
3773 | cat > conftest.$ac_ext <<EOF
|
---|
3774 | #line 3775 "configure"
|
---|
3775 | #include "confdefs.h"
|
---|
3776 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3777 | /* We use char because int might match the return type of a gcc2
|
---|
3778 | builtin and then its argument prototype would still apply. */
|
---|
3779 | char connect();
|
---|
3780 |
|
---|
3781 | int main() {
|
---|
3782 | connect()
|
---|
3783 | ; return 0; }
|
---|
3784 | EOF
|
---|
3785 | if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3786 | rm -rf conftest*
|
---|
3787 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3788 | else
|
---|
3789 | echo "configure: failed program was:" >&5
|
---|
3790 | cat conftest.$ac_ext >&5
|
---|
3791 | rm -rf conftest*
|
---|
3792 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3793 | fi
|
---|
3794 | rm -f conftest*
|
---|
3795 | LIBS="$ac_save_LIBS"
|
---|
3796 |
|
---|
3797 | fi
|
---|
3798 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3799 | echo "$ac_t""yes" 1>&6
|
---|
3800 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
3801 | else
|
---|
3802 | echo "$ac_t""no" 1>&6
|
---|
3803 | fi
|
---|
3804 |
|
---|
3805 | fi
|
---|
3806 |
|
---|
3807 | echo $ac_n "checking for remove""... $ac_c" 1>&6
|
---|
3808 | echo "configure:3809: checking for remove" >&5
|
---|
3809 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
|
---|
3810 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3811 | else
|
---|
3812 | cat > conftest.$ac_ext <<EOF
|
---|
3813 | #line 3814 "configure"
|
---|
3814 | #include "confdefs.h"
|
---|
3815 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3816 | which can conflict with char remove(); below. */
|
---|
3817 | #include <assert.h>
|
---|
3818 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3819 | /* We use char because int might match the return type of a gcc2
|
---|
3820 | builtin and then its argument prototype would still apply. */
|
---|
3821 | char remove();
|
---|
3822 |
|
---|
3823 | int main() {
|
---|
3824 |
|
---|
3825 | /* The GNU C library defines this for functions which it implements
|
---|
3826 | to always fail with ENOSYS. Some functions are actually named
|
---|
3827 | something starting with __ and the normal name is an alias. */
|
---|
3828 | #if defined (__stub_remove) || defined (__stub___remove)
|
---|
3829 | choke me
|
---|
3830 | #else
|
---|
3831 | remove();
|
---|
3832 | #endif
|
---|
3833 |
|
---|
3834 | ; return 0; }
|
---|
3835 | EOF
|
---|
3836 | if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3837 | rm -rf conftest*
|
---|
3838 | eval "ac_cv_func_remove=yes"
|
---|
3839 | else
|
---|
3840 | echo "configure: failed program was:" >&5
|
---|
3841 | cat conftest.$ac_ext >&5
|
---|
3842 | rm -rf conftest*
|
---|
3843 | eval "ac_cv_func_remove=no"
|
---|
3844 | fi
|
---|
3845 | rm -f conftest*
|
---|
3846 | fi
|
---|
3847 |
|
---|
3848 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
|
---|
3849 | echo "$ac_t""yes" 1>&6
|
---|
3850 | :
|
---|
3851 | else
|
---|
3852 | echo "$ac_t""no" 1>&6
|
---|
3853 | fi
|
---|
3854 |
|
---|
3855 | if test $ac_cv_func_remove = no; then
|
---|
3856 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
|
---|
3857 | echo "configure:3858: checking for remove in -lposix" >&5
|
---|
3858 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
|
---|
3859 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3860 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3861 | else
|
---|
3862 | ac_save_LIBS="$LIBS"
|
---|
3863 | LIBS="-lposix $LIBS"
|
---|
3864 | cat > conftest.$ac_ext <<EOF
|
---|
3865 | #line 3866 "configure"
|
---|
3866 | #include "confdefs.h"
|
---|
3867 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3868 | /* We use char because int might match the return type of a gcc2
|
---|
3869 | builtin and then its argument prototype would still apply. */
|
---|
3870 | char remove();
|
---|
3871 |
|
---|
3872 | int main() {
|
---|
3873 | remove()
|
---|
3874 | ; return 0; }
|
---|
3875 | EOF
|
---|
3876 | if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3877 | rm -rf conftest*
|
---|
3878 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3879 | else
|
---|
3880 | echo "configure: failed program was:" >&5
|
---|
3881 | cat conftest.$ac_ext >&5
|
---|
3882 | rm -rf conftest*
|
---|
3883 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3884 | fi
|
---|
3885 | rm -f conftest*
|
---|
3886 | LIBS="$ac_save_LIBS"
|
---|
3887 |
|
---|
3888 | fi
|
---|
3889 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3890 | echo "$ac_t""yes" 1>&6
|
---|
3891 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
3892 | else
|
---|
3893 | echo "$ac_t""no" 1>&6
|
---|
3894 | fi
|
---|
3895 |
|
---|
3896 | fi
|
---|
3897 |
|
---|
3898 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
3899 | echo $ac_n "checking for shmat""... $ac_c" 1>&6
|
---|
3900 | echo "configure:3901: checking for shmat" >&5
|
---|
3901 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
|
---|
3902 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3903 | else
|
---|
3904 | cat > conftest.$ac_ext <<EOF
|
---|
3905 | #line 3906 "configure"
|
---|
3906 | #include "confdefs.h"
|
---|
3907 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3908 | which can conflict with char shmat(); below. */
|
---|
3909 | #include <assert.h>
|
---|
3910 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3911 | /* We use char because int might match the return type of a gcc2
|
---|
3912 | builtin and then its argument prototype would still apply. */
|
---|
3913 | char shmat();
|
---|
3914 |
|
---|
3915 | int main() {
|
---|
3916 |
|
---|
3917 | /* The GNU C library defines this for functions which it implements
|
---|
3918 | to always fail with ENOSYS. Some functions are actually named
|
---|
3919 | something starting with __ and the normal name is an alias. */
|
---|
3920 | #if defined (__stub_shmat) || defined (__stub___shmat)
|
---|
3921 | choke me
|
---|
3922 | #else
|
---|
3923 | shmat();
|
---|
3924 | #endif
|
---|
3925 |
|
---|
3926 | ; return 0; }
|
---|
3927 | EOF
|
---|
3928 | if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3929 | rm -rf conftest*
|
---|
3930 | eval "ac_cv_func_shmat=yes"
|
---|
3931 | else
|
---|
3932 | echo "configure: failed program was:" >&5
|
---|
3933 | cat conftest.$ac_ext >&5
|
---|
3934 | rm -rf conftest*
|
---|
3935 | eval "ac_cv_func_shmat=no"
|
---|
3936 | fi
|
---|
3937 | rm -f conftest*
|
---|
3938 | fi
|
---|
3939 |
|
---|
3940 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
|
---|
3941 | echo "$ac_t""yes" 1>&6
|
---|
3942 | :
|
---|
3943 | else
|
---|
3944 | echo "$ac_t""no" 1>&6
|
---|
3945 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
|
---|
3946 | echo "configure:3947: checking for shmat in -lipc" >&5
|
---|
3947 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
|
---|
3948 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
3949 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3950 | else
|
---|
3951 | ac_save_LIBS="$LIBS"
|
---|
3952 | LIBS="-lipc $LIBS"
|
---|
3953 | cat > conftest.$ac_ext <<EOF
|
---|
3954 | #line 3955 "configure"
|
---|
3955 | #include "confdefs.h"
|
---|
3956 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3957 | /* We use char because int might match the return type of a gcc2
|
---|
3958 | builtin and then its argument prototype would still apply. */
|
---|
3959 | char shmat();
|
---|
3960 |
|
---|
3961 | int main() {
|
---|
3962 | shmat()
|
---|
3963 | ; return 0; }
|
---|
3964 | EOF
|
---|
3965 | if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
3966 | rm -rf conftest*
|
---|
3967 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
3968 | else
|
---|
3969 | echo "configure: failed program was:" >&5
|
---|
3970 | cat conftest.$ac_ext >&5
|
---|
3971 | rm -rf conftest*
|
---|
3972 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
3973 | fi
|
---|
3974 | rm -f conftest*
|
---|
3975 | LIBS="$ac_save_LIBS"
|
---|
3976 |
|
---|
3977 | fi
|
---|
3978 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
3979 | echo "$ac_t""yes" 1>&6
|
---|
3980 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
3981 | else
|
---|
3982 | echo "$ac_t""no" 1>&6
|
---|
3983 | fi
|
---|
3984 |
|
---|
3985 | fi
|
---|
3986 |
|
---|
3987 |
|
---|
3988 | # Solaris 2.6 needs -lresolv for res_init
|
---|
3989 | echo $ac_n "checking for res_init""... $ac_c" 1>&6
|
---|
3990 | echo "configure:3991: checking for res_init" >&5
|
---|
3991 | if eval "test \"`echo '$''{'ac_cv_func_res_init'+set}'`\" = set"; then
|
---|
3992 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
3993 | else
|
---|
3994 | cat > conftest.$ac_ext <<EOF
|
---|
3995 | #line 3996 "configure"
|
---|
3996 | #include "confdefs.h"
|
---|
3997 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3998 | which can conflict with char res_init(); below. */
|
---|
3999 | #include <assert.h>
|
---|
4000 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4001 | /* We use char because int might match the return type of a gcc2
|
---|
4002 | builtin and then its argument prototype would still apply. */
|
---|
4003 | char res_init();
|
---|
4004 |
|
---|
4005 | int main() {
|
---|
4006 |
|
---|
4007 | /* The GNU C library defines this for functions which it implements
|
---|
4008 | to always fail with ENOSYS. Some functions are actually named
|
---|
4009 | something starting with __ and the normal name is an alias. */
|
---|
4010 | #if defined (__stub_res_init) || defined (__stub___res_init)
|
---|
4011 | choke me
|
---|
4012 | #else
|
---|
4013 | res_init();
|
---|
4014 | #endif
|
---|
4015 |
|
---|
4016 | ; return 0; }
|
---|
4017 | EOF
|
---|
4018 | if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4019 | rm -rf conftest*
|
---|
4020 | eval "ac_cv_func_res_init=yes"
|
---|
4021 | else
|
---|
4022 | echo "configure: failed program was:" >&5
|
---|
4023 | cat conftest.$ac_ext >&5
|
---|
4024 | rm -rf conftest*
|
---|
4025 | eval "ac_cv_func_res_init=no"
|
---|
4026 | fi
|
---|
4027 | rm -f conftest*
|
---|
4028 | fi
|
---|
4029 |
|
---|
4030 | if eval "test \"`echo '$ac_cv_func_'res_init`\" = yes"; then
|
---|
4031 | echo "$ac_t""yes" 1>&6
|
---|
4032 | :
|
---|
4033 | else
|
---|
4034 | echo "$ac_t""no" 1>&6
|
---|
4035 | echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6
|
---|
4036 | echo "configure:4037: checking for res_init in -lresolv" >&5
|
---|
4037 | ac_lib_var=`echo resolv'_'res_init | 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="-lresolv $LIBS"
|
---|
4043 | cat > conftest.$ac_ext <<EOF
|
---|
4044 | #line 4045 "configure"
|
---|
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 res_init();
|
---|
4050 |
|
---|
4051 | int main() {
|
---|
4052 | res_init()
|
---|
4053 | ; return 0; }
|
---|
4054 | EOF
|
---|
4055 | if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
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 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lresolv"
|
---|
4071 | else
|
---|
4072 | echo "$ac_t""no" 1>&6
|
---|
4073 | fi
|
---|
4074 |
|
---|
4075 | fi
|
---|
4076 |
|
---|
4077 |
|
---|
4078 | LIBSOCKET="$X_EXTRA_LIBS"
|
---|
4079 |
|
---|
4080 |
|
---|
4081 | echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
|
---|
4082 | echo "configure:4083: checking for killpg in -lucb" >&5
|
---|
4083 | ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
|
---|
4084 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4085 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4086 | else
|
---|
4087 | ac_save_LIBS="$LIBS"
|
---|
4088 | LIBS="-lucb $LIBS"
|
---|
4089 | cat > conftest.$ac_ext <<EOF
|
---|
4090 | #line 4091 "configure"
|
---|
4091 | #include "confdefs.h"
|
---|
4092 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4093 | /* We use char because int might match the return type of a gcc2
|
---|
4094 | builtin and then its argument prototype would still apply. */
|
---|
4095 | char killpg();
|
---|
4096 |
|
---|
4097 | int main() {
|
---|
4098 | killpg()
|
---|
4099 | ; return 0; }
|
---|
4100 | EOF
|
---|
4101 | if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4102 | rm -rf conftest*
|
---|
4103 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4104 | else
|
---|
4105 | echo "configure: failed program was:" >&5
|
---|
4106 | cat conftest.$ac_ext >&5
|
---|
4107 | rm -rf conftest*
|
---|
4108 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4109 | fi
|
---|
4110 | rm -f conftest*
|
---|
4111 | LIBS="$ac_save_LIBS"
|
---|
4112 |
|
---|
4113 | fi
|
---|
4114 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4115 | echo "$ac_t""yes" 1>&6
|
---|
4116 | LIBUCB="-lucb"
|
---|
4117 | else
|
---|
4118 | echo "$ac_t""no" 1>&6
|
---|
4119 | fi
|
---|
4120 |
|
---|
4121 |
|
---|
4122 | case $host in *-*-lynxos* )
|
---|
4123 | echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
|
---|
4124 | echo "configure:4125: checking LynxOS header file wrappers" >&5
|
---|
4125 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
|
---|
4126 | echo "$ac_t""disabled" 1>&6
|
---|
4127 | echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
|
---|
4128 | echo "configure:4129: checking for gethostbyname in -lbsd" >&5
|
---|
4129 | ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
|
---|
4130 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4131 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4132 | else
|
---|
4133 | ac_save_LIBS="$LIBS"
|
---|
4134 | LIBS="-lbsd $LIBS"
|
---|
4135 | cat > conftest.$ac_ext <<EOF
|
---|
4136 | #line 4137 "configure"
|
---|
4137 | #include "confdefs.h"
|
---|
4138 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4139 | /* We use char because int might match the return type of a gcc2
|
---|
4140 | builtin and then its argument prototype would still apply. */
|
---|
4141 | char gethostbyname();
|
---|
4142 |
|
---|
4143 | int main() {
|
---|
4144 | gethostbyname()
|
---|
4145 | ; return 0; }
|
---|
4146 | EOF
|
---|
4147 | if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4148 | rm -rf conftest*
|
---|
4149 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4150 | else
|
---|
4151 | echo "configure: failed program was:" >&5
|
---|
4152 | cat conftest.$ac_ext >&5
|
---|
4153 | rm -rf conftest*
|
---|
4154 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4155 | fi
|
---|
4156 | rm -f conftest*
|
---|
4157 | LIBS="$ac_save_LIBS"
|
---|
4158 |
|
---|
4159 | fi
|
---|
4160 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4161 | echo "$ac_t""yes" 1>&6
|
---|
4162 | LIBSOCKET="-lbsd"
|
---|
4163 | else
|
---|
4164 | echo "$ac_t""no" 1>&6
|
---|
4165 | fi
|
---|
4166 | ;;
|
---|
4167 | esac
|
---|
4168 |
|
---|
4169 | echo $ac_n "checking size of int""... $ac_c" 1>&6
|
---|
4170 | echo "configure:4171: checking size of int" >&5
|
---|
4171 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
|
---|
4172 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4173 | else
|
---|
4174 | if test "$cross_compiling" = yes; then
|
---|
4175 | ac_cv_sizeof_int=4
|
---|
4176 | else
|
---|
4177 | cat > conftest.$ac_ext <<EOF
|
---|
4178 | #line 4179 "configure"
|
---|
4179 | #include "confdefs.h"
|
---|
4180 | #include <stdio.h>
|
---|
4181 | main()
|
---|
4182 | {
|
---|
4183 | FILE *f=fopen("conftestval", "w");
|
---|
4184 | if (!f) exit(1);
|
---|
4185 | fprintf(f, "%d\n", sizeof(int));
|
---|
4186 | exit(0);
|
---|
4187 | }
|
---|
4188 | EOF
|
---|
4189 | if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
4190 | then
|
---|
4191 | ac_cv_sizeof_int=`cat conftestval`
|
---|
4192 | else
|
---|
4193 | echo "configure: failed program was:" >&5
|
---|
4194 | cat conftest.$ac_ext >&5
|
---|
4195 | rm -fr conftest*
|
---|
4196 | ac_cv_sizeof_int=0
|
---|
4197 | fi
|
---|
4198 | rm -fr conftest*
|
---|
4199 | fi
|
---|
4200 |
|
---|
4201 | fi
|
---|
4202 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6
|
---|
4203 | cat >> confdefs.h <<EOF
|
---|
4204 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
4205 | EOF
|
---|
4206 |
|
---|
4207 | echo $ac_n "checking size of long""... $ac_c" 1>&6
|
---|
4208 | echo "configure:4209: checking size of long" >&5
|
---|
4209 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
|
---|
4210 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4211 | else
|
---|
4212 | if test "$cross_compiling" = yes; then
|
---|
4213 | ac_cv_sizeof_long=4
|
---|
4214 | else
|
---|
4215 | cat > conftest.$ac_ext <<EOF
|
---|
4216 | #line 4217 "configure"
|
---|
4217 | #include "confdefs.h"
|
---|
4218 | #include <stdio.h>
|
---|
4219 | main()
|
---|
4220 | {
|
---|
4221 | FILE *f=fopen("conftestval", "w");
|
---|
4222 | if (!f) exit(1);
|
---|
4223 | fprintf(f, "%d\n", sizeof(long));
|
---|
4224 | exit(0);
|
---|
4225 | }
|
---|
4226 | EOF
|
---|
4227 | if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
4228 | then
|
---|
4229 | ac_cv_sizeof_long=`cat conftestval`
|
---|
4230 | else
|
---|
4231 | echo "configure: failed program was:" >&5
|
---|
4232 | cat conftest.$ac_ext >&5
|
---|
4233 | rm -fr conftest*
|
---|
4234 | ac_cv_sizeof_long=0
|
---|
4235 | fi
|
---|
4236 | rm -fr conftest*
|
---|
4237 | fi
|
---|
4238 |
|
---|
4239 | fi
|
---|
4240 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6
|
---|
4241 | cat >> confdefs.h <<EOF
|
---|
4242 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
4243 | EOF
|
---|
4244 |
|
---|
4245 | echo $ac_n "checking size of char *""... $ac_c" 1>&6
|
---|
4246 | echo "configure:4247: checking size of char *" >&5
|
---|
4247 | if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
|
---|
4248 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4249 | else
|
---|
4250 | if test "$cross_compiling" = yes; then
|
---|
4251 | ac_cv_sizeof_char_p=4
|
---|
4252 | else
|
---|
4253 | cat > conftest.$ac_ext <<EOF
|
---|
4254 | #line 4255 "configure"
|
---|
4255 | #include "confdefs.h"
|
---|
4256 | #include <stdio.h>
|
---|
4257 | main()
|
---|
4258 | {
|
---|
4259 | FILE *f=fopen("conftestval", "w");
|
---|
4260 | if (!f) exit(1);
|
---|
4261 | fprintf(f, "%d\n", sizeof(char *));
|
---|
4262 | exit(0);
|
---|
4263 | }
|
---|
4264 | EOF
|
---|
4265 | if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
---|
4266 | then
|
---|
4267 | ac_cv_sizeof_char_p=`cat conftestval`
|
---|
4268 | else
|
---|
4269 | echo "configure: failed program was:" >&5
|
---|
4270 | cat conftest.$ac_ext >&5
|
---|
4271 | rm -fr conftest*
|
---|
4272 | ac_cv_sizeof_char_p=0
|
---|
4273 | fi
|
---|
4274 | rm -fr conftest*
|
---|
4275 | fi
|
---|
4276 |
|
---|
4277 | fi
|
---|
4278 | echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
|
---|
4279 | cat >> confdefs.h <<EOF
|
---|
4280 | #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
|
---|
4281 | EOF
|
---|
4282 |
|
---|
4283 |
|
---|
4284 |
|
---|
4285 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
---|
4286 | echo "configure:4287: checking for dlopen in -ldl" >&5
|
---|
4287 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
---|
4288 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4289 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4290 | else
|
---|
4291 | ac_save_LIBS="$LIBS"
|
---|
4292 | LIBS="-ldl $LIBS"
|
---|
4293 | cat > conftest.$ac_ext <<EOF
|
---|
4294 | #line 4295 "configure"
|
---|
4295 | #include "confdefs.h"
|
---|
4296 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4297 | /* We use char because int might match the return type of a gcc2
|
---|
4298 | builtin and then its argument prototype would still apply. */
|
---|
4299 | char dlopen();
|
---|
4300 |
|
---|
4301 | int main() {
|
---|
4302 | dlopen()
|
---|
4303 | ; return 0; }
|
---|
4304 | EOF
|
---|
4305 | if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4306 | rm -rf conftest*
|
---|
4307 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4308 | else
|
---|
4309 | echo "configure: failed program was:" >&5
|
---|
4310 | cat conftest.$ac_ext >&5
|
---|
4311 | rm -rf conftest*
|
---|
4312 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4313 | fi
|
---|
4314 | rm -f conftest*
|
---|
4315 | LIBS="$ac_save_LIBS"
|
---|
4316 |
|
---|
4317 | fi
|
---|
4318 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4319 | echo "$ac_t""yes" 1>&6
|
---|
4320 |
|
---|
4321 | LIBDL="-ldl"
|
---|
4322 | ac_cv_have_dlfcn=yes
|
---|
4323 |
|
---|
4324 | else
|
---|
4325 | echo "$ac_t""no" 1>&6
|
---|
4326 | fi
|
---|
4327 |
|
---|
4328 |
|
---|
4329 | echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
|
---|
4330 | echo "configure:4331: checking for shl_unload in -ldld" >&5
|
---|
4331 | ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
|
---|
4332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4333 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4334 | else
|
---|
4335 | ac_save_LIBS="$LIBS"
|
---|
4336 | LIBS="-ldld $LIBS"
|
---|
4337 | cat > conftest.$ac_ext <<EOF
|
---|
4338 | #line 4339 "configure"
|
---|
4339 | #include "confdefs.h"
|
---|
4340 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4341 | /* We use char because int might match the return type of a gcc2
|
---|
4342 | builtin and then its argument prototype would still apply. */
|
---|
4343 | char shl_unload();
|
---|
4344 |
|
---|
4345 | int main() {
|
---|
4346 | shl_unload()
|
---|
4347 | ; return 0; }
|
---|
4348 | EOF
|
---|
4349 | if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4350 | rm -rf conftest*
|
---|
4351 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4352 | else
|
---|
4353 | echo "configure: failed program was:" >&5
|
---|
4354 | cat conftest.$ac_ext >&5
|
---|
4355 | rm -rf conftest*
|
---|
4356 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4357 | fi
|
---|
4358 | rm -f conftest*
|
---|
4359 | LIBS="$ac_save_LIBS"
|
---|
4360 |
|
---|
4361 | fi
|
---|
4362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4363 | echo "$ac_t""yes" 1>&6
|
---|
4364 |
|
---|
4365 | LIBDL="-ldld"
|
---|
4366 | ac_cv_have_shload=yes
|
---|
4367 |
|
---|
4368 | else
|
---|
4369 | echo "$ac_t""no" 1>&6
|
---|
4370 | fi
|
---|
4371 |
|
---|
4372 |
|
---|
4373 |
|
---|
4374 |
|
---|
4375 |
|
---|
4376 |
|
---|
4377 | echo $ac_n "checking for extra includes""... $ac_c" 1>&6
|
---|
4378 | echo "configure:4379: checking for extra includes" >&5
|
---|
4379 | # Check whether --with-extra-includes or --without-extra-includes was given.
|
---|
4380 | if test "${with_extra_includes+set}" = set; then
|
---|
4381 | withval="$with_extra_includes"
|
---|
4382 | kde_use_extra_includes="$withval"
|
---|
4383 | else
|
---|
4384 | kde_use_extra_includes=NONE
|
---|
4385 |
|
---|
4386 | fi
|
---|
4387 |
|
---|
4388 | kde_extra_includes=
|
---|
4389 | if test -n "$kde_use_extra_includes" && \
|
---|
4390 | test "$kde_use_extra_includes" != "NONE"; then
|
---|
4391 |
|
---|
4392 | ac_save_ifs=$IFS
|
---|
4393 | IFS=':'
|
---|
4394 | for dir in $kde_use_extra_includes; do
|
---|
4395 | kde_extra_includes="$kde_extra_includes $dir"
|
---|
4396 | USER_INCLUDES="$USER_INCLUDES -I$dir"
|
---|
4397 | done
|
---|
4398 | IFS=$ac_save_ifs
|
---|
4399 | kde_use_extra_includes="added"
|
---|
4400 | else
|
---|
4401 | kde_use_extra_includes="no"
|
---|
4402 | fi
|
---|
4403 |
|
---|
4404 |
|
---|
4405 | echo "$ac_t""$kde_use_extra_includes" 1>&6
|
---|
4406 |
|
---|
4407 | kde_extra_libs=
|
---|
4408 | echo $ac_n "checking for extra libs""... $ac_c" 1>&6
|
---|
4409 | echo "configure:4410: checking for extra libs" >&5
|
---|
4410 | # Check whether --with-extra-libs or --without-extra-libs was given.
|
---|
4411 | if test "${with_extra_libs+set}" = set; then
|
---|
4412 | withval="$with_extra_libs"
|
---|
4413 | kde_use_extra_libs=$withval
|
---|
4414 | else
|
---|
4415 | kde_use_extra_libs=NONE
|
---|
4416 |
|
---|
4417 | fi
|
---|
4418 |
|
---|
4419 | if test -n "$kde_use_extra_libs" && \
|
---|
4420 | test "$kde_use_extra_libs" != "NONE"; then
|
---|
4421 |
|
---|
4422 | ac_save_ifs=$IFS
|
---|
4423 | IFS=':'
|
---|
4424 | for dir in $kde_use_extra_libs; do
|
---|
4425 | kde_extra_libs="$kde_extra_libs $dir"
|
---|
4426 | KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
|
---|
4427 | USER_LDFLAGS="$USER_LDFLAGS -L$dir"
|
---|
4428 | done
|
---|
4429 | IFS=$ac_save_ifs
|
---|
4430 | kde_use_extra_libs="added"
|
---|
4431 | else
|
---|
4432 | kde_use_extra_libs="no"
|
---|
4433 | fi
|
---|
4434 |
|
---|
4435 |
|
---|
4436 |
|
---|
4437 | echo "$ac_t""$kde_use_extra_libs" 1>&6
|
---|
4438 |
|
---|
4439 |
|
---|
4440 |
|
---|
4441 |
|
---|
4442 | echo $ac_n "checking for libz""... $ac_c" 1>&6
|
---|
4443 | echo "configure:4444: checking for libz" >&5
|
---|
4444 | if eval "test \"`echo '$''{'ac_cv_lib_z'+set}'`\" = set"; then
|
---|
4445 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4446 | else
|
---|
4447 |
|
---|
4448 | ac_ext=c
|
---|
4449 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4450 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4451 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4452 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4453 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
4454 |
|
---|
4455 | kde_save_LIBS="$LIBS"
|
---|
4456 | LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
|
---|
4457 | kde_save_CFLAGS="$CFLAGS"
|
---|
4458 | CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
---|
4459 | cat > conftest.$ac_ext <<EOF
|
---|
4460 | #line 4461 "configure"
|
---|
4461 | #include "confdefs.h"
|
---|
4462 |
|
---|
4463 | #include<zlib.h>
|
---|
4464 |
|
---|
4465 | int main() {
|
---|
4466 | return (zlibVersion() == ZLIB_VERSION);
|
---|
4467 | ; return 0; }
|
---|
4468 | EOF
|
---|
4469 | if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4470 | rm -rf conftest*
|
---|
4471 | eval "ac_cv_lib_z='-lz'"
|
---|
4472 | else
|
---|
4473 | echo "configure: failed program was:" >&5
|
---|
4474 | cat conftest.$ac_ext >&5
|
---|
4475 | rm -rf conftest*
|
---|
4476 | eval "ac_cv_lib_z=no"
|
---|
4477 | fi
|
---|
4478 | rm -f conftest*
|
---|
4479 | LIBS="$kde_save_LIBS"
|
---|
4480 | CFLAGS="$kde_save_CFLAGS"
|
---|
4481 |
|
---|
4482 | fi
|
---|
4483 | if test ! "$ac_cv_lib_z" = no; then
|
---|
4484 | cat >> confdefs.h <<EOF
|
---|
4485 | #define HAVE_LIBZ 1
|
---|
4486 | EOF
|
---|
4487 |
|
---|
4488 | LIBZ="$ac_cv_lib_z"
|
---|
4489 |
|
---|
4490 | echo "$ac_t""$ac_cv_lib_z" 1>&6
|
---|
4491 | else
|
---|
4492 | { echo "configure: error: not found. Check your installation and look into config.log" 1>&2; exit 1; }
|
---|
4493 | LIBZ=""
|
---|
4494 |
|
---|
4495 | fi
|
---|
4496 |
|
---|
4497 |
|
---|
4498 | echo $ac_n "checking for X""... $ac_c" 1>&6
|
---|
4499 | echo "configure:4500: checking for X" >&5
|
---|
4500 |
|
---|
4501 | ac_ext=c
|
---|
4502 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4503 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4504 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4505 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4506 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
4507 |
|
---|
4508 | if eval "test \"`echo '$''{'kde_cv_have_x'+set}'`\" = set"; then
|
---|
4509 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4510 | else
|
---|
4511 | # One or both of the vars are not set, and there is no cached value.
|
---|
4512 | if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
|
---|
4513 | kde_x_includes=NO
|
---|
4514 | else
|
---|
4515 | kde_x_includes=$x_includes
|
---|
4516 | fi
|
---|
4517 | if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
|
---|
4518 | kde_x_libraries=NO
|
---|
4519 | else
|
---|
4520 | kde_x_libraries=$x_libraries
|
---|
4521 | fi
|
---|
4522 |
|
---|
4523 | # below we use the standard autoconf calls
|
---|
4524 | ac_x_libraries=$kde_x_libraries
|
---|
4525 | ac_x_includes=$kde_x_includes
|
---|
4526 |
|
---|
4527 | if test "$ac_x_includes" = NO; then
|
---|
4528 | # Guess where to find include files, by looking for this one X11 .h file.
|
---|
4529 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
---|
4530 |
|
---|
4531 | # First, try using that file with no special directory specified.
|
---|
4532 | cat > conftest.$ac_ext <<EOF
|
---|
4533 | #line 4534 "configure"
|
---|
4534 | #include "confdefs.h"
|
---|
4535 | #include <$x_direct_test_include>
|
---|
4536 | EOF
|
---|
4537 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
---|
4538 | { (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
---|
4539 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
---|
4540 | if test -z "$ac_err"; then
|
---|
4541 | rm -rf conftest*
|
---|
4542 | # We can compile using X headers with no special include directory.
|
---|
4543 | ac_x_includes=
|
---|
4544 | else
|
---|
4545 | echo "$ac_err" >&5
|
---|
4546 | echo "configure: failed program was:" >&5
|
---|
4547 | cat conftest.$ac_ext >&5
|
---|
4548 | rm -rf conftest*
|
---|
4549 | # Look for the header file in a standard set of common directories.
|
---|
4550 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
4551 | for ac_dir in \
|
---|
4552 | /usr/X11/include \
|
---|
4553 | /usr/X11R6/include \
|
---|
4554 | /usr/X11R5/include \
|
---|
4555 | /usr/X11R4/include \
|
---|
4556 | \
|
---|
4557 | /usr/include/X11 \
|
---|
4558 | /usr/include/X11R6 \
|
---|
4559 | /usr/include/X11R5 \
|
---|
4560 | /usr/include/X11R4 \
|
---|
4561 | \
|
---|
4562 | /usr/local/X11/include \
|
---|
4563 | /usr/local/X11R6/include \
|
---|
4564 | /usr/local/X11R5/include \
|
---|
4565 | /usr/local/X11R4/include \
|
---|
4566 | \
|
---|
4567 | /usr/local/include/X11 \
|
---|
4568 | /usr/local/include/X11R6 \
|
---|
4569 | /usr/local/include/X11R5 \
|
---|
4570 | /usr/local/include/X11R4 \
|
---|
4571 | \
|
---|
4572 | /usr/X386/include \
|
---|
4573 | /usr/x386/include \
|
---|
4574 | /usr/XFree86/include/X11 \
|
---|
4575 | \
|
---|
4576 | /usr/include \
|
---|
4577 | /usr/local/include \
|
---|
4578 | /usr/unsupported/include \
|
---|
4579 | /usr/athena/include \
|
---|
4580 | /usr/local/x11r5/include \
|
---|
4581 | /usr/lpp/Xamples/include \
|
---|
4582 | \
|
---|
4583 | /usr/openwin/include \
|
---|
4584 | /usr/openwin/share/include \
|
---|
4585 | ; \
|
---|
4586 | do
|
---|
4587 | if test -r "$ac_dir/$x_direct_test_include"; then
|
---|
4588 | ac_x_includes=$ac_dir
|
---|
4589 | break
|
---|
4590 | fi
|
---|
4591 | done
|
---|
4592 | fi
|
---|
4593 | rm -f conftest*
|
---|
4594 | fi # $ac_x_includes = NO
|
---|
4595 |
|
---|
4596 | if test "$ac_x_libraries" = NO; then
|
---|
4597 | # Check for the libraries.
|
---|
4598 |
|
---|
4599 | test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
---|
4600 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
---|
4601 |
|
---|
4602 | # See if we find them without any special options.
|
---|
4603 | # Don't add to $LIBS permanently.
|
---|
4604 | ac_save_LIBS="$LIBS"
|
---|
4605 | LIBS="-l$x_direct_test_library $LIBS"
|
---|
4606 | cat > conftest.$ac_ext <<EOF
|
---|
4607 | #line 4608 "configure"
|
---|
4608 | #include "confdefs.h"
|
---|
4609 |
|
---|
4610 | int main() {
|
---|
4611 | ${x_direct_test_function}()
|
---|
4612 | ; return 0; }
|
---|
4613 | EOF
|
---|
4614 | if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4615 | rm -rf conftest*
|
---|
4616 | LIBS="$ac_save_LIBS"
|
---|
4617 | # We can link X programs with no special library path.
|
---|
4618 | ac_x_libraries=
|
---|
4619 | else
|
---|
4620 | echo "configure: failed program was:" >&5
|
---|
4621 | cat conftest.$ac_ext >&5
|
---|
4622 | rm -rf conftest*
|
---|
4623 | LIBS="$ac_save_LIBS"
|
---|
4624 | # First see if replacing the include by lib works.
|
---|
4625 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
4626 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
|
---|
4627 | /usr/X11/lib \
|
---|
4628 | /usr/X11R6/lib \
|
---|
4629 | /usr/X11R5/lib \
|
---|
4630 | /usr/X11R4/lib \
|
---|
4631 | \
|
---|
4632 | /usr/lib/X11 \
|
---|
4633 | /usr/lib/X11R6 \
|
---|
4634 | /usr/lib/X11R5 \
|
---|
4635 | /usr/lib/X11R4 \
|
---|
4636 | \
|
---|
4637 | /usr/local/X11/lib \
|
---|
4638 | /usr/local/X11R6/lib \
|
---|
4639 | /usr/local/X11R5/lib \
|
---|
4640 | /usr/local/X11R4/lib \
|
---|
4641 | \
|
---|
4642 | /usr/local/lib/X11 \
|
---|
4643 | /usr/local/lib/X11R6 \
|
---|
4644 | /usr/local/lib/X11R5 \
|
---|
4645 | /usr/local/lib/X11R4 \
|
---|
4646 | \
|
---|
4647 | /usr/X386/lib \
|
---|
4648 | /usr/x386/lib \
|
---|
4649 | /usr/XFree86/lib/X11 \
|
---|
4650 | \
|
---|
4651 | /usr/lib \
|
---|
4652 | /usr/local/lib \
|
---|
4653 | /usr/unsupported/lib \
|
---|
4654 | /usr/athena/lib \
|
---|
4655 | /usr/local/x11r5/lib \
|
---|
4656 | /usr/lpp/Xamples/lib \
|
---|
4657 | /lib/usr/lib/X11 \
|
---|
4658 | \
|
---|
4659 | /usr/openwin/lib \
|
---|
4660 | /usr/openwin/share/lib \
|
---|
4661 | ; \
|
---|
4662 | do
|
---|
4663 | for ac_extension in a so sl; do
|
---|
4664 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
|
---|
4665 | ac_x_libraries=$ac_dir
|
---|
4666 | break 2
|
---|
4667 | fi
|
---|
4668 | done
|
---|
4669 | done
|
---|
4670 | fi
|
---|
4671 | rm -f conftest*
|
---|
4672 | fi # $ac_x_libraries = NO
|
---|
4673 |
|
---|
4674 | case "$host" in
|
---|
4675 | mips-sgi-irix6*)
|
---|
4676 | ;;
|
---|
4677 | *)
|
---|
4678 | rm -fr conftestdir
|
---|
4679 | if mkdir conftestdir; then
|
---|
4680 | cd conftestdir
|
---|
4681 | # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
---|
4682 | cat > Imakefile <<'EOF'
|
---|
4683 | acfindx:
|
---|
4684 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
---|
4685 | EOF
|
---|
4686 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
4687 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
4688 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
---|
4689 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
4690 | for ac_extension in a so sl; do
|
---|
4691 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
---|
4692 | test -f $ac_im_libdir/libX11.$ac_extension; then
|
---|
4693 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
4694 | fi
|
---|
4695 | done
|
---|
4696 | # Screen out bogus values from the imake configuration. They are
|
---|
4697 | # bogus both because they are the default anyway, and because
|
---|
4698 | # using them would break gcc on systems where it needs fixed includes.
|
---|
4699 | case "$ac_im_incroot" in
|
---|
4700 | /usr/include) ;;
|
---|
4701 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
|
---|
4702 | esac
|
---|
4703 | case "$ac_im_usrlibdir" in
|
---|
4704 | /usr/lib | /lib) ;;
|
---|
4705 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
|
---|
4706 | esac
|
---|
4707 | fi
|
---|
4708 | cd ..
|
---|
4709 | rm -fr conftestdir
|
---|
4710 | fi
|
---|
4711 |
|
---|
4712 | if test -z "$ac_x_includes"; then
|
---|
4713 | ac_x_includes="."
|
---|
4714 | fi
|
---|
4715 | if test -z "$ac_x_libraries"; then
|
---|
4716 | ac_x_libraries="/usr/lib"
|
---|
4717 | fi
|
---|
4718 | esac
|
---|
4719 | #from now on we use our own again
|
---|
4720 |
|
---|
4721 | # when the user already gave --x-includes, we ignore
|
---|
4722 | # what the standard autoconf macros told us.
|
---|
4723 | if test "$kde_x_includes" = NO; then
|
---|
4724 | kde_x_includes=$ac_x_includes
|
---|
4725 | fi
|
---|
4726 |
|
---|
4727 | # for --x-libraries too
|
---|
4728 | if test "$kde_x_libraries" = NO; then
|
---|
4729 | kde_x_libraries=$ac_x_libraries
|
---|
4730 | fi
|
---|
4731 |
|
---|
4732 | if test "$kde_x_includes" = NO; then
|
---|
4733 | { echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
|
---|
4734 | fi
|
---|
4735 |
|
---|
4736 | if test "$kde_x_libraries" = NO; then
|
---|
4737 | { echo "configure: error: Can't find X libraries. Please check your installation and add the correct paths!" 1>&2; exit 1; }
|
---|
4738 | fi
|
---|
4739 |
|
---|
4740 | # Record where we found X for the cache.
|
---|
4741 | kde_cv_have_x="have_x=yes \
|
---|
4742 | kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
|
---|
4743 |
|
---|
4744 | fi
|
---|
4745 | eval "$kde_cv_have_x"
|
---|
4746 |
|
---|
4747 | if test "$have_x" != yes; then
|
---|
4748 | echo "$ac_t""$have_x" 1>&6
|
---|
4749 | no_x=yes
|
---|
4750 | else
|
---|
4751 | echo "$ac_t""libraries $kde_x_libraries, headers $kde_x_includes" 1>&6
|
---|
4752 | fi
|
---|
4753 |
|
---|
4754 | if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
|
---|
4755 | X_INCLUDES=""
|
---|
4756 | x_includes="."; else
|
---|
4757 | x_includes=$kde_x_includes
|
---|
4758 | X_INCLUDES="-I$x_includes"
|
---|
4759 | fi
|
---|
4760 |
|
---|
4761 | if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
|
---|
4762 | X_LDFLAGS=""
|
---|
4763 | x_libraries="/usr/lib"; else
|
---|
4764 | x_libraries=$kde_x_libraries
|
---|
4765 | X_LDFLAGS="-L$x_libraries"
|
---|
4766 | fi
|
---|
4767 | all_includes="$X_INCLUDES"
|
---|
4768 | all_libraries="$X_LDFLAGS"
|
---|
4769 |
|
---|
4770 |
|
---|
4771 |
|
---|
4772 |
|
---|
4773 |
|
---|
4774 |
|
---|
4775 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4776 | ac_save_LDFLAGS="$LDFLAGS"
|
---|
4777 | LDFLAGS="$LDFLAGS $X_LDFLAGS"
|
---|
4778 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4779 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4780 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4781 | # These have to be linked with before -lX11, unlike the other
|
---|
4782 | # libraries we check for below, so use a different variable.
|
---|
4783 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
---|
4784 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
|
---|
4785 | echo "configure:4786: checking for IceConnectionNumber in -lICE" >&5
|
---|
4786 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
|
---|
4787 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
---|
4788 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4789 | else
|
---|
4790 | ac_save_LIBS="$LIBS"
|
---|
4791 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4792 | cat > conftest.$ac_ext <<EOF
|
---|
4793 | #line 4794 "configure"
|
---|
4794 | #include "confdefs.h"
|
---|
4795 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4796 | /* We use char because int might match the return type of a gcc2
|
---|
4797 | builtin and then its argument prototype would still apply. */
|
---|
4798 | char IceConnectionNumber();
|
---|
4799 |
|
---|
4800 | int main() {
|
---|
4801 | IceConnectionNumber()
|
---|
4802 | ; return 0; }
|
---|
4803 | EOF
|
---|
4804 | if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4805 | rm -rf conftest*
|
---|
4806 | eval "ac_cv_lib_$ac_lib_var=yes"
|
---|
4807 | else
|
---|
4808 | echo "configure: failed program was:" >&5
|
---|
4809 | cat conftest.$ac_ext >&5
|
---|
4810 | rm -rf conftest*
|
---|
4811 | eval "ac_cv_lib_$ac_lib_var=no"
|
---|
4812 | fi
|
---|
4813 | rm -f conftest*
|
---|
4814 | LIBS="$ac_save_LIBS"
|
---|
4815 |
|
---|
4816 | fi
|
---|
4817 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
---|
4818 | echo "$ac_t""yes" 1>&6
|
---|
4819 | LIBSM="-lSM -lICE"
|
---|
4820 | else
|
---|
4821 | echo "$ac_t""no" 1>&6
|
---|
4822 | fi
|
---|
4823 |
|
---|
4824 |
|
---|
4825 | LDFLAGS="$ac_save_LDFLAGS"
|
---|
4826 |
|
---|
4827 |
|
---|
4828 |
|
---|
4829 | LIB_X11='-lX11 $(LIBSOCKET)'
|
---|
4830 |
|
---|
4831 |
|
---|
4832 | echo $ac_n "checking for libXext""... $ac_c" 1>&6
|
---|
4833 | echo "configure:4834: checking for libXext" >&5
|
---|
4834 | if eval "test \"`echo '$''{'kde_cv_have_libXext'+set}'`\" = set"; then
|
---|
4835 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4836 | else
|
---|
4837 |
|
---|
4838 | kde_ldflags_safe="$LDFLAGS"
|
---|
4839 | kde_libs_safe="$LIBS"
|
---|
4840 |
|
---|
4841 | LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
|
---|
4842 | LIBS="-lXext -lX11 $LIBSOCKET"
|
---|
4843 |
|
---|
4844 | cat > conftest.$ac_ext <<EOF
|
---|
4845 | #line 4846 "configure"
|
---|
4846 | #include "confdefs.h"
|
---|
4847 |
|
---|
4848 | #include <stdio.h>
|
---|
4849 |
|
---|
4850 | int main() {
|
---|
4851 |
|
---|
4852 | printf("hello Xext\n");
|
---|
4853 |
|
---|
4854 | ; return 0; }
|
---|
4855 | EOF
|
---|
4856 | if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4857 | rm -rf conftest*
|
---|
4858 | kde_cv_have_libXext=yes
|
---|
4859 | else
|
---|
4860 | echo "configure: failed program was:" >&5
|
---|
4861 | cat conftest.$ac_ext >&5
|
---|
4862 | rm -rf conftest*
|
---|
4863 | kde_cv_have_libXext=no
|
---|
4864 |
|
---|
4865 | fi
|
---|
4866 | rm -f conftest*
|
---|
4867 |
|
---|
4868 | LDFLAGS=$kde_ldflags_safe
|
---|
4869 | LIBS=$kde_libs_safe
|
---|
4870 |
|
---|
4871 | fi
|
---|
4872 |
|
---|
4873 |
|
---|
4874 | echo "$ac_t""$kde_cv_have_libXext" 1>&6
|
---|
4875 |
|
---|
4876 | if test "$kde_cv_have_libXext" = "no"; then
|
---|
4877 | { echo "configure: error: We need a working libXext to proceed. Since configure
|
---|
4878 | can't find it itself, we stop here assuming that make wouldn't find
|
---|
4879 | them either." 1>&2; exit 1; }
|
---|
4880 | fi
|
---|
4881 |
|
---|
4882 |
|
---|
4883 |
|
---|
4884 |
|
---|
4885 | if test -z ""; then
|
---|
4886 | kde_qtver=2
|
---|
4887 | kde_qtsubver=1
|
---|
4888 | else
|
---|
4889 | kde_qtsubver=`echo "" | sed -e 's#[0-9]\+\.\([0-9]\+\).*#\1#'`
|
---|
4890 | # following is the check if subversion isn´t found in passed argument
|
---|
4891 | if test "$kde_qtsubver" = ""; then
|
---|
4892 | kde_qtsubver=1
|
---|
4893 | fi
|
---|
4894 | kde_qtver=`echo "" | sed -e 's#^\([0-9]\+\)\..*#\1#'`
|
---|
4895 | if test "$kde_qtver" = "1"; then
|
---|
4896 | kde_qtsubver=42
|
---|
4897 | else
|
---|
4898 | # this is the version number fallback to 2.1, unless major version is 1 or 2
|
---|
4899 | if test "$kde_qtver" != "2"; then
|
---|
4900 | kde_qtver=2
|
---|
4901 | kde_qtsubver=1
|
---|
4902 | fi
|
---|
4903 | fi
|
---|
4904 | fi
|
---|
4905 |
|
---|
4906 | if test -z ""; then
|
---|
4907 | if test $kde_qtver = 2; then
|
---|
4908 | if test $kde_qtsubver -gt 0; then
|
---|
4909 | kde_qt_minversion=">= Qt 2.2.2"
|
---|
4910 | else
|
---|
4911 | kde_qt_minversion=">= Qt 2.0.2"
|
---|
4912 | fi
|
---|
4913 | else
|
---|
4914 | kde_qt_minversion=">= 1.42 and < 2.0"
|
---|
4915 | fi
|
---|
4916 | else
|
---|
4917 | kde_qt_minversion=
|
---|
4918 | fi
|
---|
4919 |
|
---|
4920 | if test -z ""; then
|
---|
4921 | if test $kde_qtver = 2; then
|
---|
4922 | if test $kde_qtsubver -gt 0; then
|
---|
4923 | kde_qt_verstring="QT_VERSION >= 222"
|
---|
4924 | else
|
---|
4925 | kde_qt_verstring="QT_VERSION >= 200"
|
---|
4926 | fi
|
---|
4927 | else
|
---|
4928 | kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
|
---|
4929 | fi
|
---|
4930 | else
|
---|
4931 | kde_qt_verstring=
|
---|
4932 | fi
|
---|
4933 |
|
---|
4934 | if test $kde_qtver = 2; then
|
---|
4935 | kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
|
---|
4936 | else
|
---|
4937 | kde_qt_dirs="$QTDIR /usr/lib/qt"
|
---|
4938 | fi
|
---|
4939 |
|
---|
4940 |
|
---|
4941 |
|
---|
4942 |
|
---|
4943 | echo $ac_n "checking for libpng""... $ac_c" 1>&6
|
---|
4944 | echo "configure:4945: checking for libpng" >&5
|
---|
4945 | if eval "test \"`echo '$''{'ac_cv_lib_png'+set}'`\" = set"; then
|
---|
4946 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
4947 | else
|
---|
4948 |
|
---|
4949 | kde_save_LIBS="$LIBS"
|
---|
4950 | LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
|
---|
4951 | kde_save_CFLAGS="$CFLAGS"
|
---|
4952 | CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
---|
4953 | ac_ext=c
|
---|
4954 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
4955 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4956 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
4957 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
4958 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
4959 |
|
---|
4960 | cat > conftest.$ac_ext <<EOF
|
---|
4961 | #line 4962 "configure"
|
---|
4962 | #include "confdefs.h"
|
---|
4963 |
|
---|
4964 | #include<png.h>
|
---|
4965 |
|
---|
4966 | int main() {
|
---|
4967 |
|
---|
4968 | png_structp png_ptr = png_create_read_struct( /* image ptr */
|
---|
4969 | PNG_LIBPNG_VER_STRING, 0, 0, 0 );
|
---|
4970 | return( png_ptr != 0 );
|
---|
4971 |
|
---|
4972 | ; return 0; }
|
---|
4973 | EOF
|
---|
4974 | if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
4975 | rm -rf conftest*
|
---|
4976 | eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
|
---|
4977 | else
|
---|
4978 | echo "configure: failed program was:" >&5
|
---|
4979 | cat conftest.$ac_ext >&5
|
---|
4980 | rm -rf conftest*
|
---|
4981 | eval "ac_cv_lib_png=no"
|
---|
4982 |
|
---|
4983 | fi
|
---|
4984 | rm -f conftest*
|
---|
4985 | LIBS="$kde_save_LIBS"
|
---|
4986 | CFLAGS="$kde_save_CFLAGS"
|
---|
4987 |
|
---|
4988 | fi
|
---|
4989 | if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
|
---|
4990 | cat >> confdefs.h <<EOF
|
---|
4991 | #define HAVE_LIBPNG 1
|
---|
4992 | EOF
|
---|
4993 |
|
---|
4994 | LIBPNG="$ac_cv_lib_png"
|
---|
4995 |
|
---|
4996 | echo "$ac_t""$ac_cv_lib_png" 1>&6
|
---|
4997 | else
|
---|
4998 | echo "$ac_t""no" 1>&6
|
---|
4999 | LIBPNG=""
|
---|
5000 |
|
---|
5001 | fi
|
---|
5002 |
|
---|
5003 |
|
---|
5004 |
|
---|
5005 | echo $ac_n "checking for libjpeg6b""... $ac_c" 1>&6
|
---|
5006 | echo "configure:5007: checking for libjpeg6b" >&5
|
---|
5007 | if eval "test \"`echo '$''{'ac_cv_lib_jpeg_6b'+set}'`\" = set"; then
|
---|
5008 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5009 | else
|
---|
5010 |
|
---|
5011 | ac_ext=c
|
---|
5012 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
5013 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5014 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
5015 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5016 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
5017 |
|
---|
5018 | ac_save_LIBS="$LIBS"
|
---|
5019 | LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
|
---|
5020 | ac_save_CFLAGS="$CFLAGS"
|
---|
5021 | CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
---|
5022 | cat > conftest.$ac_ext <<EOF
|
---|
5023 | #line 5024 "configure"
|
---|
5024 | #include "confdefs.h"
|
---|
5025 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5026 | struct jpeg_decompress_struct;
|
---|
5027 | typedef struct jpeg_decompress_struct * j_decompress_ptr;
|
---|
5028 | typedef int size_t;
|
---|
5029 | #ifdef __cplusplus
|
---|
5030 | extern "C" {
|
---|
5031 | #endif
|
---|
5032 | void jpeg_CreateDecompress(j_decompress_ptr cinfo,
|
---|
5033 | int version, size_t structsize);
|
---|
5034 | #ifdef __cplusplus
|
---|
5035 | }
|
---|
5036 | #endif
|
---|
5037 | /* We use char because int might match the return type of a gcc2
|
---|
5038 | builtin and then its argument prototype would still apply. */
|
---|
5039 |
|
---|
5040 | int main() {
|
---|
5041 | jpeg_CreateDecompress(0L, 0, 0);
|
---|
5042 | ; return 0; }
|
---|
5043 | EOF
|
---|
5044 | if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5045 | rm -rf conftest*
|
---|
5046 | eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
|
---|
5047 | else
|
---|
5048 | echo "configure: failed program was:" >&5
|
---|
5049 | cat conftest.$ac_ext >&5
|
---|
5050 | rm -rf conftest*
|
---|
5051 | eval "ac_cv_lib_jpeg_6b=no"
|
---|
5052 | fi
|
---|
5053 | rm -f conftest*
|
---|
5054 | LIBS="$ac_save_LIBS"
|
---|
5055 | CFLAGS="$ac_save_CFLAGS"
|
---|
5056 |
|
---|
5057 | fi
|
---|
5058 |
|
---|
5059 |
|
---|
5060 | if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
|
---|
5061 | LIBJPEG="$ac_cv_lib_jpeg_6b"
|
---|
5062 | echo "$ac_t""$ac_cv_lib_jpeg_6b" 1>&6
|
---|
5063 | else
|
---|
5064 | echo "$ac_t""no" 1>&6
|
---|
5065 |
|
---|
5066 | echo $ac_n "checking for libjpeg""... $ac_c" 1>&6
|
---|
5067 | echo "configure:5068: checking for libjpeg" >&5
|
---|
5068 | if eval "test \"`echo '$''{'ac_cv_lib_jpeg_normal'+set}'`\" = set"; then
|
---|
5069 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5070 | else
|
---|
5071 |
|
---|
5072 | ac_ext=c
|
---|
5073 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
5074 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5075 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
5076 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5077 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
5078 |
|
---|
5079 | ac_save_LIBS="$LIBS"
|
---|
5080 | LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
|
---|
5081 | ac_save_CFLAGS="$CFLAGS"
|
---|
5082 | CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
|
---|
5083 | cat > conftest.$ac_ext <<EOF
|
---|
5084 | #line 5085 "configure"
|
---|
5085 | #include "confdefs.h"
|
---|
5086 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
5087 | struct jpeg_decompress_struct;
|
---|
5088 | typedef struct jpeg_decompress_struct * j_decompress_ptr;
|
---|
5089 | typedef int size_t;
|
---|
5090 | #ifdef __cplusplus
|
---|
5091 | extern "C" {
|
---|
5092 | #endif
|
---|
5093 | void jpeg_CreateDecompress(j_decompress_ptr cinfo,
|
---|
5094 | int version, size_t structsize);
|
---|
5095 | #ifdef __cplusplus
|
---|
5096 | }
|
---|
5097 | #endif
|
---|
5098 | /* We use char because int might match the return type of a gcc2
|
---|
5099 | builtin and then its argument prototype would still apply. */
|
---|
5100 |
|
---|
5101 | int main() {
|
---|
5102 | jpeg_CreateDecompress(0L, 0, 0);
|
---|
5103 | ; return 0; }
|
---|
5104 | EOF
|
---|
5105 | if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
---|
5106 | rm -rf conftest*
|
---|
5107 | eval "ac_cv_lib_jpeg_normal=-ljpeg"
|
---|
5108 | else
|
---|
5109 | echo "configure: failed program was:" >&5
|
---|
5110 | cat conftest.$ac_ext >&5
|
---|
5111 | rm -rf conftest*
|
---|
5112 | eval "ac_cv_lib_jpeg_normal=no"
|
---|
5113 | fi
|
---|
5114 | rm -f conftest*
|
---|
5115 | LIBS="$ac_save_LIBS"
|
---|
5116 | CFLAGS="$ac_save_CFLAGS"
|
---|
5117 |
|
---|
5118 | fi
|
---|
5119 |
|
---|
5120 |
|
---|
5121 | if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
|
---|
5122 | LIBJPEG="$ac_cv_lib_jpeg_normal"
|
---|
5123 | echo "$ac_t""$ac_cv_lib_jpeg_normal" 1>&6
|
---|
5124 | else
|
---|
5125 | echo "$ac_t""no" 1>&6
|
---|
5126 |
|
---|
5127 | if test -f "$kde_libraries/libjpeg.so"; then
|
---|
5128 | test -f ./libjpegkde.so || $LN_S $kde_libraries/libjpeg.so ./libjpegkde.so
|
---|
5129 | ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
|
---|
5130 | else if test -f "$kde_libraries/libjpeg.sl"; then
|
---|
5131 | test -f ./libjpegkde.sl ||$LN_S $kde_libraries/libjpeg.sl ./libjpegkde.sl
|
---|
5132 | ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
|
---|
5133 | else if test -f "$kde_libraries/libjpeg.a"; then
|
---|
5134 | test -f ./libjpegkde.a || $LN_S $kde_libraries/libjpeg.a ./libjpegkde.a
|
---|
5135 | ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
|
---|
5136 | else
|
---|
5137 | ac_cv_lib_jpeg=
|
---|
5138 | fi
|
---|
5139 | fi
|
---|
5140 | fi
|
---|
5141 |
|
---|
5142 | LIBJPEG=$ac_cv_lib_jpeg
|
---|
5143 |
|
---|
5144 | fi
|
---|
5145 |
|
---|
5146 |
|
---|
5147 | fi
|
---|
5148 |
|
---|
5149 |
|
---|
5150 |
|
---|
5151 | jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
|
---|
5152 |
|
---|
5153 | jpeg_incdir=NO
|
---|
5154 | for i in $jpeg_incdirs;
|
---|
5155 | do
|
---|
5156 | for j in jpeglib.h;
|
---|
5157 | do
|
---|
5158 | if test -r "$i/$j"; then
|
---|
5159 | jpeg_incdir=$i
|
---|
5160 | break 2
|
---|
5161 | fi
|
---|
5162 | done
|
---|
5163 | done
|
---|
5164 |
|
---|
5165 | test "x$jpeg_incdir" = xNO && jpeg_incdir=
|
---|
5166 |
|
---|
5167 | if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
|
---|
5168 | cat >> confdefs.h <<EOF
|
---|
5169 | #define HAVE_LIBJPEG 1
|
---|
5170 | EOF
|
---|
5171 |
|
---|
5172 | else
|
---|
5173 | if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
|
---|
5174 | echo "configure: warning:
|
---|
5175 | There is an installation error in jpeg support. You seem to have only one
|
---|
5176 | of either the headers _or_ the libraries installed. You may need to either
|
---|
5177 | provide correct --with-extra-... options, or the development package of
|
---|
5178 | libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
|
---|
5179 | Disabling JPEG support.
|
---|
5180 | " 1>&2
|
---|
5181 | else
|
---|
5182 | echo "configure: warning: libjpeg not found. disable JPEG support." 1>&2
|
---|
5183 | fi
|
---|
5184 | jpeg_incdir=
|
---|
5185 | LIBJPEG=
|
---|
5186 | fi
|
---|
5187 |
|
---|
5188 |
|
---|
5189 |
|
---|
5190 |
|
---|
5191 |
|
---|
5192 |
|
---|
5193 |
|
---|
5194 |
|
---|
5195 |
|
---|
5196 | # Check whether --enable-mt or --disable-mt was given.
|
---|
5197 | if test "${enable_mt+set}" = set; then
|
---|
5198 | enableval="$enable_mt"
|
---|
5199 | kde_use_qt_mt=$enableval
|
---|
5200 | else
|
---|
5201 | kde_use_qt_mt=no
|
---|
5202 |
|
---|
5203 | fi
|
---|
5204 |
|
---|
5205 |
|
---|
5206 | USING_QT_MT=""
|
---|
5207 |
|
---|
5208 |
|
---|
5209 | if test "x$kde_use_qt_mt" = "xyes"; then
|
---|
5210 |
|
---|
5211 | case $host in
|
---|
5212 | *-*-linux-*)
|
---|
5213 | if test "x$GCC" = "xyes"; then
|
---|
5214 | CPPFLAGS="$CPPFLAGS -DQT_THREAD_SUPPORT -pthread"
|
---|
5215 | X_EXTRA_LIBS="$X_EXTRA_LIBS -pthread"
|
---|
5216 | else
|
---|
5217 | echo "configure: warning: Compiler is not gcc. MT support disabled." 1>&2
|
---|
5218 | fi
|
---|
5219 | ;;
|
---|
5220 | *)
|
---|
5221 | echo "configure: warning: MT not yet supported on $host - disabled." 1>&2
|
---|
5222 | ;;
|
---|
5223 | esac
|
---|
5224 |
|
---|
5225 | fi
|
---|
5226 |
|
---|
5227 | kde_qt_was_given=yes
|
---|
5228 |
|
---|
5229 |
|
---|
5230 | if test -z "$LIBQT_GLOB"; then
|
---|
5231 |
|
---|
5232 | LIBQT_GLOB="libqt.*"
|
---|
5233 |
|
---|
5234 | fi
|
---|
5235 |
|
---|
5236 | if test -z "$LIBQT"; then
|
---|
5237 |
|
---|
5238 | LIBQT="-lqt"
|
---|
5239 | kde_int_qt="-lqt"
|
---|
5240 |
|
---|
5241 |
|
---|
5242 | if test "x$kde_use_qt_mt" = "xyes"; then
|
---|
5243 |
|
---|
5244 | case $host in
|
---|
5245 | *-*-linux-*)
|
---|
5246 | if test "x$GCC" = "xyes"; then
|
---|
5247 | LIBQT="-lqt-mt"
|
---|
5248 | kde_int_qt="-lqt-mt"
|
---|
5249 | LIBQT_GLOB="libqt-mt.*"
|
---|
5250 | USING_QT_MT="using -mt"
|
---|
5251 | fi
|
---|
5252 | ;;
|
---|
5253 | esac
|
---|
5254 | fi
|
---|
5255 |
|
---|
5256 | kde_qt_was_given=no
|
---|
5257 |
|
---|
5258 | else
|
---|
5259 | kde_int_qt="$LIBQT"
|
---|
5260 | fi
|
---|
5261 |
|
---|
5262 | if test $kde_qtver = 2; then
|
---|
5263 |
|
---|
5264 |
|
---|
5265 |
|
---|
5266 | LIBQT="$LIBQT $LIBPNG $LIBJPEG"
|
---|
5267 | fi
|
---|
5268 |
|
---|
5269 | echo $ac_n "checking for Qt""... $ac_c" 1>&6
|
---|
5270 | echo "configure:5271: checking for Qt" >&5
|
---|
5271 |
|
---|
5272 | LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
|
---|
5273 | ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
|
---|
5274 | qt_libraries=""
|
---|
5275 | qt_includes=""
|
---|
5276 | # Check whether --with-qt-dir or --without-qt-dir was given.
|
---|
5277 | if test "${with_qt_dir+set}" = set; then
|
---|
5278 | withval="$with_qt_dir"
|
---|
5279 | ac_qt_includes="$withval"/include
|
---|
5280 | ac_qt_libraries="$withval"/lib
|
---|
5281 | ac_qt_bindir="$withval"/bin
|
---|
5282 |
|
---|
5283 | fi
|
---|
5284 |
|
---|
5285 |
|
---|
5286 | # Check whether --with-qt-includes or --without-qt-includes was given.
|
---|
5287 | if test "${with_qt_includes+set}" = set; then
|
---|
5288 | withval="$with_qt_includes"
|
---|
5289 |
|
---|
5290 | ac_qt_includes="$withval"
|
---|
5291 |
|
---|
5292 | fi
|
---|
5293 |
|
---|
5294 |
|
---|
5295 | kde_qt_libs_given=no
|
---|
5296 |
|
---|
5297 | # Check whether --with-qt-libraries or --without-qt-libraries was given.
|
---|
5298 | if test "${with_qt_libraries+set}" = set; then
|
---|
5299 | withval="$with_qt_libraries"
|
---|
5300 | ac_qt_libraries="$withval"
|
---|
5301 | kde_qt_libs_given=yes
|
---|
5302 |
|
---|
5303 | fi
|
---|
5304 |
|
---|
5305 |
|
---|
5306 | if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
|
---|
5307 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5308 | else
|
---|
5309 | #try to guess Qt locations
|
---|
5310 |
|
---|
5311 | qt_incdirs=""
|
---|
5312 | for dir in $kde_qt_dirs; do
|
---|
5313 | qt_incdirs="$qt_incdirs $dir/include $dir"
|
---|
5314 | done
|
---|
5315 | qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt $x_includes"
|
---|
5316 | if test ! "$ac_qt_includes" = "NO"; then
|
---|
5317 | qt_incdirs="$ac_qt_includes $qt_incdirs"
|
---|
5318 | fi
|
---|
5319 |
|
---|
5320 | if test "$kde_qtver" = "2"; then
|
---|
5321 | kde_qt_header=qstyle.h
|
---|
5322 | else
|
---|
5323 | kde_qt_header=qglobal.h
|
---|
5324 | fi
|
---|
5325 |
|
---|
5326 |
|
---|
5327 | qt_incdir=NO
|
---|
5328 | for i in $qt_incdirs;
|
---|
5329 | do
|
---|
5330 | for j in $kde_qt_header;
|
---|
5331 | do
|
---|
5332 | if test -r "$i/$j"; then
|
---|
5333 | qt_incdir=$i
|
---|
5334 | break 2
|
---|
5335 | fi
|
---|
5336 | done
|
---|
5337 | done
|
---|
5338 |
|
---|
5339 | ac_qt_includes="$qt_incdir"
|
---|
5340 |
|
---|
5341 | qt_libdirs=""
|
---|
5342 | for dir in $kde_qt_dirs; do
|
---|
5343 | qt_libdirs="$qt_libdirs $dir/lib $dir"
|
---|
5344 | done
|
---|
5345 | qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
|
---|
5346 | if test ! "$ac_qt_libraries" = "NO"; then
|
---|
5347 | qt_libdir=$ac_qt_libraries
|
---|
5348 | else
|
---|
5349 | qt_libdirs="$ac_qt_libraries $qt_libdirs"
|
---|
5350 | # if the Qt was given, the chance is too big that libqt.* doesn't exist
|
---|
5351 | qt_libdir=NONE
|
---|
5352 | for dir in $qt_libdirs; do
|
---|
5353 | try="ls -1 $dir/${LIBQT_GLOB}"
|
---|
5354 | if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
|
---|
5355 | done
|
---|
5356 | fi
|
---|
5357 |
|
---|
5358 | ac_qt_libraries="$qt_libdir"
|
---|
5359 |
|
---|
5360 |
|
---|
5361 | ac_ext=C
|
---|
5362 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
5363 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
5364 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
5365 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5366 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
5367 |
|
---|
5368 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5369 |
|
---|
5370 |
|
---|
5371 |
|
---|
5372 | ac_cxxflags_safe="$CXXFLAGS"
|
---|
5373 | ac_ldflags_safe="$LDFLAGS"
|
---|
5374 | ac_libs_safe="$LIBS"
|
---|
5375 |
|
---|
5376 | CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
|
---|
5377 | LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS"
|
---|
5378 | LIBS="$LIBS $LIBQT"
|
---|
5379 |
|
---|
5380 |
|
---|
5381 |
|
---|
5382 | cat > conftest.$ac_ext <<EOF
|
---|
5383 | #include "confdefs.h"
|
---|
5384 | #include <qglobal.h>
|
---|
5385 | #include <qapplication.h>
|
---|
5386 | #include <qapp.h>
|
---|
5387 | #include <qobjcoll.h>
|
---|
5388 | EOF
|
---|
5389 | if test "$kde_qtver" = "2"; then
|
---|
5390 | cat >> conftest.$ac_ext <<EOF
|
---|
5391 | #include <qevent.h>
|
---|
5392 | #include <qstring.h>
|
---|
5393 | #include <qstyle.h>
|
---|
5394 | EOF
|
---|
5395 |
|
---|
5396 | if test $kde_qtsubver -gt 0; then
|
---|
5397 | cat >> conftest.$ac_ext <<EOF
|
---|
5398 | #include <qiconview.h>
|
---|
5399 | EOF
|
---|
5400 | fi
|
---|
5401 |
|
---|
5402 | fi
|
---|
5403 |
|
---|
5404 | echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
|
---|
5405 | cat >> conftest.$ac_ext <<EOF
|
---|
5406 | #error 1
|
---|
5407 | #endif
|
---|
5408 |
|
---|
5409 | int main() {
|
---|
5410 | EOF
|
---|
5411 | if test "$kde_qtver" = "2"; then
|
---|
5412 | cat >> conftest.$ac_ext <<EOF
|
---|
5413 | QStringList *t = new QStringList();
|
---|
5414 | EOF
|
---|
5415 | if test $kde_qtsubver -gt 0; then
|
---|
5416 | cat >> conftest.$ac_ext <<EOF
|
---|
5417 | QIconView iv(0);
|
---|
5418 | iv.setWordWrapIconText(false);
|
---|
5419 | QString s;
|
---|
5420 | s.setLatin1("Elvis is alive", 14);
|
---|
5421 | int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
|
---|
5422 | EOF
|
---|
5423 | fi
|
---|
5424 | fi
|
---|
5425 | cat >> conftest.$ac_ext <<EOF
|
---|
5426 | return 0;
|
---|
5427 | }
|
---|
5428 | EOF
|
---|
5429 |
|
---|
5430 |
|
---|
5431 | if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
---|
5432 | rm -f conftest*
|
---|
5433 | else
|
---|
5434 | echo "configure: failed program was:" >&5
|
---|
5435 | cat conftest.$ac_ext >&5
|
---|
5436 | ac_qt_libraries="NO"
|
---|
5437 | fi
|
---|
5438 | rm -f conftest*
|
---|
5439 | CXXFLAGS="$ac_cxxflags_safe"
|
---|
5440 | LDFLAGS="$ac_ldflags_safe"
|
---|
5441 | LIBS="$ac_libs_safe"
|
---|
5442 |
|
---|
5443 | ac_ext=c
|
---|
5444 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
5445 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5446 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
5447 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5448 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
5449 |
|
---|
5450 | if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
|
---|
5451 | ac_cv_have_qt="have_qt=no"
|
---|
5452 | ac_qt_notfound=""
|
---|
5453 | if test "$ac_qt_includes" = NO; then
|
---|
5454 | if test "$ac_qt_libraries" = NO; then
|
---|
5455 | ac_qt_notfound="(headers and libraries)";
|
---|
5456 | else
|
---|
5457 | ac_qt_notfound="(headers)";
|
---|
5458 | fi
|
---|
5459 | else
|
---|
5460 | ac_qt_notfound="(libraries)";
|
---|
5461 | fi
|
---|
5462 |
|
---|
5463 | { echo "configure: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
|
---|
5464 | For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
|
---|
5465 | else
|
---|
5466 | have_qt="yes"
|
---|
5467 | fi
|
---|
5468 |
|
---|
5469 | fi
|
---|
5470 |
|
---|
5471 |
|
---|
5472 | eval "$ac_cv_have_qt"
|
---|
5473 |
|
---|
5474 | if test "$have_qt" != yes; then
|
---|
5475 | echo "$ac_t""$have_qt" 1>&6;
|
---|
5476 | else
|
---|
5477 | ac_cv_have_qt="have_qt=yes \
|
---|
5478 | ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
|
---|
5479 | echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" 1>&6
|
---|
5480 |
|
---|
5481 | qt_libraries="$ac_qt_libraries"
|
---|
5482 | qt_includes="$ac_qt_includes"
|
---|
5483 | fi
|
---|
5484 |
|
---|
5485 | if test ! "$kde_qt_libs_given" = "yes"; then
|
---|
5486 |
|
---|
5487 |
|
---|
5488 | echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
|
---|
5489 | echo "configure:5490: checking if Qt compiles without flags" >&5
|
---|
5490 | if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
|
---|
5491 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5492 | else
|
---|
5493 |
|
---|
5494 |
|
---|
5495 | ac_ext=C
|
---|
5496 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
5497 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
5498 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
5499 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5500 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
5501 |
|
---|
5502 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5503 |
|
---|
5504 |
|
---|
5505 | ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
|
---|
5506 | ac_LIBRARY_PATH="$LIBRARY_PATH"
|
---|
5507 | ac_cxxflags_safe="$CXXFLAGS"
|
---|
5508 | ac_ldflags_safe="$LDFLAGS"
|
---|
5509 | ac_libs_safe="$LIBS"
|
---|
5510 |
|
---|
5511 | CXXFLAGS="$CXXFLAGS -I$qt_includes"
|
---|
5512 | LDFLAGS="$LDFLAGS $X_LDFLAGS"
|
---|
5513 | LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
|
---|
5514 | LD_LIBRARY_PATH=
|
---|
5515 | export LD_LIBRARY_PATH
|
---|
5516 | LIBRARY_PATH=
|
---|
5517 | export LIBRARY_PATH
|
---|
5518 |
|
---|
5519 |
|
---|
5520 |
|
---|
5521 | cat > conftest.$ac_ext <<EOF
|
---|
5522 | #include "confdefs.h"
|
---|
5523 | #include <qglobal.h>
|
---|
5524 | #include <qapplication.h>
|
---|
5525 | #include <qapp.h>
|
---|
5526 | #include <qobjcoll.h>
|
---|
5527 | EOF
|
---|
5528 | if test "$kde_qtver" = "2"; then
|
---|
5529 | cat >> conftest.$ac_ext <<EOF
|
---|
5530 | #include <qevent.h>
|
---|
5531 | #include <qstring.h>
|
---|
5532 | #include <qstyle.h>
|
---|
5533 | EOF
|
---|
5534 |
|
---|
5535 | if test $kde_qtsubver -gt 0; then
|
---|
5536 | cat >> conftest.$ac_ext <<EOF
|
---|
5537 | #include <qiconview.h>
|
---|
5538 | EOF
|
---|
5539 | fi
|
---|
5540 |
|
---|
5541 | fi
|
---|
5542 |
|
---|
5543 | echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
|
---|
5544 | cat >> conftest.$ac_ext <<EOF
|
---|
5545 | #error 1
|
---|
5546 | #endif
|
---|
5547 |
|
---|
5548 | int main() {
|
---|
5549 | EOF
|
---|
5550 | if test "$kde_qtver" = "2"; then
|
---|
5551 | cat >> conftest.$ac_ext <<EOF
|
---|
5552 | QStringList *t = new QStringList();
|
---|
5553 | EOF
|
---|
5554 | if test $kde_qtsubver -gt 0; then
|
---|
5555 | cat >> conftest.$ac_ext <<EOF
|
---|
5556 | QIconView iv(0);
|
---|
5557 | iv.setWordWrapIconText(false);
|
---|
5558 | QString s;
|
---|
5559 | s.setLatin1("Elvis is alive", 14);
|
---|
5560 | int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
|
---|
5561 | EOF
|
---|
5562 | fi
|
---|
5563 | fi
|
---|
5564 | cat >> conftest.$ac_ext <<EOF
|
---|
5565 | return 0;
|
---|
5566 | }
|
---|
5567 | EOF
|
---|
5568 |
|
---|
5569 |
|
---|
5570 | if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
---|
5571 | kde_cv_qt_direct="yes"
|
---|
5572 | else
|
---|
5573 | kde_cv_qt_direct="no"
|
---|
5574 | echo "configure: failed program was:" >&5
|
---|
5575 | cat conftest.$ac_ext >&5
|
---|
5576 | fi
|
---|
5577 |
|
---|
5578 | rm -f conftest*
|
---|
5579 | CXXFLAGS="$ac_cxxflags_safe"
|
---|
5580 | LDFLAGS="$ac_ldflags_safe"
|
---|
5581 | LIBS="$ac_libs_safe"
|
---|
5582 |
|
---|
5583 | LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
|
---|
5584 | export LD_LIBRARY_PATH
|
---|
5585 | LIBRARY_PATH="$ac_LIBRARY_PATH"
|
---|
5586 | export LIBRARY_PATH
|
---|
5587 | ac_ext=c
|
---|
5588 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
5589 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5590 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
5591 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
5592 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
5593 |
|
---|
5594 |
|
---|
5595 | fi
|
---|
5596 |
|
---|
5597 |
|
---|
5598 | if test "$kde_cv_qt_direct" = "yes"; then
|
---|
5599 | echo "$ac_t""yes" 1>&6
|
---|
5600 | qt_libraries=
|
---|
5601 | else
|
---|
5602 | echo "$ac_t""no" 1>&6
|
---|
5603 |
|
---|
5604 | fi
|
---|
5605 |
|
---|
5606 | fi
|
---|
5607 |
|
---|
5608 |
|
---|
5609 |
|
---|
5610 |
|
---|
5611 | if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
|
---|
5612 | QT_INCLUDES="";
|
---|
5613 | else
|
---|
5614 | QT_INCLUDES="-I$qt_includes"
|
---|
5615 | all_includes="$QT_INCLUDES $all_includes"
|
---|
5616 | fi
|
---|
5617 |
|
---|
5618 | if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
|
---|
5619 | QT_LDFLAGS=""
|
---|
5620 | else
|
---|
5621 | QT_LDFLAGS="-L$qt_libraries"
|
---|
5622 | all_libraries="$all_libraries $QT_LDFLAGS"
|
---|
5623 | fi
|
---|
5624 |
|
---|
5625 |
|
---|
5626 |
|
---|
5627 |
|
---|
5628 | qt_bindirs=""
|
---|
5629 | for dir in $kde_qt_dirs; do
|
---|
5630 | qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
|
---|
5631 | done
|
---|
5632 | qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
|
---|
5633 | if test ! "$ac_qt_bindir" = "NO"; then
|
---|
5634 | qt_bindirs="$ac_qt_bindir $qt_bindirs"
|
---|
5635 | fi
|
---|
5636 |
|
---|
5637 |
|
---|
5638 | echo $ac_n "checking for moc""... $ac_c" 1>&6
|
---|
5639 | echo "configure:5640: checking for moc" >&5
|
---|
5640 | if test -n "$MOC"; then
|
---|
5641 | kde_cv_path="$MOC";
|
---|
5642 | else
|
---|
5643 | kde_cache=`echo moc | sed 'y%./+-%__p_%'`
|
---|
5644 |
|
---|
5645 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
5646 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5647 | else
|
---|
5648 |
|
---|
5649 | kde_cv_path="NONE"
|
---|
5650 | dirs="$qt_bindirs"
|
---|
5651 | kde_save_IFS=$IFS
|
---|
5652 | IFS=':'
|
---|
5653 | for dir in $PATH; do
|
---|
5654 | dirs="$dirs $dir"
|
---|
5655 | done
|
---|
5656 | IFS=$kde_save_IFS
|
---|
5657 |
|
---|
5658 | for dir in $dirs; do
|
---|
5659 | if test -x "$dir/moc"; then
|
---|
5660 | if test -n ""
|
---|
5661 | then
|
---|
5662 | evalstr="$dir/moc 2>&1 "
|
---|
5663 | if eval $evalstr; then
|
---|
5664 | kde_cv_path="$dir/moc"
|
---|
5665 | break
|
---|
5666 | fi
|
---|
5667 | else
|
---|
5668 | kde_cv_path="$dir/moc"
|
---|
5669 | break
|
---|
5670 | fi
|
---|
5671 | fi
|
---|
5672 | done
|
---|
5673 |
|
---|
5674 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
5675 |
|
---|
5676 |
|
---|
5677 | fi
|
---|
5678 |
|
---|
5679 |
|
---|
5680 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
5681 |
|
---|
5682 | fi
|
---|
5683 |
|
---|
5684 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
5685 | echo "$ac_t""not found" 1>&6
|
---|
5686 |
|
---|
5687 | { echo "configure: error: No Qt meta object compiler (moc) found!
|
---|
5688 | Please check whether you installed Qt correctly.
|
---|
5689 | You need to have a running moc binary.
|
---|
5690 | configure tried to run $ac_cv_path_moc and the test didn't
|
---|
5691 | succeed. If configure shouldn't have tried this one, set
|
---|
5692 | the environment variable MOC to the right one before running
|
---|
5693 | configure.
|
---|
5694 | " 1>&2; exit 1; }
|
---|
5695 |
|
---|
5696 | else
|
---|
5697 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
5698 | MOC=$kde_cv_path
|
---|
5699 |
|
---|
5700 | fi
|
---|
5701 |
|
---|
5702 |
|
---|
5703 | echo $ac_n "checking for uic""... $ac_c" 1>&6
|
---|
5704 | echo "configure:5705: checking for uic" >&5
|
---|
5705 | if test -n "$UIC"; then
|
---|
5706 | kde_cv_path="$UIC";
|
---|
5707 | else
|
---|
5708 | kde_cache=`echo uic | sed 'y%./+-%__p_%'`
|
---|
5709 |
|
---|
5710 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
5711 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5712 | else
|
---|
5713 |
|
---|
5714 | kde_cv_path="NONE"
|
---|
5715 | dirs="$qt_bindirs"
|
---|
5716 | kde_save_IFS=$IFS
|
---|
5717 | IFS=':'
|
---|
5718 | for dir in $PATH; do
|
---|
5719 | dirs="$dirs $dir"
|
---|
5720 | done
|
---|
5721 | IFS=$kde_save_IFS
|
---|
5722 |
|
---|
5723 | for dir in $dirs; do
|
---|
5724 | if test -x "$dir/uic"; then
|
---|
5725 | if test -n ""
|
---|
5726 | then
|
---|
5727 | evalstr="$dir/uic 2>&1 "
|
---|
5728 | if eval $evalstr; then
|
---|
5729 | kde_cv_path="$dir/uic"
|
---|
5730 | break
|
---|
5731 | fi
|
---|
5732 | else
|
---|
5733 | kde_cv_path="$dir/uic"
|
---|
5734 | break
|
---|
5735 | fi
|
---|
5736 | fi
|
---|
5737 | done
|
---|
5738 |
|
---|
5739 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
5740 |
|
---|
5741 |
|
---|
5742 | fi
|
---|
5743 |
|
---|
5744 |
|
---|
5745 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
5746 |
|
---|
5747 | fi
|
---|
5748 |
|
---|
5749 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
5750 | echo "$ac_t""not found" 1>&6
|
---|
5751 | UIC="" ;
|
---|
5752 | echo "configure: warning: No Qt ui compiler (uic) found!
|
---|
5753 | Please check whether you installed Qt correctly.
|
---|
5754 | You need to have a running uic binary.
|
---|
5755 | configure tried to run $ac_cv_path_uic and the test didn't
|
---|
5756 | succeed. If configure shouldn't have tried this one, set
|
---|
5757 | the environment variable UIC to the right one before running
|
---|
5758 | configure.
|
---|
5759 | " 1>&2
|
---|
5760 |
|
---|
5761 | else
|
---|
5762 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
5763 | UIC=$kde_cv_path
|
---|
5764 |
|
---|
5765 | fi
|
---|
5766 |
|
---|
5767 | if test -z "$UIC" ; then
|
---|
5768 | if test -z "$UIC_NOT_NEEDED" ; then
|
---|
5769 | exit 1
|
---|
5770 | else
|
---|
5771 | UIC="echo uic not available: "
|
---|
5772 | fi
|
---|
5773 | fi
|
---|
5774 |
|
---|
5775 |
|
---|
5776 |
|
---|
5777 |
|
---|
5778 | LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)'
|
---|
5779 |
|
---|
5780 |
|
---|
5781 |
|
---|
5782 |
|
---|
5783 |
|
---|
5784 |
|
---|
5785 |
|
---|
5786 |
|
---|
5787 | echo $ac_n "checking for rpath""... $ac_c" 1>&6
|
---|
5788 | echo "configure:5789: checking for rpath" >&5
|
---|
5789 | # Check whether --enable-rpath or --disable-rpath was given.
|
---|
5790 | if test "${enable_rpath+set}" = set; then
|
---|
5791 | enableval="$enable_rpath"
|
---|
5792 | USE_RPATH=$enableval
|
---|
5793 | else
|
---|
5794 | USE_RPATH=yes
|
---|
5795 | fi
|
---|
5796 |
|
---|
5797 |
|
---|
5798 | if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
|
---|
5799 |
|
---|
5800 | KDE_RPATH="-R \$(kde_libraries)"
|
---|
5801 |
|
---|
5802 | if test -n "$qt_libraries"; then
|
---|
5803 | KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
|
---|
5804 | fi
|
---|
5805 | if test -n "$X_LDFLAGS"; then
|
---|
5806 | KDE_RPATH="$KDE_RPATH -R \$(x_libraries)"
|
---|
5807 | fi
|
---|
5808 | if test -n "$KDE_EXTRA_RPATH"; then
|
---|
5809 | KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
|
---|
5810 | fi
|
---|
5811 | fi
|
---|
5812 |
|
---|
5813 |
|
---|
5814 | echo "$ac_t""$USE_RPATH" 1>&6
|
---|
5815 |
|
---|
5816 | echo $ac_n "checking for KDE""... $ac_c" 1>&6
|
---|
5817 | echo "configure:5818: checking for KDE" >&5
|
---|
5818 |
|
---|
5819 | if test "${prefix}" != NONE; then
|
---|
5820 | kde_includes=${prefix}/include
|
---|
5821 | ac_kde_includes=$prefix/include
|
---|
5822 |
|
---|
5823 | if test "${exec_prefix}" != NONE; then
|
---|
5824 | kde_libraries=${exec_prefix}/lib
|
---|
5825 | ac_kde_libraries=$exec_prefix/lib
|
---|
5826 | else
|
---|
5827 | kde_libraries=${prefix}/lib
|
---|
5828 | ac_kde_libraries=$prefix/lib
|
---|
5829 | fi
|
---|
5830 | else
|
---|
5831 | ac_kde_includes=
|
---|
5832 | ac_kde_libraries=
|
---|
5833 | kde_libraries=""
|
---|
5834 | kde_includes=""
|
---|
5835 | fi
|
---|
5836 |
|
---|
5837 | if eval "test \"`echo '$''{'ac_cv_have_kde'+set}'`\" = set"; then
|
---|
5838 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5839 | else
|
---|
5840 | #try to guess kde locations
|
---|
5841 |
|
---|
5842 | if test "$kde_qtver" = 1; then
|
---|
5843 | kde_check_header="ksock.h"
|
---|
5844 | kde_check_lib="libkdecore.la"
|
---|
5845 | else
|
---|
5846 | kde_check_header="ksharedptr.h"
|
---|
5847 | kde_check_lib="libkio.la"
|
---|
5848 | fi
|
---|
5849 |
|
---|
5850 | if test -z ""; then
|
---|
5851 |
|
---|
5852 | kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde2/include /opt/kde/include $x_includes $qt_includes"
|
---|
5853 | test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
|
---|
5854 | kde_incdirs="$ac_kde_includes $kde_incdirs"
|
---|
5855 |
|
---|
5856 | kde_incdir=NO
|
---|
5857 | for i in $kde_incdirs;
|
---|
5858 | do
|
---|
5859 | for j in $kde_check_header;
|
---|
5860 | do
|
---|
5861 | if test -r "$i/$j"; then
|
---|
5862 | kde_incdir=$i
|
---|
5863 | break 2
|
---|
5864 | fi
|
---|
5865 | done
|
---|
5866 | done
|
---|
5867 |
|
---|
5868 | ac_kde_includes="$kde_incdir"
|
---|
5869 |
|
---|
5870 | if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
|
---|
5871 | { echo "configure: error:
|
---|
5872 | in the prefix, you've chosen, are no KDE headers installed. This will fail.
|
---|
5873 | So, check this please and use another prefix!" 1>&2; exit 1; }
|
---|
5874 | fi
|
---|
5875 |
|
---|
5876 | kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde2/lib /opt/kde/lib /usr/X11R6/kde/lib"
|
---|
5877 | test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"
|
---|
5878 | kde_libdirs="$ac_kde_libraries $kde_libdirs"
|
---|
5879 |
|
---|
5880 | kde_libdir=NO
|
---|
5881 | for i in $kde_libdirs;
|
---|
5882 | do
|
---|
5883 | for j in $kde_check_lib;
|
---|
5884 | do
|
---|
5885 | if test -r "$i/$j"; then
|
---|
5886 | kde_libdir=$i
|
---|
5887 | break 2
|
---|
5888 | fi
|
---|
5889 | done
|
---|
5890 | done
|
---|
5891 |
|
---|
5892 | ac_kde_libraries="$kde_libdir"
|
---|
5893 |
|
---|
5894 | if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
|
---|
5895 | { echo "configure: error:
|
---|
5896 | in the prefix, you've chosen, are no KDE libraries installed. This will fail.
|
---|
5897 | So, check this please and use another prefix!" 1>&2; exit 1; }
|
---|
5898 | fi
|
---|
5899 | ac_kde_libraries="$kde_libdir"
|
---|
5900 |
|
---|
5901 | if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then
|
---|
5902 | ac_cv_have_kde="have_kde=no"
|
---|
5903 | else
|
---|
5904 | ac_cv_have_kde="have_kde=yes \
|
---|
5905 | ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
|
---|
5906 | fi
|
---|
5907 |
|
---|
5908 | else
|
---|
5909 | ac_cv_have_kde="have_kde=no"
|
---|
5910 |
|
---|
5911 | fi
|
---|
5912 |
|
---|
5913 | fi
|
---|
5914 |
|
---|
5915 | eval "$ac_cv_have_kde"
|
---|
5916 |
|
---|
5917 | if test "$have_kde" != "yes"; then
|
---|
5918 | if test "${prefix}" = NONE; then
|
---|
5919 | ac_kde_prefix="$ac_default_prefix"
|
---|
5920 | else
|
---|
5921 | ac_kde_prefix="$prefix"
|
---|
5922 | fi
|
---|
5923 | if test "$exec_prefix" = NONE; then
|
---|
5924 | ac_kde_exec_prefix="$ac_kde_prefix"
|
---|
5925 | echo "$ac_t""will be installed in $ac_kde_prefix" 1>&6
|
---|
5926 | else
|
---|
5927 | ac_kde_exec_prefix="$exec_prefix"
|
---|
5928 | echo "$ac_t""will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" 1>&6
|
---|
5929 | fi
|
---|
5930 |
|
---|
5931 | kde_libraries="${ac_kde_exec_prefix}/lib"
|
---|
5932 | kde_includes=${ac_kde_prefix}/include
|
---|
5933 |
|
---|
5934 | else
|
---|
5935 | ac_cv_have_kde="have_kde=yes \
|
---|
5936 | ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
|
---|
5937 | echo "$ac_t""libraries $ac_kde_libraries, headers $ac_kde_includes" 1>&6
|
---|
5938 |
|
---|
5939 | kde_libraries="$ac_kde_libraries"
|
---|
5940 | kde_includes="$ac_kde_includes"
|
---|
5941 | fi
|
---|
5942 |
|
---|
5943 |
|
---|
5944 |
|
---|
5945 | if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then
|
---|
5946 | KDE_INCLUDES=""
|
---|
5947 | else
|
---|
5948 | KDE_INCLUDES="-I$kde_includes"
|
---|
5949 | all_includes="$KDE_INCLUDES $all_includes"
|
---|
5950 | fi
|
---|
5951 |
|
---|
5952 | KDE_LDFLAGS="-L$kde_libraries"
|
---|
5953 | if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
|
---|
5954 | all_libraries="$all_libraries $KDE_LDFLAGS"
|
---|
5955 | fi
|
---|
5956 |
|
---|
5957 |
|
---|
5958 |
|
---|
5959 |
|
---|
5960 |
|
---|
5961 |
|
---|
5962 | all_libraries="$all_libraries $USER_LDFLAGS"
|
---|
5963 | all_includes="$all_includes $USER_INCLUDES"
|
---|
5964 |
|
---|
5965 |
|
---|
5966 |
|
---|
5967 |
|
---|
5968 |
|
---|
5969 | # Check whether --enable-path-check or --disable-path-check was given.
|
---|
5970 | if test "${enable_path_check+set}" = set; then
|
---|
5971 | enableval="$enable_path_check"
|
---|
5972 |
|
---|
5973 | if test "$enableval" = "no";
|
---|
5974 | then ac_use_path_checking="default"
|
---|
5975 | else ac_use_path_checking=""
|
---|
5976 | fi
|
---|
5977 |
|
---|
5978 | else
|
---|
5979 |
|
---|
5980 | if test "$kde_qtver" = 1;
|
---|
5981 | then ac_use_path_checking=""
|
---|
5982 | else ac_use_path_checking="default"
|
---|
5983 | fi
|
---|
5984 |
|
---|
5985 |
|
---|
5986 | fi
|
---|
5987 |
|
---|
5988 |
|
---|
5989 |
|
---|
5990 |
|
---|
5991 |
|
---|
5992 | echo $ac_n "checking for KDE paths""... $ac_c" 1>&6
|
---|
5993 | echo "configure:5994: checking for KDE paths" >&5
|
---|
5994 | kde_result=""
|
---|
5995 | kde_cached_paths=yes
|
---|
5996 | if eval "test \"`echo '$''{'kde_cv_all_paths'+set}'`\" = set"; then
|
---|
5997 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
5998 | else
|
---|
5999 |
|
---|
6000 |
|
---|
6001 | if test "$ac_use_path_checking" = "default"; then
|
---|
6002 |
|
---|
6003 | if test -z "$kde_htmldir"; then
|
---|
6004 | kde_htmldir='\${prefix}/share/doc/HTML'
|
---|
6005 | fi
|
---|
6006 | if test -z "$kde_appsdir"; then
|
---|
6007 | kde_appsdir='\${prefix}/share/applnk'
|
---|
6008 | fi
|
---|
6009 | if test -z "$kde_icondir"; then
|
---|
6010 | kde_icondir='\${prefix}/share/icons'
|
---|
6011 | fi
|
---|
6012 | if test -z "$kde_sounddir"; then
|
---|
6013 | kde_sounddir='\${prefix}/share/sounds'
|
---|
6014 | fi
|
---|
6015 | if test -z "$kde_datadir"; then
|
---|
6016 | kde_datadir='\${prefix}/share/apps'
|
---|
6017 | fi
|
---|
6018 | if test -z "$kde_locale"; then
|
---|
6019 | kde_locale='\${prefix}/share/locale'
|
---|
6020 | fi
|
---|
6021 | if test -z "$kde_cgidir"; then
|
---|
6022 | kde_cgidir='\${exec_prefix}/cgi-bin'
|
---|
6023 | fi
|
---|
6024 | if test -z "$kde_confdir"; then
|
---|
6025 | kde_confdir='\${prefix}/share/config'
|
---|
6026 | fi
|
---|
6027 | if test -z "$kde_mimedir"; then
|
---|
6028 | kde_mimedir='\${prefix}/share/mimelnk'
|
---|
6029 | fi
|
---|
6030 | if test -z "$kde_toolbardir"; then
|
---|
6031 | kde_toolbardir='\${prefix}/share/toolbar'
|
---|
6032 | fi
|
---|
6033 | if test -z "$kde_wallpaperdir"; then
|
---|
6034 | kde_wallpaperdir='\${prefix}/share/wallpapers'
|
---|
6035 | fi
|
---|
6036 | if test -z "$kde_templatesdir"; then
|
---|
6037 | kde_templatesdir='\${prefix}/share/templates'
|
---|
6038 | fi
|
---|
6039 | if test -z "$kde_bindir"; then
|
---|
6040 | kde_bindir='\${exec_prefix}/bin'
|
---|
6041 | fi
|
---|
6042 | if test -z "$kde_servicesdir"; then
|
---|
6043 | kde_servicesdir='\${prefix}/share/services'
|
---|
6044 | fi
|
---|
6045 | if test -z "$kde_servicetypesdir"; then
|
---|
6046 | kde_servicetypesdir='\${prefix}/share/servicetypes'
|
---|
6047 | fi
|
---|
6048 | if test -z "$kde_moduledir"; then
|
---|
6049 | kde_moduledir='\${prefix}/lib/kde2'
|
---|
6050 | fi
|
---|
6051 |
|
---|
6052 |
|
---|
6053 | kde_cv_all_paths="kde_have_all_paths=\"yes\" \
|
---|
6054 | kde_htmldir=\"$kde_htmldir\" \
|
---|
6055 | kde_appsdir=\"$kde_appsdir\" \
|
---|
6056 | kde_icondir=\"$kde_icondir\" \
|
---|
6057 | kde_sounddir=\"$kde_sounddir\" \
|
---|
6058 | kde_datadir=\"$kde_datadir\" \
|
---|
6059 | kde_locale=\"$kde_locale\" \
|
---|
6060 | kde_cgidir=\"$kde_cgidir\" \
|
---|
6061 | kde_confdir=\"$kde_confdir\" \
|
---|
6062 | kde_mimedir=\"$kde_mimedir\" \
|
---|
6063 | kde_toolbardir=\"$kde_toolbardir\" \
|
---|
6064 | kde_wallpaperdir=\"$kde_wallpaperdir\" \
|
---|
6065 | kde_templatesdir=\"$kde_templatesdir\" \
|
---|
6066 | kde_bindir=\"$kde_bindir\" \
|
---|
6067 | kde_servicesdir=\"$kde_servicesdir\" \
|
---|
6068 | kde_servicetypesdir=\"$kde_servicetypesdir\" \
|
---|
6069 | kde_moduledir=\"$kde_moduledir\" \
|
---|
6070 | kde_result=defaults"
|
---|
6071 |
|
---|
6072 |
|
---|
6073 | else
|
---|
6074 |
|
---|
6075 | if test $kde_qtver = 1; then
|
---|
6076 | echo "$ac_t""compiling" 1>&6
|
---|
6077 |
|
---|
6078 |
|
---|
6079 | echo $ac_n "checking for KDE headers installed""... $ac_c" 1>&6
|
---|
6080 | echo "configure:6081: checking for KDE headers installed" >&5
|
---|
6081 |
|
---|
6082 | ac_ext=C
|
---|
6083 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
6084 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6085 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
6086 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
6087 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
6088 |
|
---|
6089 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
6090 |
|
---|
6091 |
|
---|
6092 | cat > conftest.$ac_ext <<EOF
|
---|
6093 | #include <stdio.h>
|
---|
6094 | #include "confdefs.h"
|
---|
6095 | #include <kapp.h>
|
---|
6096 |
|
---|
6097 | int main() {
|
---|
6098 | printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
|
---|
6099 | printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
|
---|
6100 | printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
|
---|
6101 | printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
|
---|
6102 | printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
|
---|
6103 | printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
|
---|
6104 | printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
|
---|
6105 | printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
|
---|
6106 | printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
|
---|
6107 | printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
|
---|
6108 | printf("kde_wallpaperdir=\\"%s\\"\n",
|
---|
6109 | KApplication::kde_wallpaperdir().data());
|
---|
6110 | printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
|
---|
6111 | printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
|
---|
6112 | printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
|
---|
6113 | printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
|
---|
6114 | printf("kde_moduledir=\\"/tmp/dummy\\"\n");
|
---|
6115 | return 0;
|
---|
6116 | }
|
---|
6117 | EOF
|
---|
6118 |
|
---|
6119 | ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
|
---|
6120 | if { (eval echo configure:6121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6121 | echo "$ac_t""yes" 1>&6
|
---|
6122 | else
|
---|
6123 | { echo "configure: error: your system is not able to compile a small KDE application!
|
---|
6124 | Check, if you installed the KDE header files correctly.
|
---|
6125 | For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
|
---|
6126 | fi
|
---|
6127 |
|
---|
6128 | ac_ext=c
|
---|
6129 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
6130 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6131 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
6132 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
6133 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
6134 |
|
---|
6135 |
|
---|
6136 |
|
---|
6137 | KDE_TEST_RPATH=
|
---|
6138 |
|
---|
6139 | if test -n "$USE_RPATH"; then
|
---|
6140 |
|
---|
6141 | if test -n "$kde_libraries"; then
|
---|
6142 | KDE_TEST_RPATH="-R $kde_libraries"
|
---|
6143 | fi
|
---|
6144 |
|
---|
6145 | if test -n "$qt_libraries"; then
|
---|
6146 | KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
|
---|
6147 | fi
|
---|
6148 |
|
---|
6149 | if test -n "$x_libraries"; then
|
---|
6150 | KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
|
---|
6151 | fi
|
---|
6152 |
|
---|
6153 | KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
|
---|
6154 | fi
|
---|
6155 |
|
---|
6156 | echo $ac_n "checking for KDE libraries installed""... $ac_c" 1>&6
|
---|
6157 | echo "configure:6158: checking for KDE libraries installed" >&5
|
---|
6158 | ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
|
---|
6159 |
|
---|
6160 | if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
---|
6161 | echo "$ac_t""yes" 1>&6
|
---|
6162 | else
|
---|
6163 | { echo "configure: error: your system fails at linking a small KDE application!
|
---|
6164 | Check, if your compiler is installed correctly and if you have used the
|
---|
6165 | same compiler to compile Qt and kdelibs as you did use now.
|
---|
6166 | For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
|
---|
6167 | fi
|
---|
6168 |
|
---|
6169 | if eval `KDEDIR= ./conftest 2>&5`; then
|
---|
6170 | kde_result=done
|
---|
6171 | else
|
---|
6172 | kde_result=problems
|
---|
6173 | fi
|
---|
6174 |
|
---|
6175 | KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
|
---|
6176 | kde_have_all_paths=yes
|
---|
6177 |
|
---|
6178 |
|
---|
6179 | kde_cv_all_paths="kde_have_all_paths=\"yes\" \
|
---|
6180 | kde_htmldir=\"$kde_htmldir\" \
|
---|
6181 | kde_appsdir=\"$kde_appsdir\" \
|
---|
6182 | kde_icondir=\"$kde_icondir\" \
|
---|
6183 | kde_sounddir=\"$kde_sounddir\" \
|
---|
6184 | kde_datadir=\"$kde_datadir\" \
|
---|
6185 | kde_locale=\"$kde_locale\" \
|
---|
6186 | kde_cgidir=\"$kde_cgidir\" \
|
---|
6187 | kde_confdir=\"$kde_confdir\" \
|
---|
6188 | kde_mimedir=\"$kde_mimedir\" \
|
---|
6189 | kde_toolbardir=\"$kde_toolbardir\" \
|
---|
6190 | kde_wallpaperdir=\"$kde_wallpaperdir\" \
|
---|
6191 | kde_templatesdir=\"$kde_templatesdir\" \
|
---|
6192 | kde_bindir=\"$kde_bindir\" \
|
---|
6193 | kde_servicesdir=\"$kde_servicesdir\" \
|
---|
6194 | kde_servicetypesdir=\"$kde_servicetypesdir\" \
|
---|
6195 | kde_moduledir=\"$kde_moduledir\" \
|
---|
6196 | kde_result=$kde_result"
|
---|
6197 |
|
---|
6198 |
|
---|
6199 |
|
---|
6200 | else
|
---|
6201 | { echo "configure: error: path checking not yet supported for KDE 2" 1>&2; exit 1; }
|
---|
6202 | fi
|
---|
6203 |
|
---|
6204 | fi
|
---|
6205 |
|
---|
6206 | kde_cached_paths=no
|
---|
6207 |
|
---|
6208 | fi
|
---|
6209 |
|
---|
6210 | eval "$kde_cv_all_paths"
|
---|
6211 | if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
|
---|
6212 | test -z "$kde_icondir" || test -z "$kde_sounddir" ||
|
---|
6213 | test -z "$kde_datadir" || test -z "$kde_locale" ||
|
---|
6214 | test -z "$kde_cgidir" || test -z "$kde_confdir" ||
|
---|
6215 | test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
|
---|
6216 | test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
|
---|
6217 | test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
|
---|
6218 | test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
|
---|
6219 | test "$kde_have_all_paths" != "yes"; then
|
---|
6220 | kde_have_all_paths=no
|
---|
6221 | fi
|
---|
6222 |
|
---|
6223 | if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
|
---|
6224 | # wrong values were cached, may be, we can set better ones
|
---|
6225 | kde_result=
|
---|
6226 | kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
|
---|
6227 | kde_datadir= kde_locale= kde_cgidir= kde_confdir=
|
---|
6228 | kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
|
---|
6229 | kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
|
---|
6230 | kde_have_all_paths=
|
---|
6231 |
|
---|
6232 | if test "$ac_use_path_checking" = "default"; then
|
---|
6233 |
|
---|
6234 | if test -z "$kde_htmldir"; then
|
---|
6235 | kde_htmldir='\${prefix}/share/doc/HTML'
|
---|
6236 | fi
|
---|
6237 | if test -z "$kde_appsdir"; then
|
---|
6238 | kde_appsdir='\${prefix}/share/applnk'
|
---|
6239 | fi
|
---|
6240 | if test -z "$kde_icondir"; then
|
---|
6241 | kde_icondir='\${prefix}/share/icons'
|
---|
6242 | fi
|
---|
6243 | if test -z "$kde_sounddir"; then
|
---|
6244 | kde_sounddir='\${prefix}/share/sounds'
|
---|
6245 | fi
|
---|
6246 | if test -z "$kde_datadir"; then
|
---|
6247 | kde_datadir='\${prefix}/share/apps'
|
---|
6248 | fi
|
---|
6249 | if test -z "$kde_locale"; then
|
---|
6250 | kde_locale='\${prefix}/share/locale'
|
---|
6251 | fi
|
---|
6252 | if test -z "$kde_cgidir"; then
|
---|
6253 | kde_cgidir='\${exec_prefix}/cgi-bin'
|
---|
6254 | fi
|
---|
6255 | if test -z "$kde_confdir"; then
|
---|
6256 | kde_confdir='\${prefix}/share/config'
|
---|
6257 | fi
|
---|
6258 | if test -z "$kde_mimedir"; then
|
---|
6259 | kde_mimedir='\${prefix}/share/mimelnk'
|
---|
6260 | fi
|
---|
6261 | if test -z "$kde_toolbardir"; then
|
---|
6262 | kde_toolbardir='\${prefix}/share/toolbar'
|
---|
6263 | fi
|
---|
6264 | if test -z "$kde_wallpaperdir"; then
|
---|
6265 | kde_wallpaperdir='\${prefix}/share/wallpapers'
|
---|
6266 | fi
|
---|
6267 | if test -z "$kde_templatesdir"; then
|
---|
6268 | kde_templatesdir='\${prefix}/share/templates'
|
---|
6269 | fi
|
---|
6270 | if test -z "$kde_bindir"; then
|
---|
6271 | kde_bindir='\${exec_prefix}/bin'
|
---|
6272 | fi
|
---|
6273 | if test -z "$kde_servicesdir"; then
|
---|
6274 | kde_servicesdir='\${prefix}/share/services'
|
---|
6275 | fi
|
---|
6276 | if test -z "$kde_servicetypesdir"; then
|
---|
6277 | kde_servicetypesdir='\${prefix}/share/servicetypes'
|
---|
6278 | fi
|
---|
6279 | if test -z "$kde_moduledir"; then
|
---|
6280 | kde_moduledir='\${prefix}/lib/kde2'
|
---|
6281 | fi
|
---|
6282 |
|
---|
6283 |
|
---|
6284 | kde_cv_all_paths="kde_have_all_paths=\"yes\" \
|
---|
6285 | kde_htmldir=\"$kde_htmldir\" \
|
---|
6286 | kde_appsdir=\"$kde_appsdir\" \
|
---|
6287 | kde_icondir=\"$kde_icondir\" \
|
---|
6288 | kde_sounddir=\"$kde_sounddir\" \
|
---|
6289 | kde_datadir=\"$kde_datadir\" \
|
---|
6290 | kde_locale=\"$kde_locale\" \
|
---|
6291 | kde_cgidir=\"$kde_cgidir\" \
|
---|
6292 | kde_confdir=\"$kde_confdir\" \
|
---|
6293 | kde_mimedir=\"$kde_mimedir\" \
|
---|
6294 | kde_toolbardir=\"$kde_toolbardir\" \
|
---|
6295 | kde_wallpaperdir=\"$kde_wallpaperdir\" \
|
---|
6296 | kde_templatesdir=\"$kde_templatesdir\" \
|
---|
6297 | kde_bindir=\"$kde_bindir\" \
|
---|
6298 | kde_servicesdir=\"$kde_servicesdir\" \
|
---|
6299 | kde_servicetypesdir=\"$kde_servicetypesdir\" \
|
---|
6300 | kde_moduledir=\"$kde_moduledir\" \
|
---|
6301 | kde_result=defaults"
|
---|
6302 |
|
---|
6303 |
|
---|
6304 | else
|
---|
6305 |
|
---|
6306 | if test $kde_qtver = 1; then
|
---|
6307 | echo "$ac_t""compiling" 1>&6
|
---|
6308 |
|
---|
6309 |
|
---|
6310 | echo $ac_n "checking for KDE headers installed""... $ac_c" 1>&6
|
---|
6311 | echo "configure:6312: checking for KDE headers installed" >&5
|
---|
6312 |
|
---|
6313 | ac_ext=C
|
---|
6314 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
6315 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6316 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
6317 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
6318 | cross_compiling=$ac_cv_prog_cxx_cross
|
---|
6319 |
|
---|
6320 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
6321 |
|
---|
6322 |
|
---|
6323 | cat > conftest.$ac_ext <<EOF
|
---|
6324 | #include <stdio.h>
|
---|
6325 | #include "confdefs.h"
|
---|
6326 | #include <kapp.h>
|
---|
6327 |
|
---|
6328 | int main() {
|
---|
6329 | printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
|
---|
6330 | printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
|
---|
6331 | printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
|
---|
6332 | printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
|
---|
6333 | printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
|
---|
6334 | printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
|
---|
6335 | printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
|
---|
6336 | printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
|
---|
6337 | printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
|
---|
6338 | printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
|
---|
6339 | printf("kde_wallpaperdir=\\"%s\\"\n",
|
---|
6340 | KApplication::kde_wallpaperdir().data());
|
---|
6341 | printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
|
---|
6342 | printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
|
---|
6343 | printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
|
---|
6344 | printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
|
---|
6345 | printf("kde_moduledir=\\"/tmp/dummy\\"\n");
|
---|
6346 | return 0;
|
---|
6347 | }
|
---|
6348 | EOF
|
---|
6349 |
|
---|
6350 | ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
|
---|
6351 | if { (eval echo configure:6352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
---|
6352 | echo "$ac_t""yes" 1>&6
|
---|
6353 | else
|
---|
6354 | { echo "configure: error: your system is not able to compile a small KDE application!
|
---|
6355 | Check, if you installed the KDE header files correctly.
|
---|
6356 | For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
|
---|
6357 | fi
|
---|
6358 |
|
---|
6359 | ac_ext=c
|
---|
6360 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
---|
6361 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6362 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
---|
6363 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
---|
6364 | cross_compiling=$ac_cv_prog_cc_cross
|
---|
6365 |
|
---|
6366 |
|
---|
6367 |
|
---|
6368 | KDE_TEST_RPATH=
|
---|
6369 |
|
---|
6370 | if test -n "$USE_RPATH"; then
|
---|
6371 |
|
---|
6372 | if test -n "$kde_libraries"; then
|
---|
6373 | KDE_TEST_RPATH="-R $kde_libraries"
|
---|
6374 | fi
|
---|
6375 |
|
---|
6376 | if test -n "$qt_libraries"; then
|
---|
6377 | KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
|
---|
6378 | fi
|
---|
6379 |
|
---|
6380 | if test -n "$x_libraries"; then
|
---|
6381 | KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
|
---|
6382 | fi
|
---|
6383 |
|
---|
6384 | KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
|
---|
6385 | fi
|
---|
6386 |
|
---|
6387 | echo $ac_n "checking for KDE libraries installed""... $ac_c" 1>&6
|
---|
6388 | echo "configure:6389: checking for KDE libraries installed" >&5
|
---|
6389 | ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
|
---|
6390 |
|
---|
6391 | if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
---|
6392 | echo "$ac_t""yes" 1>&6
|
---|
6393 | else
|
---|
6394 | { echo "configure: error: your system fails at linking a small KDE application!
|
---|
6395 | Check, if your compiler is installed correctly and if you have used the
|
---|
6396 | same compiler to compile Qt and kdelibs as you did use now.
|
---|
6397 | For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
|
---|
6398 | fi
|
---|
6399 |
|
---|
6400 | if eval `KDEDIR= ./conftest 2>&5`; then
|
---|
6401 | kde_result=done
|
---|
6402 | else
|
---|
6403 | kde_result=problems
|
---|
6404 | fi
|
---|
6405 |
|
---|
6406 | KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
|
---|
6407 | kde_have_all_paths=yes
|
---|
6408 |
|
---|
6409 |
|
---|
6410 | kde_cv_all_paths="kde_have_all_paths=\"yes\" \
|
---|
6411 | kde_htmldir=\"$kde_htmldir\" \
|
---|
6412 | kde_appsdir=\"$kde_appsdir\" \
|
---|
6413 | kde_icondir=\"$kde_icondir\" \
|
---|
6414 | kde_sounddir=\"$kde_sounddir\" \
|
---|
6415 | kde_datadir=\"$kde_datadir\" \
|
---|
6416 | kde_locale=\"$kde_locale\" \
|
---|
6417 | kde_cgidir=\"$kde_cgidir\" \
|
---|
6418 | kde_confdir=\"$kde_confdir\" \
|
---|
6419 | kde_mimedir=\"$kde_mimedir\" \
|
---|
6420 | kde_toolbardir=\"$kde_toolbardir\" \
|
---|
6421 | kde_wallpaperdir=\"$kde_wallpaperdir\" \
|
---|
6422 | kde_templatesdir=\"$kde_templatesdir\" \
|
---|
6423 | kde_bindir=\"$kde_bindir\" \
|
---|
6424 | kde_servicesdir=\"$kde_servicesdir\" \
|
---|
6425 | kde_servicetypesdir=\"$kde_servicetypesdir\" \
|
---|
6426 | kde_moduledir=\"$kde_moduledir\" \
|
---|
6427 | kde_result=$kde_result"
|
---|
6428 |
|
---|
6429 |
|
---|
6430 |
|
---|
6431 | else
|
---|
6432 | { echo "configure: error: path checking not yet supported for KDE 2" 1>&2; exit 1; }
|
---|
6433 | fi
|
---|
6434 |
|
---|
6435 | fi
|
---|
6436 |
|
---|
6437 | eval "$kde_cv_all_paths"
|
---|
6438 | if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
|
---|
6439 | test -z "$kde_icondir" || test -z "$kde_sounddir" ||
|
---|
6440 | test -z "$kde_datadir" || test -z "$kde_locale" ||
|
---|
6441 | test -z "$kde_cgidir" || test -z "$kde_confdir" ||
|
---|
6442 | test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
|
---|
6443 | test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
|
---|
6444 | test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
|
---|
6445 | test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
|
---|
6446 | test "$kde_have_all_paths" != "yes"; then
|
---|
6447 | kde_have_all_paths=no
|
---|
6448 | fi
|
---|
6449 |
|
---|
6450 | kde_result="$kde_result (cache overridden)"
|
---|
6451 | fi
|
---|
6452 | if test "$kde_have_all_paths" = "no"; then
|
---|
6453 | { echo "configure: error: configure could not run a little KDE program to test the environment.
|
---|
6454 | Since it had compiled and linked before, it must be a strange problem on your system.
|
---|
6455 | Look at config.log for details. If you are not able to fix this, look at
|
---|
6456 | http://www.kde.org/faq/installation.html or any www.kde.org mirror.
|
---|
6457 | (If you're using an egcs version on Linux, you may update binutils!)
|
---|
6458 | " 1>&2; exit 1; }
|
---|
6459 | else
|
---|
6460 | rm -f conftest*
|
---|
6461 | echo "$ac_t""$kde_result" 1>&6
|
---|
6462 | fi
|
---|
6463 |
|
---|
6464 | bindir=$kde_bindir
|
---|
6465 |
|
---|
6466 |
|
---|
6467 | kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde2/bin /usr/kde/bin /usr/local/kde/bin"
|
---|
6468 | if test -n "$KDEDIRS"; then
|
---|
6469 | kde_save_IFS=$IFS
|
---|
6470 | IFS=:
|
---|
6471 | for dir in $KDEDIRS; do
|
---|
6472 | kde_default_bindirs="$dir/bin $kde_default_bindirs "
|
---|
6473 | done
|
---|
6474 | IFS=$kde_save_IFS
|
---|
6475 | fi
|
---|
6476 | kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
|
---|
6477 |
|
---|
6478 | echo $ac_n "checking for dcopidl""... $ac_c" 1>&6
|
---|
6479 | echo "configure:6480: checking for dcopidl" >&5
|
---|
6480 | if test -n "$DCOPIDL"; then
|
---|
6481 | kde_cv_path="$DCOPIDL";
|
---|
6482 | else
|
---|
6483 | kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
|
---|
6484 |
|
---|
6485 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
6486 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6487 | else
|
---|
6488 |
|
---|
6489 | kde_cv_path="NONE"
|
---|
6490 | dirs="$kde_default_bindirs"
|
---|
6491 | kde_save_IFS=$IFS
|
---|
6492 | IFS=':'
|
---|
6493 | for dir in $PATH; do
|
---|
6494 | dirs="$dirs $dir"
|
---|
6495 | done
|
---|
6496 | IFS=$kde_save_IFS
|
---|
6497 |
|
---|
6498 | for dir in $dirs; do
|
---|
6499 | if test -x "$dir/dcopidl"; then
|
---|
6500 | if test -n ""
|
---|
6501 | then
|
---|
6502 | evalstr="$dir/dcopidl 2>&1 "
|
---|
6503 | if eval $evalstr; then
|
---|
6504 | kde_cv_path="$dir/dcopidl"
|
---|
6505 | break
|
---|
6506 | fi
|
---|
6507 | else
|
---|
6508 | kde_cv_path="$dir/dcopidl"
|
---|
6509 | break
|
---|
6510 | fi
|
---|
6511 | fi
|
---|
6512 | done
|
---|
6513 |
|
---|
6514 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
6515 |
|
---|
6516 |
|
---|
6517 | fi
|
---|
6518 |
|
---|
6519 |
|
---|
6520 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
6521 |
|
---|
6522 | fi
|
---|
6523 |
|
---|
6524 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
6525 | echo "$ac_t""not found" 1>&6
|
---|
6526 |
|
---|
6527 | { echo "configure: error: The important program dcopidl was not found!
|
---|
6528 | Please check whether you installed KDE correctly.
|
---|
6529 | " 1>&2; exit 1; }
|
---|
6530 |
|
---|
6531 | else
|
---|
6532 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
6533 | DCOPIDL=$kde_cv_path
|
---|
6534 |
|
---|
6535 | fi
|
---|
6536 |
|
---|
6537 |
|
---|
6538 | echo $ac_n "checking for dcopidl2cpp""... $ac_c" 1>&6
|
---|
6539 | echo "configure:6540: checking for dcopidl2cpp" >&5
|
---|
6540 | if test -n "$DCOPIDL2CPP"; then
|
---|
6541 | kde_cv_path="$DCOPIDL2CPP";
|
---|
6542 | else
|
---|
6543 | kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
|
---|
6544 |
|
---|
6545 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
6546 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6547 | else
|
---|
6548 |
|
---|
6549 | kde_cv_path="NONE"
|
---|
6550 | dirs="$kde_default_bindirs"
|
---|
6551 | kde_save_IFS=$IFS
|
---|
6552 | IFS=':'
|
---|
6553 | for dir in $PATH; do
|
---|
6554 | dirs="$dirs $dir"
|
---|
6555 | done
|
---|
6556 | IFS=$kde_save_IFS
|
---|
6557 |
|
---|
6558 | for dir in $dirs; do
|
---|
6559 | if test -x "$dir/dcopidl2cpp"; then
|
---|
6560 | if test -n ""
|
---|
6561 | then
|
---|
6562 | evalstr="$dir/dcopidl2cpp 2>&1 "
|
---|
6563 | if eval $evalstr; then
|
---|
6564 | kde_cv_path="$dir/dcopidl2cpp"
|
---|
6565 | break
|
---|
6566 | fi
|
---|
6567 | else
|
---|
6568 | kde_cv_path="$dir/dcopidl2cpp"
|
---|
6569 | break
|
---|
6570 | fi
|
---|
6571 | fi
|
---|
6572 | done
|
---|
6573 |
|
---|
6574 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
6575 |
|
---|
6576 |
|
---|
6577 | fi
|
---|
6578 |
|
---|
6579 |
|
---|
6580 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
6581 |
|
---|
6582 | fi
|
---|
6583 |
|
---|
6584 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
6585 | echo "$ac_t""not found" 1>&6
|
---|
6586 |
|
---|
6587 | { echo "configure: error: The important program dcopidl2cpp was not found!
|
---|
6588 | Please check whether you installed KDE correctly.
|
---|
6589 | " 1>&2; exit 1; }
|
---|
6590 |
|
---|
6591 | else
|
---|
6592 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
6593 | DCOPIDL2CPP=$kde_cv_path
|
---|
6594 |
|
---|
6595 | fi
|
---|
6596 |
|
---|
6597 |
|
---|
6598 | echo $ac_n "checking for mcopidl""... $ac_c" 1>&6
|
---|
6599 | echo "configure:6600: checking for mcopidl" >&5
|
---|
6600 | if test -n "$MCOPIDL"; then
|
---|
6601 | kde_cv_path="$MCOPIDL";
|
---|
6602 | else
|
---|
6603 | kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
|
---|
6604 |
|
---|
6605 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
6606 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6607 | else
|
---|
6608 |
|
---|
6609 | kde_cv_path="NONE"
|
---|
6610 | dirs="$kde_default_bindirs"
|
---|
6611 | kde_save_IFS=$IFS
|
---|
6612 | IFS=':'
|
---|
6613 | for dir in $PATH; do
|
---|
6614 | dirs="$dirs $dir"
|
---|
6615 | done
|
---|
6616 | IFS=$kde_save_IFS
|
---|
6617 |
|
---|
6618 | for dir in $dirs; do
|
---|
6619 | if test -x "$dir/mcopidl"; then
|
---|
6620 | if test -n ""
|
---|
6621 | then
|
---|
6622 | evalstr="$dir/mcopidl 2>&1 "
|
---|
6623 | if eval $evalstr; then
|
---|
6624 | kde_cv_path="$dir/mcopidl"
|
---|
6625 | break
|
---|
6626 | fi
|
---|
6627 | else
|
---|
6628 | kde_cv_path="$dir/mcopidl"
|
---|
6629 | break
|
---|
6630 | fi
|
---|
6631 | fi
|
---|
6632 | done
|
---|
6633 |
|
---|
6634 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
6635 |
|
---|
6636 |
|
---|
6637 | fi
|
---|
6638 |
|
---|
6639 |
|
---|
6640 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
6641 |
|
---|
6642 | fi
|
---|
6643 |
|
---|
6644 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
6645 | echo "$ac_t""not found" 1>&6
|
---|
6646 |
|
---|
6647 | { echo "configure: error: The important program mcopidl was not found!
|
---|
6648 | Please check whether you installed KDE correctly.
|
---|
6649 | " 1>&2; exit 1; }
|
---|
6650 |
|
---|
6651 | else
|
---|
6652 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
6653 | MCOPIDL=$kde_cv_path
|
---|
6654 |
|
---|
6655 | fi
|
---|
6656 |
|
---|
6657 |
|
---|
6658 | echo $ac_n "checking for kdb2html""... $ac_c" 1>&6
|
---|
6659 | echo "configure:6660: checking for kdb2html" >&5
|
---|
6660 | if test -n "$KDB2HTML"; then
|
---|
6661 | kde_cv_path="$KDB2HTML";
|
---|
6662 | else
|
---|
6663 | kde_cache=`echo kdb2html | sed 'y%./+-%__p_%'`
|
---|
6664 |
|
---|
6665 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
6666 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6667 | else
|
---|
6668 |
|
---|
6669 | kde_cv_path="NONE"
|
---|
6670 | dirs="$kde_default_bindirs"
|
---|
6671 | kde_save_IFS=$IFS
|
---|
6672 | IFS=':'
|
---|
6673 | for dir in $PATH; do
|
---|
6674 | dirs="$dirs $dir"
|
---|
6675 | done
|
---|
6676 | IFS=$kde_save_IFS
|
---|
6677 |
|
---|
6678 | for dir in $dirs; do
|
---|
6679 | if test -x "$dir/kdb2html"; then
|
---|
6680 | if test -n ""
|
---|
6681 | then
|
---|
6682 | evalstr="$dir/kdb2html 2>&1 "
|
---|
6683 | if eval $evalstr; then
|
---|
6684 | kde_cv_path="$dir/kdb2html"
|
---|
6685 | break
|
---|
6686 | fi
|
---|
6687 | else
|
---|
6688 | kde_cv_path="$dir/kdb2html"
|
---|
6689 | break
|
---|
6690 | fi
|
---|
6691 | fi
|
---|
6692 | done
|
---|
6693 |
|
---|
6694 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
6695 |
|
---|
6696 |
|
---|
6697 | fi
|
---|
6698 |
|
---|
6699 |
|
---|
6700 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
6701 |
|
---|
6702 | fi
|
---|
6703 |
|
---|
6704 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
6705 | echo "$ac_t""not found" 1>&6
|
---|
6706 |
|
---|
6707 | { echo "configure: error: The important program kdb2html was not found!
|
---|
6708 | Please check whether you installed KDE correctly.
|
---|
6709 | " 1>&2; exit 1; }
|
---|
6710 |
|
---|
6711 | else
|
---|
6712 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
6713 | KDB2HTML=$kde_cv_path
|
---|
6714 |
|
---|
6715 | fi
|
---|
6716 |
|
---|
6717 |
|
---|
6718 | echo $ac_n "checking for artsc-config""... $ac_c" 1>&6
|
---|
6719 | echo "configure:6720: checking for artsc-config" >&5
|
---|
6720 | if test -n "$ARTSCCONFIG"; then
|
---|
6721 | kde_cv_path="$ARTSCCONFIG";
|
---|
6722 | else
|
---|
6723 | kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
|
---|
6724 |
|
---|
6725 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
6726 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6727 | else
|
---|
6728 |
|
---|
6729 | kde_cv_path="NONE"
|
---|
6730 | dirs="$kde_default_bindirs"
|
---|
6731 | kde_save_IFS=$IFS
|
---|
6732 | IFS=':'
|
---|
6733 | for dir in $PATH; do
|
---|
6734 | dirs="$dirs $dir"
|
---|
6735 | done
|
---|
6736 | IFS=$kde_save_IFS
|
---|
6737 |
|
---|
6738 | for dir in $dirs; do
|
---|
6739 | if test -x "$dir/artsc-config"; then
|
---|
6740 | if test -n ""
|
---|
6741 | then
|
---|
6742 | evalstr="$dir/artsc-config 2>&1 "
|
---|
6743 | if eval $evalstr; then
|
---|
6744 | kde_cv_path="$dir/artsc-config"
|
---|
6745 | break
|
---|
6746 | fi
|
---|
6747 | else
|
---|
6748 | kde_cv_path="$dir/artsc-config"
|
---|
6749 | break
|
---|
6750 | fi
|
---|
6751 | fi
|
---|
6752 | done
|
---|
6753 |
|
---|
6754 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
6755 |
|
---|
6756 |
|
---|
6757 | fi
|
---|
6758 |
|
---|
6759 |
|
---|
6760 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
6761 |
|
---|
6762 | fi
|
---|
6763 |
|
---|
6764 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
6765 | echo "$ac_t""not found" 1>&6
|
---|
6766 |
|
---|
6767 | { echo "configure: error: The important program artsc-config was not found!
|
---|
6768 | Please check whether you installed KDE correctly.
|
---|
6769 | " 1>&2; exit 1; }
|
---|
6770 |
|
---|
6771 | else
|
---|
6772 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
6773 | ARTSCCONFIG=$kde_cv_path
|
---|
6774 |
|
---|
6775 | fi
|
---|
6776 |
|
---|
6777 |
|
---|
6778 | echo $ac_n "checking for kde-config""... $ac_c" 1>&6
|
---|
6779 | echo "configure:6780: checking for kde-config" >&5
|
---|
6780 | if test -n "$KDECONFIG"; then
|
---|
6781 | kde_cv_path="$KDECONFIG";
|
---|
6782 | else
|
---|
6783 | kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
|
---|
6784 |
|
---|
6785 | if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
|
---|
6786 | echo $ac_n "(cached) $ac_c" 1>&6
|
---|
6787 | else
|
---|
6788 |
|
---|
6789 | kde_cv_path="NONE"
|
---|
6790 | dirs="$kde_default_bindirs"
|
---|
6791 | kde_save_IFS=$IFS
|
---|
6792 | IFS=':'
|
---|
6793 | for dir in $PATH; do
|
---|
6794 | dirs="$dirs $dir"
|
---|
6795 | done
|
---|
6796 | IFS=$kde_save_IFS
|
---|
6797 |
|
---|
6798 | for dir in $dirs; do
|
---|
6799 | if test -x "$dir/kde-config"; then
|
---|
6800 | if test -n ""
|
---|
6801 | then
|
---|
6802 | evalstr="$dir/kde-config 2>&1 "
|
---|
6803 | if eval $evalstr; then
|
---|
6804 | kde_cv_path="$dir/kde-config"
|
---|
6805 | break
|
---|
6806 | fi
|
---|
6807 | else
|
---|
6808 | kde_cv_path="$dir/kde-config"
|
---|
6809 | break
|
---|
6810 | fi
|
---|
6811 | fi
|
---|
6812 | done
|
---|
6813 |
|
---|
6814 | eval "kde_cv_path_$kde_cache=$kde_cv_path"
|
---|
6815 |
|
---|
6816 |
|
---|
6817 | fi
|
---|
6818 |
|
---|
6819 |
|
---|
6820 | eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
|
---|
6821 |
|
---|
6822 | fi
|
---|
6823 |
|
---|
6824 | if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
|
---|
6825 | echo "$ac_t""not found" 1>&6
|
---|
6826 |
|
---|
6827 | { echo "configure: error: The important program kde-config was not found!
|
---|
6828 | Please check whether you installed KDE correctly.
|
---|
6829 | " 1>&2; exit 1; }
|
---|
6830 |
|
---|
6831 | else
|
---|
6832 | echo "$ac_t""$kde_cv_path" 1>&6
|
---|
6833 | KDECONFIG=$kde_cv_path
|
---|
6834 |
|
---|
6835 | fi
|
---|
6836 |
|
---|
6837 |
|
---|
6838 | DCOP_DEPENDENCIES='$(DCOPIDL)'
|
---|
6839 |
|
---|
6840 |
|
---|
6841 |
|
---|
6842 |
|
---|
6843 |
|
---|
6844 |
|
---|
6845 |
|
---|
6846 |
|
---|
6847 | if test -x "$KDECONFIG"; then # it can be "compiled"
|
---|
6848 | kde_libs_prefix=`$KDECONFIG --prefix`
|
---|
6849 | if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
|
---|
6850 | { echo "configure: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
|
---|
6851 | This means it has been moved since you installed it.
|
---|
6852 | This won't work. Please recompile kdelibs for the new prefix.
|
---|
6853 | " 1>&2; exit 1; }
|
---|
6854 | fi
|
---|
6855 | kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
|
---|
6856 | else
|
---|
6857 | kde_libs_prefix='$(prefix)'
|
---|
6858 | kde_libs_htmldir='$(kde_htmldir)'
|
---|
6859 | fi
|
---|
6860 |
|
---|
6861 |
|
---|
6862 |
|
---|
6863 |
|
---|
6864 |
|
---|
6865 |
|
---|
6866 |
|
---|
6867 |
|
---|
6868 |
|
---|
6869 |
|
---|
6870 |
|
---|
6871 |
|
---|
6872 |
|
---|
6873 |
|
---|
6874 |
|
---|
6875 |
|
---|
6876 |
|
---|
6877 |
|
---|
6878 |
|
---|
6879 |
|
---|
6880 |
|
---|
6881 | if test "$kde_qtver" = 1; then
|
---|
6882 | kde_minidir="$kde_icondir/mini"
|
---|
6883 | else
|
---|
6884 | # for KDE 1 - this breaks KDE2 apps using minidir, but
|
---|
6885 | # that's the plan ;-/
|
---|
6886 | kde_minidir="/dev/null"
|
---|
6887 | fi
|
---|
6888 |
|
---|
6889 |
|
---|
6890 |
|
---|
6891 |
|
---|
6892 |
|
---|
6893 |
|
---|
6894 | if test $kde_qtver = 2; then
|
---|
6895 | LIB_KDECORE='-lkdecore'
|
---|
6896 |
|
---|
6897 | LIB_KDEUI='-lkdeui'
|
---|
6898 |
|
---|
6899 | LIB_KFORMULA='-lkformula'
|
---|
6900 |
|
---|
6901 | LIB_KIO='-lkio'
|
---|
6902 |
|
---|
6903 | LIB_KSYCOCA='-lksycoca'
|
---|
6904 |
|
---|
6905 | LIB_SMB='-lsmb'
|
---|
6906 |
|
---|
6907 | LIB_KFILE='-lkfile'
|
---|
6908 |
|
---|
6909 | LIB_KAB='-lkab'
|
---|
6910 |
|
---|
6911 | LIB_KHTML='-lkhtml'
|
---|
6912 |
|
---|
6913 | LIB_KSPELL='-lkspell'
|
---|
6914 |
|
---|
6915 | LIB_KPARTS='-lkparts'
|
---|
6916 |
|
---|
6917 | LIB_KWRITE='-lkwrite'
|
---|
6918 |
|
---|
6919 | else
|
---|
6920 | LIB_KDECORE='-lkdecore -lXext $(LIB_QT)'
|
---|
6921 |
|
---|
6922 | LIB_KDEUI='-lkdeui $(LIB_KDECORE)'
|
---|
6923 |
|
---|
6924 | LIB_KFM='-lkfm $(LIB_KDECORE)'
|
---|
6925 |
|
---|
6926 | LIB_KFILE='-lkfile $(LIB_KFM) $(LIB_KDEUI)'
|
---|
6927 |
|
---|
6928 | LIB_KAB='-lkab $(LIB_KIMGIO) $(LIB_KDECORE)'
|
---|
6929 |
|
---|
6930 | fi
|
---|
6931 |
|
---|
6932 |
|
---|
6933 |
|
---|
6934 | if test "$program_transform_name" = s,x,x,; then
|
---|
6935 | program_transform_name=
|
---|
6936 | else
|
---|
6937 | # Double any \ or $. echo might interpret backslashes.
|
---|
6938 | cat <<\EOF_SED > conftestsed
|
---|
6939 | s,\\,\\\\,g; s,\$,$$,g
|
---|
6940 | EOF_SED
|
---|
6941 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
|
---|
6942 | rm -f conftestsed
|
---|
6943 | fi
|
---|
6944 | test "$program_prefix" != NONE &&
|
---|
6945 | program_transform_name="s,^,${program_prefix},; $program_transform_name"
|
---|
6946 | # Use a double $ so make ignores it.
|
---|
6947 | test "$program_suffix" != NONE &&
|
---|
6948 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
|
---|
6949 |
|
---|
6950 | # sed with no file args requires a program.
|
---|
6951 | test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
---|
6952 |
|
---|
6953 |
|
---|
6954 | #MIN_CONFIG
|
---|
6955 |
|
---|
6956 |
|
---|
6957 |
|
---|
6958 |
|
---|
6959 | DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
|
---|
6960 |
|
---|
6961 | if test ! -s $srcdir/subdirs; then
|
---|
6962 | TOPSUBDIRS=""
|
---|
6963 | files=`cd $srcdir && ls -1`
|
---|
6964 | dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
|
---|
6965 | for i in $dirs; do
|
---|
6966 | echo $i >> $srcdir/subdirs
|
---|
6967 | done
|
---|
6968 | fi
|
---|
6969 |
|
---|
6970 | if test -s $srcdir/inst-apps; then
|
---|
6971 | ac_topsubdirs="`cat $srcdir/inst-apps`"
|
---|
6972 | else
|
---|
6973 | ac_topsubdirs="`cat $srcdir/subdirs`"
|
---|
6974 | fi
|
---|
6975 |
|
---|
6976 | for i in $ac_topsubdirs; do
|
---|
6977 | echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
|
---|
6978 | echo "configure:6979: checking if $i should be compiled" >&5
|
---|
6979 | if test -d $srcdir/$i; then
|
---|
6980 | install_it="yes"
|
---|
6981 | for j in $DO_NOT_COMPILE; do
|
---|
6982 | if test $i = $j; then
|
---|
6983 | install_it="no"
|
---|
6984 | fi
|
---|
6985 | done
|
---|
6986 | else
|
---|
6987 | install_it="no"
|
---|
6988 | fi
|
---|
6989 | echo "$ac_t""$install_it" 1>&6
|
---|
6990 | if test $install_it = "yes"; then
|
---|
6991 | TOPSUBDIRS="$TOPSUBDIRS $i"
|
---|
6992 | fi
|
---|
6993 | done
|
---|
6994 |
|
---|
6995 |
|
---|
6996 |
|
---|
6997 | trap '' 1 2 15
|
---|
6998 | cat > confcache <<\EOF
|
---|
6999 | # This file is a shell script that caches the results of configure
|
---|
7000 | # tests run on this system so they can be shared between configure
|
---|
7001 | # scripts and configure runs. It is not useful on other systems.
|
---|
7002 | # If it contains results you don't want to keep, you may remove or edit it.
|
---|
7003 | #
|
---|
7004 | # By default, configure uses ./config.cache as the cache file,
|
---|
7005 | # creating it if it does not exist already. You can give configure
|
---|
7006 | # the --cache-file=FILE option to use a different cache file; that is
|
---|
7007 | # what configure does when it calls configure scripts in
|
---|
7008 | # subdirectories, so they share the cache.
|
---|
7009 | # Giving --cache-file=/dev/null disables caching, for debugging configure.
|
---|
7010 | # config.status only pays attention to the cache file if you give it the
|
---|
7011 | # --recheck option to rerun configure.
|
---|
7012 | #
|
---|
7013 | EOF
|
---|
7014 | # The following way of writing the cache mishandles newlines in values,
|
---|
7015 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
7016 | # So, don't put newlines in cache variables' values.
|
---|
7017 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
7018 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
7019 | (set) 2>&1 |
|
---|
7020 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
7021 | *ac_space=\ *)
|
---|
7022 | # `set' does not quote correctly, so add quotes (double-quote substitution
|
---|
7023 | # turns \\\\ into \\, and sed turns \\ into \).
|
---|
7024 | sed -n \
|
---|
7025 | -e "s/'/'\\\\''/g" \
|
---|
7026 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
---|
7027 | ;;
|
---|
7028 | *)
|
---|
7029 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
7030 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
---|
7031 | ;;
|
---|
7032 | esac >> confcache
|
---|
7033 | if cmp -s $cache_file confcache; then
|
---|
7034 | :
|
---|
7035 | else
|
---|
7036 | if test -w $cache_file; then
|
---|
7037 | echo "updating cache $cache_file"
|
---|
7038 | cat confcache > $cache_file
|
---|
7039 | else
|
---|
7040 | echo "not updating unwritable cache $cache_file"
|
---|
7041 | fi
|
---|
7042 | fi
|
---|
7043 | rm -f confcache
|
---|
7044 |
|
---|
7045 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
---|
7046 |
|
---|
7047 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
7048 | # Let make expand exec_prefix.
|
---|
7049 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
7050 |
|
---|
7051 | # Any assignment to VPATH causes Sun make to only execute
|
---|
7052 | # the first set of double-colon rules, so remove it if not needed.
|
---|
7053 | # If there is a colon in the path, we need to keep it.
|
---|
7054 | if test "x$srcdir" = x.; then
|
---|
7055 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
---|
7056 | fi
|
---|
7057 |
|
---|
7058 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
---|
7059 |
|
---|
7060 | DEFS=-DHAVE_CONFIG_H
|
---|
7061 |
|
---|
7062 | # Without the "./", some shells look in PATH for config.status.
|
---|
7063 | : ${CONFIG_STATUS=./config.status}
|
---|
7064 |
|
---|
7065 | echo creating $CONFIG_STATUS
|
---|
7066 | rm -f $CONFIG_STATUS
|
---|
7067 | cat > $CONFIG_STATUS <<EOF
|
---|
7068 | #! /bin/sh
|
---|
7069 | # Generated automatically by configure.
|
---|
7070 | # Run this file to recreate the current configuration.
|
---|
7071 | # This directory was configured as follows,
|
---|
7072 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
7073 | #
|
---|
7074 | # $0 $ac_configure_args
|
---|
7075 | #
|
---|
7076 | # Compiler output produced by configure, useful for debugging
|
---|
7077 | # configure, is in ./config.log if it exists.
|
---|
7078 |
|
---|
7079 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
---|
7080 | for ac_option
|
---|
7081 | do
|
---|
7082 | case "\$ac_option" in
|
---|
7083 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7084 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
---|
7085 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
---|
7086 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
---|
7087 | echo "$CONFIG_STATUS generated by autoconf version 2.13"
|
---|
7088 | exit 0 ;;
|
---|
7089 | -help | --help | --hel | --he | --h)
|
---|
7090 | echo "\$ac_cs_usage"; exit 0 ;;
|
---|
7091 | *) echo "\$ac_cs_usage"; exit 1 ;;
|
---|
7092 | esac
|
---|
7093 | done
|
---|
7094 |
|
---|
7095 | ac_given_srcdir=$srcdir
|
---|
7096 | ac_given_INSTALL="$INSTALL"
|
---|
7097 |
|
---|
7098 | trap 'rm -fr `echo "\
|
---|
7099 | ./Makefile \
|
---|
7100 | activemirrorcontrol/Makefile \
|
---|
7101 | doc/Makefile \
|
---|
7102 | doc/en/Makefile \
|
---|
7103 | po/Makefile \
|
---|
7104 | config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
---|
7105 | EOF
|
---|
7106 | cat >> $CONFIG_STATUS <<EOF
|
---|
7107 |
|
---|
7108 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7109 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
---|
7110 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
---|
7111 | $ac_vpsub
|
---|
7112 | $extrasub
|
---|
7113 | s%@SHELL@%$SHELL%g
|
---|
7114 | s%@CFLAGS@%$CFLAGS%g
|
---|
7115 | s%@CPPFLAGS@%$CPPFLAGS%g
|
---|
7116 | s%@CXXFLAGS@%$CXXFLAGS%g
|
---|
7117 | s%@FFLAGS@%$FFLAGS%g
|
---|
7118 | s%@DEFS@%$DEFS%g
|
---|
7119 | s%@LDFLAGS@%$LDFLAGS%g
|
---|
7120 | s%@LIBS@%$LIBS%g
|
---|
7121 | s%@exec_prefix@%$exec_prefix%g
|
---|
7122 | s%@prefix@%$prefix%g
|
---|
7123 | s%@program_transform_name@%$program_transform_name%g
|
---|
7124 | s%@bindir@%$bindir%g
|
---|
7125 | s%@sbindir@%$sbindir%g
|
---|
7126 | s%@libexecdir@%$libexecdir%g
|
---|
7127 | s%@datadir@%$datadir%g
|
---|
7128 | s%@sysconfdir@%$sysconfdir%g
|
---|
7129 | s%@sharedstatedir@%$sharedstatedir%g
|
---|
7130 | s%@localstatedir@%$localstatedir%g
|
---|
7131 | s%@libdir@%$libdir%g
|
---|
7132 | s%@includedir@%$includedir%g
|
---|
7133 | s%@oldincludedir@%$oldincludedir%g
|
---|
7134 | s%@infodir@%$infodir%g
|
---|
7135 | s%@mandir@%$mandir%g
|
---|
7136 | s%@host@%$host%g
|
---|
7137 | s%@host_alias@%$host_alias%g
|
---|
7138 | s%@host_cpu@%$host_cpu%g
|
---|
7139 | s%@host_vendor@%$host_vendor%g
|
---|
7140 | s%@host_os@%$host_os%g
|
---|
7141 | s%@target@%$target%g
|
---|
7142 | s%@target_alias@%$target_alias%g
|
---|
7143 | s%@target_cpu@%$target_cpu%g
|
---|
7144 | s%@target_vendor@%$target_vendor%g
|
---|
7145 | s%@target_os@%$target_os%g
|
---|
7146 | s%@build@%$build%g
|
---|
7147 | s%@build_alias@%$build_alias%g
|
---|
7148 | s%@build_cpu@%$build_cpu%g
|
---|
7149 | s%@build_vendor@%$build_vendor%g
|
---|
7150 | s%@build_os@%$build_os%g
|
---|
7151 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
---|
7152 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
|
---|
7153 | s%@INSTALL_DATA@%$INSTALL_DATA%g
|
---|
7154 | s%@PACKAGE@%$PACKAGE%g
|
---|
7155 | s%@VERSION@%$VERSION%g
|
---|
7156 | s%@ACLOCAL@%$ACLOCAL%g
|
---|
7157 | s%@AUTOCONF@%$AUTOCONF%g
|
---|
7158 | s%@AUTOMAKE@%$AUTOMAKE%g
|
---|
7159 | s%@AUTOHEADER@%$AUTOHEADER%g
|
---|
7160 | s%@MAKEINFO@%$MAKEINFO%g
|
---|
7161 | s%@SET_MAKE@%$SET_MAKE%g
|
---|
7162 | s%@CONF_FILES@%$CONF_FILES%g
|
---|
7163 | s%@CC@%$CC%g
|
---|
7164 | s%@CPP@%$CPP%g
|
---|
7165 | s%@CXX@%$CXX%g
|
---|
7166 | s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
|
---|
7167 | s%@USE_RTTI@%$USE_RTTI%g
|
---|
7168 | s%@CXXCPP@%$CXXCPP%g
|
---|
7169 | s%@NOOPT_CXXFLAGS@%$NOOPT_CXXFLAGS%g
|
---|
7170 | s%@REPO@%$REPO%g
|
---|
7171 | s%@NOREPO@%$NOREPO%g
|
---|
7172 | s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
|
---|
7173 | s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
|
---|
7174 | s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
|
---|
7175 | s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
|
---|
7176 | s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
|
---|
7177 | s%@OBJEXT@%$OBJEXT%g
|
---|
7178 | s%@EXEEXT@%$EXEEXT%g
|
---|
7179 | s%@LN_S@%$LN_S%g
|
---|
7180 | s%@RANLIB@%$RANLIB%g
|
---|
7181 | s%@STRIP@%$STRIP%g
|
---|
7182 | s%@LIBTOOL@%$LIBTOOL%g
|
---|
7183 | s%@KDE_PLUGIN@%$KDE_PLUGIN%g
|
---|
7184 | s%@MSGFMT@%$MSGFMT%g
|
---|
7185 | s%@GMSGFMT@%$GMSGFMT%g
|
---|
7186 | s%@XGETTEXT@%$XGETTEXT%g
|
---|
7187 | s%@LIBCOMPAT@%$LIBCOMPAT%g
|
---|
7188 | s%@LIBCRYPT@%$LIBCRYPT%g
|
---|
7189 | s%@LIBSOCKET@%$LIBSOCKET%g
|
---|
7190 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
|
---|
7191 | s%@LIBUCB@%$LIBUCB%g
|
---|
7192 | s%@LIBDL@%$LIBDL%g
|
---|
7193 | s%@X_INCLUDES@%$X_INCLUDES%g
|
---|
7194 | s%@X_LDFLAGS@%$X_LDFLAGS%g
|
---|
7195 | s%@x_libraries@%$x_libraries%g
|
---|
7196 | s%@x_includes@%$x_includes%g
|
---|
7197 | s%@LIBSM@%$LIBSM%g
|
---|
7198 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g
|
---|
7199 | s%@LIB_X11@%$LIB_X11%g
|
---|
7200 | s%@USER_INCLUDES@%$USER_INCLUDES%g
|
---|
7201 | s%@USER_LDFLAGS@%$USER_LDFLAGS%g
|
---|
7202 | s%@LIBZ@%$LIBZ%g
|
---|
7203 | s%@LIBPNG@%$LIBPNG%g
|
---|
7204 | s%@LIBJPEG@%$LIBJPEG%g
|
---|
7205 | s%@qt_libraries@%$qt_libraries%g
|
---|
7206 | s%@qt_includes@%$qt_includes%g
|
---|
7207 | s%@QT_INCLUDES@%$QT_INCLUDES%g
|
---|
7208 | s%@QT_LDFLAGS@%$QT_LDFLAGS%g
|
---|
7209 | s%@MOC@%$MOC%g
|
---|
7210 | s%@UIC@%$UIC%g
|
---|
7211 | s%@LIB_QT@%$LIB_QT%g
|
---|
7212 | s%@KDE_EXTRA_RPATH@%$KDE_EXTRA_RPATH%g
|
---|
7213 | s%@KDE_RPATH@%$KDE_RPATH%g
|
---|
7214 | s%@kde_libraries@%$kde_libraries%g
|
---|
7215 | s%@kde_includes@%$kde_includes%g
|
---|
7216 | s%@KDE_LDFLAGS@%$KDE_LDFLAGS%g
|
---|
7217 | s%@KDE_INCLUDES@%$KDE_INCLUDES%g
|
---|
7218 | s%@all_includes@%$all_includes%g
|
---|
7219 | s%@all_libraries@%$all_libraries%g
|
---|
7220 | s%@AUTODIRS@%$AUTODIRS%g
|
---|
7221 | s%@DCOPIDL@%$DCOPIDL%g
|
---|
7222 | s%@DCOPIDL2CPP@%$DCOPIDL2CPP%g
|
---|
7223 | s%@DCOP_DEPENDENCIES@%$DCOP_DEPENDENCIES%g
|
---|
7224 | s%@MCOPIDL@%$MCOPIDL%g
|
---|
7225 | s%@KDB2HTML@%$KDB2HTML%g
|
---|
7226 | s%@ARTSCCONFIG@%$ARTSCCONFIG%g
|
---|
7227 | s%@KDECONFIG@%$KDECONFIG%g
|
---|
7228 | s%@kde_libs_prefix@%$kde_libs_prefix%g
|
---|
7229 | s%@kde_libs_htmldir@%$kde_libs_htmldir%g
|
---|
7230 | s%@kde_htmldir@%$kde_htmldir%g
|
---|
7231 | s%@kde_appsdir@%$kde_appsdir%g
|
---|
7232 | s%@kde_icondir@%$kde_icondir%g
|
---|
7233 | s%@kde_sounddir@%$kde_sounddir%g
|
---|
7234 | s%@kde_datadir@%$kde_datadir%g
|
---|
7235 | s%@kde_locale@%$kde_locale%g
|
---|
7236 | s%@kde_confdir@%$kde_confdir%g
|
---|
7237 | s%@kde_mimedir@%$kde_mimedir%g
|
---|
7238 | s%@kde_wallpaperdir@%$kde_wallpaperdir%g
|
---|
7239 | s%@kde_bindir@%$kde_bindir%g
|
---|
7240 | s%@kde_templatesdir@%$kde_templatesdir%g
|
---|
7241 | s%@kde_servicesdir@%$kde_servicesdir%g
|
---|
7242 | s%@kde_servicetypesdir@%$kde_servicetypesdir%g
|
---|
7243 | s%@kde_moduledir@%$kde_moduledir%g
|
---|
7244 | s%@LIB_KDECORE@%$LIB_KDECORE%g
|
---|
7245 | s%@LIB_KDEUI@%$LIB_KDEUI%g
|
---|
7246 | s%@LIB_KFORMULA@%$LIB_KFORMULA%g
|
---|
7247 | s%@LIB_KIO@%$LIB_KIO%g
|
---|
7248 | s%@LIB_KSYCOCA@%$LIB_KSYCOCA%g
|
---|
7249 | s%@LIB_SMB@%$LIB_SMB%g
|
---|
7250 | s%@LIB_KFILE@%$LIB_KFILE%g
|
---|
7251 | s%@LIB_KAB@%$LIB_KAB%g
|
---|
7252 | s%@LIB_KHTML@%$LIB_KHTML%g
|
---|
7253 | s%@LIB_KSPELL@%$LIB_KSPELL%g
|
---|
7254 | s%@LIB_KPARTS@%$LIB_KPARTS%g
|
---|
7255 | s%@LIB_KWRITE@%$LIB_KWRITE%g
|
---|
7256 | s%@LIB_KFM@%$LIB_KFM%g
|
---|
7257 | s%@TOPSUBDIRS@%$TOPSUBDIRS%g
|
---|
7258 |
|
---|
7259 | CEOF
|
---|
7260 | EOF
|
---|
7261 |
|
---|
7262 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7263 |
|
---|
7264 | # Split the substitutions into bite-sized pieces for seds with
|
---|
7265 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
7266 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
---|
7267 | ac_file=1 # Number of current file.
|
---|
7268 | ac_beg=1 # First line for current file.
|
---|
7269 | ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
---|
7270 | ac_more_lines=:
|
---|
7271 | ac_sed_cmds=""
|
---|
7272 | while $ac_more_lines; do
|
---|
7273 | if test $ac_beg -gt 1; then
|
---|
7274 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7275 | else
|
---|
7276 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
---|
7277 | fi
|
---|
7278 | if test ! -s conftest.s$ac_file; then
|
---|
7279 | ac_more_lines=false
|
---|
7280 | rm -f conftest.s$ac_file
|
---|
7281 | else
|
---|
7282 | if test -z "$ac_sed_cmds"; then
|
---|
7283 | ac_sed_cmds="sed -f conftest.s$ac_file"
|
---|
7284 | else
|
---|
7285 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
---|
7286 | fi
|
---|
7287 | ac_file=`expr $ac_file + 1`
|
---|
7288 | ac_beg=$ac_end
|
---|
7289 | ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
---|
7290 | fi
|
---|
7291 | done
|
---|
7292 | if test -z "$ac_sed_cmds"; then
|
---|
7293 | ac_sed_cmds=cat
|
---|
7294 | fi
|
---|
7295 | EOF
|
---|
7296 |
|
---|
7297 | cat >> $CONFIG_STATUS <<EOF
|
---|
7298 |
|
---|
7299 | CONFIG_FILES=\${CONFIG_FILES-"\
|
---|
7300 | ./Makefile \
|
---|
7301 | activemirrorcontrol/Makefile \
|
---|
7302 | doc/Makefile \
|
---|
7303 | doc/en/Makefile \
|
---|
7304 | po/Makefile \
|
---|
7305 | "}
|
---|
7306 | EOF
|
---|
7307 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7308 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
---|
7309 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7310 | case "$ac_file" in
|
---|
7311 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7312 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7313 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7314 | esac
|
---|
7315 |
|
---|
7316 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
---|
7317 |
|
---|
7318 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7319 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7320 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7321 | # The file is in a subdirectory.
|
---|
7322 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7323 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
---|
7324 | # A "../" for each directory in $ac_dir_suffix.
|
---|
7325 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
---|
7326 | else
|
---|
7327 | ac_dir_suffix= ac_dots=
|
---|
7328 | fi
|
---|
7329 |
|
---|
7330 | case "$ac_given_srcdir" in
|
---|
7331 | .) srcdir=.
|
---|
7332 | if test -z "$ac_dots"; then top_srcdir=.
|
---|
7333 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
---|
7334 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
---|
7335 | *) # Relative path.
|
---|
7336 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
---|
7337 | top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
---|
7338 | esac
|
---|
7339 |
|
---|
7340 | case "$ac_given_INSTALL" in
|
---|
7341 | [/$]*) INSTALL="$ac_given_INSTALL" ;;
|
---|
7342 | "") ;;
|
---|
7343 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
---|
7344 | esac
|
---|
7345 |
|
---|
7346 | echo creating "$ac_file"
|
---|
7347 | rm -f "$ac_file"
|
---|
7348 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
---|
7349 | case "$ac_file" in
|
---|
7350 | *Makefile*) ac_comsub="1i\\
|
---|
7351 | # $configure_input" ;;
|
---|
7352 | *) ac_comsub= ;;
|
---|
7353 | esac
|
---|
7354 |
|
---|
7355 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7356 | sed -e "$ac_comsub
|
---|
7357 | s%@configure_input@%$configure_input%g
|
---|
7358 | s%@srcdir@%$srcdir%g
|
---|
7359 | s%@top_srcdir@%$top_srcdir%g
|
---|
7360 | s%@INSTALL@%$INSTALL%g
|
---|
7361 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
---|
7362 | fi; done
|
---|
7363 | rm -f conftest.s*
|
---|
7364 |
|
---|
7365 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
7366 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
7367 | #
|
---|
7368 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
7369 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
7370 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
|
---|
7371 | ac_dC='\3'
|
---|
7372 | ac_dD='%g'
|
---|
7373 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
|
---|
7374 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7375 | ac_uB='\([ ]\)%\1#\2define\3'
|
---|
7376 | ac_uC=' '
|
---|
7377 | ac_uD='\4%g'
|
---|
7378 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
7379 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
7380 | ac_eB='$%\1#\2define\3'
|
---|
7381 | ac_eC=' '
|
---|
7382 | ac_eD='%g'
|
---|
7383 |
|
---|
7384 | if test "${CONFIG_HEADERS+set}" != set; then
|
---|
7385 | EOF
|
---|
7386 | cat >> $CONFIG_STATUS <<EOF
|
---|
7387 | CONFIG_HEADERS="config.h"
|
---|
7388 | EOF
|
---|
7389 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7390 | fi
|
---|
7391 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
|
---|
7392 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
7393 | case "$ac_file" in
|
---|
7394 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
---|
7395 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
---|
7396 | *) ac_file_in="${ac_file}.in" ;;
|
---|
7397 | esac
|
---|
7398 |
|
---|
7399 | echo creating $ac_file
|
---|
7400 |
|
---|
7401 | rm -f conftest.frag conftest.in conftest.out
|
---|
7402 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
---|
7403 | cat $ac_file_inputs > conftest.in
|
---|
7404 |
|
---|
7405 | EOF
|
---|
7406 |
|
---|
7407 | # Transform confdefs.h into a sed script conftest.vals that substitutes
|
---|
7408 | # the proper values into config.h.in to produce config.h. And first:
|
---|
7409 | # Protect against being on the right side of a sed subst in config.status.
|
---|
7410 | # Protect against being in an unquoted here document in config.status.
|
---|
7411 | rm -f conftest.vals
|
---|
7412 | cat > conftest.hdr <<\EOF
|
---|
7413 | s/[\\&%]/\\&/g
|
---|
7414 | s%[\\$`]%\\&%g
|
---|
7415 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
|
---|
7416 | s%ac_d%ac_u%gp
|
---|
7417 | s%ac_u%ac_e%gp
|
---|
7418 | EOF
|
---|
7419 | sed -n -f conftest.hdr confdefs.h > conftest.vals
|
---|
7420 | rm -f conftest.hdr
|
---|
7421 |
|
---|
7422 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
7423 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7424 | # on some systems where configure will not decide to define it.
|
---|
7425 | cat >> conftest.vals <<\EOF
|
---|
7426 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
|
---|
7427 | EOF
|
---|
7428 |
|
---|
7429 | # Break up conftest.vals because some shells have a limit on
|
---|
7430 | # the size of here documents, and old seds have small limits too.
|
---|
7431 |
|
---|
7432 | rm -f conftest.tail
|
---|
7433 | while :
|
---|
7434 | do
|
---|
7435 | ac_lines=`grep -c . conftest.vals`
|
---|
7436 | # grep -c gives empty output for an empty file on some AIX systems.
|
---|
7437 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
|
---|
7438 | # Write a limited-size here document to conftest.frag.
|
---|
7439 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
|
---|
7440 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
|
---|
7441 | echo 'CEOF
|
---|
7442 | sed -f conftest.frag conftest.in > conftest.out
|
---|
7443 | rm -f conftest.in
|
---|
7444 | mv conftest.out conftest.in
|
---|
7445 | ' >> $CONFIG_STATUS
|
---|
7446 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
|
---|
7447 | rm -f conftest.vals
|
---|
7448 | mv conftest.tail conftest.vals
|
---|
7449 | done
|
---|
7450 | rm -f conftest.vals
|
---|
7451 |
|
---|
7452 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7453 | rm -f conftest.frag conftest.h
|
---|
7454 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
|
---|
7455 | cat conftest.in >> conftest.h
|
---|
7456 | rm -f conftest.in
|
---|
7457 | if cmp -s $ac_file conftest.h 2>/dev/null; then
|
---|
7458 | echo "$ac_file is unchanged"
|
---|
7459 | rm -f conftest.h
|
---|
7460 | else
|
---|
7461 | # Remove last slash and all that follows it. Not all systems have dirname.
|
---|
7462 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
---|
7463 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
---|
7464 | # The file is in a subdirectory.
|
---|
7465 | test ! -d "$ac_dir" && mkdir "$ac_dir"
|
---|
7466 | fi
|
---|
7467 | rm -f $ac_file
|
---|
7468 | mv conftest.h $ac_file
|
---|
7469 | fi
|
---|
7470 | fi; done
|
---|
7471 |
|
---|
7472 | EOF
|
---|
7473 | cat >> $CONFIG_STATUS <<EOF
|
---|
7474 |
|
---|
7475 |
|
---|
7476 | EOF
|
---|
7477 | cat >> $CONFIG_STATUS <<\EOF
|
---|
7478 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
|
---|
7479 |
|
---|
7480 | exit 0
|
---|
7481 | EOF
|
---|
7482 | if test "x$with_fast_perl" = "xyes" ; then
|
---|
7483 | perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS || mv $CONFIG_STATUS.bak $CONFIG_STATUS;
|
---|
7484 | rm -f $CONFIG_STATUS.bak;
|
---|
7485 | fi
|
---|
7486 | chmod +x $CONFIG_STATUS
|
---|
7487 | rm -fr confdefs* $ac_clean_files
|
---|
7488 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
---|
7489 |
|
---|