~yschatzb/mixxx/1.11-yoav-bugfixing

« back to all changes in this revision

Viewing changes to mixxx/configure

  • Committer: tuehaste
  • Date: 2002-02-26 11:12:07 UTC
  • Revision ID: vcs-imports@canonical.com-20020226111207-5rly26cj9gdd19ba
Initial revision

Show diffs side-by-side

added added

removed removed

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