source: trunk/MagicSoft/AMC/activemirrorcontrol/configure@ 6903

Last change on this file since 6903 was 3401, checked in by merck, 21 years ago
nitial checkin of AMC project
  • Property svn:executable set to *
File size: 207.6 KB
Line 
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=${KDEDIR:-/usr/local/kde}
15ac_help="$ac_help
16 --disable-fast-perl disable fast Makefile generation (needs perl)"
17ac_help="$ac_help
18 --enable-debug enables debug symbols [default=no]"
19ac_help="$ac_help
20 --disable-debug disables debug output and debug symbols [default=no]"
21ac_help="$ac_help
22 --enable-strict compiles with strict compiler options (may not work!)"
23ac_help="$ac_help
24 --enable-profile creates profiling infos [default=no]"
25ac_help="$ac_help
26 --enable-final build size optimized apps (experimental - needs lots of memory)"
27ac_help="$ac_help
28 --disable-closure don't delay template instantiation"
29ac_help="$ac_help
30 --enable-shared[=PKGS] build shared libraries [default=yes]"
31ac_help="$ac_help
32 --enable-static[=PKGS] build static libraries [default=no]"
33ac_help="$ac_help
34 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
35ac_help="$ac_help
36 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
37ac_help="$ac_help
38 --disable-libtool-lock avoid locking (might break parallel builds)"
39ac_help="$ac_help
40 --with-pic try to use only PIC/non-PIC objects [default=use both]"
41ac_help="$ac_help
42 --enable-mt link to threaded Qt (experimental)"
43ac_help="$ac_help
44 --with-extra-includes=DIR
45 adds non standard include paths"
46ac_help="$ac_help
47 --with-extra-libs=DIR adds non standard library paths"
48ac_help="$ac_help
49 --with-qt-dir=DIR where the root of Qt is installed "
50ac_help="$ac_help
51 --with-qt-includes=DIR where the Qt includes are. "
52ac_help="$ac_help
53 --with-qt-libraries=DIR where the Qt library is installed."
54ac_help="$ac_help
55 --disable-rpath do not use the rpath feature of ld"
56ac_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.
62build=NONE
63cache_file=./config.cache
64exec_prefix=NONE
65host=NONE
66no_create=
67nonopt=NONE
68no_recursion=
69prefix=NONE
70program_prefix=NONE
71program_suffix=NONE
72program_transform_name=s,x,x,
73silent=
74site=
75srcdir=
76target=NONE
77verbose=
78x_includes=NONE
79x_libraries=NONE
80bindir='${exec_prefix}/bin'
81sbindir='${exec_prefix}/sbin'
82libexecdir='${exec_prefix}/libexec'
83datadir='${prefix}/share'
84sysconfdir='${prefix}/etc'
85sharedstatedir='${prefix}/com'
86localstatedir='${prefix}/var'
87libdir='${exec_prefix}/lib'
88includedir='${prefix}/include'
89oldincludedir='/usr/include'
90infodir='${prefix}/info'
91mandir='${prefix}/man'
92
93# Initialize some other variables.
94subdirs=
95MFLAGS= MAKEFLAGS=
96SHELL=${CONFIG_SHELL-/bin/sh}
97# Maximum number of lines to put in a shell here document.
98ac_max_here_lines=12
99
100ac_prev=
101for ac_option
102do
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
182Usage: configure [options] [host]
183Options: [defaults in brackets after descriptions]
184Configuration:
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
190Directory 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
214EOF
215 cat << EOF
216Host 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]
220Features 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
227EOF
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
437done
438
439if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441fi
442
443trap '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
453if test "$silent" = yes; then
454 exec 6>/dev/null
455else
456 exec 6>&1
457fi
458exec 5>./config.log
459
460echo "\
461This file contains any messages produced by compilers while
462running 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.
467ac_configure_args=
468for ac_arg
469do
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
479done
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.
486if test "${LANG+set}" = set; then LANG=C; export LANG; fi
487if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489if 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.
492rm -rf conftest* confdefs.h
493# AIX cpp loses on an empty file, so make sure it contains at least a newline.
494echo > 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.
498ac_unique_file=acinclude.m4
499
500# Find the source files, if location was not specified.
501if 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
511else
512 ac_srcdir_defaulted=no
513fi
514if 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
520fi
521srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522
523# Prefer explicitly selected file to automatically selected ones.
524if 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
530fi
531for 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
536done
537
538if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
540 . $cache_file
541else
542 echo "creating cache $cache_file"
543 > $cache_file
544fi
545
546ac_ext=c
547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548ac_cpp='$CPP $CPPFLAGS'
549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551cross_compiling=$ac_cv_prog_cc_cross
552
553ac_exeext=
554ac_objext=o
555if (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
563else
564 ac_n= ac_c='\c' ac_t=
565fi
566
567
568ac_aux_dir=
569for 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
579done
580if 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; }
582fi
583ac_config_guess=$ac_aux_dir/config.guess
584ac_config_sub=$ac_aux_dir/config.sub
585ac_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.
604case $host---$target---$nonopt in
605NONE---*---* | *---NONE---* | *---*---NONE) ;;
606*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
607esac
608
609
610# Make sure we can run config.sub.
611if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613fi
614
615echo $ac_n "checking host system type""... $ac_c" 1>&6
616echo "configure:617: checking host system type" >&5
617
618host_alias=$host
619case "$host_alias" in
620NONE)
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 ;;
628esac
629
630host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634echo "$ac_t""$host" 1>&6
635
636echo $ac_n "checking target system type""... $ac_c" 1>&6
637echo "configure:638: checking target system type" >&5
638
639target_alias=$target
640case "$target_alias" in
641NONE)
642 case $nonopt in
643 NONE) target_alias=$host_alias ;;
644 *) target_alias=$nonopt ;;
645 esac ;;
646esac
647
648target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
649target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652echo "$ac_t""$target" 1>&6
653
654echo $ac_n "checking build system type""... $ac_c" 1>&6
655echo "configure:656: checking build system type" >&5
656
657build_alias=$build
658case "$build_alias" in
659NONE)
660 case $nonopt in
661 NONE) build_alias=$host_alias ;;
662 *) build_alias=$nonopt ;;
663 esac ;;
664esac
665
666build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
667build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670echo "$ac_t""$build" 1>&6
671
672test "$host_alias" != "$target_alias" &&
673 test "$program_prefix$program_suffix$program_transform_name" = \
674 NONENONEs,x,x, &&
675 program_prefix=${target_alias}-
676
677if test "$program_transform_name" = s,x,x,; then
678 program_transform_name=
679else
680 # Double any \ or $. echo might interpret backslashes.
681 cat <<\EOF_SED > conftestsed
682s,\\,\\\\,g; s,\$,$$,g
683EOF_SED
684 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
685 rm -f conftestsed
686fi
687test "$program_prefix" != NONE &&
688 program_transform_name="s,^,${program_prefix},; $program_transform_name"
689# Use a double $ so make ignores it.
690test "$program_suffix" != NONE &&
691 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
692
693# sed with no file args requires a program.
694test "$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.
713echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
714echo "configure:715: checking for a BSD compatible install" >&5
715if test -z "$INSTALL"; then
716if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
718else
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
745fi
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
755fi
756echo "$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.
760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
761
762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
763
764test -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
771echo "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
793echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
794echo "configure:795: checking whether build environment is sane" >&5
795# Just in case
796sleep 1
797echo 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).
803if (
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
817alias in your environment" 1>&2; exit 1; }
818 fi
819
820 test "$2" = conftestfile
821 )
822then
823 # Ok.
824 :
825else
826 { echo "configure: error: newly created file is older than distributed files!
827Check your system clock" 1>&2; exit 1; }
828fi
829rm -f conftest*
830echo "$ac_t""yes" 1>&6
831echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
832echo "configure:833: checking whether ${MAKE-make} sets \${MAKE}" >&5
833set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
834if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836else
837 cat > conftestmake <<\EOF
838all:
839 @echo 'ac_maketemp="${MAKE}"'
840EOF
841# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
842eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
843if test -n "$ac_maketemp"; then
844 eval ac_cv_prog_make_${ac_make}_set=yes
845else
846 eval ac_cv_prog_make_${ac_make}_set=no
847fi
848rm -f conftestmake
849fi
850if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
851 echo "$ac_t""yes" 1>&6
852 SET_MAKE=
853else
854 echo "$ac_t""no" 1>&6
855 SET_MAKE="MAKE=${MAKE-make}"
856fi
857
858
859PACKAGE=activemirrorcontrol
860
861VERSION=0.1
862
863if 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; }
865fi
866cat >> confdefs.h <<EOF
867#define PACKAGE "$PACKAGE"
868EOF
869
870cat >> confdefs.h <<EOF
871#define VERSION "$VERSION"
872EOF
873
874
875
876missing_dir=`cd $ac_aux_dir && pwd`
877echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
878echo "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.
882if (aclocal --version) < /dev/null > /dev/null 2>&1; then
883 ACLOCAL=aclocal
884 echo "$ac_t""found" 1>&6
885else
886 ACLOCAL="$missing_dir/missing aclocal"
887 echo "$ac_t""missing" 1>&6
888fi
889
890echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
891echo "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.
895if (autoconf --version) < /dev/null > /dev/null 2>&1; then
896 AUTOCONF=autoconf
897 echo "$ac_t""found" 1>&6
898else
899 AUTOCONF="$missing_dir/missing autoconf"
900 echo "$ac_t""missing" 1>&6
901fi
902
903echo $ac_n "checking for working automake""... $ac_c" 1>&6
904echo "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.
908if (automake --version) < /dev/null > /dev/null 2>&1; then
909 AUTOMAKE=automake
910 echo "$ac_t""found" 1>&6
911else
912 AUTOMAKE="$missing_dir/missing automake"
913 echo "$ac_t""missing" 1>&6
914fi
915
916echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
917echo "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.
921if (autoheader --version) < /dev/null > /dev/null 2>&1; then
922 AUTOHEADER=autoheader
923 echo "$ac_t""found" 1>&6
924else
925 AUTOHEADER="$missing_dir/missing autoheader"
926 echo "$ac_t""missing" 1>&6
927fi
928
929echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
930echo "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.
934if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
935 MAKEINFO=makeinfo
936 echo "$ac_t""found" 1>&6
937else
938 MAKEINFO="$missing_dir/missing makeinfo"
939 echo "$ac_t""missing" 1>&6
940fi
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.
953if test "${enable_fast_perl+set}" = set; then
954 enableval="$enable_fast_perl"
955 with_fast_perl=$enableval
956else
957 with_fast_perl=yes
958fi
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.
986if 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
997else
998 kde_use_debug_code="no"
999 kde_use_debug_define=no
1000
1001fi
1002
1003 # Check whether --enable-dummyoption or --disable-dummyoption was given.
1004if test "${enable_dummyoption+set}" = set; then
1005 enableval="$enable_dummyoption"
1006 :
1007fi
1008
1009
1010 # Check whether --enable-strict or --disable-strict was given.
1011if 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
1020else
1021 kde_use_strict_options="no"
1022fi
1023
1024
1025 # Check whether --enable-profile or --disable-profile was given.
1026if test "${enable_profile+set}" = set; then
1027 enableval="$enable_profile"
1028 kde_use_profiling=$enableval
1029else
1030 kde_use_profiling="no"
1031
1032fi
1033
1034
1035 echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6
1036echo "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.
1040set dummy gcc; ac_word=$2
1041echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042echo "configure:1043: checking for $ac_word" >&5
1043if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045else
1046 if test -n "$CC"; then
1047 ac_cv_prog_CC="$CC" # Let the user override the test.
1048else
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"
1059fi
1060fi
1061CC="$ac_cv_prog_CC"
1062if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1064else
1065 echo "$ac_t""no" 1>&6
1066fi
1067 fi
1068 if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.
1069set dummy cc; ac_word=$2
1070echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071echo "configure:1072: checking for $ac_word" >&5
1072if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074else
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC="$CC" # Let the user override the test.
1077else
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"
1093if 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
1106fi
1107fi
1108fi
1109CC="$ac_cv_prog_CC"
1110if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1112else
1113 echo "$ac_t""no" 1>&6
1114fi
1115 fi
1116 if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args.
1117set dummy xlc; ac_word=$2
1118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119echo "configure:1120: checking for $ac_word" >&5
1120if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC="$CC" # Let the user override the test.
1125else
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"
1136fi
1137fi
1138CC="$ac_cv_prog_CC"
1139if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1141else
1142 echo "$ac_t""no" 1>&6
1143fi
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
1148echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1149
1150ac_ext=c
1151# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1152ac_cpp='$CPP $CPPFLAGS'
1153ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1154ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1155cross_compiling=$ac_cv_prog_cc_cross
1156
1157cat > conftest.$ac_ext << EOF
1158
1159#line 1160 "configure"
1160#include "confdefs.h"
1161
1162main(){return(0);}
1163EOF
1164if { (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
1172else
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1175 ac_cv_prog_cc_works=no
1176fi
1177rm -fr conftest*
1178ac_ext=c
1179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180ac_cpp='$CPP $CPPFLAGS'
1181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183cross_compiling=$ac_cv_prog_cc_cross
1184
1185echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1186if 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; }
1188fi
1189echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1190echo "configure:1191: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1191echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1192cross_compiling=$ac_cv_prog_cc_cross
1193
1194 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1195echo "configure:1196: checking whether we are using GNU C" >&5
1196if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198else
1199 cat > conftest.c <<EOF
1200#ifdef __GNUC__
1201 yes;
1202#endif
1203EOF
1204if { 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
1206else
1207 ac_cv_prog_gcc=no
1208fi
1209fi
1210
1211echo "$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
1225echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1228else
1229 echo 'void f(){}' > conftest.c
1230if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1231 ac_cv_prog_cc_g=yes
1232else
1233 ac_cv_prog_cc_g=no
1234fi
1235rm -f conftest*
1236
1237fi
1238
1239echo "$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
1261echo "configure:1262: checking whether ${CC-cc} accepts -pg" >&5
1262if eval "test \"`echo '$''{'kde_cv_prog_cc_pg'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1264else
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
1273fi
1274
1275echo "$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
1307echo "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
1315else
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
1326EOF
1327ac_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; }
1329ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1330if test -z "$ac_err"; then
1331 :
1332else
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
1343EOF
1344ac_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; }
1346ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1347if test -z "$ac_err"; then
1348 :
1349else
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
1355fi
1356rm -f conftest*
1357fi
1358rm -f conftest*
1359 ac_cv_prog_CPP="$CPP"
1360fi
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
1369echo "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.
1373set dummy g++; ac_word=$2
1374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375echo "configure:1376: checking for $ac_word" >&5
1376if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378else
1379 if test -n "$CXX"; then
1380 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1381else
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"
1392fi
1393fi
1394CXX="$ac_cv_prog_CXX"
1395if test -n "$CXX"; then
1396 echo "$ac_t""$CXX" 1>&6
1397else
1398 echo "$ac_t""no" 1>&6
1399fi
1400 fi
1401 if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
1402set dummy CC; ac_word=$2
1403echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404echo "configure:1405: checking for $ac_word" >&5
1405if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1407else
1408 if test -n "$CXX"; then
1409 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1410else
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"
1421fi
1422fi
1423CXX="$ac_cv_prog_CXX"
1424if test -n "$CXX"; then
1425 echo "$ac_t""$CXX" 1>&6
1426else
1427 echo "$ac_t""no" 1>&6
1428fi
1429 fi
1430 if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
1431set dummy xlC; ac_word=$2
1432echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1433echo "configure:1434: checking for $ac_word" >&5
1434if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1436else
1437 if test -n "$CXX"; then
1438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1439else
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"
1450fi
1451fi
1452CXX="$ac_cv_prog_CXX"
1453if test -n "$CXX"; then
1454 echo "$ac_t""$CXX" 1>&6
1455else
1456 echo "$ac_t""no" 1>&6
1457fi
1458 fi
1459 if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
1460set dummy DCC; ac_word=$2
1461echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1462echo "configure:1463: checking for $ac_word" >&5
1463if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1465else
1466 if test -n "$CXX"; then
1467 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1468else
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"
1479fi
1480fi
1481CXX="$ac_cv_prog_CXX"
1482if test -n "$CXX"; then
1483 echo "$ac_t""$CXX" 1>&6
1484else
1485 echo "$ac_t""no" 1>&6
1486fi
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
1491echo "configure:1492: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1492
1493
1494ac_ext=C
1495# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1496ac_cpp='$CXXCPP $CPPFLAGS'
1497ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1498ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1499cross_compiling=$ac_cv_prog_cxx_cross
1500
1501ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1502
1503
1504
1505cat > conftest.$ac_ext << EOF
1506
1507#line 1508 "configure"
1508#include "confdefs.h"
1509
1510int main(){return(0);}
1511EOF
1512if { (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
1520else
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1523 ac_cv_prog_cxx_works=no
1524fi
1525rm -fr conftest*
1526ac_ext=c
1527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1528ac_cpp='$CPP $CPPFLAGS'
1529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1531cross_compiling=$ac_cv_prog_cc_cross
1532
1533echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1534if 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; }
1536fi
1537echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1538echo "configure:1539: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1539echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1540cross_compiling=$ac_cv_prog_cxx_cross
1541
1542 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1543echo "configure:1544: checking whether we are using GNU C++" >&5
1544if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546else
1547 cat > conftest.C <<EOF
1548#ifdef __GNUC__
1549 yes;
1550#endif
1551EOF
1552if { 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
1554else
1555 ac_cv_prog_gxx=no
1556fi
1557fi
1558
1559echo "$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
1571echo "configure:1572: checking whether ${CXX-g++} accepts -g" >&5
1572if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1574else
1575 echo 'void f(){}' > conftest.cc
1576if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1577 ac_cv_prog_cxx_g=yes
1578else
1579 ac_cv_prog_cxx_g=no
1580fi
1581rm -f conftest*
1582
1583fi
1584
1585echo "$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
1604echo "configure:1605: checking whether ${CXX-g++} accepts -pg" >&5
1605if eval "test \"`echo '$''{'kde_cv_prog_cxx_pg'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1607else
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
1616fi
1617
1618echo "$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
1626echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6
1627echo "configure:1628: checking whether $CXX supports -fno-exceptions" >&5
1628kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`
1629if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631else
1632
1633echo 'int main() { return 0; }' >conftest.cc
1634eval "kde_cv_prog_cxx_$kde_cache=no"
1635if 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
1639fi
1640rm -f conftest*
1641
1642fi
1643
1644if 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
1650else
1651 echo "$ac_t""no" 1>&6
1652 :
1653
1654fi
1655
1656
1657
1658
1659
1660echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6
1661echo "configure:1662: checking whether $CXX supports -fno-check-new" >&5
1662kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`
1663if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665else
1666
1667echo 'int main() { return 0; }' >conftest.cc
1668eval "kde_cv_prog_cxx_$kde_cache=no"
1669if 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
1673fi
1674rm -f conftest*
1675
1676fi
1677
1678if 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
1684else
1685 echo "$ac_t""no" 1>&6
1686 :
1687
1688fi
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
1699echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6
1700echo "configure:1701: checking whether $CXX supports -Wno-long-long" >&5
1701kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`
1702if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704else
1705
1706echo 'int main() { return 0; }' >conftest.cc
1707eval "kde_cv_prog_cxx_$kde_cache=no"
1708if 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
1712fi
1713rm -f conftest*
1714
1715fi
1716
1717if 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
1723else
1724 echo "$ac_t""no" 1>&6
1725 :
1726
1727fi
1728
1729
1730
1731echo $ac_n "checking whether $CXX supports -Wnon-virtual-dtor""... $ac_c" 1>&6
1732echo "configure:1733: checking whether $CXX supports -Wnon-virtual-dtor" >&5
1733kde_cache=`echo Wnon-virtual-dtor | sed 'y%.=/+-%___p_%'`
1734if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736else
1737
1738echo 'int main() { return 0; }' >conftest.cc
1739eval "kde_cv_prog_cxx_$kde_cache=no"
1740if 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
1744fi
1745rm -f conftest*
1746
1747fi
1748
1749if 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
1755else
1756 echo "$ac_t""no" 1>&6
1757 :
1758
1759fi
1760
1761
1762
1763echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6
1764echo "configure:1765: checking whether $CXX supports -fno-builtin" >&5
1765kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`
1766if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768else
1769
1770echo 'int main() { return 0; }' >conftest.cc
1771eval "kde_cv_prog_cxx_$kde_cache=no"
1772if 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
1776fi
1777rm -f conftest*
1778
1779fi
1780
1781if 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
1787else
1788 echo "$ac_t""no" 1>&6
1789 :
1790
1791fi
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
1808echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6
1809echo "configure:1810: checking whether $CXX supports -fexceptions" >&5
1810kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`
1811if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1813else
1814
1815echo 'int main() { return 0; }' >conftest.cc
1816eval "kde_cv_prog_cxx_$kde_cache=no"
1817if 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
1821fi
1822rm -f conftest*
1823
1824fi
1825
1826if 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
1832else
1833 echo "$ac_t""no" 1>&6
1834 :
1835 USE_EXCEPTIONS=
1836
1837fi
1838
1839
1840
1841
1842
1843echo $ac_n "checking whether $CXX supports -frtti""... $ac_c" 1>&6
1844echo "configure:1845: checking whether $CXX supports -frtti" >&5
1845kde_cache=`echo frtti | sed 'y%.=/+-%___p_%'`
1846if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848else
1849
1850echo 'int main() { return 0; }' >conftest.cc
1851eval "kde_cv_prog_cxx_$kde_cache=no"
1852if 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
1856fi
1857rm -f conftest*
1858
1859fi
1860
1861if 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
1867else
1868 echo "$ac_t""no" 1>&6
1869 :
1870 USE_RTTI=
1871
1872fi
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
1933echo "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
1937else
1938
1939 ac_ext=C
1940# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1941ac_cpp='$CXXCPP $CPPFLAGS'
1942ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1943ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1944cross_compiling=$ac_cv_prog_cxx_cross
1945
1946ac_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>
1953EOF
1954ac_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; }
1956ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1957if test -z "$ac_err"; then
1958 :
1959else
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
1965fi
1966rm -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.
1970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1972ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1973cross_compiling=$ac_cv_prog_cc_cross
1974
1975fi
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.
2001if test "${enable_final+set}" = set; then
2002 enableval="$enable_final"
2003 kde_use_final=$enableval
2004else
2005 kde_use_final=no
2006fi
2007
2008
2009
2010 REPO=""
2011 NOREPO=""
2012
2013
2014
2015echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
2016echo "configure:2017: checking whether $CXX supports -frepo" >&5
2017kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`
2018if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020else
2021
2022echo 'int main() { return 0; }' >conftest.cc
2023eval "kde_cv_prog_cxx_$kde_cache=no"
2024if 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
2028fi
2029rm -f conftest*
2030
2031fi
2032
2033if 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
2040else
2041 echo "$ac_t""no" 1>&6
2042 :
2043
2044fi
2045
2046
2047 if test -z "$REPO"; then
2048
2049
2050echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
2051echo "configure:2052: checking whether $CXX supports -instances=explicit" >&5
2052kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`
2053if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055else
2056
2057echo 'int main() { return 0; }' >conftest.cc
2058eval "kde_cv_prog_cxx_$kde_cache=no"
2059if 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
2063fi
2064rm -f conftest*
2065
2066fi
2067
2068if 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
2075else
2076 echo "$ac_t""no" 1>&6
2077 :
2078
2079fi
2080
2081 fi
2082
2083 if test -n "$REPO"; then
2084 cat >> confdefs.h <<EOF
2085#define HAVE_TEMPLATE_REPOSITORY 1
2086EOF
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.
2105if test "${enable_closure+set}" = set; then
2106 enableval="$enable_closure"
2107 kde_use_closure=$enableval
2108else
2109 kde_use_closure=yes
2110fi
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.
2131if test "${enable_shared+set}" = set; then
2132 enableval="$enable_shared"
2133 p=${PACKAGE-default}
2134case "$enableval" in
2135yes) enable_shared=yes ;;
2136no) 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 ;;
2148esac
2149else
2150 enable_shared=yes
2151fi
2152
2153# Check whether --enable-static or --disable-static was given.
2154if test "${enable_static+set}" = set; then
2155 enableval="$enable_static"
2156 p=${PACKAGE-default}
2157case "$enableval" in
2158yes) enable_static=yes ;;
2159no) 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 ;;
2171esac
2172else
2173 enable_static=no
2174fi
2175
2176# Check whether --enable-fast-install or --disable-fast-install was given.
2177if test "${enable_fast_install+set}" = set; then
2178 enableval="$enable_fast_install"
2179 p=${PACKAGE-default}
2180case "$enableval" in
2181yes) enable_fast_install=yes ;;
2182no) 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 ;;
2194esac
2195else
2196 enable_fast_install=yes
2197fi
2198
2199# Check whether --with-gnu-ld or --without-gnu-ld was given.
2200if test "${with_gnu_ld+set}" = set; then
2201 withval="$with_gnu_ld"
2202 test "$withval" = no || with_gnu_ld=yes
2203else
2204 with_gnu_ld=no
2205fi
2206
2207ac_prog=ld
2208if 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
2211echo "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
2239elif test "$with_gnu_ld" = yes; then
2240 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2241echo "configure:2242: checking for GNU ld" >&5
2242else
2243 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2244echo "configure:2245: checking for non-GNU ld" >&5
2245fi
2246if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2248else
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"
2266else
2267 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2268fi
2269fi
2270
2271LD="$lt_cv_path_LD"
2272if test -n "$LD"; then
2273 echo "$ac_t""$LD" 1>&6
2274else
2275 echo "$ac_t""no" 1>&6
2276fi
2277test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2278echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2279echo "configure:2280: checking if the linker ($LD) is GNU ld" >&5
2280if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282else
2283 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2284if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2285 lt_cv_prog_gnu_ld=yes
2286else
2287 lt_cv_prog_gnu_ld=no
2288fi
2289fi
2290
2291echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2292with_gnu_ld=$lt_cv_prog_gnu_ld
2293
2294
2295echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2296echo "configure:2297: checking for $LD option to reload object files" >&5
2297if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299else
2300 lt_cv_ld_reload_flag='-r'
2301fi
2302
2303echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2304reload_flag=$lt_cv_ld_reload_flag
2305test -n "$reload_flag" && reload_flag=" $reload_flag"
2306
2307echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2308echo "configure:2309: checking for BSD-compatible nm" >&5
2309if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2311else
2312 if test -n "$NM"; then
2313 # Let the user override the test.
2314 lt_cv_path_NM="$NM"
2315else
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
2339fi
2340fi
2341
2342NM="$lt_cv_path_NM"
2343echo "$ac_t""$NM" 1>&6
2344
2345echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2346echo "configure:2347: checking whether ln -s works" >&5
2347if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350 rm -f conftestdata
2351if ln -s X conftestdata 2>/dev/null
2352then
2353 rm -f conftestdata
2354 ac_cv_prog_LN_S="ln -s"
2355else
2356 ac_cv_prog_LN_S=ln
2357fi
2358fi
2359LN_S="$ac_cv_prog_LN_S"
2360if test "$ac_cv_prog_LN_S" = "ln -s"; then
2361 echo "$ac_t""yes" 1>&6
2362else
2363 echo "$ac_t""no" 1>&6
2364fi
2365
2366echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2367echo "configure:2368: checking how to recognise dependant libraries" >&5
2368if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370else
2371 lt_cv_file_magic_cmd='$MAGIC_CMD'
2372lt_cv_file_magic_test_file=
2373lt_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
2385case "$host_os" in
2386aix4*)
2387 lt_cv_deplibs_check_method=pass_all
2388 ;;
2389
2390beos*)
2391 lt_cv_deplibs_check_method=pass_all
2392 ;;
2393
2394bsdi4*)
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
2400cygwin* | 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
2405darwin* | 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
2411freebsd* )
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
2427gnu*)
2428 lt_cv_deplibs_check_method=pass_all
2429 ;;
2430
2431hpux10.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
2438irix5* | 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.
2460linux-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
2471netbsd*)
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
2481openbsd* )
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
2495newsos6)
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
2501osf3* | 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
2508sco3.2v5*)
2509 lt_cv_deplibs_check_method=pass_all
2510 ;;
2511
2512solaris*)
2513 lt_cv_deplibs_check_method=pass_all
2514 lt_cv_file_magic_test_file=/lib/libc.so
2515 ;;
2516
2517sysv4 | 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 ;;
2528esac
2529
2530fi
2531
2532echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2533file_magic_cmd=$lt_cv_file_magic_cmd
2534deplibs_check_method=$lt_cv_deplibs_check_method
2535
2536if test $host != $build; then
2537 ac_tool_prefix=${host_alias}-
2538else
2539 ac_tool_prefix=
2540fi
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
2545case "$deplibs_check_method" in
2546file_magic*)
2547 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2548 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2549echo "configure:2550: checking for ${ac_tool_prefix}file" >&5
2550if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552else
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
2588EOF
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 ;;
2598esac
2599fi
2600
2601MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2602if test -n "$MAGIC_CMD"; then
2603 echo "$ac_t""$MAGIC_CMD" 1>&6
2604else
2605 echo "$ac_t""no" 1>&6
2606fi
2607
2608if 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
2611echo "configure:2612: checking for file" >&5
2612if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2614else
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
2650EOF
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 ;;
2660esac
2661fi
2662
2663MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2664if test -n "$MAGIC_CMD"; then
2665 echo "$ac_t""$MAGIC_CMD" 1>&6
2666else
2667 echo "$ac_t""no" 1>&6
2668fi
2669
2670 else
2671 MAGIC_CMD=:
2672 fi
2673fi
2674
2675 fi
2676 ;;
2677esac
2678
2679# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2682echo "configure:2683: checking for $ac_word" >&5
2683if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685else
2686 if test -n "$RANLIB"; then
2687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2688else
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"
2699fi
2700fi
2701RANLIB="$ac_cv_prog_RANLIB"
2702if test -n "$RANLIB"; then
2703 echo "$ac_t""$RANLIB" 1>&6
2704else
2705 echo "$ac_t""no" 1>&6
2706fi
2707
2708
2709if test -z "$ac_cv_prog_RANLIB"; then
2710if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "ranlib", so it can be a program name with args.
2712set dummy ranlib; ac_word=$2
2713echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2714echo "configure:2715: checking for $ac_word" >&5
2715if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2717else
2718 if test -n "$RANLIB"; then
2719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2720else
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=":"
2732fi
2733fi
2734RANLIB="$ac_cv_prog_RANLIB"
2735if test -n "$RANLIB"; then
2736 echo "$ac_t""$RANLIB" 1>&6
2737else
2738 echo "$ac_t""no" 1>&6
2739fi
2740
2741else
2742 RANLIB=":"
2743fi
2744fi
2745
2746# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2747set dummy ${ac_tool_prefix}strip; ac_word=$2
2748echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2749echo "configure:2750: checking for $ac_word" >&5
2750if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2752else
2753 if test -n "$STRIP"; then
2754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2755else
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"
2766fi
2767fi
2768STRIP="$ac_cv_prog_STRIP"
2769if test -n "$STRIP"; then
2770 echo "$ac_t""$STRIP" 1>&6
2771else
2772 echo "$ac_t""no" 1>&6
2773fi
2774
2775
2776if test -z "$ac_cv_prog_STRIP"; then
2777if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "strip", so it can be a program name with args.
2779set dummy strip; ac_word=$2
2780echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2781echo "configure:2782: checking for $ac_word" >&5
2782if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784else
2785 if test -n "$STRIP"; then
2786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2787else
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=":"
2799fi
2800fi
2801STRIP="$ac_cv_prog_STRIP"
2802if test -n "$STRIP"; then
2803 echo "$ac_t""$STRIP" 1>&6
2804else
2805 echo "$ac_t""no" 1>&6
2806fi
2807
2808else
2809 STRIP=":"
2810fi
2811fi
2812
2813
2814# Check for any special flags to pass to ltconfig.
2815libtool_flags="--cache-file=$cache_file"
2816test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2817test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2818test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2819test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2820test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2821libtool_flags="$libtool_flags --enable-dlopen"
2822
2823# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2824if test "${enable_libtool_lock+set}" = set; then
2825 enableval="$enable_libtool_lock"
2826 :
2827fi
2828
2829test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2830test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2831
2832# Check whether --with-pic or --without-pic was given.
2833if test "${with_pic+set}" = set; then
2834 withval="$with_pic"
2835 pic_mode="$withval"
2836else
2837 pic_mode=default
2838fi
2839
2840test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2841test 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.
2845case "$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
2870echo "configure:2871: checking whether the C compiler needs -belf" >&5
2871if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2873else
2874
2875 ac_ext=c
2876# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2879ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2880cross_compiling=$ac_cv_prog_cc_cross
2881
2882 cat > conftest.$ac_ext <<EOF
2883#line 2884 "configure"
2884#include "confdefs.h"
2885
2886int main() {
2887
2888; return 0; }
2889EOF
2890if { (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
2893else
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -rf conftest*
2897 lt_cv_cc_needs_belf=no
2898fi
2899rm -f conftest*
2900 ac_ext=c
2901# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2902ac_cpp='$CPP $CPPFLAGS'
2903ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2904ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2905cross_compiling=$ac_cv_prog_cc_cross
2906
2907fi
2908
2909echo "$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
2917esac
2918
2919
2920echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2921echo "configure:2922: checking for Cygwin environment" >&5
2922if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2924else
2925 cat > conftest.$ac_ext <<EOF
2926#line 2927 "configure"
2927#include "confdefs.h"
2928
2929int main() {
2930
2931#ifndef __CYGWIN__
2932#define __CYGWIN__ __CYGWIN32__
2933#endif
2934return __CYGWIN__;
2935; return 0; }
2936EOF
2937if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2938 rm -rf conftest*
2939 ac_cv_cygwin=yes
2940else
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 rm -rf conftest*
2944 ac_cv_cygwin=no
2945fi
2946rm -f conftest*
2947rm -f conftest*
2948fi
2949
2950echo "$ac_t""$ac_cv_cygwin" 1>&6
2951CYGWIN=
2952test "$ac_cv_cygwin" = yes && CYGWIN=yes
2953echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2954echo "configure:2955: checking for mingw32 environment" >&5
2955if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957else
2958 cat > conftest.$ac_ext <<EOF
2959#line 2960 "configure"
2960#include "confdefs.h"
2961
2962int main() {
2963return __MINGW32__;
2964; return 0; }
2965EOF
2966if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 rm -rf conftest*
2968 ac_cv_mingw32=yes
2969else
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 rm -rf conftest*
2973 ac_cv_mingw32=no
2974fi
2975rm -f conftest*
2976rm -f conftest*
2977fi
2978
2979echo "$ac_t""$ac_cv_mingw32" 1>&6
2980MINGW32=
2981test "$ac_cv_mingw32" = yes && MINGW32=yes
2982
2983# Save cache, so that ltconfig can load it
2984cat > 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#
2999EOF
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
3019if cmp -s $cache_file confcache; then
3020 :
3021else
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
3028fi
3029rm -f confcache
3030
3031
3032# Actually configure libtool. ac_aux_dir is where install-sh is found.
3033AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3034MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3035LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3036AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3037objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3038deplibs_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
3044if test -r "$cache_file"; then
3045 echo "loading cache $cache_file"
3046 . $cache_file
3047else
3048 echo "creating cache $cache_file"
3049 > $cache_file
3050fi
3051
3052
3053# This can be used to rebuild libtool when needed
3054LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3055
3056# Always use our own libtool.
3057LIBTOOL='$(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.
3061exec 5>>./config.log
3062
3063
3064
3065LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
3066lt_save_CC="$CC"
3067lt_save_CFLAGS="$CFLAGS"
3068AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
3069MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3070LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3071AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3072objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3073deplibs_check_method="$deplibs_check_method" \
3074file_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; }
3078CC="$lt_save_CC"
3079CFLAGS="$lt_save_CFLAGS"
3080
3081# Redirect the config.log output again, so that the ltconfig log is not
3082# clobbered by the next message.
3083exec 5>>./config.log
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093ac_ext=c
3094# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3097ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3098cross_compiling=$ac_cv_prog_cc_cross
3099
3100echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3101echo "configure:3102: checking for object suffix" >&5
3102if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3104else
3105 rm -f conftest*
3106echo 'int i = 1;' > conftest.$ac_ext
3107if { (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
3114else
3115 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3116fi
3117rm -f conftest*
3118fi
3119
3120echo "$ac_t""$ac_cv_objext" 1>&6
3121OBJEXT=$ac_cv_objext
3122ac_objext=$ac_cv_objext
3123
3124
3125
3126echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3127echo "configure:3128: checking for executable suffix" >&5
3128if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3130else
3131 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3132 ac_cv_exeext=.exe
3133else
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
3149fi
3150fi
3151
3152EXEEXT=""
3153test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3154echo "$ac_t""${ac_cv_exeext}" 1>&6
3155ac_exeext=$EXEEXT
3156
3157ac_ext=c
3158# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3161ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3162cross_compiling=$ac_cv_prog_cc_cross
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172LIBTOOL_SHELL="/bin/sh ./libtool"
3173# LIBTOOL="$LIBTOOL --silent"
3174KDE_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.
3181set dummy msgfmt; ac_word=$2
3182echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183echo "configure:3184: checking for $ac_word" >&5
3184if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3186else
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 ;;
3205esac
3206fi
3207MSGFMT="$ac_cv_path_MSGFMT"
3208if test -n "$MSGFMT"; then
3209 echo "$ac_t""$MSGFMT" 1>&6
3210else
3211 echo "$ac_t""no" 1>&6
3212fi
3213
3214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3215set dummy gmsgfmt; ac_word=$2
3216echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3217echo "configure:3218: checking for $ac_word" >&5
3218if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220else
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 ;;
3241esac
3242fi
3243GMSGFMT="$ac_cv_path_GMSGFMT"
3244if test -n "$GMSGFMT"; then
3245 echo "$ac_t""$GMSGFMT" 1>&6
3246else
3247 echo "$ac_t""no" 1>&6
3248fi
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.
3260set dummy xgettext; ac_word=$2
3261echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3262echo "configure:3263: checking for $ac_word" >&5
3263if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3265else
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 ;;
3284esac
3285fi
3286XGETTEXT="$ac_cv_path_XGETTEXT"
3287if test -n "$XGETTEXT"; then
3288 echo "$ac_t""$XGETTEXT" 1>&6
3289else
3290 echo "$ac_t""no" 1>&6
3291fi
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.
3309ac_cpp='$CPP $CPPFLAGS'
3310ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3311ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3312cross_compiling=$ac_cv_prog_cc_cross
3313
3314 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3315echo "configure:3316: checking for main in -lcompat" >&5
3316ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3319else
3320 ac_save_LIBS="$LIBS"
3321LIBS="-lcompat $LIBS"
3322cat > conftest.$ac_ext <<EOF
3323#line 3324 "configure"
3324#include "confdefs.h"
3325
3326int main() {
3327main()
3328; return 0; }
3329EOF
3330if { (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"
3333else
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"
3338fi
3339rm -f conftest*
3340LIBS="$ac_save_LIBS"
3341
3342fi
3343if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 LIBCOMPAT="-lcompat"
3346else
3347 echo "$ac_t""no" 1>&6
3348fi
3349
3350 kde_have_crypt=
3351 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3352echo "configure:3353: checking for crypt in -lcrypt" >&5
3353ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3356else
3357 ac_save_LIBS="$LIBS"
3358LIBS="-lcrypt $LIBS"
3359cat > 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. */
3365char crypt();
3366
3367int main() {
3368crypt()
3369; return 0; }
3370EOF
3371if { (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"
3374else
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"
3379fi
3380rm -f conftest*
3381LIBS="$ac_save_LIBS"
3382
3383fi
3384if 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
3387else
3388 echo "$ac_t""no" 1>&6
3389echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
3390echo "configure:3391: checking for crypt in -lc" >&5
3391ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
3392if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394else
3395 ac_save_LIBS="$LIBS"
3396LIBS="-lc $LIBS"
3397cat > 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. */
3403char crypt();
3404
3405int main() {
3406crypt()
3407; return 0; }
3408EOF
3409if { (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"
3412else
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"
3417fi
3418rm -f conftest*
3419LIBS="$ac_save_LIBS"
3420
3421fi
3422if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 kde_have_crypt=yes
3425else
3426 echo "$ac_t""no" 1>&6
3427
3428 echo "configure: warning: you have no crypt in either libcrypt or libc.
3429You should install libcrypt from another source or configure with PAM
3430support" 1>&2
3431 kde_have_crypt=no
3432
3433fi
3434
3435fi
3436
3437
3438 if test $kde_have_crypt = yes; then
3439 cat >> confdefs.h <<EOF
3440#define HAVE_CRYPT 1
3441EOF
3442
3443 fi
3444 echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6
3445echo "configure:3446: checking for the third argument of getsockname" >&5
3446if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3448else
3449
3450 ac_ext=C
3451# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3452ac_cpp='$CXXCPP $CPPFLAGS'
3453ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3454ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3455cross_compiling=$ac_cv_prog_cxx_cross
3456
3457ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3458
3459
3460cat > conftest.$ac_ext <<EOF
3461#line 3462 "configure"
3462#include "confdefs.h"
3463
3464#include <sys/types.h>
3465#include <sys/socket.h>
3466
3467int main() {
3468
3469socklen_t a=0;
3470getsockname(0,(struct sockaddr*)0, &a);
3471
3472; return 0; }
3473EOF
3474if { (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
3477else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_cv_ksize_t=
3482fi
3483rm -f conftest*
3484if test -z "$ac_cv_ksize_t"; then
3485ac_safe_cxxflags="$CXXFLAGS"
3486if test "$GCC" = "yes"; then
3487 CXXFLAGS="-Werror $CXXFLAGS"
3488fi
3489cat > conftest.$ac_ext <<EOF
3490#line 3491 "configure"
3491#include "confdefs.h"
3492
3493#include <sys/types.h>
3494#include <sys/socket.h>
3495
3496int main() {
3497
3498int a=0;
3499getsockname(0,(struct sockaddr*)0, &a);
3500
3501; return 0; }
3502EOF
3503if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3504 rm -rf conftest*
3505 ac_cv_ksize_t=int
3506else
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 rm -rf conftest*
3510 ac_cv_ksize_t=size_t
3511fi
3512rm -f conftest*
3513CXXFLAGS="$ac_safe_cxxflags"
3514fi
3515ac_ext=c
3516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3517ac_cpp='$CPP $CPPFLAGS'
3518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3520cross_compiling=$ac_cv_prog_cc_cross
3521
3522
3523fi
3524
3525
3526if test -z "$ac_cv_ksize_t"; then
3527 ac_cv_ksize_t=int
3528fi
3529
3530echo "$ac_t""$ac_cv_ksize_t" 1>&6
3531cat >> confdefs.h <<EOF
3532#define ksize_t $ac_cv_ksize_t
3533EOF
3534
3535
3536
3537 ac_ext=c
3538# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3539ac_cpp='$CPP $CPPFLAGS'
3540ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3541ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3542cross_compiling=$ac_cv_prog_cc_cross
3543
3544 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3545echo "configure:3546: checking for dnet_ntoa in -ldnet" >&5
3546ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3549else
3550 ac_save_LIBS="$LIBS"
3551LIBS="-ldnet $LIBS"
3552cat > 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. */
3558char dnet_ntoa();
3559
3560int main() {
3561dnet_ntoa()
3562; return 0; }
3563EOF
3564if { (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"
3567else
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"
3572fi
3573rm -f conftest*
3574LIBS="$ac_save_LIBS"
3575
3576fi
3577if 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"
3580else
3581 echo "$ac_t""no" 1>&6
3582fi
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
3586echo "configure:3587: checking for dnet_ntoa in -ldnet_stub" >&5
3587ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3590else
3591 ac_save_LIBS="$LIBS"
3592LIBS="-ldnet_stub $LIBS"
3593cat > 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. */
3599char dnet_ntoa();
3600
3601int main() {
3602dnet_ntoa()
3603; return 0; }
3604EOF
3605if { (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"
3608else
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"
3613fi
3614rm -f conftest*
3615LIBS="$ac_save_LIBS"
3616
3617fi
3618if 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"
3621else
3622 echo "$ac_t""no" 1>&6
3623fi
3624
3625 fi
3626 echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
3627echo "configure:3628: checking for inet_ntoa" >&5
3628if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630else
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. */
3640char inet_ntoa();
3641
3642int 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)
3648choke me
3649#else
3650inet_ntoa();
3651#endif
3652
3653; return 0; }
3654EOF
3655if { (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"
3658else
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"
3663fi
3664rm -f conftest*
3665fi
3666
3667if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3669 :
3670else
3671 echo "$ac_t""no" 1>&6
3672fi
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
3676echo "configure:3677: checking for inet_ntoa in -lnsl" >&5
3677ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
3678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3680else
3681 ac_save_LIBS="$LIBS"
3682LIBS="-lnsl $LIBS"
3683cat > 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. */
3689char inet_ntoa();
3690
3691int main() {
3692inet_ntoa()
3693; return 0; }
3694EOF
3695if { (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"
3698else
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"
3703fi
3704rm -f conftest*
3705LIBS="$ac_save_LIBS"
3706
3707fi
3708if 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"
3711else
3712 echo "$ac_t""no" 1>&6
3713fi
3714
3715 fi
3716 echo $ac_n "checking for connect""... $ac_c" 1>&6
3717echo "configure:3718: checking for connect" >&5
3718if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3720else
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. */
3730char connect();
3731
3732int 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)
3738choke me
3739#else
3740connect();
3741#endif
3742
3743; return 0; }
3744EOF
3745if { (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"
3748else
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 rm -rf conftest*
3752 eval "ac_cv_func_connect=no"
3753fi
3754rm -f conftest*
3755fi
3756
3757if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 :
3760else
3761 echo "$ac_t""no" 1>&6
3762fi
3763
3764 if test $ac_cv_func_connect = no; then
3765 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3766echo "configure:3767: checking for connect in -lsocket" >&5
3767ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3770else
3771 ac_save_LIBS="$LIBS"
3772LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3773cat > 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. */
3779char connect();
3780
3781int main() {
3782connect()
3783; return 0; }
3784EOF
3785if { (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"
3788else
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"
3793fi
3794rm -f conftest*
3795LIBS="$ac_save_LIBS"
3796
3797fi
3798if 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"
3801else
3802 echo "$ac_t""no" 1>&6
3803fi
3804
3805 fi
3806
3807 echo $ac_n "checking for remove""... $ac_c" 1>&6
3808echo "configure:3809: checking for remove" >&5
3809if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3811else
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. */
3821char remove();
3822
3823int 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)
3829choke me
3830#else
3831remove();
3832#endif
3833
3834; return 0; }
3835EOF
3836if { (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"
3839else
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3842 rm -rf conftest*
3843 eval "ac_cv_func_remove=no"
3844fi
3845rm -f conftest*
3846fi
3847
3848if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 :
3851else
3852 echo "$ac_t""no" 1>&6
3853fi
3854
3855 if test $ac_cv_func_remove = no; then
3856 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3857echo "configure:3858: checking for remove in -lposix" >&5
3858ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861else
3862 ac_save_LIBS="$LIBS"
3863LIBS="-lposix $LIBS"
3864cat > 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. */
3870char remove();
3871
3872int main() {
3873remove()
3874; return 0; }
3875EOF
3876if { (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"
3879else
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"
3884fi
3885rm -f conftest*
3886LIBS="$ac_save_LIBS"
3887
3888fi
3889if 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"
3892else
3893 echo "$ac_t""no" 1>&6
3894fi
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
3900echo "configure:3901: checking for shmat" >&5
3901if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903else
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. */
3913char shmat();
3914
3915int 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)
3921choke me
3922#else
3923shmat();
3924#endif
3925
3926; return 0; }
3927EOF
3928if { (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"
3931else
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 rm -rf conftest*
3935 eval "ac_cv_func_shmat=no"
3936fi
3937rm -f conftest*
3938fi
3939
3940if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 :
3943else
3944 echo "$ac_t""no" 1>&6
3945echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3946echo "configure:3947: checking for shmat in -lipc" >&5
3947ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3948if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3950else
3951 ac_save_LIBS="$LIBS"
3952LIBS="-lipc $LIBS"
3953cat > 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. */
3959char shmat();
3960
3961int main() {
3962shmat()
3963; return 0; }
3964EOF
3965if { (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"
3968else
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"
3973fi
3974rm -f conftest*
3975LIBS="$ac_save_LIBS"
3976
3977fi
3978if 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"
3981else
3982 echo "$ac_t""no" 1>&6
3983fi
3984
3985fi
3986
3987
3988 # Solaris 2.6 needs -lresolv for res_init
3989 echo $ac_n "checking for res_init""... $ac_c" 1>&6
3990echo "configure:3991: checking for res_init" >&5
3991if eval "test \"`echo '$''{'ac_cv_func_res_init'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3993else
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. */
4003char res_init();
4004
4005int 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)
4011choke me
4012#else
4013res_init();
4014#endif
4015
4016; return 0; }
4017EOF
4018if { (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"
4021else
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"
4026fi
4027rm -f conftest*
4028fi
4029
4030if eval "test \"`echo '$ac_cv_func_'res_init`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 :
4033else
4034 echo "$ac_t""no" 1>&6
4035echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6
4036echo "configure:4037: checking for res_init in -lresolv" >&5
4037ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'`
4038if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4040else
4041 ac_save_LIBS="$LIBS"
4042LIBS="-lresolv $LIBS"
4043cat > 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. */
4049char res_init();
4050
4051int main() {
4052res_init()
4053; return 0; }
4054EOF
4055if { (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"
4058else
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"
4063fi
4064rm -f conftest*
4065LIBS="$ac_save_LIBS"
4066
4067fi
4068if 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"
4071else
4072 echo "$ac_t""no" 1>&6
4073fi
4074
4075fi
4076
4077
4078 LIBSOCKET="$X_EXTRA_LIBS"
4079
4080
4081 echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
4082echo "configure:4083: checking for killpg in -lucb" >&5
4083ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
4084if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4086else
4087 ac_save_LIBS="$LIBS"
4088LIBS="-lucb $LIBS"
4089cat > 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. */
4095char killpg();
4096
4097int main() {
4098killpg()
4099; return 0; }
4100EOF
4101if { (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"
4104else
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"
4109fi
4110rm -f conftest*
4111LIBS="$ac_save_LIBS"
4112
4113fi
4114if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4115 echo "$ac_t""yes" 1>&6
4116 LIBUCB="-lucb"
4117else
4118 echo "$ac_t""no" 1>&6
4119fi
4120
4121
4122 case $host in *-*-lynxos* )
4123 echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
4124echo "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
4128echo "configure:4129: checking for gethostbyname in -lbsd" >&5
4129ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
4130if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132else
4133 ac_save_LIBS="$LIBS"
4134LIBS="-lbsd $LIBS"
4135cat > 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. */
4141char gethostbyname();
4142
4143int main() {
4144gethostbyname()
4145; return 0; }
4146EOF
4147if { (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"
4150else
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"
4155fi
4156rm -f conftest*
4157LIBS="$ac_save_LIBS"
4158
4159fi
4160if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 LIBSOCKET="-lbsd"
4163else
4164 echo "$ac_t""no" 1>&6
4165fi
4166 ;;
4167 esac
4168
4169 echo $ac_n "checking size of int""... $ac_c" 1>&6
4170echo "configure:4171: checking size of int" >&5
4171if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4173else
4174 if test "$cross_compiling" = yes; then
4175 ac_cv_sizeof_int=4
4176else
4177 cat > conftest.$ac_ext <<EOF
4178#line 4179 "configure"
4179#include "confdefs.h"
4180#include <stdio.h>
4181main()
4182{
4183 FILE *f=fopen("conftestval", "w");
4184 if (!f) exit(1);
4185 fprintf(f, "%d\n", sizeof(int));
4186 exit(0);
4187}
4188EOF
4189if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4190then
4191 ac_cv_sizeof_int=`cat conftestval`
4192else
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4195 rm -fr conftest*
4196 ac_cv_sizeof_int=0
4197fi
4198rm -fr conftest*
4199fi
4200
4201fi
4202echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4203cat >> confdefs.h <<EOF
4204#define SIZEOF_INT $ac_cv_sizeof_int
4205EOF
4206
4207 echo $ac_n "checking size of long""... $ac_c" 1>&6
4208echo "configure:4209: checking size of long" >&5
4209if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211else
4212 if test "$cross_compiling" = yes; then
4213 ac_cv_sizeof_long=4
4214else
4215 cat > conftest.$ac_ext <<EOF
4216#line 4217 "configure"
4217#include "confdefs.h"
4218#include <stdio.h>
4219main()
4220{
4221 FILE *f=fopen("conftestval", "w");
4222 if (!f) exit(1);
4223 fprintf(f, "%d\n", sizeof(long));
4224 exit(0);
4225}
4226EOF
4227if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4228then
4229 ac_cv_sizeof_long=`cat conftestval`
4230else
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 rm -fr conftest*
4234 ac_cv_sizeof_long=0
4235fi
4236rm -fr conftest*
4237fi
4238
4239fi
4240echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4241cat >> confdefs.h <<EOF
4242#define SIZEOF_LONG $ac_cv_sizeof_long
4243EOF
4244
4245 echo $ac_n "checking size of char *""... $ac_c" 1>&6
4246echo "configure:4247: checking size of char *" >&5
4247if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4249else
4250 if test "$cross_compiling" = yes; then
4251 ac_cv_sizeof_char_p=4
4252else
4253 cat > conftest.$ac_ext <<EOF
4254#line 4255 "configure"
4255#include "confdefs.h"
4256#include <stdio.h>
4257main()
4258{
4259 FILE *f=fopen("conftestval", "w");
4260 if (!f) exit(1);
4261 fprintf(f, "%d\n", sizeof(char *));
4262 exit(0);
4263}
4264EOF
4265if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4266then
4267 ac_cv_sizeof_char_p=`cat conftestval`
4268else
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4271 rm -fr conftest*
4272 ac_cv_sizeof_char_p=0
4273fi
4274rm -fr conftest*
4275fi
4276
4277fi
4278echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
4279cat >> confdefs.h <<EOF
4280#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4281EOF
4282
4283
4284
4285echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4286echo "configure:4287: checking for dlopen in -ldl" >&5
4287ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290else
4291 ac_save_LIBS="$LIBS"
4292LIBS="-ldl $LIBS"
4293cat > 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. */
4299char dlopen();
4300
4301int main() {
4302dlopen()
4303; return 0; }
4304EOF
4305if { (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"
4308else
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"
4313fi
4314rm -f conftest*
4315LIBS="$ac_save_LIBS"
4316
4317fi
4318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320
4321LIBDL="-ldl"
4322ac_cv_have_dlfcn=yes
4323
4324else
4325 echo "$ac_t""no" 1>&6
4326fi
4327
4328
4329echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
4330echo "configure:4331: checking for shl_unload in -ldld" >&5
4331ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
4332if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4334else
4335 ac_save_LIBS="$LIBS"
4336LIBS="-ldld $LIBS"
4337cat > 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. */
4343char shl_unload();
4344
4345int main() {
4346shl_unload()
4347; return 0; }
4348EOF
4349if { (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"
4352else
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"
4357fi
4358rm -f conftest*
4359LIBS="$ac_save_LIBS"
4360
4361fi
4362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4363 echo "$ac_t""yes" 1>&6
4364
4365LIBDL="-ldld"
4366ac_cv_have_shload=yes
4367
4368else
4369 echo "$ac_t""no" 1>&6
4370fi
4371
4372
4373
4374
4375
4376
4377echo $ac_n "checking for extra includes""... $ac_c" 1>&6
4378echo "configure:4379: checking for extra includes" >&5
4379# Check whether --with-extra-includes or --without-extra-includes was given.
4380if test "${with_extra_includes+set}" = set; then
4381 withval="$with_extra_includes"
4382 kde_use_extra_includes="$withval"
4383else
4384 kde_use_extra_includes=NONE
4385
4386fi
4387
4388kde_extra_includes=
4389if 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"
4400else
4401 kde_use_extra_includes="no"
4402fi
4403
4404
4405echo "$ac_t""$kde_use_extra_includes" 1>&6
4406
4407kde_extra_libs=
4408echo $ac_n "checking for extra libs""... $ac_c" 1>&6
4409echo "configure:4410: checking for extra libs" >&5
4410# Check whether --with-extra-libs or --without-extra-libs was given.
4411if test "${with_extra_libs+set}" = set; then
4412 withval="$with_extra_libs"
4413 kde_use_extra_libs=$withval
4414else
4415 kde_use_extra_libs=NONE
4416
4417fi
4418
4419if 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"
4431else
4432 kde_use_extra_libs="no"
4433fi
4434
4435
4436
4437echo "$ac_t""$kde_use_extra_libs" 1>&6
4438
4439
4440
4441
4442echo $ac_n "checking for libz""... $ac_c" 1>&6
4443echo "configure:4444: checking for libz" >&5
4444if eval "test \"`echo '$''{'ac_cv_lib_z'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446else
4447
4448ac_ext=c
4449# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4452ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4453cross_compiling=$ac_cv_prog_cc_cross
4454
4455kde_save_LIBS="$LIBS"
4456LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
4457kde_save_CFLAGS="$CFLAGS"
4458CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
4459cat > conftest.$ac_ext <<EOF
4460#line 4461 "configure"
4461#include "confdefs.h"
4462
4463#include<zlib.h>
4464
4465int main() {
4466return (zlibVersion() == ZLIB_VERSION);
4467; return 0; }
4468EOF
4469if { (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'"
4472else
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 eval "ac_cv_lib_z=no"
4477fi
4478rm -f conftest*
4479LIBS="$kde_save_LIBS"
4480CFLAGS="$kde_save_CFLAGS"
4481
4482fi
4483if test ! "$ac_cv_lib_z" = no; then
4484 cat >> confdefs.h <<EOF
4485#define HAVE_LIBZ 1
4486EOF
4487
4488 LIBZ="$ac_cv_lib_z"
4489
4490 echo "$ac_t""$ac_cv_lib_z" 1>&6
4491else
4492 { echo "configure: error: not found. Check your installation and look into config.log" 1>&2; exit 1; }
4493 LIBZ=""
4494
4495fi
4496
4497
4498echo $ac_n "checking for X""... $ac_c" 1>&6
4499echo "configure:4500: checking for X" >&5
4500
4501ac_ext=c
4502# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4505ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4506cross_compiling=$ac_cv_prog_cc_cross
4507
4508if eval "test \"`echo '$''{'kde_cv_have_x'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4510else
4511 # One or both of the vars are not set, and there is no cached value.
4512if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
4513 kde_x_includes=NO
4514else
4515 kde_x_includes=$x_includes
4516fi
4517if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
4518 kde_x_libraries=NO
4519else
4520 kde_x_libraries=$x_libraries
4521fi
4522
4523# below we use the standard autoconf calls
4524ac_x_libraries=$kde_x_libraries
4525ac_x_includes=$kde_x_includes
4526
4527if 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.
4532cat > conftest.$ac_ext <<EOF
4533#line 4534 "configure"
4534#include "confdefs.h"
4535#include <$x_direct_test_include>
4536EOF
4537ac_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; }
4539ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540if test -z "$ac_err"; then
4541 rm -rf conftest*
4542 # We can compile using X headers with no special include directory.
4543ac_x_includes=
4544else
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
4592fi
4593rm -f conftest*
4594fi # $ac_x_includes = NO
4595
4596if 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"
4606cat > conftest.$ac_ext <<EOF
4607#line 4608 "configure"
4608#include "confdefs.h"
4609
4610int main() {
4611${x_direct_test_function}()
4612; return 0; }
4613EOF
4614if { (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.
4618ac_x_libraries=
4619else
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.
4626for 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 ; \
4662do
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
4669done
4670fi
4671rm -f conftest*
4672fi # $ac_x_libraries = NO
4673
4674case "$host" in
4675mips-sgi-irix6*)
4676 ;;
4677*)
4678 rm -fr conftestdir
4679if 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'
4683acfindx:
4684 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4685EOF
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
4710fi
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
4718esac
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.
4723if test "$kde_x_includes" = NO; then
4724 kde_x_includes=$ac_x_includes
4725fi
4726
4727# for --x-libraries too
4728if test "$kde_x_libraries" = NO; then
4729 kde_x_libraries=$ac_x_libraries
4730fi
4731
4732if 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; }
4734fi
4735
4736if 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; }
4738fi
4739
4740# Record where we found X for the cache.
4741kde_cv_have_x="have_x=yes \
4742 kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
4743
4744fi
4745eval "$kde_cv_have_x"
4746
4747if test "$have_x" != yes; then
4748 echo "$ac_t""$have_x" 1>&6
4749 no_x=yes
4750else
4751 echo "$ac_t""libraries $kde_x_libraries, headers $kde_x_includes" 1>&6
4752fi
4753
4754if 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"
4759fi
4760
4761if 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"
4766fi
4767all_includes="$X_INCLUDES"
4768all_libraries="$X_LDFLAGS"
4769
4770
4771
4772
4773
4774
4775# Check for libraries that X11R6 Xt/Xaw programs need.
4776ac_save_LDFLAGS="$LDFLAGS"
4777LDFLAGS="$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.
4784echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4785echo "configure:4786: checking for IceConnectionNumber in -lICE" >&5
4786ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4789else
4790 ac_save_LIBS="$LIBS"
4791LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4792cat > 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. */
4798char IceConnectionNumber();
4799
4800int main() {
4801IceConnectionNumber()
4802; return 0; }
4803EOF
4804if { (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"
4807else
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"
4812fi
4813rm -f conftest*
4814LIBS="$ac_save_LIBS"
4815
4816fi
4817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 LIBSM="-lSM -lICE"
4820else
4821 echo "$ac_t""no" 1>&6
4822fi
4823
4824
4825LDFLAGS="$ac_save_LDFLAGS"
4826
4827
4828
4829LIB_X11='-lX11 $(LIBSOCKET)'
4830
4831
4832echo $ac_n "checking for libXext""... $ac_c" 1>&6
4833echo "configure:4834: checking for libXext" >&5
4834if eval "test \"`echo '$''{'kde_cv_have_libXext'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4836else
4837
4838kde_ldflags_safe="$LDFLAGS"
4839kde_libs_safe="$LIBS"
4840
4841LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
4842LIBS="-lXext -lX11 $LIBSOCKET"
4843
4844cat > conftest.$ac_ext <<EOF
4845#line 4846 "configure"
4846#include "confdefs.h"
4847
4848#include <stdio.h>
4849
4850int main() {
4851
4852printf("hello Xext\n");
4853
4854; return 0; }
4855EOF
4856if { (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
4859else
4860 echo "configure: failed program was:" >&5
4861 cat conftest.$ac_ext >&5
4862 rm -rf conftest*
4863 kde_cv_have_libXext=no
4864
4865fi
4866rm -f conftest*
4867
4868LDFLAGS=$kde_ldflags_safe
4869LIBS=$kde_libs_safe
4870
4871fi
4872
4873
4874echo "$ac_t""$kde_cv_have_libXext" 1>&6
4875
4876if test "$kde_cv_have_libXext" = "no"; then
4877 { echo "configure: error: We need a working libXext to proceed. Since configure
4878can't find it itself, we stop here assuming that make wouldn't find
4879them either." 1>&2; exit 1; }
4880fi
4881
4882
4883
4884
4885if test -z ""; then
4886 kde_qtver=2
4887 kde_qtsubver=1
4888else
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
4904fi
4905
4906if 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
4916else
4917 kde_qt_minversion=
4918fi
4919
4920if 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
4930else
4931 kde_qt_verstring=
4932fi
4933
4934if test $kde_qtver = 2; then
4935 kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
4936else
4937 kde_qt_dirs="$QTDIR /usr/lib/qt"
4938fi
4939
4940
4941
4942
4943echo $ac_n "checking for libpng""... $ac_c" 1>&6
4944echo "configure:4945: checking for libpng" >&5
4945if eval "test \"`echo '$''{'ac_cv_lib_png'+set}'`\" = set"; then
4946 echo $ac_n "(cached) $ac_c" 1>&6
4947else
4948
4949kde_save_LIBS="$LIBS"
4950LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
4951kde_save_CFLAGS="$CFLAGS"
4952CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
4953ac_ext=c
4954# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4955ac_cpp='$CPP $CPPFLAGS'
4956ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4957ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4958cross_compiling=$ac_cv_prog_cc_cross
4959
4960cat > conftest.$ac_ext <<EOF
4961#line 4962 "configure"
4962#include "confdefs.h"
4963
4964 #include<png.h>
4965
4966int 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; }
4973EOF
4974if { (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'"
4977else
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
4983fi
4984rm -f conftest*
4985LIBS="$kde_save_LIBS"
4986CFLAGS="$kde_save_CFLAGS"
4987
4988fi
4989if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
4990 cat >> confdefs.h <<EOF
4991#define HAVE_LIBPNG 1
4992EOF
4993
4994 LIBPNG="$ac_cv_lib_png"
4995
4996 echo "$ac_t""$ac_cv_lib_png" 1>&6
4997else
4998 echo "$ac_t""no" 1>&6
4999 LIBPNG=""
5000
5001fi
5002
5003
5004
5005echo $ac_n "checking for libjpeg6b""... $ac_c" 1>&6
5006echo "configure:5007: checking for libjpeg6b" >&5
5007if eval "test \"`echo '$''{'ac_cv_lib_jpeg_6b'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5009else
5010
5011ac_ext=c
5012# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5013ac_cpp='$CPP $CPPFLAGS'
5014ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5015ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5016cross_compiling=$ac_cv_prog_cc_cross
5017
5018ac_save_LIBS="$LIBS"
5019LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
5020ac_save_CFLAGS="$CFLAGS"
5021CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
5022cat > conftest.$ac_ext <<EOF
5023#line 5024 "configure"
5024#include "confdefs.h"
5025/* Override any gcc2 internal prototype to avoid an error. */
5026struct jpeg_decompress_struct;
5027typedef struct jpeg_decompress_struct * j_decompress_ptr;
5028typedef int size_t;
5029#ifdef __cplusplus
5030extern "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
5040int main() {
5041jpeg_CreateDecompress(0L, 0, 0);
5042; return 0; }
5043EOF
5044if { (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"
5047else
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"
5052fi
5053rm -f conftest*
5054LIBS="$ac_save_LIBS"
5055CFLAGS="$ac_save_CFLAGS"
5056
5057fi
5058
5059
5060if 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
5063else
5064 echo "$ac_t""no" 1>&6
5065
5066echo $ac_n "checking for libjpeg""... $ac_c" 1>&6
5067echo "configure:5068: checking for libjpeg" >&5
5068if eval "test \"`echo '$''{'ac_cv_lib_jpeg_normal'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070else
5071
5072ac_ext=c
5073# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5076ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5077cross_compiling=$ac_cv_prog_cc_cross
5078
5079ac_save_LIBS="$LIBS"
5080LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
5081ac_save_CFLAGS="$CFLAGS"
5082CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
5083cat > conftest.$ac_ext <<EOF
5084#line 5085 "configure"
5085#include "confdefs.h"
5086/* Override any gcc2 internal prototype to avoid an error. */
5087struct jpeg_decompress_struct;
5088typedef struct jpeg_decompress_struct * j_decompress_ptr;
5089typedef int size_t;
5090#ifdef __cplusplus
5091extern "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
5101int main() {
5102jpeg_CreateDecompress(0L, 0, 0);
5103; return 0; }
5104EOF
5105if { (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"
5108else
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"
5113fi
5114rm -f conftest*
5115LIBS="$ac_save_LIBS"
5116CFLAGS="$ac_save_CFLAGS"
5117
5118fi
5119
5120
5121if 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
5124else
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
5144fi
5145
5146
5147fi
5148
5149
5150
5151jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
5152
5153jpeg_incdir=NO
5154for i in $jpeg_incdirs;
5155do
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
5163done
5164
5165test "x$jpeg_incdir" = xNO && jpeg_incdir=
5166
5167if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
5168 cat >> confdefs.h <<EOF
5169#define HAVE_LIBJPEG 1
5170EOF
5171
5172else
5173 if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
5174 echo "configure: warning:
5175There is an installation error in jpeg support. You seem to have only one
5176of either the headers _or_ the libraries installed. You may need to either
5177provide correct --with-extra-... options, or the development package of
5178libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
5179Disabling 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=
5186fi
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196# Check whether --enable-mt or --disable-mt was given.
5197if test "${enable_mt+set}" = set; then
5198 enableval="$enable_mt"
5199 kde_use_qt_mt=$enableval
5200else
5201 kde_use_qt_mt=no
5202
5203fi
5204
5205
5206USING_QT_MT=""
5207
5208
5209if 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
5225fi
5226
5227kde_qt_was_given=yes
5228
5229
5230if test -z "$LIBQT_GLOB"; then
5231
5232 LIBQT_GLOB="libqt.*"
5233
5234fi
5235
5236if 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
5258else
5259 kde_int_qt="$LIBQT"
5260fi
5261
5262if test $kde_qtver = 2; then
5263
5264
5265
5266 LIBQT="$LIBQT $LIBPNG $LIBJPEG"
5267fi
5268
5269echo $ac_n "checking for Qt""... $ac_c" 1>&6
5270echo "configure:5271: checking for Qt" >&5
5271
5272LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
5273ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
5274qt_libraries=""
5275qt_includes=""
5276# Check whether --with-qt-dir or --without-qt-dir was given.
5277if 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
5283fi
5284
5285
5286# Check whether --with-qt-includes or --without-qt-includes was given.
5287if test "${with_qt_includes+set}" = set; then
5288 withval="$with_qt_includes"
5289
5290 ac_qt_includes="$withval"
5291
5292fi
5293
5294
5295kde_qt_libs_given=no
5296
5297# Check whether --with-qt-libraries or --without-qt-libraries was given.
5298if test "${with_qt_libraries+set}" = set; then
5299 withval="$with_qt_libraries"
5300 ac_qt_libraries="$withval"
5301 kde_qt_libs_given=yes
5302
5303fi
5304
5305
5306if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5308else
5309 #try to guess Qt locations
5310
5311qt_incdirs=""
5312for dir in $kde_qt_dirs; do
5313 qt_incdirs="$qt_incdirs $dir/include $dir"
5314done
5315qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt $x_includes"
5316if test ! "$ac_qt_includes" = "NO"; then
5317 qt_incdirs="$ac_qt_includes $qt_incdirs"
5318fi
5319
5320if test "$kde_qtver" = "2"; then
5321 kde_qt_header=qstyle.h
5322else
5323 kde_qt_header=qglobal.h
5324fi
5325
5326
5327qt_incdir=NO
5328for i in $qt_incdirs;
5329do
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
5337done
5338
5339ac_qt_includes="$qt_incdir"
5340
5341qt_libdirs=""
5342for dir in $kde_qt_dirs; do
5343 qt_libdirs="$qt_libdirs $dir/lib $dir"
5344done
5345qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
5346if test ! "$ac_qt_libraries" = "NO"; then
5347 qt_libdir=$ac_qt_libraries
5348else
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
5356fi
5357
5358ac_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.
5363ac_cpp='$CXXCPP $CPPFLAGS'
5364ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5365ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5366cross_compiling=$ac_cv_prog_cxx_cross
5367
5368ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5369
5370
5371
5372ac_cxxflags_safe="$CXXFLAGS"
5373ac_ldflags_safe="$LDFLAGS"
5374ac_libs_safe="$LIBS"
5375
5376CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
5377LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS"
5378LIBS="$LIBS $LIBQT"
5379
5380
5381
5382cat > conftest.$ac_ext <<EOF
5383#include "confdefs.h"
5384#include <qglobal.h>
5385#include <qapplication.h>
5386#include <qapp.h>
5387#include <qobjcoll.h>
5388EOF
5389if test "$kde_qtver" = "2"; then
5390cat >> conftest.$ac_ext <<EOF
5391#include <qevent.h>
5392#include <qstring.h>
5393#include <qstyle.h>
5394EOF
5395
5396if test $kde_qtsubver -gt 0; then
5397cat >> conftest.$ac_ext <<EOF
5398#include <qiconview.h>
5399EOF
5400fi
5401
5402fi
5403
5404echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
5405cat >> conftest.$ac_ext <<EOF
5406#error 1
5407#endif
5408
5409int main() {
5410EOF
5411if test "$kde_qtver" = "2"; then
5412cat >> conftest.$ac_ext <<EOF
5413 QStringList *t = new QStringList();
5414EOF
5415if test $kde_qtsubver -gt 0; then
5416cat >> 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 */
5422EOF
5423fi
5424fi
5425cat >> conftest.$ac_ext <<EOF
5426 return 0;
5427}
5428EOF
5429
5430
5431if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5432 rm -f conftest*
5433else
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 ac_qt_libraries="NO"
5437fi
5438rm -f conftest*
5439CXXFLAGS="$ac_cxxflags_safe"
5440LDFLAGS="$ac_ldflags_safe"
5441LIBS="$ac_libs_safe"
5442
5443ac_ext=c
5444# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5445ac_cpp='$CPP $CPPFLAGS'
5446ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5447ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5448cross_compiling=$ac_cv_prog_cc_cross
5449
5450if 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!
5464For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
5465else
5466 have_qt="yes"
5467fi
5468
5469fi
5470
5471
5472eval "$ac_cv_have_qt"
5473
5474if test "$have_qt" != yes; then
5475 echo "$ac_t""$have_qt" 1>&6;
5476else
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"
5483fi
5484
5485if test ! "$kde_qt_libs_given" = "yes"; then
5486
5487
5488echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
5489echo "configure:5490: checking if Qt compiles without flags" >&5
5490if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5492else
5493
5494
5495 ac_ext=C
5496# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5497ac_cpp='$CXXCPP $CPPFLAGS'
5498ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5499ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5500cross_compiling=$ac_cv_prog_cxx_cross
5501
5502ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5503
5504
5505ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
5506ac_LIBRARY_PATH="$LIBRARY_PATH"
5507ac_cxxflags_safe="$CXXFLAGS"
5508ac_ldflags_safe="$LDFLAGS"
5509ac_libs_safe="$LIBS"
5510
5511CXXFLAGS="$CXXFLAGS -I$qt_includes"
5512LDFLAGS="$LDFLAGS $X_LDFLAGS"
5513LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
5514LD_LIBRARY_PATH=
5515export LD_LIBRARY_PATH
5516LIBRARY_PATH=
5517export LIBRARY_PATH
5518
5519
5520
5521cat > conftest.$ac_ext <<EOF
5522#include "confdefs.h"
5523#include <qglobal.h>
5524#include <qapplication.h>
5525#include <qapp.h>
5526#include <qobjcoll.h>
5527EOF
5528if test "$kde_qtver" = "2"; then
5529cat >> conftest.$ac_ext <<EOF
5530#include <qevent.h>
5531#include <qstring.h>
5532#include <qstyle.h>
5533EOF
5534
5535if test $kde_qtsubver -gt 0; then
5536cat >> conftest.$ac_ext <<EOF
5537#include <qiconview.h>
5538EOF
5539fi
5540
5541fi
5542
5543echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
5544cat >> conftest.$ac_ext <<EOF
5545#error 1
5546#endif
5547
5548int main() {
5549EOF
5550if test "$kde_qtver" = "2"; then
5551cat >> conftest.$ac_ext <<EOF
5552 QStringList *t = new QStringList();
5553EOF
5554if test $kde_qtsubver -gt 0; then
5555cat >> 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 */
5561EOF
5562fi
5563fi
5564cat >> conftest.$ac_ext <<EOF
5565 return 0;
5566}
5567EOF
5568
5569
5570if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5571 kde_cv_qt_direct="yes"
5572else
5573 kde_cv_qt_direct="no"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5576fi
5577
5578rm -f conftest*
5579CXXFLAGS="$ac_cxxflags_safe"
5580LDFLAGS="$ac_ldflags_safe"
5581LIBS="$ac_libs_safe"
5582
5583LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
5584export LD_LIBRARY_PATH
5585LIBRARY_PATH="$ac_LIBRARY_PATH"
5586export LIBRARY_PATH
5587ac_ext=c
5588# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5589ac_cpp='$CPP $CPPFLAGS'
5590ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5591ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5592cross_compiling=$ac_cv_prog_cc_cross
5593
5594
5595fi
5596
5597
5598if test "$kde_cv_qt_direct" = "yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 qt_libraries=
5601else
5602 echo "$ac_t""no" 1>&6
5603
5604fi
5605
5606fi
5607
5608
5609
5610
5611if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
5612 QT_INCLUDES="";
5613else
5614 QT_INCLUDES="-I$qt_includes"
5615 all_includes="$QT_INCLUDES $all_includes"
5616fi
5617
5618if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
5619 QT_LDFLAGS=""
5620else
5621 QT_LDFLAGS="-L$qt_libraries"
5622 all_libraries="$all_libraries $QT_LDFLAGS"
5623fi
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
5639echo "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
5647else
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
5677fi
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!
5688Please check whether you installed Qt correctly.
5689You need to have a running moc binary.
5690configure tried to run $ac_cv_path_moc and the test didn't
5691succeed. If configure shouldn't have tried this one, set
5692the environment variable MOC to the right one before running
5693configure.
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
5704echo "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
5712else
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
5742fi
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!
5753Please check whether you installed Qt correctly.
5754You need to have a running uic binary.
5755configure tried to run $ac_cv_path_uic and the test didn't
5756succeed. If configure shouldn't have tried this one, set
5757the environment variable UIC to the right one before running
5758configure.
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
5778LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)'
5779
5780
5781
5782
5783
5784
5785
5786
5787echo $ac_n "checking for rpath""... $ac_c" 1>&6
5788echo "configure:5789: checking for rpath" >&5
5789# Check whether --enable-rpath or --disable-rpath was given.
5790if test "${enable_rpath+set}" = set; then
5791 enableval="$enable_rpath"
5792 USE_RPATH=$enableval
5793else
5794 USE_RPATH=yes
5795fi
5796
5797
5798if 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
5811fi
5812
5813
5814echo "$ac_t""$USE_RPATH" 1>&6
5815
5816echo $ac_n "checking for KDE""... $ac_c" 1>&6
5817echo "configure:5818: checking for KDE" >&5
5818
5819if 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
5830else
5831 ac_kde_includes=
5832 ac_kde_libraries=
5833 kde_libraries=""
5834 kde_includes=""
5835fi
5836
5837if eval "test \"`echo '$''{'ac_cv_have_kde'+set}'`\" = set"; then
5838 echo $ac_n "(cached) $ac_c" 1>&6
5839else
5840 #try to guess kde locations
5841
5842if test "$kde_qtver" = 1; then
5843 kde_check_header="ksock.h"
5844 kde_check_lib="libkdecore.la"
5845else
5846 kde_check_header="ksharedptr.h"
5847 kde_check_lib="libkio.la"
5848fi
5849
5850if test -z ""; then
5851
5852kde_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"
5853test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
5854kde_incdirs="$ac_kde_includes $kde_incdirs"
5855
5856kde_incdir=NO
5857for i in $kde_incdirs;
5858do
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
5866done
5867
5868ac_kde_includes="$kde_incdir"
5869
5870if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
5871 { echo "configure: error:
5872in the prefix, you've chosen, are no KDE headers installed. This will fail.
5873So, check this please and use another prefix!" 1>&2; exit 1; }
5874fi
5875
5876kde_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"
5877test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"
5878kde_libdirs="$ac_kde_libraries $kde_libdirs"
5879
5880kde_libdir=NO
5881for i in $kde_libdirs;
5882do
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
5890done
5891
5892ac_kde_libraries="$kde_libdir"
5893
5894if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
5895{ echo "configure: error:
5896in the prefix, you've chosen, are no KDE libraries installed. This will fail.
5897So, check this please and use another prefix!" 1>&2; exit 1; }
5898fi
5899ac_kde_libraries="$kde_libdir"
5900
5901if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then
5902 ac_cv_have_kde="have_kde=no"
5903else
5904 ac_cv_have_kde="have_kde=yes \
5905 ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
5906fi
5907
5908else
5909 ac_cv_have_kde="have_kde=no"
5910
5911fi
5912
5913fi
5914
5915eval "$ac_cv_have_kde"
5916
5917if 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
5934else
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"
5941fi
5942
5943
5944
5945if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then
5946 KDE_INCLUDES=""
5947else
5948 KDE_INCLUDES="-I$kde_includes"
5949 all_includes="$KDE_INCLUDES $all_includes"
5950fi
5951
5952KDE_LDFLAGS="-L$kde_libraries"
5953if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
5954 all_libraries="$all_libraries $KDE_LDFLAGS"
5955fi
5956
5957
5958
5959
5960
5961
5962all_libraries="$all_libraries $USER_LDFLAGS"
5963all_includes="$all_includes $USER_INCLUDES"
5964
5965
5966
5967
5968
5969 # Check whether --enable-path-check or --disable-path-check was given.
5970if 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
5978else
5979
5980 if test "$kde_qtver" = 1;
5981 then ac_use_path_checking=""
5982 else ac_use_path_checking="default"
5983 fi
5984
5985
5986fi
5987
5988
5989
5990
5991
5992echo $ac_n "checking for KDE paths""... $ac_c" 1>&6
5993echo "configure:5994: checking for KDE paths" >&5
5994kde_result=""
5995kde_cached_paths=yes
5996if eval "test \"`echo '$''{'kde_cv_all_paths'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5998else
5999
6000
6001if 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
6073else
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
6080echo "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.
6084ac_cpp='$CXXCPP $CPPFLAGS'
6085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6087cross_compiling=$ac_cv_prog_cxx_cross
6088
6089ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6090
6091
6092cat > conftest.$ac_ext <<EOF
6093#include <stdio.h>
6094#include "confdefs.h"
6095#include <kapp.h>
6096
6097int 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 }
6117EOF
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!
6124Check, if you installed the KDE header files correctly.
6125For 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.
6130ac_cpp='$CPP $CPPFLAGS'
6131ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6132ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6133cross_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
6156echo $ac_n "checking for KDE libraries installed""... $ac_c" 1>&6
6157echo "configure:6158: checking for KDE libraries installed" >&5
6158ac_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
6160if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6161 echo "$ac_t""yes" 1>&6
6162else
6163 { echo "configure: error: your system fails at linking a small KDE application!
6164Check, if your compiler is installed correctly and if you have used the
6165same compiler to compile Qt and kdelibs as you did use now.
6166For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
6167fi
6168
6169if eval `KDEDIR= ./conftest 2>&5`; then
6170 kde_result=done
6171else
6172 kde_result=problems
6173fi
6174
6175KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
6176kde_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
6204fi
6205
6206 kde_cached_paths=no
6207
6208fi
6209
6210eval "$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
6223if 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
6232if 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
6304else
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
6311echo "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.
6315ac_cpp='$CXXCPP $CPPFLAGS'
6316ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6317ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6318cross_compiling=$ac_cv_prog_cxx_cross
6319
6320ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6321
6322
6323cat > conftest.$ac_ext <<EOF
6324#include <stdio.h>
6325#include "confdefs.h"
6326#include <kapp.h>
6327
6328int 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 }
6348EOF
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!
6355Check, if you installed the KDE header files correctly.
6356For 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.
6361ac_cpp='$CPP $CPPFLAGS'
6362ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6363ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6364cross_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
6387echo $ac_n "checking for KDE libraries installed""... $ac_c" 1>&6
6388echo "configure:6389: checking for KDE libraries installed" >&5
6389ac_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
6391if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6392 echo "$ac_t""yes" 1>&6
6393else
6394 { echo "configure: error: your system fails at linking a small KDE application!
6395Check, if your compiler is installed correctly and if you have used the
6396same compiler to compile Qt and kdelibs as you did use now.
6397For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
6398fi
6399
6400if eval `KDEDIR= ./conftest 2>&5`; then
6401 kde_result=done
6402else
6403 kde_result=problems
6404fi
6405
6406KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
6407kde_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
6435fi
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)"
6451fi
6452if test "$kde_have_all_paths" = "no"; then
6453 { echo "configure: error: configure could not run a little KDE program to test the environment.
6454Since it had compiled and linked before, it must be a strange problem on your system.
6455Look at config.log for details. If you are not able to fix this, look at
6456http://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; }
6459else
6460 rm -f conftest*
6461 echo "$ac_t""$kde_result" 1>&6
6462fi
6463
6464bindir=$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
6479echo "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
6487else
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
6517fi
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!
6528Please 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
6539echo "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
6547else
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
6577fi
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!
6588Please 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
6599echo "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
6607else
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
6637fi
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!
6648Please 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
6659echo "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
6667else
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
6697fi
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!
6708Please 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
6719echo "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
6727else
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
6757fi
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!
6768Please 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
6779echo "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
6787else
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
6817fi
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!
6828Please 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
6881if test "$kde_qtver" = 1; then
6882 kde_minidir="$kde_icondir/mini"
6883else
6884# for KDE 1 - this breaks KDE2 apps using minidir, but
6885# that's the plan ;-/
6886 kde_minidir="/dev/null"
6887fi
6888
6889
6890
6891
6892
6893
6894if 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
6919else
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
6930fi
6931
6932
6933
6934if test "$program_transform_name" = s,x,x,; then
6935 program_transform_name=
6936else
6937 # Double any \ or $. echo might interpret backslashes.
6938 cat <<\EOF_SED > conftestsed
6939s,\\,\\\\,g; s,\$,$$,g
6940EOF_SED
6941 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
6942 rm -f conftestsed
6943fi
6944test "$program_prefix" != NONE &&
6945 program_transform_name="s,^,${program_prefix},; $program_transform_name"
6946# Use a double $ so make ignores it.
6947test "$program_suffix" != NONE &&
6948 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
6949
6950# sed with no file args requires a program.
6951test "$program_transform_name" = "" && program_transform_name="s,x,x,"
6952
6953
6954#MIN_CONFIG
6955
6956
6957
6958
6959DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
6960
6961if 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
6968fi
6969
6970if test -s $srcdir/inst-apps; then
6971 ac_topsubdirs="`cat $srcdir/inst-apps`"
6972else
6973 ac_topsubdirs="`cat $srcdir/subdirs`"
6974fi
6975
6976for i in $ac_topsubdirs; do
6977 echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
6978echo "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
6993done
6994
6995
6996
6997trap '' 1 2 15
6998cat > 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#
7013EOF
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
7033if cmp -s $cache_file confcache; then
7034 :
7035else
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
7042fi
7043rm -f confcache
7044
7045trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7046
7047test "x$prefix" = xNONE && prefix=$ac_default_prefix
7048# Let make expand exec_prefix.
7049test "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.
7054if test "x$srcdir" = x.; then
7055 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7056fi
7057
7058trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7059
7060DEFS=-DHAVE_CONFIG_H
7061
7062# Without the "./", some shells look in PATH for config.status.
7063: ${CONFIG_STATUS=./config.status}
7064
7065echo creating $CONFIG_STATUS
7066rm -f $CONFIG_STATUS
7067cat > $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
7079ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7080for ac_option
7081do
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
7093done
7094
7095ac_given_srcdir=$srcdir
7096ac_given_INSTALL="$INSTALL"
7097
7098trap 'rm -fr `echo "\
7099./Makefile \
7100activemirrorcontrol/Makefile \
7101doc/Makefile \
7102doc/en/Makefile \
7103po/Makefile \
7104 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7105EOF
7106cat >> $CONFIG_STATUS <<EOF
7107
7108# Protect against being on the right side of a sed subst in config.status.
7109sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7110 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7111$ac_vpsub
7112$extrasub
7113s%@SHELL@%$SHELL%g
7114s%@CFLAGS@%$CFLAGS%g
7115s%@CPPFLAGS@%$CPPFLAGS%g
7116s%@CXXFLAGS@%$CXXFLAGS%g
7117s%@FFLAGS@%$FFLAGS%g
7118s%@DEFS@%$DEFS%g
7119s%@LDFLAGS@%$LDFLAGS%g
7120s%@LIBS@%$LIBS%g
7121s%@exec_prefix@%$exec_prefix%g
7122s%@prefix@%$prefix%g
7123s%@program_transform_name@%$program_transform_name%g
7124s%@bindir@%$bindir%g
7125s%@sbindir@%$sbindir%g
7126s%@libexecdir@%$libexecdir%g
7127s%@datadir@%$datadir%g
7128s%@sysconfdir@%$sysconfdir%g
7129s%@sharedstatedir@%$sharedstatedir%g
7130s%@localstatedir@%$localstatedir%g
7131s%@libdir@%$libdir%g
7132s%@includedir@%$includedir%g
7133s%@oldincludedir@%$oldincludedir%g
7134s%@infodir@%$infodir%g
7135s%@mandir@%$mandir%g
7136s%@host@%$host%g
7137s%@host_alias@%$host_alias%g
7138s%@host_cpu@%$host_cpu%g
7139s%@host_vendor@%$host_vendor%g
7140s%@host_os@%$host_os%g
7141s%@target@%$target%g
7142s%@target_alias@%$target_alias%g
7143s%@target_cpu@%$target_cpu%g
7144s%@target_vendor@%$target_vendor%g
7145s%@target_os@%$target_os%g
7146s%@build@%$build%g
7147s%@build_alias@%$build_alias%g
7148s%@build_cpu@%$build_cpu%g
7149s%@build_vendor@%$build_vendor%g
7150s%@build_os@%$build_os%g
7151s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7152s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7153s%@INSTALL_DATA@%$INSTALL_DATA%g
7154s%@PACKAGE@%$PACKAGE%g
7155s%@VERSION@%$VERSION%g
7156s%@ACLOCAL@%$ACLOCAL%g
7157s%@AUTOCONF@%$AUTOCONF%g
7158s%@AUTOMAKE@%$AUTOMAKE%g
7159s%@AUTOHEADER@%$AUTOHEADER%g
7160s%@MAKEINFO@%$MAKEINFO%g
7161s%@SET_MAKE@%$SET_MAKE%g
7162s%@CONF_FILES@%$CONF_FILES%g
7163s%@CC@%$CC%g
7164s%@CPP@%$CPP%g
7165s%@CXX@%$CXX%g
7166s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
7167s%@USE_RTTI@%$USE_RTTI%g
7168s%@CXXCPP@%$CXXCPP%g
7169s%@NOOPT_CXXFLAGS@%$NOOPT_CXXFLAGS%g
7170s%@REPO@%$REPO%g
7171s%@NOREPO@%$NOREPO%g
7172s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
7173s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
7174s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
7175s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
7176s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
7177s%@OBJEXT@%$OBJEXT%g
7178s%@EXEEXT@%$EXEEXT%g
7179s%@LN_S@%$LN_S%g
7180s%@RANLIB@%$RANLIB%g
7181s%@STRIP@%$STRIP%g
7182s%@LIBTOOL@%$LIBTOOL%g
7183s%@KDE_PLUGIN@%$KDE_PLUGIN%g
7184s%@MSGFMT@%$MSGFMT%g
7185s%@GMSGFMT@%$GMSGFMT%g
7186s%@XGETTEXT@%$XGETTEXT%g
7187s%@LIBCOMPAT@%$LIBCOMPAT%g
7188s%@LIBCRYPT@%$LIBCRYPT%g
7189s%@LIBSOCKET@%$LIBSOCKET%g
7190s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7191s%@LIBUCB@%$LIBUCB%g
7192s%@LIBDL@%$LIBDL%g
7193s%@X_INCLUDES@%$X_INCLUDES%g
7194s%@X_LDFLAGS@%$X_LDFLAGS%g
7195s%@x_libraries@%$x_libraries%g
7196s%@x_includes@%$x_includes%g
7197s%@LIBSM@%$LIBSM%g
7198s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7199s%@LIB_X11@%$LIB_X11%g
7200s%@USER_INCLUDES@%$USER_INCLUDES%g
7201s%@USER_LDFLAGS@%$USER_LDFLAGS%g
7202s%@LIBZ@%$LIBZ%g
7203s%@LIBPNG@%$LIBPNG%g
7204s%@LIBJPEG@%$LIBJPEG%g
7205s%@qt_libraries@%$qt_libraries%g
7206s%@qt_includes@%$qt_includes%g
7207s%@QT_INCLUDES@%$QT_INCLUDES%g
7208s%@QT_LDFLAGS@%$QT_LDFLAGS%g
7209s%@MOC@%$MOC%g
7210s%@UIC@%$UIC%g
7211s%@LIB_QT@%$LIB_QT%g
7212s%@KDE_EXTRA_RPATH@%$KDE_EXTRA_RPATH%g
7213s%@KDE_RPATH@%$KDE_RPATH%g
7214s%@kde_libraries@%$kde_libraries%g
7215s%@kde_includes@%$kde_includes%g
7216s%@KDE_LDFLAGS@%$KDE_LDFLAGS%g
7217s%@KDE_INCLUDES@%$KDE_INCLUDES%g
7218s%@all_includes@%$all_includes%g
7219s%@all_libraries@%$all_libraries%g
7220s%@AUTODIRS@%$AUTODIRS%g
7221s%@DCOPIDL@%$DCOPIDL%g
7222s%@DCOPIDL2CPP@%$DCOPIDL2CPP%g
7223s%@DCOP_DEPENDENCIES@%$DCOP_DEPENDENCIES%g
7224s%@MCOPIDL@%$MCOPIDL%g
7225s%@KDB2HTML@%$KDB2HTML%g
7226s%@ARTSCCONFIG@%$ARTSCCONFIG%g
7227s%@KDECONFIG@%$KDECONFIG%g
7228s%@kde_libs_prefix@%$kde_libs_prefix%g
7229s%@kde_libs_htmldir@%$kde_libs_htmldir%g
7230s%@kde_htmldir@%$kde_htmldir%g
7231s%@kde_appsdir@%$kde_appsdir%g
7232s%@kde_icondir@%$kde_icondir%g
7233s%@kde_sounddir@%$kde_sounddir%g
7234s%@kde_datadir@%$kde_datadir%g
7235s%@kde_locale@%$kde_locale%g
7236s%@kde_confdir@%$kde_confdir%g
7237s%@kde_mimedir@%$kde_mimedir%g
7238s%@kde_wallpaperdir@%$kde_wallpaperdir%g
7239s%@kde_bindir@%$kde_bindir%g
7240s%@kde_templatesdir@%$kde_templatesdir%g
7241s%@kde_servicesdir@%$kde_servicesdir%g
7242s%@kde_servicetypesdir@%$kde_servicetypesdir%g
7243s%@kde_moduledir@%$kde_moduledir%g
7244s%@LIB_KDECORE@%$LIB_KDECORE%g
7245s%@LIB_KDEUI@%$LIB_KDEUI%g
7246s%@LIB_KFORMULA@%$LIB_KFORMULA%g
7247s%@LIB_KIO@%$LIB_KIO%g
7248s%@LIB_KSYCOCA@%$LIB_KSYCOCA%g
7249s%@LIB_SMB@%$LIB_SMB%g
7250s%@LIB_KFILE@%$LIB_KFILE%g
7251s%@LIB_KAB@%$LIB_KAB%g
7252s%@LIB_KHTML@%$LIB_KHTML%g
7253s%@LIB_KSPELL@%$LIB_KSPELL%g
7254s%@LIB_KPARTS@%$LIB_KPARTS%g
7255s%@LIB_KWRITE@%$LIB_KWRITE%g
7256s%@LIB_KFM@%$LIB_KFM%g
7257s%@TOPSUBDIRS@%$TOPSUBDIRS%g
7258
7259CEOF
7260EOF
7261
7262cat >> $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.
7266ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7267ac_file=1 # Number of current file.
7268ac_beg=1 # First line for current file.
7269ac_end=$ac_max_sed_cmds # Line after last line for current file.
7270ac_more_lines=:
7271ac_sed_cmds=""
7272while $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
7291done
7292if test -z "$ac_sed_cmds"; then
7293 ac_sed_cmds=cat
7294fi
7295EOF
7296
7297cat >> $CONFIG_STATUS <<EOF
7298
7299CONFIG_FILES=\${CONFIG_FILES-"\
7300./Makefile \
7301activemirrorcontrol/Makefile \
7302doc/Makefile \
7303doc/en/Makefile \
7304po/Makefile \
7305"}
7306EOF
7307cat >> $CONFIG_STATUS <<\EOF
7308for 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
7357s%@configure_input@%$configure_input%g
7358s%@srcdir@%$srcdir%g
7359s%@top_srcdir@%$top_srcdir%g
7360s%@INSTALL@%$INSTALL%g
7361" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7362fi; done
7363rm -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.
7369ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7370ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7371ac_dC='\3'
7372ac_dD='%g'
7373# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7374ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7375ac_uB='\([ ]\)%\1#\2define\3'
7376ac_uC=' '
7377ac_uD='\4%g'
7378# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7379ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7380ac_eB='$%\1#\2define\3'
7381ac_eC=' '
7382ac_eD='%g'
7383
7384if test "${CONFIG_HEADERS+set}" != set; then
7385EOF
7386cat >> $CONFIG_STATUS <<EOF
7387 CONFIG_HEADERS="config.h"
7388EOF
7389cat >> $CONFIG_STATUS <<\EOF
7390fi
7391for 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
7405EOF
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.
7411rm -f conftest.vals
7412cat > conftest.hdr <<\EOF
7413s/[\\&%]/\\&/g
7414s%[\\$`]%\\&%g
7415s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7416s%ac_d%ac_u%gp
7417s%ac_u%ac_e%gp
7418EOF
7419sed -n -f conftest.hdr confdefs.h > conftest.vals
7420rm -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.
7425cat >> conftest.vals <<\EOF
7426s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7427EOF
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
7432rm -f conftest.tail
7433while :
7434do
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
7449done
7450rm -f conftest.vals
7451
7452cat >> $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
7470fi; done
7471
7472EOF
7473cat >> $CONFIG_STATUS <<EOF
7474
7475
7476EOF
7477cat >> $CONFIG_STATUS <<\EOF
7478test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7479
7480exit 0
7481EOF
7482if 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;
7485fi
7486chmod +x $CONFIG_STATUS
7487rm -fr confdefs* $ac_clean_files
7488test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7489
Note: See TracBrowser for help on using the repository browser.