~ubuntu-branches/ubuntu/utopic/knutclient/utopic

« back to all changes in this revision

Viewing changes to configure.zal

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2008-06-19 11:09:50 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619110950-izi2q2vd0dhwlpym
Tags: 0.9.4-1
* New upstream release
* Merge back Ubuntu changes
* debian/knutclient.menu: update section to fix lintian warnings
* debian/watch: update the pattern for matching new releases (Closes: #471247)
* debian/control:
  - move Homepage to the field and update the URL
  - update Standards-Version to 3.8.0
  - update debhelper Build-Depends to 5.0.51
  - add automake and autoconf to Build-Depends
  - update NUT URL
* debian/rules:
  - fix lintian warning debian-rules-ignores-make-clean-error
  - add a commented call to dh_icons

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.53.
4
 
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
 
# Free Software Foundation, Inc.
7
 
# This configure script is free software; the Free Software Foundation
8
 
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
if expr a : '\(a\)' >/dev/null 2>&1; then
11
 
  as_expr=expr
12
 
else
13
 
  as_expr=false
14
 
fi
15
 
 
16
 
 
17
 
## --------------------- ##
18
 
## M4sh Initialization.  ##
19
 
## --------------------- ##
20
 
 
21
 
# Be Bourne compatible
22
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23
 
  emulate sh
24
 
  NULLCMD=:
25
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
 
  set -o posix
27
 
fi
28
 
 
29
 
# NLS nuisances.
30
 
# Support unset when possible.
31
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32
 
  as_unset=unset
33
 
else
34
 
  as_unset=false
35
 
fi
36
 
 
37
 
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38
 
    { $as_unset LANG || test "${LANG+set}" != set; } ||
39
 
      { LANG=C; export LANG; }
40
 
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41
 
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42
 
      { LC_ALL=C; export LC_ALL; }
43
 
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44
 
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45
 
      { LC_TIME=C; export LC_TIME; }
46
 
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47
 
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48
 
      { LC_CTYPE=C; export LC_CTYPE; }
49
 
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50
 
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51
 
      { LANGUAGE=C; export LANGUAGE; }
52
 
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53
 
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54
 
      { LC_COLLATE=C; export LC_COLLATE; }
55
 
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56
 
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57
 
      { LC_NUMERIC=C; export LC_NUMERIC; }
58
 
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59
 
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60
 
      { LC_MESSAGES=C; export LC_MESSAGES; }
61
 
 
62
 
 
63
 
# Name of the executable.
64
 
as_me=`(basename "$0") 2>/dev/null ||
65
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66
 
         X"$0" : 'X\(//\)$' \| \
67
 
         X"$0" : 'X\(/\)$' \| \
68
 
         .     : '\(.\)' 2>/dev/null ||
69
 
echo X/"$0" |
70
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
72
 
          /^X\/\(\/\).*/{ s//\1/; q; }
73
 
          s/.*/./; q'`
74
 
 
75
 
# PATH needs CR, and LINENO needs CR and PATH.
76
 
# Avoid depending upon Character Ranges.
77
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80
 
as_cr_digits='0123456789'
81
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
82
 
 
83
 
# The user is always right.
84
 
if test "${PATH_SEPARATOR+set}" != set; then
85
 
  echo "#! /bin/sh" >conftest.sh
86
 
  echo  "exit 0"   >>conftest.sh
87
 
  chmod +x conftest.sh
88
 
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89
 
    PATH_SEPARATOR=';'
90
 
  else
91
 
    PATH_SEPARATOR=:
92
 
  fi
93
 
  rm -f conftest.sh
94
 
fi
95
 
 
96
 
 
97
 
  as_lineno_1=$LINENO
98
 
  as_lineno_2=$LINENO
99
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
101
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102
 
  # Find who we are.  Look in the path if we contain no path at all
103
 
  # relative or not.
104
 
  case $0 in
105
 
    *[\\/]* ) as_myself=$0 ;;
106
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107
 
for as_dir in $PATH
108
 
do
109
 
  IFS=$as_save_IFS
110
 
  test -z "$as_dir" && as_dir=.
111
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112
 
done
113
 
 
114
 
       ;;
115
 
  esac
116
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
117
 
  # in which case we are not to be found in the path.
118
 
  if test "x$as_myself" = x; then
119
 
    as_myself=$0
120
 
  fi
121
 
  if test ! -f "$as_myself"; then
122
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123
 
   { (exit 1); exit 1; }; }
124
 
  fi
125
 
  case $CONFIG_SHELL in
126
 
  '')
127
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129
 
do
130
 
  IFS=$as_save_IFS
131
 
  test -z "$as_dir" && as_dir=.
132
 
  for as_base in sh bash ksh sh5; do
133
 
         case $as_dir in
134
 
         /*)
135
 
           if ("$as_dir/$as_base" -c '
136
 
  as_lineno_1=$LINENO
137
 
  as_lineno_2=$LINENO
138
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
140
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141
 
             CONFIG_SHELL=$as_dir/$as_base
142
 
             export CONFIG_SHELL
143
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144
 
           fi;;
145
 
         esac
146
 
       done
147
 
done
148
 
;;
149
 
  esac
150
 
 
151
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
153
 
  # line-number line before each line; the second 'sed' does the real
154
 
  # work.  The second script uses 'N' to pair each line-number line
155
 
  # with the numbered line, and appends trailing '-' during
156
 
  # substitution so that $LINENO is not a special case at line end.
157
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159
 
  sed '=' <$as_myself |
160
 
    sed '
161
 
      N
162
 
      s,$,-,
163
 
      : loop
164
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165
 
      t loop
166
 
      s,-$,,
167
 
      s,^['$as_cr_digits']*\n,,
168
 
    ' >$as_me.lineno &&
169
 
  chmod +x $as_me.lineno ||
170
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171
 
   { (exit 1); exit 1; }; }
172
 
 
173
 
  # Don't try to exec as it changes $[0], causing all sort of problems
174
 
  # (the dirname of $[0] is not the place where we might find the
175
 
  # original and so on.  Autoconf is especially sensible to this).
176
 
  . ./$as_me.lineno
177
 
  # Exit status is that of the last command.
178
 
  exit
179
 
}
180
 
 
181
 
 
182
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183
 
  *c*,-n*) ECHO_N= ECHO_C='
184
 
' ECHO_T='      ' ;;
185
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187
 
esac
188
 
 
189
 
if expr a : '\(a\)' >/dev/null 2>&1; then
190
 
  as_expr=expr
191
 
else
192
 
  as_expr=false
193
 
fi
194
 
 
195
 
rm -f conf$$ conf$$.exe conf$$.file
196
 
echo >conf$$.file
197
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
198
 
  # We could just check for DJGPP; but this test a) works b) is more generic
199
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200
 
  if test -f conf$$.exe; then
201
 
    # Don't use ln at all; we don't have any links
202
 
    as_ln_s='cp -p'
203
 
  else
204
 
    as_ln_s='ln -s'
205
 
  fi
206
 
elif ln conf$$.file conf$$ 2>/dev/null; then
207
 
  as_ln_s=ln
208
 
else
209
 
  as_ln_s='cp -p'
210
 
fi
211
 
rm -f conf$$ conf$$.exe conf$$.file
212
 
 
213
 
as_executable_p="test -f"
214
 
 
215
 
# Sed expression to map a string onto a valid CPP name.
216
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
 
 
218
 
# Sed expression to map a string onto a valid variable name.
219
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
 
 
221
 
 
222
 
# IFS
223
 
# We need space, tab and new line, in precisely that order.
224
 
as_nl='
225
 
'
226
 
IFS="   $as_nl"
227
 
 
228
 
# CDPATH.
229
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
 
 
231
 
 
232
 
# Name of the host.
233
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234
 
# so uname gets run too.
235
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
 
 
237
 
exec 6>&1
238
 
 
239
 
#
240
 
# Initializations.
241
 
#
242
 
ac_default_prefix=/usr/local
243
 
cross_compiling=no
244
 
subdirs=
245
 
MFLAGS=
246
 
MAKEFLAGS=
247
 
SHELL=${CONFIG_SHELL-/bin/sh}
248
 
 
249
 
# Maximum number of lines to put in a shell here document.
250
 
# This variable seems obsolete.  It should probably be removed, and
251
 
# only ac_max_sed_lines should be used.
252
 
: ${ac_max_here_lines=38}
253
 
 
254
 
# Identity of this package.
255
 
PACKAGE_NAME=
256
 
PACKAGE_TARNAME=
257
 
PACKAGE_VERSION=
258
 
PACKAGE_STRING=
259
 
PACKAGE_BUGREPORT=
260
 
 
261
 
ac_unique_file="acinclude.m4"
262
 
ac_default_prefix=${KDEDIR:-/usr/local/kde}
263
 
# Factoring default headers for most tests.
264
 
ac_includes_default="\
265
 
#include <stdio.h>
266
 
#if HAVE_SYS_TYPES_H
267
 
# include <sys/types.h>
268
 
#endif
269
 
#if HAVE_SYS_STAT_H
270
 
# include <sys/stat.h>
271
 
#endif
272
 
#if STDC_HEADERS
273
 
# include <stdlib.h>
274
 
# include <stddef.h>
275
 
#else
276
 
# if HAVE_STDLIB_H
277
 
#  include <stdlib.h>
278
 
# endif
279
 
#endif
280
 
#if HAVE_STRING_H
281
 
# if !STDC_HEADERS && HAVE_MEMORY_H
282
 
#  include <memory.h>
283
 
# endif
284
 
# include <string.h>
285
 
#endif
286
 
#if HAVE_STRINGS_H
287
 
# include <strings.h>
288
 
#endif
289
 
#if HAVE_INTTYPES_H
290
 
# include <inttypes.h>
291
 
#else
292
 
# if HAVE_STDINT_H
293
 
#  include <stdint.h>
294
 
# endif
295
 
#endif
296
 
#if HAVE_UNISTD_H
297
 
# include <unistd.h>
298
 
#endif"
299
 
 
300
 
 
301
 
# Initialize some variables set by options.
302
 
ac_init_help=
303
 
ac_init_version=false
304
 
# The variables have the same names as the options, with
305
 
# dashes changed to underlines.
306
 
cache_file=/dev/null
307
 
exec_prefix=NONE
308
 
no_create=
309
 
no_recursion=
310
 
prefix=NONE
311
 
program_prefix=NONE
312
 
program_suffix=NONE
313
 
program_transform_name=s,x,x,
314
 
silent=
315
 
site=
316
 
srcdir=
317
 
verbose=
318
 
x_includes=NONE
319
 
x_libraries=NONE
320
 
 
321
 
# Installation directory options.
322
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
323
 
# and all the variables that are supposed to be based on exec_prefix
324
 
# by default will actually change.
325
 
# Use braces instead of parens because sh, perl, etc. also accept them.
326
 
bindir='${exec_prefix}/bin'
327
 
sbindir='${exec_prefix}/sbin'
328
 
libexecdir='${exec_prefix}/libexec'
329
 
datadir='${prefix}/share'
330
 
sysconfdir='${prefix}/etc'
331
 
sharedstatedir='${prefix}/com'
332
 
localstatedir='${prefix}/var'
333
 
libdir='${exec_prefix}/lib'
334
 
includedir='${prefix}/include'
335
 
oldincludedir='/usr/include'
336
 
infodir='${prefix}/info'
337
 
mandir='${prefix}/man'
338
 
 
339
 
ac_prev=
340
 
for ac_option
341
 
do
342
 
  # If the previous option needs an argument, assign it.
343
 
  if test -n "$ac_prev"; then
344
 
    eval "$ac_prev=\$ac_option"
345
 
    ac_prev=
346
 
    continue
347
 
  fi
348
 
 
349
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
 
 
351
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
352
 
 
353
 
  case $ac_option in
354
 
 
355
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
356
 
    ac_prev=bindir ;;
357
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
358
 
    bindir=$ac_optarg ;;
359
 
 
360
 
  -build | --build | --buil | --bui | --bu)
361
 
    ac_prev=build_alias ;;
362
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363
 
    build_alias=$ac_optarg ;;
364
 
 
365
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
366
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367
 
    ac_prev=cache_file ;;
368
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370
 
    cache_file=$ac_optarg ;;
371
 
 
372
 
  --config-cache | -C)
373
 
    cache_file=config.cache ;;
374
 
 
375
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376
 
    ac_prev=datadir ;;
377
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378
 
  | --da=*)
379
 
    datadir=$ac_optarg ;;
380
 
 
381
 
  -disable-* | --disable-*)
382
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383
 
    # Reject names that are not valid shell variable names.
384
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386
 
   { (exit 1); exit 1; }; }
387
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388
 
    eval "enable_$ac_feature=no" ;;
389
 
 
390
 
  -enable-* | --enable-*)
391
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392
 
    # Reject names that are not valid shell variable names.
393
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395
 
   { (exit 1); exit 1; }; }
396
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397
 
    case $ac_option in
398
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399
 
      *) ac_optarg=yes ;;
400
 
    esac
401
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
402
 
 
403
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405
 
  | --exec | --exe | --ex)
406
 
    ac_prev=exec_prefix ;;
407
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409
 
  | --exec=* | --exe=* | --ex=*)
410
 
    exec_prefix=$ac_optarg ;;
411
 
 
412
 
  -gas | --gas | --ga | --g)
413
 
    # Obsolete; use --with-gas.
414
 
    with_gas=yes ;;
415
 
 
416
 
  -help | --help | --hel | --he | -h)
417
 
    ac_init_help=long ;;
418
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419
 
    ac_init_help=recursive ;;
420
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421
 
    ac_init_help=short ;;
422
 
 
423
 
  -host | --host | --hos | --ho)
424
 
    ac_prev=host_alias ;;
425
 
  -host=* | --host=* | --hos=* | --ho=*)
426
 
    host_alias=$ac_optarg ;;
427
 
 
428
 
  -includedir | --includedir | --includedi | --included | --include \
429
 
  | --includ | --inclu | --incl | --inc)
430
 
    ac_prev=includedir ;;
431
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
433
 
    includedir=$ac_optarg ;;
434
 
 
435
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
436
 
    ac_prev=infodir ;;
437
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438
 
    infodir=$ac_optarg ;;
439
 
 
440
 
  -libdir | --libdir | --libdi | --libd)
441
 
    ac_prev=libdir ;;
442
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
443
 
    libdir=$ac_optarg ;;
444
 
 
445
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446
 
  | --libexe | --libex | --libe)
447
 
    ac_prev=libexecdir ;;
448
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449
 
  | --libexe=* | --libex=* | --libe=*)
450
 
    libexecdir=$ac_optarg ;;
451
 
 
452
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
453
 
  | --localstate | --localstat | --localsta | --localst \
454
 
  | --locals | --local | --loca | --loc | --lo)
455
 
    ac_prev=localstatedir ;;
456
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459
 
    localstatedir=$ac_optarg ;;
460
 
 
461
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462
 
    ac_prev=mandir ;;
463
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464
 
    mandir=$ac_optarg ;;
465
 
 
466
 
  -nfp | --nfp | --nf)
467
 
    # Obsolete; use --without-fp.
468
 
    with_fp=no ;;
469
 
 
470
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471
 
  | --no-cr | --no-c | -n)
472
 
    no_create=yes ;;
473
 
 
474
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
476
 
    no_recursion=yes ;;
477
 
 
478
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480
 
  | --oldin | --oldi | --old | --ol | --o)
481
 
    ac_prev=oldincludedir ;;
482
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485
 
    oldincludedir=$ac_optarg ;;
486
 
 
487
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488
 
    ac_prev=prefix ;;
489
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
490
 
    prefix=$ac_optarg ;;
491
 
 
492
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
493
 
  | --program-pre | --program-pr | --program-p)
494
 
    ac_prev=program_prefix ;;
495
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
496
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497
 
    program_prefix=$ac_optarg ;;
498
 
 
499
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
500
 
  | --program-suf | --program-su | --program-s)
501
 
    ac_prev=program_suffix ;;
502
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
503
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504
 
    program_suffix=$ac_optarg ;;
505
 
 
506
 
  -program-transform-name | --program-transform-name \
507
 
  | --program-transform-nam | --program-transform-na \
508
 
  | --program-transform-n | --program-transform- \
509
 
  | --program-transform | --program-transfor \
510
 
  | --program-transfo | --program-transf \
511
 
  | --program-trans | --program-tran \
512
 
  | --progr-tra | --program-tr | --program-t)
513
 
    ac_prev=program_transform_name ;;
514
 
  -program-transform-name=* | --program-transform-name=* \
515
 
  | --program-transform-nam=* | --program-transform-na=* \
516
 
  | --program-transform-n=* | --program-transform-=* \
517
 
  | --program-transform=* | --program-transfor=* \
518
 
  | --program-transfo=* | --program-transf=* \
519
 
  | --program-trans=* | --program-tran=* \
520
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
521
 
    program_transform_name=$ac_optarg ;;
522
 
 
523
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524
 
  | -silent | --silent | --silen | --sile | --sil)
525
 
    silent=yes ;;
526
 
 
527
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528
 
    ac_prev=sbindir ;;
529
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530
 
  | --sbi=* | --sb=*)
531
 
    sbindir=$ac_optarg ;;
532
 
 
533
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
534
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535
 
  | --sharedst | --shareds | --shared | --share | --shar \
536
 
  | --sha | --sh)
537
 
    ac_prev=sharedstatedir ;;
538
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541
 
  | --sha=* | --sh=*)
542
 
    sharedstatedir=$ac_optarg ;;
543
 
 
544
 
  -site | --site | --sit)
545
 
    ac_prev=site ;;
546
 
  -site=* | --site=* | --sit=*)
547
 
    site=$ac_optarg ;;
548
 
 
549
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550
 
    ac_prev=srcdir ;;
551
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
552
 
    srcdir=$ac_optarg ;;
553
 
 
554
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555
 
  | --syscon | --sysco | --sysc | --sys | --sy)
556
 
    ac_prev=sysconfdir ;;
557
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559
 
    sysconfdir=$ac_optarg ;;
560
 
 
561
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
562
 
    ac_prev=target_alias ;;
563
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564
 
    target_alias=$ac_optarg ;;
565
 
 
566
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
567
 
    verbose=yes ;;
568
 
 
569
 
  -version | --version | --versio | --versi | --vers | -V)
570
 
    ac_init_version=: ;;
571
 
 
572
 
  -with-* | --with-*)
573
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574
 
    # Reject names that are not valid shell variable names.
575
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
577
 
   { (exit 1); exit 1; }; }
578
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
579
 
    case $ac_option in
580
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581
 
      *) ac_optarg=yes ;;
582
 
    esac
583
 
    eval "with_$ac_package='$ac_optarg'" ;;
584
 
 
585
 
  -without-* | --without-*)
586
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587
 
    # Reject names that are not valid shell variable names.
588
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
590
 
   { (exit 1); exit 1; }; }
591
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
592
 
    eval "with_$ac_package=no" ;;
593
 
 
594
 
  --x)
595
 
    # Obsolete; use --with-x.
596
 
    with_x=yes ;;
597
 
 
598
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599
 
  | --x-incl | --x-inc | --x-in | --x-i)
600
 
    ac_prev=x_includes ;;
601
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603
 
    x_includes=$ac_optarg ;;
604
 
 
605
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
606
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607
 
    ac_prev=x_libraries ;;
608
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610
 
    x_libraries=$ac_optarg ;;
611
 
 
612
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
613
 
Try \`$0 --help' for more information." >&2
614
 
   { (exit 1); exit 1; }; }
615
 
    ;;
616
 
 
617
 
  *=*)
618
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619
 
    # Reject names that are not valid shell variable names.
620
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622
 
   { (exit 1); exit 1; }; }
623
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624
 
    eval "$ac_envvar='$ac_optarg'"
625
 
    export $ac_envvar ;;
626
 
 
627
 
  *)
628
 
    # FIXME: should be removed in autoconf 3.0.
629
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
633
 
    ;;
634
 
 
635
 
  esac
636
 
done
637
 
 
638
 
if test -n "$ac_prev"; then
639
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
641
 
   { (exit 1); exit 1; }; }
642
 
fi
643
 
 
644
 
# Be sure to have absolute paths.
645
 
for ac_var in exec_prefix prefix
646
 
do
647
 
  eval ac_val=$`echo $ac_var`
648
 
  case $ac_val in
649
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651
 
   { (exit 1); exit 1; }; };;
652
 
  esac
653
 
done
654
 
 
655
 
# Be sure to have absolute paths.
656
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657
 
              localstatedir libdir includedir oldincludedir infodir mandir
658
 
do
659
 
  eval ac_val=$`echo $ac_var`
660
 
  case $ac_val in
661
 
    [\\/$]* | ?:[\\/]* ) ;;
662
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663
 
   { (exit 1); exit 1; }; };;
664
 
  esac
665
 
done
666
 
 
667
 
# There might be people who depend on the old broken behavior: `$host'
668
 
# used to hold the argument of --host etc.
669
 
# FIXME: To remove some day.
670
 
build=$build_alias
671
 
host=$host_alias
672
 
target=$target_alias
673
 
 
674
 
# FIXME: To remove some day.
675
 
if test "x$host_alias" != x; then
676
 
  if test "x$build_alias" = x; then
677
 
    cross_compiling=maybe
678
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679
 
    If a cross compiler is detected then cross compile mode will be used." >&2
680
 
  elif test "x$build_alias" != "x$host_alias"; then
681
 
    cross_compiling=yes
682
 
  fi
683
 
fi
684
 
 
685
 
ac_tool_prefix=
686
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
 
 
688
 
test "$silent" = yes && exec 6>/dev/null
689
 
 
690
 
 
691
 
# Find the source files, if location was not specified.
692
 
if test -z "$srcdir"; then
693
 
  ac_srcdir_defaulted=yes
694
 
  # Try the directory containing this script, then its parent.
695
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
696
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697
 
         X"$0" : 'X\(//\)[^/]' \| \
698
 
         X"$0" : 'X\(//\)$' \| \
699
 
         X"$0" : 'X\(/\)' \| \
700
 
         .     : '\(.\)' 2>/dev/null ||
701
 
echo X"$0" |
702
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704
 
          /^X\(\/\/\)$/{ s//\1/; q; }
705
 
          /^X\(\/\).*/{ s//\1/; q; }
706
 
          s/.*/./; q'`
707
 
  srcdir=$ac_confdir
708
 
  if test ! -r $srcdir/$ac_unique_file; then
709
 
    srcdir=..
710
 
  fi
711
 
else
712
 
  ac_srcdir_defaulted=no
713
 
fi
714
 
if test ! -r $srcdir/$ac_unique_file; then
715
 
  if test "$ac_srcdir_defaulted" = yes; then
716
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717
 
   { (exit 1); exit 1; }; }
718
 
  else
719
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720
 
   { (exit 1); exit 1; }; }
721
 
  fi
722
 
fi
723
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724
 
ac_env_build_alias_set=${build_alias+set}
725
 
ac_env_build_alias_value=$build_alias
726
 
ac_cv_env_build_alias_set=${build_alias+set}
727
 
ac_cv_env_build_alias_value=$build_alias
728
 
ac_env_host_alias_set=${host_alias+set}
729
 
ac_env_host_alias_value=$host_alias
730
 
ac_cv_env_host_alias_set=${host_alias+set}
731
 
ac_cv_env_host_alias_value=$host_alias
732
 
ac_env_target_alias_set=${target_alias+set}
733
 
ac_env_target_alias_value=$target_alias
734
 
ac_cv_env_target_alias_set=${target_alias+set}
735
 
ac_cv_env_target_alias_value=$target_alias
736
 
ac_env_CC_set=${CC+set}
737
 
ac_env_CC_value=$CC
738
 
ac_cv_env_CC_set=${CC+set}
739
 
ac_cv_env_CC_value=$CC
740
 
ac_env_CFLAGS_set=${CFLAGS+set}
741
 
ac_env_CFLAGS_value=$CFLAGS
742
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
743
 
ac_cv_env_CFLAGS_value=$CFLAGS
744
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
745
 
ac_env_LDFLAGS_value=$LDFLAGS
746
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
748
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749
 
ac_env_CPPFLAGS_value=$CPPFLAGS
750
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752
 
ac_env_CPP_set=${CPP+set}
753
 
ac_env_CPP_value=$CPP
754
 
ac_cv_env_CPP_set=${CPP+set}
755
 
ac_cv_env_CPP_value=$CPP
756
 
ac_env_CXX_set=${CXX+set}
757
 
ac_env_CXX_value=$CXX
758
 
ac_cv_env_CXX_set=${CXX+set}
759
 
ac_cv_env_CXX_value=$CXX
760
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
761
 
ac_env_CXXFLAGS_value=$CXXFLAGS
762
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
763
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
764
 
ac_env_CXXCPP_set=${CXXCPP+set}
765
 
ac_env_CXXCPP_value=$CXXCPP
766
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
767
 
ac_cv_env_CXXCPP_value=$CXXCPP
768
 
 
769
 
#
770
 
# Report the --help message.
771
 
#
772
 
if test "$ac_init_help" = "long"; then
773
 
  # Omit some internal or obsolete options to make the list less imposing.
774
 
  # This message is too long to be a string in the A/UX 3.1 sh.
775
 
  cat <<_ACEOF
776
 
\`configure' configures this package to adapt to many kinds of systems.
777
 
 
778
 
Usage: $0 [OPTION]... [VAR=VALUE]...
779
 
 
780
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
781
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
782
 
 
783
 
Defaults for the options are specified in brackets.
784
 
 
785
 
Configuration:
786
 
  -h, --help              display this help and exit
787
 
      --help=short        display options specific to this package
788
 
      --help=recursive    display the short help of all the included packages
789
 
  -V, --version           display version information and exit
790
 
  -q, --quiet, --silent   do not print \`checking...' messages
791
 
      --cache-file=FILE   cache test results in FILE [disabled]
792
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
793
 
  -n, --no-create         do not create output files
794
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
795
 
 
796
 
_ACEOF
797
 
 
798
 
  cat <<_ACEOF
799
 
Installation directories:
800
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
801
 
                          [$ac_default_prefix]
802
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
803
 
                          [PREFIX]
804
 
 
805
 
By default, \`make install' will install all the files in
806
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
807
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808
 
for instance \`--prefix=\$HOME'.
809
 
 
810
 
For better control, use the options below.
811
 
 
812
 
Fine tuning of the installation directories:
813
 
  --bindir=DIR           user executables [EPREFIX/bin]
814
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
815
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
816
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
817
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
818
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
819
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
820
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
821
 
  --includedir=DIR       C header files [PREFIX/include]
822
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
823
 
  --infodir=DIR          info documentation [PREFIX/info]
824
 
  --mandir=DIR           man documentation [PREFIX/man]
825
 
_ACEOF
826
 
 
827
 
  cat <<\_ACEOF
828
 
 
829
 
Program names:
830
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
831
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
832
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
833
 
 
834
 
System types:
835
 
  --build=BUILD     configure for building on BUILD [guessed]
836
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
837
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
838
 
_ACEOF
839
 
fi
840
 
 
841
 
if test -n "$ac_init_help"; then
842
 
 
843
 
  cat <<\_ACEOF
844
 
 
845
 
Optional Features:
846
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
847
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
848
 
  --disable-fast-perl     disable fast Makefile generation (needs perl)
849
 
  --enable-debug=ARG    enables debug symbols (yes|no|full) default=no
850
 
  --disable-debug         disables debug output and debug symbols default=no
851
 
  --enable-strict         compiles with strict compiler options (may not work!)
852
 
  --disable-warnings      disables compilation with -Wall and similiar
853
 
  --enable-profile        creates profiling infos default=no
854
 
  --enable-pch            enables precompiled header support (currently only KCC) default=no
855
 
  --enable-final          build size optimized apps (experimental - needs lots of memory)
856
 
  --disable-closure       don't delay template instantiation
857
 
  --enable-nmcheck        enable automatic namespace cleanness check
858
 
  --enable-shared=PKGS  build shared libraries default=yes
859
 
  --enable-static=PKGS  build static libraries default=no
860
 
  --enable-libsuffix      /lib directory suffix (64,32,none=default)
861
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
862
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
863
 
  --enable-objprelink     prelink apps using objprelink (obsolete)
864
 
  --enable-embedded       link to Qt-embedded, don't use X
865
 
  --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
866
 
  --disable-mt            link to non-threaded Qt (deprecated)
867
 
  --enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
868
 
  --disable-threading     disables threading even if libpthread found
869
 
  --disable-rpath         do not use the rpath feature of ld
870
 
  --disable-path-check    don't try to find out, where to install
871
 
 
872
 
Optional Packages:
873
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
876
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
877
 
  --with-extra-includes=DIR
878
 
                          adds non standard include paths
879
 
  --with-extra-libs=DIR   adds non standard library paths
880
 
  --with-qt-dir=DIR       where the root of Qt is installed
881
 
  --with-qt-includes=DIR  where the Qt includes are.
882
 
  --with-qt-libraries=DIR where the Qt library is installed.
883
 
 
884
 
Some influential environment variables:
885
 
  CC          C compiler command
886
 
  CFLAGS      C compiler flags
887
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888
 
              nonstandard directory <lib dir>
889
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890
 
              headers in a nonstandard directory <include dir>
891
 
  CPP         C preprocessor
892
 
  CXX         C++ compiler command
893
 
  CXXFLAGS    C++ compiler flags
894
 
  CXXCPP      C++ preprocessor
895
 
 
896
 
Use these variables to override the choices made by `configure' or to help
897
 
it to find libraries and programs with nonstandard names/locations.
898
 
 
899
 
_ACEOF
900
 
fi
901
 
 
902
 
if test "$ac_init_help" = "recursive"; then
903
 
  # If there are subdirs, report their specific --help.
904
 
  ac_popdir=`pwd`
905
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906
 
    test -d $ac_dir || continue
907
 
    ac_builddir=.
908
 
 
909
 
if test "$ac_dir" != .; then
910
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911
 
  # A "../" for each directory in $ac_dir_suffix.
912
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913
 
else
914
 
  ac_dir_suffix= ac_top_builddir=
915
 
fi
916
 
 
917
 
case $srcdir in
918
 
  .)  # No --srcdir option.  We are building in place.
919
 
    ac_srcdir=.
920
 
    if test -z "$ac_top_builddir"; then
921
 
       ac_top_srcdir=.
922
 
    else
923
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924
 
    fi ;;
925
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
926
 
    ac_srcdir=$srcdir$ac_dir_suffix;
927
 
    ac_top_srcdir=$srcdir ;;
928
 
  *) # Relative path.
929
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
931
 
esac
932
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933
 
# absolute.
934
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
935
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
936
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
937
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
938
 
 
939
 
    cd $ac_dir
940
 
    # Check for guested configure; otherwise get Cygnus style configure.
941
 
    if test -f $ac_srcdir/configure.gnu; then
942
 
      echo
943
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
944
 
    elif test -f $ac_srcdir/configure; then
945
 
      echo
946
 
      $SHELL $ac_srcdir/configure  --help=recursive
947
 
    elif test -f $ac_srcdir/configure.ac ||
948
 
           test -f $ac_srcdir/configure.in; then
949
 
      echo
950
 
      $ac_configure --help
951
 
    else
952
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953
 
    fi
954
 
    cd $ac_popdir
955
 
  done
956
 
fi
957
 
 
958
 
test -n "$ac_init_help" && exit 0
959
 
if $ac_init_version; then
960
 
  cat <<\_ACEOF
961
 
 
962
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
963
 
Free Software Foundation, Inc.
964
 
This configure script is free software; the Free Software Foundation
965
 
gives unlimited permission to copy, distribute and modify it.
966
 
_ACEOF
967
 
  exit 0
968
 
fi
969
 
exec 5>config.log
970
 
cat >&5 <<_ACEOF
971
 
This file contains any messages produced by compilers while
972
 
running configure, to aid debugging if configure makes a mistake.
973
 
 
974
 
It was created by $as_me, which was
975
 
generated by GNU Autoconf 2.53.  Invocation command line was
976
 
 
977
 
  $ $0 $@
978
 
 
979
 
_ACEOF
980
 
{
981
 
cat <<_ASUNAME
982
 
## --------- ##
983
 
## Platform. ##
984
 
## --------- ##
985
 
 
986
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
988
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
989
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
990
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
 
 
992
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
994
 
 
995
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
996
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
997
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
999
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1000
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1001
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1002
 
 
1003
 
_ASUNAME
1004
 
 
1005
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006
 
for as_dir in $PATH
1007
 
do
1008
 
  IFS=$as_save_IFS
1009
 
  test -z "$as_dir" && as_dir=.
1010
 
  echo "PATH: $as_dir"
1011
 
done
1012
 
 
1013
 
} >&5
1014
 
 
1015
 
cat >&5 <<_ACEOF
1016
 
 
1017
 
 
1018
 
## ----------- ##
1019
 
## Core tests. ##
1020
 
## ----------- ##
1021
 
 
1022
 
_ACEOF
1023
 
 
1024
 
 
1025
 
# Keep a trace of the command line.
1026
 
# Strip out --no-create and --no-recursion so they do not pile up.
1027
 
# Also quote any args containing shell meta-characters.
1028
 
ac_configure_args=
1029
 
ac_sep=
1030
 
for ac_arg
1031
 
do
1032
 
  case $ac_arg in
1033
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034
 
  | --no-cr | --no-c | -n ) continue ;;
1035
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037
 
    continue ;;
1038
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040
 
  esac
1041
 
  case " $ac_configure_args " in
1042
 
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1043
 
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044
 
       ac_sep=" " ;;
1045
 
  esac
1046
 
  # Get rid of the leading space.
1047
 
done
1048
 
 
1049
 
# When interrupted or exit'd, cleanup temporary files, and complete
1050
 
# config.log.  We remove comments because anyway the quotes in there
1051
 
# would cause problems or look ugly.
1052
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1053
 
# such as our DU 5.0 friend, will then `close' the trap.
1054
 
trap 'exit_status=$?
1055
 
  # Save into config.log some information that might help in debugging.
1056
 
  {
1057
 
    echo
1058
 
    cat <<\_ASBOX
1059
 
## ---------------- ##
1060
 
## Cache variables. ##
1061
 
## ---------------- ##
1062
 
_ASBOX
1063
 
    echo
1064
 
    # The following way of writing the cache mishandles newlines in values,
1065
 
{
1066
 
  (set) 2>&1 |
1067
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068
 
    *ac_space=\ *)
1069
 
      sed -n \
1070
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1071
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072
 
      ;;
1073
 
    *)
1074
 
      sed -n \
1075
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076
 
      ;;
1077
 
    esac;
1078
 
}
1079
 
    echo
1080
 
    if test -s confdefs.h; then
1081
 
      cat <<\_ASBOX
1082
 
## ----------- ##
1083
 
## confdefs.h. ##
1084
 
## ----------- ##
1085
 
_ASBOX
1086
 
      echo
1087
 
      sed "/^$/d" confdefs.h
1088
 
      echo
1089
 
    fi
1090
 
    test "$ac_signal" != 0 &&
1091
 
      echo "$as_me: caught signal $ac_signal"
1092
 
    echo "$as_me: exit $exit_status"
1093
 
  } >&5
1094
 
  rm -f core core.* *.core &&
1095
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096
 
    exit $exit_status
1097
 
     ' 0
1098
 
for ac_signal in 1 2 13 15; do
1099
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1100
 
done
1101
 
ac_signal=0
1102
 
 
1103
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1104
 
rm -rf conftest* confdefs.h
1105
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106
 
echo >confdefs.h
1107
 
 
1108
 
# Predefined preprocessor variables.
1109
 
 
1110
 
cat >>confdefs.h <<_ACEOF
1111
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1112
 
_ACEOF
1113
 
 
1114
 
 
1115
 
cat >>confdefs.h <<_ACEOF
1116
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1117
 
_ACEOF
1118
 
 
1119
 
 
1120
 
cat >>confdefs.h <<_ACEOF
1121
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1122
 
_ACEOF
1123
 
 
1124
 
 
1125
 
cat >>confdefs.h <<_ACEOF
1126
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1127
 
_ACEOF
1128
 
 
1129
 
 
1130
 
cat >>confdefs.h <<_ACEOF
1131
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1132
 
_ACEOF
1133
 
 
1134
 
 
1135
 
# Let the site file select an alternate cache file if it wants to.
1136
 
# Prefer explicitly selected file to automatically selected ones.
1137
 
if test -z "$CONFIG_SITE"; then
1138
 
  if test "x$prefix" != xNONE; then
1139
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1140
 
  else
1141
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142
 
  fi
1143
 
fi
1144
 
for ac_site_file in $CONFIG_SITE; do
1145
 
  if test -r "$ac_site_file"; then
1146
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1147
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1148
 
    sed 's/^/| /' "$ac_site_file" >&5
1149
 
    . "$ac_site_file"
1150
 
  fi
1151
 
done
1152
 
 
1153
 
if test -r "$cache_file"; then
1154
 
  # Some versions of bash will fail to source /dev/null (special
1155
 
  # files actually), so we avoid doing that.
1156
 
  if test -f "$cache_file"; then
1157
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1158
 
echo "$as_me: loading cache $cache_file" >&6;}
1159
 
    case $cache_file in
1160
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1161
 
      *)                      . ./$cache_file;;
1162
 
    esac
1163
 
  fi
1164
 
else
1165
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1166
 
echo "$as_me: creating cache $cache_file" >&6;}
1167
 
  >$cache_file
1168
 
fi
1169
 
 
1170
 
# Check that the precious variables saved in the cache have kept the same
1171
 
# value.
1172
 
ac_cache_corrupted=false
1173
 
for ac_var in `(set) 2>&1 |
1174
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1175
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1176
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1177
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1178
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1179
 
  case $ac_old_set,$ac_new_set in
1180
 
    set,)
1181
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1182
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1183
 
      ac_cache_corrupted=: ;;
1184
 
    ,set)
1185
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1186
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1187
 
      ac_cache_corrupted=: ;;
1188
 
    ,);;
1189
 
    *)
1190
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1191
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1192
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1193
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1194
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1195
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1196
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1197
 
        ac_cache_corrupted=:
1198
 
      fi;;
1199
 
  esac
1200
 
  # Pass precious variables to config.status.
1201
 
  if test "$ac_new_set" = set; then
1202
 
    case $ac_new_val in
1203
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1205
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1206
 
    esac
1207
 
    case " $ac_configure_args " in
1208
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1209
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1210
 
    esac
1211
 
  fi
1212
 
done
1213
 
if $ac_cache_corrupted; then
1214
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1215
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1216
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1217
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1218
 
   { (exit 1); exit 1; }; }
1219
 
fi
1220
 
 
1221
 
ac_ext=c
1222
 
ac_cpp='$CPP $CPPFLAGS'
1223
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1224
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1225
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1226
 
 
1227
 
 
1228
 
 
1229
 
 
1230
 
 
1231
 
 
1232
 
 
1233
 
 
1234
 
 
1235
 
 
1236
 
 
1237
 
 
1238
 
 
1239
 
 
1240
 
 
1241
 
 
1242
 
 
1243
 
 
1244
 
ac_aux_dir=
1245
 
for ac_dir in admin $srcdir/admin; do
1246
 
  if test -f $ac_dir/install-sh; then
1247
 
    ac_aux_dir=$ac_dir
1248
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1249
 
    break
1250
 
  elif test -f $ac_dir/install.sh; then
1251
 
    ac_aux_dir=$ac_dir
1252
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1253
 
    break
1254
 
  elif test -f $ac_dir/shtool; then
1255
 
    ac_aux_dir=$ac_dir
1256
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1257
 
    break
1258
 
  fi
1259
 
done
1260
 
if test -z "$ac_aux_dir"; then
1261
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1262
 
echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1263
 
   { (exit 1); exit 1; }; }
1264
 
fi
1265
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1266
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1267
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1268
 
 
1269
 
 
1270
 
unset CDPATH
1271
 
 
1272
 
# Make sure we can run config.sub.
1273
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1274
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1275
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1276
 
   { (exit 1); exit 1; }; }
1277
 
 
1278
 
echo "$as_me:$LINENO: checking build system type" >&5
1279
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1280
 
if test "${ac_cv_build+set}" = set; then
1281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1282
 
else
1283
 
  ac_cv_build_alias=$build_alias
1284
 
test -z "$ac_cv_build_alias" &&
1285
 
  ac_cv_build_alias=`$ac_config_guess`
1286
 
test -z "$ac_cv_build_alias" &&
1287
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1288
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1289
 
   { (exit 1); exit 1; }; }
1290
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1291
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1292
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1293
 
   { (exit 1); exit 1; }; }
1294
 
 
1295
 
fi
1296
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1297
 
echo "${ECHO_T}$ac_cv_build" >&6
1298
 
build=$ac_cv_build
1299
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1300
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1301
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1302
 
 
1303
 
 
1304
 
echo "$as_me:$LINENO: checking host system type" >&5
1305
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1306
 
if test "${ac_cv_host+set}" = set; then
1307
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1308
 
else
1309
 
  ac_cv_host_alias=$host_alias
1310
 
test -z "$ac_cv_host_alias" &&
1311
 
  ac_cv_host_alias=$ac_cv_build_alias
1312
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1313
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1314
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1315
 
   { (exit 1); exit 1; }; }
1316
 
 
1317
 
fi
1318
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1319
 
echo "${ECHO_T}$ac_cv_host" >&6
1320
 
host=$ac_cv_host
1321
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1322
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1323
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324
 
 
1325
 
 
1326
 
echo "$as_me:$LINENO: checking target system type" >&5
1327
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1328
 
if test "${ac_cv_target+set}" = set; then
1329
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1330
 
else
1331
 
  ac_cv_target_alias=$target_alias
1332
 
test "x$ac_cv_target_alias" = "x" &&
1333
 
  ac_cv_target_alias=$ac_cv_host_alias
1334
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1335
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1336
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1337
 
   { (exit 1); exit 1; }; }
1338
 
 
1339
 
fi
1340
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1341
 
echo "${ECHO_T}$ac_cv_target" >&6
1342
 
target=$ac_cv_target
1343
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346
 
 
1347
 
 
1348
 
# The aliases save the names the user supplied, while $host etc.
1349
 
# will get canonicalized.
1350
 
test -n "$target_alias" &&
1351
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1352
 
    NONENONEs,x,x, &&
1353
 
  program_prefix=${target_alias}-
1354
 
test "$program_prefix" != NONE &&
1355
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1356
 
# Use a double $ so make ignores it.
1357
 
test "$program_suffix" != NONE &&
1358
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1359
 
# Double any \ or $.  echo might interpret backslashes.
1360
 
# By default was `s,x,x', remove it if useless.
1361
 
cat <<\_ACEOF >conftest.sed
1362
 
s/[\\$]/&&/g;s/;s,x,x,$//
1363
 
_ACEOF
1364
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1365
 
rm conftest.sed
1366
 
 
1367
 
 
1368
 
 
1369
 
 
1370
 
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1371
 
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1372
 
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1373
 
  # Find a good install program.  We prefer a C program (faster),
1374
 
# so one script is as good as another.  But avoid the broken or
1375
 
# incompatible versions:
1376
 
# SysV /etc/install, /usr/sbin/install
1377
 
# SunOS /usr/etc/install
1378
 
# IRIX /sbin/install
1379
 
# AIX /bin/install
1380
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1381
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1382
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1383
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1384
 
# ./install, which can be erroneously created by make from ./install.sh.
1385
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1386
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1387
 
if test -z "$INSTALL"; then
1388
 
if test "${ac_cv_path_install+set}" = set; then
1389
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1390
 
else
1391
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392
 
for as_dir in $PATH
1393
 
do
1394
 
  IFS=$as_save_IFS
1395
 
  test -z "$as_dir" && as_dir=.
1396
 
  # Account for people who put trailing slashes in PATH elements.
1397
 
case $as_dir/ in
1398
 
  ./ | .// | /cC/* | \
1399
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1400
 
  /usr/ucb/* ) ;;
1401
 
  *)
1402
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1403
 
    # Don't use installbsd from OSF since it installs stuff as root
1404
 
    # by default.
1405
 
    for ac_prog in ginstall scoinst install; do
1406
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1407
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1408
 
          if test $ac_prog = install &&
1409
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1410
 
            # AIX install.  It has an incompatible calling convention.
1411
 
            :
1412
 
          elif test $ac_prog = install &&
1413
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1414
 
            # program-specific install script used by HP pwplus--don't use.
1415
 
            :
1416
 
          else
1417
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1418
 
            break 3
1419
 
          fi
1420
 
        fi
1421
 
      done
1422
 
    done
1423
 
    ;;
1424
 
esac
1425
 
done
1426
 
 
1427
 
 
1428
 
fi
1429
 
  if test "${ac_cv_path_install+set}" = set; then
1430
 
    INSTALL=$ac_cv_path_install
1431
 
  else
1432
 
    # As a last resort, use the slow shell script.  We don't cache a
1433
 
    # path for INSTALL within a source directory, because that will
1434
 
    # break other packages using the cache if that directory is
1435
 
    # removed, or if the path is relative.
1436
 
    INSTALL=$ac_install_sh
1437
 
  fi
1438
 
fi
1439
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1440
 
echo "${ECHO_T}$INSTALL" >&6
1441
 
 
1442
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1443
 
# It thinks the first close brace ends the variable substitution.
1444
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1445
 
 
1446
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1447
 
 
1448
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1449
 
 
1450
 
 
1451
 
  if test -z "$kde_save_INSTALL_given" ; then
1452
 
    # OK, user hasn't given any INSTALL, autoconf found one for us
1453
 
    # now we test, if it supports the -p flag
1454
 
    echo "$as_me:$LINENO: checking for -p flag to install" >&5
1455
 
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1456
 
    rm -f confinst.$$.* > /dev/null 2>&1
1457
 
    echo "Testtest" > confinst.$$.orig
1458
 
    ac_res=no
1459
 
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1460
 
      if test -f confinst.$$.new ; then
1461
 
        # OK, -p seems to do no harm to install
1462
 
        INSTALL="${INSTALL} -p"
1463
 
        ac_res=yes
1464
 
      fi
1465
 
    fi
1466
 
    rm -f confinst.$$.*
1467
 
    echo "$as_me:$LINENO: result: $ac_res" >&5
1468
 
echo "${ECHO_T}$ac_res" >&6
1469
 
  fi
1470
 
 
1471
 
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1472
 
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1473
 
  fi
1474
 
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1475
 
    INSTALL_SCRIPT='${INSTALL}'
1476
 
  fi
1477
 
 
1478
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1479
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1480
 
# Just in case
1481
 
sleep 1
1482
 
echo timestamp > conftestfile
1483
 
# Do `set' in a subshell so we don't clobber the current shell's
1484
 
# arguments.  Must try -L first in case configure is actually a
1485
 
# symlink; some systems play weird games with the mod time of symlinks
1486
 
# (eg FreeBSD returns the mod time of the symlink's containing
1487
 
# directory).
1488
 
if (
1489
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1490
 
   if test "$*" = "X"; then
1491
 
      # -L didn't work.
1492
 
      set X `ls -t $srcdir/configure conftestfile`
1493
 
   fi
1494
 
   if test "$*" != "X $srcdir/configure conftestfile" \
1495
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
1496
 
 
1497
 
      # If neither matched, then we have a broken ls.  This can happen
1498
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1499
 
      # broken ls alias from the environment.  This has actually
1500
 
      # happened.  Such a system could not be considered "sane".
1501
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1502
 
alias in your environment" >&5
1503
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1504
 
alias in your environment" >&2;}
1505
 
   { (exit 1); exit 1; }; }
1506
 
   fi
1507
 
 
1508
 
   test "$2" = conftestfile
1509
 
   )
1510
 
then
1511
 
   # Ok.
1512
 
   :
1513
 
else
1514
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1515
 
Check your system clock" >&5
1516
 
echo "$as_me: error: newly created file is older than distributed files!
1517
 
Check your system clock" >&2;}
1518
 
   { (exit 1); exit 1; }; }
1519
 
fi
1520
 
rm -f conftest*
1521
 
echo "$as_me:$LINENO: result: yes" >&5
1522
 
echo "${ECHO_T}yes" >&6
1523
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1524
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1525
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1526
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1527
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1528
 
else
1529
 
  cat >conftest.make <<\_ACEOF
1530
 
all:
1531
 
        @echo 'ac_maketemp="${MAKE}"'
1532
 
_ACEOF
1533
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1534
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1535
 
if test -n "$ac_maketemp"; then
1536
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1537
 
else
1538
 
  eval ac_cv_prog_make_${ac_make}_set=no
1539
 
fi
1540
 
rm -f conftest.make
1541
 
fi
1542
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1543
 
  echo "$as_me:$LINENO: result: yes" >&5
1544
 
echo "${ECHO_T}yes" >&6
1545
 
  SET_MAKE=
1546
 
else
1547
 
  echo "$as_me:$LINENO: result: no" >&5
1548
 
echo "${ECHO_T}no" >&6
1549
 
  SET_MAKE="MAKE=${MAKE-make}"
1550
 
fi
1551
 
 
1552
 
 
1553
 
PACKAGE=knutclient
1554
 
 
1555
 
VERSION=0.7.1
1556
 
 
1557
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1558
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1559
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1560
 
   { (exit 1); exit 1; }; }
1561
 
fi
1562
 
 
1563
 
cat >>confdefs.h <<_ACEOF
1564
 
#define PACKAGE "$PACKAGE"
1565
 
_ACEOF
1566
 
 
1567
 
 
1568
 
cat >>confdefs.h <<_ACEOF
1569
 
#define VERSION "$VERSION"
1570
 
_ACEOF
1571
 
 
1572
 
 
1573
 
 
1574
 
missing_dir=`cd $ac_aux_dir && pwd`
1575
 
echo "$as_me:$LINENO: checking for working aclocal" >&5
1576
 
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1577
 
# Run test in a subshell; some versions of sh will print an error if
1578
 
# an executable is not found, even if stderr is redirected.
1579
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1580
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1581
 
   ACLOCAL=aclocal
1582
 
   echo "$as_me:$LINENO: result: found" >&5
1583
 
echo "${ECHO_T}found" >&6
1584
 
else
1585
 
   ACLOCAL="$missing_dir/missing aclocal"
1586
 
   echo "$as_me:$LINENO: result: missing" >&5
1587
 
echo "${ECHO_T}missing" >&6
1588
 
fi
1589
 
 
1590
 
echo "$as_me:$LINENO: checking for working autoconf" >&5
1591
 
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1592
 
# Run test in a subshell; some versions of sh will print an error if
1593
 
# an executable is not found, even if stderr is redirected.
1594
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1595
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1596
 
   AUTOCONF=autoconf
1597
 
   echo "$as_me:$LINENO: result: found" >&5
1598
 
echo "${ECHO_T}found" >&6
1599
 
else
1600
 
   AUTOCONF="$missing_dir/missing autoconf"
1601
 
   echo "$as_me:$LINENO: result: missing" >&5
1602
 
echo "${ECHO_T}missing" >&6
1603
 
fi
1604
 
 
1605
 
echo "$as_me:$LINENO: checking for working automake" >&5
1606
 
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1607
 
# Run test in a subshell; some versions of sh will print an error if
1608
 
# an executable is not found, even if stderr is redirected.
1609
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1610
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
1611
 
   AUTOMAKE=automake
1612
 
   echo "$as_me:$LINENO: result: found" >&5
1613
 
echo "${ECHO_T}found" >&6
1614
 
else
1615
 
   AUTOMAKE="$missing_dir/missing automake"
1616
 
   echo "$as_me:$LINENO: result: missing" >&5
1617
 
echo "${ECHO_T}missing" >&6
1618
 
fi
1619
 
 
1620
 
echo "$as_me:$LINENO: checking for working autoheader" >&5
1621
 
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1622
 
# Run test in a subshell; some versions of sh will print an error if
1623
 
# an executable is not found, even if stderr is redirected.
1624
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1625
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1626
 
   AUTOHEADER=autoheader
1627
 
   echo "$as_me:$LINENO: result: found" >&5
1628
 
echo "${ECHO_T}found" >&6
1629
 
else
1630
 
   AUTOHEADER="$missing_dir/missing autoheader"
1631
 
   echo "$as_me:$LINENO: result: missing" >&5
1632
 
echo "${ECHO_T}missing" >&6
1633
 
fi
1634
 
 
1635
 
echo "$as_me:$LINENO: checking for working makeinfo" >&5
1636
 
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1637
 
# Run test in a subshell; some versions of sh will print an error if
1638
 
# an executable is not found, even if stderr is redirected.
1639
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1640
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1641
 
   MAKEINFO=makeinfo
1642
 
   echo "$as_me:$LINENO: result: found" >&5
1643
 
echo "${ECHO_T}found" >&6
1644
 
else
1645
 
   MAKEINFO="$missing_dir/missing makeinfo"
1646
 
   echo "$as_me:$LINENO: result: missing" >&5
1647
 
echo "${ECHO_T}missing" >&6
1648
 
fi
1649
 
 
1650
 
 
1651
 
 
1652
 
  unset CDPATH
1653
 
 
1654
 
 
1655
 
  if test "x$prefix" = "xNONE"; then
1656
 
    prefix=$ac_default_prefix
1657
 
    ac_configure_args="$ac_configure_args --prefix=$prefix"
1658
 
  fi
1659
 
  # And delete superflous '/' to make compares easier
1660
 
  prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
1661
 
  exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
1662
 
 
1663
 
    # Check whether --enable-fast-perl or --disable-fast-perl was given.
1664
 
if test "${enable_fast_perl+set}" = set; then
1665
 
  enableval="$enable_fast_perl"
1666
 
  with_fast_perl=$enableval
1667
 
else
1668
 
  with_fast_perl=yes
1669
 
fi;
1670
 
 
1671
 
 
1672
 
  val=
1673
 
  if test -f $srcdir/configure.files ; then
1674
 
    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
1675
 
  fi
1676
 
  CONF_FILES=
1677
 
  if test -n "$val" ; then
1678
 
    for i in $val ; do
1679
 
      CONF_FILES="$CONF_FILES $i"
1680
 
    done
1681
 
  fi
1682
 
 
1683
 
 
1684
 
 
1685
 
 
1686
 
 
1687
 
ac_config_headers="$ac_config_headers config.h"
1688
 
 
1689
 
ac_config_commands="$ac_config_commands default-1"
1690
 
 
1691
 
 
1692
 
 
1693
 
  # Check whether --enable-debug or --disable-debug was given.
1694
 
if test "${enable_debug+set}" = set; then
1695
 
  enableval="$enable_debug"
1696
 
 
1697
 
    case $enableval in
1698
 
      yes)
1699
 
        kde_use_debug_code="yes"
1700
 
        kde_use_debug_define=no
1701
 
        ;;
1702
 
      full)
1703
 
        kde_use_debug_code="full"
1704
 
        kde_use_debug_define=no
1705
 
        ;;
1706
 
      *)
1707
 
        kde_use_debug_code="no"
1708
 
        kde_use_debug_define=yes
1709
 
        ;;
1710
 
    esac
1711
 
 
1712
 
else
1713
 
  kde_use_debug_code="no"
1714
 
      kde_use_debug_define=no
1715
 
 
1716
 
fi;
1717
 
 
1718
 
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
1719
 
if test "${enable_dummyoption+set}" = set; then
1720
 
  enableval="$enable_dummyoption"
1721
 
 
1722
 
fi;
1723
 
 
1724
 
  # Check whether --enable-strict or --disable-strict was given.
1725
 
if test "${enable_strict+set}" = set; then
1726
 
  enableval="$enable_strict"
1727
 
 
1728
 
    if test $enableval = "no"; then
1729
 
         kde_use_strict_options="no"
1730
 
       else
1731
 
         kde_use_strict_options="yes"
1732
 
    fi
1733
 
 
1734
 
else
1735
 
  kde_use_strict_options="no"
1736
 
fi;
1737
 
 
1738
 
  # Check whether --enable-warnings or --disable-warnings was given.
1739
 
if test "${enable_warnings+set}" = set; then
1740
 
  enableval="$enable_warnings"
1741
 
 
1742
 
    if test $enableval = "no"; then
1743
 
         kde_use_warnings="no"
1744
 
       else
1745
 
         kde_use_warnings="yes"
1746
 
    fi
1747
 
 
1748
 
else
1749
 
  kde_use_warnings="yes"
1750
 
fi;
1751
 
 
1752
 
    if test "$kde_use_debug_code" != "no"; then
1753
 
    kde_use_warnings=yes
1754
 
  fi
1755
 
 
1756
 
  # Check whether --enable-profile or --disable-profile was given.
1757
 
if test "${enable_profile+set}" = set; then
1758
 
  enableval="$enable_profile"
1759
 
  kde_use_profiling=$enableval
1760
 
else
1761
 
  kde_use_profiling="no"
1762
 
 
1763
 
fi;
1764
 
 
1765
 
    CFLAGS=" $CFLAGS"
1766
 
 
1767
 
  ac_ext=c
1768
 
ac_cpp='$CPP $CPPFLAGS'
1769
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1770
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1771
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
 
if test -n "$ac_tool_prefix"; then
1773
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1774
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1775
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1776
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777
 
if test "${ac_cv_prog_CC+set}" = set; then
1778
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1779
 
else
1780
 
  if test -n "$CC"; then
1781
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1782
 
else
1783
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784
 
for as_dir in $PATH
1785
 
do
1786
 
  IFS=$as_save_IFS
1787
 
  test -z "$as_dir" && as_dir=.
1788
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1789
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1791
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792
 
    break 2
1793
 
  fi
1794
 
done
1795
 
done
1796
 
 
1797
 
fi
1798
 
fi
1799
 
CC=$ac_cv_prog_CC
1800
 
if test -n "$CC"; then
1801
 
  echo "$as_me:$LINENO: result: $CC" >&5
1802
 
echo "${ECHO_T}$CC" >&6
1803
 
else
1804
 
  echo "$as_me:$LINENO: result: no" >&5
1805
 
echo "${ECHO_T}no" >&6
1806
 
fi
1807
 
 
1808
 
fi
1809
 
if test -z "$ac_cv_prog_CC"; then
1810
 
  ac_ct_CC=$CC
1811
 
  # Extract the first word of "gcc", so it can be a program name with args.
1812
 
set dummy gcc; ac_word=$2
1813
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1814
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1817
 
else
1818
 
  if test -n "$ac_ct_CC"; then
1819
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1820
 
else
1821
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822
 
for as_dir in $PATH
1823
 
do
1824
 
  IFS=$as_save_IFS
1825
 
  test -z "$as_dir" && as_dir=.
1826
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1827
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828
 
    ac_cv_prog_ac_ct_CC="gcc"
1829
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830
 
    break 2
1831
 
  fi
1832
 
done
1833
 
done
1834
 
 
1835
 
fi
1836
 
fi
1837
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1838
 
if test -n "$ac_ct_CC"; then
1839
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1840
 
echo "${ECHO_T}$ac_ct_CC" >&6
1841
 
else
1842
 
  echo "$as_me:$LINENO: result: no" >&5
1843
 
echo "${ECHO_T}no" >&6
1844
 
fi
1845
 
 
1846
 
  CC=$ac_ct_CC
1847
 
else
1848
 
  CC="$ac_cv_prog_CC"
1849
 
fi
1850
 
 
1851
 
if test -z "$CC"; then
1852
 
  if test -n "$ac_tool_prefix"; then
1853
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1854
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1855
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1856
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857
 
if test "${ac_cv_prog_CC+set}" = set; then
1858
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1859
 
else
1860
 
  if test -n "$CC"; then
1861
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1862
 
else
1863
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864
 
for as_dir in $PATH
1865
 
do
1866
 
  IFS=$as_save_IFS
1867
 
  test -z "$as_dir" && as_dir=.
1868
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1869
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1871
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872
 
    break 2
1873
 
  fi
1874
 
done
1875
 
done
1876
 
 
1877
 
fi
1878
 
fi
1879
 
CC=$ac_cv_prog_CC
1880
 
if test -n "$CC"; then
1881
 
  echo "$as_me:$LINENO: result: $CC" >&5
1882
 
echo "${ECHO_T}$CC" >&6
1883
 
else
1884
 
  echo "$as_me:$LINENO: result: no" >&5
1885
 
echo "${ECHO_T}no" >&6
1886
 
fi
1887
 
 
1888
 
fi
1889
 
if test -z "$ac_cv_prog_CC"; then
1890
 
  ac_ct_CC=$CC
1891
 
  # Extract the first word of "cc", so it can be a program name with args.
1892
 
set dummy cc; ac_word=$2
1893
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1894
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1896
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1897
 
else
1898
 
  if test -n "$ac_ct_CC"; then
1899
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1900
 
else
1901
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902
 
for as_dir in $PATH
1903
 
do
1904
 
  IFS=$as_save_IFS
1905
 
  test -z "$as_dir" && as_dir=.
1906
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1907
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908
 
    ac_cv_prog_ac_ct_CC="cc"
1909
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910
 
    break 2
1911
 
  fi
1912
 
done
1913
 
done
1914
 
 
1915
 
fi
1916
 
fi
1917
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1918
 
if test -n "$ac_ct_CC"; then
1919
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1920
 
echo "${ECHO_T}$ac_ct_CC" >&6
1921
 
else
1922
 
  echo "$as_me:$LINENO: result: no" >&5
1923
 
echo "${ECHO_T}no" >&6
1924
 
fi
1925
 
 
1926
 
  CC=$ac_ct_CC
1927
 
else
1928
 
  CC="$ac_cv_prog_CC"
1929
 
fi
1930
 
 
1931
 
fi
1932
 
if test -z "$CC"; then
1933
 
  # Extract the first word of "cc", so it can be a program name with args.
1934
 
set dummy cc; ac_word=$2
1935
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1936
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937
 
if test "${ac_cv_prog_CC+set}" = set; then
1938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1939
 
else
1940
 
  if test -n "$CC"; then
1941
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1942
 
else
1943
 
  ac_prog_rejected=no
1944
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945
 
for as_dir in $PATH
1946
 
do
1947
 
  IFS=$as_save_IFS
1948
 
  test -z "$as_dir" && as_dir=.
1949
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1950
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1952
 
       ac_prog_rejected=yes
1953
 
       continue
1954
 
     fi
1955
 
    ac_cv_prog_CC="cc"
1956
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957
 
    break 2
1958
 
  fi
1959
 
done
1960
 
done
1961
 
 
1962
 
if test $ac_prog_rejected = yes; then
1963
 
  # We found a bogon in the path, so make sure we never use it.
1964
 
  set dummy $ac_cv_prog_CC
1965
 
  shift
1966
 
  if test $# != 0; then
1967
 
    # We chose a different compiler from the bogus one.
1968
 
    # However, it has the same basename, so the bogon will be chosen
1969
 
    # first if we set CC to just the basename; use the full file name.
1970
 
    shift
1971
 
    set dummy "$as_dir/$ac_word" ${1+"$@"}
1972
 
    shift
1973
 
    ac_cv_prog_CC="$@"
1974
 
  fi
1975
 
fi
1976
 
fi
1977
 
fi
1978
 
CC=$ac_cv_prog_CC
1979
 
if test -n "$CC"; then
1980
 
  echo "$as_me:$LINENO: result: $CC" >&5
1981
 
echo "${ECHO_T}$CC" >&6
1982
 
else
1983
 
  echo "$as_me:$LINENO: result: no" >&5
1984
 
echo "${ECHO_T}no" >&6
1985
 
fi
1986
 
 
1987
 
fi
1988
 
if test -z "$CC"; then
1989
 
  if test -n "$ac_tool_prefix"; then
1990
 
  for ac_prog in cl
1991
 
  do
1992
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1993
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1994
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1995
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996
 
if test "${ac_cv_prog_CC+set}" = set; then
1997
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1998
 
else
1999
 
  if test -n "$CC"; then
2000
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2001
 
else
2002
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003
 
for as_dir in $PATH
2004
 
do
2005
 
  IFS=$as_save_IFS
2006
 
  test -z "$as_dir" && as_dir=.
2007
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2008
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2010
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011
 
    break 2
2012
 
  fi
2013
 
done
2014
 
done
2015
 
 
2016
 
fi
2017
 
fi
2018
 
CC=$ac_cv_prog_CC
2019
 
if test -n "$CC"; then
2020
 
  echo "$as_me:$LINENO: result: $CC" >&5
2021
 
echo "${ECHO_T}$CC" >&6
2022
 
else
2023
 
  echo "$as_me:$LINENO: result: no" >&5
2024
 
echo "${ECHO_T}no" >&6
2025
 
fi
2026
 
 
2027
 
    test -n "$CC" && break
2028
 
  done
2029
 
fi
2030
 
if test -z "$CC"; then
2031
 
  ac_ct_CC=$CC
2032
 
  for ac_prog in cl
2033
 
do
2034
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2035
 
set dummy $ac_prog; ac_word=$2
2036
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2037
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2040
 
else
2041
 
  if test -n "$ac_ct_CC"; then
2042
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043
 
else
2044
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045
 
for as_dir in $PATH
2046
 
do
2047
 
  IFS=$as_save_IFS
2048
 
  test -z "$as_dir" && as_dir=.
2049
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2050
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2052
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053
 
    break 2
2054
 
  fi
2055
 
done
2056
 
done
2057
 
 
2058
 
fi
2059
 
fi
2060
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061
 
if test -n "$ac_ct_CC"; then
2062
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063
 
echo "${ECHO_T}$ac_ct_CC" >&6
2064
 
else
2065
 
  echo "$as_me:$LINENO: result: no" >&5
2066
 
echo "${ECHO_T}no" >&6
2067
 
fi
2068
 
 
2069
 
  test -n "$ac_ct_CC" && break
2070
 
done
2071
 
 
2072
 
  CC=$ac_ct_CC
2073
 
fi
2074
 
 
2075
 
fi
2076
 
 
2077
 
 
2078
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2079
 
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2080
 
   { (exit 1); exit 1; }; }
2081
 
 
2082
 
# Provide some information about the compiler.
2083
 
echo "$as_me:$LINENO:" \
2084
 
     "checking for C compiler version" >&5
2085
 
ac_compiler=`set X $ac_compile; echo $2`
2086
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2087
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2088
 
  ac_status=$?
2089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090
 
  (exit $ac_status); }
2091
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2092
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2093
 
  ac_status=$?
2094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095
 
  (exit $ac_status); }
2096
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2097
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2098
 
  ac_status=$?
2099
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100
 
  (exit $ac_status); }
2101
 
 
2102
 
cat >conftest.$ac_ext <<_ACEOF
2103
 
#line $LINENO "configure"
2104
 
#include "confdefs.h"
2105
 
 
2106
 
#ifdef F77_DUMMY_MAIN
2107
 
#  ifdef __cplusplus
2108
 
     extern "C"
2109
 
#  endif
2110
 
   int F77_DUMMY_MAIN() { return 1; }
2111
 
#endif
2112
 
int
2113
 
main ()
2114
 
{
2115
 
 
2116
 
  ;
2117
 
  return 0;
2118
 
}
2119
 
_ACEOF
2120
 
ac_clean_files_save=$ac_clean_files
2121
 
ac_clean_files="$ac_clean_files a.out a.exe"
2122
 
# Try to create an executable without -o first, disregard a.out.
2123
 
# It will help us diagnose broken compilers, and finding out an intuition
2124
 
# of exeext.
2125
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2126
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2127
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2129
 
  (eval $ac_link_default) 2>&5
2130
 
  ac_status=$?
2131
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132
 
  (exit $ac_status); }; then
2133
 
  # Find the output, starting from the most likely.  This scheme is
2134
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2135
 
# resort.
2136
 
 
2137
 
# Be careful to initialize this variable, since it used to be cached.
2138
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2139
 
ac_cv_exeext=
2140
 
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2141
 
                ls a.out conftest 2>/dev/null;
2142
 
                ls a.* conftest.* 2>/dev/null`; do
2143
 
  case $ac_file in
2144
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2145
 
    a.out ) # We found the default executable, but exeext='' is most
2146
 
            # certainly right.
2147
 
            break;;
2148
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2150
 
          export ac_cv_exeext
2151
 
          break;;
2152
 
    * ) break;;
2153
 
  esac
2154
 
done
2155
 
else
2156
 
  echo "$as_me: failed program was:" >&5
2157
 
cat conftest.$ac_ext >&5
2158
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2159
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
2160
 
   { (exit 77); exit 77; }; }
2161
 
fi
2162
 
 
2163
 
ac_exeext=$ac_cv_exeext
2164
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2165
 
echo "${ECHO_T}$ac_file" >&6
2166
 
 
2167
 
# Check the compiler produces executables we can run.  If not, either
2168
 
# the compiler is broken, or we cross compile.
2169
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2170
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2171
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2172
 
# If not cross compiling, check that we can run a simple program.
2173
 
if test "$cross_compiling" != yes; then
2174
 
  if { ac_try='./$ac_file'
2175
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176
 
  (eval $ac_try) 2>&5
2177
 
  ac_status=$?
2178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179
 
  (exit $ac_status); }; }; then
2180
 
    cross_compiling=no
2181
 
  else
2182
 
    if test "$cross_compiling" = maybe; then
2183
 
        cross_compiling=yes
2184
 
    else
2185
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2186
 
If you meant to cross compile, use \`--host'." >&5
2187
 
echo "$as_me: error: cannot run C compiled programs.
2188
 
If you meant to cross compile, use \`--host'." >&2;}
2189
 
   { (exit 1); exit 1; }; }
2190
 
    fi
2191
 
  fi
2192
 
fi
2193
 
echo "$as_me:$LINENO: result: yes" >&5
2194
 
echo "${ECHO_T}yes" >&6
2195
 
 
2196
 
rm -f a.out a.exe conftest$ac_cv_exeext
2197
 
ac_clean_files=$ac_clean_files_save
2198
 
# Check the compiler produces executables we can run.  If not, either
2199
 
# the compiler is broken, or we cross compile.
2200
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2201
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2202
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2203
 
echo "${ECHO_T}$cross_compiling" >&6
2204
 
 
2205
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2206
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2207
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2208
 
  (eval $ac_link) 2>&5
2209
 
  ac_status=$?
2210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211
 
  (exit $ac_status); }; then
2212
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2213
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2214
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2215
 
# `rm'.
2216
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2217
 
  case $ac_file in
2218
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2219
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220
 
          export ac_cv_exeext
2221
 
          break;;
2222
 
    * ) break;;
2223
 
  esac
2224
 
done
2225
 
else
2226
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2227
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2228
 
   { (exit 1); exit 1; }; }
2229
 
fi
2230
 
 
2231
 
rm -f conftest$ac_cv_exeext
2232
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2234
 
 
2235
 
rm -f conftest.$ac_ext
2236
 
EXEEXT=$ac_cv_exeext
2237
 
ac_exeext=$EXEEXT
2238
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240
 
if test "${ac_cv_objext+set}" = set; then
2241
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2242
 
else
2243
 
  cat >conftest.$ac_ext <<_ACEOF
2244
 
#line $LINENO "configure"
2245
 
#include "confdefs.h"
2246
 
 
2247
 
#ifdef F77_DUMMY_MAIN
2248
 
#  ifdef __cplusplus
2249
 
     extern "C"
2250
 
#  endif
2251
 
   int F77_DUMMY_MAIN() { return 1; }
2252
 
#endif
2253
 
int
2254
 
main ()
2255
 
{
2256
 
 
2257
 
  ;
2258
 
  return 0;
2259
 
}
2260
 
_ACEOF
2261
 
rm -f conftest.o conftest.obj
2262
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263
 
  (eval $ac_compile) 2>&5
2264
 
  ac_status=$?
2265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266
 
  (exit $ac_status); }; then
2267
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2268
 
  case $ac_file in
2269
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2270
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2271
 
       break;;
2272
 
  esac
2273
 
done
2274
 
else
2275
 
  echo "$as_me: failed program was:" >&5
2276
 
cat conftest.$ac_ext >&5
2277
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2278
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2279
 
   { (exit 1); exit 1; }; }
2280
 
fi
2281
 
 
2282
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2283
 
fi
2284
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285
 
echo "${ECHO_T}$ac_cv_objext" >&6
2286
 
OBJEXT=$ac_cv_objext
2287
 
ac_objext=$OBJEXT
2288
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2289
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2292
 
else
2293
 
  cat >conftest.$ac_ext <<_ACEOF
2294
 
#line $LINENO "configure"
2295
 
#include "confdefs.h"
2296
 
 
2297
 
#ifdef F77_DUMMY_MAIN
2298
 
#  ifdef __cplusplus
2299
 
     extern "C"
2300
 
#  endif
2301
 
   int F77_DUMMY_MAIN() { return 1; }
2302
 
#endif
2303
 
int
2304
 
main ()
2305
 
{
2306
 
#ifndef __GNUC__
2307
 
       choke me
2308
 
#endif
2309
 
 
2310
 
  ;
2311
 
  return 0;
2312
 
}
2313
 
_ACEOF
2314
 
rm -f conftest.$ac_objext
2315
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316
 
  (eval $ac_compile) 2>&5
2317
 
  ac_status=$?
2318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319
 
  (exit $ac_status); } &&
2320
 
         { ac_try='test -s conftest.$ac_objext'
2321
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322
 
  (eval $ac_try) 2>&5
2323
 
  ac_status=$?
2324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325
 
  (exit $ac_status); }; }; then
2326
 
  ac_compiler_gnu=yes
2327
 
else
2328
 
  echo "$as_me: failed program was:" >&5
2329
 
cat conftest.$ac_ext >&5
2330
 
ac_compiler_gnu=no
2331
 
fi
2332
 
rm -f conftest.$ac_objext conftest.$ac_ext
2333
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2334
 
 
2335
 
fi
2336
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2337
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2338
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2339
 
ac_test_CFLAGS=${CFLAGS+set}
2340
 
ac_save_CFLAGS=$CFLAGS
2341
 
CFLAGS="-g"
2342
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2343
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2344
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2345
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2346
 
else
2347
 
  cat >conftest.$ac_ext <<_ACEOF
2348
 
#line $LINENO "configure"
2349
 
#include "confdefs.h"
2350
 
 
2351
 
#ifdef F77_DUMMY_MAIN
2352
 
#  ifdef __cplusplus
2353
 
     extern "C"
2354
 
#  endif
2355
 
   int F77_DUMMY_MAIN() { return 1; }
2356
 
#endif
2357
 
int
2358
 
main ()
2359
 
{
2360
 
 
2361
 
  ;
2362
 
  return 0;
2363
 
}
2364
 
_ACEOF
2365
 
rm -f conftest.$ac_objext
2366
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367
 
  (eval $ac_compile) 2>&5
2368
 
  ac_status=$?
2369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370
 
  (exit $ac_status); } &&
2371
 
         { ac_try='test -s conftest.$ac_objext'
2372
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373
 
  (eval $ac_try) 2>&5
2374
 
  ac_status=$?
2375
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
 
  (exit $ac_status); }; }; then
2377
 
  ac_cv_prog_cc_g=yes
2378
 
else
2379
 
  echo "$as_me: failed program was:" >&5
2380
 
cat conftest.$ac_ext >&5
2381
 
ac_cv_prog_cc_g=no
2382
 
fi
2383
 
rm -f conftest.$ac_objext conftest.$ac_ext
2384
 
fi
2385
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387
 
if test "$ac_test_CFLAGS" = set; then
2388
 
  CFLAGS=$ac_save_CFLAGS
2389
 
elif test $ac_cv_prog_cc_g = yes; then
2390
 
  if test "$GCC" = yes; then
2391
 
    CFLAGS="-g -O2"
2392
 
  else
2393
 
    CFLAGS="-g"
2394
 
  fi
2395
 
else
2396
 
  if test "$GCC" = yes; then
2397
 
    CFLAGS="-O2"
2398
 
  else
2399
 
    CFLAGS=
2400
 
  fi
2401
 
fi
2402
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2403
 
# in C++ we need to declare it.  In case someone uses the same compiler
2404
 
# for both compiling C and C++ we need to have the C++ compiler decide
2405
 
# the declaration of exit, since it's the most demanding environment.
2406
 
cat >conftest.$ac_ext <<_ACEOF
2407
 
#ifndef __cplusplus
2408
 
  choke me
2409
 
#endif
2410
 
_ACEOF
2411
 
rm -f conftest.$ac_objext
2412
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413
 
  (eval $ac_compile) 2>&5
2414
 
  ac_status=$?
2415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
 
  (exit $ac_status); } &&
2417
 
         { ac_try='test -s conftest.$ac_objext'
2418
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419
 
  (eval $ac_try) 2>&5
2420
 
  ac_status=$?
2421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422
 
  (exit $ac_status); }; }; then
2423
 
  for ac_declaration in \
2424
 
   ''\
2425
 
   '#include <stdlib.h>' \
2426
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2427
 
   'extern "C" void std::exit (int); using std::exit;' \
2428
 
   'extern "C" void exit (int) throw ();' \
2429
 
   'extern "C" void exit (int);' \
2430
 
   'void exit (int);'
2431
 
do
2432
 
  cat >conftest.$ac_ext <<_ACEOF
2433
 
#line $LINENO "configure"
2434
 
#include "confdefs.h"
2435
 
#include <stdlib.h>
2436
 
$ac_declaration
2437
 
#ifdef F77_DUMMY_MAIN
2438
 
#  ifdef __cplusplus
2439
 
     extern "C"
2440
 
#  endif
2441
 
   int F77_DUMMY_MAIN() { return 1; }
2442
 
#endif
2443
 
int
2444
 
main ()
2445
 
{
2446
 
exit (42);
2447
 
  ;
2448
 
  return 0;
2449
 
}
2450
 
_ACEOF
2451
 
rm -f conftest.$ac_objext
2452
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453
 
  (eval $ac_compile) 2>&5
2454
 
  ac_status=$?
2455
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456
 
  (exit $ac_status); } &&
2457
 
         { ac_try='test -s conftest.$ac_objext'
2458
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459
 
  (eval $ac_try) 2>&5
2460
 
  ac_status=$?
2461
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
 
  (exit $ac_status); }; }; then
2463
 
  :
2464
 
else
2465
 
  echo "$as_me: failed program was:" >&5
2466
 
cat conftest.$ac_ext >&5
2467
 
continue
2468
 
fi
2469
 
rm -f conftest.$ac_objext conftest.$ac_ext
2470
 
  cat >conftest.$ac_ext <<_ACEOF
2471
 
#line $LINENO "configure"
2472
 
#include "confdefs.h"
2473
 
$ac_declaration
2474
 
#ifdef F77_DUMMY_MAIN
2475
 
#  ifdef __cplusplus
2476
 
     extern "C"
2477
 
#  endif
2478
 
   int F77_DUMMY_MAIN() { return 1; }
2479
 
#endif
2480
 
int
2481
 
main ()
2482
 
{
2483
 
exit (42);
2484
 
  ;
2485
 
  return 0;
2486
 
}
2487
 
_ACEOF
2488
 
rm -f conftest.$ac_objext
2489
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490
 
  (eval $ac_compile) 2>&5
2491
 
  ac_status=$?
2492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
 
  (exit $ac_status); } &&
2494
 
         { ac_try='test -s conftest.$ac_objext'
2495
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496
 
  (eval $ac_try) 2>&5
2497
 
  ac_status=$?
2498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
 
  (exit $ac_status); }; }; then
2500
 
  break
2501
 
else
2502
 
  echo "$as_me: failed program was:" >&5
2503
 
cat conftest.$ac_ext >&5
2504
 
fi
2505
 
rm -f conftest.$ac_objext conftest.$ac_ext
2506
 
done
2507
 
rm -f conftest*
2508
 
if test -n "$ac_declaration"; then
2509
 
  echo '#ifdef __cplusplus' >>confdefs.h
2510
 
  echo $ac_declaration      >>confdefs.h
2511
 
  echo '#endif'             >>confdefs.h
2512
 
fi
2513
 
 
2514
 
else
2515
 
  echo "$as_me: failed program was:" >&5
2516
 
cat conftest.$ac_ext >&5
2517
 
fi
2518
 
rm -f conftest.$ac_objext conftest.$ac_ext
2519
 
ac_ext=c
2520
 
ac_cpp='$CPP $CPPFLAGS'
2521
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
 
 
2525
 
 
2526
 
  ac_ext=c
2527
 
ac_cpp='$CPP $CPPFLAGS'
2528
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2532
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2533
 
# On Suns, sometimes $CPP names a directory.
2534
 
if test -n "$CPP" && test -d "$CPP"; then
2535
 
  CPP=
2536
 
fi
2537
 
if test -z "$CPP"; then
2538
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2540
 
else
2541
 
      # Double quotes because CPP needs to be expanded
2542
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2543
 
    do
2544
 
      ac_preproc_ok=false
2545
 
for ac_c_preproc_warn_flag in '' yes
2546
 
do
2547
 
  # Use a header file that comes with gcc, so configuring glibc
2548
 
  # with a fresh cross-compiler works.
2549
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2550
 
  # not just through cpp. "Syntax error" is here to catch this case.
2551
 
  cat >conftest.$ac_ext <<_ACEOF
2552
 
#line $LINENO "configure"
2553
 
#include "confdefs.h"
2554
 
#include <assert.h>
2555
 
                     Syntax error
2556
 
_ACEOF
2557
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2558
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2559
 
  ac_status=$?
2560
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2561
 
  rm -f conftest.er1
2562
 
  cat conftest.err >&5
2563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
 
  (exit $ac_status); } >/dev/null; then
2565
 
  if test -s conftest.err; then
2566
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2567
 
  else
2568
 
    ac_cpp_err=
2569
 
  fi
2570
 
else
2571
 
  ac_cpp_err=yes
2572
 
fi
2573
 
if test -z "$ac_cpp_err"; then
2574
 
  :
2575
 
else
2576
 
  echo "$as_me: failed program was:" >&5
2577
 
  cat conftest.$ac_ext >&5
2578
 
  # Broken: fails on valid input.
2579
 
continue
2580
 
fi
2581
 
rm -f conftest.err conftest.$ac_ext
2582
 
 
2583
 
  # OK, works on sane cases.  Now check whether non-existent headers
2584
 
  # can be detected and how.
2585
 
  cat >conftest.$ac_ext <<_ACEOF
2586
 
#line $LINENO "configure"
2587
 
#include "confdefs.h"
2588
 
#include <ac_nonexistent.h>
2589
 
_ACEOF
2590
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592
 
  ac_status=$?
2593
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2594
 
  rm -f conftest.er1
2595
 
  cat conftest.err >&5
2596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597
 
  (exit $ac_status); } >/dev/null; then
2598
 
  if test -s conftest.err; then
2599
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2600
 
  else
2601
 
    ac_cpp_err=
2602
 
  fi
2603
 
else
2604
 
  ac_cpp_err=yes
2605
 
fi
2606
 
if test -z "$ac_cpp_err"; then
2607
 
  # Broken: success on invalid input.
2608
 
continue
2609
 
else
2610
 
  echo "$as_me: failed program was:" >&5
2611
 
  cat conftest.$ac_ext >&5
2612
 
  # Passes both tests.
2613
 
ac_preproc_ok=:
2614
 
break
2615
 
fi
2616
 
rm -f conftest.err conftest.$ac_ext
2617
 
 
2618
 
done
2619
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2620
 
rm -f conftest.err conftest.$ac_ext
2621
 
if $ac_preproc_ok; then
2622
 
  break
2623
 
fi
2624
 
 
2625
 
    done
2626
 
    ac_cv_prog_CPP=$CPP
2627
 
 
2628
 
fi
2629
 
  CPP=$ac_cv_prog_CPP
2630
 
else
2631
 
  ac_cv_prog_CPP=$CPP
2632
 
fi
2633
 
echo "$as_me:$LINENO: result: $CPP" >&5
2634
 
echo "${ECHO_T}$CPP" >&6
2635
 
ac_preproc_ok=false
2636
 
for ac_c_preproc_warn_flag in '' yes
2637
 
do
2638
 
  # Use a header file that comes with gcc, so configuring glibc
2639
 
  # with a fresh cross-compiler works.
2640
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2641
 
  # not just through cpp. "Syntax error" is here to catch this case.
2642
 
  cat >conftest.$ac_ext <<_ACEOF
2643
 
#line $LINENO "configure"
2644
 
#include "confdefs.h"
2645
 
#include <assert.h>
2646
 
                     Syntax error
2647
 
_ACEOF
2648
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2649
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2650
 
  ac_status=$?
2651
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2652
 
  rm -f conftest.er1
2653
 
  cat conftest.err >&5
2654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
 
  (exit $ac_status); } >/dev/null; then
2656
 
  if test -s conftest.err; then
2657
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2658
 
  else
2659
 
    ac_cpp_err=
2660
 
  fi
2661
 
else
2662
 
  ac_cpp_err=yes
2663
 
fi
2664
 
if test -z "$ac_cpp_err"; then
2665
 
  :
2666
 
else
2667
 
  echo "$as_me: failed program was:" >&5
2668
 
  cat conftest.$ac_ext >&5
2669
 
  # Broken: fails on valid input.
2670
 
continue
2671
 
fi
2672
 
rm -f conftest.err conftest.$ac_ext
2673
 
 
2674
 
  # OK, works on sane cases.  Now check whether non-existent headers
2675
 
  # can be detected and how.
2676
 
  cat >conftest.$ac_ext <<_ACEOF
2677
 
#line $LINENO "configure"
2678
 
#include "confdefs.h"
2679
 
#include <ac_nonexistent.h>
2680
 
_ACEOF
2681
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2682
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2683
 
  ac_status=$?
2684
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2685
 
  rm -f conftest.er1
2686
 
  cat conftest.err >&5
2687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
 
  (exit $ac_status); } >/dev/null; then
2689
 
  if test -s conftest.err; then
2690
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2691
 
  else
2692
 
    ac_cpp_err=
2693
 
  fi
2694
 
else
2695
 
  ac_cpp_err=yes
2696
 
fi
2697
 
if test -z "$ac_cpp_err"; then
2698
 
  # Broken: success on invalid input.
2699
 
continue
2700
 
else
2701
 
  echo "$as_me: failed program was:" >&5
2702
 
  cat conftest.$ac_ext >&5
2703
 
  # Passes both tests.
2704
 
ac_preproc_ok=:
2705
 
break
2706
 
fi
2707
 
rm -f conftest.err conftest.$ac_ext
2708
 
 
2709
 
done
2710
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2711
 
rm -f conftest.err conftest.$ac_ext
2712
 
if $ac_preproc_ok; then
2713
 
  :
2714
 
else
2715
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2716
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2717
 
   { (exit 1); exit 1; }; }
2718
 
fi
2719
 
 
2720
 
ac_ext=c
2721
 
ac_cpp='$CPP $CPPFLAGS'
2722
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
 
 
2726
 
 
2727
 
  if test "$GCC" = "yes"; then
2728
 
    if test "$kde_use_debug_code" != "no"; then
2729
 
      if test $kde_use_debug_code = "full"; then
2730
 
        CFLAGS="-g3 $CFLAGS"
2731
 
      else
2732
 
        CFLAGS="-g -O2 $CFLAGS"
2733
 
      fi
2734
 
    else
2735
 
      CFLAGS="-O2 $CFLAGS"
2736
 
    fi
2737
 
  fi
2738
 
 
2739
 
  if test "$kde_use_debug_define" = "yes"; then
2740
 
    CFLAGS="-DNDEBUG $CFLAGS"
2741
 
  fi
2742
 
 
2743
 
 
2744
 
  case "$host" in
2745
 
  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
2746
 
  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
2747
 
  esac
2748
 
 
2749
 
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
2750
 
     LDFLAGS=""
2751
 
  fi
2752
 
 
2753
 
  CXXFLAGS=" $CXXFLAGS"
2754
 
 
2755
 
  ac_ext=cc
2756
 
ac_cpp='$CXXCPP $CPPFLAGS'
2757
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760
 
if test -n "$ac_tool_prefix"; then
2761
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2762
 
  do
2763
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2765
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2766
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767
 
if test "${ac_cv_prog_CXX+set}" = set; then
2768
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2769
 
else
2770
 
  if test -n "$CXX"; then
2771
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2772
 
else
2773
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774
 
for as_dir in $PATH
2775
 
do
2776
 
  IFS=$as_save_IFS
2777
 
  test -z "$as_dir" && as_dir=.
2778
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2779
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2781
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782
 
    break 2
2783
 
  fi
2784
 
done
2785
 
done
2786
 
 
2787
 
fi
2788
 
fi
2789
 
CXX=$ac_cv_prog_CXX
2790
 
if test -n "$CXX"; then
2791
 
  echo "$as_me:$LINENO: result: $CXX" >&5
2792
 
echo "${ECHO_T}$CXX" >&6
2793
 
else
2794
 
  echo "$as_me:$LINENO: result: no" >&5
2795
 
echo "${ECHO_T}no" >&6
2796
 
fi
2797
 
 
2798
 
    test -n "$CXX" && break
2799
 
  done
2800
 
fi
2801
 
if test -z "$CXX"; then
2802
 
  ac_ct_CXX=$CXX
2803
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2804
 
do
2805
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2806
 
set dummy $ac_prog; ac_word=$2
2807
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2808
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2810
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2811
 
else
2812
 
  if test -n "$ac_ct_CXX"; then
2813
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2814
 
else
2815
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
 
for as_dir in $PATH
2817
 
do
2818
 
  IFS=$as_save_IFS
2819
 
  test -z "$as_dir" && as_dir=.
2820
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2821
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2823
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824
 
    break 2
2825
 
  fi
2826
 
done
2827
 
done
2828
 
 
2829
 
fi
2830
 
fi
2831
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2832
 
if test -n "$ac_ct_CXX"; then
2833
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2834
 
echo "${ECHO_T}$ac_ct_CXX" >&6
2835
 
else
2836
 
  echo "$as_me:$LINENO: result: no" >&5
2837
 
echo "${ECHO_T}no" >&6
2838
 
fi
2839
 
 
2840
 
  test -n "$ac_ct_CXX" && break
2841
 
done
2842
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2843
 
 
2844
 
  CXX=$ac_ct_CXX
2845
 
fi
2846
 
 
2847
 
 
2848
 
# Provide some information about the compiler.
2849
 
echo "$as_me:$LINENO:" \
2850
 
     "checking for C++ compiler version" >&5
2851
 
ac_compiler=`set X $ac_compile; echo $2`
2852
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2853
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2854
 
  ac_status=$?
2855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856
 
  (exit $ac_status); }
2857
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2858
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2859
 
  ac_status=$?
2860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861
 
  (exit $ac_status); }
2862
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2863
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2864
 
  ac_status=$?
2865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866
 
  (exit $ac_status); }
2867
 
 
2868
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2869
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2870
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2871
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2872
 
else
2873
 
  cat >conftest.$ac_ext <<_ACEOF
2874
 
#line $LINENO "configure"
2875
 
#include "confdefs.h"
2876
 
 
2877
 
#ifdef F77_DUMMY_MAIN
2878
 
#  ifdef __cplusplus
2879
 
     extern "C"
2880
 
#  endif
2881
 
   int F77_DUMMY_MAIN() { return 1; }
2882
 
#endif
2883
 
int
2884
 
main ()
2885
 
{
2886
 
#ifndef __GNUC__
2887
 
       choke me
2888
 
#endif
2889
 
 
2890
 
  ;
2891
 
  return 0;
2892
 
}
2893
 
_ACEOF
2894
 
rm -f conftest.$ac_objext
2895
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896
 
  (eval $ac_compile) 2>&5
2897
 
  ac_status=$?
2898
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899
 
  (exit $ac_status); } &&
2900
 
         { ac_try='test -s conftest.$ac_objext'
2901
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902
 
  (eval $ac_try) 2>&5
2903
 
  ac_status=$?
2904
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905
 
  (exit $ac_status); }; }; then
2906
 
  ac_compiler_gnu=yes
2907
 
else
2908
 
  echo "$as_me: failed program was:" >&5
2909
 
cat conftest.$ac_ext >&5
2910
 
ac_compiler_gnu=no
2911
 
fi
2912
 
rm -f conftest.$ac_objext conftest.$ac_ext
2913
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2914
 
 
2915
 
fi
2916
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2917
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2918
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
2919
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
2920
 
ac_save_CXXFLAGS=$CXXFLAGS
2921
 
CXXFLAGS="-g"
2922
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2923
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2924
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
2925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2926
 
else
2927
 
  cat >conftest.$ac_ext <<_ACEOF
2928
 
#line $LINENO "configure"
2929
 
#include "confdefs.h"
2930
 
 
2931
 
#ifdef F77_DUMMY_MAIN
2932
 
#  ifdef __cplusplus
2933
 
     extern "C"
2934
 
#  endif
2935
 
   int F77_DUMMY_MAIN() { return 1; }
2936
 
#endif
2937
 
int
2938
 
main ()
2939
 
{
2940
 
 
2941
 
  ;
2942
 
  return 0;
2943
 
}
2944
 
_ACEOF
2945
 
rm -f conftest.$ac_objext
2946
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947
 
  (eval $ac_compile) 2>&5
2948
 
  ac_status=$?
2949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
 
  (exit $ac_status); } &&
2951
 
         { ac_try='test -s conftest.$ac_objext'
2952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953
 
  (eval $ac_try) 2>&5
2954
 
  ac_status=$?
2955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956
 
  (exit $ac_status); }; }; then
2957
 
  ac_cv_prog_cxx_g=yes
2958
 
else
2959
 
  echo "$as_me: failed program was:" >&5
2960
 
cat conftest.$ac_ext >&5
2961
 
ac_cv_prog_cxx_g=no
2962
 
fi
2963
 
rm -f conftest.$ac_objext conftest.$ac_ext
2964
 
fi
2965
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2966
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2967
 
if test "$ac_test_CXXFLAGS" = set; then
2968
 
  CXXFLAGS=$ac_save_CXXFLAGS
2969
 
elif test $ac_cv_prog_cxx_g = yes; then
2970
 
  if test "$GXX" = yes; then
2971
 
    CXXFLAGS="-g -O2"
2972
 
  else
2973
 
    CXXFLAGS="-g"
2974
 
  fi
2975
 
else
2976
 
  if test "$GXX" = yes; then
2977
 
    CXXFLAGS="-O2"
2978
 
  else
2979
 
    CXXFLAGS=
2980
 
  fi
2981
 
fi
2982
 
for ac_declaration in \
2983
 
   ''\
2984
 
   '#include <stdlib.h>' \
2985
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2986
 
   'extern "C" void std::exit (int); using std::exit;' \
2987
 
   'extern "C" void exit (int) throw ();' \
2988
 
   'extern "C" void exit (int);' \
2989
 
   'void exit (int);'
2990
 
do
2991
 
  cat >conftest.$ac_ext <<_ACEOF
2992
 
#line $LINENO "configure"
2993
 
#include "confdefs.h"
2994
 
#include <stdlib.h>
2995
 
$ac_declaration
2996
 
#ifdef F77_DUMMY_MAIN
2997
 
#  ifdef __cplusplus
2998
 
     extern "C"
2999
 
#  endif
3000
 
   int F77_DUMMY_MAIN() { return 1; }
3001
 
#endif
3002
 
int
3003
 
main ()
3004
 
{
3005
 
exit (42);
3006
 
  ;
3007
 
  return 0;
3008
 
}
3009
 
_ACEOF
3010
 
rm -f conftest.$ac_objext
3011
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012
 
  (eval $ac_compile) 2>&5
3013
 
  ac_status=$?
3014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015
 
  (exit $ac_status); } &&
3016
 
         { ac_try='test -s conftest.$ac_objext'
3017
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018
 
  (eval $ac_try) 2>&5
3019
 
  ac_status=$?
3020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021
 
  (exit $ac_status); }; }; then
3022
 
  :
3023
 
else
3024
 
  echo "$as_me: failed program was:" >&5
3025
 
cat conftest.$ac_ext >&5
3026
 
continue
3027
 
fi
3028
 
rm -f conftest.$ac_objext conftest.$ac_ext
3029
 
  cat >conftest.$ac_ext <<_ACEOF
3030
 
#line $LINENO "configure"
3031
 
#include "confdefs.h"
3032
 
$ac_declaration
3033
 
#ifdef F77_DUMMY_MAIN
3034
 
#  ifdef __cplusplus
3035
 
     extern "C"
3036
 
#  endif
3037
 
   int F77_DUMMY_MAIN() { return 1; }
3038
 
#endif
3039
 
int
3040
 
main ()
3041
 
{
3042
 
exit (42);
3043
 
  ;
3044
 
  return 0;
3045
 
}
3046
 
_ACEOF
3047
 
rm -f conftest.$ac_objext
3048
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049
 
  (eval $ac_compile) 2>&5
3050
 
  ac_status=$?
3051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052
 
  (exit $ac_status); } &&
3053
 
         { ac_try='test -s conftest.$ac_objext'
3054
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055
 
  (eval $ac_try) 2>&5
3056
 
  ac_status=$?
3057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058
 
  (exit $ac_status); }; }; then
3059
 
  break
3060
 
else
3061
 
  echo "$as_me: failed program was:" >&5
3062
 
cat conftest.$ac_ext >&5
3063
 
fi
3064
 
rm -f conftest.$ac_objext conftest.$ac_ext
3065
 
done
3066
 
rm -f conftest*
3067
 
if test -n "$ac_declaration"; then
3068
 
  echo '#ifdef __cplusplus' >>confdefs.h
3069
 
  echo $ac_declaration      >>confdefs.h
3070
 
  echo '#endif'             >>confdefs.h
3071
 
fi
3072
 
 
3073
 
ac_ext=c
3074
 
ac_cpp='$CPP $CPPFLAGS'
3075
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
 
 
3079
 
 
3080
 
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
3081
 
    if test "$kde_use_debug_code" != "no"; then
3082
 
      if test "$CXX" = "KCC"; then
3083
 
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
3084
 
      else
3085
 
        if test "$kde_use_debug_code" = "full"; then
3086
 
          CXXFLAGS="-g3 $CXXFLAGS"
3087
 
        else
3088
 
          CXXFLAGS="-g -O2 $CXXFLAGS"
3089
 
        fi
3090
 
      fi
3091
 
 
3092
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
3093
 
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
3094
 
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
3095
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3096
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3097
 
else
3098
 
 
3099
 
 
3100
 
 
3101
 
 
3102
 
ac_ext=cc
3103
 
ac_cpp='$CXXCPP $CPPFLAGS'
3104
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3107
 
 
3108
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3109
 
 
3110
 
 
3111
 
 
3112
 
  save_CXXFLAGS="$CXXFLAGS"
3113
 
  CXXFLAGS="$CXXFLAGS -fno-builtin"
3114
 
  cat >conftest.$ac_ext <<_ACEOF
3115
 
#line $LINENO "configure"
3116
 
#include "confdefs.h"
3117
 
 
3118
 
#ifdef F77_DUMMY_MAIN
3119
 
#  ifdef __cplusplus
3120
 
     extern "C"
3121
 
#  endif
3122
 
   int F77_DUMMY_MAIN() { return 1; }
3123
 
#endif
3124
 
int
3125
 
main ()
3126
 
{
3127
 
 return 0;
3128
 
  ;
3129
 
  return 0;
3130
 
}
3131
 
_ACEOF
3132
 
rm -f conftest.$ac_objext conftest$ac_exeext
3133
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3134
 
  (eval $ac_link) 2>&5
3135
 
  ac_status=$?
3136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137
 
  (exit $ac_status); } &&
3138
 
         { ac_try='test -s conftest$ac_exeext'
3139
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140
 
  (eval $ac_try) 2>&5
3141
 
  ac_status=$?
3142
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143
 
  (exit $ac_status); }; }; then
3144
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3145
 
else
3146
 
  echo "$as_me: failed program was:" >&5
3147
 
cat conftest.$ac_ext >&5
3148
 
fi
3149
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3150
 
  CXXFLAGS="$save_CXXFLAGS"
3151
 
  ac_ext=c
3152
 
ac_cpp='$CPP $CPPFLAGS'
3153
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
 
 
3157
 
 
3158
 
fi
3159
 
 
3160
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3161
 
 echo "$as_me:$LINENO: result: yes" >&5
3162
 
echo "${ECHO_T}yes" >&6
3163
 
 :
3164
 
 CXXFLAGS="-fno-builtin $CXXFLAGS"
3165
 
else
3166
 
 echo "$as_me:$LINENO: result: no" >&5
3167
 
echo "${ECHO_T}no" >&6
3168
 
 :
3169
 
 
3170
 
fi
3171
 
 
3172
 
 
3173
 
 
3174
 
echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
3175
 
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
3176
 
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
3177
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3179
 
else
3180
 
 
3181
 
 
3182
 
 
3183
 
   ac_ext=cc
3184
 
ac_cpp='$CXXCPP $CPPFLAGS'
3185
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3188
 
 
3189
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3190
 
 
3191
 
 
3192
 
  save_CXXFLAGS="$CXXFLAGS"
3193
 
  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
3194
 
  cat >conftest.$ac_ext <<_ACEOF
3195
 
#line $LINENO "configure"
3196
 
#include "confdefs.h"
3197
 
 
3198
 
#ifdef F77_DUMMY_MAIN
3199
 
#  ifdef __cplusplus
3200
 
     extern "C"
3201
 
#  endif
3202
 
   int F77_DUMMY_MAIN() { return 1; }
3203
 
#endif
3204
 
int
3205
 
main ()
3206
 
{
3207
 
 return 0;
3208
 
  ;
3209
 
  return 0;
3210
 
}
3211
 
_ACEOF
3212
 
rm -f conftest.$ac_objext conftest$ac_exeext
3213
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214
 
  (eval $ac_link) 2>&5
3215
 
  ac_status=$?
3216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217
 
  (exit $ac_status); } &&
3218
 
         { ac_try='test -s conftest$ac_exeext'
3219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220
 
  (eval $ac_try) 2>&5
3221
 
  ac_status=$?
3222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223
 
  (exit $ac_status); }; }; then
3224
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3225
 
else
3226
 
  echo "$as_me: failed program was:" >&5
3227
 
cat conftest.$ac_ext >&5
3228
 
fi
3229
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3230
 
  CXXFLAGS="$save_CXXFLAGS"
3231
 
  ac_ext=c
3232
 
ac_cpp='$CPP $CPPFLAGS'
3233
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
 
 
3237
 
 
3238
 
fi
3239
 
 
3240
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3241
 
 echo "$as_me:$LINENO: result: yes" >&5
3242
 
echo "${ECHO_T}yes" >&6
3243
 
 :
3244
 
 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
3245
 
else
3246
 
 echo "$as_me:$LINENO: result: no" >&5
3247
 
echo "${ECHO_T}no" >&6
3248
 
 :
3249
 
 WOVERLOADED_VRITUAL=""
3250
 
fi
3251
 
 
3252
 
 
3253
 
    else
3254
 
      if test "$CXX" = "KCC"; then
3255
 
        CXXFLAGS="+K3 $CXXFLAGS"
3256
 
      else
3257
 
        CXXFLAGS="-O2 $CXXFLAGS"
3258
 
      fi
3259
 
    fi
3260
 
  fi
3261
 
 
3262
 
  if test "$kde_use_debug_define" = "yes"; then
3263
 
    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
3264
 
  fi
3265
 
 
3266
 
  if test "$kde_use_profiling" = "yes"; then
3267
 
 
3268
 
echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
3269
 
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
3270
 
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
3271
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3272
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3273
 
else
3274
 
 
3275
 
 
3276
 
 
3277
 
   ac_ext=cc
3278
 
ac_cpp='$CXXCPP $CPPFLAGS'
3279
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3282
 
 
3283
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3284
 
 
3285
 
 
3286
 
  save_CXXFLAGS="$CXXFLAGS"
3287
 
  CXXFLAGS="$CXXFLAGS -pg"
3288
 
  cat >conftest.$ac_ext <<_ACEOF
3289
 
#line $LINENO "configure"
3290
 
#include "confdefs.h"
3291
 
 
3292
 
#ifdef F77_DUMMY_MAIN
3293
 
#  ifdef __cplusplus
3294
 
     extern "C"
3295
 
#  endif
3296
 
   int F77_DUMMY_MAIN() { return 1; }
3297
 
#endif
3298
 
int
3299
 
main ()
3300
 
{
3301
 
 return 0;
3302
 
  ;
3303
 
  return 0;
3304
 
}
3305
 
_ACEOF
3306
 
rm -f conftest.$ac_objext conftest$ac_exeext
3307
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3308
 
  (eval $ac_link) 2>&5
3309
 
  ac_status=$?
3310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311
 
  (exit $ac_status); } &&
3312
 
         { ac_try='test -s conftest$ac_exeext'
3313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314
 
  (eval $ac_try) 2>&5
3315
 
  ac_status=$?
3316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317
 
  (exit $ac_status); }; }; then
3318
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3319
 
else
3320
 
  echo "$as_me: failed program was:" >&5
3321
 
cat conftest.$ac_ext >&5
3322
 
fi
3323
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3324
 
  CXXFLAGS="$save_CXXFLAGS"
3325
 
  ac_ext=c
3326
 
ac_cpp='$CPP $CPPFLAGS'
3327
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
 
 
3331
 
 
3332
 
fi
3333
 
 
3334
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3335
 
 echo "$as_me:$LINENO: result: yes" >&5
3336
 
echo "${ECHO_T}yes" >&6
3337
 
 :
3338
 
 
3339
 
      CFLAGS="-pg $CFLAGS"
3340
 
      CXXFLAGS="-pg $CXXFLAGS"
3341
 
 
3342
 
else
3343
 
 echo "$as_me:$LINENO: result: no" >&5
3344
 
echo "${ECHO_T}no" >&6
3345
 
 :
3346
 
 
3347
 
fi
3348
 
 
3349
 
  fi
3350
 
 
3351
 
  if test "$kde_use_warnings" = "yes"; then
3352
 
      if test "$GCC" = "yes"; then
3353
 
        case $host in
3354
 
          *-*-linux-gnu)
3355
 
            CFLAGS="-ansi -W -Wall -pedantic -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3356
 
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3357
 
 
3358
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
3359
 
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
3360
 
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
3361
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3362
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3363
 
else
3364
 
 
3365
 
 
3366
 
 
3367
 
   ac_ext=cc
3368
 
ac_cpp='$CXXCPP $CPPFLAGS'
3369
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3372
 
 
3373
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3374
 
 
3375
 
 
3376
 
  save_CXXFLAGS="$CXXFLAGS"
3377
 
  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
3378
 
  cat >conftest.$ac_ext <<_ACEOF
3379
 
#line $LINENO "configure"
3380
 
#include "confdefs.h"
3381
 
 
3382
 
#ifdef F77_DUMMY_MAIN
3383
 
#  ifdef __cplusplus
3384
 
     extern "C"
3385
 
#  endif
3386
 
   int F77_DUMMY_MAIN() { return 1; }
3387
 
#endif
3388
 
int
3389
 
main ()
3390
 
{
3391
 
 return 0;
3392
 
  ;
3393
 
  return 0;
3394
 
}
3395
 
_ACEOF
3396
 
rm -f conftest.$ac_objext conftest$ac_exeext
3397
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3398
 
  (eval $ac_link) 2>&5
3399
 
  ac_status=$?
3400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401
 
  (exit $ac_status); } &&
3402
 
         { ac_try='test -s conftest$ac_exeext'
3403
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404
 
  (eval $ac_try) 2>&5
3405
 
  ac_status=$?
3406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407
 
  (exit $ac_status); }; }; then
3408
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3409
 
else
3410
 
  echo "$as_me: failed program was:" >&5
3411
 
cat conftest.$ac_ext >&5
3412
 
fi
3413
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3414
 
  CXXFLAGS="$save_CXXFLAGS"
3415
 
  ac_ext=c
3416
 
ac_cpp='$CPP $CPPFLAGS'
3417
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420
 
 
3421
 
 
3422
 
fi
3423
 
 
3424
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3425
 
 echo "$as_me:$LINENO: result: yes" >&5
3426
 
echo "${ECHO_T}yes" >&6
3427
 
 :
3428
 
 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
3429
 
else
3430
 
 echo "$as_me:$LINENO: result: no" >&5
3431
 
echo "${ECHO_T}no" >&6
3432
 
 :
3433
 
 
3434
 
fi
3435
 
 
3436
 
          ;;
3437
 
        esac
3438
 
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
3439
 
 
3440
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
3441
 
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
3442
 
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
3443
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3444
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3445
 
else
3446
 
 
3447
 
 
3448
 
 
3449
 
   ac_ext=cc
3450
 
ac_cpp='$CXXCPP $CPPFLAGS'
3451
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3454
 
 
3455
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3456
 
 
3457
 
 
3458
 
  save_CXXFLAGS="$CXXFLAGS"
3459
 
  CXXFLAGS="$CXXFLAGS -Wundef"
3460
 
  cat >conftest.$ac_ext <<_ACEOF
3461
 
#line $LINENO "configure"
3462
 
#include "confdefs.h"
3463
 
 
3464
 
#ifdef F77_DUMMY_MAIN
3465
 
#  ifdef __cplusplus
3466
 
     extern "C"
3467
 
#  endif
3468
 
   int F77_DUMMY_MAIN() { return 1; }
3469
 
#endif
3470
 
int
3471
 
main ()
3472
 
{
3473
 
 return 0;
3474
 
  ;
3475
 
  return 0;
3476
 
}
3477
 
_ACEOF
3478
 
rm -f conftest.$ac_objext conftest$ac_exeext
3479
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3480
 
  (eval $ac_link) 2>&5
3481
 
  ac_status=$?
3482
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483
 
  (exit $ac_status); } &&
3484
 
         { ac_try='test -s conftest$ac_exeext'
3485
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486
 
  (eval $ac_try) 2>&5
3487
 
  ac_status=$?
3488
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
 
  (exit $ac_status); }; }; then
3490
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3491
 
else
3492
 
  echo "$as_me: failed program was:" >&5
3493
 
cat conftest.$ac_ext >&5
3494
 
fi
3495
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3496
 
  CXXFLAGS="$save_CXXFLAGS"
3497
 
  ac_ext=c
3498
 
ac_cpp='$CPP $CPPFLAGS'
3499
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
 
 
3503
 
 
3504
 
fi
3505
 
 
3506
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3507
 
 echo "$as_me:$LINENO: result: yes" >&5
3508
 
echo "${ECHO_T}yes" >&6
3509
 
 :
3510
 
 CXXFLAGS="-Wundef $CXXFLAGS"
3511
 
else
3512
 
 echo "$as_me:$LINENO: result: no" >&5
3513
 
echo "${ECHO_T}no" >&6
3514
 
 :
3515
 
 
3516
 
fi
3517
 
 
3518
 
 
3519
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
3520
 
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
3521
 
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
3522
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3523
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3524
 
else
3525
 
 
3526
 
 
3527
 
 
3528
 
   ac_ext=cc
3529
 
ac_cpp='$CXXCPP $CPPFLAGS'
3530
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3533
 
 
3534
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3535
 
 
3536
 
 
3537
 
  save_CXXFLAGS="$CXXFLAGS"
3538
 
  CXXFLAGS="$CXXFLAGS -Wno-long-long"
3539
 
  cat >conftest.$ac_ext <<_ACEOF
3540
 
#line $LINENO "configure"
3541
 
#include "confdefs.h"
3542
 
 
3543
 
#ifdef F77_DUMMY_MAIN
3544
 
#  ifdef __cplusplus
3545
 
     extern "C"
3546
 
#  endif
3547
 
   int F77_DUMMY_MAIN() { return 1; }
3548
 
#endif
3549
 
int
3550
 
main ()
3551
 
{
3552
 
 return 0;
3553
 
  ;
3554
 
  return 0;
3555
 
}
3556
 
_ACEOF
3557
 
rm -f conftest.$ac_objext conftest$ac_exeext
3558
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3559
 
  (eval $ac_link) 2>&5
3560
 
  ac_status=$?
3561
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562
 
  (exit $ac_status); } &&
3563
 
         { ac_try='test -s conftest$ac_exeext'
3564
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565
 
  (eval $ac_try) 2>&5
3566
 
  ac_status=$?
3567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568
 
  (exit $ac_status); }; }; then
3569
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3570
 
else
3571
 
  echo "$as_me: failed program was:" >&5
3572
 
cat conftest.$ac_ext >&5
3573
 
fi
3574
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3575
 
  CXXFLAGS="$save_CXXFLAGS"
3576
 
  ac_ext=c
3577
 
ac_cpp='$CPP $CPPFLAGS'
3578
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
 
 
3582
 
 
3583
 
fi
3584
 
 
3585
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3586
 
 echo "$as_me:$LINENO: result: yes" >&5
3587
 
echo "${ECHO_T}yes" >&6
3588
 
 :
3589
 
 CXXFLAGS="-Wno-long-long $CXXFLAGS"
3590
 
else
3591
 
 echo "$as_me:$LINENO: result: no" >&5
3592
 
echo "${ECHO_T}no" >&6
3593
 
 :
3594
 
 
3595
 
fi
3596
 
 
3597
 
 
3598
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
3599
 
echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
3600
 
kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
3601
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3603
 
else
3604
 
 
3605
 
 
3606
 
 
3607
 
   ac_ext=cc
3608
 
ac_cpp='$CXXCPP $CPPFLAGS'
3609
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3612
 
 
3613
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3614
 
 
3615
 
 
3616
 
  save_CXXFLAGS="$CXXFLAGS"
3617
 
  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
3618
 
  cat >conftest.$ac_ext <<_ACEOF
3619
 
#line $LINENO "configure"
3620
 
#include "confdefs.h"
3621
 
 
3622
 
#ifdef F77_DUMMY_MAIN
3623
 
#  ifdef __cplusplus
3624
 
     extern "C"
3625
 
#  endif
3626
 
   int F77_DUMMY_MAIN() { return 1; }
3627
 
#endif
3628
 
int
3629
 
main ()
3630
 
{
3631
 
 return 0;
3632
 
  ;
3633
 
  return 0;
3634
 
}
3635
 
_ACEOF
3636
 
rm -f conftest.$ac_objext conftest$ac_exeext
3637
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3638
 
  (eval $ac_link) 2>&5
3639
 
  ac_status=$?
3640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
 
  (exit $ac_status); } &&
3642
 
         { ac_try='test -s conftest$ac_exeext'
3643
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644
 
  (eval $ac_try) 2>&5
3645
 
  ac_status=$?
3646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647
 
  (exit $ac_status); }; }; then
3648
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3649
 
else
3650
 
  echo "$as_me: failed program was:" >&5
3651
 
cat conftest.$ac_ext >&5
3652
 
fi
3653
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3654
 
  CXXFLAGS="$save_CXXFLAGS"
3655
 
  ac_ext=c
3656
 
ac_cpp='$CPP $CPPFLAGS'
3657
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
 
 
3661
 
 
3662
 
fi
3663
 
 
3664
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3665
 
 echo "$as_me:$LINENO: result: yes" >&5
3666
 
echo "${ECHO_T}yes" >&6
3667
 
 :
3668
 
 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
3669
 
else
3670
 
 echo "$as_me:$LINENO: result: no" >&5
3671
 
echo "${ECHO_T}no" >&6
3672
 
 :
3673
 
 
3674
 
fi
3675
 
 
3676
 
     fi
3677
 
  fi
3678
 
 
3679
 
  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
3680
 
    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
3681
 
  fi
3682
 
 
3683
 
  if test "$GXX" = "yes"; then
3684
 
 
3685
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
3686
 
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
3687
 
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
3688
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3689
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3690
 
else
3691
 
 
3692
 
 
3693
 
 
3694
 
   ac_ext=cc
3695
 
ac_cpp='$CXXCPP $CPPFLAGS'
3696
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3699
 
 
3700
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3701
 
 
3702
 
 
3703
 
  save_CXXFLAGS="$CXXFLAGS"
3704
 
  CXXFLAGS="$CXXFLAGS -fno-exceptions"
3705
 
  cat >conftest.$ac_ext <<_ACEOF
3706
 
#line $LINENO "configure"
3707
 
#include "confdefs.h"
3708
 
 
3709
 
#ifdef F77_DUMMY_MAIN
3710
 
#  ifdef __cplusplus
3711
 
     extern "C"
3712
 
#  endif
3713
 
   int F77_DUMMY_MAIN() { return 1; }
3714
 
#endif
3715
 
int
3716
 
main ()
3717
 
{
3718
 
 return 0;
3719
 
  ;
3720
 
  return 0;
3721
 
}
3722
 
_ACEOF
3723
 
rm -f conftest.$ac_objext conftest$ac_exeext
3724
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3725
 
  (eval $ac_link) 2>&5
3726
 
  ac_status=$?
3727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728
 
  (exit $ac_status); } &&
3729
 
         { ac_try='test -s conftest$ac_exeext'
3730
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731
 
  (eval $ac_try) 2>&5
3732
 
  ac_status=$?
3733
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
 
  (exit $ac_status); }; }; then
3735
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3736
 
else
3737
 
  echo "$as_me: failed program was:" >&5
3738
 
cat conftest.$ac_ext >&5
3739
 
fi
3740
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3741
 
  CXXFLAGS="$save_CXXFLAGS"
3742
 
  ac_ext=c
3743
 
ac_cpp='$CPP $CPPFLAGS'
3744
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
 
 
3748
 
 
3749
 
fi
3750
 
 
3751
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3752
 
 echo "$as_me:$LINENO: result: yes" >&5
3753
 
echo "${ECHO_T}yes" >&6
3754
 
 :
3755
 
 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3756
 
else
3757
 
 echo "$as_me:$LINENO: result: no" >&5
3758
 
echo "${ECHO_T}no" >&6
3759
 
 :
3760
 
 
3761
 
fi
3762
 
 
3763
 
 
3764
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
3765
 
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
3766
 
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
3767
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3768
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3769
 
else
3770
 
 
3771
 
 
3772
 
 
3773
 
   ac_ext=cc
3774
 
ac_cpp='$CXXCPP $CPPFLAGS'
3775
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3778
 
 
3779
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3780
 
 
3781
 
 
3782
 
  save_CXXFLAGS="$CXXFLAGS"
3783
 
  CXXFLAGS="$CXXFLAGS -fno-check-new"
3784
 
  cat >conftest.$ac_ext <<_ACEOF
3785
 
#line $LINENO "configure"
3786
 
#include "confdefs.h"
3787
 
 
3788
 
#ifdef F77_DUMMY_MAIN
3789
 
#  ifdef __cplusplus
3790
 
     extern "C"
3791
 
#  endif
3792
 
   int F77_DUMMY_MAIN() { return 1; }
3793
 
#endif
3794
 
int
3795
 
main ()
3796
 
{
3797
 
 return 0;
3798
 
  ;
3799
 
  return 0;
3800
 
}
3801
 
_ACEOF
3802
 
rm -f conftest.$ac_objext conftest$ac_exeext
3803
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804
 
  (eval $ac_link) 2>&5
3805
 
  ac_status=$?
3806
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
 
  (exit $ac_status); } &&
3808
 
         { ac_try='test -s conftest$ac_exeext'
3809
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810
 
  (eval $ac_try) 2>&5
3811
 
  ac_status=$?
3812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
 
  (exit $ac_status); }; }; then
3814
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3815
 
else
3816
 
  echo "$as_me: failed program was:" >&5
3817
 
cat conftest.$ac_ext >&5
3818
 
fi
3819
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3820
 
  CXXFLAGS="$save_CXXFLAGS"
3821
 
  ac_ext=c
3822
 
ac_cpp='$CPP $CPPFLAGS'
3823
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
 
 
3827
 
 
3828
 
fi
3829
 
 
3830
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3831
 
 echo "$as_me:$LINENO: result: yes" >&5
3832
 
echo "${ECHO_T}yes" >&6
3833
 
 :
3834
 
 CXXFLAGS="$CXXFLAGS -fno-check-new"
3835
 
else
3836
 
 echo "$as_me:$LINENO: result: no" >&5
3837
 
echo "${ECHO_T}no" >&6
3838
 
 :
3839
 
 
3840
 
fi
3841
 
 
3842
 
 
3843
 
echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
3844
 
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
3845
 
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
3846
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3848
 
else
3849
 
 
3850
 
 
3851
 
 
3852
 
   ac_ext=cc
3853
 
ac_cpp='$CXXCPP $CPPFLAGS'
3854
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3857
 
 
3858
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3859
 
 
3860
 
 
3861
 
  save_CXXFLAGS="$CXXFLAGS"
3862
 
  CXXFLAGS="$CXXFLAGS -fno-common"
3863
 
  cat >conftest.$ac_ext <<_ACEOF
3864
 
#line $LINENO "configure"
3865
 
#include "confdefs.h"
3866
 
 
3867
 
#ifdef F77_DUMMY_MAIN
3868
 
#  ifdef __cplusplus
3869
 
     extern "C"
3870
 
#  endif
3871
 
   int F77_DUMMY_MAIN() { return 1; }
3872
 
#endif
3873
 
int
3874
 
main ()
3875
 
{
3876
 
 return 0;
3877
 
  ;
3878
 
  return 0;
3879
 
}
3880
 
_ACEOF
3881
 
rm -f conftest.$ac_objext conftest$ac_exeext
3882
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883
 
  (eval $ac_link) 2>&5
3884
 
  ac_status=$?
3885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886
 
  (exit $ac_status); } &&
3887
 
         { ac_try='test -s conftest$ac_exeext'
3888
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889
 
  (eval $ac_try) 2>&5
3890
 
  ac_status=$?
3891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
 
  (exit $ac_status); }; }; then
3893
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3894
 
else
3895
 
  echo "$as_me: failed program was:" >&5
3896
 
cat conftest.$ac_ext >&5
3897
 
fi
3898
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3899
 
  CXXFLAGS="$save_CXXFLAGS"
3900
 
  ac_ext=c
3901
 
ac_cpp='$CPP $CPPFLAGS'
3902
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
 
 
3906
 
 
3907
 
fi
3908
 
 
3909
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3910
 
 echo "$as_me:$LINENO: result: yes" >&5
3911
 
echo "${ECHO_T}yes" >&6
3912
 
 :
3913
 
 CXXFLAGS="$CXXFLAGS -fno-common"
3914
 
else
3915
 
 echo "$as_me:$LINENO: result: no" >&5
3916
 
echo "${ECHO_T}no" >&6
3917
 
 :
3918
 
 
3919
 
fi
3920
 
 
3921
 
 
3922
 
echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
3923
 
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
3924
 
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
3925
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3927
 
else
3928
 
 
3929
 
 
3930
 
 
3931
 
   ac_ext=cc
3932
 
ac_cpp='$CXXCPP $CPPFLAGS'
3933
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3936
 
 
3937
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3938
 
 
3939
 
 
3940
 
  save_CXXFLAGS="$CXXFLAGS"
3941
 
  CXXFLAGS="$CXXFLAGS -fexceptions"
3942
 
  cat >conftest.$ac_ext <<_ACEOF
3943
 
#line $LINENO "configure"
3944
 
#include "confdefs.h"
3945
 
 
3946
 
#ifdef F77_DUMMY_MAIN
3947
 
#  ifdef __cplusplus
3948
 
     extern "C"
3949
 
#  endif
3950
 
   int F77_DUMMY_MAIN() { return 1; }
3951
 
#endif
3952
 
int
3953
 
main ()
3954
 
{
3955
 
 return 0;
3956
 
  ;
3957
 
  return 0;
3958
 
}
3959
 
_ACEOF
3960
 
rm -f conftest.$ac_objext conftest$ac_exeext
3961
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3962
 
  (eval $ac_link) 2>&5
3963
 
  ac_status=$?
3964
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965
 
  (exit $ac_status); } &&
3966
 
         { ac_try='test -s conftest$ac_exeext'
3967
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968
 
  (eval $ac_try) 2>&5
3969
 
  ac_status=$?
3970
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971
 
  (exit $ac_status); }; }; then
3972
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
3973
 
else
3974
 
  echo "$as_me: failed program was:" >&5
3975
 
cat conftest.$ac_ext >&5
3976
 
fi
3977
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3978
 
  CXXFLAGS="$save_CXXFLAGS"
3979
 
  ac_ext=c
3980
 
ac_cpp='$CPP $CPPFLAGS'
3981
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984
 
 
3985
 
 
3986
 
fi
3987
 
 
3988
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3989
 
 echo "$as_me:$LINENO: result: yes" >&5
3990
 
echo "${ECHO_T}yes" >&6
3991
 
 :
3992
 
 USE_EXCEPTIONS="-fexceptions"
3993
 
else
3994
 
 echo "$as_me:$LINENO: result: no" >&5
3995
 
echo "${ECHO_T}no" >&6
3996
 
 :
3997
 
 USE_EXCEPTIONS=
3998
 
fi
3999
 
 
4000
 
  fi
4001
 
  if test "$CXX" = "KCC"; then
4002
 
 
4003
 
    # Check whether --enable-pch or --disable-pch was given.
4004
 
if test "${enable_pch+set}" = set; then
4005
 
  enableval="$enable_pch"
4006
 
 
4007
 
      kde_use_pch=$enableval
4008
 
 
4009
 
else
4010
 
  kde_use_pch=no
4011
 
fi;
4012
 
 
4013
 
    if test "$kde_use_pch" = "yes"; then
4014
 
 
4015
 
echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
4016
 
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
4017
 
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
4018
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4020
 
else
4021
 
 
4022
 
 
4023
 
 
4024
 
   ac_ext=cc
4025
 
ac_cpp='$CXXCPP $CPPFLAGS'
4026
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4029
 
 
4030
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4031
 
 
4032
 
 
4033
 
  save_CXXFLAGS="$CXXFLAGS"
4034
 
  CXXFLAGS="$CXXFLAGS --pch"
4035
 
  cat >conftest.$ac_ext <<_ACEOF
4036
 
#line $LINENO "configure"
4037
 
#include "confdefs.h"
4038
 
 
4039
 
#ifdef F77_DUMMY_MAIN
4040
 
#  ifdef __cplusplus
4041
 
     extern "C"
4042
 
#  endif
4043
 
   int F77_DUMMY_MAIN() { return 1; }
4044
 
#endif
4045
 
int
4046
 
main ()
4047
 
{
4048
 
 return 0;
4049
 
  ;
4050
 
  return 0;
4051
 
}
4052
 
_ACEOF
4053
 
rm -f conftest.$ac_objext conftest$ac_exeext
4054
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055
 
  (eval $ac_link) 2>&5
4056
 
  ac_status=$?
4057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058
 
  (exit $ac_status); } &&
4059
 
         { ac_try='test -s conftest$ac_exeext'
4060
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061
 
  (eval $ac_try) 2>&5
4062
 
  ac_status=$?
4063
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064
 
  (exit $ac_status); }; }; then
4065
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4066
 
else
4067
 
  echo "$as_me: failed program was:" >&5
4068
 
cat conftest.$ac_ext >&5
4069
 
fi
4070
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4071
 
  CXXFLAGS="$save_CXXFLAGS"
4072
 
  ac_ext=c
4073
 
ac_cpp='$CPP $CPPFLAGS'
4074
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
 
 
4078
 
 
4079
 
fi
4080
 
 
4081
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4082
 
 echo "$as_me:$LINENO: result: yes" >&5
4083
 
echo "${ECHO_T}yes" >&6
4084
 
 :
4085
 
 CXXFLAGS="$CXXFLAGS --pch"
4086
 
else
4087
 
 echo "$as_me:$LINENO: result: no" >&5
4088
 
echo "${ECHO_T}no" >&6
4089
 
 :
4090
 
 
4091
 
fi
4092
 
 
4093
 
                                              fi
4094
 
 
4095
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
4096
 
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
4097
 
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
4098
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4099
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4100
 
else
4101
 
 
4102
 
 
4103
 
 
4104
 
   ac_ext=cc
4105
 
ac_cpp='$CXXCPP $CPPFLAGS'
4106
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4109
 
 
4110
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4111
 
 
4112
 
 
4113
 
  save_CXXFLAGS="$CXXFLAGS"
4114
 
  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
4115
 
  cat >conftest.$ac_ext <<_ACEOF
4116
 
#line $LINENO "configure"
4117
 
#include "confdefs.h"
4118
 
 
4119
 
#ifdef F77_DUMMY_MAIN
4120
 
#  ifdef __cplusplus
4121
 
     extern "C"
4122
 
#  endif
4123
 
   int F77_DUMMY_MAIN() { return 1; }
4124
 
#endif
4125
 
int
4126
 
main ()
4127
 
{
4128
 
 return 0;
4129
 
  ;
4130
 
  return 0;
4131
 
}
4132
 
_ACEOF
4133
 
rm -f conftest.$ac_objext conftest$ac_exeext
4134
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135
 
  (eval $ac_link) 2>&5
4136
 
  ac_status=$?
4137
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138
 
  (exit $ac_status); } &&
4139
 
         { ac_try='test -s conftest$ac_exeext'
4140
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141
 
  (eval $ac_try) 2>&5
4142
 
  ac_status=$?
4143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144
 
  (exit $ac_status); }; }; then
4145
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4146
 
else
4147
 
  echo "$as_me: failed program was:" >&5
4148
 
cat conftest.$ac_ext >&5
4149
 
fi
4150
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4151
 
  CXXFLAGS="$save_CXXFLAGS"
4152
 
  ac_ext=c
4153
 
ac_cpp='$CPP $CPPFLAGS'
4154
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157
 
 
4158
 
 
4159
 
fi
4160
 
 
4161
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4162
 
 echo "$as_me:$LINENO: result: yes" >&5
4163
 
echo "${ECHO_T}yes" >&6
4164
 
 :
4165
 
 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
4166
 
else
4167
 
 echo "$as_me:$LINENO: result: no" >&5
4168
 
echo "${ECHO_T}no" >&6
4169
 
 :
4170
 
 
4171
 
fi
4172
 
 
4173
 
 
4174
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
4175
 
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
4176
 
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
4177
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4179
 
else
4180
 
 
4181
 
 
4182
 
 
4183
 
   ac_ext=cc
4184
 
ac_cpp='$CXXCPP $CPPFLAGS'
4185
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4188
 
 
4189
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4190
 
 
4191
 
 
4192
 
  save_CXXFLAGS="$CXXFLAGS"
4193
 
  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
4194
 
  cat >conftest.$ac_ext <<_ACEOF
4195
 
#line $LINENO "configure"
4196
 
#include "confdefs.h"
4197
 
 
4198
 
#ifdef F77_DUMMY_MAIN
4199
 
#  ifdef __cplusplus
4200
 
     extern "C"
4201
 
#  endif
4202
 
   int F77_DUMMY_MAIN() { return 1; }
4203
 
#endif
4204
 
int
4205
 
main ()
4206
 
{
4207
 
 return 0;
4208
 
  ;
4209
 
  return 0;
4210
 
}
4211
 
_ACEOF
4212
 
rm -f conftest.$ac_objext conftest$ac_exeext
4213
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214
 
  (eval $ac_link) 2>&5
4215
 
  ac_status=$?
4216
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
 
  (exit $ac_status); } &&
4218
 
         { ac_try='test -s conftest$ac_exeext'
4219
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220
 
  (eval $ac_try) 2>&5
4221
 
  ac_status=$?
4222
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
 
  (exit $ac_status); }; }; then
4224
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4225
 
else
4226
 
  echo "$as_me: failed program was:" >&5
4227
 
cat conftest.$ac_ext >&5
4228
 
fi
4229
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4230
 
  CXXFLAGS="$save_CXXFLAGS"
4231
 
  ac_ext=c
4232
 
ac_cpp='$CPP $CPPFLAGS'
4233
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
 
 
4237
 
 
4238
 
fi
4239
 
 
4240
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4241
 
 echo "$as_me:$LINENO: result: yes" >&5
4242
 
echo "${ECHO_T}yes" >&6
4243
 
 :
4244
 
 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
4245
 
else
4246
 
 echo "$as_me:$LINENO: result: no" >&5
4247
 
echo "${ECHO_T}no" >&6
4248
 
 :
4249
 
 
4250
 
fi
4251
 
 
4252
 
 
4253
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
4254
 
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
4255
 
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
4256
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4257
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4258
 
else
4259
 
 
4260
 
 
4261
 
 
4262
 
   ac_ext=cc
4263
 
ac_cpp='$CXXCPP $CPPFLAGS'
4264
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4267
 
 
4268
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4269
 
 
4270
 
 
4271
 
  save_CXXFLAGS="$CXXFLAGS"
4272
 
  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
4273
 
  cat >conftest.$ac_ext <<_ACEOF
4274
 
#line $LINENO "configure"
4275
 
#include "confdefs.h"
4276
 
 
4277
 
#ifdef F77_DUMMY_MAIN
4278
 
#  ifdef __cplusplus
4279
 
     extern "C"
4280
 
#  endif
4281
 
   int F77_DUMMY_MAIN() { return 1; }
4282
 
#endif
4283
 
int
4284
 
main ()
4285
 
{
4286
 
 return 0;
4287
 
  ;
4288
 
  return 0;
4289
 
}
4290
 
_ACEOF
4291
 
rm -f conftest.$ac_objext conftest$ac_exeext
4292
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4293
 
  (eval $ac_link) 2>&5
4294
 
  ac_status=$?
4295
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296
 
  (exit $ac_status); } &&
4297
 
         { ac_try='test -s conftest$ac_exeext'
4298
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299
 
  (eval $ac_try) 2>&5
4300
 
  ac_status=$?
4301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302
 
  (exit $ac_status); }; }; then
4303
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4304
 
else
4305
 
  echo "$as_me: failed program was:" >&5
4306
 
cat conftest.$ac_ext >&5
4307
 
fi
4308
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4309
 
  CXXFLAGS="$save_CXXFLAGS"
4310
 
  ac_ext=c
4311
 
ac_cpp='$CPP $CPPFLAGS'
4312
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315
 
 
4316
 
 
4317
 
fi
4318
 
 
4319
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4320
 
 echo "$as_me:$LINENO: result: yes" >&5
4321
 
echo "${ECHO_T}yes" >&6
4322
 
 :
4323
 
 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
4324
 
else
4325
 
 echo "$as_me:$LINENO: result: no" >&5
4326
 
echo "${ECHO_T}no" >&6
4327
 
 :
4328
 
 
4329
 
fi
4330
 
 
4331
 
 
4332
 
echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
4333
 
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
4334
 
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
4335
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4336
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4337
 
else
4338
 
 
4339
 
 
4340
 
 
4341
 
   ac_ext=cc
4342
 
ac_cpp='$CXXCPP $CPPFLAGS'
4343
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4346
 
 
4347
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4348
 
 
4349
 
 
4350
 
  save_CXXFLAGS="$CXXFLAGS"
4351
 
  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
4352
 
  cat >conftest.$ac_ext <<_ACEOF
4353
 
#line $LINENO "configure"
4354
 
#include "confdefs.h"
4355
 
 
4356
 
#ifdef F77_DUMMY_MAIN
4357
 
#  ifdef __cplusplus
4358
 
     extern "C"
4359
 
#  endif
4360
 
   int F77_DUMMY_MAIN() { return 1; }
4361
 
#endif
4362
 
int
4363
 
main ()
4364
 
{
4365
 
 return 0;
4366
 
  ;
4367
 
  return 0;
4368
 
}
4369
 
_ACEOF
4370
 
rm -f conftest.$ac_objext conftest$ac_exeext
4371
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4372
 
  (eval $ac_link) 2>&5
4373
 
  ac_status=$?
4374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
 
  (exit $ac_status); } &&
4376
 
         { ac_try='test -s conftest$ac_exeext'
4377
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378
 
  (eval $ac_try) 2>&5
4379
 
  ac_status=$?
4380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
 
  (exit $ac_status); }; }; then
4382
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4383
 
else
4384
 
  echo "$as_me: failed program was:" >&5
4385
 
cat conftest.$ac_ext >&5
4386
 
fi
4387
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4388
 
  CXXFLAGS="$save_CXXFLAGS"
4389
 
  ac_ext=c
4390
 
ac_cpp='$CPP $CPPFLAGS'
4391
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
 
 
4395
 
 
4396
 
fi
4397
 
 
4398
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4399
 
 echo "$as_me:$LINENO: result: yes" >&5
4400
 
echo "${ECHO_T}yes" >&6
4401
 
 :
4402
 
 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
4403
 
else
4404
 
 echo "$as_me:$LINENO: result: no" >&5
4405
 
echo "${ECHO_T}no" >&6
4406
 
 :
4407
 
 
4408
 
fi
4409
 
 
4410
 
 
4411
 
echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
4412
 
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
4413
 
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
4414
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4416
 
else
4417
 
 
4418
 
 
4419
 
 
4420
 
   ac_ext=cc
4421
 
ac_cpp='$CXXCPP $CPPFLAGS'
4422
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4425
 
 
4426
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4427
 
 
4428
 
 
4429
 
  save_CXXFLAGS="$CXXFLAGS"
4430
 
  CXXFLAGS="$CXXFLAGS --one_per"
4431
 
  cat >conftest.$ac_ext <<_ACEOF
4432
 
#line $LINENO "configure"
4433
 
#include "confdefs.h"
4434
 
 
4435
 
#ifdef F77_DUMMY_MAIN
4436
 
#  ifdef __cplusplus
4437
 
     extern "C"
4438
 
#  endif
4439
 
   int F77_DUMMY_MAIN() { return 1; }
4440
 
#endif
4441
 
int
4442
 
main ()
4443
 
{
4444
 
 return 0;
4445
 
  ;
4446
 
  return 0;
4447
 
}
4448
 
_ACEOF
4449
 
rm -f conftest.$ac_objext conftest$ac_exeext
4450
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451
 
  (eval $ac_link) 2>&5
4452
 
  ac_status=$?
4453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454
 
  (exit $ac_status); } &&
4455
 
         { ac_try='test -s conftest$ac_exeext'
4456
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457
 
  (eval $ac_try) 2>&5
4458
 
  ac_status=$?
4459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460
 
  (exit $ac_status); }; }; then
4461
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4462
 
else
4463
 
  echo "$as_me: failed program was:" >&5
4464
 
cat conftest.$ac_ext >&5
4465
 
fi
4466
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4467
 
  CXXFLAGS="$save_CXXFLAGS"
4468
 
  ac_ext=c
4469
 
ac_cpp='$CPP $CPPFLAGS'
4470
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473
 
 
4474
 
 
4475
 
fi
4476
 
 
4477
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4478
 
 echo "$as_me:$LINENO: result: yes" >&5
4479
 
echo "${ECHO_T}yes" >&6
4480
 
 :
4481
 
 CXXFLAGS="$CXXFLAGS --one_per"
4482
 
else
4483
 
 echo "$as_me:$LINENO: result: no" >&5
4484
 
echo "${ECHO_T}no" >&6
4485
 
 :
4486
 
 
4487
 
fi
4488
 
 
4489
 
  fi
4490
 
 
4491
 
    USE_RTTI=
4492
 
 
4493
 
 
4494
 
  case "$host" in
4495
 
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
4496
 
      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
4497
 
      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
4498
 
      *-*-solaris*)
4499
 
        if test "$GXX" = yes; then
4500
 
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
4501
 
          if test ! -f $libstdcpp; then
4502
 
             { { echo "$as_me:$LINENO: 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" >&5
4503
 
echo "$as_me: 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" >&2;}
4504
 
   { (exit 1); exit 1; }; }
4505
 
          fi
4506
 
        fi
4507
 
        ;;
4508
 
  esac
4509
 
 
4510
 
  if test "x$kde_use_qt_emb" != "xyes"; then
4511
 
  __val=$CXX
4512
 
  __forbid=" -fno-rtti -rpath "
4513
 
  if test -n "$__val"; then
4514
 
    __new=""
4515
 
    ac_save_IFS=$IFS
4516
 
    IFS="       "
4517
 
    for i in $__val; do
4518
 
      case "$__forbid" in
4519
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
4520
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
4521
 
        *) # Careful to not add spaces, where there were none, because otherwise
4522
 
           # libtool gets confused, if we change e.g. CXX
4523
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
4524
 
      esac
4525
 
    done
4526
 
    IFS=$ac_save_IFS
4527
 
    CXX=$__new
4528
 
  fi
4529
 
 
4530
 
  __val=$CXXFLAGS
4531
 
  __forbid=" -fno-rtti -rpath "
4532
 
  if test -n "$__val"; then
4533
 
    __new=""
4534
 
    ac_save_IFS=$IFS
4535
 
    IFS="       "
4536
 
    for i in $__val; do
4537
 
      case "$__forbid" in
4538
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
4539
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
4540
 
        *) # Careful to not add spaces, where there were none, because otherwise
4541
 
           # libtool gets confused, if we change e.g. CXX
4542
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
4543
 
      esac
4544
 
    done
4545
 
    IFS=$ac_save_IFS
4546
 
    CXXFLAGS=$__new
4547
 
  fi
4548
 
 
4549
 
else
4550
 
  __val=$CXX
4551
 
  __forbid=" -rpath "
4552
 
  if test -n "$__val"; then
4553
 
    __new=""
4554
 
    ac_save_IFS=$IFS
4555
 
    IFS="       "
4556
 
    for i in $__val; do
4557
 
      case "$__forbid" in
4558
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
4559
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
4560
 
        *) # Careful to not add spaces, where there were none, because otherwise
4561
 
           # libtool gets confused, if we change e.g. CXX
4562
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
4563
 
      esac
4564
 
    done
4565
 
    IFS=$ac_save_IFS
4566
 
    CXX=$__new
4567
 
  fi
4568
 
 
4569
 
  __val=$CXXFLAGS
4570
 
  __forbid=" -rpath "
4571
 
  if test -n "$__val"; then
4572
 
    __new=""
4573
 
    ac_save_IFS=$IFS
4574
 
    IFS="       "
4575
 
    for i in $__val; do
4576
 
      case "$__forbid" in
4577
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
4578
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
4579
 
        *) # Careful to not add spaces, where there were none, because otherwise
4580
 
           # libtool gets confused, if we change e.g. CXX
4581
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
4582
 
      esac
4583
 
    done
4584
 
    IFS=$ac_save_IFS
4585
 
    CXXFLAGS=$__new
4586
 
  fi
4587
 
 
4588
 
fi
4589
 
 
4590
 
 
4591
 
  ac_ext=cc
4592
 
ac_cpp='$CXXCPP $CPPFLAGS'
4593
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4596
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4597
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4598
 
if test -z "$CXXCPP"; then
4599
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4601
 
else
4602
 
      # Double quotes because CXXCPP needs to be expanded
4603
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
4604
 
    do
4605
 
      ac_preproc_ok=false
4606
 
for ac_cxx_preproc_warn_flag in '' yes
4607
 
do
4608
 
  # Use a header file that comes with gcc, so configuring glibc
4609
 
  # with a fresh cross-compiler works.
4610
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4611
 
  # not just through cpp. "Syntax error" is here to catch this case.
4612
 
  cat >conftest.$ac_ext <<_ACEOF
4613
 
#line $LINENO "configure"
4614
 
#include "confdefs.h"
4615
 
#include <assert.h>
4616
 
                     Syntax error
4617
 
_ACEOF
4618
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4619
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4620
 
  ac_status=$?
4621
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4622
 
  rm -f conftest.er1
4623
 
  cat conftest.err >&5
4624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625
 
  (exit $ac_status); } >/dev/null; then
4626
 
  if test -s conftest.err; then
4627
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4628
 
  else
4629
 
    ac_cpp_err=
4630
 
  fi
4631
 
else
4632
 
  ac_cpp_err=yes
4633
 
fi
4634
 
if test -z "$ac_cpp_err"; then
4635
 
  :
4636
 
else
4637
 
  echo "$as_me: failed program was:" >&5
4638
 
  cat conftest.$ac_ext >&5
4639
 
  # Broken: fails on valid input.
4640
 
continue
4641
 
fi
4642
 
rm -f conftest.err conftest.$ac_ext
4643
 
 
4644
 
  # OK, works on sane cases.  Now check whether non-existent headers
4645
 
  # can be detected and how.
4646
 
  cat >conftest.$ac_ext <<_ACEOF
4647
 
#line $LINENO "configure"
4648
 
#include "confdefs.h"
4649
 
#include <ac_nonexistent.h>
4650
 
_ACEOF
4651
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4652
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4653
 
  ac_status=$?
4654
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4655
 
  rm -f conftest.er1
4656
 
  cat conftest.err >&5
4657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658
 
  (exit $ac_status); } >/dev/null; then
4659
 
  if test -s conftest.err; then
4660
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4661
 
  else
4662
 
    ac_cpp_err=
4663
 
  fi
4664
 
else
4665
 
  ac_cpp_err=yes
4666
 
fi
4667
 
if test -z "$ac_cpp_err"; then
4668
 
  # Broken: success on invalid input.
4669
 
continue
4670
 
else
4671
 
  echo "$as_me: failed program was:" >&5
4672
 
  cat conftest.$ac_ext >&5
4673
 
  # Passes both tests.
4674
 
ac_preproc_ok=:
4675
 
break
4676
 
fi
4677
 
rm -f conftest.err conftest.$ac_ext
4678
 
 
4679
 
done
4680
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681
 
rm -f conftest.err conftest.$ac_ext
4682
 
if $ac_preproc_ok; then
4683
 
  break
4684
 
fi
4685
 
 
4686
 
    done
4687
 
    ac_cv_prog_CXXCPP=$CXXCPP
4688
 
 
4689
 
fi
4690
 
  CXXCPP=$ac_cv_prog_CXXCPP
4691
 
else
4692
 
  ac_cv_prog_CXXCPP=$CXXCPP
4693
 
fi
4694
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4695
 
echo "${ECHO_T}$CXXCPP" >&6
4696
 
ac_preproc_ok=false
4697
 
for ac_cxx_preproc_warn_flag in '' yes
4698
 
do
4699
 
  # Use a header file that comes with gcc, so configuring glibc
4700
 
  # with a fresh cross-compiler works.
4701
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4702
 
  # not just through cpp. "Syntax error" is here to catch this case.
4703
 
  cat >conftest.$ac_ext <<_ACEOF
4704
 
#line $LINENO "configure"
4705
 
#include "confdefs.h"
4706
 
#include <assert.h>
4707
 
                     Syntax error
4708
 
_ACEOF
4709
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4710
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4711
 
  ac_status=$?
4712
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4713
 
  rm -f conftest.er1
4714
 
  cat conftest.err >&5
4715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716
 
  (exit $ac_status); } >/dev/null; then
4717
 
  if test -s conftest.err; then
4718
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4719
 
  else
4720
 
    ac_cpp_err=
4721
 
  fi
4722
 
else
4723
 
  ac_cpp_err=yes
4724
 
fi
4725
 
if test -z "$ac_cpp_err"; then
4726
 
  :
4727
 
else
4728
 
  echo "$as_me: failed program was:" >&5
4729
 
  cat conftest.$ac_ext >&5
4730
 
  # Broken: fails on valid input.
4731
 
continue
4732
 
fi
4733
 
rm -f conftest.err conftest.$ac_ext
4734
 
 
4735
 
  # OK, works on sane cases.  Now check whether non-existent headers
4736
 
  # can be detected and how.
4737
 
  cat >conftest.$ac_ext <<_ACEOF
4738
 
#line $LINENO "configure"
4739
 
#include "confdefs.h"
4740
 
#include <ac_nonexistent.h>
4741
 
_ACEOF
4742
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4743
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4744
 
  ac_status=$?
4745
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
4746
 
  rm -f conftest.er1
4747
 
  cat conftest.err >&5
4748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
 
  (exit $ac_status); } >/dev/null; then
4750
 
  if test -s conftest.err; then
4751
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
4752
 
  else
4753
 
    ac_cpp_err=
4754
 
  fi
4755
 
else
4756
 
  ac_cpp_err=yes
4757
 
fi
4758
 
if test -z "$ac_cpp_err"; then
4759
 
  # Broken: success on invalid input.
4760
 
continue
4761
 
else
4762
 
  echo "$as_me: failed program was:" >&5
4763
 
  cat conftest.$ac_ext >&5
4764
 
  # Passes both tests.
4765
 
ac_preproc_ok=:
4766
 
break
4767
 
fi
4768
 
rm -f conftest.err conftest.$ac_ext
4769
 
 
4770
 
done
4771
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772
 
rm -f conftest.err conftest.$ac_ext
4773
 
if $ac_preproc_ok; then
4774
 
  :
4775
 
else
4776
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4777
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4778
 
   { (exit 1); exit 1; }; }
4779
 
fi
4780
 
 
4781
 
ac_ext=c
4782
 
ac_cpp='$CPP $CPPFLAGS'
4783
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786
 
 
4787
 
 
4788
 
  if test "$GCC" = yes; then
4789
 
     NOOPT_CXXFLAGS=-O0
4790
 
     NOOPT_CFLAGS=-O0
4791
 
  fi
4792
 
 
4793
 
 
4794
 
 
4795
 
 
4796
 
 
4797
 
  # Check whether --enable-final or --disable-final was given.
4798
 
if test "${enable_final+set}" = set; then
4799
 
  enableval="$enable_final"
4800
 
  kde_use_final=$enableval
4801
 
else
4802
 
  kde_use_final=no
4803
 
fi;
4804
 
 
4805
 
  if test "x$kde_use_final" = "xyes"; then
4806
 
      KDE_USE_FINAL_TRUE=""
4807
 
      KDE_USE_FINAL_FALSE="#"
4808
 
   else
4809
 
      KDE_USE_FINAL_TRUE="#"
4810
 
      KDE_USE_FINAL_FALSE=""
4811
 
  fi
4812
 
 
4813
 
 
4814
 
 
4815
 
 
4816
 
  # Check whether --enable-closure or --disable-closure was given.
4817
 
if test "${enable_closure+set}" = set; then
4818
 
  enableval="$enable_closure"
4819
 
  kde_use_closure=$enableval
4820
 
else
4821
 
  kde_use_closure=yes
4822
 
fi;
4823
 
 
4824
 
  KDE_NO_UNDEFINED=""
4825
 
  if test "x$kde_use_closure" = "xyes"; then
4826
 
       KDE_USE_CLOSURE_TRUE=""
4827
 
       KDE_USE_CLOSURE_FALSE="#"
4828
 
#       CXXFLAGS="$CXXFLAGS $REPO"
4829
 
  else
4830
 
       KDE_USE_CLOSURE_TRUE="#"
4831
 
       KDE_USE_CLOSURE_FALSE=""
4832
 
 
4833
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
4834
 
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
4835
 
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
4836
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4837
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4838
 
else
4839
 
 
4840
 
 
4841
 
 
4842
 
   ac_ext=cc
4843
 
ac_cpp='$CXXCPP $CPPFLAGS'
4844
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847
 
 
4848
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4849
 
 
4850
 
 
4851
 
  save_CXXFLAGS="$CXXFLAGS"
4852
 
  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
4853
 
  cat >conftest.$ac_ext <<_ACEOF
4854
 
#line $LINENO "configure"
4855
 
#include "confdefs.h"
4856
 
 
4857
 
#ifdef F77_DUMMY_MAIN
4858
 
#  ifdef __cplusplus
4859
 
     extern "C"
4860
 
#  endif
4861
 
   int F77_DUMMY_MAIN() { return 1; }
4862
 
#endif
4863
 
int
4864
 
main ()
4865
 
{
4866
 
 return 0;
4867
 
  ;
4868
 
  return 0;
4869
 
}
4870
 
_ACEOF
4871
 
rm -f conftest.$ac_objext conftest$ac_exeext
4872
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4873
 
  (eval $ac_link) 2>&5
4874
 
  ac_status=$?
4875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876
 
  (exit $ac_status); } &&
4877
 
         { ac_try='test -s conftest$ac_exeext'
4878
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879
 
  (eval $ac_try) 2>&5
4880
 
  ac_status=$?
4881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882
 
  (exit $ac_status); }; }; then
4883
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4884
 
else
4885
 
  echo "$as_me: failed program was:" >&5
4886
 
cat conftest.$ac_ext >&5
4887
 
fi
4888
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4889
 
  CXXFLAGS="$save_CXXFLAGS"
4890
 
  ac_ext=c
4891
 
ac_cpp='$CPP $CPPFLAGS'
4892
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895
 
 
4896
 
 
4897
 
fi
4898
 
 
4899
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4900
 
 echo "$as_me:$LINENO: result: yes" >&5
4901
 
echo "${ECHO_T}yes" >&6
4902
 
 :
4903
 
 
4904
 
echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
4905
 
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
4906
 
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
4907
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4908
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4909
 
else
4910
 
 
4911
 
 
4912
 
 
4913
 
   ac_ext=cc
4914
 
ac_cpp='$CXXCPP $CPPFLAGS'
4915
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4918
 
 
4919
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4920
 
 
4921
 
 
4922
 
  save_CXXFLAGS="$CXXFLAGS"
4923
 
  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
4924
 
  cat >conftest.$ac_ext <<_ACEOF
4925
 
#line $LINENO "configure"
4926
 
#include "confdefs.h"
4927
 
 
4928
 
#ifdef F77_DUMMY_MAIN
4929
 
#  ifdef __cplusplus
4930
 
     extern "C"
4931
 
#  endif
4932
 
   int F77_DUMMY_MAIN() { return 1; }
4933
 
#endif
4934
 
int
4935
 
main ()
4936
 
{
4937
 
 return 0;
4938
 
  ;
4939
 
  return 0;
4940
 
}
4941
 
_ACEOF
4942
 
rm -f conftest.$ac_objext conftest$ac_exeext
4943
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4944
 
  (eval $ac_link) 2>&5
4945
 
  ac_status=$?
4946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947
 
  (exit $ac_status); } &&
4948
 
         { ac_try='test -s conftest$ac_exeext'
4949
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950
 
  (eval $ac_try) 2>&5
4951
 
  ac_status=$?
4952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953
 
  (exit $ac_status); }; }; then
4954
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
4955
 
else
4956
 
  echo "$as_me: failed program was:" >&5
4957
 
cat conftest.$ac_ext >&5
4958
 
fi
4959
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4960
 
  CXXFLAGS="$save_CXXFLAGS"
4961
 
  ac_ext=c
4962
 
ac_cpp='$CPP $CPPFLAGS'
4963
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
 
 
4967
 
 
4968
 
fi
4969
 
 
4970
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4971
 
 echo "$as_me:$LINENO: result: yes" >&5
4972
 
echo "${ECHO_T}yes" >&6
4973
 
 :
4974
 
 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
4975
 
else
4976
 
 echo "$as_me:$LINENO: result: no" >&5
4977
 
echo "${ECHO_T}no" >&6
4978
 
 :
4979
 
 KDE_NO_UNDEFINED=""
4980
 
fi
4981
 
 
4982
 
else
4983
 
 echo "$as_me:$LINENO: result: no" >&5
4984
 
echo "${ECHO_T}no" >&6
4985
 
 :
4986
 
 KDE_NO_UNDEFINED=""
4987
 
fi
4988
 
 
4989
 
  fi
4990
 
 
4991
 
 
4992
 
 
4993
 
 
4994
 
 
4995
 
  # Check whether --enable-nmcheck or --disable-nmcheck was given.
4996
 
if test "${enable_nmcheck+set}" = set; then
4997
 
  enableval="$enable_nmcheck"
4998
 
  kde_use_nmcheck=$enableval
4999
 
else
5000
 
  kde_use_nmcheck=no
5001
 
fi;
5002
 
 
5003
 
  if test "$kde_use_nmcheck" = "yes"; then
5004
 
      KDE_USE_NMCHECK_TRUE=""
5005
 
      KDE_USE_NMCHECK_FALSE="#"
5006
 
   else
5007
 
      KDE_USE_NMCHECK_TRUE="#"
5008
 
      KDE_USE_NMCHECK_FALSE=""
5009
 
  fi
5010
 
 
5011
 
 
5012
 
 
5013
 
 
5014
 
 
5015
 
 
5016
 
# Check whether --enable-shared or --disable-shared was given.
5017
 
if test "${enable_shared+set}" = set; then
5018
 
  enableval="$enable_shared"
5019
 
  p=${PACKAGE-default}
5020
 
case $enableval in
5021
 
yes) enable_shared=yes ;;
5022
 
no) enable_shared=no ;;
5023
 
*)
5024
 
  enable_shared=no
5025
 
  # Look at the argument we got.  We use all the common list separators.
5026
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5027
 
  for pkg in $enableval; do
5028
 
    if test "X$pkg" = "X$p"; then
5029
 
      enable_shared=yes
5030
 
    fi
5031
 
  done
5032
 
  IFS="$ac_save_ifs"
5033
 
  ;;
5034
 
esac
5035
 
else
5036
 
  enable_shared=yes
5037
 
fi;
5038
 
# Check whether --enable-static or --disable-static was given.
5039
 
if test "${enable_static+set}" = set; then
5040
 
  enableval="$enable_static"
5041
 
  p=${PACKAGE-default}
5042
 
case $enableval in
5043
 
yes) enable_static=yes ;;
5044
 
no) enable_static=no ;;
5045
 
*)
5046
 
  enable_static=no
5047
 
  # Look at the argument we got.  We use all the common list separators.
5048
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5049
 
  for pkg in $enableval; do
5050
 
    if test "X$pkg" = "X$p"; then
5051
 
      enable_static=yes
5052
 
    fi
5053
 
  done
5054
 
  IFS="$ac_save_ifs"
5055
 
  ;;
5056
 
esac
5057
 
else
5058
 
  enable_static=no
5059
 
fi;
5060
 
 
5061
 
 
5062
 
    kdelibsuff=none
5063
 
    # Check whether --enable-libsuffix or --disable-libsuffix was given.
5064
 
if test "${enable_libsuffix+set}" = set; then
5065
 
  enableval="$enable_libsuffix"
5066
 
  kdelibsuff=$enableval
5067
 
fi;
5068
 
    # TODO: add an auto case that compiles a little C app to check
5069
 
    # where the glibc is
5070
 
    if test "$kdelibsuff" = "none"; then
5071
 
       kdelibsuff=
5072
 
    fi
5073
 
    if test -z "$kdelibsuff"; then
5074
 
        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
5075
 
echo "${ECHO_T}not using lib directory suffix" >&6
5076
 
 
5077
 
cat >>confdefs.h <<\_ACEOF
5078
 
#define KDELIBSUFF ""
5079
 
_ACEOF
5080
 
 
5081
 
    else
5082
 
        if test "$libdir" = '${exec_prefix}/lib'; then
5083
 
            libdir="$libdir${kdelibsuff}"
5084
 
            libdir="$libdir"
5085
 
          fi
5086
 
 
5087
 
cat >>confdefs.h <<_ACEOF
5088
 
#define KDELIBSUFF "\"${kdelibsuff}\""
5089
 
_ACEOF
5090
 
 
5091
 
        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
5092
 
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
5093
 
    fi
5094
 
 
5095
 
# Check whether --enable-fast-install or --disable-fast-install was given.
5096
 
if test "${enable_fast_install+set}" = set; then
5097
 
  enableval="$enable_fast_install"
5098
 
  p=${PACKAGE-default}
5099
 
case $enableval in
5100
 
yes) enable_fast_install=yes ;;
5101
 
no) enable_fast_install=no ;;
5102
 
*)
5103
 
  enable_fast_install=no
5104
 
  # Look at the argument we got.  We use all the common list separators.
5105
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5106
 
  for pkg in $enableval; do
5107
 
    if test "X$pkg" = "X$p"; then
5108
 
      enable_fast_install=yes
5109
 
    fi
5110
 
  done
5111
 
  IFS="$ac_save_ifs"
5112
 
  ;;
5113
 
esac
5114
 
else
5115
 
  enable_fast_install=yes
5116
 
fi;
5117
 
 
5118
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5119
 
if test "${with_gnu_ld+set}" = set; then
5120
 
  withval="$with_gnu_ld"
5121
 
  test "$withval" = no || with_gnu_ld=yes
5122
 
else
5123
 
  with_gnu_ld=no
5124
 
fi;
5125
 
ac_prog=ld
5126
 
if test "$GCC" = yes; then
5127
 
  # Check if gcc -print-prog-name=ld gives a path.
5128
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5129
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5130
 
  case $host in
5131
 
  *-*-mingw*)
5132
 
    # gcc leaves a trailing carriage return which upsets mingw
5133
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5134
 
  *)
5135
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5136
 
  esac
5137
 
  case $ac_prog in
5138
 
    # Accept absolute paths.
5139
 
    [\\/]* | [A-Za-z]:[\\/]*)
5140
 
      re_direlt='/[^/][^/]*/\.\./'
5141
 
      # Canonicalize the path of ld
5142
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5143
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5144
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5145
 
      done
5146
 
      test -z "$LD" && LD="$ac_prog"
5147
 
      ;;
5148
 
  "")
5149
 
    # If it fails, then pretend we aren't using GCC.
5150
 
    ac_prog=ld
5151
 
    ;;
5152
 
  *)
5153
 
    # If it is relative, then search for the first ld in PATH.
5154
 
    with_gnu_ld=unknown
5155
 
    ;;
5156
 
  esac
5157
 
elif test "$with_gnu_ld" = yes; then
5158
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
5159
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5160
 
else
5161
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5162
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5163
 
fi
5164
 
if test "${lt_cv_path_LD+set}" = set; then
5165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5166
 
else
5167
 
  if test -z "$LD"; then
5168
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5169
 
  for ac_dir in $PATH; do
5170
 
    test -z "$ac_dir" && ac_dir=.
5171
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5172
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5173
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5174
 
      # but apparently some GNU ld's only accept -v.
5175
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5176
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5177
 
        test "$with_gnu_ld" != no && break
5178
 
      else
5179
 
        test "$with_gnu_ld" != yes && break
5180
 
      fi
5181
 
    fi
5182
 
  done
5183
 
  IFS="$ac_save_ifs"
5184
 
else
5185
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5186
 
fi
5187
 
fi
5188
 
 
5189
 
LD="$lt_cv_path_LD"
5190
 
if test -n "$LD"; then
5191
 
  echo "$as_me:$LINENO: result: $LD" >&5
5192
 
echo "${ECHO_T}$LD" >&6
5193
 
else
5194
 
  echo "$as_me:$LINENO: result: no" >&5
5195
 
echo "${ECHO_T}no" >&6
5196
 
fi
5197
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5198
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5199
 
   { (exit 1); exit 1; }; }
5200
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5201
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5202
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5204
 
else
5205
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5206
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5207
 
  lt_cv_prog_gnu_ld=yes
5208
 
else
5209
 
  lt_cv_prog_gnu_ld=no
5210
 
fi
5211
 
fi
5212
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5213
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5214
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5215
 
 
5216
 
 
5217
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5218
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5219
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5220
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5221
 
else
5222
 
  lt_cv_ld_reload_flag='-r'
5223
 
fi
5224
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5225
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5226
 
reload_flag=$lt_cv_ld_reload_flag
5227
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
5228
 
 
5229
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5230
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5231
 
if test "${lt_cv_path_NM+set}" = set; then
5232
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5233
 
else
5234
 
  if test -n "$NM"; then
5235
 
  # Let the user override the test.
5236
 
  lt_cv_path_NM="$NM"
5237
 
else
5238
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5239
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5240
 
    test -z "$ac_dir" && ac_dir=.
5241
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
5242
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5243
 
      # Check to see if the nm accepts a BSD-compat flag.
5244
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5245
 
      #   nm: unknown option "B" ignored
5246
 
      # Tru64's nm complains that /dev/null is an invalid object file
5247
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5248
 
        lt_cv_path_NM="$tmp_nm -B"
5249
 
        break
5250
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5251
 
        lt_cv_path_NM="$tmp_nm -p"
5252
 
        break
5253
 
      else
5254
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5255
 
        continue # so that we can try to find one that supports BSD flags
5256
 
      fi
5257
 
    fi
5258
 
  done
5259
 
  IFS="$ac_save_ifs"
5260
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5261
 
fi
5262
 
fi
5263
 
 
5264
 
NM="$lt_cv_path_NM"
5265
 
echo "$as_me:$LINENO: result: $NM" >&5
5266
 
echo "${ECHO_T}$NM" >&6
5267
 
 
5268
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5269
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5270
 
LN_S=$as_ln_s
5271
 
if test "$LN_S" = "ln -s"; then
5272
 
  echo "$as_me:$LINENO: result: yes" >&5
5273
 
echo "${ECHO_T}yes" >&6
5274
 
else
5275
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5276
 
echo "${ECHO_T}no, using $LN_S" >&6
5277
 
fi
5278
 
 
5279
 
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5280
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5281
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
5282
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5283
 
else
5284
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5285
 
lt_cv_file_magic_test_file=
5286
 
lt_cv_deplibs_check_method='unknown'
5287
 
# Need to set the preceding variable on all platforms that support
5288
 
# interlibrary dependencies.
5289
 
# 'none' -- dependencies not supported.
5290
 
# `unknown' -- same as none, but documents that we really don't know.
5291
 
# 'pass_all' -- all dependencies passed with no checks.
5292
 
# 'test_compile' -- check by making test program.
5293
 
# 'file_magic [regex]' -- check by looking for files in library path
5294
 
# which responds to the $file_magic_cmd with a given egrep regex.
5295
 
# If you have `file' or equivalent on your system and you're not sure
5296
 
# whether `pass_all' will *always* work, you probably want this one.
5297
 
 
5298
 
case $host_os in
5299
 
aix*)
5300
 
  lt_cv_deplibs_check_method=pass_all
5301
 
  ;;
5302
 
 
5303
 
beos*)
5304
 
  lt_cv_deplibs_check_method=pass_all
5305
 
  ;;
5306
 
 
5307
 
bsdi4*)
5308
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5309
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5310
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5311
 
  ;;
5312
 
 
5313
 
cygwin* | mingw* |pw32*)
5314
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5315
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5316
 
  ;;
5317
 
 
5318
 
darwin* | rhapsody*)
5319
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5320
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5321
 
  case "$host_os" in
5322
 
  rhapsody* | darwin1.012)
5323
 
    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5324
 
    ;;
5325
 
  *) # Darwin 1.3 on
5326
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5327
 
    ;;
5328
 
  esac
5329
 
  ;;
5330
 
 
5331
 
freebsd* )
5332
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5333
 
    case $host_cpu in
5334
 
    i*86 )
5335
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5336
 
      # Let's accept both of them until this is cleared up.
5337
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5338
 
      lt_cv_file_magic_cmd=/usr/bin/file
5339
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5340
 
      ;;
5341
 
    esac
5342
 
  else
5343
 
    lt_cv_deplibs_check_method=pass_all
5344
 
  fi
5345
 
  ;;
5346
 
 
5347
 
gnu*)
5348
 
  lt_cv_deplibs_check_method=pass_all
5349
 
  ;;
5350
 
 
5351
 
hpux10.20*|hpux11*)
5352
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5353
 
  lt_cv_file_magic_cmd=/usr/bin/file
5354
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
5355
 
  ;;
5356
 
 
5357
 
irix5* | irix6*)
5358
 
  case $host_os in
5359
 
  irix5*)
5360
 
    # this will be overridden with pass_all, but let us keep it just in case
5361
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5362
 
    ;;
5363
 
  *)
5364
 
    case $LD in
5365
 
    *-32|*"-32 ") libmagic=32-bit;;
5366
 
    *-n32|*"-n32 ") libmagic=N32;;
5367
 
    *-64|*"-64 ") libmagic=64-bit;;
5368
 
    *) libmagic=never-match;;
5369
 
    esac
5370
 
    # this will be overridden with pass_all, but let us keep it just in case
5371
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5372
 
    ;;
5373
 
  esac
5374
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5375
 
  lt_cv_deplibs_check_method=pass_all
5376
 
  ;;
5377
 
 
5378
 
# This must be Linux ELF.
5379
 
linux*)
5380
 
  case $host_cpu in
5381
 
  alpha* | i*86 | powerpc* | sparc* | ia64* | s390* | m68k* | arm* | mips* | hppa* | sh* )
5382
 
    lt_cv_deplibs_check_method=pass_all ;;
5383
 
  *)
5384
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
5385
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5386
 
  esac
5387
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5388
 
  ;;
5389
 
 
5390
 
netbsd*)
5391
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5392
 
    lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
5393
 
  else
5394
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5395
 
  fi
5396
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5397
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5398
 
  ;;
5399
 
 
5400
 
openbsd* )
5401
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5402
 
    case "$host_cpu" in
5403
 
    i*86 )
5404
 
            lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
5405
 
            lt_cv_file_magic_cmd=/usr/bin/file
5406
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5407
 
      ;;
5408
 
    esac
5409
 
  else
5410
 
    lt_cv_deplibs_check_method=pass_all
5411
 
  fi
5412
 
  ;;
5413
 
 
5414
 
newsos6)
5415
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5416
 
  lt_cv_file_magic_cmd=/usr/bin/file
5417
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5418
 
  ;;
5419
 
 
5420
 
osf3* | osf4* | osf5*)
5421
 
  # this will be overridden with pass_all, but let us keep it just in case
5422
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5423
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5424
 
  lt_cv_deplibs_check_method=pass_all
5425
 
  ;;
5426
 
 
5427
 
sco3.2v5*)
5428
 
  lt_cv_deplibs_check_method=pass_all
5429
 
  ;;
5430
 
 
5431
 
solaris*)
5432
 
  lt_cv_deplibs_check_method=pass_all
5433
 
  lt_cv_file_magic_test_file=/lib/libc.so
5434
 
  ;;
5435
 
 
5436
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5437
 
  case $host_vendor in
5438
 
  ncr)
5439
 
    lt_cv_deplibs_check_method=pass_all
5440
 
    ;;
5441
 
  motorola)
5442
 
    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]'
5443
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5444
 
    ;;
5445
 
  esac
5446
 
  ;;
5447
 
esac
5448
 
 
5449
 
fi
5450
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5451
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5452
 
file_magic_cmd=$lt_cv_file_magic_cmd
5453
 
deplibs_check_method=$lt_cv_deplibs_check_method
5454
 
 
5455
 
 
5456
 
 
5457
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5458
 
 
5459
 
# Only perform the check for file, if the check method requires it
5460
 
case $deplibs_check_method in
5461
 
file_magic*)
5462
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5463
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5464
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5465
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5467
 
else
5468
 
  case $MAGIC_CMD in
5469
 
  /*)
5470
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5471
 
  ;;
5472
 
  ?:/*)
5473
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5474
 
  ;;
5475
 
  *)
5476
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
5477
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5478
 
  ac_dummy="/usr/bin:$PATH"
5479
 
  for ac_dir in $ac_dummy; do
5480
 
    test -z "$ac_dir" && ac_dir=.
5481
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
5482
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5483
 
      if test -n "$file_magic_test_file"; then
5484
 
        case $deplibs_check_method in
5485
 
        "file_magic "*)
5486
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5487
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5488
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5489
 
            egrep "$file_magic_regex" > /dev/null; then
5490
 
            :
5491
 
          else
5492
 
            cat <<EOF 1>&2
5493
 
 
5494
 
*** Warning: the command libtool uses to detect shared libraries,
5495
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
5496
 
*** The result is that libtool may fail to recognize shared libraries
5497
 
*** as such.  This will affect the creation of libtool libraries that
5498
 
*** depend on shared libraries, but programs linked with such libtool
5499
 
*** libraries will work regardless of this problem.  Nevertheless, you
5500
 
*** may want to report the problem to your system manager and/or to
5501
 
*** bug-libtool@gnu.org
5502
 
 
5503
 
EOF
5504
 
          fi ;;
5505
 
        esac
5506
 
      fi
5507
 
      break
5508
 
    fi
5509
 
  done
5510
 
  IFS="$ac_save_ifs"
5511
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
5512
 
  ;;
5513
 
esac
5514
 
fi
5515
 
 
5516
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5517
 
if test -n "$MAGIC_CMD"; then
5518
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5519
 
echo "${ECHO_T}$MAGIC_CMD" >&6
5520
 
else
5521
 
  echo "$as_me:$LINENO: result: no" >&5
5522
 
echo "${ECHO_T}no" >&6
5523
 
fi
5524
 
 
5525
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
5526
 
  if test -n "$ac_tool_prefix"; then
5527
 
    echo "$as_me:$LINENO: checking for file" >&5
5528
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
5529
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5530
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5531
 
else
5532
 
  case $MAGIC_CMD in
5533
 
  /*)
5534
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5535
 
  ;;
5536
 
  ?:/*)
5537
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5538
 
  ;;
5539
 
  *)
5540
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
5541
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5542
 
  ac_dummy="/usr/bin:$PATH"
5543
 
  for ac_dir in $ac_dummy; do
5544
 
    test -z "$ac_dir" && ac_dir=.
5545
 
    if test -f $ac_dir/file; then
5546
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5547
 
      if test -n "$file_magic_test_file"; then
5548
 
        case $deplibs_check_method in
5549
 
        "file_magic "*)
5550
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5551
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5552
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5553
 
            egrep "$file_magic_regex" > /dev/null; then
5554
 
            :
5555
 
          else
5556
 
            cat <<EOF 1>&2
5557
 
 
5558
 
*** Warning: the command libtool uses to detect shared libraries,
5559
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
5560
 
*** The result is that libtool may fail to recognize shared libraries
5561
 
*** as such.  This will affect the creation of libtool libraries that
5562
 
*** depend on shared libraries, but programs linked with such libtool
5563
 
*** libraries will work regardless of this problem.  Nevertheless, you
5564
 
*** may want to report the problem to your system manager and/or to
5565
 
*** bug-libtool@gnu.org
5566
 
 
5567
 
EOF
5568
 
          fi ;;
5569
 
        esac
5570
 
      fi
5571
 
      break
5572
 
    fi
5573
 
  done
5574
 
  IFS="$ac_save_ifs"
5575
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
5576
 
  ;;
5577
 
esac
5578
 
fi
5579
 
 
5580
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5581
 
if test -n "$MAGIC_CMD"; then
5582
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5583
 
echo "${ECHO_T}$MAGIC_CMD" >&6
5584
 
else
5585
 
  echo "$as_me:$LINENO: result: no" >&5
5586
 
echo "${ECHO_T}no" >&6
5587
 
fi
5588
 
 
5589
 
  else
5590
 
    MAGIC_CMD=:
5591
 
  fi
5592
 
fi
5593
 
 
5594
 
  fi
5595
 
  ;;
5596
 
esac
5597
 
 
5598
 
if test -n "$ac_tool_prefix"; then
5599
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5600
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5601
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5602
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
5604
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5605
 
else
5606
 
  if test -n "$RANLIB"; then
5607
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5608
 
else
5609
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610
 
for as_dir in $PATH
5611
 
do
5612
 
  IFS=$as_save_IFS
5613
 
  test -z "$as_dir" && as_dir=.
5614
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5615
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5617
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618
 
    break 2
5619
 
  fi
5620
 
done
5621
 
done
5622
 
 
5623
 
fi
5624
 
fi
5625
 
RANLIB=$ac_cv_prog_RANLIB
5626
 
if test -n "$RANLIB"; then
5627
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5628
 
echo "${ECHO_T}$RANLIB" >&6
5629
 
else
5630
 
  echo "$as_me:$LINENO: result: no" >&5
5631
 
echo "${ECHO_T}no" >&6
5632
 
fi
5633
 
 
5634
 
fi
5635
 
if test -z "$ac_cv_prog_RANLIB"; then
5636
 
  ac_ct_RANLIB=$RANLIB
5637
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5638
 
set dummy ranlib; ac_word=$2
5639
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5640
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5642
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5643
 
else
5644
 
  if test -n "$ac_ct_RANLIB"; then
5645
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5646
 
else
5647
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648
 
for as_dir in $PATH
5649
 
do
5650
 
  IFS=$as_save_IFS
5651
 
  test -z "$as_dir" && as_dir=.
5652
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5653
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5655
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656
 
    break 2
5657
 
  fi
5658
 
done
5659
 
done
5660
 
 
5661
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5662
 
fi
5663
 
fi
5664
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5665
 
if test -n "$ac_ct_RANLIB"; then
5666
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5667
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5668
 
else
5669
 
  echo "$as_me:$LINENO: result: no" >&5
5670
 
echo "${ECHO_T}no" >&6
5671
 
fi
5672
 
 
5673
 
  RANLIB=$ac_ct_RANLIB
5674
 
else
5675
 
  RANLIB="$ac_cv_prog_RANLIB"
5676
 
fi
5677
 
 
5678
 
if test -n "$ac_tool_prefix"; then
5679
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5680
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5681
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5682
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683
 
if test "${ac_cv_prog_STRIP+set}" = set; then
5684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5685
 
else
5686
 
  if test -n "$STRIP"; then
5687
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5688
 
else
5689
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690
 
for as_dir in $PATH
5691
 
do
5692
 
  IFS=$as_save_IFS
5693
 
  test -z "$as_dir" && as_dir=.
5694
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5695
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5697
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698
 
    break 2
5699
 
  fi
5700
 
done
5701
 
done
5702
 
 
5703
 
fi
5704
 
fi
5705
 
STRIP=$ac_cv_prog_STRIP
5706
 
if test -n "$STRIP"; then
5707
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
5708
 
echo "${ECHO_T}$STRIP" >&6
5709
 
else
5710
 
  echo "$as_me:$LINENO: result: no" >&5
5711
 
echo "${ECHO_T}no" >&6
5712
 
fi
5713
 
 
5714
 
fi
5715
 
if test -z "$ac_cv_prog_STRIP"; then
5716
 
  ac_ct_STRIP=$STRIP
5717
 
  # Extract the first word of "strip", so it can be a program name with args.
5718
 
set dummy strip; ac_word=$2
5719
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5720
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5723
 
else
5724
 
  if test -n "$ac_ct_STRIP"; then
5725
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5726
 
else
5727
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728
 
for as_dir in $PATH
5729
 
do
5730
 
  IFS=$as_save_IFS
5731
 
  test -z "$as_dir" && as_dir=.
5732
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5733
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734
 
    ac_cv_prog_ac_ct_STRIP="strip"
5735
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736
 
    break 2
5737
 
  fi
5738
 
done
5739
 
done
5740
 
 
5741
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5742
 
fi
5743
 
fi
5744
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5745
 
if test -n "$ac_ct_STRIP"; then
5746
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5747
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
5748
 
else
5749
 
  echo "$as_me:$LINENO: result: no" >&5
5750
 
echo "${ECHO_T}no" >&6
5751
 
fi
5752
 
 
5753
 
  STRIP=$ac_ct_STRIP
5754
 
else
5755
 
  STRIP="$ac_cv_prog_STRIP"
5756
 
fi
5757
 
 
5758
 
 
5759
 
# Check for any special flags to pass to ltconfig.
5760
 
libtool_flags="--cache-file=$cache_file"
5761
 
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5762
 
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5763
 
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5764
 
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5765
 
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5766
 
 
5767
 
 
5768
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5769
 
if test "${enable_libtool_lock+set}" = set; then
5770
 
  enableval="$enable_libtool_lock"
5771
 
 
5772
 
fi;
5773
 
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5774
 
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5775
 
 
5776
 
 
5777
 
# Check whether --with-pic or --without-pic was given.
5778
 
if test "${with_pic+set}" = set; then
5779
 
  withval="$with_pic"
5780
 
  pic_mode="$withval"
5781
 
else
5782
 
  pic_mode=default
5783
 
fi;
5784
 
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5785
 
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5786
 
 
5787
 
# Some flags need to be propagated to the compiler or linker for good
5788
 
# libtool support.
5789
 
case $host in
5790
 
*-*-irix6*)
5791
 
  # Find out which ABI we are using.
5792
 
  echo '#line 5792 "configure"' > conftest.$ac_ext
5793
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794
 
  (eval $ac_compile) 2>&5
5795
 
  ac_status=$?
5796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
 
  (exit $ac_status); }; then
5798
 
    case `/usr/bin/file conftest.$ac_objext` in
5799
 
    *32-bit*)
5800
 
      LD="${LD-ld} -32"
5801
 
      ;;
5802
 
    *N32*)
5803
 
      LD="${LD-ld} -n32"
5804
 
      ;;
5805
 
    *64-bit*)
5806
 
      LD="${LD-ld} -64"
5807
 
      ;;
5808
 
    esac
5809
 
  fi
5810
 
  rm -rf conftest*
5811
 
  ;;
5812
 
 
5813
 
*-*-sco3.2v5*)
5814
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5815
 
  SAVE_CFLAGS="$CFLAGS"
5816
 
  CFLAGS="$CFLAGS -belf"
5817
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5818
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5819
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
5820
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5821
 
else
5822
 
 
5823
 
 
5824
 
     ac_ext=c
5825
 
ac_cpp='$CPP $CPPFLAGS'
5826
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829
 
 
5830
 
     cat >conftest.$ac_ext <<_ACEOF
5831
 
#line $LINENO "configure"
5832
 
#include "confdefs.h"
5833
 
 
5834
 
#ifdef F77_DUMMY_MAIN
5835
 
#  ifdef __cplusplus
5836
 
     extern "C"
5837
 
#  endif
5838
 
   int F77_DUMMY_MAIN() { return 1; }
5839
 
#endif
5840
 
int
5841
 
main ()
5842
 
{
5843
 
 
5844
 
  ;
5845
 
  return 0;
5846
 
}
5847
 
_ACEOF
5848
 
rm -f conftest.$ac_objext conftest$ac_exeext
5849
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850
 
  (eval $ac_link) 2>&5
5851
 
  ac_status=$?
5852
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
 
  (exit $ac_status); } &&
5854
 
         { ac_try='test -s conftest$ac_exeext'
5855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856
 
  (eval $ac_try) 2>&5
5857
 
  ac_status=$?
5858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
 
  (exit $ac_status); }; }; then
5860
 
  lt_cv_cc_needs_belf=yes
5861
 
else
5862
 
  echo "$as_me: failed program was:" >&5
5863
 
cat conftest.$ac_ext >&5
5864
 
lt_cv_cc_needs_belf=no
5865
 
fi
5866
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867
 
     ac_ext=c
5868
 
ac_cpp='$CPP $CPPFLAGS'
5869
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872
 
 
5873
 
fi
5874
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5875
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5876
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5877
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5878
 
    CFLAGS="$SAVE_CFLAGS"
5879
 
  fi
5880
 
  ;;
5881
 
 
5882
 
 
5883
 
esac
5884
 
 
5885
 
 
5886
 
# Save cache, so that ltconfig can load it
5887
 
cat >confcache <<\_ACEOF
5888
 
# This file is a shell script that caches the results of configure
5889
 
# tests run on this system so they can be shared between configure
5890
 
# scripts and configure runs, see configure's option --config-cache.
5891
 
# It is not useful on other systems.  If it contains results you don't
5892
 
# want to keep, you may remove or edit it.
5893
 
#
5894
 
# config.status only pays attention to the cache file if you give it
5895
 
# the --recheck option to rerun configure.
5896
 
#
5897
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
5898
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5899
 
# following values.
5900
 
 
5901
 
_ACEOF
5902
 
 
5903
 
# The following way of writing the cache mishandles newlines in values,
5904
 
# but we know of no workaround that is simple, portable, and efficient.
5905
 
# So, don't put newlines in cache variables' values.
5906
 
# Ultrix sh set writes to stderr and can't be redirected directly,
5907
 
# and sets the high bit in the cache file unless we assign to the vars.
5908
 
{
5909
 
  (set) 2>&1 |
5910
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5911
 
    *ac_space=\ *)
5912
 
      # `set' does not quote correctly, so add quotes (double-quote
5913
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
5914
 
      sed -n \
5915
 
        "s/'/'\\\\''/g;
5916
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5917
 
      ;;
5918
 
    *)
5919
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
5920
 
      sed -n \
5921
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5922
 
      ;;
5923
 
    esac;
5924
 
} |
5925
 
  sed '
5926
 
     t clear
5927
 
     : clear
5928
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5929
 
     t end
5930
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5931
 
     : end' >>confcache
5932
 
if cmp -s $cache_file confcache; then :; else
5933
 
  if test -w $cache_file; then
5934
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5935
 
    cat confcache >$cache_file
5936
 
  else
5937
 
    echo "not updating unwritable cache $cache_file"
5938
 
  fi
5939
 
fi
5940
 
rm -f confcache
5941
 
 
5942
 
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
5943
 
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5944
 
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5945
 
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5946
 
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5947
 
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5948
 
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5949
 
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5950
 
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5951
 
|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5952
 
echo "$as_me: error: libtool configure failed" >&2;}
5953
 
   { (exit 1); exit 1; }; }
5954
 
 
5955
 
# Reload cache, that may have been modified by ltconfig
5956
 
if test -r "$cache_file"; then
5957
 
  # Some versions of bash will fail to source /dev/null (special
5958
 
  # files actually), so we avoid doing that.
5959
 
  if test -f "$cache_file"; then
5960
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5961
 
echo "$as_me: loading cache $cache_file" >&6;}
5962
 
    case $cache_file in
5963
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
5964
 
      *)                      . ./$cache_file;;
5965
 
    esac
5966
 
  fi
5967
 
else
5968
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5969
 
echo "$as_me: creating cache $cache_file" >&6;}
5970
 
  >$cache_file
5971
 
fi
5972
 
 
5973
 
 
5974
 
# This can be used to rebuild libtool when needed
5975
 
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5976
 
 
5977
 
# Always use our own libtool.
5978
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5979
 
 
5980
 
# Redirect the config.log output again, so that the ltconfig log is not
5981
 
# clobbered by the next message.
5982
 
exec 5>>./config.log
5983
 
 
5984
 
 
5985
 
 
5986
 
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5987
 
lt_save_CC="$CC"
5988
 
lt_save_CFLAGS="$CFLAGS"
5989
 
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5990
 
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5991
 
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5992
 
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5993
 
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5994
 
deplibs_check_method="$deplibs_check_method" \
5995
 
file_magic_cmd="$file_magic_cmd" \
5996
 
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5997
 
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5998
 
|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5999
 
echo "$as_me: error: libtool tag configuration failed" >&2;}
6000
 
   { (exit 1); exit 1; }; }
6001
 
CC="$lt_save_CC"
6002
 
CFLAGS="$lt_save_CFLAGS"
6003
 
 
6004
 
# Redirect the config.log output again, so that the ltconfig log is not
6005
 
# clobbered by the next message.
6006
 
exec 5>>./config.log
6007
 
 
6008
 
 
6009
 
 
6010
 
 
6011
 
 
6012
 
 
6013
 
 
6014
 
 
6015
 
 
6016
 
 
6017
 
 
6018
 
ac_ext=c
6019
 
ac_cpp='$CPP $CPPFLAGS'
6020
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
 
 
6024
 
 
6025
 
 
6026
 
ac_ext=c
6027
 
ac_cpp='$CPP $CPPFLAGS'
6028
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031
 
 
6032
 
 
6033
 
 
6034
 
 
6035
 
 
6036
 
 
6037
 
 
6038
 
 
6039
 
 
6040
 
LIBTOOL_SHELL="/bin/sh ./libtool"
6041
 
#  LIBTOOL="$LIBTOOL --silent"
6042
 
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
6043
 
 
6044
 
 
6045
 
# Check whether --enable-objprelink or --disable-objprelink was given.
6046
 
if test "${enable_objprelink+set}" = set; then
6047
 
  enableval="$enable_objprelink"
6048
 
  kde_use_objprelink=$enableval
6049
 
else
6050
 
  kde_use_objprelink=no
6051
 
fi;
6052
 
  if test "x$kde_use_objprelink" = "xyes"; then
6053
 
        { echo "$as_me:$LINENO: WARNING:
6054
 
------------------------------------------------------------
6055
 
Configuration option --enable-objprelink is no longer useful.
6056
 
See http:://objprelink.sourceforge.net for details:
6057
 
1- Recent binutils are fast enough to do without objprelink.
6058
 
2- Newer versions of objprelink do not need this option.
6059
 
------------------------------------------------------------
6060
 
" >&5
6061
 
echo "$as_me: WARNING:
6062
 
------------------------------------------------------------
6063
 
Configuration option --enable-objprelink is no longer useful.
6064
 
See http:://objprelink.sourceforge.net for details:
6065
 
1- Recent binutils are fast enough to do without objprelink.
6066
 
2- Newer versions of objprelink do not need this option.
6067
 
------------------------------------------------------------
6068
 
" >&2;}
6069
 
  fi
6070
 
 
6071
 
 
6072
 
 
6073
 
 
6074
 
    # Extract the first word of "msgfmt", so it can be a program name with args.
6075
 
set dummy msgfmt; ac_word=$2
6076
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6077
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6078
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
6079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6080
 
else
6081
 
  case "$MSGFMT" in
6082
 
  /*)
6083
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6084
 
  ;;
6085
 
  *)
6086
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6087
 
  for ac_dir in $PATH; do
6088
 
    test -z "$ac_dir" && ac_dir=.
6089
 
    if test -f $ac_dir/$ac_word; then
6090
 
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
6091
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6092
 
        break
6093
 
      fi
6094
 
    fi
6095
 
  done
6096
 
  IFS="$ac_save_ifs"
6097
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
6098
 
  ;;
6099
 
esac
6100
 
fi
6101
 
MSGFMT="$ac_cv_path_MSGFMT"
6102
 
if test -n "$MSGFMT"; then
6103
 
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
6104
 
echo "${ECHO_T}$MSGFMT" >&6
6105
 
else
6106
 
  echo "$as_me:$LINENO: result: no" >&5
6107
 
echo "${ECHO_T}no" >&6
6108
 
fi
6109
 
 
6110
 
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
6111
 
set dummy gmsgfmt; ac_word=$2
6112
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6113
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6114
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
6115
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6116
 
else
6117
 
  case $GMSGFMT in
6118
 
  [\\/]* | ?:[\\/]*)
6119
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6120
 
  ;;
6121
 
  *)
6122
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123
 
for as_dir in $PATH
6124
 
do
6125
 
  IFS=$as_save_IFS
6126
 
  test -z "$as_dir" && as_dir=.
6127
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6128
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129
 
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6130
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131
 
    break 2
6132
 
  fi
6133
 
done
6134
 
done
6135
 
 
6136
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6137
 
  ;;
6138
 
esac
6139
 
fi
6140
 
GMSGFMT=$ac_cv_path_GMSGFMT
6141
 
 
6142
 
if test -n "$GMSGFMT"; then
6143
 
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6144
 
echo "${ECHO_T}$GMSGFMT" >&6
6145
 
else
6146
 
  echo "$as_me:$LINENO: result: no" >&5
6147
 
echo "${ECHO_T}no" >&6
6148
 
fi
6149
 
 
6150
 
 
6151
 
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
6152
 
        echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
6153
 
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
6154
 
        GMSGFMT=":"
6155
 
      fi
6156
 
      MSGFMT=$GMSGFMT
6157
 
 
6158
 
 
6159
 
 
6160
 
      # Extract the first word of "xgettext", so it can be a program name with args.
6161
 
set dummy xgettext; ac_word=$2
6162
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6163
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6164
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
6165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6166
 
else
6167
 
  case "$XGETTEXT" in
6168
 
  /*)
6169
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6170
 
  ;;
6171
 
  *)
6172
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6173
 
  for ac_dir in $PATH; do
6174
 
    test -z "$ac_dir" && ac_dir=.
6175
 
    if test -f $ac_dir/$ac_word; then
6176
 
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6177
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6178
 
        break
6179
 
      fi
6180
 
    fi
6181
 
  done
6182
 
  IFS="$ac_save_ifs"
6183
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6184
 
  ;;
6185
 
esac
6186
 
fi
6187
 
XGETTEXT="$ac_cv_path_XGETTEXT"
6188
 
if test -n "$XGETTEXT"; then
6189
 
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6190
 
echo "${ECHO_T}$XGETTEXT" >&6
6191
 
else
6192
 
  echo "$as_me:$LINENO: result: no" >&5
6193
 
echo "${ECHO_T}no" >&6
6194
 
fi
6195
 
 
6196
 
 
6197
 
            if test "$XGETTEXT" != ":"; then
6198
 
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6199
 
          : ;
6200
 
        else
6201
 
          echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
6202
 
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
6203
 
          XGETTEXT=":"
6204
 
        fi
6205
 
      fi
6206
 
 
6207
 
 
6208
 
 
6209
 
 
6210
 
 
6211
 
 
6212
 
if test -d /usr/lib/qt3; then
6213
 
  qt_vers=3.1
6214
 
else
6215
 
  if test -d /usr/share/qt3; then
6216
 
    qt_vers=3.1
6217
 
  else
6218
 
    qt_vers=2.3
6219
 
  fi
6220
 
fi
6221
 
 
6222
 
 
6223
 
 
6224
 
if test -z "$qt_vers"; then
6225
 
  # Current default Qt version: 3.1
6226
 
  kde_qtver=3
6227
 
  kde_qtsubver=1
6228
 
else
6229
 
  kde_qtsubver=`echo "2.3" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
6230
 
  # following is the check if subversion isnt found in passed argument
6231
 
  if test "$kde_qtsubver" = "2.3"; then
6232
 
    kde_qtsubver=1
6233
 
  fi
6234
 
  kde_qtver=`echo "2.3" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
6235
 
  if test "$kde_qtver" = "1"; then
6236
 
    kde_qtsubver=42
6237
 
  fi
6238
 
fi
6239
 
 
6240
 
if test -z ""; then
6241
 
  if test "$kde_qtver" = "2"; then
6242
 
    if test $kde_qtsubver -gt 0; then
6243
 
      kde_qt_minversion=">= Qt 2.2.2"
6244
 
    else
6245
 
      kde_qt_minversion=">= Qt 2.0.2"
6246
 
    fi
6247
 
  fi
6248
 
  if test "$kde_qtver" = "3"; then
6249
 
    if test $kde_qtsubver -gt 0; then
6250
 
      kde_qt_minversion=">= Qt 3.1 (20021021)"
6251
 
    else
6252
 
      kde_qt_minversion=">= Qt 3.0"
6253
 
    fi
6254
 
  fi
6255
 
  if test "$kde_qtver" = "1"; then
6256
 
    kde_qt_minversion=">= 1.42 and < 2.0"
6257
 
  fi
6258
 
else
6259
 
   kde_qt_minversion=
6260
 
fi
6261
 
 
6262
 
if test -z ""; then
6263
 
   if test $kde_qtver = 3; then
6264
 
     if test $kde_qtsubver -gt 0; then
6265
 
       kde_qt_verstring="QT_VERSION >= 0x030100"
6266
 
     else
6267
 
       kde_qt_verstring="QT_VERSION >= 300"
6268
 
     fi
6269
 
   fi
6270
 
   if test $kde_qtver = 2; then
6271
 
     if test $kde_qtsubver -gt 0; then
6272
 
       kde_qt_verstring="QT_VERSION >= 222"
6273
 
     else
6274
 
       kde_qt_verstring="QT_VERSION >= 200"
6275
 
     fi
6276
 
   fi
6277
 
   if test $kde_qtver = 1; then
6278
 
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
6279
 
   fi
6280
 
else
6281
 
   kde_qt_verstring=
6282
 
fi
6283
 
 
6284
 
if test $kde_qtver = 3; then
6285
 
  kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
6286
 
fi
6287
 
if test $kde_qtver = 2; then
6288
 
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
6289
 
fi
6290
 
if test $kde_qtver = 1; then
6291
 
   kde_qt_dirs="$QTDIR /usr/lib/qt"
6292
 
fi
6293
 
 
6294
 
 
6295
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6296
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6297
 
if test "${ac_cv_header_stdc+set}" = set; then
6298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6299
 
else
6300
 
  cat >conftest.$ac_ext <<_ACEOF
6301
 
#line $LINENO "configure"
6302
 
#include "confdefs.h"
6303
 
#include <stdlib.h>
6304
 
#include <stdarg.h>
6305
 
#include <string.h>
6306
 
#include <float.h>
6307
 
 
6308
 
_ACEOF
6309
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6310
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6311
 
  ac_status=$?
6312
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
6313
 
  rm -f conftest.er1
6314
 
  cat conftest.err >&5
6315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316
 
  (exit $ac_status); } >/dev/null; then
6317
 
  if test -s conftest.err; then
6318
 
    ac_cpp_err=$ac_c_preproc_warn_flag
6319
 
  else
6320
 
    ac_cpp_err=
6321
 
  fi
6322
 
else
6323
 
  ac_cpp_err=yes
6324
 
fi
6325
 
if test -z "$ac_cpp_err"; then
6326
 
  ac_cv_header_stdc=yes
6327
 
else
6328
 
  echo "$as_me: failed program was:" >&5
6329
 
  cat conftest.$ac_ext >&5
6330
 
  ac_cv_header_stdc=no
6331
 
fi
6332
 
rm -f conftest.err conftest.$ac_ext
6333
 
 
6334
 
if test $ac_cv_header_stdc = yes; then
6335
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6336
 
  cat >conftest.$ac_ext <<_ACEOF
6337
 
#line $LINENO "configure"
6338
 
#include "confdefs.h"
6339
 
#include <string.h>
6340
 
 
6341
 
_ACEOF
6342
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343
 
  egrep "memchr" >/dev/null 2>&1; then
6344
 
  :
6345
 
else
6346
 
  ac_cv_header_stdc=no
6347
 
fi
6348
 
rm -f conftest*
6349
 
 
6350
 
fi
6351
 
 
6352
 
if test $ac_cv_header_stdc = yes; then
6353
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6354
 
  cat >conftest.$ac_ext <<_ACEOF
6355
 
#line $LINENO "configure"
6356
 
#include "confdefs.h"
6357
 
#include <stdlib.h>
6358
 
 
6359
 
_ACEOF
6360
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361
 
  egrep "free" >/dev/null 2>&1; then
6362
 
  :
6363
 
else
6364
 
  ac_cv_header_stdc=no
6365
 
fi
6366
 
rm -f conftest*
6367
 
 
6368
 
fi
6369
 
 
6370
 
if test $ac_cv_header_stdc = yes; then
6371
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6372
 
  if test "$cross_compiling" = yes; then
6373
 
  :
6374
 
else
6375
 
  cat >conftest.$ac_ext <<_ACEOF
6376
 
#line $LINENO "configure"
6377
 
#include "confdefs.h"
6378
 
#include <ctype.h>
6379
 
#if ((' ' & 0x0FF) == 0x020)
6380
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6381
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6382
 
#else
6383
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6384
 
                     || ('j' <= (c) && (c) <= 'r') \
6385
 
                     || ('s' <= (c) && (c) <= 'z'))
6386
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6387
 
#endif
6388
 
 
6389
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6390
 
int
6391
 
main ()
6392
 
{
6393
 
  int i;
6394
 
  for (i = 0; i < 256; i++)
6395
 
    if (XOR (islower (i), ISLOWER (i))
6396
 
        || toupper (i) != TOUPPER (i))
6397
 
      exit(2);
6398
 
  exit (0);
6399
 
}
6400
 
_ACEOF
6401
 
rm -f conftest$ac_exeext
6402
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403
 
  (eval $ac_link) 2>&5
6404
 
  ac_status=$?
6405
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6407
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408
 
  (eval $ac_try) 2>&5
6409
 
  ac_status=$?
6410
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411
 
  (exit $ac_status); }; }; then
6412
 
  :
6413
 
else
6414
 
  echo "$as_me: program exited with status $ac_status" >&5
6415
 
echo "$as_me: failed program was:" >&5
6416
 
cat conftest.$ac_ext >&5
6417
 
( exit $ac_status )
6418
 
ac_cv_header_stdc=no
6419
 
fi
6420
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6421
 
fi
6422
 
fi
6423
 
fi
6424
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6425
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6426
 
if test $ac_cv_header_stdc = yes; then
6427
 
 
6428
 
cat >>confdefs.h <<\_ACEOF
6429
 
#define STDC_HEADERS 1
6430
 
_ACEOF
6431
 
 
6432
 
fi
6433
 
 
6434
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6435
 
 
6436
 
 
6437
 
 
6438
 
 
6439
 
 
6440
 
 
6441
 
 
6442
 
 
6443
 
 
6444
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6445
 
                  inttypes.h stdint.h unistd.h
6446
 
do
6447
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
6449
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6450
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6451
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6452
 
else
6453
 
  cat >conftest.$ac_ext <<_ACEOF
6454
 
#line $LINENO "configure"
6455
 
#include "confdefs.h"
6456
 
$ac_includes_default
6457
 
 
6458
 
#include <$ac_header>
6459
 
_ACEOF
6460
 
rm -f conftest.$ac_objext
6461
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462
 
  (eval $ac_compile) 2>&5
6463
 
  ac_status=$?
6464
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465
 
  (exit $ac_status); } &&
6466
 
         { ac_try='test -s conftest.$ac_objext'
6467
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468
 
  (eval $ac_try) 2>&5
6469
 
  ac_status=$?
6470
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471
 
  (exit $ac_status); }; }; then
6472
 
  eval "$as_ac_Header=yes"
6473
 
else
6474
 
  echo "$as_me: failed program was:" >&5
6475
 
cat conftest.$ac_ext >&5
6476
 
eval "$as_ac_Header=no"
6477
 
fi
6478
 
rm -f conftest.$ac_objext conftest.$ac_ext
6479
 
fi
6480
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6482
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483
 
  cat >>confdefs.h <<_ACEOF
6484
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485
 
_ACEOF
6486
 
 
6487
 
fi
6488
 
 
6489
 
done
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
echo "$as_me:$LINENO: checking for strlcat" >&5
6495
 
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
6496
 
if test "${kde_cv_func_strlcat+set}" = set; then
6497
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6498
 
else
6499
 
 
6500
 
 
6501
 
 
6502
 
 ac_ext=cc
6503
 
ac_cpp='$CXXCPP $CPPFLAGS'
6504
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6507
 
 
6508
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6509
 
 
6510
 
 
6511
 
save_CXXFLAGS="$CXXFLAGS"
6512
 
kde_safe_LIBS="$LIBS"
6513
 
LIBS="$LIBS $X_EXTRA_LIBS"
6514
 
if test "$GXX" = "yes"; then
6515
 
CXXFLAGS="$CXXFLAGS -pedantic-errors"
6516
 
fi
6517
 
cat >conftest.$ac_ext <<_ACEOF
6518
 
#line $LINENO "configure"
6519
 
#include "confdefs.h"
6520
 
 
6521
 
 
6522
 
#include <string.h>
6523
 
 
6524
 
 
6525
 
#ifdef F77_DUMMY_MAIN
6526
 
#  ifdef __cplusplus
6527
 
     extern "C"
6528
 
#  endif
6529
 
   int F77_DUMMY_MAIN() { return 1; }
6530
 
#endif
6531
 
int
6532
 
main ()
6533
 
{
6534
 
 
6535
 
 char buf[20];
6536
 
  buf[0]='\0';
6537
 
  strlcat(buf, "KDE function test", sizeof(buf));
6538
 
 
6539
 
 
6540
 
  ;
6541
 
  return 0;
6542
 
}
6543
 
_ACEOF
6544
 
rm -f conftest.$ac_objext
6545
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546
 
  (eval $ac_compile) 2>&5
6547
 
  ac_status=$?
6548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549
 
  (exit $ac_status); } &&
6550
 
         { ac_try='test -s conftest.$ac_objext'
6551
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552
 
  (eval $ac_try) 2>&5
6553
 
  ac_status=$?
6554
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555
 
  (exit $ac_status); }; }; then
6556
 
  kde_cv_func_strlcat=yes
6557
 
else
6558
 
  echo "$as_me: failed program was:" >&5
6559
 
cat conftest.$ac_ext >&5
6560
 
kde_cv_func_strlcat=no
6561
 
fi
6562
 
rm -f conftest.$ac_objext conftest.$ac_ext
6563
 
CXXFLAGS="$save_CXXFLAGS"
6564
 
LIBS="$kde_safe_LIBS"
6565
 
ac_ext=c
6566
 
ac_cpp='$CPP $CPPFLAGS'
6567
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
 
 
6571
 
 
6572
 
fi
6573
 
 
6574
 
 
6575
 
echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
6576
 
echo "${ECHO_T}$kde_cv_func_strlcat" >&6
6577
 
 
6578
 
echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
6579
 
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
6580
 
if test "${kde_cv_proto_strlcat+set}" = set; then
6581
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6582
 
else
6583
 
 
6584
 
if test "x$kde_cv_func_strlcat" = xyes; then
6585
 
  kde_cv_proto_strlcat=no
6586
 
else
6587
 
  case "strlcat" in
6588
 
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
6589
 
                kde_cv_proto_strlcat="yes - in libkdefakes"
6590
 
                ;;
6591
 
        *)
6592
 
                kde_cv_proto_strlcat=unknown
6593
 
                ;;
6594
 
  esac
6595
 
fi
6596
 
 
6597
 
if test "x$kde_cv_proto_strlcat" = xunknown; then
6598
 
 
6599
 
 
6600
 
 
6601
 
 ac_ext=cc
6602
 
ac_cpp='$CXXCPP $CPPFLAGS'
6603
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6606
 
 
6607
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6608
 
 
6609
 
 
6610
 
  kde_safe_libs=$LIBS
6611
 
  LIBS="$LIBS $X_EXTRA_LIBS"
6612
 
  cat >conftest.$ac_ext <<_ACEOF
6613
 
#line $LINENO "configure"
6614
 
#include "confdefs.h"
6615
 
 
6616
 
 
6617
 
#include <string.h>
6618
 
 
6619
 
 
6620
 
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
6621
 
 
6622
 
#ifdef F77_DUMMY_MAIN
6623
 
#  ifdef __cplusplus
6624
 
     extern "C"
6625
 
#  endif
6626
 
   int F77_DUMMY_MAIN() { return 1; }
6627
 
#endif
6628
 
int
6629
 
main ()
6630
 
{
6631
 
 
6632
 
 char buf[20];
6633
 
  buf[0]='\0';
6634
 
  strlcat(buf, "KDE function test", sizeof(buf));
6635
 
 
6636
 
 
6637
 
  ;
6638
 
  return 0;
6639
 
}
6640
 
_ACEOF
6641
 
rm -f conftest.$ac_objext conftest$ac_exeext
6642
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643
 
  (eval $ac_link) 2>&5
6644
 
  ac_status=$?
6645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646
 
  (exit $ac_status); } &&
6647
 
         { ac_try='test -s conftest$ac_exeext'
6648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649
 
  (eval $ac_try) 2>&5
6650
 
  ac_status=$?
6651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652
 
  (exit $ac_status); }; }; then
6653
 
   kde_cv_func_strlcat=yes
6654
 
  kde_cv_proto_strlcat=yes
6655
 
else
6656
 
  echo "$as_me: failed program was:" >&5
6657
 
cat conftest.$ac_ext >&5
6658
 
kde_cv_proto_strlcat="strlcat unavailable"
6659
 
 
6660
 
fi
6661
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6662
 
LIBS=$kde_safe_libs
6663
 
ac_ext=c
6664
 
ac_cpp='$CPP $CPPFLAGS'
6665
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
 
 
6669
 
fi
6670
 
 
6671
 
fi
6672
 
 
6673
 
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
6674
 
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
6675
 
 
6676
 
if test "x$kde_cv_func_strlcat" = xyes; then
6677
 
 
6678
 
cat >>confdefs.h <<\_ACEOF
6679
 
#define HAVE_STRLCAT 1
6680
 
_ACEOF
6681
 
 
6682
 
 
6683
 
fi
6684
 
if test "x$kde_cv_proto_strlcat" = xno; then
6685
 
 
6686
 
cat >>confdefs.h <<\_ACEOF
6687
 
#define HAVE_STRLCAT_PROTO 1
6688
 
_ACEOF
6689
 
 
6690
 
fi
6691
 
 
6692
 
 
6693
 
 
6694
 
 
6695
 
 
6696
 
 
6697
 
 
6698
 
echo "$as_me:$LINENO: checking for strlcpy" >&5
6699
 
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
6700
 
if test "${kde_cv_func_strlcpy+set}" = set; then
6701
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6702
 
else
6703
 
 
6704
 
 
6705
 
 
6706
 
 ac_ext=cc
6707
 
ac_cpp='$CXXCPP $CPPFLAGS'
6708
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6709
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6710
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6711
 
 
6712
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6713
 
 
6714
 
 
6715
 
save_CXXFLAGS="$CXXFLAGS"
6716
 
kde_safe_LIBS="$LIBS"
6717
 
LIBS="$LIBS $X_EXTRA_LIBS"
6718
 
if test "$GXX" = "yes"; then
6719
 
CXXFLAGS="$CXXFLAGS -pedantic-errors"
6720
 
fi
6721
 
cat >conftest.$ac_ext <<_ACEOF
6722
 
#line $LINENO "configure"
6723
 
#include "confdefs.h"
6724
 
 
6725
 
 
6726
 
#include <string.h>
6727
 
 
6728
 
 
6729
 
#ifdef F77_DUMMY_MAIN
6730
 
#  ifdef __cplusplus
6731
 
     extern "C"
6732
 
#  endif
6733
 
   int F77_DUMMY_MAIN() { return 1; }
6734
 
#endif
6735
 
int
6736
 
main ()
6737
 
{
6738
 
 
6739
 
 char buf[20];
6740
 
  strlcpy(buf, "KDE function test", sizeof(buf));
6741
 
 
6742
 
 
6743
 
  ;
6744
 
  return 0;
6745
 
}
6746
 
_ACEOF
6747
 
rm -f conftest.$ac_objext
6748
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6749
 
  (eval $ac_compile) 2>&5
6750
 
  ac_status=$?
6751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752
 
  (exit $ac_status); } &&
6753
 
         { ac_try='test -s conftest.$ac_objext'
6754
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755
 
  (eval $ac_try) 2>&5
6756
 
  ac_status=$?
6757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758
 
  (exit $ac_status); }; }; then
6759
 
  kde_cv_func_strlcpy=yes
6760
 
else
6761
 
  echo "$as_me: failed program was:" >&5
6762
 
cat conftest.$ac_ext >&5
6763
 
kde_cv_func_strlcpy=no
6764
 
fi
6765
 
rm -f conftest.$ac_objext conftest.$ac_ext
6766
 
CXXFLAGS="$save_CXXFLAGS"
6767
 
LIBS="$kde_safe_LIBS"
6768
 
ac_ext=c
6769
 
ac_cpp='$CPP $CPPFLAGS'
6770
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
 
 
6774
 
 
6775
 
fi
6776
 
 
6777
 
 
6778
 
echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
6779
 
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
6780
 
 
6781
 
echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
6782
 
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
6783
 
if test "${kde_cv_proto_strlcpy+set}" = set; then
6784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6785
 
else
6786
 
 
6787
 
if test "x$kde_cv_func_strlcpy" = xyes; then
6788
 
  kde_cv_proto_strlcpy=no
6789
 
else
6790
 
  case "strlcpy" in
6791
 
        setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
6792
 
                kde_cv_proto_strlcpy="yes - in libkdefakes"
6793
 
                ;;
6794
 
        *)
6795
 
                kde_cv_proto_strlcpy=unknown
6796
 
                ;;
6797
 
  esac
6798
 
fi
6799
 
 
6800
 
if test "x$kde_cv_proto_strlcpy" = xunknown; then
6801
 
 
6802
 
 
6803
 
 
6804
 
 ac_ext=cc
6805
 
ac_cpp='$CXXCPP $CPPFLAGS'
6806
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6809
 
 
6810
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6811
 
 
6812
 
 
6813
 
  kde_safe_libs=$LIBS
6814
 
  LIBS="$LIBS $X_EXTRA_LIBS"
6815
 
  cat >conftest.$ac_ext <<_ACEOF
6816
 
#line $LINENO "configure"
6817
 
#include "confdefs.h"
6818
 
 
6819
 
 
6820
 
#include <string.h>
6821
 
 
6822
 
 
6823
 
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
6824
 
 
6825
 
#ifdef F77_DUMMY_MAIN
6826
 
#  ifdef __cplusplus
6827
 
     extern "C"
6828
 
#  endif
6829
 
   int F77_DUMMY_MAIN() { return 1; }
6830
 
#endif
6831
 
int
6832
 
main ()
6833
 
{
6834
 
 
6835
 
 char buf[20];
6836
 
  strlcpy(buf, "KDE function test", sizeof(buf));
6837
 
 
6838
 
 
6839
 
  ;
6840
 
  return 0;
6841
 
}
6842
 
_ACEOF
6843
 
rm -f conftest.$ac_objext conftest$ac_exeext
6844
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845
 
  (eval $ac_link) 2>&5
6846
 
  ac_status=$?
6847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848
 
  (exit $ac_status); } &&
6849
 
         { ac_try='test -s conftest$ac_exeext'
6850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851
 
  (eval $ac_try) 2>&5
6852
 
  ac_status=$?
6853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854
 
  (exit $ac_status); }; }; then
6855
 
   kde_cv_func_strlcpy=yes
6856
 
  kde_cv_proto_strlcpy=yes
6857
 
else
6858
 
  echo "$as_me: failed program was:" >&5
6859
 
cat conftest.$ac_ext >&5
6860
 
kde_cv_proto_strlcpy="strlcpy unavailable"
6861
 
 
6862
 
fi
6863
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6864
 
LIBS=$kde_safe_libs
6865
 
ac_ext=c
6866
 
ac_cpp='$CPP $CPPFLAGS'
6867
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6870
 
 
6871
 
fi
6872
 
 
6873
 
fi
6874
 
 
6875
 
echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
6876
 
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
6877
 
 
6878
 
if test "x$kde_cv_func_strlcpy" = xyes; then
6879
 
 
6880
 
cat >>confdefs.h <<\_ACEOF
6881
 
#define HAVE_STRLCPY 1
6882
 
_ACEOF
6883
 
 
6884
 
 
6885
 
fi
6886
 
if test "x$kde_cv_proto_strlcpy" = xno; then
6887
 
 
6888
 
cat >>confdefs.h <<\_ACEOF
6889
 
#define HAVE_STRLCPY_PROTO 1
6890
 
_ACEOF
6891
 
 
6892
 
fi
6893
 
 
6894
 
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
   ac_ext=c
6900
 
ac_cpp='$CPP $CPPFLAGS'
6901
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6904
 
 
6905
 
      echo "$as_me:$LINENO: checking for main in -lutil" >&5
6906
 
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
6907
 
if test "${ac_cv_lib_util_main+set}" = set; then
6908
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6909
 
else
6910
 
  ac_check_lib_save_LIBS=$LIBS
6911
 
LIBS="-lutil  $LIBS"
6912
 
cat >conftest.$ac_ext <<_ACEOF
6913
 
#line $LINENO "configure"
6914
 
#include "confdefs.h"
6915
 
 
6916
 
 
6917
 
#ifdef F77_DUMMY_MAIN
6918
 
#  ifdef __cplusplus
6919
 
     extern "C"
6920
 
#  endif
6921
 
   int F77_DUMMY_MAIN() { return 1; }
6922
 
#endif
6923
 
int
6924
 
main ()
6925
 
{
6926
 
main ();
6927
 
  ;
6928
 
  return 0;
6929
 
}
6930
 
_ACEOF
6931
 
rm -f conftest.$ac_objext conftest$ac_exeext
6932
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933
 
  (eval $ac_link) 2>&5
6934
 
  ac_status=$?
6935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936
 
  (exit $ac_status); } &&
6937
 
         { ac_try='test -s conftest$ac_exeext'
6938
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939
 
  (eval $ac_try) 2>&5
6940
 
  ac_status=$?
6941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942
 
  (exit $ac_status); }; }; then
6943
 
  ac_cv_lib_util_main=yes
6944
 
else
6945
 
  echo "$as_me: failed program was:" >&5
6946
 
cat conftest.$ac_ext >&5
6947
 
ac_cv_lib_util_main=no
6948
 
fi
6949
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6950
 
LIBS=$ac_check_lib_save_LIBS
6951
 
fi
6952
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
6953
 
echo "${ECHO_T}$ac_cv_lib_util_main" >&6
6954
 
if test $ac_cv_lib_util_main = yes; then
6955
 
  LIBUTIL="-lutil"
6956
 
fi
6957
 
 
6958
 
   echo "$as_me:$LINENO: checking for main in -lcompat" >&5
6959
 
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
6960
 
if test "${ac_cv_lib_compat_main+set}" = set; then
6961
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6962
 
else
6963
 
  ac_check_lib_save_LIBS=$LIBS
6964
 
LIBS="-lcompat  $LIBS"
6965
 
cat >conftest.$ac_ext <<_ACEOF
6966
 
#line $LINENO "configure"
6967
 
#include "confdefs.h"
6968
 
 
6969
 
 
6970
 
#ifdef F77_DUMMY_MAIN
6971
 
#  ifdef __cplusplus
6972
 
     extern "C"
6973
 
#  endif
6974
 
   int F77_DUMMY_MAIN() { return 1; }
6975
 
#endif
6976
 
int
6977
 
main ()
6978
 
{
6979
 
main ();
6980
 
  ;
6981
 
  return 0;
6982
 
}
6983
 
_ACEOF
6984
 
rm -f conftest.$ac_objext conftest$ac_exeext
6985
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986
 
  (eval $ac_link) 2>&5
6987
 
  ac_status=$?
6988
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989
 
  (exit $ac_status); } &&
6990
 
         { ac_try='test -s conftest$ac_exeext'
6991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992
 
  (eval $ac_try) 2>&5
6993
 
  ac_status=$?
6994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995
 
  (exit $ac_status); }; }; then
6996
 
  ac_cv_lib_compat_main=yes
6997
 
else
6998
 
  echo "$as_me: failed program was:" >&5
6999
 
cat conftest.$ac_ext >&5
7000
 
ac_cv_lib_compat_main=no
7001
 
fi
7002
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7003
 
LIBS=$ac_check_lib_save_LIBS
7004
 
fi
7005
 
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
7006
 
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
7007
 
if test $ac_cv_lib_compat_main = yes; then
7008
 
  LIBCOMPAT="-lcompat"
7009
 
fi
7010
 
 
7011
 
   kde_have_crypt=
7012
 
   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7013
 
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7014
 
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7016
 
else
7017
 
  ac_check_lib_save_LIBS=$LIBS
7018
 
LIBS="-lcrypt  $LIBS"
7019
 
cat >conftest.$ac_ext <<_ACEOF
7020
 
#line $LINENO "configure"
7021
 
#include "confdefs.h"
7022
 
 
7023
 
/* Override any gcc2 internal prototype to avoid an error.  */
7024
 
#ifdef __cplusplus
7025
 
extern "C"
7026
 
#endif
7027
 
/* We use char because int might match the return type of a gcc2
7028
 
   builtin and then its argument prototype would still apply.  */
7029
 
char crypt ();
7030
 
#ifdef F77_DUMMY_MAIN
7031
 
#  ifdef __cplusplus
7032
 
     extern "C"
7033
 
#  endif
7034
 
   int F77_DUMMY_MAIN() { return 1; }
7035
 
#endif
7036
 
int
7037
 
main ()
7038
 
{
7039
 
crypt ();
7040
 
  ;
7041
 
  return 0;
7042
 
}
7043
 
_ACEOF
7044
 
rm -f conftest.$ac_objext conftest$ac_exeext
7045
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046
 
  (eval $ac_link) 2>&5
7047
 
  ac_status=$?
7048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049
 
  (exit $ac_status); } &&
7050
 
         { ac_try='test -s conftest$ac_exeext'
7051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052
 
  (eval $ac_try) 2>&5
7053
 
  ac_status=$?
7054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055
 
  (exit $ac_status); }; }; then
7056
 
  ac_cv_lib_crypt_crypt=yes
7057
 
else
7058
 
  echo "$as_me: failed program was:" >&5
7059
 
cat conftest.$ac_ext >&5
7060
 
ac_cv_lib_crypt_crypt=no
7061
 
fi
7062
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7063
 
LIBS=$ac_check_lib_save_LIBS
7064
 
fi
7065
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7066
 
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7067
 
if test $ac_cv_lib_crypt_crypt = yes; then
7068
 
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
7069
 
else
7070
 
  echo "$as_me:$LINENO: checking for crypt in -lc" >&5
7071
 
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
7072
 
if test "${ac_cv_lib_c_crypt+set}" = set; then
7073
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7074
 
else
7075
 
  ac_check_lib_save_LIBS=$LIBS
7076
 
LIBS="-lc  $LIBS"
7077
 
cat >conftest.$ac_ext <<_ACEOF
7078
 
#line $LINENO "configure"
7079
 
#include "confdefs.h"
7080
 
 
7081
 
/* Override any gcc2 internal prototype to avoid an error.  */
7082
 
#ifdef __cplusplus
7083
 
extern "C"
7084
 
#endif
7085
 
/* We use char because int might match the return type of a gcc2
7086
 
   builtin and then its argument prototype would still apply.  */
7087
 
char crypt ();
7088
 
#ifdef F77_DUMMY_MAIN
7089
 
#  ifdef __cplusplus
7090
 
     extern "C"
7091
 
#  endif
7092
 
   int F77_DUMMY_MAIN() { return 1; }
7093
 
#endif
7094
 
int
7095
 
main ()
7096
 
{
7097
 
crypt ();
7098
 
  ;
7099
 
  return 0;
7100
 
}
7101
 
_ACEOF
7102
 
rm -f conftest.$ac_objext conftest$ac_exeext
7103
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104
 
  (eval $ac_link) 2>&5
7105
 
  ac_status=$?
7106
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107
 
  (exit $ac_status); } &&
7108
 
         { ac_try='test -s conftest$ac_exeext'
7109
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110
 
  (eval $ac_try) 2>&5
7111
 
  ac_status=$?
7112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113
 
  (exit $ac_status); }; }; then
7114
 
  ac_cv_lib_c_crypt=yes
7115
 
else
7116
 
  echo "$as_me: failed program was:" >&5
7117
 
cat conftest.$ac_ext >&5
7118
 
ac_cv_lib_c_crypt=no
7119
 
fi
7120
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7121
 
LIBS=$ac_check_lib_save_LIBS
7122
 
fi
7123
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
7124
 
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
7125
 
if test $ac_cv_lib_c_crypt = yes; then
7126
 
  kde_have_crypt=yes
7127
 
else
7128
 
 
7129
 
        { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
7130
 
You should install libcrypt from another source or configure with PAM
7131
 
support" >&5
7132
 
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
7133
 
You should install libcrypt from another source or configure with PAM
7134
 
support" >&2;}
7135
 
        kde_have_crypt=no
7136
 
 
7137
 
fi
7138
 
 
7139
 
fi
7140
 
 
7141
 
 
7142
 
   if test $kde_have_crypt = yes; then
7143
 
 
7144
 
cat >>confdefs.h <<_ACEOF
7145
 
#define HAVE_CRYPT 1
7146
 
_ACEOF
7147
 
 
7148
 
   fi
7149
 
 
7150
 
  echo "$as_me:$LINENO: checking for socklen_t" >&5
7151
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7152
 
  if test "${ac_cv_socklen_t+set}" = set; then
7153
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7154
 
else
7155
 
 
7156
 
 
7157
 
 
7158
 
     ac_ext=cc
7159
 
ac_cpp='$CXXCPP $CPPFLAGS'
7160
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7163
 
 
7164
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7165
 
 
7166
 
 
7167
 
    cat >conftest.$ac_ext <<_ACEOF
7168
 
#line $LINENO "configure"
7169
 
#include "confdefs.h"
7170
 
 
7171
 
#include <sys/types.h>
7172
 
#include <sys/socket.h>
7173
 
 
7174
 
#ifdef F77_DUMMY_MAIN
7175
 
#  ifdef __cplusplus
7176
 
     extern "C"
7177
 
#  endif
7178
 
   int F77_DUMMY_MAIN() { return 1; }
7179
 
#endif
7180
 
int
7181
 
main ()
7182
 
{
7183
 
 
7184
 
socklen_t a=0;
7185
 
getsockname(0,(struct sockaddr*)0, &a);
7186
 
 
7187
 
  ;
7188
 
  return 0;
7189
 
}
7190
 
_ACEOF
7191
 
rm -f conftest.$ac_objext
7192
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7193
 
  (eval $ac_compile) 2>&5
7194
 
  ac_status=$?
7195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196
 
  (exit $ac_status); } &&
7197
 
         { ac_try='test -s conftest.$ac_objext'
7198
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199
 
  (eval $ac_try) 2>&5
7200
 
  ac_status=$?
7201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202
 
  (exit $ac_status); }; }; then
7203
 
  ac_cv_socklen_t=socklen_t
7204
 
else
7205
 
  echo "$as_me: failed program was:" >&5
7206
 
cat conftest.$ac_ext >&5
7207
 
cat >conftest.$ac_ext <<_ACEOF
7208
 
#line $LINENO "configure"
7209
 
#include "confdefs.h"
7210
 
 
7211
 
#include <sys/types.h>
7212
 
#include <sys/socket.h>
7213
 
 
7214
 
#ifdef F77_DUMMY_MAIN
7215
 
#  ifdef __cplusplus
7216
 
     extern "C"
7217
 
#  endif
7218
 
   int F77_DUMMY_MAIN() { return 1; }
7219
 
#endif
7220
 
int
7221
 
main ()
7222
 
{
7223
 
 
7224
 
int a=0;
7225
 
getsockname(0,(struct sockaddr*)0, &a);
7226
 
 
7227
 
  ;
7228
 
  return 0;
7229
 
}
7230
 
_ACEOF
7231
 
rm -f conftest.$ac_objext
7232
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233
 
  (eval $ac_compile) 2>&5
7234
 
  ac_status=$?
7235
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
 
  (exit $ac_status); } &&
7237
 
         { ac_try='test -s conftest.$ac_objext'
7238
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239
 
  (eval $ac_try) 2>&5
7240
 
  ac_status=$?
7241
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242
 
  (exit $ac_status); }; }; then
7243
 
  ac_cv_socklen_t=int
7244
 
else
7245
 
  echo "$as_me: failed program was:" >&5
7246
 
cat conftest.$ac_ext >&5
7247
 
ac_cv_socklen_t=size_t
7248
 
 
7249
 
fi
7250
 
rm -f conftest.$ac_objext conftest.$ac_ext
7251
 
 
7252
 
fi
7253
 
rm -f conftest.$ac_objext conftest.$ac_ext
7254
 
    ac_ext=c
7255
 
ac_cpp='$CPP $CPPFLAGS'
7256
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
 
 
7260
 
 
7261
 
fi
7262
 
 
7263
 
 
7264
 
  echo "$as_me:$LINENO: result: $ac_cv_socklen_t" >&5
7265
 
echo "${ECHO_T}$ac_cv_socklen_t" >&6
7266
 
  if test "$ac_cv_socklen_t" != "socklen_t"; then
7267
 
 
7268
 
cat >>confdefs.h <<_ACEOF
7269
 
#define socklen_t $ac_cv_socklen_t
7270
 
_ACEOF
7271
 
 
7272
 
  fi
7273
 
 
7274
 
cat >>confdefs.h <<_ACEOF
7275
 
#define ksize_t socklen_t
7276
 
_ACEOF
7277
 
 
7278
 
 
7279
 
 
7280
 
   ac_ext=c
7281
 
ac_cpp='$CPP $CPPFLAGS'
7282
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7285
 
 
7286
 
   echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7287
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7288
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7289
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7290
 
else
7291
 
  ac_check_lib_save_LIBS=$LIBS
7292
 
LIBS="-ldnet  $LIBS"
7293
 
cat >conftest.$ac_ext <<_ACEOF
7294
 
#line $LINENO "configure"
7295
 
#include "confdefs.h"
7296
 
 
7297
 
/* Override any gcc2 internal prototype to avoid an error.  */
7298
 
#ifdef __cplusplus
7299
 
extern "C"
7300
 
#endif
7301
 
/* We use char because int might match the return type of a gcc2
7302
 
   builtin and then its argument prototype would still apply.  */
7303
 
char dnet_ntoa ();
7304
 
#ifdef F77_DUMMY_MAIN
7305
 
#  ifdef __cplusplus
7306
 
     extern "C"
7307
 
#  endif
7308
 
   int F77_DUMMY_MAIN() { return 1; }
7309
 
#endif
7310
 
int
7311
 
main ()
7312
 
{
7313
 
dnet_ntoa ();
7314
 
  ;
7315
 
  return 0;
7316
 
}
7317
 
_ACEOF
7318
 
rm -f conftest.$ac_objext conftest$ac_exeext
7319
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320
 
  (eval $ac_link) 2>&5
7321
 
  ac_status=$?
7322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323
 
  (exit $ac_status); } &&
7324
 
         { ac_try='test -s conftest$ac_exeext'
7325
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326
 
  (eval $ac_try) 2>&5
7327
 
  ac_status=$?
7328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329
 
  (exit $ac_status); }; }; then
7330
 
  ac_cv_lib_dnet_dnet_ntoa=yes
7331
 
else
7332
 
  echo "$as_me: failed program was:" >&5
7333
 
cat conftest.$ac_ext >&5
7334
 
ac_cv_lib_dnet_dnet_ntoa=no
7335
 
fi
7336
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7337
 
LIBS=$ac_check_lib_save_LIBS
7338
 
fi
7339
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7340
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7341
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7342
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7343
 
fi
7344
 
 
7345
 
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7346
 
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7347
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7348
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7349
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7350
 
else
7351
 
  ac_check_lib_save_LIBS=$LIBS
7352
 
LIBS="-ldnet_stub  $LIBS"
7353
 
cat >conftest.$ac_ext <<_ACEOF
7354
 
#line $LINENO "configure"
7355
 
#include "confdefs.h"
7356
 
 
7357
 
/* Override any gcc2 internal prototype to avoid an error.  */
7358
 
#ifdef __cplusplus
7359
 
extern "C"
7360
 
#endif
7361
 
/* We use char because int might match the return type of a gcc2
7362
 
   builtin and then its argument prototype would still apply.  */
7363
 
char dnet_ntoa ();
7364
 
#ifdef F77_DUMMY_MAIN
7365
 
#  ifdef __cplusplus
7366
 
     extern "C"
7367
 
#  endif
7368
 
   int F77_DUMMY_MAIN() { return 1; }
7369
 
#endif
7370
 
int
7371
 
main ()
7372
 
{
7373
 
dnet_ntoa ();
7374
 
  ;
7375
 
  return 0;
7376
 
}
7377
 
_ACEOF
7378
 
rm -f conftest.$ac_objext conftest$ac_exeext
7379
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380
 
  (eval $ac_link) 2>&5
7381
 
  ac_status=$?
7382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383
 
  (exit $ac_status); } &&
7384
 
         { ac_try='test -s conftest$ac_exeext'
7385
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386
 
  (eval $ac_try) 2>&5
7387
 
  ac_status=$?
7388
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389
 
  (exit $ac_status); }; }; then
7390
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
7391
 
else
7392
 
  echo "$as_me: failed program was:" >&5
7393
 
cat conftest.$ac_ext >&5
7394
 
ac_cv_lib_dnet_stub_dnet_ntoa=no
7395
 
fi
7396
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7397
 
LIBS=$ac_check_lib_save_LIBS
7398
 
fi
7399
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7400
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7401
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7402
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7403
 
fi
7404
 
 
7405
 
   fi
7406
 
   echo "$as_me:$LINENO: checking for inet_ntoa" >&5
7407
 
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
7408
 
if test "${ac_cv_func_inet_ntoa+set}" = set; then
7409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7410
 
else
7411
 
  cat >conftest.$ac_ext <<_ACEOF
7412
 
#line $LINENO "configure"
7413
 
#include "confdefs.h"
7414
 
/* System header to define __stub macros and hopefully few prototypes,
7415
 
    which can conflict with char inet_ntoa (); below.  */
7416
 
#include <assert.h>
7417
 
/* Override any gcc2 internal prototype to avoid an error.  */
7418
 
#ifdef __cplusplus
7419
 
extern "C"
7420
 
#endif
7421
 
/* We use char because int might match the return type of a gcc2
7422
 
   builtin and then its argument prototype would still apply.  */
7423
 
char inet_ntoa ();
7424
 
char (*f) ();
7425
 
 
7426
 
#ifdef F77_DUMMY_MAIN
7427
 
#  ifdef __cplusplus
7428
 
     extern "C"
7429
 
#  endif
7430
 
   int F77_DUMMY_MAIN() { return 1; }
7431
 
#endif
7432
 
int
7433
 
main ()
7434
 
{
7435
 
/* The GNU C library defines this for functions which it implements
7436
 
    to always fail with ENOSYS.  Some functions are actually named
7437
 
    something starting with __ and the normal name is an alias.  */
7438
 
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
7439
 
choke me
7440
 
#else
7441
 
f = inet_ntoa;
7442
 
#endif
7443
 
 
7444
 
  ;
7445
 
  return 0;
7446
 
}
7447
 
_ACEOF
7448
 
rm -f conftest.$ac_objext conftest$ac_exeext
7449
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450
 
  (eval $ac_link) 2>&5
7451
 
  ac_status=$?
7452
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453
 
  (exit $ac_status); } &&
7454
 
         { ac_try='test -s conftest$ac_exeext'
7455
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456
 
  (eval $ac_try) 2>&5
7457
 
  ac_status=$?
7458
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459
 
  (exit $ac_status); }; }; then
7460
 
  ac_cv_func_inet_ntoa=yes
7461
 
else
7462
 
  echo "$as_me: failed program was:" >&5
7463
 
cat conftest.$ac_ext >&5
7464
 
ac_cv_func_inet_ntoa=no
7465
 
fi
7466
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7467
 
fi
7468
 
echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
7469
 
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
7470
 
 
7471
 
   if test $ac_cv_func_inet_ntoa = no; then
7472
 
     echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
7473
 
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
7474
 
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
7475
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7476
 
else
7477
 
  ac_check_lib_save_LIBS=$LIBS
7478
 
LIBS="-lnsl  $LIBS"
7479
 
cat >conftest.$ac_ext <<_ACEOF
7480
 
#line $LINENO "configure"
7481
 
#include "confdefs.h"
7482
 
 
7483
 
/* Override any gcc2 internal prototype to avoid an error.  */
7484
 
#ifdef __cplusplus
7485
 
extern "C"
7486
 
#endif
7487
 
/* We use char because int might match the return type of a gcc2
7488
 
   builtin and then its argument prototype would still apply.  */
7489
 
char inet_ntoa ();
7490
 
#ifdef F77_DUMMY_MAIN
7491
 
#  ifdef __cplusplus
7492
 
     extern "C"
7493
 
#  endif
7494
 
   int F77_DUMMY_MAIN() { return 1; }
7495
 
#endif
7496
 
int
7497
 
main ()
7498
 
{
7499
 
inet_ntoa ();
7500
 
  ;
7501
 
  return 0;
7502
 
}
7503
 
_ACEOF
7504
 
rm -f conftest.$ac_objext conftest$ac_exeext
7505
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506
 
  (eval $ac_link) 2>&5
7507
 
  ac_status=$?
7508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509
 
  (exit $ac_status); } &&
7510
 
         { ac_try='test -s conftest$ac_exeext'
7511
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512
 
  (eval $ac_try) 2>&5
7513
 
  ac_status=$?
7514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515
 
  (exit $ac_status); }; }; then
7516
 
  ac_cv_lib_nsl_inet_ntoa=yes
7517
 
else
7518
 
  echo "$as_me: failed program was:" >&5
7519
 
cat conftest.$ac_ext >&5
7520
 
ac_cv_lib_nsl_inet_ntoa=no
7521
 
fi
7522
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7523
 
LIBS=$ac_check_lib_save_LIBS
7524
 
fi
7525
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
7526
 
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
7527
 
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
7528
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7529
 
fi
7530
 
 
7531
 
   fi
7532
 
   echo "$as_me:$LINENO: checking for connect" >&5
7533
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6
7534
 
if test "${ac_cv_func_connect+set}" = set; then
7535
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7536
 
else
7537
 
  cat >conftest.$ac_ext <<_ACEOF
7538
 
#line $LINENO "configure"
7539
 
#include "confdefs.h"
7540
 
/* System header to define __stub macros and hopefully few prototypes,
7541
 
    which can conflict with char connect (); below.  */
7542
 
#include <assert.h>
7543
 
/* Override any gcc2 internal prototype to avoid an error.  */
7544
 
#ifdef __cplusplus
7545
 
extern "C"
7546
 
#endif
7547
 
/* We use char because int might match the return type of a gcc2
7548
 
   builtin and then its argument prototype would still apply.  */
7549
 
char connect ();
7550
 
char (*f) ();
7551
 
 
7552
 
#ifdef F77_DUMMY_MAIN
7553
 
#  ifdef __cplusplus
7554
 
     extern "C"
7555
 
#  endif
7556
 
   int F77_DUMMY_MAIN() { return 1; }
7557
 
#endif
7558
 
int
7559
 
main ()
7560
 
{
7561
 
/* The GNU C library defines this for functions which it implements
7562
 
    to always fail with ENOSYS.  Some functions are actually named
7563
 
    something starting with __ and the normal name is an alias.  */
7564
 
#if defined (__stub_connect) || defined (__stub___connect)
7565
 
choke me
7566
 
#else
7567
 
f = connect;
7568
 
#endif
7569
 
 
7570
 
  ;
7571
 
  return 0;
7572
 
}
7573
 
_ACEOF
7574
 
rm -f conftest.$ac_objext conftest$ac_exeext
7575
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576
 
  (eval $ac_link) 2>&5
7577
 
  ac_status=$?
7578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579
 
  (exit $ac_status); } &&
7580
 
         { ac_try='test -s conftest$ac_exeext'
7581
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582
 
  (eval $ac_try) 2>&5
7583
 
  ac_status=$?
7584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585
 
  (exit $ac_status); }; }; then
7586
 
  ac_cv_func_connect=yes
7587
 
else
7588
 
  echo "$as_me: failed program was:" >&5
7589
 
cat conftest.$ac_ext >&5
7590
 
ac_cv_func_connect=no
7591
 
fi
7592
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7593
 
fi
7594
 
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7595
 
echo "${ECHO_T}$ac_cv_func_connect" >&6
7596
 
 
7597
 
   if test $ac_cv_func_connect = no; then
7598
 
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7599
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7600
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
7601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7602
 
else
7603
 
  ac_check_lib_save_LIBS=$LIBS
7604
 
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7605
 
cat >conftest.$ac_ext <<_ACEOF
7606
 
#line $LINENO "configure"
7607
 
#include "confdefs.h"
7608
 
 
7609
 
/* Override any gcc2 internal prototype to avoid an error.  */
7610
 
#ifdef __cplusplus
7611
 
extern "C"
7612
 
#endif
7613
 
/* We use char because int might match the return type of a gcc2
7614
 
   builtin and then its argument prototype would still apply.  */
7615
 
char connect ();
7616
 
#ifdef F77_DUMMY_MAIN
7617
 
#  ifdef __cplusplus
7618
 
     extern "C"
7619
 
#  endif
7620
 
   int F77_DUMMY_MAIN() { return 1; }
7621
 
#endif
7622
 
int
7623
 
main ()
7624
 
{
7625
 
connect ();
7626
 
  ;
7627
 
  return 0;
7628
 
}
7629
 
_ACEOF
7630
 
rm -f conftest.$ac_objext conftest$ac_exeext
7631
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632
 
  (eval $ac_link) 2>&5
7633
 
  ac_status=$?
7634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635
 
  (exit $ac_status); } &&
7636
 
         { ac_try='test -s conftest$ac_exeext'
7637
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638
 
  (eval $ac_try) 2>&5
7639
 
  ac_status=$?
7640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641
 
  (exit $ac_status); }; }; then
7642
 
  ac_cv_lib_socket_connect=yes
7643
 
else
7644
 
  echo "$as_me: failed program was:" >&5
7645
 
cat conftest.$ac_ext >&5
7646
 
ac_cv_lib_socket_connect=no
7647
 
fi
7648
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7649
 
LIBS=$ac_check_lib_save_LIBS
7650
 
fi
7651
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7652
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7653
 
if test $ac_cv_lib_socket_connect = yes; then
7654
 
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7655
 
fi
7656
 
 
7657
 
   fi
7658
 
 
7659
 
   echo "$as_me:$LINENO: checking for remove" >&5
7660
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6
7661
 
if test "${ac_cv_func_remove+set}" = set; then
7662
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7663
 
else
7664
 
  cat >conftest.$ac_ext <<_ACEOF
7665
 
#line $LINENO "configure"
7666
 
#include "confdefs.h"
7667
 
/* System header to define __stub macros and hopefully few prototypes,
7668
 
    which can conflict with char remove (); below.  */
7669
 
#include <assert.h>
7670
 
/* Override any gcc2 internal prototype to avoid an error.  */
7671
 
#ifdef __cplusplus
7672
 
extern "C"
7673
 
#endif
7674
 
/* We use char because int might match the return type of a gcc2
7675
 
   builtin and then its argument prototype would still apply.  */
7676
 
char remove ();
7677
 
char (*f) ();
7678
 
 
7679
 
#ifdef F77_DUMMY_MAIN
7680
 
#  ifdef __cplusplus
7681
 
     extern "C"
7682
 
#  endif
7683
 
   int F77_DUMMY_MAIN() { return 1; }
7684
 
#endif
7685
 
int
7686
 
main ()
7687
 
{
7688
 
/* The GNU C library defines this for functions which it implements
7689
 
    to always fail with ENOSYS.  Some functions are actually named
7690
 
    something starting with __ and the normal name is an alias.  */
7691
 
#if defined (__stub_remove) || defined (__stub___remove)
7692
 
choke me
7693
 
#else
7694
 
f = remove;
7695
 
#endif
7696
 
 
7697
 
  ;
7698
 
  return 0;
7699
 
}
7700
 
_ACEOF
7701
 
rm -f conftest.$ac_objext conftest$ac_exeext
7702
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703
 
  (eval $ac_link) 2>&5
7704
 
  ac_status=$?
7705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706
 
  (exit $ac_status); } &&
7707
 
         { ac_try='test -s conftest$ac_exeext'
7708
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709
 
  (eval $ac_try) 2>&5
7710
 
  ac_status=$?
7711
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712
 
  (exit $ac_status); }; }; then
7713
 
  ac_cv_func_remove=yes
7714
 
else
7715
 
  echo "$as_me: failed program was:" >&5
7716
 
cat conftest.$ac_ext >&5
7717
 
ac_cv_func_remove=no
7718
 
fi
7719
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7720
 
fi
7721
 
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7722
 
echo "${ECHO_T}$ac_cv_func_remove" >&6
7723
 
 
7724
 
   if test $ac_cv_func_remove = no; then
7725
 
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7726
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7727
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
7728
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7729
 
else
7730
 
  ac_check_lib_save_LIBS=$LIBS
7731
 
LIBS="-lposix  $LIBS"
7732
 
cat >conftest.$ac_ext <<_ACEOF
7733
 
#line $LINENO "configure"
7734
 
#include "confdefs.h"
7735
 
 
7736
 
/* Override any gcc2 internal prototype to avoid an error.  */
7737
 
#ifdef __cplusplus
7738
 
extern "C"
7739
 
#endif
7740
 
/* We use char because int might match the return type of a gcc2
7741
 
   builtin and then its argument prototype would still apply.  */
7742
 
char remove ();
7743
 
#ifdef F77_DUMMY_MAIN
7744
 
#  ifdef __cplusplus
7745
 
     extern "C"
7746
 
#  endif
7747
 
   int F77_DUMMY_MAIN() { return 1; }
7748
 
#endif
7749
 
int
7750
 
main ()
7751
 
{
7752
 
remove ();
7753
 
  ;
7754
 
  return 0;
7755
 
}
7756
 
_ACEOF
7757
 
rm -f conftest.$ac_objext conftest$ac_exeext
7758
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759
 
  (eval $ac_link) 2>&5
7760
 
  ac_status=$?
7761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
 
  (exit $ac_status); } &&
7763
 
         { ac_try='test -s conftest$ac_exeext'
7764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765
 
  (eval $ac_try) 2>&5
7766
 
  ac_status=$?
7767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768
 
  (exit $ac_status); }; }; then
7769
 
  ac_cv_lib_posix_remove=yes
7770
 
else
7771
 
  echo "$as_me: failed program was:" >&5
7772
 
cat conftest.$ac_ext >&5
7773
 
ac_cv_lib_posix_remove=no
7774
 
fi
7775
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776
 
LIBS=$ac_check_lib_save_LIBS
7777
 
fi
7778
 
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7779
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7780
 
if test $ac_cv_lib_posix_remove = yes; then
7781
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7782
 
fi
7783
 
 
7784
 
   fi
7785
 
 
7786
 
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7787
 
   echo "$as_me:$LINENO: checking for shmat" >&5
7788
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7789
 
if test "${ac_cv_func_shmat+set}" = set; then
7790
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7791
 
else
7792
 
  cat >conftest.$ac_ext <<_ACEOF
7793
 
#line $LINENO "configure"
7794
 
#include "confdefs.h"
7795
 
/* System header to define __stub macros and hopefully few prototypes,
7796
 
    which can conflict with char shmat (); below.  */
7797
 
#include <assert.h>
7798
 
/* Override any gcc2 internal prototype to avoid an error.  */
7799
 
#ifdef __cplusplus
7800
 
extern "C"
7801
 
#endif
7802
 
/* We use char because int might match the return type of a gcc2
7803
 
   builtin and then its argument prototype would still apply.  */
7804
 
char shmat ();
7805
 
char (*f) ();
7806
 
 
7807
 
#ifdef F77_DUMMY_MAIN
7808
 
#  ifdef __cplusplus
7809
 
     extern "C"
7810
 
#  endif
7811
 
   int F77_DUMMY_MAIN() { return 1; }
7812
 
#endif
7813
 
int
7814
 
main ()
7815
 
{
7816
 
/* The GNU C library defines this for functions which it implements
7817
 
    to always fail with ENOSYS.  Some functions are actually named
7818
 
    something starting with __ and the normal name is an alias.  */
7819
 
#if defined (__stub_shmat) || defined (__stub___shmat)
7820
 
choke me
7821
 
#else
7822
 
f = shmat;
7823
 
#endif
7824
 
 
7825
 
  ;
7826
 
  return 0;
7827
 
}
7828
 
_ACEOF
7829
 
rm -f conftest.$ac_objext conftest$ac_exeext
7830
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7831
 
  (eval $ac_link) 2>&5
7832
 
  ac_status=$?
7833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834
 
  (exit $ac_status); } &&
7835
 
         { ac_try='test -s conftest$ac_exeext'
7836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837
 
  (eval $ac_try) 2>&5
7838
 
  ac_status=$?
7839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840
 
  (exit $ac_status); }; }; then
7841
 
  ac_cv_func_shmat=yes
7842
 
else
7843
 
  echo "$as_me: failed program was:" >&5
7844
 
cat conftest.$ac_ext >&5
7845
 
ac_cv_func_shmat=no
7846
 
fi
7847
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848
 
fi
7849
 
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7850
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6
7851
 
if test $ac_cv_func_shmat = yes; then
7852
 
  :
7853
 
else
7854
 
  echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7855
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7856
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7858
 
else
7859
 
  ac_check_lib_save_LIBS=$LIBS
7860
 
LIBS="-lipc  $LIBS"
7861
 
cat >conftest.$ac_ext <<_ACEOF
7862
 
#line $LINENO "configure"
7863
 
#include "confdefs.h"
7864
 
 
7865
 
/* Override any gcc2 internal prototype to avoid an error.  */
7866
 
#ifdef __cplusplus
7867
 
extern "C"
7868
 
#endif
7869
 
/* We use char because int might match the return type of a gcc2
7870
 
   builtin and then its argument prototype would still apply.  */
7871
 
char shmat ();
7872
 
#ifdef F77_DUMMY_MAIN
7873
 
#  ifdef __cplusplus
7874
 
     extern "C"
7875
 
#  endif
7876
 
   int F77_DUMMY_MAIN() { return 1; }
7877
 
#endif
7878
 
int
7879
 
main ()
7880
 
{
7881
 
shmat ();
7882
 
  ;
7883
 
  return 0;
7884
 
}
7885
 
_ACEOF
7886
 
rm -f conftest.$ac_objext conftest$ac_exeext
7887
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7888
 
  (eval $ac_link) 2>&5
7889
 
  ac_status=$?
7890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891
 
  (exit $ac_status); } &&
7892
 
         { ac_try='test -s conftest$ac_exeext'
7893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894
 
  (eval $ac_try) 2>&5
7895
 
  ac_status=$?
7896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897
 
  (exit $ac_status); }; }; then
7898
 
  ac_cv_lib_ipc_shmat=yes
7899
 
else
7900
 
  echo "$as_me: failed program was:" >&5
7901
 
cat conftest.$ac_ext >&5
7902
 
ac_cv_lib_ipc_shmat=no
7903
 
fi
7904
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7905
 
LIBS=$ac_check_lib_save_LIBS
7906
 
fi
7907
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7908
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7909
 
if test $ac_cv_lib_ipc_shmat = yes; then
7910
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7911
 
fi
7912
 
 
7913
 
fi
7914
 
 
7915
 
 
7916
 
   # darwin needs this to initialize the environment
7917
 
 
7918
 
for ac_header in crt_externs.h
7919
 
do
7920
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7923
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7926
 
fi
7927
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929
 
else
7930
 
  # Is the header compilable?
7931
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933
 
cat >conftest.$ac_ext <<_ACEOF
7934
 
#line $LINENO "configure"
7935
 
#include "confdefs.h"
7936
 
$ac_includes_default
7937
 
#include <$ac_header>
7938
 
_ACEOF
7939
 
rm -f conftest.$ac_objext
7940
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941
 
  (eval $ac_compile) 2>&5
7942
 
  ac_status=$?
7943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944
 
  (exit $ac_status); } &&
7945
 
         { ac_try='test -s conftest.$ac_objext'
7946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947
 
  (eval $ac_try) 2>&5
7948
 
  ac_status=$?
7949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
 
  (exit $ac_status); }; }; then
7951
 
  ac_header_compiler=yes
7952
 
else
7953
 
  echo "$as_me: failed program was:" >&5
7954
 
cat conftest.$ac_ext >&5
7955
 
ac_header_compiler=no
7956
 
fi
7957
 
rm -f conftest.$ac_objext conftest.$ac_ext
7958
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959
 
echo "${ECHO_T}$ac_header_compiler" >&6
7960
 
 
7961
 
# Is the header present?
7962
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7964
 
cat >conftest.$ac_ext <<_ACEOF
7965
 
#line $LINENO "configure"
7966
 
#include "confdefs.h"
7967
 
#include <$ac_header>
7968
 
_ACEOF
7969
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7971
 
  ac_status=$?
7972
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
7973
 
  rm -f conftest.er1
7974
 
  cat conftest.err >&5
7975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976
 
  (exit $ac_status); } >/dev/null; then
7977
 
  if test -s conftest.err; then
7978
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7979
 
  else
7980
 
    ac_cpp_err=
7981
 
  fi
7982
 
else
7983
 
  ac_cpp_err=yes
7984
 
fi
7985
 
if test -z "$ac_cpp_err"; then
7986
 
  ac_header_preproc=yes
7987
 
else
7988
 
  echo "$as_me: failed program was:" >&5
7989
 
  cat conftest.$ac_ext >&5
7990
 
  ac_header_preproc=no
7991
 
fi
7992
 
rm -f conftest.err conftest.$ac_ext
7993
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994
 
echo "${ECHO_T}$ac_header_preproc" >&6
7995
 
 
7996
 
# So?  What about this header?
7997
 
case $ac_header_compiler:$ac_header_preproc in
7998
 
  yes:no )
7999
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8001
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8003
 
  no:yes )
8004
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8005
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8006
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8007
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8008
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8009
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8010
 
esac
8011
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8012
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8013
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8015
 
else
8016
 
  eval "$as_ac_Header=$ac_header_preproc"
8017
 
fi
8018
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8019
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8020
 
 
8021
 
fi
8022
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8023
 
  cat >>confdefs.h <<_ACEOF
8024
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8025
 
_ACEOF
8026
 
 
8027
 
fi
8028
 
 
8029
 
done
8030
 
 
8031
 
   echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
8032
 
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
8033
 
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
8034
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8035
 
else
8036
 
  cat >conftest.$ac_ext <<_ACEOF
8037
 
#line $LINENO "configure"
8038
 
#include "confdefs.h"
8039
 
/* System header to define __stub macros and hopefully few prototypes,
8040
 
    which can conflict with char _NSGetEnviron (); below.  */
8041
 
#include <assert.h>
8042
 
/* Override any gcc2 internal prototype to avoid an error.  */
8043
 
#ifdef __cplusplus
8044
 
extern "C"
8045
 
#endif
8046
 
/* We use char because int might match the return type of a gcc2
8047
 
   builtin and then its argument prototype would still apply.  */
8048
 
char _NSGetEnviron ();
8049
 
char (*f) ();
8050
 
 
8051
 
#ifdef F77_DUMMY_MAIN
8052
 
#  ifdef __cplusplus
8053
 
     extern "C"
8054
 
#  endif
8055
 
   int F77_DUMMY_MAIN() { return 1; }
8056
 
#endif
8057
 
int
8058
 
main ()
8059
 
{
8060
 
/* The GNU C library defines this for functions which it implements
8061
 
    to always fail with ENOSYS.  Some functions are actually named
8062
 
    something starting with __ and the normal name is an alias.  */
8063
 
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
8064
 
choke me
8065
 
#else
8066
 
f = _NSGetEnviron;
8067
 
#endif
8068
 
 
8069
 
  ;
8070
 
  return 0;
8071
 
}
8072
 
_ACEOF
8073
 
rm -f conftest.$ac_objext conftest$ac_exeext
8074
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075
 
  (eval $ac_link) 2>&5
8076
 
  ac_status=$?
8077
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078
 
  (exit $ac_status); } &&
8079
 
         { ac_try='test -s conftest$ac_exeext'
8080
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081
 
  (eval $ac_try) 2>&5
8082
 
  ac_status=$?
8083
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084
 
  (exit $ac_status); }; }; then
8085
 
  ac_cv_func__NSGetEnviron=yes
8086
 
else
8087
 
  echo "$as_me: failed program was:" >&5
8088
 
cat conftest.$ac_ext >&5
8089
 
ac_cv_func__NSGetEnviron=no
8090
 
fi
8091
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8092
 
fi
8093
 
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
8094
 
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
8095
 
if test $ac_cv_func__NSGetEnviron = yes; then
8096
 
 
8097
 
cat >>confdefs.h <<\_ACEOF
8098
 
#define HAVE_NSGETENVIRON 1
8099
 
_ACEOF
8100
 
 
8101
 
fi
8102
 
 
8103
 
 
8104
 
   # more headers that need to be explicitly included on darwin
8105
 
 
8106
 
 
8107
 
for ac_header in sys/types.h stdint.h
8108
 
do
8109
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8112
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8113
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8115
 
fi
8116
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8117
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8118
 
else
8119
 
  # Is the header compilable?
8120
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8122
 
cat >conftest.$ac_ext <<_ACEOF
8123
 
#line $LINENO "configure"
8124
 
#include "confdefs.h"
8125
 
$ac_includes_default
8126
 
#include <$ac_header>
8127
 
_ACEOF
8128
 
rm -f conftest.$ac_objext
8129
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130
 
  (eval $ac_compile) 2>&5
8131
 
  ac_status=$?
8132
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133
 
  (exit $ac_status); } &&
8134
 
         { ac_try='test -s conftest.$ac_objext'
8135
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136
 
  (eval $ac_try) 2>&5
8137
 
  ac_status=$?
8138
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139
 
  (exit $ac_status); }; }; then
8140
 
  ac_header_compiler=yes
8141
 
else
8142
 
  echo "$as_me: failed program was:" >&5
8143
 
cat conftest.$ac_ext >&5
8144
 
ac_header_compiler=no
8145
 
fi
8146
 
rm -f conftest.$ac_objext conftest.$ac_ext
8147
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8148
 
echo "${ECHO_T}$ac_header_compiler" >&6
8149
 
 
8150
 
# Is the header present?
8151
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8152
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8153
 
cat >conftest.$ac_ext <<_ACEOF
8154
 
#line $LINENO "configure"
8155
 
#include "confdefs.h"
8156
 
#include <$ac_header>
8157
 
_ACEOF
8158
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160
 
  ac_status=$?
8161
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
8162
 
  rm -f conftest.er1
8163
 
  cat conftest.err >&5
8164
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165
 
  (exit $ac_status); } >/dev/null; then
8166
 
  if test -s conftest.err; then
8167
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8168
 
  else
8169
 
    ac_cpp_err=
8170
 
  fi
8171
 
else
8172
 
  ac_cpp_err=yes
8173
 
fi
8174
 
if test -z "$ac_cpp_err"; then
8175
 
  ac_header_preproc=yes
8176
 
else
8177
 
  echo "$as_me: failed program was:" >&5
8178
 
  cat conftest.$ac_ext >&5
8179
 
  ac_header_preproc=no
8180
 
fi
8181
 
rm -f conftest.err conftest.$ac_ext
8182
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183
 
echo "${ECHO_T}$ac_header_preproc" >&6
8184
 
 
8185
 
# So?  What about this header?
8186
 
case $ac_header_compiler:$ac_header_preproc in
8187
 
  yes:no )
8188
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8189
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8192
 
  no:yes )
8193
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8196
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8197
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8198
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8199
 
esac
8200
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
8201
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8202
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8204
 
else
8205
 
  eval "$as_ac_Header=$ac_header_preproc"
8206
 
fi
8207
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8208
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8209
 
 
8210
 
fi
8211
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8212
 
  cat >>confdefs.h <<_ACEOF
8213
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214
 
_ACEOF
8215
 
 
8216
 
fi
8217
 
 
8218
 
done
8219
 
 
8220
 
 
8221
 
   # darwin requires a poll emulation library
8222
 
   echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
8223
 
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
8224
 
if test "${ac_cv_lib_poll_poll+set}" = set; then
8225
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8226
 
else
8227
 
  ac_check_lib_save_LIBS=$LIBS
8228
 
LIBS="-lpoll  $LIBS"
8229
 
cat >conftest.$ac_ext <<_ACEOF
8230
 
#line $LINENO "configure"
8231
 
#include "confdefs.h"
8232
 
 
8233
 
/* Override any gcc2 internal prototype to avoid an error.  */
8234
 
#ifdef __cplusplus
8235
 
extern "C"
8236
 
#endif
8237
 
/* We use char because int might match the return type of a gcc2
8238
 
   builtin and then its argument prototype would still apply.  */
8239
 
char poll ();
8240
 
#ifdef F77_DUMMY_MAIN
8241
 
#  ifdef __cplusplus
8242
 
     extern "C"
8243
 
#  endif
8244
 
   int F77_DUMMY_MAIN() { return 1; }
8245
 
#endif
8246
 
int
8247
 
main ()
8248
 
{
8249
 
poll ();
8250
 
  ;
8251
 
  return 0;
8252
 
}
8253
 
_ACEOF
8254
 
rm -f conftest.$ac_objext conftest$ac_exeext
8255
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256
 
  (eval $ac_link) 2>&5
8257
 
  ac_status=$?
8258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259
 
  (exit $ac_status); } &&
8260
 
         { ac_try='test -s conftest$ac_exeext'
8261
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262
 
  (eval $ac_try) 2>&5
8263
 
  ac_status=$?
8264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265
 
  (exit $ac_status); }; }; then
8266
 
  ac_cv_lib_poll_poll=yes
8267
 
else
8268
 
  echo "$as_me: failed program was:" >&5
8269
 
cat conftest.$ac_ext >&5
8270
 
ac_cv_lib_poll_poll=no
8271
 
fi
8272
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8273
 
LIBS=$ac_check_lib_save_LIBS
8274
 
fi
8275
 
echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
8276
 
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
8277
 
if test $ac_cv_lib_poll_poll = yes; then
8278
 
  LIB_POLL="-lpoll"
8279
 
fi
8280
 
 
8281
 
 
8282
 
   # CoreAudio framework
8283
 
   if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8284
 
  echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8285
 
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
8286
 
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8288
 
fi
8289
 
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8290
 
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
8291
 
else
8292
 
  # Is the header compilable?
8293
 
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
8294
 
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
8295
 
cat >conftest.$ac_ext <<_ACEOF
8296
 
#line $LINENO "configure"
8297
 
#include "confdefs.h"
8298
 
$ac_includes_default
8299
 
#include <CoreAudio/CoreAudio.h>
8300
 
_ACEOF
8301
 
rm -f conftest.$ac_objext
8302
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303
 
  (eval $ac_compile) 2>&5
8304
 
  ac_status=$?
8305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306
 
  (exit $ac_status); } &&
8307
 
         { ac_try='test -s conftest.$ac_objext'
8308
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309
 
  (eval $ac_try) 2>&5
8310
 
  ac_status=$?
8311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312
 
  (exit $ac_status); }; }; then
8313
 
  ac_header_compiler=yes
8314
 
else
8315
 
  echo "$as_me: failed program was:" >&5
8316
 
cat conftest.$ac_ext >&5
8317
 
ac_header_compiler=no
8318
 
fi
8319
 
rm -f conftest.$ac_objext conftest.$ac_ext
8320
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8321
 
echo "${ECHO_T}$ac_header_compiler" >&6
8322
 
 
8323
 
# Is the header present?
8324
 
echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
8325
 
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
8326
 
cat >conftest.$ac_ext <<_ACEOF
8327
 
#line $LINENO "configure"
8328
 
#include "confdefs.h"
8329
 
#include <CoreAudio/CoreAudio.h>
8330
 
_ACEOF
8331
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8333
 
  ac_status=$?
8334
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
8335
 
  rm -f conftest.er1
8336
 
  cat conftest.err >&5
8337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338
 
  (exit $ac_status); } >/dev/null; then
8339
 
  if test -s conftest.err; then
8340
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8341
 
  else
8342
 
    ac_cpp_err=
8343
 
  fi
8344
 
else
8345
 
  ac_cpp_err=yes
8346
 
fi
8347
 
if test -z "$ac_cpp_err"; then
8348
 
  ac_header_preproc=yes
8349
 
else
8350
 
  echo "$as_me: failed program was:" >&5
8351
 
  cat conftest.$ac_ext >&5
8352
 
  ac_header_preproc=no
8353
 
fi
8354
 
rm -f conftest.err conftest.$ac_ext
8355
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8356
 
echo "${ECHO_T}$ac_header_preproc" >&6
8357
 
 
8358
 
# So?  What about this header?
8359
 
case $ac_header_compiler:$ac_header_preproc in
8360
 
  yes:no )
8361
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8362
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8363
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8364
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;};;
8365
 
  no:yes )
8366
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
8367
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
8368
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
8369
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
8370
 
    { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
8371
 
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;};;
8372
 
esac
8373
 
echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
8374
 
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
8375
 
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
8376
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8377
 
else
8378
 
  ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
8379
 
fi
8380
 
echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
8381
 
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
8382
 
 
8383
 
fi
8384
 
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
8385
 
 
8386
 
 
8387
 
cat >>confdefs.h <<\_ACEOF
8388
 
#define HAVE_COREAUDIO 1
8389
 
_ACEOF
8390
 
 
8391
 
     FRAMEWORK_COREAUDIO="-framework CoreAudio"
8392
 
 
8393
 
fi
8394
 
 
8395
 
 
8396
 
 
8397
 
 
8398
 
  echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
8399
 
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6
8400
 
  kde_libs_safe="$LIBS"
8401
 
  LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
8402
 
  cat >conftest.$ac_ext <<_ACEOF
8403
 
#line $LINENO "configure"
8404
 
#include "confdefs.h"
8405
 
 
8406
 
#include <sys/types.h>
8407
 
#include <netinet/in.h>
8408
 
#include <arpa/nameser.h>
8409
 
#include <resolv.h>
8410
 
 
8411
 
#ifdef F77_DUMMY_MAIN
8412
 
#  ifdef __cplusplus
8413
 
     extern "C"
8414
 
#  endif
8415
 
   int F77_DUMMY_MAIN() { return 1; }
8416
 
#endif
8417
 
int
8418
 
main ()
8419
 
{
8420
 
 
8421
 
      res_init();
8422
 
 
8423
 
  ;
8424
 
  return 0;
8425
 
}
8426
 
_ACEOF
8427
 
rm -f conftest.$ac_objext conftest$ac_exeext
8428
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429
 
  (eval $ac_link) 2>&5
8430
 
  ac_status=$?
8431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432
 
  (exit $ac_status); } &&
8433
 
         { ac_try='test -s conftest$ac_exeext'
8434
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435
 
  (eval $ac_try) 2>&5
8436
 
  ac_status=$?
8437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438
 
  (exit $ac_status); }; }; then
8439
 
 
8440
 
      LIBRESOLV="-lresolv"
8441
 
      echo "$as_me:$LINENO: result: yes" >&5
8442
 
echo "${ECHO_T}yes" >&6
8443
 
 
8444
 
cat >>confdefs.h <<\_ACEOF
8445
 
#define HAVE_RES_INIT 1
8446
 
_ACEOF
8447
 
 
8448
 
 
8449
 
else
8450
 
  echo "$as_me: failed program was:" >&5
8451
 
cat conftest.$ac_ext >&5
8452
 
 echo "$as_me:$LINENO: result: no" >&5
8453
 
echo "${ECHO_T}no" >&6
8454
 
 
8455
 
fi
8456
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8457
 
  LIBS=$kde_libs_safe
8458
 
 
8459
 
 
8460
 
  echo "$as_me:$LINENO: checking if res_init is available" >&5
8461
 
echo $ECHO_N "checking if res_init is available... $ECHO_C" >&6
8462
 
  cat >conftest.$ac_ext <<_ACEOF
8463
 
#line $LINENO "configure"
8464
 
#include "confdefs.h"
8465
 
 
8466
 
#include <sys/types.h>
8467
 
#include <netinet/in.h>
8468
 
#include <arpa/nameser.h>
8469
 
#include <resolv.h>
8470
 
 
8471
 
#ifdef F77_DUMMY_MAIN
8472
 
#  ifdef __cplusplus
8473
 
     extern "C"
8474
 
#  endif
8475
 
   int F77_DUMMY_MAIN() { return 1; }
8476
 
#endif
8477
 
int
8478
 
main ()
8479
 
{
8480
 
 
8481
 
      res_init();
8482
 
 
8483
 
  ;
8484
 
  return 0;
8485
 
}
8486
 
_ACEOF
8487
 
rm -f conftest.$ac_objext
8488
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489
 
  (eval $ac_compile) 2>&5
8490
 
  ac_status=$?
8491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492
 
  (exit $ac_status); } &&
8493
 
         { ac_try='test -s conftest.$ac_objext'
8494
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495
 
  (eval $ac_try) 2>&5
8496
 
  ac_status=$?
8497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498
 
  (exit $ac_status); }; }; then
8499
 
 
8500
 
      echo "$as_me:$LINENO: result: yes" >&5
8501
 
echo "${ECHO_T}yes" >&6
8502
 
 
8503
 
cat >>confdefs.h <<\_ACEOF
8504
 
#define HAVE_RES_INIT 1
8505
 
_ACEOF
8506
 
 
8507
 
 
8508
 
else
8509
 
  echo "$as_me: failed program was:" >&5
8510
 
cat conftest.$ac_ext >&5
8511
 
 echo "$as_me:$LINENO: result: no" >&5
8512
 
echo "${ECHO_T}no" >&6
8513
 
 
8514
 
fi
8515
 
rm -f conftest.$ac_objext conftest.$ac_ext
8516
 
 
8517
 
 
8518
 
 
8519
 
   LIBSOCKET="$X_EXTRA_LIBS"
8520
 
 
8521
 
 
8522
 
   echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
8523
 
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
8524
 
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
8525
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8526
 
else
8527
 
  ac_check_lib_save_LIBS=$LIBS
8528
 
LIBS="-lucb  $LIBS"
8529
 
cat >conftest.$ac_ext <<_ACEOF
8530
 
#line $LINENO "configure"
8531
 
#include "confdefs.h"
8532
 
 
8533
 
/* Override any gcc2 internal prototype to avoid an error.  */
8534
 
#ifdef __cplusplus
8535
 
extern "C"
8536
 
#endif
8537
 
/* We use char because int might match the return type of a gcc2
8538
 
   builtin and then its argument prototype would still apply.  */
8539
 
char killpg ();
8540
 
#ifdef F77_DUMMY_MAIN
8541
 
#  ifdef __cplusplus
8542
 
     extern "C"
8543
 
#  endif
8544
 
   int F77_DUMMY_MAIN() { return 1; }
8545
 
#endif
8546
 
int
8547
 
main ()
8548
 
{
8549
 
killpg ();
8550
 
  ;
8551
 
  return 0;
8552
 
}
8553
 
_ACEOF
8554
 
rm -f conftest.$ac_objext conftest$ac_exeext
8555
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556
 
  (eval $ac_link) 2>&5
8557
 
  ac_status=$?
8558
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559
 
  (exit $ac_status); } &&
8560
 
         { ac_try='test -s conftest$ac_exeext'
8561
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562
 
  (eval $ac_try) 2>&5
8563
 
  ac_status=$?
8564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565
 
  (exit $ac_status); }; }; then
8566
 
  ac_cv_lib_ucb_killpg=yes
8567
 
else
8568
 
  echo "$as_me: failed program was:" >&5
8569
 
cat conftest.$ac_ext >&5
8570
 
ac_cv_lib_ucb_killpg=no
8571
 
fi
8572
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8573
 
LIBS=$ac_check_lib_save_LIBS
8574
 
fi
8575
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
8576
 
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
8577
 
if test $ac_cv_lib_ucb_killpg = yes; then
8578
 
  LIBUCB="-lucb"
8579
 
fi
8580
 
 
8581
 
 
8582
 
   case $host in     *-*-lynxos* )
8583
 
        echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
8584
 
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
8585
 
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
8586
 
        echo "$as_me:$LINENO: result: disabled" >&5
8587
 
echo "${ECHO_T}disabled" >&6
8588
 
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8589
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8590
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8591
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8592
 
else
8593
 
  ac_check_lib_save_LIBS=$LIBS
8594
 
LIBS="-lbsd  $LIBS"
8595
 
cat >conftest.$ac_ext <<_ACEOF
8596
 
#line $LINENO "configure"
8597
 
#include "confdefs.h"
8598
 
 
8599
 
/* Override any gcc2 internal prototype to avoid an error.  */
8600
 
#ifdef __cplusplus
8601
 
extern "C"
8602
 
#endif
8603
 
/* We use char because int might match the return type of a gcc2
8604
 
   builtin and then its argument prototype would still apply.  */
8605
 
char gethostbyname ();
8606
 
#ifdef F77_DUMMY_MAIN
8607
 
#  ifdef __cplusplus
8608
 
     extern "C"
8609
 
#  endif
8610
 
   int F77_DUMMY_MAIN() { return 1; }
8611
 
#endif
8612
 
int
8613
 
main ()
8614
 
{
8615
 
gethostbyname ();
8616
 
  ;
8617
 
  return 0;
8618
 
}
8619
 
_ACEOF
8620
 
rm -f conftest.$ac_objext conftest$ac_exeext
8621
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622
 
  (eval $ac_link) 2>&5
8623
 
  ac_status=$?
8624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625
 
  (exit $ac_status); } &&
8626
 
         { ac_try='test -s conftest$ac_exeext'
8627
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628
 
  (eval $ac_try) 2>&5
8629
 
  ac_status=$?
8630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631
 
  (exit $ac_status); }; }; then
8632
 
  ac_cv_lib_bsd_gethostbyname=yes
8633
 
else
8634
 
  echo "$as_me: failed program was:" >&5
8635
 
cat conftest.$ac_ext >&5
8636
 
ac_cv_lib_bsd_gethostbyname=no
8637
 
fi
8638
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8639
 
LIBS=$ac_check_lib_save_LIBS
8640
 
fi
8641
 
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8642
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8643
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
8644
 
  LIBSOCKET="-lbsd"
8645
 
fi
8646
 
          ;;
8647
 
    esac
8648
 
 
8649
 
     echo "$as_me:$LINENO: checking for int" >&5
8650
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
8651
 
if test "${ac_cv_type_int+set}" = set; then
8652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8653
 
else
8654
 
  cat >conftest.$ac_ext <<_ACEOF
8655
 
#line $LINENO "configure"
8656
 
#include "confdefs.h"
8657
 
$ac_includes_default
8658
 
#ifdef F77_DUMMY_MAIN
8659
 
#  ifdef __cplusplus
8660
 
     extern "C"
8661
 
#  endif
8662
 
   int F77_DUMMY_MAIN() { return 1; }
8663
 
#endif
8664
 
int
8665
 
main ()
8666
 
{
8667
 
if ((int *) 0)
8668
 
  return 0;
8669
 
if (sizeof (int))
8670
 
  return 0;
8671
 
  ;
8672
 
  return 0;
8673
 
}
8674
 
_ACEOF
8675
 
rm -f conftest.$ac_objext
8676
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677
 
  (eval $ac_compile) 2>&5
8678
 
  ac_status=$?
8679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680
 
  (exit $ac_status); } &&
8681
 
         { ac_try='test -s conftest.$ac_objext'
8682
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683
 
  (eval $ac_try) 2>&5
8684
 
  ac_status=$?
8685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686
 
  (exit $ac_status); }; }; then
8687
 
  ac_cv_type_int=yes
8688
 
else
8689
 
  echo "$as_me: failed program was:" >&5
8690
 
cat conftest.$ac_ext >&5
8691
 
ac_cv_type_int=no
8692
 
fi
8693
 
rm -f conftest.$ac_objext conftest.$ac_ext
8694
 
fi
8695
 
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8696
 
echo "${ECHO_T}$ac_cv_type_int" >&6
8697
 
 
8698
 
echo "$as_me:$LINENO: checking size of int" >&5
8699
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
8700
 
if test "${ac_cv_sizeof_int+set}" = set; then
8701
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8702
 
else
8703
 
  if test "$ac_cv_type_int" = yes; then
8704
 
  # The cast to unsigned long works around a bug in the HP C Compiler
8705
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8706
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8707
 
  # This bug is HP SR number 8606223364.
8708
 
  if test "$cross_compiling" = yes; then
8709
 
  # Depending upon the size, compute the lo and hi bounds.
8710
 
cat >conftest.$ac_ext <<_ACEOF
8711
 
#line $LINENO "configure"
8712
 
#include "confdefs.h"
8713
 
$ac_includes_default
8714
 
#ifdef F77_DUMMY_MAIN
8715
 
#  ifdef __cplusplus
8716
 
     extern "C"
8717
 
#  endif
8718
 
   int F77_DUMMY_MAIN() { return 1; }
8719
 
#endif
8720
 
int
8721
 
main ()
8722
 
{
8723
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8724
 
test_array [0] = 0
8725
 
 
8726
 
  ;
8727
 
  return 0;
8728
 
}
8729
 
_ACEOF
8730
 
rm -f conftest.$ac_objext
8731
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8732
 
  (eval $ac_compile) 2>&5
8733
 
  ac_status=$?
8734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735
 
  (exit $ac_status); } &&
8736
 
         { ac_try='test -s conftest.$ac_objext'
8737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738
 
  (eval $ac_try) 2>&5
8739
 
  ac_status=$?
8740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741
 
  (exit $ac_status); }; }; then
8742
 
  ac_lo=0 ac_mid=0
8743
 
  while :; do
8744
 
    cat >conftest.$ac_ext <<_ACEOF
8745
 
#line $LINENO "configure"
8746
 
#include "confdefs.h"
8747
 
$ac_includes_default
8748
 
#ifdef F77_DUMMY_MAIN
8749
 
#  ifdef __cplusplus
8750
 
     extern "C"
8751
 
#  endif
8752
 
   int F77_DUMMY_MAIN() { return 1; }
8753
 
#endif
8754
 
int
8755
 
main ()
8756
 
{
8757
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8758
 
test_array [0] = 0
8759
 
 
8760
 
  ;
8761
 
  return 0;
8762
 
}
8763
 
_ACEOF
8764
 
rm -f conftest.$ac_objext
8765
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766
 
  (eval $ac_compile) 2>&5
8767
 
  ac_status=$?
8768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769
 
  (exit $ac_status); } &&
8770
 
         { ac_try='test -s conftest.$ac_objext'
8771
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772
 
  (eval $ac_try) 2>&5
8773
 
  ac_status=$?
8774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775
 
  (exit $ac_status); }; }; then
8776
 
  ac_hi=$ac_mid; break
8777
 
else
8778
 
  echo "$as_me: failed program was:" >&5
8779
 
cat conftest.$ac_ext >&5
8780
 
ac_lo=`expr $ac_mid + 1`
8781
 
                    if test $ac_lo -le $ac_mid; then
8782
 
                      ac_lo= ac_hi=
8783
 
                      break
8784
 
                    fi
8785
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
8786
 
fi
8787
 
rm -f conftest.$ac_objext conftest.$ac_ext
8788
 
  done
8789
 
else
8790
 
  echo "$as_me: failed program was:" >&5
8791
 
cat conftest.$ac_ext >&5
8792
 
cat >conftest.$ac_ext <<_ACEOF
8793
 
#line $LINENO "configure"
8794
 
#include "confdefs.h"
8795
 
$ac_includes_default
8796
 
#ifdef F77_DUMMY_MAIN
8797
 
#  ifdef __cplusplus
8798
 
     extern "C"
8799
 
#  endif
8800
 
   int F77_DUMMY_MAIN() { return 1; }
8801
 
#endif
8802
 
int
8803
 
main ()
8804
 
{
8805
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8806
 
test_array [0] = 0
8807
 
 
8808
 
  ;
8809
 
  return 0;
8810
 
}
8811
 
_ACEOF
8812
 
rm -f conftest.$ac_objext
8813
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814
 
  (eval $ac_compile) 2>&5
8815
 
  ac_status=$?
8816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817
 
  (exit $ac_status); } &&
8818
 
         { ac_try='test -s conftest.$ac_objext'
8819
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820
 
  (eval $ac_try) 2>&5
8821
 
  ac_status=$?
8822
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823
 
  (exit $ac_status); }; }; then
8824
 
  ac_hi=-1 ac_mid=-1
8825
 
  while :; do
8826
 
    cat >conftest.$ac_ext <<_ACEOF
8827
 
#line $LINENO "configure"
8828
 
#include "confdefs.h"
8829
 
$ac_includes_default
8830
 
#ifdef F77_DUMMY_MAIN
8831
 
#  ifdef __cplusplus
8832
 
     extern "C"
8833
 
#  endif
8834
 
   int F77_DUMMY_MAIN() { return 1; }
8835
 
#endif
8836
 
int
8837
 
main ()
8838
 
{
8839
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8840
 
test_array [0] = 0
8841
 
 
8842
 
  ;
8843
 
  return 0;
8844
 
}
8845
 
_ACEOF
8846
 
rm -f conftest.$ac_objext
8847
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8848
 
  (eval $ac_compile) 2>&5
8849
 
  ac_status=$?
8850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851
 
  (exit $ac_status); } &&
8852
 
         { ac_try='test -s conftest.$ac_objext'
8853
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854
 
  (eval $ac_try) 2>&5
8855
 
  ac_status=$?
8856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857
 
  (exit $ac_status); }; }; then
8858
 
  ac_lo=$ac_mid; break
8859
 
else
8860
 
  echo "$as_me: failed program was:" >&5
8861
 
cat conftest.$ac_ext >&5
8862
 
ac_hi=`expr '(' $ac_mid ')' - 1`
8863
 
                       if test $ac_mid -le $ac_hi; then
8864
 
                         ac_lo= ac_hi=
8865
 
                         break
8866
 
                       fi
8867
 
                       ac_mid=`expr 2 '*' $ac_mid`
8868
 
fi
8869
 
rm -f conftest.$ac_objext conftest.$ac_ext
8870
 
  done
8871
 
else
8872
 
  echo "$as_me: failed program was:" >&5
8873
 
cat conftest.$ac_ext >&5
8874
 
ac_lo= ac_hi=
8875
 
fi
8876
 
rm -f conftest.$ac_objext conftest.$ac_ext
8877
 
fi
8878
 
rm -f conftest.$ac_objext conftest.$ac_ext
8879
 
# Binary search between lo and hi bounds.
8880
 
while test "x$ac_lo" != "x$ac_hi"; do
8881
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8882
 
  cat >conftest.$ac_ext <<_ACEOF
8883
 
#line $LINENO "configure"
8884
 
#include "confdefs.h"
8885
 
$ac_includes_default
8886
 
#ifdef F77_DUMMY_MAIN
8887
 
#  ifdef __cplusplus
8888
 
     extern "C"
8889
 
#  endif
8890
 
   int F77_DUMMY_MAIN() { return 1; }
8891
 
#endif
8892
 
int
8893
 
main ()
8894
 
{
8895
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8896
 
test_array [0] = 0
8897
 
 
8898
 
  ;
8899
 
  return 0;
8900
 
}
8901
 
_ACEOF
8902
 
rm -f conftest.$ac_objext
8903
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904
 
  (eval $ac_compile) 2>&5
8905
 
  ac_status=$?
8906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907
 
  (exit $ac_status); } &&
8908
 
         { ac_try='test -s conftest.$ac_objext'
8909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910
 
  (eval $ac_try) 2>&5
8911
 
  ac_status=$?
8912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913
 
  (exit $ac_status); }; }; then
8914
 
  ac_hi=$ac_mid
8915
 
else
8916
 
  echo "$as_me: failed program was:" >&5
8917
 
cat conftest.$ac_ext >&5
8918
 
ac_lo=`expr '(' $ac_mid ')' + 1`
8919
 
fi
8920
 
rm -f conftest.$ac_objext conftest.$ac_ext
8921
 
done
8922
 
case $ac_lo in
8923
 
?*) ac_cv_sizeof_int=$ac_lo;;
8924
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
8925
 
echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
8926
 
   { (exit 1); exit 1; }; } ;;
8927
 
esac
8928
 
else
8929
 
  if test "$cross_compiling" = yes; then
8930
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8931
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8932
 
   { (exit 1); exit 1; }; }
8933
 
else
8934
 
  cat >conftest.$ac_ext <<_ACEOF
8935
 
#line $LINENO "configure"
8936
 
#include "confdefs.h"
8937
 
$ac_includes_default
8938
 
long longval () { return (long) (sizeof (int)); }
8939
 
unsigned long ulongval () { return (long) (sizeof (int)); }
8940
 
#include <stdio.h>
8941
 
#include <stdlib.h>
8942
 
#ifdef F77_DUMMY_MAIN
8943
 
#  ifdef __cplusplus
8944
 
     extern "C"
8945
 
#  endif
8946
 
   int F77_DUMMY_MAIN() { return 1; }
8947
 
#endif
8948
 
int
8949
 
main ()
8950
 
{
8951
 
 
8952
 
  FILE *f = fopen ("conftest.val", "w");
8953
 
  if (! f)
8954
 
    exit (1);
8955
 
  if (((long) (sizeof (int))) < 0)
8956
 
    {
8957
 
      long i = longval ();
8958
 
      if (i != ((long) (sizeof (int))))
8959
 
        exit (1);
8960
 
      fprintf (f, "%ld\n", i);
8961
 
    }
8962
 
  else
8963
 
    {
8964
 
      unsigned long i = ulongval ();
8965
 
      if (i != ((long) (sizeof (int))))
8966
 
        exit (1);
8967
 
      fprintf (f, "%lu\n", i);
8968
 
    }
8969
 
  exit (ferror (f) || fclose (f) != 0);
8970
 
 
8971
 
  ;
8972
 
  return 0;
8973
 
}
8974
 
_ACEOF
8975
 
rm -f conftest$ac_exeext
8976
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977
 
  (eval $ac_link) 2>&5
8978
 
  ac_status=$?
8979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982
 
  (eval $ac_try) 2>&5
8983
 
  ac_status=$?
8984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985
 
  (exit $ac_status); }; }; then
8986
 
  ac_cv_sizeof_int=`cat conftest.val`
8987
 
else
8988
 
  echo "$as_me: program exited with status $ac_status" >&5
8989
 
echo "$as_me: failed program was:" >&5
8990
 
cat conftest.$ac_ext >&5
8991
 
( exit $ac_status )
8992
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
8993
 
echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
8994
 
   { (exit 1); exit 1; }; }
8995
 
fi
8996
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8997
 
fi
8998
 
fi
8999
 
rm -f conftest.val
9000
 
else
9001
 
  ac_cv_sizeof_int=0
9002
 
fi
9003
 
fi
9004
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9005
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9006
 
cat >>confdefs.h <<_ACEOF
9007
 
#define SIZEOF_INT $ac_cv_sizeof_int
9008
 
_ACEOF
9009
 
 
9010
 
  echo "$as_me:$LINENO: checking for long" >&5
9011
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
9012
 
if test "${ac_cv_type_long+set}" = set; then
9013
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9014
 
else
9015
 
  cat >conftest.$ac_ext <<_ACEOF
9016
 
#line $LINENO "configure"
9017
 
#include "confdefs.h"
9018
 
$ac_includes_default
9019
 
#ifdef F77_DUMMY_MAIN
9020
 
#  ifdef __cplusplus
9021
 
     extern "C"
9022
 
#  endif
9023
 
   int F77_DUMMY_MAIN() { return 1; }
9024
 
#endif
9025
 
int
9026
 
main ()
9027
 
{
9028
 
if ((long *) 0)
9029
 
  return 0;
9030
 
if (sizeof (long))
9031
 
  return 0;
9032
 
  ;
9033
 
  return 0;
9034
 
}
9035
 
_ACEOF
9036
 
rm -f conftest.$ac_objext
9037
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9038
 
  (eval $ac_compile) 2>&5
9039
 
  ac_status=$?
9040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041
 
  (exit $ac_status); } &&
9042
 
         { ac_try='test -s conftest.$ac_objext'
9043
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044
 
  (eval $ac_try) 2>&5
9045
 
  ac_status=$?
9046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047
 
  (exit $ac_status); }; }; then
9048
 
  ac_cv_type_long=yes
9049
 
else
9050
 
  echo "$as_me: failed program was:" >&5
9051
 
cat conftest.$ac_ext >&5
9052
 
ac_cv_type_long=no
9053
 
fi
9054
 
rm -f conftest.$ac_objext conftest.$ac_ext
9055
 
fi
9056
 
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9057
 
echo "${ECHO_T}$ac_cv_type_long" >&6
9058
 
 
9059
 
echo "$as_me:$LINENO: checking size of long" >&5
9060
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
9061
 
if test "${ac_cv_sizeof_long+set}" = set; then
9062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9063
 
else
9064
 
  if test "$ac_cv_type_long" = yes; then
9065
 
  # The cast to unsigned long works around a bug in the HP C Compiler
9066
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9067
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9068
 
  # This bug is HP SR number 8606223364.
9069
 
  if test "$cross_compiling" = yes; then
9070
 
  # Depending upon the size, compute the lo and hi bounds.
9071
 
cat >conftest.$ac_ext <<_ACEOF
9072
 
#line $LINENO "configure"
9073
 
#include "confdefs.h"
9074
 
$ac_includes_default
9075
 
#ifdef F77_DUMMY_MAIN
9076
 
#  ifdef __cplusplus
9077
 
     extern "C"
9078
 
#  endif
9079
 
   int F77_DUMMY_MAIN() { return 1; }
9080
 
#endif
9081
 
int
9082
 
main ()
9083
 
{
9084
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9085
 
test_array [0] = 0
9086
 
 
9087
 
  ;
9088
 
  return 0;
9089
 
}
9090
 
_ACEOF
9091
 
rm -f conftest.$ac_objext
9092
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093
 
  (eval $ac_compile) 2>&5
9094
 
  ac_status=$?
9095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096
 
  (exit $ac_status); } &&
9097
 
         { ac_try='test -s conftest.$ac_objext'
9098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099
 
  (eval $ac_try) 2>&5
9100
 
  ac_status=$?
9101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102
 
  (exit $ac_status); }; }; then
9103
 
  ac_lo=0 ac_mid=0
9104
 
  while :; do
9105
 
    cat >conftest.$ac_ext <<_ACEOF
9106
 
#line $LINENO "configure"
9107
 
#include "confdefs.h"
9108
 
$ac_includes_default
9109
 
#ifdef F77_DUMMY_MAIN
9110
 
#  ifdef __cplusplus
9111
 
     extern "C"
9112
 
#  endif
9113
 
   int F77_DUMMY_MAIN() { return 1; }
9114
 
#endif
9115
 
int
9116
 
main ()
9117
 
{
9118
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9119
 
test_array [0] = 0
9120
 
 
9121
 
  ;
9122
 
  return 0;
9123
 
}
9124
 
_ACEOF
9125
 
rm -f conftest.$ac_objext
9126
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127
 
  (eval $ac_compile) 2>&5
9128
 
  ac_status=$?
9129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130
 
  (exit $ac_status); } &&
9131
 
         { ac_try='test -s conftest.$ac_objext'
9132
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133
 
  (eval $ac_try) 2>&5
9134
 
  ac_status=$?
9135
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136
 
  (exit $ac_status); }; }; then
9137
 
  ac_hi=$ac_mid; break
9138
 
else
9139
 
  echo "$as_me: failed program was:" >&5
9140
 
cat conftest.$ac_ext >&5
9141
 
ac_lo=`expr $ac_mid + 1`
9142
 
                    if test $ac_lo -le $ac_mid; then
9143
 
                      ac_lo= ac_hi=
9144
 
                      break
9145
 
                    fi
9146
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
9147
 
fi
9148
 
rm -f conftest.$ac_objext conftest.$ac_ext
9149
 
  done
9150
 
else
9151
 
  echo "$as_me: failed program was:" >&5
9152
 
cat conftest.$ac_ext >&5
9153
 
cat >conftest.$ac_ext <<_ACEOF
9154
 
#line $LINENO "configure"
9155
 
#include "confdefs.h"
9156
 
$ac_includes_default
9157
 
#ifdef F77_DUMMY_MAIN
9158
 
#  ifdef __cplusplus
9159
 
     extern "C"
9160
 
#  endif
9161
 
   int F77_DUMMY_MAIN() { return 1; }
9162
 
#endif
9163
 
int
9164
 
main ()
9165
 
{
9166
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9167
 
test_array [0] = 0
9168
 
 
9169
 
  ;
9170
 
  return 0;
9171
 
}
9172
 
_ACEOF
9173
 
rm -f conftest.$ac_objext
9174
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9175
 
  (eval $ac_compile) 2>&5
9176
 
  ac_status=$?
9177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178
 
  (exit $ac_status); } &&
9179
 
         { ac_try='test -s conftest.$ac_objext'
9180
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181
 
  (eval $ac_try) 2>&5
9182
 
  ac_status=$?
9183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184
 
  (exit $ac_status); }; }; then
9185
 
  ac_hi=-1 ac_mid=-1
9186
 
  while :; do
9187
 
    cat >conftest.$ac_ext <<_ACEOF
9188
 
#line $LINENO "configure"
9189
 
#include "confdefs.h"
9190
 
$ac_includes_default
9191
 
#ifdef F77_DUMMY_MAIN
9192
 
#  ifdef __cplusplus
9193
 
     extern "C"
9194
 
#  endif
9195
 
   int F77_DUMMY_MAIN() { return 1; }
9196
 
#endif
9197
 
int
9198
 
main ()
9199
 
{
9200
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9201
 
test_array [0] = 0
9202
 
 
9203
 
  ;
9204
 
  return 0;
9205
 
}
9206
 
_ACEOF
9207
 
rm -f conftest.$ac_objext
9208
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209
 
  (eval $ac_compile) 2>&5
9210
 
  ac_status=$?
9211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212
 
  (exit $ac_status); } &&
9213
 
         { ac_try='test -s conftest.$ac_objext'
9214
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215
 
  (eval $ac_try) 2>&5
9216
 
  ac_status=$?
9217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218
 
  (exit $ac_status); }; }; then
9219
 
  ac_lo=$ac_mid; break
9220
 
else
9221
 
  echo "$as_me: failed program was:" >&5
9222
 
cat conftest.$ac_ext >&5
9223
 
ac_hi=`expr '(' $ac_mid ')' - 1`
9224
 
                       if test $ac_mid -le $ac_hi; then
9225
 
                         ac_lo= ac_hi=
9226
 
                         break
9227
 
                       fi
9228
 
                       ac_mid=`expr 2 '*' $ac_mid`
9229
 
fi
9230
 
rm -f conftest.$ac_objext conftest.$ac_ext
9231
 
  done
9232
 
else
9233
 
  echo "$as_me: failed program was:" >&5
9234
 
cat conftest.$ac_ext >&5
9235
 
ac_lo= ac_hi=
9236
 
fi
9237
 
rm -f conftest.$ac_objext conftest.$ac_ext
9238
 
fi
9239
 
rm -f conftest.$ac_objext conftest.$ac_ext
9240
 
# Binary search between lo and hi bounds.
9241
 
while test "x$ac_lo" != "x$ac_hi"; do
9242
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9243
 
  cat >conftest.$ac_ext <<_ACEOF
9244
 
#line $LINENO "configure"
9245
 
#include "confdefs.h"
9246
 
$ac_includes_default
9247
 
#ifdef F77_DUMMY_MAIN
9248
 
#  ifdef __cplusplus
9249
 
     extern "C"
9250
 
#  endif
9251
 
   int F77_DUMMY_MAIN() { return 1; }
9252
 
#endif
9253
 
int
9254
 
main ()
9255
 
{
9256
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9257
 
test_array [0] = 0
9258
 
 
9259
 
  ;
9260
 
  return 0;
9261
 
}
9262
 
_ACEOF
9263
 
rm -f conftest.$ac_objext
9264
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265
 
  (eval $ac_compile) 2>&5
9266
 
  ac_status=$?
9267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268
 
  (exit $ac_status); } &&
9269
 
         { ac_try='test -s conftest.$ac_objext'
9270
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271
 
  (eval $ac_try) 2>&5
9272
 
  ac_status=$?
9273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274
 
  (exit $ac_status); }; }; then
9275
 
  ac_hi=$ac_mid
9276
 
else
9277
 
  echo "$as_me: failed program was:" >&5
9278
 
cat conftest.$ac_ext >&5
9279
 
ac_lo=`expr '(' $ac_mid ')' + 1`
9280
 
fi
9281
 
rm -f conftest.$ac_objext conftest.$ac_ext
9282
 
done
9283
 
case $ac_lo in
9284
 
?*) ac_cv_sizeof_long=$ac_lo;;
9285
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
9286
 
echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
9287
 
   { (exit 1); exit 1; }; } ;;
9288
 
esac
9289
 
else
9290
 
  if test "$cross_compiling" = yes; then
9291
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9292
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9293
 
   { (exit 1); exit 1; }; }
9294
 
else
9295
 
  cat >conftest.$ac_ext <<_ACEOF
9296
 
#line $LINENO "configure"
9297
 
#include "confdefs.h"
9298
 
$ac_includes_default
9299
 
long longval () { return (long) (sizeof (long)); }
9300
 
unsigned long ulongval () { return (long) (sizeof (long)); }
9301
 
#include <stdio.h>
9302
 
#include <stdlib.h>
9303
 
#ifdef F77_DUMMY_MAIN
9304
 
#  ifdef __cplusplus
9305
 
     extern "C"
9306
 
#  endif
9307
 
   int F77_DUMMY_MAIN() { return 1; }
9308
 
#endif
9309
 
int
9310
 
main ()
9311
 
{
9312
 
 
9313
 
  FILE *f = fopen ("conftest.val", "w");
9314
 
  if (! f)
9315
 
    exit (1);
9316
 
  if (((long) (sizeof (long))) < 0)
9317
 
    {
9318
 
      long i = longval ();
9319
 
      if (i != ((long) (sizeof (long))))
9320
 
        exit (1);
9321
 
      fprintf (f, "%ld\n", i);
9322
 
    }
9323
 
  else
9324
 
    {
9325
 
      unsigned long i = ulongval ();
9326
 
      if (i != ((long) (sizeof (long))))
9327
 
        exit (1);
9328
 
      fprintf (f, "%lu\n", i);
9329
 
    }
9330
 
  exit (ferror (f) || fclose (f) != 0);
9331
 
 
9332
 
  ;
9333
 
  return 0;
9334
 
}
9335
 
_ACEOF
9336
 
rm -f conftest$ac_exeext
9337
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338
 
  (eval $ac_link) 2>&5
9339
 
  ac_status=$?
9340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9342
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343
 
  (eval $ac_try) 2>&5
9344
 
  ac_status=$?
9345
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346
 
  (exit $ac_status); }; }; then
9347
 
  ac_cv_sizeof_long=`cat conftest.val`
9348
 
else
9349
 
  echo "$as_me: program exited with status $ac_status" >&5
9350
 
echo "$as_me: failed program was:" >&5
9351
 
cat conftest.$ac_ext >&5
9352
 
( exit $ac_status )
9353
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
9354
 
echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
9355
 
   { (exit 1); exit 1; }; }
9356
 
fi
9357
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9358
 
fi
9359
 
fi
9360
 
rm -f conftest.val
9361
 
else
9362
 
  ac_cv_sizeof_long=0
9363
 
fi
9364
 
fi
9365
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9366
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9367
 
cat >>confdefs.h <<_ACEOF
9368
 
#define SIZEOF_LONG $ac_cv_sizeof_long
9369
 
_ACEOF
9370
 
 
9371
 
  echo "$as_me:$LINENO: checking for char *" >&5
9372
 
echo $ECHO_N "checking for char *... $ECHO_C" >&6
9373
 
if test "${ac_cv_type_char_p+set}" = set; then
9374
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9375
 
else
9376
 
  cat >conftest.$ac_ext <<_ACEOF
9377
 
#line $LINENO "configure"
9378
 
#include "confdefs.h"
9379
 
$ac_includes_default
9380
 
#ifdef F77_DUMMY_MAIN
9381
 
#  ifdef __cplusplus
9382
 
     extern "C"
9383
 
#  endif
9384
 
   int F77_DUMMY_MAIN() { return 1; }
9385
 
#endif
9386
 
int
9387
 
main ()
9388
 
{
9389
 
if ((char * *) 0)
9390
 
  return 0;
9391
 
if (sizeof (char *))
9392
 
  return 0;
9393
 
  ;
9394
 
  return 0;
9395
 
}
9396
 
_ACEOF
9397
 
rm -f conftest.$ac_objext
9398
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399
 
  (eval $ac_compile) 2>&5
9400
 
  ac_status=$?
9401
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402
 
  (exit $ac_status); } &&
9403
 
         { ac_try='test -s conftest.$ac_objext'
9404
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405
 
  (eval $ac_try) 2>&5
9406
 
  ac_status=$?
9407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408
 
  (exit $ac_status); }; }; then
9409
 
  ac_cv_type_char_p=yes
9410
 
else
9411
 
  echo "$as_me: failed program was:" >&5
9412
 
cat conftest.$ac_ext >&5
9413
 
ac_cv_type_char_p=no
9414
 
fi
9415
 
rm -f conftest.$ac_objext conftest.$ac_ext
9416
 
fi
9417
 
echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
9418
 
echo "${ECHO_T}$ac_cv_type_char_p" >&6
9419
 
 
9420
 
echo "$as_me:$LINENO: checking size of char *" >&5
9421
 
echo $ECHO_N "checking size of char *... $ECHO_C" >&6
9422
 
if test "${ac_cv_sizeof_char_p+set}" = set; then
9423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9424
 
else
9425
 
  if test "$ac_cv_type_char_p" = yes; then
9426
 
  # The cast to unsigned long works around a bug in the HP C Compiler
9427
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9428
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9429
 
  # This bug is HP SR number 8606223364.
9430
 
  if test "$cross_compiling" = yes; then
9431
 
  # Depending upon the size, compute the lo and hi bounds.
9432
 
cat >conftest.$ac_ext <<_ACEOF
9433
 
#line $LINENO "configure"
9434
 
#include "confdefs.h"
9435
 
$ac_includes_default
9436
 
#ifdef F77_DUMMY_MAIN
9437
 
#  ifdef __cplusplus
9438
 
     extern "C"
9439
 
#  endif
9440
 
   int F77_DUMMY_MAIN() { return 1; }
9441
 
#endif
9442
 
int
9443
 
main ()
9444
 
{
9445
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
9446
 
test_array [0] = 0
9447
 
 
9448
 
  ;
9449
 
  return 0;
9450
 
}
9451
 
_ACEOF
9452
 
rm -f conftest.$ac_objext
9453
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9454
 
  (eval $ac_compile) 2>&5
9455
 
  ac_status=$?
9456
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457
 
  (exit $ac_status); } &&
9458
 
         { ac_try='test -s conftest.$ac_objext'
9459
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460
 
  (eval $ac_try) 2>&5
9461
 
  ac_status=$?
9462
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463
 
  (exit $ac_status); }; }; then
9464
 
  ac_lo=0 ac_mid=0
9465
 
  while :; do
9466
 
    cat >conftest.$ac_ext <<_ACEOF
9467
 
#line $LINENO "configure"
9468
 
#include "confdefs.h"
9469
 
$ac_includes_default
9470
 
#ifdef F77_DUMMY_MAIN
9471
 
#  ifdef __cplusplus
9472
 
     extern "C"
9473
 
#  endif
9474
 
   int F77_DUMMY_MAIN() { return 1; }
9475
 
#endif
9476
 
int
9477
 
main ()
9478
 
{
9479
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
9480
 
test_array [0] = 0
9481
 
 
9482
 
  ;
9483
 
  return 0;
9484
 
}
9485
 
_ACEOF
9486
 
rm -f conftest.$ac_objext
9487
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488
 
  (eval $ac_compile) 2>&5
9489
 
  ac_status=$?
9490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491
 
  (exit $ac_status); } &&
9492
 
         { ac_try='test -s conftest.$ac_objext'
9493
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494
 
  (eval $ac_try) 2>&5
9495
 
  ac_status=$?
9496
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497
 
  (exit $ac_status); }; }; then
9498
 
  ac_hi=$ac_mid; break
9499
 
else
9500
 
  echo "$as_me: failed program was:" >&5
9501
 
cat conftest.$ac_ext >&5
9502
 
ac_lo=`expr $ac_mid + 1`
9503
 
                    if test $ac_lo -le $ac_mid; then
9504
 
                      ac_lo= ac_hi=
9505
 
                      break
9506
 
                    fi
9507
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
9508
 
fi
9509
 
rm -f conftest.$ac_objext conftest.$ac_ext
9510
 
  done
9511
 
else
9512
 
  echo "$as_me: failed program was:" >&5
9513
 
cat conftest.$ac_ext >&5
9514
 
cat >conftest.$ac_ext <<_ACEOF
9515
 
#line $LINENO "configure"
9516
 
#include "confdefs.h"
9517
 
$ac_includes_default
9518
 
#ifdef F77_DUMMY_MAIN
9519
 
#  ifdef __cplusplus
9520
 
     extern "C"
9521
 
#  endif
9522
 
   int F77_DUMMY_MAIN() { return 1; }
9523
 
#endif
9524
 
int
9525
 
main ()
9526
 
{
9527
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
9528
 
test_array [0] = 0
9529
 
 
9530
 
  ;
9531
 
  return 0;
9532
 
}
9533
 
_ACEOF
9534
 
rm -f conftest.$ac_objext
9535
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536
 
  (eval $ac_compile) 2>&5
9537
 
  ac_status=$?
9538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539
 
  (exit $ac_status); } &&
9540
 
         { ac_try='test -s conftest.$ac_objext'
9541
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542
 
  (eval $ac_try) 2>&5
9543
 
  ac_status=$?
9544
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545
 
  (exit $ac_status); }; }; then
9546
 
  ac_hi=-1 ac_mid=-1
9547
 
  while :; do
9548
 
    cat >conftest.$ac_ext <<_ACEOF
9549
 
#line $LINENO "configure"
9550
 
#include "confdefs.h"
9551
 
$ac_includes_default
9552
 
#ifdef F77_DUMMY_MAIN
9553
 
#  ifdef __cplusplus
9554
 
     extern "C"
9555
 
#  endif
9556
 
   int F77_DUMMY_MAIN() { return 1; }
9557
 
#endif
9558
 
int
9559
 
main ()
9560
 
{
9561
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
9562
 
test_array [0] = 0
9563
 
 
9564
 
  ;
9565
 
  return 0;
9566
 
}
9567
 
_ACEOF
9568
 
rm -f conftest.$ac_objext
9569
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570
 
  (eval $ac_compile) 2>&5
9571
 
  ac_status=$?
9572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573
 
  (exit $ac_status); } &&
9574
 
         { ac_try='test -s conftest.$ac_objext'
9575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576
 
  (eval $ac_try) 2>&5
9577
 
  ac_status=$?
9578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579
 
  (exit $ac_status); }; }; then
9580
 
  ac_lo=$ac_mid; break
9581
 
else
9582
 
  echo "$as_me: failed program was:" >&5
9583
 
cat conftest.$ac_ext >&5
9584
 
ac_hi=`expr '(' $ac_mid ')' - 1`
9585
 
                       if test $ac_mid -le $ac_hi; then
9586
 
                         ac_lo= ac_hi=
9587
 
                         break
9588
 
                       fi
9589
 
                       ac_mid=`expr 2 '*' $ac_mid`
9590
 
fi
9591
 
rm -f conftest.$ac_objext conftest.$ac_ext
9592
 
  done
9593
 
else
9594
 
  echo "$as_me: failed program was:" >&5
9595
 
cat conftest.$ac_ext >&5
9596
 
ac_lo= ac_hi=
9597
 
fi
9598
 
rm -f conftest.$ac_objext conftest.$ac_ext
9599
 
fi
9600
 
rm -f conftest.$ac_objext conftest.$ac_ext
9601
 
# Binary search between lo and hi bounds.
9602
 
while test "x$ac_lo" != "x$ac_hi"; do
9603
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9604
 
  cat >conftest.$ac_ext <<_ACEOF
9605
 
#line $LINENO "configure"
9606
 
#include "confdefs.h"
9607
 
$ac_includes_default
9608
 
#ifdef F77_DUMMY_MAIN
9609
 
#  ifdef __cplusplus
9610
 
     extern "C"
9611
 
#  endif
9612
 
   int F77_DUMMY_MAIN() { return 1; }
9613
 
#endif
9614
 
int
9615
 
main ()
9616
 
{
9617
 
static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
9618
 
test_array [0] = 0
9619
 
 
9620
 
  ;
9621
 
  return 0;
9622
 
}
9623
 
_ACEOF
9624
 
rm -f conftest.$ac_objext
9625
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626
 
  (eval $ac_compile) 2>&5
9627
 
  ac_status=$?
9628
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629
 
  (exit $ac_status); } &&
9630
 
         { ac_try='test -s conftest.$ac_objext'
9631
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632
 
  (eval $ac_try) 2>&5
9633
 
  ac_status=$?
9634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635
 
  (exit $ac_status); }; }; then
9636
 
  ac_hi=$ac_mid
9637
 
else
9638
 
  echo "$as_me: failed program was:" >&5
9639
 
cat conftest.$ac_ext >&5
9640
 
ac_lo=`expr '(' $ac_mid ')' + 1`
9641
 
fi
9642
 
rm -f conftest.$ac_objext conftest.$ac_ext
9643
 
done
9644
 
case $ac_lo in
9645
 
?*) ac_cv_sizeof_char_p=$ac_lo;;
9646
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
9647
 
echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
9648
 
   { (exit 1); exit 1; }; } ;;
9649
 
esac
9650
 
else
9651
 
  if test "$cross_compiling" = yes; then
9652
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9653
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9654
 
   { (exit 1); exit 1; }; }
9655
 
else
9656
 
  cat >conftest.$ac_ext <<_ACEOF
9657
 
#line $LINENO "configure"
9658
 
#include "confdefs.h"
9659
 
$ac_includes_default
9660
 
long longval () { return (long) (sizeof (char *)); }
9661
 
unsigned long ulongval () { return (long) (sizeof (char *)); }
9662
 
#include <stdio.h>
9663
 
#include <stdlib.h>
9664
 
#ifdef F77_DUMMY_MAIN
9665
 
#  ifdef __cplusplus
9666
 
     extern "C"
9667
 
#  endif
9668
 
   int F77_DUMMY_MAIN() { return 1; }
9669
 
#endif
9670
 
int
9671
 
main ()
9672
 
{
9673
 
 
9674
 
  FILE *f = fopen ("conftest.val", "w");
9675
 
  if (! f)
9676
 
    exit (1);
9677
 
  if (((long) (sizeof (char *))) < 0)
9678
 
    {
9679
 
      long i = longval ();
9680
 
      if (i != ((long) (sizeof (char *))))
9681
 
        exit (1);
9682
 
      fprintf (f, "%ld\n", i);
9683
 
    }
9684
 
  else
9685
 
    {
9686
 
      unsigned long i = ulongval ();
9687
 
      if (i != ((long) (sizeof (char *))))
9688
 
        exit (1);
9689
 
      fprintf (f, "%lu\n", i);
9690
 
    }
9691
 
  exit (ferror (f) || fclose (f) != 0);
9692
 
 
9693
 
  ;
9694
 
  return 0;
9695
 
}
9696
 
_ACEOF
9697
 
rm -f conftest$ac_exeext
9698
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699
 
  (eval $ac_link) 2>&5
9700
 
  ac_status=$?
9701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9703
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704
 
  (eval $ac_try) 2>&5
9705
 
  ac_status=$?
9706
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707
 
  (exit $ac_status); }; }; then
9708
 
  ac_cv_sizeof_char_p=`cat conftest.val`
9709
 
else
9710
 
  echo "$as_me: program exited with status $ac_status" >&5
9711
 
echo "$as_me: failed program was:" >&5
9712
 
cat conftest.$ac_ext >&5
9713
 
( exit $ac_status )
9714
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77" >&5
9715
 
echo "$as_me: error: cannot compute sizeof (char *), 77" >&2;}
9716
 
   { (exit 1); exit 1; }; }
9717
 
fi
9718
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9719
 
fi
9720
 
fi
9721
 
rm -f conftest.val
9722
 
else
9723
 
  ac_cv_sizeof_char_p=0
9724
 
fi
9725
 
fi
9726
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
9727
 
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
9728
 
cat >>confdefs.h <<_ACEOF
9729
 
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
9730
 
_ACEOF
9731
 
 
9732
 
 
9733
 
 
9734
 
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9735
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9736
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9737
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9738
 
else
9739
 
  ac_check_lib_save_LIBS=$LIBS
9740
 
LIBS="-ldl  $LIBS"
9741
 
cat >conftest.$ac_ext <<_ACEOF
9742
 
#line $LINENO "configure"
9743
 
#include "confdefs.h"
9744
 
 
9745
 
/* Override any gcc2 internal prototype to avoid an error.  */
9746
 
#ifdef __cplusplus
9747
 
extern "C"
9748
 
#endif
9749
 
/* We use char because int might match the return type of a gcc2
9750
 
   builtin and then its argument prototype would still apply.  */
9751
 
char dlopen ();
9752
 
#ifdef F77_DUMMY_MAIN
9753
 
#  ifdef __cplusplus
9754
 
     extern "C"
9755
 
#  endif
9756
 
   int F77_DUMMY_MAIN() { return 1; }
9757
 
#endif
9758
 
int
9759
 
main ()
9760
 
{
9761
 
dlopen ();
9762
 
  ;
9763
 
  return 0;
9764
 
}
9765
 
_ACEOF
9766
 
rm -f conftest.$ac_objext conftest$ac_exeext
9767
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768
 
  (eval $ac_link) 2>&5
9769
 
  ac_status=$?
9770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771
 
  (exit $ac_status); } &&
9772
 
         { ac_try='test -s conftest$ac_exeext'
9773
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774
 
  (eval $ac_try) 2>&5
9775
 
  ac_status=$?
9776
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777
 
  (exit $ac_status); }; }; then
9778
 
  ac_cv_lib_dl_dlopen=yes
9779
 
else
9780
 
  echo "$as_me: failed program was:" >&5
9781
 
cat conftest.$ac_ext >&5
9782
 
ac_cv_lib_dl_dlopen=no
9783
 
fi
9784
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785
 
LIBS=$ac_check_lib_save_LIBS
9786
 
fi
9787
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9788
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9789
 
if test $ac_cv_lib_dl_dlopen = yes; then
9790
 
 
9791
 
LIBDL="-ldl"
9792
 
ac_cv_have_dlfcn=yes
9793
 
 
9794
 
fi
9795
 
 
9796
 
 
9797
 
echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
9798
 
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
9799
 
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
9800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9801
 
else
9802
 
  ac_check_lib_save_LIBS=$LIBS
9803
 
LIBS="-ldld  $LIBS"
9804
 
cat >conftest.$ac_ext <<_ACEOF
9805
 
#line $LINENO "configure"
9806
 
#include "confdefs.h"
9807
 
 
9808
 
/* Override any gcc2 internal prototype to avoid an error.  */
9809
 
#ifdef __cplusplus
9810
 
extern "C"
9811
 
#endif
9812
 
/* We use char because int might match the return type of a gcc2
9813
 
   builtin and then its argument prototype would still apply.  */
9814
 
char shl_unload ();
9815
 
#ifdef F77_DUMMY_MAIN
9816
 
#  ifdef __cplusplus
9817
 
     extern "C"
9818
 
#  endif
9819
 
   int F77_DUMMY_MAIN() { return 1; }
9820
 
#endif
9821
 
int
9822
 
main ()
9823
 
{
9824
 
shl_unload ();
9825
 
  ;
9826
 
  return 0;
9827
 
}
9828
 
_ACEOF
9829
 
rm -f conftest.$ac_objext conftest$ac_exeext
9830
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9831
 
  (eval $ac_link) 2>&5
9832
 
  ac_status=$?
9833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834
 
  (exit $ac_status); } &&
9835
 
         { ac_try='test -s conftest$ac_exeext'
9836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837
 
  (eval $ac_try) 2>&5
9838
 
  ac_status=$?
9839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840
 
  (exit $ac_status); }; }; then
9841
 
  ac_cv_lib_dld_shl_unload=yes
9842
 
else
9843
 
  echo "$as_me: failed program was:" >&5
9844
 
cat conftest.$ac_ext >&5
9845
 
ac_cv_lib_dld_shl_unload=no
9846
 
fi
9847
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9848
 
LIBS=$ac_check_lib_save_LIBS
9849
 
fi
9850
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
9851
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
9852
 
if test $ac_cv_lib_dld_shl_unload = yes; then
9853
 
 
9854
 
LIBDL="-ldld"
9855
 
ac_cv_have_shload=yes
9856
 
 
9857
 
fi
9858
 
 
9859
 
 
9860
 
 
9861
 
 
9862
 
 
9863
 
 
9864
 
 
9865
 
  echo "$as_me:$LINENO: checking for size_t" >&5
9866
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9867
 
if test "${ac_cv_type_size_t+set}" = set; then
9868
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9869
 
else
9870
 
  cat >conftest.$ac_ext <<_ACEOF
9871
 
#line $LINENO "configure"
9872
 
#include "confdefs.h"
9873
 
$ac_includes_default
9874
 
#ifdef F77_DUMMY_MAIN
9875
 
#  ifdef __cplusplus
9876
 
     extern "C"
9877
 
#  endif
9878
 
   int F77_DUMMY_MAIN() { return 1; }
9879
 
#endif
9880
 
int
9881
 
main ()
9882
 
{
9883
 
if ((size_t *) 0)
9884
 
  return 0;
9885
 
if (sizeof (size_t))
9886
 
  return 0;
9887
 
  ;
9888
 
  return 0;
9889
 
}
9890
 
_ACEOF
9891
 
rm -f conftest.$ac_objext
9892
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893
 
  (eval $ac_compile) 2>&5
9894
 
  ac_status=$?
9895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896
 
  (exit $ac_status); } &&
9897
 
         { ac_try='test -s conftest.$ac_objext'
9898
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899
 
  (eval $ac_try) 2>&5
9900
 
  ac_status=$?
9901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902
 
  (exit $ac_status); }; }; then
9903
 
  ac_cv_type_size_t=yes
9904
 
else
9905
 
  echo "$as_me: failed program was:" >&5
9906
 
cat conftest.$ac_ext >&5
9907
 
ac_cv_type_size_t=no
9908
 
fi
9909
 
rm -f conftest.$ac_objext conftest.$ac_ext
9910
 
fi
9911
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9912
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
9913
 
 
9914
 
echo "$as_me:$LINENO: checking size of size_t" >&5
9915
 
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
9916
 
if test "${ac_cv_sizeof_size_t+set}" = set; then
9917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9918
 
else
9919
 
  if test "$ac_cv_type_size_t" = yes; then
9920
 
  # The cast to unsigned long works around a bug in the HP C Compiler
9921
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9922
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9923
 
  # This bug is HP SR number 8606223364.
9924
 
  if test "$cross_compiling" = yes; then
9925
 
  # Depending upon the size, compute the lo and hi bounds.
9926
 
cat >conftest.$ac_ext <<_ACEOF
9927
 
#line $LINENO "configure"
9928
 
#include "confdefs.h"
9929
 
$ac_includes_default
9930
 
#ifdef F77_DUMMY_MAIN
9931
 
#  ifdef __cplusplus
9932
 
     extern "C"
9933
 
#  endif
9934
 
   int F77_DUMMY_MAIN() { return 1; }
9935
 
#endif
9936
 
int
9937
 
main ()
9938
 
{
9939
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
9940
 
test_array [0] = 0
9941
 
 
9942
 
  ;
9943
 
  return 0;
9944
 
}
9945
 
_ACEOF
9946
 
rm -f conftest.$ac_objext
9947
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948
 
  (eval $ac_compile) 2>&5
9949
 
  ac_status=$?
9950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
 
  (exit $ac_status); } &&
9952
 
         { ac_try='test -s conftest.$ac_objext'
9953
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954
 
  (eval $ac_try) 2>&5
9955
 
  ac_status=$?
9956
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957
 
  (exit $ac_status); }; }; then
9958
 
  ac_lo=0 ac_mid=0
9959
 
  while :; do
9960
 
    cat >conftest.$ac_ext <<_ACEOF
9961
 
#line $LINENO "configure"
9962
 
#include "confdefs.h"
9963
 
$ac_includes_default
9964
 
#ifdef F77_DUMMY_MAIN
9965
 
#  ifdef __cplusplus
9966
 
     extern "C"
9967
 
#  endif
9968
 
   int F77_DUMMY_MAIN() { return 1; }
9969
 
#endif
9970
 
int
9971
 
main ()
9972
 
{
9973
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
9974
 
test_array [0] = 0
9975
 
 
9976
 
  ;
9977
 
  return 0;
9978
 
}
9979
 
_ACEOF
9980
 
rm -f conftest.$ac_objext
9981
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982
 
  (eval $ac_compile) 2>&5
9983
 
  ac_status=$?
9984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985
 
  (exit $ac_status); } &&
9986
 
         { ac_try='test -s conftest.$ac_objext'
9987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988
 
  (eval $ac_try) 2>&5
9989
 
  ac_status=$?
9990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991
 
  (exit $ac_status); }; }; then
9992
 
  ac_hi=$ac_mid; break
9993
 
else
9994
 
  echo "$as_me: failed program was:" >&5
9995
 
cat conftest.$ac_ext >&5
9996
 
ac_lo=`expr $ac_mid + 1`
9997
 
                    if test $ac_lo -le $ac_mid; then
9998
 
                      ac_lo= ac_hi=
9999
 
                      break
10000
 
                    fi
10001
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10002
 
fi
10003
 
rm -f conftest.$ac_objext conftest.$ac_ext
10004
 
  done
10005
 
else
10006
 
  echo "$as_me: failed program was:" >&5
10007
 
cat conftest.$ac_ext >&5
10008
 
cat >conftest.$ac_ext <<_ACEOF
10009
 
#line $LINENO "configure"
10010
 
#include "confdefs.h"
10011
 
$ac_includes_default
10012
 
#ifdef F77_DUMMY_MAIN
10013
 
#  ifdef __cplusplus
10014
 
     extern "C"
10015
 
#  endif
10016
 
   int F77_DUMMY_MAIN() { return 1; }
10017
 
#endif
10018
 
int
10019
 
main ()
10020
 
{
10021
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
10022
 
test_array [0] = 0
10023
 
 
10024
 
  ;
10025
 
  return 0;
10026
 
}
10027
 
_ACEOF
10028
 
rm -f conftest.$ac_objext
10029
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10030
 
  (eval $ac_compile) 2>&5
10031
 
  ac_status=$?
10032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033
 
  (exit $ac_status); } &&
10034
 
         { ac_try='test -s conftest.$ac_objext'
10035
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036
 
  (eval $ac_try) 2>&5
10037
 
  ac_status=$?
10038
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039
 
  (exit $ac_status); }; }; then
10040
 
  ac_hi=-1 ac_mid=-1
10041
 
  while :; do
10042
 
    cat >conftest.$ac_ext <<_ACEOF
10043
 
#line $LINENO "configure"
10044
 
#include "confdefs.h"
10045
 
$ac_includes_default
10046
 
#ifdef F77_DUMMY_MAIN
10047
 
#  ifdef __cplusplus
10048
 
     extern "C"
10049
 
#  endif
10050
 
   int F77_DUMMY_MAIN() { return 1; }
10051
 
#endif
10052
 
int
10053
 
main ()
10054
 
{
10055
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
10056
 
test_array [0] = 0
10057
 
 
10058
 
  ;
10059
 
  return 0;
10060
 
}
10061
 
_ACEOF
10062
 
rm -f conftest.$ac_objext
10063
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064
 
  (eval $ac_compile) 2>&5
10065
 
  ac_status=$?
10066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067
 
  (exit $ac_status); } &&
10068
 
         { ac_try='test -s conftest.$ac_objext'
10069
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070
 
  (eval $ac_try) 2>&5
10071
 
  ac_status=$?
10072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073
 
  (exit $ac_status); }; }; then
10074
 
  ac_lo=$ac_mid; break
10075
 
else
10076
 
  echo "$as_me: failed program was:" >&5
10077
 
cat conftest.$ac_ext >&5
10078
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10079
 
                       if test $ac_mid -le $ac_hi; then
10080
 
                         ac_lo= ac_hi=
10081
 
                         break
10082
 
                       fi
10083
 
                       ac_mid=`expr 2 '*' $ac_mid`
10084
 
fi
10085
 
rm -f conftest.$ac_objext conftest.$ac_ext
10086
 
  done
10087
 
else
10088
 
  echo "$as_me: failed program was:" >&5
10089
 
cat conftest.$ac_ext >&5
10090
 
ac_lo= ac_hi=
10091
 
fi
10092
 
rm -f conftest.$ac_objext conftest.$ac_ext
10093
 
fi
10094
 
rm -f conftest.$ac_objext conftest.$ac_ext
10095
 
# Binary search between lo and hi bounds.
10096
 
while test "x$ac_lo" != "x$ac_hi"; do
10097
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10098
 
  cat >conftest.$ac_ext <<_ACEOF
10099
 
#line $LINENO "configure"
10100
 
#include "confdefs.h"
10101
 
$ac_includes_default
10102
 
#ifdef F77_DUMMY_MAIN
10103
 
#  ifdef __cplusplus
10104
 
     extern "C"
10105
 
#  endif
10106
 
   int F77_DUMMY_MAIN() { return 1; }
10107
 
#endif
10108
 
int
10109
 
main ()
10110
 
{
10111
 
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
10112
 
test_array [0] = 0
10113
 
 
10114
 
  ;
10115
 
  return 0;
10116
 
}
10117
 
_ACEOF
10118
 
rm -f conftest.$ac_objext
10119
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10120
 
  (eval $ac_compile) 2>&5
10121
 
  ac_status=$?
10122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123
 
  (exit $ac_status); } &&
10124
 
         { ac_try='test -s conftest.$ac_objext'
10125
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126
 
  (eval $ac_try) 2>&5
10127
 
  ac_status=$?
10128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129
 
  (exit $ac_status); }; }; then
10130
 
  ac_hi=$ac_mid
10131
 
else
10132
 
  echo "$as_me: failed program was:" >&5
10133
 
cat conftest.$ac_ext >&5
10134
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10135
 
fi
10136
 
rm -f conftest.$ac_objext conftest.$ac_ext
10137
 
done
10138
 
case $ac_lo in
10139
 
?*) ac_cv_sizeof_size_t=$ac_lo;;
10140
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
10141
 
echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
10142
 
   { (exit 1); exit 1; }; } ;;
10143
 
esac
10144
 
else
10145
 
  if test "$cross_compiling" = yes; then
10146
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10147
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10148
 
   { (exit 1); exit 1; }; }
10149
 
else
10150
 
  cat >conftest.$ac_ext <<_ACEOF
10151
 
#line $LINENO "configure"
10152
 
#include "confdefs.h"
10153
 
$ac_includes_default
10154
 
long longval () { return (long) (sizeof (size_t)); }
10155
 
unsigned long ulongval () { return (long) (sizeof (size_t)); }
10156
 
#include <stdio.h>
10157
 
#include <stdlib.h>
10158
 
#ifdef F77_DUMMY_MAIN
10159
 
#  ifdef __cplusplus
10160
 
     extern "C"
10161
 
#  endif
10162
 
   int F77_DUMMY_MAIN() { return 1; }
10163
 
#endif
10164
 
int
10165
 
main ()
10166
 
{
10167
 
 
10168
 
  FILE *f = fopen ("conftest.val", "w");
10169
 
  if (! f)
10170
 
    exit (1);
10171
 
  if (((long) (sizeof (size_t))) < 0)
10172
 
    {
10173
 
      long i = longval ();
10174
 
      if (i != ((long) (sizeof (size_t))))
10175
 
        exit (1);
10176
 
      fprintf (f, "%ld\n", i);
10177
 
    }
10178
 
  else
10179
 
    {
10180
 
      unsigned long i = ulongval ();
10181
 
      if (i != ((long) (sizeof (size_t))))
10182
 
        exit (1);
10183
 
      fprintf (f, "%lu\n", i);
10184
 
    }
10185
 
  exit (ferror (f) || fclose (f) != 0);
10186
 
 
10187
 
  ;
10188
 
  return 0;
10189
 
}
10190
 
_ACEOF
10191
 
rm -f conftest$ac_exeext
10192
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193
 
  (eval $ac_link) 2>&5
10194
 
  ac_status=$?
10195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10197
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198
 
  (eval $ac_try) 2>&5
10199
 
  ac_status=$?
10200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201
 
  (exit $ac_status); }; }; then
10202
 
  ac_cv_sizeof_size_t=`cat conftest.val`
10203
 
else
10204
 
  echo "$as_me: program exited with status $ac_status" >&5
10205
 
echo "$as_me: failed program was:" >&5
10206
 
cat conftest.$ac_ext >&5
10207
 
( exit $ac_status )
10208
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77" >&5
10209
 
echo "$as_me: error: cannot compute sizeof (size_t), 77" >&2;}
10210
 
   { (exit 1); exit 1; }; }
10211
 
fi
10212
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10213
 
fi
10214
 
fi
10215
 
rm -f conftest.val
10216
 
else
10217
 
  ac_cv_sizeof_size_t=0
10218
 
fi
10219
 
fi
10220
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10221
 
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
10222
 
cat >>confdefs.h <<_ACEOF
10223
 
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10224
 
_ACEOF
10225
 
 
10226
 
 
10227
 
  echo "$as_me:$LINENO: checking for unsigned long" >&5
10228
 
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
10229
 
if test "${ac_cv_type_unsigned_long+set}" = set; then
10230
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10231
 
else
10232
 
  cat >conftest.$ac_ext <<_ACEOF
10233
 
#line $LINENO "configure"
10234
 
#include "confdefs.h"
10235
 
$ac_includes_default
10236
 
#ifdef F77_DUMMY_MAIN
10237
 
#  ifdef __cplusplus
10238
 
     extern "C"
10239
 
#  endif
10240
 
   int F77_DUMMY_MAIN() { return 1; }
10241
 
#endif
10242
 
int
10243
 
main ()
10244
 
{
10245
 
if ((unsigned long *) 0)
10246
 
  return 0;
10247
 
if (sizeof (unsigned long))
10248
 
  return 0;
10249
 
  ;
10250
 
  return 0;
10251
 
}
10252
 
_ACEOF
10253
 
rm -f conftest.$ac_objext
10254
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255
 
  (eval $ac_compile) 2>&5
10256
 
  ac_status=$?
10257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258
 
  (exit $ac_status); } &&
10259
 
         { ac_try='test -s conftest.$ac_objext'
10260
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261
 
  (eval $ac_try) 2>&5
10262
 
  ac_status=$?
10263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264
 
  (exit $ac_status); }; }; then
10265
 
  ac_cv_type_unsigned_long=yes
10266
 
else
10267
 
  echo "$as_me: failed program was:" >&5
10268
 
cat conftest.$ac_ext >&5
10269
 
ac_cv_type_unsigned_long=no
10270
 
fi
10271
 
rm -f conftest.$ac_objext conftest.$ac_ext
10272
 
fi
10273
 
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
10274
 
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
10275
 
 
10276
 
echo "$as_me:$LINENO: checking size of unsigned long" >&5
10277
 
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
10278
 
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
10279
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10280
 
else
10281
 
  if test "$ac_cv_type_unsigned_long" = yes; then
10282
 
  # The cast to unsigned long works around a bug in the HP C Compiler
10283
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10284
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10285
 
  # This bug is HP SR number 8606223364.
10286
 
  if test "$cross_compiling" = yes; then
10287
 
  # Depending upon the size, compute the lo and hi bounds.
10288
 
cat >conftest.$ac_ext <<_ACEOF
10289
 
#line $LINENO "configure"
10290
 
#include "confdefs.h"
10291
 
$ac_includes_default
10292
 
#ifdef F77_DUMMY_MAIN
10293
 
#  ifdef __cplusplus
10294
 
     extern "C"
10295
 
#  endif
10296
 
   int F77_DUMMY_MAIN() { return 1; }
10297
 
#endif
10298
 
int
10299
 
main ()
10300
 
{
10301
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
10302
 
test_array [0] = 0
10303
 
 
10304
 
  ;
10305
 
  return 0;
10306
 
}
10307
 
_ACEOF
10308
 
rm -f conftest.$ac_objext
10309
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310
 
  (eval $ac_compile) 2>&5
10311
 
  ac_status=$?
10312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313
 
  (exit $ac_status); } &&
10314
 
         { ac_try='test -s conftest.$ac_objext'
10315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316
 
  (eval $ac_try) 2>&5
10317
 
  ac_status=$?
10318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319
 
  (exit $ac_status); }; }; then
10320
 
  ac_lo=0 ac_mid=0
10321
 
  while :; do
10322
 
    cat >conftest.$ac_ext <<_ACEOF
10323
 
#line $LINENO "configure"
10324
 
#include "confdefs.h"
10325
 
$ac_includes_default
10326
 
#ifdef F77_DUMMY_MAIN
10327
 
#  ifdef __cplusplus
10328
 
     extern "C"
10329
 
#  endif
10330
 
   int F77_DUMMY_MAIN() { return 1; }
10331
 
#endif
10332
 
int
10333
 
main ()
10334
 
{
10335
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
10336
 
test_array [0] = 0
10337
 
 
10338
 
  ;
10339
 
  return 0;
10340
 
}
10341
 
_ACEOF
10342
 
rm -f conftest.$ac_objext
10343
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344
 
  (eval $ac_compile) 2>&5
10345
 
  ac_status=$?
10346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347
 
  (exit $ac_status); } &&
10348
 
         { ac_try='test -s conftest.$ac_objext'
10349
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350
 
  (eval $ac_try) 2>&5
10351
 
  ac_status=$?
10352
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353
 
  (exit $ac_status); }; }; then
10354
 
  ac_hi=$ac_mid; break
10355
 
else
10356
 
  echo "$as_me: failed program was:" >&5
10357
 
cat conftest.$ac_ext >&5
10358
 
ac_lo=`expr $ac_mid + 1`
10359
 
                    if test $ac_lo -le $ac_mid; then
10360
 
                      ac_lo= ac_hi=
10361
 
                      break
10362
 
                    fi
10363
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
10364
 
fi
10365
 
rm -f conftest.$ac_objext conftest.$ac_ext
10366
 
  done
10367
 
else
10368
 
  echo "$as_me: failed program was:" >&5
10369
 
cat conftest.$ac_ext >&5
10370
 
cat >conftest.$ac_ext <<_ACEOF
10371
 
#line $LINENO "configure"
10372
 
#include "confdefs.h"
10373
 
$ac_includes_default
10374
 
#ifdef F77_DUMMY_MAIN
10375
 
#  ifdef __cplusplus
10376
 
     extern "C"
10377
 
#  endif
10378
 
   int F77_DUMMY_MAIN() { return 1; }
10379
 
#endif
10380
 
int
10381
 
main ()
10382
 
{
10383
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
10384
 
test_array [0] = 0
10385
 
 
10386
 
  ;
10387
 
  return 0;
10388
 
}
10389
 
_ACEOF
10390
 
rm -f conftest.$ac_objext
10391
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10392
 
  (eval $ac_compile) 2>&5
10393
 
  ac_status=$?
10394
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395
 
  (exit $ac_status); } &&
10396
 
         { ac_try='test -s conftest.$ac_objext'
10397
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398
 
  (eval $ac_try) 2>&5
10399
 
  ac_status=$?
10400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401
 
  (exit $ac_status); }; }; then
10402
 
  ac_hi=-1 ac_mid=-1
10403
 
  while :; do
10404
 
    cat >conftest.$ac_ext <<_ACEOF
10405
 
#line $LINENO "configure"
10406
 
#include "confdefs.h"
10407
 
$ac_includes_default
10408
 
#ifdef F77_DUMMY_MAIN
10409
 
#  ifdef __cplusplus
10410
 
     extern "C"
10411
 
#  endif
10412
 
   int F77_DUMMY_MAIN() { return 1; }
10413
 
#endif
10414
 
int
10415
 
main ()
10416
 
{
10417
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
10418
 
test_array [0] = 0
10419
 
 
10420
 
  ;
10421
 
  return 0;
10422
 
}
10423
 
_ACEOF
10424
 
rm -f conftest.$ac_objext
10425
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426
 
  (eval $ac_compile) 2>&5
10427
 
  ac_status=$?
10428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429
 
  (exit $ac_status); } &&
10430
 
         { ac_try='test -s conftest.$ac_objext'
10431
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432
 
  (eval $ac_try) 2>&5
10433
 
  ac_status=$?
10434
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435
 
  (exit $ac_status); }; }; then
10436
 
  ac_lo=$ac_mid; break
10437
 
else
10438
 
  echo "$as_me: failed program was:" >&5
10439
 
cat conftest.$ac_ext >&5
10440
 
ac_hi=`expr '(' $ac_mid ')' - 1`
10441
 
                       if test $ac_mid -le $ac_hi; then
10442
 
                         ac_lo= ac_hi=
10443
 
                         break
10444
 
                       fi
10445
 
                       ac_mid=`expr 2 '*' $ac_mid`
10446
 
fi
10447
 
rm -f conftest.$ac_objext conftest.$ac_ext
10448
 
  done
10449
 
else
10450
 
  echo "$as_me: failed program was:" >&5
10451
 
cat conftest.$ac_ext >&5
10452
 
ac_lo= ac_hi=
10453
 
fi
10454
 
rm -f conftest.$ac_objext conftest.$ac_ext
10455
 
fi
10456
 
rm -f conftest.$ac_objext conftest.$ac_ext
10457
 
# Binary search between lo and hi bounds.
10458
 
while test "x$ac_lo" != "x$ac_hi"; do
10459
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10460
 
  cat >conftest.$ac_ext <<_ACEOF
10461
 
#line $LINENO "configure"
10462
 
#include "confdefs.h"
10463
 
$ac_includes_default
10464
 
#ifdef F77_DUMMY_MAIN
10465
 
#  ifdef __cplusplus
10466
 
     extern "C"
10467
 
#  endif
10468
 
   int F77_DUMMY_MAIN() { return 1; }
10469
 
#endif
10470
 
int
10471
 
main ()
10472
 
{
10473
 
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
10474
 
test_array [0] = 0
10475
 
 
10476
 
  ;
10477
 
  return 0;
10478
 
}
10479
 
_ACEOF
10480
 
rm -f conftest.$ac_objext
10481
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482
 
  (eval $ac_compile) 2>&5
10483
 
  ac_status=$?
10484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485
 
  (exit $ac_status); } &&
10486
 
         { ac_try='test -s conftest.$ac_objext'
10487
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488
 
  (eval $ac_try) 2>&5
10489
 
  ac_status=$?
10490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491
 
  (exit $ac_status); }; }; then
10492
 
  ac_hi=$ac_mid
10493
 
else
10494
 
  echo "$as_me: failed program was:" >&5
10495
 
cat conftest.$ac_ext >&5
10496
 
ac_lo=`expr '(' $ac_mid ')' + 1`
10497
 
fi
10498
 
rm -f conftest.$ac_objext conftest.$ac_ext
10499
 
done
10500
 
case $ac_lo in
10501
 
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
10502
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
10503
 
echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
10504
 
   { (exit 1); exit 1; }; } ;;
10505
 
esac
10506
 
else
10507
 
  if test "$cross_compiling" = yes; then
10508
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
10509
 
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10510
 
   { (exit 1); exit 1; }; }
10511
 
else
10512
 
  cat >conftest.$ac_ext <<_ACEOF
10513
 
#line $LINENO "configure"
10514
 
#include "confdefs.h"
10515
 
$ac_includes_default
10516
 
long longval () { return (long) (sizeof (unsigned long)); }
10517
 
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
10518
 
#include <stdio.h>
10519
 
#include <stdlib.h>
10520
 
#ifdef F77_DUMMY_MAIN
10521
 
#  ifdef __cplusplus
10522
 
     extern "C"
10523
 
#  endif
10524
 
   int F77_DUMMY_MAIN() { return 1; }
10525
 
#endif
10526
 
int
10527
 
main ()
10528
 
{
10529
 
 
10530
 
  FILE *f = fopen ("conftest.val", "w");
10531
 
  if (! f)
10532
 
    exit (1);
10533
 
  if (((long) (sizeof (unsigned long))) < 0)
10534
 
    {
10535
 
      long i = longval ();
10536
 
      if (i != ((long) (sizeof (unsigned long))))
10537
 
        exit (1);
10538
 
      fprintf (f, "%ld\n", i);
10539
 
    }
10540
 
  else
10541
 
    {
10542
 
      unsigned long i = ulongval ();
10543
 
      if (i != ((long) (sizeof (unsigned long))))
10544
 
        exit (1);
10545
 
      fprintf (f, "%lu\n", i);
10546
 
    }
10547
 
  exit (ferror (f) || fclose (f) != 0);
10548
 
 
10549
 
  ;
10550
 
  return 0;
10551
 
}
10552
 
_ACEOF
10553
 
rm -f conftest$ac_exeext
10554
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555
 
  (eval $ac_link) 2>&5
10556
 
  ac_status=$?
10557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10559
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560
 
  (eval $ac_try) 2>&5
10561
 
  ac_status=$?
10562
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563
 
  (exit $ac_status); }; }; then
10564
 
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
10565
 
else
10566
 
  echo "$as_me: program exited with status $ac_status" >&5
10567
 
echo "$as_me: failed program was:" >&5
10568
 
cat conftest.$ac_ext >&5
10569
 
( exit $ac_status )
10570
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
10571
 
echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
10572
 
   { (exit 1); exit 1; }; }
10573
 
fi
10574
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10575
 
fi
10576
 
fi
10577
 
rm -f conftest.val
10578
 
else
10579
 
  ac_cv_sizeof_unsigned_long=0
10580
 
fi
10581
 
fi
10582
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
10583
 
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
10584
 
cat >>confdefs.h <<_ACEOF
10585
 
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
10586
 
_ACEOF
10587
 
 
10588
 
 
10589
 
 
10590
 
  echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
10591
 
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
10592
 
  cat >conftest.$ac_ext <<_ACEOF
10593
 
#line $LINENO "configure"
10594
 
#include "confdefs.h"
10595
 
 
10596
 
#ifdef F77_DUMMY_MAIN
10597
 
#  ifdef __cplusplus
10598
 
     extern "C"
10599
 
#  endif
10600
 
   int F77_DUMMY_MAIN() { return 1; }
10601
 
#endif
10602
 
int
10603
 
main ()
10604
 
{
10605
 
 
10606
 
    #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
10607
 
       choke me
10608
 
    #endif
10609
 
 
10610
 
  ;
10611
 
  return 0;
10612
 
}
10613
 
_ACEOF
10614
 
rm -f conftest.$ac_objext
10615
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10616
 
  (eval $ac_compile) 2>&5
10617
 
  ac_status=$?
10618
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619
 
  (exit $ac_status); } &&
10620
 
         { ac_try='test -s conftest.$ac_objext'
10621
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622
 
  (eval $ac_try) 2>&5
10623
 
  ac_status=$?
10624
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625
 
  (exit $ac_status); }; }; then
10626
 
  echo "$as_me:$LINENO: result: yes" >&5
10627
 
echo "${ECHO_T}yes" >&6
10628
 
else
10629
 
  echo "$as_me: failed program was:" >&5
10630
 
cat conftest.$ac_ext >&5
10631
 
 
10632
 
      echo "$as_me:$LINENO: result: no" >&5
10633
 
echo "${ECHO_T}no" >&6
10634
 
      { { echo "$as_me:$LINENO: error:
10635
 
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
10636
 
       does not apply. Please mail kde-devel@kde.org with a description of your system!
10637
 
      " >&5
10638
 
echo "$as_me: error:
10639
 
       Apparently on your system our assumption sizeof size_t == sizeof unsigned long
10640
 
       does not apply. Please mail kde-devel@kde.org with a description of your system!
10641
 
      " >&2;}
10642
 
   { (exit 1); exit 1; }; }
10643
 
 
10644
 
fi
10645
 
rm -f conftest.$ac_objext conftest.$ac_ext
10646
 
 
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
for ac_func in vsnprintf snprintf
10654
 
do
10655
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10656
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
10657
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10658
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
10659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10660
 
else
10661
 
  cat >conftest.$ac_ext <<_ACEOF
10662
 
#line $LINENO "configure"
10663
 
#include "confdefs.h"
10664
 
/* System header to define __stub macros and hopefully few prototypes,
10665
 
    which can conflict with char $ac_func (); below.  */
10666
 
#include <assert.h>
10667
 
/* Override any gcc2 internal prototype to avoid an error.  */
10668
 
#ifdef __cplusplus
10669
 
extern "C"
10670
 
#endif
10671
 
/* We use char because int might match the return type of a gcc2
10672
 
   builtin and then its argument prototype would still apply.  */
10673
 
char $ac_func ();
10674
 
char (*f) ();
10675
 
 
10676
 
#ifdef F77_DUMMY_MAIN
10677
 
#  ifdef __cplusplus
10678
 
     extern "C"
10679
 
#  endif
10680
 
   int F77_DUMMY_MAIN() { return 1; }
10681
 
#endif
10682
 
int
10683
 
main ()
10684
 
{
10685
 
/* The GNU C library defines this for functions which it implements
10686
 
    to always fail with ENOSYS.  Some functions are actually named
10687
 
    something starting with __ and the normal name is an alias.  */
10688
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10689
 
choke me
10690
 
#else
10691
 
f = $ac_func;
10692
 
#endif
10693
 
 
10694
 
  ;
10695
 
  return 0;
10696
 
}
10697
 
_ACEOF
10698
 
rm -f conftest.$ac_objext conftest$ac_exeext
10699
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700
 
  (eval $ac_link) 2>&5
10701
 
  ac_status=$?
10702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703
 
  (exit $ac_status); } &&
10704
 
         { ac_try='test -s conftest$ac_exeext'
10705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706
 
  (eval $ac_try) 2>&5
10707
 
  ac_status=$?
10708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709
 
  (exit $ac_status); }; }; then
10710
 
  eval "$as_ac_var=yes"
10711
 
else
10712
 
  echo "$as_me: failed program was:" >&5
10713
 
cat conftest.$ac_ext >&5
10714
 
eval "$as_ac_var=no"
10715
 
fi
10716
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10717
 
fi
10718
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10719
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10720
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
10721
 
  cat >>confdefs.h <<_ACEOF
10722
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10723
 
_ACEOF
10724
 
 
10725
 
fi
10726
 
done
10727
 
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
 
 
10733
 
 
10734
 
 
10735
 
 
10736
 
# Check whether --enable-embedded or --disable-embedded was given.
10737
 
if test "${enable_embedded+set}" = set; then
10738
 
  enableval="$enable_embedded"
10739
 
  kde_use_qt_emb=$enableval
10740
 
else
10741
 
  kde_use_qt_emb=no
10742
 
 
10743
 
fi;
10744
 
 
10745
 
# Check whether --enable-qtopia or --disable-qtopia was given.
10746
 
if test "${enable_qtopia+set}" = set; then
10747
 
  enableval="$enable_qtopia"
10748
 
  kde_use_qt_emb_palm=$enableval
10749
 
else
10750
 
  kde_use_qt_emb_palm=no
10751
 
 
10752
 
fi;
10753
 
 
10754
 
if test "$kde_use_qt_emb" = "no"; then
10755
 
 
10756
 
echo "$as_me:$LINENO: checking for X" >&5
10757
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
10758
 
 
10759
 
 
10760
 
ac_ext=c
10761
 
ac_cpp='$CPP $CPPFLAGS'
10762
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10763
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10764
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10765
 
 
10766
 
if test "${kde_cv_have_x+set}" = set; then
10767
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10768
 
else
10769
 
  # One or both of the vars are not set, and there is no cached value.
10770
 
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
10771
 
   kde_x_includes=NO
10772
 
else
10773
 
   kde_x_includes=$x_includes
10774
 
fi
10775
 
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
10776
 
   kde_x_libraries=NO
10777
 
else
10778
 
   kde_x_libraries=$x_libraries
10779
 
fi
10780
 
 
10781
 
# below we use the standard autoconf calls
10782
 
ac_x_libraries=$kde_x_libraries
10783
 
ac_x_includes=$kde_x_includes
10784
 
 
10785
 
 
10786
 
 
10787
 
 
10788
 
if test "$ac_x_includes" = NO; then
10789
 
  # Guess where to find include files, by looking for this one X11 .h file.
10790
 
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10791
 
 
10792
 
  # First, try using that file with no special directory specified.
10793
 
cat >conftest.$ac_ext <<_ACEOF
10794
 
#line $LINENO "configure"
10795
 
#include "confdefs.h"
10796
 
#include <$x_direct_test_include>
10797
 
_ACEOF
10798
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10799
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10800
 
  ac_status=$?
10801
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
10802
 
  rm -f conftest.er1
10803
 
  cat conftest.err >&5
10804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805
 
  (exit $ac_status); } >/dev/null; then
10806
 
  if test -s conftest.err; then
10807
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10808
 
  else
10809
 
    ac_cpp_err=
10810
 
  fi
10811
 
else
10812
 
  ac_cpp_err=yes
10813
 
fi
10814
 
if test -z "$ac_cpp_err"; then
10815
 
  # We can compile using X headers with no special include directory.
10816
 
ac_x_includes=
10817
 
else
10818
 
  echo "$as_me: failed program was:" >&5
10819
 
  cat conftest.$ac_ext >&5
10820
 
  # Look for the header file in a standard set of common directories.
10821
 
# Check X11 before X11Rn because it is often a symlink to the current release.
10822
 
  for ac_dir in               \
10823
 
    /usr/X11/include          \
10824
 
    /usr/X11R6/include        \
10825
 
    /usr/X11R5/include        \
10826
 
    /usr/X11R4/include        \
10827
 
                              \
10828
 
    /usr/include/X11          \
10829
 
    /usr/include/X11R6        \
10830
 
    /usr/include/X11R5        \
10831
 
    /usr/include/X11R4        \
10832
 
                              \
10833
 
    /usr/local/X11/include    \
10834
 
    /usr/local/X11R6/include  \
10835
 
    /usr/local/X11R5/include  \
10836
 
    /usr/local/X11R4/include  \
10837
 
                              \
10838
 
    /usr/local/include/X11    \
10839
 
    /usr/local/include/X11R6  \
10840
 
    /usr/local/include/X11R5  \
10841
 
    /usr/local/include/X11R4  \
10842
 
                              \
10843
 
    /usr/X386/include         \
10844
 
    /usr/x386/include         \
10845
 
    /usr/XFree86/include/X11  \
10846
 
                              \
10847
 
    /usr/include              \
10848
 
    /usr/local/include        \
10849
 
    /usr/unsupported/include  \
10850
 
    /usr/athena/include       \
10851
 
    /usr/local/x11r5/include  \
10852
 
    /usr/lpp/Xamples/include  \
10853
 
                              \
10854
 
    /usr/openwin/include      \
10855
 
    /usr/openwin/share/include \
10856
 
    ; \
10857
 
  do
10858
 
    if test -r "$ac_dir/$x_direct_test_include"; then
10859
 
      ac_x_includes=$ac_dir
10860
 
      break
10861
 
    fi
10862
 
  done
10863
 
fi
10864
 
rm -f conftest.err conftest.$ac_ext
10865
 
fi # $ac_x_includes = NO
10866
 
 
10867
 
if test "$ac_x_libraries" = NO; then
10868
 
  # Check for the libraries.
10869
 
 
10870
 
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
10871
 
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10872
 
 
10873
 
  # See if we find them without any special options.
10874
 
  # Don't add to $LIBS permanently.
10875
 
  ac_save_LIBS="$LIBS"
10876
 
  LIBS="-l$x_direct_test_library $LIBS"
10877
 
cat >conftest.$ac_ext <<_ACEOF
10878
 
#line $LINENO "configure"
10879
 
#include "confdefs.h"
10880
 
 
10881
 
#ifdef F77_DUMMY_MAIN
10882
 
#  ifdef __cplusplus
10883
 
     extern "C"
10884
 
#  endif
10885
 
   int F77_DUMMY_MAIN() { return 1; }
10886
 
#endif
10887
 
int
10888
 
main ()
10889
 
{
10890
 
${x_direct_test_function}()
10891
 
  ;
10892
 
  return 0;
10893
 
}
10894
 
_ACEOF
10895
 
rm -f conftest.$ac_objext conftest$ac_exeext
10896
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897
 
  (eval $ac_link) 2>&5
10898
 
  ac_status=$?
10899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900
 
  (exit $ac_status); } &&
10901
 
         { ac_try='test -s conftest$ac_exeext'
10902
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903
 
  (eval $ac_try) 2>&5
10904
 
  ac_status=$?
10905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906
 
  (exit $ac_status); }; }; then
10907
 
  LIBS="$ac_save_LIBS"
10908
 
# We can link X programs with no special library path.
10909
 
ac_x_libraries=
10910
 
else
10911
 
  echo "$as_me: failed program was:" >&5
10912
 
cat conftest.$ac_ext >&5
10913
 
LIBS="$ac_save_LIBS"
10914
 
# First see if replacing the include by lib works.
10915
 
# Check X11 before X11Rn because it is often a symlink to the current release.
10916
 
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
10917
 
    /usr/X11/lib${kdelibsuff}           \
10918
 
    /usr/X11R6/lib${kdelibsuff}         \
10919
 
    /usr/X11R5/lib${kdelibsuff}         \
10920
 
    /usr/X11R4/lib${kdelibsuff}         \
10921
 
                                        \
10922
 
    /usr/lib${kdelibsuff}/X11           \
10923
 
    /usr/lib${kdelibsuff}/X11R6         \
10924
 
    /usr/lib${kdelibsuff}/X11R5         \
10925
 
    /usr/lib${kdelibsuff}/X11R4         \
10926
 
                                        \
10927
 
    /usr/local/X11/lib${kdelibsuff}     \
10928
 
    /usr/local/X11R6/lib${kdelibsuff}   \
10929
 
    /usr/local/X11R5/lib${kdelibsuff}   \
10930
 
    /usr/local/X11R4/lib${kdelibsuff}   \
10931
 
                                        \
10932
 
    /usr/local/lib${kdelibsuff}/X11     \
10933
 
    /usr/local/lib${kdelibsuff}/X11R6   \
10934
 
    /usr/local/lib${kdelibsuff}/X11R5   \
10935
 
    /usr/local/lib${kdelibsuff}/X11R4   \
10936
 
                                        \
10937
 
    /usr/X386/lib${kdelibsuff}          \
10938
 
    /usr/x386/lib${kdelibsuff}          \
10939
 
    /usr/XFree86/lib${kdelibsuff}/X11   \
10940
 
                                        \
10941
 
    /usr/lib${kdelibsuff}               \
10942
 
    /usr/local/lib${kdelibsuff}         \
10943
 
    /usr/unsupported/lib${kdelibsuff}   \
10944
 
    /usr/athena/lib${kdelibsuff}        \
10945
 
    /usr/local/x11r5/lib${kdelibsuff}   \
10946
 
    /usr/lpp/Xamples/lib${kdelibsuff}   \
10947
 
    /lib/usr/lib${kdelibsuff}/X11       \
10948
 
                                        \
10949
 
    /usr/openwin/lib${kdelibsuff}       \
10950
 
    /usr/openwin/share/lib${kdelibsuff} \
10951
 
    ; \
10952
 
do
10953
 
  for ac_extension in a so sl; do
10954
 
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10955
 
      ac_x_libraries=$ac_dir
10956
 
      break 2
10957
 
    fi
10958
 
  done
10959
 
done
10960
 
fi
10961
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10962
 
fi # $ac_x_libraries = NO
10963
 
 
10964
 
case "$host" in
10965
 
mips-sgi-irix6*)
10966
 
  ;;
10967
 
*-*-solaris*)
10968
 
  ;;
10969
 
*)
10970
 
  rm -fr conftest.dir
10971
 
if mkdir conftest.dir; then
10972
 
  cd conftest.dir
10973
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10974
 
  cat >Imakefile <<'_ACEOF'
10975
 
acfindx:
10976
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10977
 
_ACEOF
10978
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10979
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10980
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10981
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10982
 
    for ac_extension in a so sl; do
10983
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10984
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
10985
 
        ac_im_usrlibdir=$ac_im_libdir; break
10986
 
      fi
10987
 
    done
10988
 
    # Screen out bogus values from the imake configuration.  They are
10989
 
    # bogus both because they are the default anyway, and because
10990
 
    # using them would break gcc on systems where it needs fixed includes.
10991
 
    case $ac_im_incroot in
10992
 
        /usr/include) ;;
10993
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10994
 
    esac
10995
 
    case $ac_im_usrlibdir in
10996
 
        /usr/lib | /lib) ;;
10997
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10998
 
    esac
10999
 
  fi
11000
 
  cd ..
11001
 
  rm -fr conftest.dir
11002
 
fi
11003
 
 
11004
 
  if test -z "$ac_x_includes"; then
11005
 
    ac_x_includes="."
11006
 
  fi
11007
 
  if test -z "$ac_x_libraries"; then
11008
 
    ac_x_libraries="/usr/lib${kdelibsuff}"
11009
 
  fi
11010
 
esac
11011
 
#from now on we use our own again
11012
 
 
11013
 
# when the user already gave --x-includes, we ignore
11014
 
# what the standard autoconf macros told us.
11015
 
if test "$kde_x_includes" = NO; then
11016
 
  kde_x_includes=$ac_x_includes
11017
 
fi
11018
 
 
11019
 
# for --x-libraries too
11020
 
if test "$kde_x_libraries" = NO; then
11021
 
  kde_x_libraries=$ac_x_libraries
11022
 
fi
11023
 
 
11024
 
if test "$kde_x_includes" = NO; then
11025
 
  { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
11026
 
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
11027
 
   { (exit 1); exit 1; }; }
11028
 
fi
11029
 
 
11030
 
if test "$kde_x_libraries" = NO; then
11031
 
  { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
11032
 
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
11033
 
   { (exit 1); exit 1; }; }
11034
 
fi
11035
 
 
11036
 
# Record where we found X for the cache.
11037
 
kde_cv_have_x="have_x=yes \
11038
 
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
11039
 
 
11040
 
fi
11041
 
 
11042
 
eval "$kde_cv_have_x"
11043
 
 
11044
 
if test "$have_x" != yes; then
11045
 
  echo "$as_me:$LINENO: result: $have_x" >&5
11046
 
echo "${ECHO_T}$have_x" >&6
11047
 
  no_x=yes
11048
 
else
11049
 
  echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
11050
 
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
11051
 
fi
11052
 
 
11053
 
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
11054
 
  X_INCLUDES=""
11055
 
  x_includes=".";  else
11056
 
  x_includes=$kde_x_includes
11057
 
  X_INCLUDES="-I$x_includes"
11058
 
fi
11059
 
 
11060
 
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
11061
 
  X_LDFLAGS=""
11062
 
  x_libraries="/usr/lib";  else
11063
 
  x_libraries=$kde_x_libraries
11064
 
  X_LDFLAGS="-L$x_libraries"
11065
 
fi
11066
 
all_includes="$X_INCLUDES"
11067
 
all_libraries="$X_LDFLAGS"
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
# Check for libraries that X11R6 Xt/Xaw programs need.
11075
 
ac_save_LDFLAGS="$LDFLAGS"
11076
 
LDFLAGS="$LDFLAGS $X_LDFLAGS"
11077
 
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11078
 
# check for ICE first), but we must link in the order -lSM -lICE or
11079
 
# we get undefined symbols.  So assume we have SM if we have ICE.
11080
 
# These have to be linked with before -lX11, unlike the other
11081
 
# libraries we check for below, so use a different variable.
11082
 
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11083
 
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11084
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11085
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11086
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11087
 
else
11088
 
  ac_check_lib_save_LIBS=$LIBS
11089
 
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11090
 
cat >conftest.$ac_ext <<_ACEOF
11091
 
#line $LINENO "configure"
11092
 
#include "confdefs.h"
11093
 
 
11094
 
/* Override any gcc2 internal prototype to avoid an error.  */
11095
 
#ifdef __cplusplus
11096
 
extern "C"
11097
 
#endif
11098
 
/* We use char because int might match the return type of a gcc2
11099
 
   builtin and then its argument prototype would still apply.  */
11100
 
char IceConnectionNumber ();
11101
 
#ifdef F77_DUMMY_MAIN
11102
 
#  ifdef __cplusplus
11103
 
     extern "C"
11104
 
#  endif
11105
 
   int F77_DUMMY_MAIN() { return 1; }
11106
 
#endif
11107
 
int
11108
 
main ()
11109
 
{
11110
 
IceConnectionNumber ();
11111
 
  ;
11112
 
  return 0;
11113
 
}
11114
 
_ACEOF
11115
 
rm -f conftest.$ac_objext conftest$ac_exeext
11116
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117
 
  (eval $ac_link) 2>&5
11118
 
  ac_status=$?
11119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120
 
  (exit $ac_status); } &&
11121
 
         { ac_try='test -s conftest$ac_exeext'
11122
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123
 
  (eval $ac_try) 2>&5
11124
 
  ac_status=$?
11125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126
 
  (exit $ac_status); }; }; then
11127
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
11128
 
else
11129
 
  echo "$as_me: failed program was:" >&5
11130
 
cat conftest.$ac_ext >&5
11131
 
ac_cv_lib_ICE_IceConnectionNumber=no
11132
 
fi
11133
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11134
 
LIBS=$ac_check_lib_save_LIBS
11135
 
fi
11136
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11137
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11138
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11139
 
  LIBSM="-lSM -lICE"
11140
 
fi
11141
 
 
11142
 
 
11143
 
LDFLAGS="$ac_save_LDFLAGS"
11144
 
 
11145
 
 
11146
 
 
11147
 
LIB_X11='-lX11 $(LIBSOCKET)'
11148
 
 
11149
 
 
11150
 
echo "$as_me:$LINENO: checking for libXext" >&5
11151
 
echo $ECHO_N "checking for libXext... $ECHO_C" >&6
11152
 
if test "${kde_cv_have_libXext+set}" = set; then
11153
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11154
 
else
11155
 
 
11156
 
kde_ldflags_safe="$LDFLAGS"
11157
 
kde_libs_safe="$LIBS"
11158
 
 
11159
 
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
11160
 
LIBS="-lXext -lX11 $LIBSOCKET"
11161
 
 
11162
 
cat >conftest.$ac_ext <<_ACEOF
11163
 
#line $LINENO "configure"
11164
 
#include "confdefs.h"
11165
 
 
11166
 
#include <stdio.h>
11167
 
#ifdef STDC_HEADERS
11168
 
# include <stdlib.h>
11169
 
#endif
11170
 
 
11171
 
#ifdef F77_DUMMY_MAIN
11172
 
#  ifdef __cplusplus
11173
 
     extern "C"
11174
 
#  endif
11175
 
   int F77_DUMMY_MAIN() { return 1; }
11176
 
#endif
11177
 
int
11178
 
main ()
11179
 
{
11180
 
 
11181
 
printf("hello Xext\n");
11182
 
 
11183
 
  ;
11184
 
  return 0;
11185
 
}
11186
 
_ACEOF
11187
 
rm -f conftest.$ac_objext conftest$ac_exeext
11188
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189
 
  (eval $ac_link) 2>&5
11190
 
  ac_status=$?
11191
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192
 
  (exit $ac_status); } &&
11193
 
         { ac_try='test -s conftest$ac_exeext'
11194
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195
 
  (eval $ac_try) 2>&5
11196
 
  ac_status=$?
11197
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198
 
  (exit $ac_status); }; }; then
11199
 
  kde_cv_have_libXext=yes
11200
 
else
11201
 
  echo "$as_me: failed program was:" >&5
11202
 
cat conftest.$ac_ext >&5
11203
 
kde_cv_have_libXext=no
11204
 
 
11205
 
fi
11206
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11207
 
 
11208
 
LDFLAGS=$kde_ldflags_safe
11209
 
LIBS=$kde_libs_safe
11210
 
 
11211
 
fi
11212
 
 
11213
 
 
11214
 
echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
11215
 
echo "${ECHO_T}$kde_cv_have_libXext" >&6
11216
 
 
11217
 
if test "$kde_cv_have_libXext" = "no"; then
11218
 
  { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
11219
 
can't find it itself, we stop here assuming that make wouldn't find
11220
 
them either." >&5
11221
 
echo "$as_me: error: We need a working libXext to proceed. Since configure
11222
 
can't find it itself, we stop here assuming that make wouldn't find
11223
 
them either." >&2;}
11224
 
   { (exit 1); exit 1; }; }
11225
 
fi
11226
 
 
11227
 
LIB_XEXT="-lXext"
11228
 
QTE_NORTTI=""
11229
 
 
11230
 
else
11231
 
    CPPFLAGS=-DQWS
11232
 
  CXXFLAGS="$CXXFLAGS -fno-rtti"
11233
 
  QTE_NORTTI="-fno-rtti -DQWS"
11234
 
  X_PRE_LIBS=""
11235
 
  LIB_X11=""
11236
 
  LIB_XEXT=""
11237
 
  LIBSM=""
11238
 
  X_INCLUDES=""
11239
 
  X_LDFLAGS=""
11240
 
  x_includes=""
11241
 
  x_libraries=""
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
fi
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
 
ac_ext=c
11255
 
ac_cpp='$CPP $CPPFLAGS'
11256
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11257
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11258
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11259
 
 
11260
 
 
11261
 
 
11262
 
 
11263
 
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11264
 
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
11265
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
11266
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11267
 
else
11268
 
  ac_check_lib_save_LIBS=$LIBS
11269
 
LIBS="-lpthread  $LIBS"
11270
 
cat >conftest.$ac_ext <<_ACEOF
11271
 
#line $LINENO "configure"
11272
 
#include "confdefs.h"
11273
 
 
11274
 
/* Override any gcc2 internal prototype to avoid an error.  */
11275
 
#ifdef __cplusplus
11276
 
extern "C"
11277
 
#endif
11278
 
/* We use char because int might match the return type of a gcc2
11279
 
   builtin and then its argument prototype would still apply.  */
11280
 
char pthread_create ();
11281
 
#ifdef F77_DUMMY_MAIN
11282
 
#  ifdef __cplusplus
11283
 
     extern "C"
11284
 
#  endif
11285
 
   int F77_DUMMY_MAIN() { return 1; }
11286
 
#endif
11287
 
int
11288
 
main ()
11289
 
{
11290
 
pthread_create ();
11291
 
  ;
11292
 
  return 0;
11293
 
}
11294
 
_ACEOF
11295
 
rm -f conftest.$ac_objext conftest$ac_exeext
11296
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297
 
  (eval $ac_link) 2>&5
11298
 
  ac_status=$?
11299
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300
 
  (exit $ac_status); } &&
11301
 
         { ac_try='test -s conftest$ac_exeext'
11302
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303
 
  (eval $ac_try) 2>&5
11304
 
  ac_status=$?
11305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306
 
  (exit $ac_status); }; }; then
11307
 
  ac_cv_lib_pthread_pthread_create=yes
11308
 
else
11309
 
  echo "$as_me: failed program was:" >&5
11310
 
cat conftest.$ac_ext >&5
11311
 
ac_cv_lib_pthread_pthread_create=no
11312
 
fi
11313
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11314
 
LIBS=$ac_check_lib_save_LIBS
11315
 
fi
11316
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
11317
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
11318
 
if test $ac_cv_lib_pthread_pthread_create = yes; then
11319
 
  LIBPTHREAD="-lpthread"
11320
 
fi
11321
 
 
11322
 
 
11323
 
 
11324
 
 
11325
 
    # Check whether --enable-kernel-threads or --disable-kernel-threads was given.
11326
 
if test "${enable_kernel_threads+set}" = set; then
11327
 
  enableval="$enable_kernel_threads"
11328
 
  kde_use_kernthreads=$enableval
11329
 
else
11330
 
  kde_use_kernthreads=no
11331
 
fi;
11332
 
 
11333
 
    if test "$kde_use_kernthreads" = "yes"; then
11334
 
      ac_save_CXXFLAGS="$CXXFLAGS"
11335
 
      ac_save_CFLAGS="$CFLAGS"
11336
 
      CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
11337
 
      CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
11338
 
 
11339
 
for ac_header in pthread/linuxthreads/pthread.h
11340
 
do
11341
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11342
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11343
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11344
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11345
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11347
 
fi
11348
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11349
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11350
 
else
11351
 
  # Is the header compilable?
11352
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11353
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11354
 
cat >conftest.$ac_ext <<_ACEOF
11355
 
#line $LINENO "configure"
11356
 
#include "confdefs.h"
11357
 
$ac_includes_default
11358
 
#include <$ac_header>
11359
 
_ACEOF
11360
 
rm -f conftest.$ac_objext
11361
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362
 
  (eval $ac_compile) 2>&5
11363
 
  ac_status=$?
11364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365
 
  (exit $ac_status); } &&
11366
 
         { ac_try='test -s conftest.$ac_objext'
11367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368
 
  (eval $ac_try) 2>&5
11369
 
  ac_status=$?
11370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371
 
  (exit $ac_status); }; }; then
11372
 
  ac_header_compiler=yes
11373
 
else
11374
 
  echo "$as_me: failed program was:" >&5
11375
 
cat conftest.$ac_ext >&5
11376
 
ac_header_compiler=no
11377
 
fi
11378
 
rm -f conftest.$ac_objext conftest.$ac_ext
11379
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380
 
echo "${ECHO_T}$ac_header_compiler" >&6
11381
 
 
11382
 
# Is the header present?
11383
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11385
 
cat >conftest.$ac_ext <<_ACEOF
11386
 
#line $LINENO "configure"
11387
 
#include "confdefs.h"
11388
 
#include <$ac_header>
11389
 
_ACEOF
11390
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11391
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11392
 
  ac_status=$?
11393
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
11394
 
  rm -f conftest.er1
11395
 
  cat conftest.err >&5
11396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397
 
  (exit $ac_status); } >/dev/null; then
11398
 
  if test -s conftest.err; then
11399
 
    ac_cpp_err=$ac_c_preproc_warn_flag
11400
 
  else
11401
 
    ac_cpp_err=
11402
 
  fi
11403
 
else
11404
 
  ac_cpp_err=yes
11405
 
fi
11406
 
if test -z "$ac_cpp_err"; then
11407
 
  ac_header_preproc=yes
11408
 
else
11409
 
  echo "$as_me: failed program was:" >&5
11410
 
  cat conftest.$ac_ext >&5
11411
 
  ac_header_preproc=no
11412
 
fi
11413
 
rm -f conftest.err conftest.$ac_ext
11414
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11415
 
echo "${ECHO_T}$ac_header_preproc" >&6
11416
 
 
11417
 
# So?  What about this header?
11418
 
case $ac_header_compiler:$ac_header_preproc in
11419
 
  yes:no )
11420
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11421
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11422
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11423
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11424
 
  no:yes )
11425
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11426
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11427
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11428
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11429
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11430
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11431
 
esac
11432
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
11433
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11436
 
else
11437
 
  eval "$as_ac_Header=$ac_header_preproc"
11438
 
fi
11439
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11440
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11441
 
 
11442
 
fi
11443
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444
 
  cat >>confdefs.h <<_ACEOF
11445
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11446
 
_ACEOF
11447
 
 
11448
 
fi
11449
 
 
11450
 
done
11451
 
 
11452
 
      CXXFLAGS="$ac_save_CXXFLAGS"
11453
 
      CFLAGS="$ac_save_CFLAGS"
11454
 
      if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
11455
 
        kde_use_kernthreads=no
11456
 
      else
11457
 
                echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
11458
 
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6
11459
 
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
11460
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11461
 
else
11462
 
  ac_check_lib_save_LIBS=$LIBS
11463
 
LIBS="-llthread  $LIBS"
11464
 
cat >conftest.$ac_ext <<_ACEOF
11465
 
#line $LINENO "configure"
11466
 
#include "confdefs.h"
11467
 
 
11468
 
/* Override any gcc2 internal prototype to avoid an error.  */
11469
 
#ifdef __cplusplus
11470
 
extern "C"
11471
 
#endif
11472
 
/* We use char because int might match the return type of a gcc2
11473
 
   builtin and then its argument prototype would still apply.  */
11474
 
char pthread_join ();
11475
 
#ifdef F77_DUMMY_MAIN
11476
 
#  ifdef __cplusplus
11477
 
     extern "C"
11478
 
#  endif
11479
 
   int F77_DUMMY_MAIN() { return 1; }
11480
 
#endif
11481
 
int
11482
 
main ()
11483
 
{
11484
 
pthread_join ();
11485
 
  ;
11486
 
  return 0;
11487
 
}
11488
 
_ACEOF
11489
 
rm -f conftest.$ac_objext conftest$ac_exeext
11490
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491
 
  (eval $ac_link) 2>&5
11492
 
  ac_status=$?
11493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494
 
  (exit $ac_status); } &&
11495
 
         { ac_try='test -s conftest$ac_exeext'
11496
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497
 
  (eval $ac_try) 2>&5
11498
 
  ac_status=$?
11499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500
 
  (exit $ac_status); }; }; then
11501
 
  ac_cv_lib_lthread_pthread_join=yes
11502
 
else
11503
 
  echo "$as_me: failed program was:" >&5
11504
 
cat conftest.$ac_ext >&5
11505
 
ac_cv_lib_lthread_pthread_join=no
11506
 
fi
11507
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11508
 
LIBS=$ac_check_lib_save_LIBS
11509
 
fi
11510
 
echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
11511
 
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6
11512
 
if test $ac_cv_lib_lthread_pthread_join = yes; then
11513
 
  LIBPTHREAD="-llthread -llgcc_r"
11514
 
fi
11515
 
         if test "x$LIBPTHREAD" = "x"; then
11516
 
          kde_use_kernthreads=no
11517
 
        else
11518
 
          USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
11519
 
        fi
11520
 
      fi
11521
 
    else
11522
 
      USE_THREADS=""
11523
 
      if test -z "$LIBPTHREAD"; then
11524
 
 
11525
 
echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
11526
 
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
11527
 
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
11528
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
11529
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11530
 
else
11531
 
 
11532
 
 
11533
 
 
11534
 
   ac_ext=cc
11535
 
ac_cpp='$CXXCPP $CPPFLAGS'
11536
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11539
 
 
11540
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11541
 
 
11542
 
 
11543
 
  save_CXXFLAGS="$CXXFLAGS"
11544
 
  CXXFLAGS="$CXXFLAGS -pthread"
11545
 
  cat >conftest.$ac_ext <<_ACEOF
11546
 
#line $LINENO "configure"
11547
 
#include "confdefs.h"
11548
 
 
11549
 
#ifdef F77_DUMMY_MAIN
11550
 
#  ifdef __cplusplus
11551
 
     extern "C"
11552
 
#  endif
11553
 
   int F77_DUMMY_MAIN() { return 1; }
11554
 
#endif
11555
 
int
11556
 
main ()
11557
 
{
11558
 
 return 0;
11559
 
  ;
11560
 
  return 0;
11561
 
}
11562
 
_ACEOF
11563
 
rm -f conftest.$ac_objext conftest$ac_exeext
11564
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565
 
  (eval $ac_link) 2>&5
11566
 
  ac_status=$?
11567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568
 
  (exit $ac_status); } &&
11569
 
         { ac_try='test -s conftest$ac_exeext'
11570
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571
 
  (eval $ac_try) 2>&5
11572
 
  ac_status=$?
11573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574
 
  (exit $ac_status); }; }; then
11575
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
11576
 
else
11577
 
  echo "$as_me: failed program was:" >&5
11578
 
cat conftest.$ac_ext >&5
11579
 
fi
11580
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11581
 
  CXXFLAGS="$save_CXXFLAGS"
11582
 
  ac_ext=c
11583
 
ac_cpp='$CPP $CPPFLAGS'
11584
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11587
 
 
11588
 
 
11589
 
fi
11590
 
 
11591
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
11592
 
 echo "$as_me:$LINENO: result: yes" >&5
11593
 
echo "${ECHO_T}yes" >&6
11594
 
 :
11595
 
 USE_THREADS="-pthread"
11596
 
else
11597
 
 echo "$as_me:$LINENO: result: no" >&5
11598
 
echo "${ECHO_T}no" >&6
11599
 
 :
11600
 
 
11601
 
fi
11602
 
 
11603
 
      fi
11604
 
    fi
11605
 
 
11606
 
 
11607
 
 
11608
 
    case $host_os in
11609
 
        solaris*)
11610
 
 
11611
 
echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
11612
 
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
11613
 
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
11614
 
if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
11615
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11616
 
else
11617
 
 
11618
 
 
11619
 
 
11620
 
   ac_ext=cc
11621
 
ac_cpp='$CXXCPP $CPPFLAGS'
11622
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11625
 
 
11626
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11627
 
 
11628
 
 
11629
 
  save_CXXFLAGS="$CXXFLAGS"
11630
 
  CXXFLAGS="$CXXFLAGS -mt"
11631
 
  cat >conftest.$ac_ext <<_ACEOF
11632
 
#line $LINENO "configure"
11633
 
#include "confdefs.h"
11634
 
 
11635
 
#ifdef F77_DUMMY_MAIN
11636
 
#  ifdef __cplusplus
11637
 
     extern "C"
11638
 
#  endif
11639
 
   int F77_DUMMY_MAIN() { return 1; }
11640
 
#endif
11641
 
int
11642
 
main ()
11643
 
{
11644
 
 return 0;
11645
 
  ;
11646
 
  return 0;
11647
 
}
11648
 
_ACEOF
11649
 
rm -f conftest.$ac_objext conftest$ac_exeext
11650
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11651
 
  (eval $ac_link) 2>&5
11652
 
  ac_status=$?
11653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
 
  (exit $ac_status); } &&
11655
 
         { ac_try='test -s conftest$ac_exeext'
11656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657
 
  (eval $ac_try) 2>&5
11658
 
  ac_status=$?
11659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660
 
  (exit $ac_status); }; }; then
11661
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
11662
 
else
11663
 
  echo "$as_me: failed program was:" >&5
11664
 
cat conftest.$ac_ext >&5
11665
 
fi
11666
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667
 
  CXXFLAGS="$save_CXXFLAGS"
11668
 
  ac_ext=c
11669
 
ac_cpp='$CPP $CPPFLAGS'
11670
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673
 
 
11674
 
 
11675
 
fi
11676
 
 
11677
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
11678
 
 echo "$as_me:$LINENO: result: yes" >&5
11679
 
echo "${ECHO_T}yes" >&6
11680
 
 :
11681
 
 USE_THREADS="-mt"
11682
 
else
11683
 
 echo "$as_me:$LINENO: result: no" >&5
11684
 
echo "${ECHO_T}no" >&6
11685
 
 :
11686
 
 
11687
 
fi
11688
 
 
11689
 
                CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
11690
 
                ;;
11691
 
        freebsd*)
11692
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
11693
 
                ;;
11694
 
        aix*)
11695
 
                CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
11696
 
                LIBPTHREAD="$LIBPTHREAD -lc_r"
11697
 
                ;;
11698
 
        linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11699
 
                if test "$CXX" = "KCC"; then
11700
 
                  CXXFLAGS="$CXXFLAGS --thread_safe"
11701
 
                  NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
11702
 
                fi
11703
 
                ;;
11704
 
        *)
11705
 
                ;;
11706
 
    esac
11707
 
 
11708
 
 
11709
 
 
11710
 
 
11711
 
echo "$as_me:$LINENO: checking for extra includes" >&5
11712
 
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
11713
 
 
11714
 
# Check whether --with-extra-includes or --without-extra-includes was given.
11715
 
if test "${with_extra_includes+set}" = set; then
11716
 
  withval="$with_extra_includes"
11717
 
  kde_use_extra_includes="$withval"
11718
 
else
11719
 
  kde_use_extra_includes=NONE
11720
 
 
11721
 
fi;
11722
 
kde_extra_includes=
11723
 
if test -n "$kde_use_extra_includes" && \
11724
 
   test "$kde_use_extra_includes" != "NONE"; then
11725
 
 
11726
 
   ac_save_ifs=$IFS
11727
 
   IFS=':'
11728
 
   for dir in $kde_use_extra_includes; do
11729
 
     kde_extra_includes="$kde_extra_includes $dir"
11730
 
     USER_INCLUDES="$USER_INCLUDES -I$dir"
11731
 
   done
11732
 
   IFS=$ac_save_ifs
11733
 
   kde_use_extra_includes="added"
11734
 
else
11735
 
   kde_use_extra_includes="no"
11736
 
fi
11737
 
 
11738
 
 
11739
 
echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
11740
 
echo "${ECHO_T}$kde_use_extra_includes" >&6
11741
 
 
11742
 
kde_extra_libs=
11743
 
echo "$as_me:$LINENO: checking for extra libs" >&5
11744
 
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
11745
 
 
11746
 
# Check whether --with-extra-libs or --without-extra-libs was given.
11747
 
if test "${with_extra_libs+set}" = set; then
11748
 
  withval="$with_extra_libs"
11749
 
  kde_use_extra_libs=$withval
11750
 
else
11751
 
  kde_use_extra_libs=NONE
11752
 
 
11753
 
fi;
11754
 
if test -n "$kde_use_extra_libs" && \
11755
 
   test "$kde_use_extra_libs" != "NONE"; then
11756
 
 
11757
 
   ac_save_ifs=$IFS
11758
 
   IFS=':'
11759
 
   for dir in $kde_use_extra_libs; do
11760
 
     kde_extra_libs="$kde_extra_libs $dir"
11761
 
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
11762
 
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
11763
 
   done
11764
 
   IFS=$ac_save_ifs
11765
 
   kde_use_extra_libs="added"
11766
 
else
11767
 
   kde_use_extra_libs="no"
11768
 
fi
11769
 
 
11770
 
 
11771
 
 
11772
 
echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
11773
 
echo "${ECHO_T}$kde_use_extra_libs" >&6
11774
 
 
11775
 
 
11776
 
 
11777
 
 
11778
 
echo "$as_me:$LINENO: checking for libz" >&5
11779
 
echo $ECHO_N "checking for libz... $ECHO_C" >&6
11780
 
if test "${ac_cv_lib_z+set}" = set; then
11781
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11782
 
else
11783
 
 
11784
 
ac_ext=c
11785
 
ac_cpp='$CPP $CPPFLAGS'
11786
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11787
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11788
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11789
 
 
11790
 
kde_save_LIBS="$LIBS"
11791
 
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
11792
 
kde_save_CFLAGS="$CFLAGS"
11793
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
11794
 
cat >conftest.$ac_ext <<_ACEOF
11795
 
#line $LINENO "configure"
11796
 
#include "confdefs.h"
11797
 
 
11798
 
#include<zlib.h>
11799
 
 
11800
 
#ifdef F77_DUMMY_MAIN
11801
 
#  ifdef __cplusplus
11802
 
     extern "C"
11803
 
#  endif
11804
 
   int F77_DUMMY_MAIN() { return 1; }
11805
 
#endif
11806
 
int
11807
 
main ()
11808
 
{
11809
 
return (zlibVersion() == ZLIB_VERSION);
11810
 
  ;
11811
 
  return 0;
11812
 
}
11813
 
_ACEOF
11814
 
rm -f conftest.$ac_objext conftest$ac_exeext
11815
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816
 
  (eval $ac_link) 2>&5
11817
 
  ac_status=$?
11818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819
 
  (exit $ac_status); } &&
11820
 
         { ac_try='test -s conftest$ac_exeext'
11821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822
 
  (eval $ac_try) 2>&5
11823
 
  ac_status=$?
11824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825
 
  (exit $ac_status); }; }; then
11826
 
  eval "ac_cv_lib_z='-lz'"
11827
 
else
11828
 
  echo "$as_me: failed program was:" >&5
11829
 
cat conftest.$ac_ext >&5
11830
 
eval "ac_cv_lib_z=no"
11831
 
fi
11832
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11833
 
LIBS="$kde_save_LIBS"
11834
 
CFLAGS="$kde_save_CFLAGS"
11835
 
 
11836
 
fi
11837
 
if test ! "$ac_cv_lib_z" = no; then
11838
 
 
11839
 
cat >>confdefs.h <<_ACEOF
11840
 
#define HAVE_LIBZ 1
11841
 
_ACEOF
11842
 
 
11843
 
  LIBZ="$ac_cv_lib_z"
11844
 
 
11845
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
11846
 
echo "${ECHO_T}$ac_cv_lib_z" >&6
11847
 
else
11848
 
  { { echo "$as_me:$LINENO: error: not found. Check your installation and look into config.log" >&5
11849
 
echo "$as_me: error: not found. Check your installation and look into config.log" >&2;}
11850
 
   { (exit 1); exit 1; }; }
11851
 
  LIBZ=""
11852
 
 
11853
 
fi
11854
 
 
11855
 
 
11856
 
 
11857
 
 
11858
 
echo "$as_me:$LINENO: checking for libpng" >&5
11859
 
echo $ECHO_N "checking for libpng... $ECHO_C" >&6
11860
 
if test "${ac_cv_lib_png+set}" = set; then
11861
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11862
 
else
11863
 
 
11864
 
kde_save_LIBS="$LIBS"
11865
 
if test "x$kde_use_qt_emb" != "xyes"; then
11866
 
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
11867
 
else
11868
 
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
11869
 
fi
11870
 
kde_save_CFLAGS="$CFLAGS"
11871
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
11872
 
ac_ext=c
11873
 
ac_cpp='$CPP $CPPFLAGS'
11874
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877
 
 
11878
 
cat >conftest.$ac_ext <<_ACEOF
11879
 
#line $LINENO "configure"
11880
 
#include "confdefs.h"
11881
 
 
11882
 
    #include<png.h>
11883
 
 
11884
 
#ifdef F77_DUMMY_MAIN
11885
 
#  ifdef __cplusplus
11886
 
     extern "C"
11887
 
#  endif
11888
 
   int F77_DUMMY_MAIN() { return 1; }
11889
 
#endif
11890
 
int
11891
 
main ()
11892
 
{
11893
 
 
11894
 
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
11895
 
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
11896
 
    return( png_ptr != 0 );
11897
 
 
11898
 
  ;
11899
 
  return 0;
11900
 
}
11901
 
_ACEOF
11902
 
rm -f conftest.$ac_objext conftest$ac_exeext
11903
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904
 
  (eval $ac_link) 2>&5
11905
 
  ac_status=$?
11906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907
 
  (exit $ac_status); } &&
11908
 
         { ac_try='test -s conftest$ac_exeext'
11909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910
 
  (eval $ac_try) 2>&5
11911
 
  ac_status=$?
11912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913
 
  (exit $ac_status); }; }; then
11914
 
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
11915
 
else
11916
 
  echo "$as_me: failed program was:" >&5
11917
 
cat conftest.$ac_ext >&5
11918
 
eval "ac_cv_lib_png=no"
11919
 
 
11920
 
fi
11921
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11922
 
LIBS="$kde_save_LIBS"
11923
 
CFLAGS="$kde_save_CFLAGS"
11924
 
 
11925
 
fi
11926
 
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
11927
 
 
11928
 
cat >>confdefs.h <<_ACEOF
11929
 
#define HAVE_LIBPNG 1
11930
 
_ACEOF
11931
 
 
11932
 
  LIBPNG="$ac_cv_lib_png"
11933
 
 
11934
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
11935
 
echo "${ECHO_T}$ac_cv_lib_png" >&6
11936
 
else
11937
 
  echo "$as_me:$LINENO: result: no" >&5
11938
 
echo "${ECHO_T}no" >&6
11939
 
  LIBPNG=""
11940
 
 
11941
 
fi
11942
 
 
11943
 
 
11944
 
 
11945
 
echo "$as_me:$LINENO: checking for libjpeg6b" >&5
11946
 
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
11947
 
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
11948
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11949
 
else
11950
 
 
11951
 
ac_ext=c
11952
 
ac_cpp='$CPP $CPPFLAGS'
11953
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11954
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11955
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11956
 
 
11957
 
ac_save_LIBS="$LIBS"
11958
 
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
11959
 
ac_save_CFLAGS="$CFLAGS"
11960
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
11961
 
cat >conftest.$ac_ext <<_ACEOF
11962
 
#line $LINENO "configure"
11963
 
#include "confdefs.h"
11964
 
/* Override any gcc2 internal prototype to avoid an error.  */
11965
 
struct jpeg_decompress_struct;
11966
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
11967
 
typedef int size_t;
11968
 
#ifdef __cplusplus
11969
 
extern "C" {
11970
 
#endif
11971
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
11972
 
                                    int version, size_t structsize);
11973
 
#ifdef __cplusplus
11974
 
}
11975
 
#endif
11976
 
/* We use char because int might match the return type of a gcc2
11977
 
    builtin and then its argument prototype would still apply.  */
11978
 
 
11979
 
#ifdef F77_DUMMY_MAIN
11980
 
#  ifdef __cplusplus
11981
 
     extern "C"
11982
 
#  endif
11983
 
   int F77_DUMMY_MAIN() { return 1; }
11984
 
#endif
11985
 
int
11986
 
main ()
11987
 
{
11988
 
jpeg_CreateDecompress(0L, 0, 0);
11989
 
  ;
11990
 
  return 0;
11991
 
}
11992
 
_ACEOF
11993
 
rm -f conftest.$ac_objext conftest$ac_exeext
11994
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995
 
  (eval $ac_link) 2>&5
11996
 
  ac_status=$?
11997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998
 
  (exit $ac_status); } &&
11999
 
         { ac_try='test -s conftest$ac_exeext'
12000
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001
 
  (eval $ac_try) 2>&5
12002
 
  ac_status=$?
12003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004
 
  (exit $ac_status); }; }; then
12005
 
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
12006
 
else
12007
 
  echo "$as_me: failed program was:" >&5
12008
 
cat conftest.$ac_ext >&5
12009
 
eval "ac_cv_lib_jpeg_6b=no"
12010
 
fi
12011
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12012
 
LIBS="$ac_save_LIBS"
12013
 
CFLAGS="$ac_save_CFLAGS"
12014
 
 
12015
 
fi
12016
 
 
12017
 
 
12018
 
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
12019
 
  LIBJPEG="$ac_cv_lib_jpeg_6b"
12020
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
12021
 
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
12022
 
else
12023
 
  echo "$as_me:$LINENO: result: no" >&5
12024
 
echo "${ECHO_T}no" >&6
12025
 
 
12026
 
echo "$as_me:$LINENO: checking for libjpeg" >&5
12027
 
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
12028
 
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
12029
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12030
 
else
12031
 
 
12032
 
ac_ext=c
12033
 
ac_cpp='$CPP $CPPFLAGS'
12034
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
 
 
12038
 
ac_save_LIBS="$LIBS"
12039
 
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
12040
 
ac_save_CFLAGS="$CFLAGS"
12041
 
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
12042
 
cat >conftest.$ac_ext <<_ACEOF
12043
 
#line $LINENO "configure"
12044
 
#include "confdefs.h"
12045
 
/* Override any gcc2 internal prototype to avoid an error.  */
12046
 
struct jpeg_decompress_struct;
12047
 
typedef struct jpeg_decompress_struct * j_decompress_ptr;
12048
 
typedef int size_t;
12049
 
#ifdef __cplusplus
12050
 
extern "C" {
12051
 
#endif
12052
 
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
12053
 
                                    int version, size_t structsize);
12054
 
#ifdef __cplusplus
12055
 
}
12056
 
#endif
12057
 
/* We use char because int might match the return type of a gcc2
12058
 
    builtin and then its argument prototype would still apply.  */
12059
 
 
12060
 
#ifdef F77_DUMMY_MAIN
12061
 
#  ifdef __cplusplus
12062
 
     extern "C"
12063
 
#  endif
12064
 
   int F77_DUMMY_MAIN() { return 1; }
12065
 
#endif
12066
 
int
12067
 
main ()
12068
 
{
12069
 
jpeg_CreateDecompress(0L, 0, 0);
12070
 
  ;
12071
 
  return 0;
12072
 
}
12073
 
_ACEOF
12074
 
rm -f conftest.$ac_objext conftest$ac_exeext
12075
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076
 
  (eval $ac_link) 2>&5
12077
 
  ac_status=$?
12078
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079
 
  (exit $ac_status); } &&
12080
 
         { ac_try='test -s conftest$ac_exeext'
12081
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082
 
  (eval $ac_try) 2>&5
12083
 
  ac_status=$?
12084
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085
 
  (exit $ac_status); }; }; then
12086
 
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
12087
 
else
12088
 
  echo "$as_me: failed program was:" >&5
12089
 
cat conftest.$ac_ext >&5
12090
 
eval "ac_cv_lib_jpeg_normal=no"
12091
 
fi
12092
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12093
 
LIBS="$ac_save_LIBS"
12094
 
CFLAGS="$ac_save_CFLAGS"
12095
 
 
12096
 
fi
12097
 
 
12098
 
 
12099
 
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
12100
 
  LIBJPEG="$ac_cv_lib_jpeg_normal"
12101
 
  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
12102
 
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
12103
 
else
12104
 
  echo "$as_me:$LINENO: result: no" >&5
12105
 
echo "${ECHO_T}no" >&6
12106
 
 
12107
 
       LIBJPEG=
12108
 
 
12109
 
 
12110
 
fi
12111
 
 
12112
 
 
12113
 
 
12114
 
fi
12115
 
 
12116
 
 
12117
 
 
12118
 
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
12119
 
 
12120
 
jpeg_incdir=NO
12121
 
for i in $jpeg_incdirs;
12122
 
do
12123
 
  for j in jpeglib.h;
12124
 
  do
12125
 
    echo "configure: 12127: $i/$j" >&5
12126
 
    if test -r "$i/$j"; then
12127
 
      echo "taking that" >&5
12128
 
      jpeg_incdir=$i
12129
 
      break 2
12130
 
    fi
12131
 
  done
12132
 
done
12133
 
 
12134
 
test "x$jpeg_incdir" = xNO && jpeg_incdir=
12135
 
 
12136
 
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
12137
 
 
12138
 
cat >>confdefs.h <<_ACEOF
12139
 
#define HAVE_LIBJPEG 1
12140
 
_ACEOF
12141
 
 
12142
 
else
12143
 
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
12144
 
    { echo "$as_me:$LINENO: WARNING:
12145
 
There is an installation error in jpeg support. You seem to have only one
12146
 
of either the headers _or_ the libraries installed. You may need to either
12147
 
provide correct --with-extra-... options, or the development package of
12148
 
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
12149
 
Disabling JPEG support.
12150
 
" >&5
12151
 
echo "$as_me: WARNING:
12152
 
There is an installation error in jpeg support. You seem to have only one
12153
 
of either the headers _or_ the libraries installed. You may need to either
12154
 
provide correct --with-extra-... options, or the development package of
12155
 
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
12156
 
Disabling JPEG support.
12157
 
" >&2;}
12158
 
  else
12159
 
    { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
12160
 
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
12161
 
  fi
12162
 
  jpeg_incdir=
12163
 
  LIBJPEG=
12164
 
fi
12165
 
 
12166
 
 
12167
 
 
12168
 
 
12169
 
 
12170
 
 
12171
 
 
12172
 
 
12173
 
 
12174
 
 
12175
 
 
12176
 
 
12177
 
# Check whether --enable-mt or --disable-mt was given.
12178
 
if test "${enable_mt+set}" = set; then
12179
 
  enableval="$enable_mt"
12180
 
  kde_use_qt_mt=$enableval
12181
 
else
12182
 
 
12183
 
    if test $kde_qtver = 3; then
12184
 
      kde_use_qt_mt=yes
12185
 
    else
12186
 
      kde_use_qt_mt=no
12187
 
    fi
12188
 
 
12189
 
 
12190
 
fi;
12191
 
 
12192
 
USING_QT_MT=""
12193
 
 
12194
 
 
12195
 
KDE_MT_LDFLAGS=
12196
 
KDE_MT_LIBS=
12197
 
if test "x$kde_use_qt_mt" = "xyes"; then
12198
 
 
12199
 
 
12200
 
 
12201
 
    if test -z "$LIBPTHREAD"; then
12202
 
    if test -z "$USE_THREADS"; then
12203
 
      kde_check_threading_default=no
12204
 
    else
12205
 
      kde_check_threading_default=yes
12206
 
    fi
12207
 
  else
12208
 
    kde_check_threading_default=yes
12209
 
  fi
12210
 
  # Check whether --enable-threading or --disable-threading was given.
12211
 
if test "${enable_threading+set}" = set; then
12212
 
  enableval="$enable_threading"
12213
 
  kde_use_threading=$enableval
12214
 
else
12215
 
  kde_use_threading=$kde_check_threading_default
12216
 
fi;
12217
 
  if test "x$kde_use_threading" = "xyes"; then
12218
 
 
12219
 
cat >>confdefs.h <<\_ACEOF
12220
 
#define HAVE_LIBPTHREAD 1
12221
 
_ACEOF
12222
 
 
12223
 
  fi
12224
 
 
12225
 
  if test "x$kde_use_threading" = "xyes"; then
12226
 
    CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
12227
 
    KDE_MT_LDFLAGS="$USE_THREADS"
12228
 
    KDE_MT_LIBS="$LIBPTHREAD"
12229
 
  else
12230
 
    kde_use_qt_mt=no
12231
 
  fi
12232
 
fi
12233
 
 
12234
 
 
12235
 
 
12236
 
kde_qt_was_given=yes
12237
 
 
12238
 
if test -z "$LIBQT_GLOB"; then
12239
 
  if test "x$kde_use_qt_emb" = "xyes"; then
12240
 
    LIBQT_GLOB="libqte.*"
12241
 
  else
12242
 
    LIBQT_GLOB="libqt.*"
12243
 
  fi
12244
 
fi
12245
 
 
12246
 
if test -z "$LIBQT"; then
12247
 
  if test "x$kde_use_qt_emb" = "xyes"; then
12248
 
    qtlib="qte"
12249
 
  else
12250
 
    qtlib="qt"
12251
 
  fi
12252
 
 
12253
 
  kde_int_qt="-l$qtlib"
12254
 
else
12255
 
  kde_int_qt="$LIBQT"
12256
 
  kde_lib_qt_set=yes
12257
 
fi
12258
 
 
12259
 
if test -z "$LIBQPE"; then
12260
 
  if test "x$kde_use_qt_emb" = "xyes"; then
12261
 
    if test "x$kde_use_qt_emb_palm" = "xyes"; then
12262
 
      LIB_QPE="-lqpe"
12263
 
    else
12264
 
      LIB_QPE=""
12265
 
    fi
12266
 
  else
12267
 
    LIB_QPE=""
12268
 
  fi
12269
 
fi
12270
 
 
12271
 
 
12272
 
if test "x$kde_use_qt_mt" = "xyes"; then
12273
 
  if test -z "$LIBQT"; then
12274
 
    LIBQT="-l$qtlib-mt"
12275
 
    kde_int_qt="-l$qtlib-mt"
12276
 
  else
12277
 
    LIBQT="$qtlib-mt"
12278
 
    kde_int_qt="$qtlib-mt"
12279
 
  fi
12280
 
  LIBQT_GLOB="lib$qtlib-mt.*"
12281
 
  USING_QT_MT="using -mt"
12282
 
else
12283
 
  LIBQT="-l$qtlib"
12284
 
fi
12285
 
 
12286
 
if test $kde_qtver != 1; then
12287
 
 
12288
 
 
12289
 
 
12290
 
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
12291
 
fi
12292
 
 
12293
 
if test $kde_qtver = 3; then
12294
 
 
12295
 
  LIBQT="$LIBQT $LIBDL"
12296
 
fi
12297
 
 
12298
 
echo "$as_me:$LINENO: checking for Qt" >&5
12299
 
echo $ECHO_N "checking for Qt... $ECHO_C" >&6
12300
 
 
12301
 
if test "x$kde_use_qt_emb" != "xyes"; then
12302
 
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
12303
 
fi
12304
 
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
12305
 
qt_libraries=""
12306
 
qt_includes=""
12307
 
 
12308
 
# Check whether --with-qt-dir or --without-qt-dir was given.
12309
 
if test "${with_qt_dir+set}" = set; then
12310
 
  withval="$with_qt_dir"
12311
 
    ac_qt_includes="$withval"/include
12312
 
       ac_qt_libraries="$withval"/lib${kdelibsuff}
12313
 
       ac_qt_bindir="$withval"/bin
12314
 
 
12315
 
fi;
12316
 
 
12317
 
 
12318
 
# Check whether --with-qt-includes or --without-qt-includes was given.
12319
 
if test "${with_qt_includes+set}" = set; then
12320
 
  withval="$with_qt_includes"
12321
 
 
12322
 
       ac_qt_includes="$withval"
12323
 
 
12324
 
fi;
12325
 
 
12326
 
kde_qt_libs_given=no
12327
 
 
12328
 
 
12329
 
# Check whether --with-qt-libraries or --without-qt-libraries was given.
12330
 
if test "${with_qt_libraries+set}" = set; then
12331
 
  withval="$with_qt_libraries"
12332
 
    ac_qt_libraries="$withval"
12333
 
       kde_qt_libs_given=yes
12334
 
 
12335
 
fi;
12336
 
 
12337
 
if test "${ac_cv_have_qt+set}" = set; then
12338
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12339
 
else
12340
 
  #try to guess Qt locations
12341
 
 
12342
 
qt_incdirs=""
12343
 
for dir in $kde_qt_dirs; do
12344
 
   qt_incdirs="$qt_incdirs $dir/include $dir"
12345
 
done
12346
 
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"
12347
 
if test ! "$ac_qt_includes" = "NO"; then
12348
 
   qt_incdirs="$ac_qt_includes $qt_incdirs"
12349
 
fi
12350
 
 
12351
 
if test "$kde_qtver" != "1"; then
12352
 
  kde_qt_header=qstyle.h
12353
 
else
12354
 
  kde_qt_header=qglobal.h
12355
 
fi
12356
 
 
12357
 
 
12358
 
qt_incdir=NO
12359
 
for i in $qt_incdirs;
12360
 
do
12361
 
  for j in $kde_qt_header;
12362
 
  do
12363
 
    echo "configure: 12365: $i/$j" >&5
12364
 
    if test -r "$i/$j"; then
12365
 
      echo "taking that" >&5
12366
 
      qt_incdir=$i
12367
 
      break 2
12368
 
    fi
12369
 
  done
12370
 
done
12371
 
 
12372
 
ac_qt_includes="$qt_incdir"
12373
 
 
12374
 
qt_libdirs=""
12375
 
for dir in $kde_qt_dirs; do
12376
 
   qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
12377
 
done
12378
 
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
12379
 
if test ! "$ac_qt_libraries" = "NO"; then
12380
 
  qt_libdir=$ac_qt_libraries
12381
 
else
12382
 
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
12383
 
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
12384
 
  qt_libdir=NONE
12385
 
  for dir in $qt_libdirs; do
12386
 
    try="ls -1 $dir/${LIBQT_GLOB}"
12387
 
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
12388
 
  done
12389
 
fi
12390
 
 
12391
 
ac_qt_libraries="$qt_libdir"
12392
 
 
12393
 
 
12394
 
 
12395
 
 ac_ext=cc
12396
 
ac_cpp='$CXXCPP $CPPFLAGS'
12397
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12400
 
 
12401
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12402
 
 
12403
 
 
12404
 
 
12405
 
ac_cxxflags_safe="$CXXFLAGS"
12406
 
ac_ldflags_safe="$LDFLAGS"
12407
 
ac_libs_safe="$LIBS"
12408
 
 
12409
 
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
12410
 
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
12411
 
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
12412
 
 
12413
 
 
12414
 
 
12415
 
cat > conftest.$ac_ext <<EOF
12416
 
#include "confdefs.h"
12417
 
#include <qglobal.h>
12418
 
#include <qapplication.h>
12419
 
EOF
12420
 
if test "$kde_qtver" = "2"; then
12421
 
cat >> conftest.$ac_ext <<EOF
12422
 
#include <qevent.h>
12423
 
#include <qstring.h>
12424
 
#include <qstyle.h>
12425
 
EOF
12426
 
 
12427
 
if test $kde_qtsubver -gt 0; then
12428
 
cat >> conftest.$ac_ext <<EOF
12429
 
#if QT_VERSION < 210
12430
 
#error 1
12431
 
#endif
12432
 
EOF
12433
 
fi
12434
 
fi
12435
 
 
12436
 
if test "$kde_qtver" = "3"; then
12437
 
cat >> conftest.$ac_ext <<EOF
12438
 
#include <qcursor.h>
12439
 
#include <qstylefactory.h>
12440
 
#include <private/qucomextra_p.h>
12441
 
EOF
12442
 
fi
12443
 
 
12444
 
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
12445
 
cat >> conftest.$ac_ext <<EOF
12446
 
#error 1
12447
 
#endif
12448
 
 
12449
 
int main() {
12450
 
EOF
12451
 
if test "$kde_qtver" = "2"; then
12452
 
cat >> conftest.$ac_ext <<EOF
12453
 
    QStringList *t = new QStringList();
12454
 
    Q_UNUSED(t);
12455
 
EOF
12456
 
if test $kde_qtsubver -gt 0; then
12457
 
cat >> conftest.$ac_ext <<EOF
12458
 
    QString s;
12459
 
    s.setLatin1("Elvis is alive", 14);
12460
 
EOF
12461
 
fi
12462
 
fi
12463
 
if test "$kde_qtver" = "3"; then
12464
 
cat >> conftest.$ac_ext <<EOF
12465
 
    (void)QStyleFactory::create(QString::null);
12466
 
    QCursor c(Qt::WhatsThisCursor);
12467
 
EOF
12468
 
fi
12469
 
cat >> conftest.$ac_ext <<EOF
12470
 
    return 0;
12471
 
}
12472
 
EOF
12473
 
 
12474
 
 
12475
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476
 
  (eval $ac_link) 2>&5
12477
 
  ac_status=$?
12478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479
 
  (exit $ac_status); } && test -s conftest; then
12480
 
  rm -f conftest*
12481
 
else
12482
 
  echo "configure: failed program was:" >&5
12483
 
  cat conftest.$ac_ext >&5
12484
 
  ac_qt_libraries="NO"
12485
 
fi
12486
 
rm -f conftest*
12487
 
CXXFLAGS="$ac_cxxflags_safe"
12488
 
LDFLAGS="$ac_ldflags_safe"
12489
 
LIBS="$ac_libs_safe"
12490
 
 
12491
 
ac_ext=c
12492
 
ac_cpp='$CPP $CPPFLAGS'
12493
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496
 
 
12497
 
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
12498
 
  ac_cv_have_qt="have_qt=no"
12499
 
  ac_qt_notfound=""
12500
 
  missing_qt_mt=""
12501
 
  if test "$ac_qt_includes" = NO; then
12502
 
    if test "$ac_qt_libraries" = NO; then
12503
 
      ac_qt_notfound="(headers and libraries)";
12504
 
    else
12505
 
      ac_qt_notfound="(headers)";
12506
 
    fi
12507
 
  else
12508
 
    if test "x$kde_use_qt_mt" = "xyes"; then
12509
 
       missing_qt_mt="
12510
 
Make sure that you have compiled Qt with thread support!"
12511
 
       ac_qt_notfound="(library $qtlib-mt)";
12512
 
    else
12513
 
       ac_qt_notfound="(library $qtlib)";
12514
 
    fi
12515
 
  fi
12516
 
 
12517
 
  { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
12518
 
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
12519
 
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
12520
 
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
12521
 
   { (exit 1); exit 1; }; }
12522
 
else
12523
 
  have_qt="yes"
12524
 
fi
12525
 
 
12526
 
fi
12527
 
 
12528
 
 
12529
 
eval "$ac_cv_have_qt"
12530
 
 
12531
 
if test "$have_qt" != yes; then
12532
 
  echo "$as_me:$LINENO: result: $have_qt" >&5
12533
 
echo "${ECHO_T}$have_qt" >&6;
12534
 
else
12535
 
  ac_cv_have_qt="have_qt=yes \
12536
 
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
12537
 
  echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
12538
 
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
12539
 
 
12540
 
  qt_libraries="$ac_qt_libraries"
12541
 
  qt_includes="$ac_qt_includes"
12542
 
fi
12543
 
 
12544
 
if test ! "$kde_qt_libs_given" = "yes"; then
12545
 
 
12546
 
 
12547
 
echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
12548
 
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
12549
 
if test "${kde_cv_qt_direct+set}" = set; then
12550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12551
 
else
12552
 
 
12553
 
 
12554
 
 
12555
 
 ac_ext=cc
12556
 
ac_cpp='$CXXCPP $CPPFLAGS'
12557
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12560
 
 
12561
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12562
 
 
12563
 
 
12564
 
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
12565
 
ac_LIBRARY_PATH="$LIBRARY_PATH"
12566
 
ac_cxxflags_safe="$CXXFLAGS"
12567
 
ac_ldflags_safe="$LDFLAGS"
12568
 
ac_libs_safe="$LIBS"
12569
 
 
12570
 
CXXFLAGS="$CXXFLAGS -I$qt_includes"
12571
 
LDFLAGS="$LDFLAGS $X_LDFLAGS"
12572
 
if test "x$kde_use_qt_emb" != "xyes"; then
12573
 
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
12574
 
else
12575
 
LIBS="$LIBQT $LIBSOCKET"
12576
 
fi
12577
 
LD_LIBRARY_PATH=
12578
 
export LD_LIBRARY_PATH
12579
 
LIBRARY_PATH=
12580
 
export LIBRARY_PATH
12581
 
 
12582
 
 
12583
 
 
12584
 
cat > conftest.$ac_ext <<EOF
12585
 
#include "confdefs.h"
12586
 
#include <qglobal.h>
12587
 
#include <qapplication.h>
12588
 
EOF
12589
 
if test "$kde_qtver" = "2"; then
12590
 
cat >> conftest.$ac_ext <<EOF
12591
 
#include <qevent.h>
12592
 
#include <qstring.h>
12593
 
#include <qstyle.h>
12594
 
EOF
12595
 
 
12596
 
if test $kde_qtsubver -gt 0; then
12597
 
cat >> conftest.$ac_ext <<EOF
12598
 
#if QT_VERSION < 210
12599
 
#error 1
12600
 
#endif
12601
 
EOF
12602
 
fi
12603
 
fi
12604
 
 
12605
 
if test "$kde_qtver" = "3"; then
12606
 
cat >> conftest.$ac_ext <<EOF
12607
 
#include <qcursor.h>
12608
 
#include <qstylefactory.h>
12609
 
#include <private/qucomextra_p.h>
12610
 
EOF
12611
 
fi
12612
 
 
12613
 
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
12614
 
cat >> conftest.$ac_ext <<EOF
12615
 
#error 1
12616
 
#endif
12617
 
 
12618
 
int main() {
12619
 
EOF
12620
 
if test "$kde_qtver" = "2"; then
12621
 
cat >> conftest.$ac_ext <<EOF
12622
 
    QStringList *t = new QStringList();
12623
 
    Q_UNUSED(t);
12624
 
EOF
12625
 
if test $kde_qtsubver -gt 0; then
12626
 
cat >> conftest.$ac_ext <<EOF
12627
 
    QString s;
12628
 
    s.setLatin1("Elvis is alive", 14);
12629
 
EOF
12630
 
fi
12631
 
fi
12632
 
if test "$kde_qtver" = "3"; then
12633
 
cat >> conftest.$ac_ext <<EOF
12634
 
    (void)QStyleFactory::create(QString::null);
12635
 
    QCursor c(Qt::WhatsThisCursor);
12636
 
EOF
12637
 
fi
12638
 
cat >> conftest.$ac_ext <<EOF
12639
 
    return 0;
12640
 
}
12641
 
EOF
12642
 
 
12643
 
 
12644
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
 
  (eval $ac_link) 2>&5
12646
 
  ac_status=$?
12647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
 
  (exit $ac_status); } && test -s conftest; then
12649
 
  kde_cv_qt_direct="yes"
12650
 
else
12651
 
  kde_cv_qt_direct="no"
12652
 
  echo "configure: failed program was:" >&5
12653
 
  cat conftest.$ac_ext >&5
12654
 
fi
12655
 
 
12656
 
rm -f conftest*
12657
 
CXXFLAGS="$ac_cxxflags_safe"
12658
 
LDFLAGS="$ac_ldflags_safe"
12659
 
LIBS="$ac_libs_safe"
12660
 
 
12661
 
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
12662
 
export LD_LIBRARY_PATH
12663
 
LIBRARY_PATH="$ac_LIBRARY_PATH"
12664
 
export LIBRARY_PATH
12665
 
ac_ext=c
12666
 
ac_cpp='$CPP $CPPFLAGS'
12667
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12670
 
 
12671
 
 
12672
 
fi
12673
 
 
12674
 
 
12675
 
if test "$kde_cv_qt_direct" = "yes"; then
12676
 
  echo "$as_me:$LINENO: result: yes" >&5
12677
 
echo "${ECHO_T}yes" >&6
12678
 
  qt_libraries=
12679
 
else
12680
 
  echo "$as_me:$LINENO: result: no" >&5
12681
 
echo "${ECHO_T}no" >&6
12682
 
 
12683
 
fi
12684
 
 
12685
 
fi
12686
 
 
12687
 
 
12688
 
 
12689
 
 
12690
 
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
12691
 
 QT_INCLUDES=""
12692
 
else
12693
 
 QT_INCLUDES="-I$qt_includes"
12694
 
 all_includes="$QT_INCLUDES $all_includes"
12695
 
fi
12696
 
 
12697
 
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
12698
 
 QT_LDFLAGS=""
12699
 
else
12700
 
 QT_LDFLAGS="-L$qt_libraries"
12701
 
 all_libraries="$all_libraries $QT_LDFLAGS"
12702
 
fi
12703
 
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
12704
 
 
12705
 
 
12706
 
 
12707
 
 
12708
 
   qt_bindirs=""
12709
 
   for dir in $kde_qt_dirs; do
12710
 
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
12711
 
   done
12712
 
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
12713
 
   if test ! "$ac_qt_bindir" = "NO"; then
12714
 
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
12715
 
   fi
12716
 
 
12717
 
 
12718
 
   echo "$as_me:$LINENO: checking for moc" >&5
12719
 
echo $ECHO_N "checking for moc... $ECHO_C" >&6
12720
 
   if test -n "$MOC"; then
12721
 
        kde_cv_path="$MOC";
12722
 
   else
12723
 
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
12724
 
 
12725
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
12726
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12727
 
else
12728
 
 
12729
 
        kde_cv_path="NONE"
12730
 
        dirs="$qt_bindirs"
12731
 
        kde_save_IFS=$IFS
12732
 
        IFS=':'
12733
 
        for dir in $PATH; do
12734
 
          dirs="$dirs $dir"
12735
 
        done
12736
 
        IFS=$kde_save_IFS
12737
 
 
12738
 
        for dir in $dirs; do
12739
 
          if test -x "$dir/moc"; then
12740
 
            if test -n ""
12741
 
            then
12742
 
              evalstr="$dir/moc  2>&1 "
12743
 
              if eval $evalstr; then
12744
 
                kde_cv_path="$dir/moc"
12745
 
                break
12746
 
              fi
12747
 
            else
12748
 
                kde_cv_path="$dir/moc"
12749
 
                break
12750
 
            fi
12751
 
          fi
12752
 
        done
12753
 
 
12754
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
12755
 
 
12756
 
 
12757
 
fi
12758
 
 
12759
 
 
12760
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
12761
 
 
12762
 
   fi
12763
 
 
12764
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
12765
 
      echo "$as_me:$LINENO: result: not found" >&5
12766
 
echo "${ECHO_T}not found" >&6
12767
 
 
12768
 
    { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
12769
 
Please check whether you installed Qt correctly.
12770
 
You need to have a running moc binary.
12771
 
configure tried to run $ac_cv_path_moc and the test didn't
12772
 
succeed. If configure shouldn't have tried this one, set
12773
 
the environment variable MOC to the right one before running
12774
 
configure.
12775
 
" >&5
12776
 
echo "$as_me: error: No Qt meta object compiler (moc) found!
12777
 
Please check whether you installed Qt correctly.
12778
 
You need to have a running moc binary.
12779
 
configure tried to run $ac_cv_path_moc and the test didn't
12780
 
succeed. If configure shouldn't have tried this one, set
12781
 
the environment variable MOC to the right one before running
12782
 
configure.
12783
 
" >&2;}
12784
 
   { (exit 1); exit 1; }; }
12785
 
 
12786
 
   else
12787
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
12788
 
echo "${ECHO_T}$kde_cv_path" >&6
12789
 
      MOC=$kde_cv_path
12790
 
 
12791
 
   fi
12792
 
 
12793
 
   if test -z "$UIC_NOT_NEEDED"; then
12794
 
 
12795
 
   echo "$as_me:$LINENO: checking for uic" >&5
12796
 
echo $ECHO_N "checking for uic... $ECHO_C" >&6
12797
 
   if test -n "$UIC_PATH"; then
12798
 
        kde_cv_path="$UIC_PATH";
12799
 
   else
12800
 
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
12801
 
 
12802
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
12803
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12804
 
else
12805
 
 
12806
 
        kde_cv_path="NONE"
12807
 
        dirs="$qt_bindirs"
12808
 
        kde_save_IFS=$IFS
12809
 
        IFS=':'
12810
 
        for dir in $PATH; do
12811
 
          dirs="$dirs $dir"
12812
 
        done
12813
 
        IFS=$kde_save_IFS
12814
 
 
12815
 
        for dir in $dirs; do
12816
 
          if test -x "$dir/uic"; then
12817
 
            if test -n ""
12818
 
            then
12819
 
              evalstr="$dir/uic  2>&1 "
12820
 
              if eval $evalstr; then
12821
 
                kde_cv_path="$dir/uic"
12822
 
                break
12823
 
              fi
12824
 
            else
12825
 
                kde_cv_path="$dir/uic"
12826
 
                break
12827
 
            fi
12828
 
          fi
12829
 
        done
12830
 
 
12831
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
12832
 
 
12833
 
 
12834
 
fi
12835
 
 
12836
 
 
12837
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
12838
 
 
12839
 
   fi
12840
 
 
12841
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
12842
 
      echo "$as_me:$LINENO: result: not found" >&5
12843
 
echo "${ECHO_T}not found" >&6
12844
 
      UIC_PATH=""
12845
 
   else
12846
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
12847
 
echo "${ECHO_T}$kde_cv_path" >&6
12848
 
      UIC_PATH=$kde_cv_path
12849
 
 
12850
 
   fi
12851
 
 
12852
 
     if test -z "$UIC_PATH" ; then
12853
 
 
12854
 
    { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
12855
 
Please check whether you installed Qt correctly.
12856
 
You need to have a running uic binary.
12857
 
configure tried to run $ac_cv_path_uic and the test didn't
12858
 
succeed. If configure shouldn't have tried this one, set
12859
 
the environment variable UIC to the right one before running
12860
 
configure.
12861
 
" >&5
12862
 
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
12863
 
Please check whether you installed Qt correctly.
12864
 
You need to have a running uic binary.
12865
 
configure tried to run $ac_cv_path_uic and the test didn't
12866
 
succeed. If configure shouldn't have tried this one, set
12867
 
the environment variable UIC to the right one before running
12868
 
configure.
12869
 
" >&2;}
12870
 
 
12871
 
       exit 1
12872
 
     elif test $kde_qtver = 3; then
12873
 
 
12874
 
    echo "$as_me:$LINENO: checking whether uic supports -L " >&5
12875
 
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
12876
 
    kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
12877
 
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
12878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12879
 
else
12880
 
 
12881
 
        cat >conftest.ui <<EOT
12882
 
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
12883
 
EOT
12884
 
        ac_uic_testrun="$UIC_PATH -L /nonexistant conftest.ui >/dev/null"
12885
 
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
12886
 
  (eval $ac_uic_testrun) 2>&5
12887
 
  ac_status=$?
12888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889
 
  (exit $ac_status); }; then
12890
 
            eval "kde_cv_prog_uic_$kde_cache=yes"
12891
 
        else
12892
 
            eval "kde_cv_prog_uic_$kde_cache=no"
12893
 
        fi
12894
 
        rm -f conftest*
12895
 
 
12896
 
fi
12897
 
 
12898
 
 
12899
 
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
12900
 
        echo "$as_me:$LINENO: result: yes" >&5
12901
 
echo "${ECHO_T}yes" >&6
12902
 
        :
12903
 
        ac_uic_supports_libpath=yes
12904
 
    else
12905
 
        echo "$as_me:$LINENO: result: no" >&5
12906
 
echo "${ECHO_T}no" >&6
12907
 
        :
12908
 
        ac_uic_supports_libpath=no
12909
 
    fi
12910
 
 
12911
 
 
12912
 
    echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
12913
 
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
12914
 
    kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
12915
 
    if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
12916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12917
 
else
12918
 
 
12919
 
        cat >conftest.ui <<EOT
12920
 
        <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
12921
 
EOT
12922
 
        ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
12923
 
        if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
12924
 
  (eval $ac_uic_testrun) 2>&5
12925
 
  ac_status=$?
12926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927
 
  (exit $ac_status); }; then
12928
 
            eval "kde_cv_prog_uic_$kde_cache=yes"
12929
 
        else
12930
 
            eval "kde_cv_prog_uic_$kde_cache=no"
12931
 
        fi
12932
 
        rm -f conftest*
12933
 
 
12934
 
fi
12935
 
 
12936
 
 
12937
 
    if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
12938
 
        echo "$as_me:$LINENO: result: yes" >&5
12939
 
echo "${ECHO_T}yes" >&6
12940
 
        :
12941
 
        ac_uic_supports_nounload=yes
12942
 
    else
12943
 
        echo "$as_me:$LINENO: result: no" >&5
12944
 
echo "${ECHO_T}no" >&6
12945
 
        :
12946
 
        ac_uic_supports_nounload=no
12947
 
    fi
12948
 
 
12949
 
 
12950
 
       UIC=$UIC_PATH
12951
 
       if test x$ac_uic_supports_libpath = xyes; then
12952
 
           UIC="$UIC -L \$(kde_widgetdir)"
12953
 
       fi
12954
 
       if test x$ac_uic_supports_nounload = xyes; then
12955
 
           UIC="$UIC -nounload"
12956
 
       fi
12957
 
     fi
12958
 
   else
12959
 
     UIC="echo uic not available: "
12960
 
   fi
12961
 
 
12962
 
 
12963
 
 
12964
 
 
12965
 
   UIC_TR="i18n"
12966
 
   if test $kde_qtver = 3; then
12967
 
     UIC_TR="tr2i18n"
12968
 
   fi
12969
 
 
12970
 
 
12971
 
 
12972
 
 
12973
 
 
12974
 
if test -n "$LIBJPEG"; then
12975
 
echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
12976
 
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
12977
 
if test "${kde_cv_qt_jpeg+set}" = set; then
12978
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12979
 
else
12980
 
 
12981
 
 
12982
 
 
12983
 
 ac_ext=cc
12984
 
ac_cpp='$CXXCPP $CPPFLAGS'
12985
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12988
 
 
12989
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12990
 
 
12991
 
 
12992
 
ac_save_LIBS="$LIBS"
12993
 
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
12994
 
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
12995
 
ac_save_CXXFLAGS="$CXXFLAGS"
12996
 
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
12997
 
cat >conftest.$ac_ext <<_ACEOF
12998
 
#line $LINENO "configure"
12999
 
#include "confdefs.h"
13000
 
#include <qapplication.h>
13001
 
#ifdef F77_DUMMY_MAIN
13002
 
#  ifdef __cplusplus
13003
 
     extern "C"
13004
 
#  endif
13005
 
   int F77_DUMMY_MAIN() { return 1; }
13006
 
#endif
13007
 
int
13008
 
main ()
13009
 
{
13010
 
 
13011
 
            int argc;
13012
 
            char** argv;
13013
 
            QApplication app(argc, argv);
13014
 
  ;
13015
 
  return 0;
13016
 
}
13017
 
_ACEOF
13018
 
rm -f conftest.$ac_objext conftest$ac_exeext
13019
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13020
 
  (eval $ac_link) 2>&5
13021
 
  ac_status=$?
13022
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023
 
  (exit $ac_status); } &&
13024
 
         { ac_try='test -s conftest$ac_exeext'
13025
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026
 
  (eval $ac_try) 2>&5
13027
 
  ac_status=$?
13028
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029
 
  (exit $ac_status); }; }; then
13030
 
  eval "kde_cv_qt_jpeg=no"
13031
 
else
13032
 
  echo "$as_me: failed program was:" >&5
13033
 
cat conftest.$ac_ext >&5
13034
 
eval "kde_cv_qt_jpeg=yes"
13035
 
fi
13036
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13037
 
LIBS="$ac_save_LIBS"
13038
 
CXXFLAGS="$ac_save_CXXFLAGS"
13039
 
ac_ext=c
13040
 
ac_cpp='$CPP $CPPFLAGS'
13041
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13042
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13043
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13044
 
 
13045
 
fi
13046
 
 
13047
 
fi
13048
 
 
13049
 
 
13050
 
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
13051
 
  echo "$as_me:$LINENO: result: yes" >&5
13052
 
echo "${ECHO_T}yes" >&6
13053
 
  LIBJPEG_QT='$(LIBJPEG)'
13054
 
else
13055
 
  echo "$as_me:$LINENO: result: no" >&5
13056
 
echo "${ECHO_T}no" >&6
13057
 
  LIBJPEG_QT=
13058
 
fi
13059
 
 
13060
 
 
13061
 
 
13062
 
if test "x$kde_use_qt_emb" != "xyes"; then
13063
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
13064
 
else
13065
 
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBPNG)'
13066
 
fi
13067
 
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
13068
 
 
13069
 
 
13070
 
 
13071
 
 
13072
 
 
13073
 
 
13074
 
 
13075
 
 
13076
 
 
13077
 
 
13078
 
 
13079
 
 
13080
 
 
13081
 
echo "$as_me:$LINENO: checking for rpath" >&5
13082
 
echo $ECHO_N "checking for rpath... $ECHO_C" >&6
13083
 
# Check whether --enable-rpath or --disable-rpath was given.
13084
 
if test "${enable_rpath+set}" = set; then
13085
 
  enableval="$enable_rpath"
13086
 
  USE_RPATH=$enableval
13087
 
else
13088
 
  USE_RPATH=yes
13089
 
fi;
13090
 
 
13091
 
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
13092
 
 
13093
 
  KDE_RPATH="-R \$(kde_libraries)"
13094
 
 
13095
 
  if test -n "$qt_libraries"; then
13096
 
    KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
13097
 
  fi
13098
 
    if test -n "$X_LDFLAGS"; then
13099
 
    KDE_RPATH="$KDE_RPATH -R \$(x_libraries)"
13100
 
  fi
13101
 
  if test -n "$KDE_EXTRA_RPATH"; then
13102
 
    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
13103
 
  fi
13104
 
fi
13105
 
 
13106
 
 
13107
 
echo "$as_me:$LINENO: result: $USE_RPATH" >&5
13108
 
echo "${ECHO_T}$USE_RPATH" >&6
13109
 
 
13110
 
echo "$as_me:$LINENO: checking for KDE" >&5
13111
 
echo $ECHO_N "checking for KDE... $ECHO_C" >&6
13112
 
 
13113
 
if test "${prefix}" != NONE; then
13114
 
  kde_includes=${prefix}/include
13115
 
  ac_kde_includes=$prefix/include
13116
 
 
13117
 
  if test "${exec_prefix}" != NONE; then
13118
 
     kde_libraries=${libdir}
13119
 
     ac_kde_libraries=$libdir
13120
 
     if test "$ac_kde_libraries" = '${exec_prefix}/lib'${kdelibsuff}; then
13121
 
        ac_kde_libraries=$exec_prefix/lib${kdelibsuff}
13122
 
     fi
13123
 
  else
13124
 
     kde_libraries=${prefix}/lib${kdelibsuff}
13125
 
     ac_kde_libraries=$prefix/lib${kdelibsuff}
13126
 
  fi
13127
 
else
13128
 
  ac_kde_includes=
13129
 
  ac_kde_libraries=
13130
 
  kde_libraries=""
13131
 
  kde_includes=""
13132
 
fi
13133
 
 
13134
 
if test "${ac_cv_have_kde+set}" = set; then
13135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13136
 
else
13137
 
  #try to guess kde locations
13138
 
 
13139
 
if test "$kde_qtver" = 1; then
13140
 
  kde_check_header="ksock.h"
13141
 
  kde_check_lib="libkdecore.la"
13142
 
else
13143
 
  kde_check_header="ksharedptr.h"
13144
 
  kde_check_lib="libkio.la"
13145
 
fi
13146
 
 
13147
 
if test -z ""; then
13148
 
 
13149
 
kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
13150
 
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
13151
 
kde_incdirs="$ac_kde_includes $kde_incdirs"
13152
 
 
13153
 
kde_incdir=NO
13154
 
for i in $kde_incdirs;
13155
 
do
13156
 
  for j in $kde_check_header;
13157
 
  do
13158
 
    echo "configure: 13160: $i/$j" >&5
13159
 
    if test -r "$i/$j"; then
13160
 
      echo "taking that" >&5
13161
 
      kde_incdir=$i
13162
 
      break 2
13163
 
    fi
13164
 
  done
13165
 
done
13166
 
 
13167
 
ac_kde_includes="$kde_incdir"
13168
 
 
13169
 
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
13170
 
  { { echo "$as_me:$LINENO: error:
13171
 
in the prefix, you've chosen, are no KDE headers installed. This will fail.
13172
 
So, check this please and use another prefix!" >&5
13173
 
echo "$as_me: error:
13174
 
in the prefix, you've chosen, are no KDE headers installed. This will fail.
13175
 
So, check this please and use another prefix!" >&2;}
13176
 
   { (exit 1); exit 1; }; }
13177
 
fi
13178
 
 
13179
 
kde_libdirs="/usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
13180
 
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
13181
 
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
13182
 
 
13183
 
kde_libdir=NO
13184
 
for i in $kde_libdirs;
13185
 
do
13186
 
  for j in $kde_check_lib;
13187
 
  do
13188
 
    echo "configure: 13190: $i/$j" >&5
13189
 
    if test -r "$i/$j"; then
13190
 
      echo "taking that" >&5
13191
 
      kde_libdir=$i
13192
 
      break 2
13193
 
    fi
13194
 
  done
13195
 
done
13196
 
 
13197
 
ac_kde_libraries="$kde_libdir"
13198
 
 
13199
 
kde_widgetdir=NO
13200
 
 
13201
 
kde_widgetdir=NO
13202
 
for i in $kde_libdirs;
13203
 
do
13204
 
  for j in "kde3/plugins/designer/kdewidgets.la";
13205
 
  do
13206
 
    echo "configure: 13208: $i/$j" >&5
13207
 
    if test -r "$i/$j"; then
13208
 
      echo "taking that" >&5
13209
 
      kde_widgetdir=$i
13210
 
      break 2
13211
 
    fi
13212
 
  done
13213
 
done
13214
 
 
13215
 
 
13216
 
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
13217
 
{ { echo "$as_me:$LINENO: error:
13218
 
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
13219
 
So, check this please and use another prefix!" >&5
13220
 
echo "$as_me: error:
13221
 
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
13222
 
So, check this please and use another prefix!" >&2;}
13223
 
   { (exit 1); exit 1; }; }
13224
 
fi
13225
 
 
13226
 
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
13227
 
{ { echo "$as_me:$LINENO: error:
13228
 
I can't find the designer plugins. These are required and should have been installed
13229
 
by kdelibs" >&5
13230
 
echo "$as_me: error:
13231
 
I can't find the designer plugins. These are required and should have been installed
13232
 
by kdelibs" >&2;}
13233
 
   { (exit 1); exit 1; }; }
13234
 
fi
13235
 
 
13236
 
if test -n "$kde_widgetdir"; then
13237
 
    kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
13238
 
fi
13239
 
 
13240
 
 
13241
 
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
13242
 
  ac_cv_have_kde="have_kde=no"
13243
 
else
13244
 
  ac_cv_have_kde="have_kde=yes \
13245
 
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
13246
 
fi
13247
 
 
13248
 
else
13249
 
  ac_cv_have_kde="have_kde=no"
13250
 
 
13251
 
fi
13252
 
 
13253
 
fi
13254
 
 
13255
 
eval "$ac_cv_have_kde"
13256
 
 
13257
 
if test "$have_kde" != "yes"; then
13258
 
 if test "${prefix}" = NONE; then
13259
 
  ac_kde_prefix="$ac_default_prefix"
13260
 
 else
13261
 
  ac_kde_prefix="$prefix"
13262
 
 fi
13263
 
 if test "$exec_prefix" = NONE; then
13264
 
  ac_kde_exec_prefix="$ac_kde_prefix"
13265
 
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
13266
 
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6
13267
 
 else
13268
 
  ac_kde_exec_prefix="$exec_prefix"
13269
 
  echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
13270
 
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6
13271
 
 fi
13272
 
 
13273
 
 kde_libraries="${libdir}"
13274
 
 kde_includes=${ac_kde_prefix}/include
13275
 
 
13276
 
else
13277
 
  ac_cv_have_kde="have_kde=yes \
13278
 
    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
13279
 
  echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
13280
 
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6
13281
 
 
13282
 
  kde_libraries="$ac_kde_libraries"
13283
 
  kde_includes="$ac_kde_includes"
13284
 
fi
13285
 
 
13286
 
 
13287
 
 
13288
 
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
13289
 
 KDE_INCLUDES=""
13290
 
else
13291
 
 KDE_INCLUDES="-I$kde_includes"
13292
 
 all_includes="$KDE_INCLUDES $all_includes"
13293
 
fi
13294
 
 
13295
 
KDE_LDFLAGS="-L$kde_libraries"
13296
 
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
13297
 
 all_libraries="$all_libraries $KDE_LDFLAGS"
13298
 
fi
13299
 
 
13300
 
 
13301
 
 
13302
 
 
13303
 
 
13304
 
 
13305
 
all_libraries="$all_libraries $USER_LDFLAGS"
13306
 
all_includes="$all_includes $USER_INCLUDES"
13307
 
 
13308
 
 
13309
 
 
13310
 
if test -z ""; then
13311
 
 
13312
 
 
13313
 
 
13314
 
if test x$ac_uic_supports_libpath = xyes; then
13315
 
 
13316
 
echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
13317
 
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6
13318
 
if test "${kde_cv_uic_plugins+set}" = set; then
13319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13320
 
else
13321
 
 
13322
 
cat > actest.ui << EOF
13323
 
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
13324
 
<class>NewConnectionDialog</class>
13325
 
<widget class="QDialog">
13326
 
   <widget class="KLineEdit">
13327
 
        <property name="name">
13328
 
           <cstring>testInput</cstring>
13329
 
        </property>
13330
 
   </widget>
13331
 
</widget>
13332
 
</UI>
13333
 
EOF
13334
 
 
13335
 
 
13336
 
 
13337
 
kde_cv_uic_plugins=no
13338
 
kde_line="$UIC_PATH -L $kde_widgetdir"
13339
 
if test x$ac_uic_supports_nounload = xyes; then
13340
 
   kde_line="$kde_line -nounload"
13341
 
fi
13342
 
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
13343
 
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
13344
 
  (eval $kde_line) 2>&5
13345
 
  ac_status=$?
13346
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347
 
  (exit $ac_status); }; then
13348
 
        if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
13349
 
                kde_cv_uic_plugins=yes
13350
 
        fi
13351
 
fi
13352
 
rm -f actest.ui actest.cpp
13353
 
 
13354
 
fi
13355
 
 
13356
 
 
13357
 
if test "$kde_cv_uic_plugins" = yes; then
13358
 
        echo "$as_me:$LINENO: result: yes" >&5
13359
 
echo "${ECHO_T}yes" >&6
13360
 
else
13361
 
        { { echo "$as_me:$LINENO: error: not found - you need to install kdelibs first." >&5
13362
 
echo "$as_me: error: not found - you need to install kdelibs first." >&2;}
13363
 
   { (exit 1); exit 1; }; }
13364
 
fi
13365
 
fi
13366
 
 
13367
 
fi
13368
 
 
13369
 
ac_kde_libraries="$kde_libdir"
13370
 
 
13371
 
 
13372
 
 
13373
 
 
13374
 
 
13375
 
  # Check whether --enable-path-check or --disable-path-check was given.
13376
 
if test "${enable_path_check+set}" = set; then
13377
 
  enableval="$enable_path_check"
13378
 
 
13379
 
  if test "$enableval" = "no";
13380
 
    then ac_use_path_checking="default"
13381
 
    else ac_use_path_checking=""
13382
 
  fi
13383
 
 
13384
 
else
13385
 
 
13386
 
  if test "$kde_qtver" = 1;
13387
 
    then ac_use_path_checking=""
13388
 
    else ac_use_path_checking="default"
13389
 
  fi
13390
 
 
13391
 
 
13392
 
fi;
13393
 
 
13394
 
 
13395
 
 
13396
 
 
13397
 
echo "$as_me:$LINENO: checking for KDE paths" >&5
13398
 
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6
13399
 
kde_result=""
13400
 
kde_cached_paths=yes
13401
 
if test "${kde_cv_all_paths+set}" = set; then
13402
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13403
 
else
13404
 
 
13405
 
 
13406
 
if test "$ac_use_path_checking" = "default"; then
13407
 
 
13408
 
  if test -z "$kde_htmldir"; then
13409
 
    kde_htmldir='\${prefix}/share/doc/HTML'
13410
 
  fi
13411
 
  if test -z "$kde_appsdir"; then
13412
 
    kde_appsdir='\${prefix}/share/applnk'
13413
 
  fi
13414
 
  if test -z "$kde_icondir"; then
13415
 
    kde_icondir='\${prefix}/share/icons'
13416
 
  fi
13417
 
  if test -z "$kde_sounddir"; then
13418
 
    kde_sounddir='\${prefix}/share/sounds'
13419
 
  fi
13420
 
  if test -z "$kde_datadir"; then
13421
 
    kde_datadir='\${prefix}/share/apps'
13422
 
  fi
13423
 
  if test -z "$kde_locale"; then
13424
 
    kde_locale='\${prefix}/share/locale'
13425
 
  fi
13426
 
  if test -z "$kde_cgidir"; then
13427
 
    kde_cgidir='\${exec_prefix}/cgi-bin'
13428
 
  fi
13429
 
  if test -z "$kde_confdir"; then
13430
 
    kde_confdir='\${prefix}/share/config'
13431
 
  fi
13432
 
  if test -z "$kde_mimedir"; then
13433
 
    kde_mimedir='\${prefix}/share/mimelnk'
13434
 
  fi
13435
 
  if test -z "$kde_toolbardir"; then
13436
 
    kde_toolbardir='\${prefix}/share/toolbar'
13437
 
  fi
13438
 
  if test -z "$kde_wallpaperdir"; then
13439
 
    kde_wallpaperdir='\${prefix}/share/wallpapers'
13440
 
  fi
13441
 
  if test -z "$kde_templatesdir"; then
13442
 
    kde_templatesdir='\${prefix}/share/templates'
13443
 
  fi
13444
 
  if test -z "$kde_bindir"; then
13445
 
    kde_bindir='\${exec_prefix}/bin'
13446
 
  fi
13447
 
  if test -z "$kde_servicesdir"; then
13448
 
    kde_servicesdir='\${prefix}/share/services'
13449
 
  fi
13450
 
  if test -z "$kde_servicetypesdir"; then
13451
 
    kde_servicetypesdir='\${prefix}/share/servicetypes'
13452
 
  fi
13453
 
  if test -z "$kde_moduledir"; then
13454
 
    if test "$kde_qtver" = "2"; then
13455
 
      kde_moduledir='\${libdir}/kde2'
13456
 
    else
13457
 
      kde_moduledir='\${libdir}/kde3'
13458
 
    fi
13459
 
  fi
13460
 
  if test -z "$kde_styledir"; then
13461
 
    kde_styledir='\${libdir}/kde3/plugins/styles'
13462
 
  fi
13463
 
  if test -z "$kde_widgetdir"; then
13464
 
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
13465
 
  fi
13466
 
  if test -z "$xdg_appsdir"; then
13467
 
    xdg_appsdir='\${datadir}/applications'
13468
 
  fi
13469
 
  if test -z "$xdg_directorydir"; then
13470
 
    xdg_directorydir='\${datadir}/desktop-directories'
13471
 
  fi
13472
 
 
13473
 
 
13474
 
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
13475
 
        kde_htmldir=\"$kde_htmldir\" \
13476
 
        kde_appsdir=\"$kde_appsdir\" \
13477
 
        kde_icondir=\"$kde_icondir\" \
13478
 
        kde_sounddir=\"$kde_sounddir\" \
13479
 
        kde_datadir=\"$kde_datadir\" \
13480
 
        kde_locale=\"$kde_locale\" \
13481
 
        kde_cgidir=\"$kde_cgidir\" \
13482
 
        kde_confdir=\"$kde_confdir\" \
13483
 
        kde_mimedir=\"$kde_mimedir\" \
13484
 
        kde_toolbardir=\"$kde_toolbardir\" \
13485
 
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
13486
 
        kde_templatesdir=\"$kde_templatesdir\" \
13487
 
        kde_bindir=\"$kde_bindir\" \
13488
 
        kde_servicesdir=\"$kde_servicesdir\" \
13489
 
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
13490
 
        kde_moduledir=\"$kde_moduledir\" \
13491
 
        kde_styledir=\"$kde_styledir\" \
13492
 
        kde_widgetdir=\"$kde_widgetdir\" \
13493
 
        xdg_appsdir=\"$xdg_appsdir\" \
13494
 
        xdg_directorydir=\"$xdg_directorydir\" \
13495
 
        kde_result=defaults"
13496
 
 
13497
 
 
13498
 
else
13499
 
 
13500
 
  if test $kde_qtver = 1; then
13501
 
     echo "$as_me:$LINENO: result: compiling" >&5
13502
 
echo "${ECHO_T}compiling" >&6
13503
 
 
13504
 
 
13505
 
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
13506
 
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
13507
 
 
13508
 
 
13509
 
     ac_ext=cc
13510
 
ac_cpp='$CXXCPP $CPPFLAGS'
13511
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13514
 
 
13515
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13516
 
 
13517
 
 
13518
 
cat > conftest.$ac_ext <<EOF
13519
 
#ifdef STDC_HEADERS
13520
 
# include <stdlib.h>
13521
 
#endif
13522
 
#include <stdio.h>
13523
 
#include "confdefs.h"
13524
 
#include <kapp.h>
13525
 
 
13526
 
int main() {
13527
 
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
13528
 
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
13529
 
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
13530
 
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
13531
 
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
13532
 
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
13533
 
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
13534
 
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
13535
 
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
13536
 
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
13537
 
    printf("kde_wallpaperdir=\\"%s\\"\n",
13538
 
        KApplication::kde_wallpaperdir().data());
13539
 
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
13540
 
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
13541
 
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
13542
 
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
13543
 
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
13544
 
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
13545
 
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
13546
 
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
13547
 
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
13548
 
    return 0;
13549
 
    }
13550
 
EOF
13551
 
 
13552
 
 ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
13553
 
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554
 
  (eval $ac_compile) 2>&5
13555
 
  ac_status=$?
13556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557
 
  (exit $ac_status); }; then
13558
 
   echo "$as_me:$LINENO: result: yes" >&5
13559
 
echo "${ECHO_T}yes" >&6
13560
 
 else
13561
 
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
13562
 
Check, if you installed the KDE header files correctly.
13563
 
For more details about this problem, look at the end of config.log." >&5
13564
 
echo "$as_me: error: your system is not able to compile a small KDE application!
13565
 
Check, if you installed the KDE header files correctly.
13566
 
For more details about this problem, look at the end of config.log." >&2;}
13567
 
   { (exit 1); exit 1; }; }
13568
 
  fi
13569
 
 
13570
 
  ac_ext=c
13571
 
ac_cpp='$CPP $CPPFLAGS'
13572
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13573
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13574
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13575
 
 
13576
 
 
13577
 
 
13578
 
  KDE_TEST_RPATH=
13579
 
 
13580
 
  if test -n "$USE_RPATH"; then
13581
 
 
13582
 
     if test -n "$kde_libraries"; then
13583
 
       KDE_TEST_RPATH="-R $kde_libraries"
13584
 
     fi
13585
 
 
13586
 
     if test -n "$qt_libraries"; then
13587
 
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
13588
 
     fi
13589
 
 
13590
 
     if test -n "$x_libraries"; then
13591
 
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
13592
 
     fi
13593
 
 
13594
 
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
13595
 
  fi
13596
 
 
13597
 
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
13598
 
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
13599
 
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
13600
 
 
13601
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602
 
  (eval $ac_link) 2>&5
13603
 
  ac_status=$?
13604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605
 
  (exit $ac_status); } && test -s conftest; then
13606
 
  echo "$as_me:$LINENO: result: yes" >&5
13607
 
echo "${ECHO_T}yes" >&6
13608
 
else
13609
 
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
13610
 
Check, if your compiler is installed correctly and if you have used the
13611
 
same compiler to compile Qt and kdelibs as you did use now.
13612
 
For more details about this problem, look at the end of config.log." >&5
13613
 
echo "$as_me: error: your system fails at linking a small KDE application!
13614
 
Check, if your compiler is installed correctly and if you have used the
13615
 
same compiler to compile Qt and kdelibs as you did use now.
13616
 
For more details about this problem, look at the end of config.log." >&2;}
13617
 
   { (exit 1); exit 1; }; }
13618
 
fi
13619
 
 
13620
 
if eval `KDEDIR= ./conftest 2>&5`; then
13621
 
  kde_result=done
13622
 
else
13623
 
  kde_result=problems
13624
 
fi
13625
 
 
13626
 
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
13627
 
kde_have_all_paths=yes
13628
 
 
13629
 
 
13630
 
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
13631
 
        kde_htmldir=\"$kde_htmldir\" \
13632
 
        kde_appsdir=\"$kde_appsdir\" \
13633
 
        kde_icondir=\"$kde_icondir\" \
13634
 
        kde_sounddir=\"$kde_sounddir\" \
13635
 
        kde_datadir=\"$kde_datadir\" \
13636
 
        kde_locale=\"$kde_locale\" \
13637
 
        kde_cgidir=\"$kde_cgidir\" \
13638
 
        kde_confdir=\"$kde_confdir\" \
13639
 
        kde_mimedir=\"$kde_mimedir\" \
13640
 
        kde_toolbardir=\"$kde_toolbardir\" \
13641
 
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
13642
 
        kde_templatesdir=\"$kde_templatesdir\" \
13643
 
        kde_bindir=\"$kde_bindir\" \
13644
 
        kde_servicesdir=\"$kde_servicesdir\" \
13645
 
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
13646
 
        kde_moduledir=\"$kde_moduledir\" \
13647
 
        kde_styledir=\"$kde_styledir\" \
13648
 
        kde_widgetdir=\"$kde_widgetdir\" \
13649
 
        xdg_appsdir=\"$xdg_appsdir\" \
13650
 
        xdg_directorydir=\"$xdg_directorydir\" \
13651
 
        kde_result=$kde_result"
13652
 
 
13653
 
 
13654
 
 
13655
 
  else
13656
 
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
13657
 
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
13658
 
   { (exit 1); exit 1; }; }
13659
 
  fi
13660
 
 
13661
 
fi
13662
 
 
13663
 
  kde_cached_paths=no
13664
 
 
13665
 
fi
13666
 
 
13667
 
eval "$kde_cv_all_paths"
13668
 
 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
13669
 
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
13670
 
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
13671
 
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
13672
 
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
13673
 
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
13674
 
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
13675
 
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
13676
 
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
13677
 
   test -z "$xdg_appsdir" || test -z "xdg_directorydir"
13678
 
   test "x$kde_have_all_paths" != "xyes"; then
13679
 
     kde_have_all_paths=no
13680
 
  fi
13681
 
 
13682
 
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
13683
 
  # wrong values were cached, may be, we can set better ones
13684
 
  kde_result=
13685
 
  kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
13686
 
  kde_datadir= kde_locale=  kde_cgidir=  kde_confdir=
13687
 
  kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
13688
 
  kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
13689
 
  kde_have_all_paths=
13690
 
  kde_styledir=
13691
 
  kde_widgetdir=
13692
 
  xdg_appsdir = xdg_directorydir=
13693
 
 
13694
 
if test "$ac_use_path_checking" = "default"; then
13695
 
 
13696
 
  if test -z "$kde_htmldir"; then
13697
 
    kde_htmldir='\${prefix}/share/doc/HTML'
13698
 
  fi
13699
 
  if test -z "$kde_appsdir"; then
13700
 
    kde_appsdir='\${prefix}/share/applnk'
13701
 
  fi
13702
 
  if test -z "$kde_icondir"; then
13703
 
    kde_icondir='\${prefix}/share/icons'
13704
 
  fi
13705
 
  if test -z "$kde_sounddir"; then
13706
 
    kde_sounddir='\${prefix}/share/sounds'
13707
 
  fi
13708
 
  if test -z "$kde_datadir"; then
13709
 
    kde_datadir='\${prefix}/share/apps'
13710
 
  fi
13711
 
  if test -z "$kde_locale"; then
13712
 
    kde_locale='\${prefix}/share/locale'
13713
 
  fi
13714
 
  if test -z "$kde_cgidir"; then
13715
 
    kde_cgidir='\${exec_prefix}/cgi-bin'
13716
 
  fi
13717
 
  if test -z "$kde_confdir"; then
13718
 
    kde_confdir='\${prefix}/share/config'
13719
 
  fi
13720
 
  if test -z "$kde_mimedir"; then
13721
 
    kde_mimedir='\${prefix}/share/mimelnk'
13722
 
  fi
13723
 
  if test -z "$kde_toolbardir"; then
13724
 
    kde_toolbardir='\${prefix}/share/toolbar'
13725
 
  fi
13726
 
  if test -z "$kde_wallpaperdir"; then
13727
 
    kde_wallpaperdir='\${prefix}/share/wallpapers'
13728
 
  fi
13729
 
  if test -z "$kde_templatesdir"; then
13730
 
    kde_templatesdir='\${prefix}/share/templates'
13731
 
  fi
13732
 
  if test -z "$kde_bindir"; then
13733
 
    kde_bindir='\${exec_prefix}/bin'
13734
 
  fi
13735
 
  if test -z "$kde_servicesdir"; then
13736
 
    kde_servicesdir='\${prefix}/share/services'
13737
 
  fi
13738
 
  if test -z "$kde_servicetypesdir"; then
13739
 
    kde_servicetypesdir='\${prefix}/share/servicetypes'
13740
 
  fi
13741
 
  if test -z "$kde_moduledir"; then
13742
 
    if test "$kde_qtver" = "2"; then
13743
 
      kde_moduledir='\${libdir}/kde2'
13744
 
    else
13745
 
      kde_moduledir='\${libdir}/kde3'
13746
 
    fi
13747
 
  fi
13748
 
  if test -z "$kde_styledir"; then
13749
 
    kde_styledir='\${libdir}/kde3/plugins/styles'
13750
 
  fi
13751
 
  if test -z "$kde_widgetdir"; then
13752
 
    kde_widgetdir='\${libdir}/kde3/plugins/designer'
13753
 
  fi
13754
 
  if test -z "$xdg_appsdir"; then
13755
 
    xdg_appsdir='\${datadir}/applications'
13756
 
  fi
13757
 
  if test -z "$xdg_directorydir"; then
13758
 
    xdg_directorydir='\${datadir}/desktop-directories'
13759
 
  fi
13760
 
 
13761
 
 
13762
 
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
13763
 
        kde_htmldir=\"$kde_htmldir\" \
13764
 
        kde_appsdir=\"$kde_appsdir\" \
13765
 
        kde_icondir=\"$kde_icondir\" \
13766
 
        kde_sounddir=\"$kde_sounddir\" \
13767
 
        kde_datadir=\"$kde_datadir\" \
13768
 
        kde_locale=\"$kde_locale\" \
13769
 
        kde_cgidir=\"$kde_cgidir\" \
13770
 
        kde_confdir=\"$kde_confdir\" \
13771
 
        kde_mimedir=\"$kde_mimedir\" \
13772
 
        kde_toolbardir=\"$kde_toolbardir\" \
13773
 
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
13774
 
        kde_templatesdir=\"$kde_templatesdir\" \
13775
 
        kde_bindir=\"$kde_bindir\" \
13776
 
        kde_servicesdir=\"$kde_servicesdir\" \
13777
 
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
13778
 
        kde_moduledir=\"$kde_moduledir\" \
13779
 
        kde_styledir=\"$kde_styledir\" \
13780
 
        kde_widgetdir=\"$kde_widgetdir\" \
13781
 
        xdg_appsdir=\"$xdg_appsdir\" \
13782
 
        xdg_directorydir=\"$xdg_directorydir\" \
13783
 
        kde_result=defaults"
13784
 
 
13785
 
 
13786
 
else
13787
 
 
13788
 
  if test $kde_qtver = 1; then
13789
 
     echo "$as_me:$LINENO: result: compiling" >&5
13790
 
echo "${ECHO_T}compiling" >&6
13791
 
 
13792
 
 
13793
 
    echo "$as_me:$LINENO: checking for KDE headers installed" >&5
13794
 
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
13795
 
 
13796
 
 
13797
 
     ac_ext=cc
13798
 
ac_cpp='$CXXCPP $CPPFLAGS'
13799
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13800
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13801
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13802
 
 
13803
 
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13804
 
 
13805
 
 
13806
 
cat > conftest.$ac_ext <<EOF
13807
 
#ifdef STDC_HEADERS
13808
 
# include <stdlib.h>
13809
 
#endif
13810
 
#include <stdio.h>
13811
 
#include "confdefs.h"
13812
 
#include <kapp.h>
13813
 
 
13814
 
int main() {
13815
 
    printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
13816
 
    printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
13817
 
    printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
13818
 
    printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
13819
 
    printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
13820
 
    printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
13821
 
    printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
13822
 
    printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
13823
 
    printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
13824
 
    printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
13825
 
    printf("kde_wallpaperdir=\\"%s\\"\n",
13826
 
        KApplication::kde_wallpaperdir().data());
13827
 
    printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
13828
 
    printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
13829
 
    printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
13830
 
    printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
13831
 
    printf("kde_moduledir=\\"/tmp/dummy\\"\n");
13832
 
    printf("kde_styledir=\\"/tmp/dummy\\"\n");
13833
 
    printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
13834
 
    printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
13835
 
    printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
13836
 
    return 0;
13837
 
    }
13838
 
EOF
13839
 
 
13840
 
 ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
13841
 
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842
 
  (eval $ac_compile) 2>&5
13843
 
  ac_status=$?
13844
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845
 
  (exit $ac_status); }; then
13846
 
   echo "$as_me:$LINENO: result: yes" >&5
13847
 
echo "${ECHO_T}yes" >&6
13848
 
 else
13849
 
   { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
13850
 
Check, if you installed the KDE header files correctly.
13851
 
For more details about this problem, look at the end of config.log." >&5
13852
 
echo "$as_me: error: your system is not able to compile a small KDE application!
13853
 
Check, if you installed the KDE header files correctly.
13854
 
For more details about this problem, look at the end of config.log." >&2;}
13855
 
   { (exit 1); exit 1; }; }
13856
 
  fi
13857
 
 
13858
 
  ac_ext=c
13859
 
ac_cpp='$CPP $CPPFLAGS'
13860
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13863
 
 
13864
 
 
13865
 
 
13866
 
  KDE_TEST_RPATH=
13867
 
 
13868
 
  if test -n "$USE_RPATH"; then
13869
 
 
13870
 
     if test -n "$kde_libraries"; then
13871
 
       KDE_TEST_RPATH="-R $kde_libraries"
13872
 
     fi
13873
 
 
13874
 
     if test -n "$qt_libraries"; then
13875
 
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
13876
 
     fi
13877
 
 
13878
 
     if test -n "$x_libraries"; then
13879
 
       KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
13880
 
     fi
13881
 
 
13882
 
     KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
13883
 
  fi
13884
 
 
13885
 
echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
13886
 
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
13887
 
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
13888
 
 
13889
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890
 
  (eval $ac_link) 2>&5
13891
 
  ac_status=$?
13892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893
 
  (exit $ac_status); } && test -s conftest; then
13894
 
  echo "$as_me:$LINENO: result: yes" >&5
13895
 
echo "${ECHO_T}yes" >&6
13896
 
else
13897
 
  { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
13898
 
Check, if your compiler is installed correctly and if you have used the
13899
 
same compiler to compile Qt and kdelibs as you did use now.
13900
 
For more details about this problem, look at the end of config.log." >&5
13901
 
echo "$as_me: error: your system fails at linking a small KDE application!
13902
 
Check, if your compiler is installed correctly and if you have used the
13903
 
same compiler to compile Qt and kdelibs as you did use now.
13904
 
For more details about this problem, look at the end of config.log." >&2;}
13905
 
   { (exit 1); exit 1; }; }
13906
 
fi
13907
 
 
13908
 
if eval `KDEDIR= ./conftest 2>&5`; then
13909
 
  kde_result=done
13910
 
else
13911
 
  kde_result=problems
13912
 
fi
13913
 
 
13914
 
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
13915
 
kde_have_all_paths=yes
13916
 
 
13917
 
 
13918
 
  kde_cv_all_paths="kde_have_all_paths=\"yes\" \
13919
 
        kde_htmldir=\"$kde_htmldir\" \
13920
 
        kde_appsdir=\"$kde_appsdir\" \
13921
 
        kde_icondir=\"$kde_icondir\" \
13922
 
        kde_sounddir=\"$kde_sounddir\" \
13923
 
        kde_datadir=\"$kde_datadir\" \
13924
 
        kde_locale=\"$kde_locale\" \
13925
 
        kde_cgidir=\"$kde_cgidir\" \
13926
 
        kde_confdir=\"$kde_confdir\" \
13927
 
        kde_mimedir=\"$kde_mimedir\" \
13928
 
        kde_toolbardir=\"$kde_toolbardir\" \
13929
 
        kde_wallpaperdir=\"$kde_wallpaperdir\" \
13930
 
        kde_templatesdir=\"$kde_templatesdir\" \
13931
 
        kde_bindir=\"$kde_bindir\" \
13932
 
        kde_servicesdir=\"$kde_servicesdir\" \
13933
 
        kde_servicetypesdir=\"$kde_servicetypesdir\" \
13934
 
        kde_moduledir=\"$kde_moduledir\" \
13935
 
        kde_styledir=\"$kde_styledir\" \
13936
 
        kde_widgetdir=\"$kde_widgetdir\" \
13937
 
        xdg_appsdir=\"$xdg_appsdir\" \
13938
 
        xdg_directorydir=\"$xdg_directorydir\" \
13939
 
        kde_result=$kde_result"
13940
 
 
13941
 
 
13942
 
 
13943
 
  else
13944
 
     { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
13945
 
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
13946
 
   { (exit 1); exit 1; }; }
13947
 
  fi
13948
 
 
13949
 
fi
13950
 
 
13951
 
  eval "$kde_cv_all_paths"
13952
 
   if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
13953
 
   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
13954
 
   test -z "$kde_datadir" || test -z "$kde_locale"  ||
13955
 
   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
13956
 
   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
13957
 
   test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
13958
 
   test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
13959
 
   test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
13960
 
   test -z "$kde_styledir" || test -z "kde_widgetdir" ||
13961
 
   test -z "$xdg_appsdir" || test -z "xdg_directorydir"
13962
 
   test "x$kde_have_all_paths" != "xyes"; then
13963
 
     kde_have_all_paths=no
13964
 
  fi
13965
 
 
13966
 
  kde_result="$kde_result (cache overridden)"
13967
 
fi
13968
 
if test "$kde_have_all_paths" = "no"; then
13969
 
  { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
13970
 
Since it had compiled and linked before, it must be a strange problem on your system.
13971
 
Look at config.log for details. If you are not able to fix this, look at
13972
 
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
13973
 
(If you're using an egcs version on Linux, you may update binutils!)
13974
 
" >&5
13975
 
echo "$as_me: error: configure could not run a little KDE program to test the environment.
13976
 
Since it had compiled and linked before, it must be a strange problem on your system.
13977
 
Look at config.log for details. If you are not able to fix this, look at
13978
 
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
13979
 
(If you're using an egcs version on Linux, you may update binutils!)
13980
 
" >&2;}
13981
 
   { (exit 1); exit 1; }; }
13982
 
else
13983
 
  rm -f conftest*
13984
 
  echo "$as_me:$LINENO: result: $kde_result" >&5
13985
 
echo "${ECHO_T}$kde_result" >&6
13986
 
fi
13987
 
 
13988
 
bindir=$kde_bindir
13989
 
 
13990
 
 
13991
 
 
13992
 
        kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
13993
 
        test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
13994
 
        if test -n "$KDEDIRS"; then
13995
 
           kde_save_IFS=$IFS
13996
 
           IFS=:
13997
 
           for dir in $KDEDIRS; do
13998
 
                kde_default_bindirs="$dir/bin $kde_default_bindirs "
13999
 
           done
14000
 
           IFS=$kde_save_IFS
14001
 
        fi
14002
 
        kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
14003
 
 
14004
 
   echo "$as_me:$LINENO: checking for dcopidl" >&5
14005
 
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
14006
 
   if test -n "$DCOPIDL"; then
14007
 
        kde_cv_path="$DCOPIDL";
14008
 
   else
14009
 
        kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
14010
 
 
14011
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
14012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14013
 
else
14014
 
 
14015
 
        kde_cv_path="NONE"
14016
 
        dirs="$kde_default_bindirs"
14017
 
        kde_save_IFS=$IFS
14018
 
        IFS=':'
14019
 
        for dir in $PATH; do
14020
 
          dirs="$dirs $dir"
14021
 
        done
14022
 
        IFS=$kde_save_IFS
14023
 
 
14024
 
        for dir in $dirs; do
14025
 
          if test -x "$dir/dcopidl"; then
14026
 
            if test -n ""
14027
 
            then
14028
 
              evalstr="$dir/dcopidl  2>&1 "
14029
 
              if eval $evalstr; then
14030
 
                kde_cv_path="$dir/dcopidl"
14031
 
                break
14032
 
              fi
14033
 
            else
14034
 
                kde_cv_path="$dir/dcopidl"
14035
 
                break
14036
 
            fi
14037
 
          fi
14038
 
        done
14039
 
 
14040
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
14041
 
 
14042
 
 
14043
 
fi
14044
 
 
14045
 
 
14046
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
14047
 
 
14048
 
   fi
14049
 
 
14050
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
14051
 
      echo "$as_me:$LINENO: result: not found" >&5
14052
 
echo "${ECHO_T}not found" >&6
14053
 
 
14054
 
    { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
14055
 
Please check whether you installed KDE correctly.
14056
 
" >&5
14057
 
echo "$as_me: error: The important program dcopidl was not found!
14058
 
Please check whether you installed KDE correctly.
14059
 
" >&2;}
14060
 
   { (exit 1); exit 1; }; }
14061
 
 
14062
 
   else
14063
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14064
 
echo "${ECHO_T}$kde_cv_path" >&6
14065
 
      DCOPIDL=$kde_cv_path
14066
 
 
14067
 
   fi
14068
 
 
14069
 
 
14070
 
   echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
14071
 
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6
14072
 
   if test -n "$DCOPIDL2CPP"; then
14073
 
        kde_cv_path="$DCOPIDL2CPP";
14074
 
   else
14075
 
        kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
14076
 
 
14077
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
14078
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14079
 
else
14080
 
 
14081
 
        kde_cv_path="NONE"
14082
 
        dirs="$kde_default_bindirs"
14083
 
        kde_save_IFS=$IFS
14084
 
        IFS=':'
14085
 
        for dir in $PATH; do
14086
 
          dirs="$dirs $dir"
14087
 
        done
14088
 
        IFS=$kde_save_IFS
14089
 
 
14090
 
        for dir in $dirs; do
14091
 
          if test -x "$dir/dcopidl2cpp"; then
14092
 
            if test -n ""
14093
 
            then
14094
 
              evalstr="$dir/dcopidl2cpp  2>&1 "
14095
 
              if eval $evalstr; then
14096
 
                kde_cv_path="$dir/dcopidl2cpp"
14097
 
                break
14098
 
              fi
14099
 
            else
14100
 
                kde_cv_path="$dir/dcopidl2cpp"
14101
 
                break
14102
 
            fi
14103
 
          fi
14104
 
        done
14105
 
 
14106
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
14107
 
 
14108
 
 
14109
 
fi
14110
 
 
14111
 
 
14112
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
14113
 
 
14114
 
   fi
14115
 
 
14116
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
14117
 
      echo "$as_me:$LINENO: result: not found" >&5
14118
 
echo "${ECHO_T}not found" >&6
14119
 
 
14120
 
    { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
14121
 
Please check whether you installed KDE correctly.
14122
 
" >&5
14123
 
echo "$as_me: error: The important program dcopidl2cpp was not found!
14124
 
Please check whether you installed KDE correctly.
14125
 
" >&2;}
14126
 
   { (exit 1); exit 1; }; }
14127
 
 
14128
 
   else
14129
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14130
 
echo "${ECHO_T}$kde_cv_path" >&6
14131
 
      DCOPIDL2CPP=$kde_cv_path
14132
 
 
14133
 
   fi
14134
 
 
14135
 
 
14136
 
   echo "$as_me:$LINENO: checking for mcopidl" >&5
14137
 
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
14138
 
   if test -n "$MCOPIDL"; then
14139
 
        kde_cv_path="$MCOPIDL";
14140
 
   else
14141
 
        kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
14142
 
 
14143
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
14144
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14145
 
else
14146
 
 
14147
 
        kde_cv_path="NONE"
14148
 
        dirs="$kde_default_bindirs"
14149
 
        kde_save_IFS=$IFS
14150
 
        IFS=':'
14151
 
        for dir in $PATH; do
14152
 
          dirs="$dirs $dir"
14153
 
        done
14154
 
        IFS=$kde_save_IFS
14155
 
 
14156
 
        for dir in $dirs; do
14157
 
          if test -x "$dir/mcopidl"; then
14158
 
            if test -n ""
14159
 
            then
14160
 
              evalstr="$dir/mcopidl  2>&1 "
14161
 
              if eval $evalstr; then
14162
 
                kde_cv_path="$dir/mcopidl"
14163
 
                break
14164
 
              fi
14165
 
            else
14166
 
                kde_cv_path="$dir/mcopidl"
14167
 
                break
14168
 
            fi
14169
 
          fi
14170
 
        done
14171
 
 
14172
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
14173
 
 
14174
 
 
14175
 
fi
14176
 
 
14177
 
 
14178
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
14179
 
 
14180
 
   fi
14181
 
 
14182
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
14183
 
      echo "$as_me:$LINENO: result: not found" >&5
14184
 
echo "${ECHO_T}not found" >&6
14185
 
 
14186
 
    { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
14187
 
Please check whether you installed aRts correctly.
14188
 
" >&5
14189
 
echo "$as_me: error: The important program mcopidl was not found!
14190
 
Please check whether you installed aRts correctly.
14191
 
" >&2;}
14192
 
   { (exit 1); exit 1; }; }
14193
 
 
14194
 
   else
14195
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14196
 
echo "${ECHO_T}$kde_cv_path" >&6
14197
 
      MCOPIDL=$kde_cv_path
14198
 
 
14199
 
   fi
14200
 
 
14201
 
 
14202
 
   echo "$as_me:$LINENO: checking for artsc-config" >&5
14203
 
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
14204
 
   if test -n "$ARTSCCONFIG"; then
14205
 
        kde_cv_path="$ARTSCCONFIG";
14206
 
   else
14207
 
        kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
14208
 
 
14209
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
14210
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14211
 
else
14212
 
 
14213
 
        kde_cv_path="NONE"
14214
 
        dirs="$kde_default_bindirs"
14215
 
        kde_save_IFS=$IFS
14216
 
        IFS=':'
14217
 
        for dir in $PATH; do
14218
 
          dirs="$dirs $dir"
14219
 
        done
14220
 
        IFS=$kde_save_IFS
14221
 
 
14222
 
        for dir in $dirs; do
14223
 
          if test -x "$dir/artsc-config"; then
14224
 
            if test -n ""
14225
 
            then
14226
 
              evalstr="$dir/artsc-config  2>&1 "
14227
 
              if eval $evalstr; then
14228
 
                kde_cv_path="$dir/artsc-config"
14229
 
                break
14230
 
              fi
14231
 
            else
14232
 
                kde_cv_path="$dir/artsc-config"
14233
 
                break
14234
 
            fi
14235
 
          fi
14236
 
        done
14237
 
 
14238
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
14239
 
 
14240
 
 
14241
 
fi
14242
 
 
14243
 
 
14244
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
14245
 
 
14246
 
   fi
14247
 
 
14248
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
14249
 
      echo "$as_me:$LINENO: result: not found" >&5
14250
 
echo "${ECHO_T}not found" >&6
14251
 
 
14252
 
    { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
14253
 
Please check whether you installed aRts correctly.
14254
 
" >&5
14255
 
echo "$as_me: error: The important program artsc-config was not found!
14256
 
Please check whether you installed aRts correctly.
14257
 
" >&2;}
14258
 
   { (exit 1); exit 1; }; }
14259
 
 
14260
 
   else
14261
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14262
 
echo "${ECHO_T}$kde_cv_path" >&6
14263
 
      ARTSCCONFIG=$kde_cv_path
14264
 
 
14265
 
   fi
14266
 
 
14267
 
 
14268
 
   echo "$as_me:$LINENO: checking for kde-config" >&5
14269
 
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
14270
 
   if test -n "$KDECONFIG"; then
14271
 
        kde_cv_path="$KDECONFIG";
14272
 
   else
14273
 
        kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
14274
 
 
14275
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
14276
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14277
 
else
14278
 
 
14279
 
        kde_cv_path="NONE"
14280
 
        dirs="$kde_default_bindirs"
14281
 
        kde_save_IFS=$IFS
14282
 
        IFS=':'
14283
 
        for dir in $PATH; do
14284
 
          dirs="$dirs $dir"
14285
 
        done
14286
 
        IFS=$kde_save_IFS
14287
 
 
14288
 
        for dir in $dirs; do
14289
 
          if test -x "$dir/kde-config"; then
14290
 
            if test -n ""
14291
 
            then
14292
 
              evalstr="$dir/kde-config  2>&1 "
14293
 
              if eval $evalstr; then
14294
 
                kde_cv_path="$dir/kde-config"
14295
 
                break
14296
 
              fi
14297
 
            else
14298
 
                kde_cv_path="$dir/kde-config"
14299
 
                break
14300
 
            fi
14301
 
          fi
14302
 
        done
14303
 
 
14304
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
14305
 
 
14306
 
 
14307
 
fi
14308
 
 
14309
 
 
14310
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
14311
 
 
14312
 
   fi
14313
 
 
14314
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
14315
 
      echo "$as_me:$LINENO: result: not found" >&5
14316
 
echo "${ECHO_T}not found" >&6
14317
 
 
14318
 
   else
14319
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14320
 
echo "${ECHO_T}$kde_cv_path" >&6
14321
 
      KDECONFIG=$kde_cv_path
14322
 
 
14323
 
   fi
14324
 
 
14325
 
 
14326
 
   echo "$as_me:$LINENO: checking for meinproc" >&5
14327
 
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
14328
 
   if test -n "$MEINPROC"; then
14329
 
        kde_cv_path="$MEINPROC";
14330
 
   else
14331
 
        kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
14332
 
 
14333
 
        if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
14334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14335
 
else
14336
 
 
14337
 
        kde_cv_path="NONE"
14338
 
        dirs="$kde_default_bindirs"
14339
 
        kde_save_IFS=$IFS
14340
 
        IFS=':'
14341
 
        for dir in $PATH; do
14342
 
          dirs="$dirs $dir"
14343
 
        done
14344
 
        IFS=$kde_save_IFS
14345
 
 
14346
 
        for dir in $dirs; do
14347
 
          if test -x "$dir/meinproc"; then
14348
 
            if test -n ""
14349
 
            then
14350
 
              evalstr="$dir/meinproc  2>&1 "
14351
 
              if eval $evalstr; then
14352
 
                kde_cv_path="$dir/meinproc"
14353
 
                break
14354
 
              fi
14355
 
            else
14356
 
                kde_cv_path="$dir/meinproc"
14357
 
                break
14358
 
            fi
14359
 
          fi
14360
 
        done
14361
 
 
14362
 
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
14363
 
 
14364
 
 
14365
 
fi
14366
 
 
14367
 
 
14368
 
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
14369
 
 
14370
 
   fi
14371
 
 
14372
 
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
14373
 
      echo "$as_me:$LINENO: result: not found" >&5
14374
 
echo "${ECHO_T}not found" >&6
14375
 
 
14376
 
   else
14377
 
      echo "$as_me:$LINENO: result: $kde_cv_path" >&5
14378
 
echo "${ECHO_T}$kde_cv_path" >&6
14379
 
      MEINPROC=$kde_cv_path
14380
 
 
14381
 
   fi
14382
 
 
14383
 
 
14384
 
        if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
14385
 
            kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
14386
 
            test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
14387
 
 
14388
 
KDE_XSL_STYLESHEET=NO
14389
 
for i in $kde_sharedirs;
14390
 
do
14391
 
  for j in apps/ksgmltools2/customization/kde-chunk.xsl;
14392
 
  do
14393
 
    echo "configure: 14395: $i/$j" >&5
14394
 
    if test -r "$i/$j"; then
14395
 
      echo "taking that" >&5
14396
 
      KDE_XSL_STYLESHEET=$i
14397
 
      break 2
14398
 
    fi
14399
 
  done
14400
 
done
14401
 
 
14402
 
            if test "$KDE_XSL_STYLESHEET" = "NO"; then
14403
 
                KDE_XSL_STYLESHEET=""
14404
 
            else
14405
 
                KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
14406
 
            fi
14407
 
        fi
14408
 
 
14409
 
        DCOP_DEPENDENCIES='$(DCOPIDL)'
14410
 
 
14411
 
 
14412
 
 
14413
 
 
14414
 
 
14415
 
 
14416
 
 
14417
 
 
14418
 
 
14419
 
        if test -x "$KDECONFIG"; then # it can be "compiled"
14420
 
          kde_libs_prefix=`$KDECONFIG --prefix`
14421
 
          if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
14422
 
               { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
14423
 
                          This means it has been moved since you installed it.
14424
 
                          This won't work. Please recompile kdelibs for the new prefix.
14425
 
                          " >&5
14426
 
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
14427
 
                          This means it has been moved since you installed it.
14428
 
                          This won't work. Please recompile kdelibs for the new prefix.
14429
 
                          " >&2;}
14430
 
   { (exit 1); exit 1; }; }
14431
 
           fi
14432
 
           kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
14433
 
        else
14434
 
           kde_libs_prefix='$(prefix)'
14435
 
           kde_libs_htmldir='$(kde_htmldir)'
14436
 
        fi
14437
 
 
14438
 
 
14439
 
 
14440
 
 
14441
 
 
14442
 
 
14443
 
 
14444
 
 
14445
 
 
14446
 
 
14447
 
 
14448
 
 
14449
 
 
14450
 
 
14451
 
 
14452
 
 
14453
 
 
14454
 
 
14455
 
 
14456
 
 
14457
 
 
14458
 
 
14459
 
 
14460
 
 
14461
 
 
14462
 
if test "$kde_qtver" = 1; then
14463
 
  kde_minidir="$kde_icondir/mini"
14464
 
else
14465
 
# for KDE 1 - this breaks KDE2 apps using minidir, but
14466
 
# that's the plan ;-/
14467
 
  kde_minidir="/dev/null"
14468
 
fi
14469
 
 
14470
 
 
14471
 
 
14472
 
 
14473
 
 
14474
 
 
14475
 
if test $kde_qtver = 3; then
14476
 
   LIB_KDECORE="-lkdecore"
14477
 
 
14478
 
   LIB_KDEUI="-lkdeui"
14479
 
 
14480
 
   LIB_KIO="-lkio"
14481
 
 
14482
 
   LIB_SMB="-lsmb"
14483
 
 
14484
 
   LIB_KAB="-lkab"
14485
 
 
14486
 
   LIB_KABC="-lkabc"
14487
 
 
14488
 
   LIB_KHTML="-lkhtml"
14489
 
 
14490
 
   LIB_KSPELL="-lkspell"
14491
 
 
14492
 
   LIB_KPARTS="-lkparts"
14493
 
 
14494
 
   LIB_KDEPRINT="-lkdeprint"
14495
 
 
14496
 
# these are for backward compatibility
14497
 
   LIB_KSYCOCA="-lkio"
14498
 
 
14499
 
   LIB_KFILE="-lkio"
14500
 
 
14501
 
elif test $kde_qtver = 2; then
14502
 
   LIB_KDECORE="-lkdecore"
14503
 
 
14504
 
   LIB_KDEUI="-lkdeui"
14505
 
 
14506
 
   LIB_KIO="-lkio"
14507
 
 
14508
 
   LIB_KSYCOCA="-lksycoca"
14509
 
 
14510
 
   LIB_SMB="-lsmb"
14511
 
 
14512
 
   LIB_KFILE="-lkfile"
14513
 
 
14514
 
   LIB_KAB="-lkab"
14515
 
 
14516
 
   LIB_KHTML="-lkhtml"
14517
 
 
14518
 
   LIB_KSPELL="-lkspell"
14519
 
 
14520
 
   LIB_KPARTS="-lkparts"
14521
 
 
14522
 
   LIB_KDEPRINT="-lkdeprint"
14523
 
 
14524
 
else
14525
 
   LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
14526
 
 
14527
 
   LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
14528
 
 
14529
 
   LIB_KFM="-lkfm $(LIB_KDECORE)"
14530
 
 
14531
 
   LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
14532
 
 
14533
 
   LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
14534
 
 
14535
 
fi
14536
 
 
14537
 
 
14538
 
#MIN_CONFIG(2.3)
14539
 
 
14540
 
 
14541
 
 
14542
 
 
14543
 
 
14544
 
 
14545
 
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
14546
 
 
14547
 
if test ! -s $srcdir/subdirs; then
14548
 
    TOPSUBDIRS=""
14549
 
  files=`cd $srcdir && ls -1`
14550
 
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
14551
 
  for i in $dirs; do
14552
 
    echo $i >> $srcdir/subdirs
14553
 
  done
14554
 
fi
14555
 
 
14556
 
if test -s $srcdir/inst-apps; then
14557
 
  ac_topsubdirs="`cat $srcdir/inst-apps`"
14558
 
else
14559
 
  ac_topsubdirs="`cat $srcdir/subdirs`"
14560
 
fi
14561
 
 
14562
 
for i in $ac_topsubdirs; do
14563
 
  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
14564
 
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
14565
 
  if test -d $srcdir/$i; then
14566
 
    install_it="yes"
14567
 
    for j in $DO_NOT_COMPILE; do
14568
 
      if test $i = $j; then
14569
 
        install_it="no"
14570
 
      fi
14571
 
    done
14572
 
  else
14573
 
    install_it="no"
14574
 
  fi
14575
 
  echo "$as_me:$LINENO: result: $install_it" >&5
14576
 
echo "${ECHO_T}$install_it" >&6
14577
 
  vari=`echo $i | sed -e 's,[-+.],_,g'`
14578
 
  if test $install_it = "yes"; then
14579
 
    TOPSUBDIRS="$TOPSUBDIRS $i"
14580
 
    eval "$vari""_SUBDIR_included=yes"
14581
 
  else
14582
 
    eval "$vari""_SUBDIR_included=no"
14583
 
  fi
14584
 
done
14585
 
 
14586
 
 
14587
 
 
14588
 
ac_config_files="$ac_config_files ./Makefile doc/Makefile doc/cs/Makefile doc/en/Makefile knutclient/Makefile po/Makefile"
14589
 
cat >confcache <<\_ACEOF
14590
 
# This file is a shell script that caches the results of configure
14591
 
# tests run on this system so they can be shared between configure
14592
 
# scripts and configure runs, see configure's option --config-cache.
14593
 
# It is not useful on other systems.  If it contains results you don't
14594
 
# want to keep, you may remove or edit it.
14595
 
#
14596
 
# config.status only pays attention to the cache file if you give it
14597
 
# the --recheck option to rerun configure.
14598
 
#
14599
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
14600
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14601
 
# following values.
14602
 
 
14603
 
_ACEOF
14604
 
 
14605
 
# The following way of writing the cache mishandles newlines in values,
14606
 
# but we know of no workaround that is simple, portable, and efficient.
14607
 
# So, don't put newlines in cache variables' values.
14608
 
# Ultrix sh set writes to stderr and can't be redirected directly,
14609
 
# and sets the high bit in the cache file unless we assign to the vars.
14610
 
{
14611
 
  (set) 2>&1 |
14612
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14613
 
    *ac_space=\ *)
14614
 
      # `set' does not quote correctly, so add quotes (double-quote
14615
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14616
 
      sed -n \
14617
 
        "s/'/'\\\\''/g;
14618
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14619
 
      ;;
14620
 
    *)
14621
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14622
 
      sed -n \
14623
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14624
 
      ;;
14625
 
    esac;
14626
 
} |
14627
 
  sed '
14628
 
     t clear
14629
 
     : clear
14630
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14631
 
     t end
14632
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14633
 
     : end' >>confcache
14634
 
if cmp -s $cache_file confcache; then :; else
14635
 
  if test -w $cache_file; then
14636
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14637
 
    cat confcache >$cache_file
14638
 
  else
14639
 
    echo "not updating unwritable cache $cache_file"
14640
 
  fi
14641
 
fi
14642
 
rm -f confcache
14643
 
 
14644
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14645
 
# Let make expand exec_prefix.
14646
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14647
 
 
14648
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14649
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14650
 
# trailing colons and then remove the whole line if VPATH becomes empty
14651
 
# (actually we leave an empty line to preserve line numbers).
14652
 
if test "x$srcdir" = x.; then
14653
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
14654
 
s/:*\$(srcdir):*/:/;
14655
 
s/:*\${srcdir}:*/:/;
14656
 
s/:*@srcdir@:*/:/;
14657
 
s/^\([^=]*=[    ]*\):*/\1/;
14658
 
s/:*$//;
14659
 
s/^[^=]*=[      ]*$//;
14660
 
}'
14661
 
fi
14662
 
 
14663
 
DEFS=-DHAVE_CONFIG_H
14664
 
 
14665
 
 
14666
 
: ${CONFIG_STATUS=./config.status}
14667
 
ac_clean_files_save=$ac_clean_files
14668
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14669
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14670
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
14671
 
cat >$CONFIG_STATUS <<_ACEOF
14672
 
#! $SHELL
14673
 
# Generated by $as_me.
14674
 
# Run this file to recreate the current configuration.
14675
 
# Compiler output produced by configure, useful for debugging
14676
 
# configure, is in config.log if it exists.
14677
 
 
14678
 
debug=false
14679
 
SHELL=\${CONFIG_SHELL-$SHELL}
14680
 
_ACEOF
14681
 
 
14682
 
cat >>$CONFIG_STATUS <<\_ACEOF
14683
 
 
14684
 
## --------------------- ##
14685
 
## M4sh Initialization.  ##
14686
 
## --------------------- ##
14687
 
 
14688
 
# Be Bourne compatible
14689
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14690
 
  emulate sh
14691
 
  NULLCMD=:
14692
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14693
 
  set -o posix
14694
 
fi
14695
 
 
14696
 
# NLS nuisances.
14697
 
# Support unset when possible.
14698
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14699
 
  as_unset=unset
14700
 
else
14701
 
  as_unset=false
14702
 
fi
14703
 
 
14704
 
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14705
 
    { $as_unset LANG || test "${LANG+set}" != set; } ||
14706
 
      { LANG=C; export LANG; }
14707
 
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14708
 
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14709
 
      { LC_ALL=C; export LC_ALL; }
14710
 
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14711
 
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14712
 
      { LC_TIME=C; export LC_TIME; }
14713
 
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14714
 
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14715
 
      { LC_CTYPE=C; export LC_CTYPE; }
14716
 
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14717
 
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14718
 
      { LANGUAGE=C; export LANGUAGE; }
14719
 
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14720
 
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14721
 
      { LC_COLLATE=C; export LC_COLLATE; }
14722
 
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14723
 
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14724
 
      { LC_NUMERIC=C; export LC_NUMERIC; }
14725
 
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14726
 
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14727
 
      { LC_MESSAGES=C; export LC_MESSAGES; }
14728
 
 
14729
 
 
14730
 
# Name of the executable.
14731
 
as_me=`(basename "$0") 2>/dev/null ||
14732
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14733
 
         X"$0" : 'X\(//\)$' \| \
14734
 
         X"$0" : 'X\(/\)$' \| \
14735
 
         .     : '\(.\)' 2>/dev/null ||
14736
 
echo X/"$0" |
14737
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14738
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
14739
 
          /^X\/\(\/\).*/{ s//\1/; q; }
14740
 
          s/.*/./; q'`
14741
 
 
14742
 
# PATH needs CR, and LINENO needs CR and PATH.
14743
 
# Avoid depending upon Character Ranges.
14744
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14745
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14746
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14747
 
as_cr_digits='0123456789'
14748
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
14749
 
 
14750
 
# The user is always right.
14751
 
if test "${PATH_SEPARATOR+set}" != set; then
14752
 
  echo "#! /bin/sh" >conftest.sh
14753
 
  echo  "exit 0"   >>conftest.sh
14754
 
  chmod +x conftest.sh
14755
 
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14756
 
    PATH_SEPARATOR=';'
14757
 
  else
14758
 
    PATH_SEPARATOR=:
14759
 
  fi
14760
 
  rm -f conftest.sh
14761
 
fi
14762
 
 
14763
 
 
14764
 
  as_lineno_1=$LINENO
14765
 
  as_lineno_2=$LINENO
14766
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14767
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14768
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14769
 
  # Find who we are.  Look in the path if we contain no path at all
14770
 
  # relative or not.
14771
 
  case $0 in
14772
 
    *[\\/]* ) as_myself=$0 ;;
14773
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774
 
for as_dir in $PATH
14775
 
do
14776
 
  IFS=$as_save_IFS
14777
 
  test -z "$as_dir" && as_dir=.
14778
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14779
 
done
14780
 
 
14781
 
       ;;
14782
 
  esac
14783
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
14784
 
  # in which case we are not to be found in the path.
14785
 
  if test "x$as_myself" = x; then
14786
 
    as_myself=$0
14787
 
  fi
14788
 
  if test ! -f "$as_myself"; then
14789
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14790
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14791
 
   { (exit 1); exit 1; }; }
14792
 
  fi
14793
 
  case $CONFIG_SHELL in
14794
 
  '')
14795
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14797
 
do
14798
 
  IFS=$as_save_IFS
14799
 
  test -z "$as_dir" && as_dir=.
14800
 
  for as_base in sh bash ksh sh5; do
14801
 
         case $as_dir in
14802
 
         /*)
14803
 
           if ("$as_dir/$as_base" -c '
14804
 
  as_lineno_1=$LINENO
14805
 
  as_lineno_2=$LINENO
14806
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14807
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14808
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14809
 
             CONFIG_SHELL=$as_dir/$as_base
14810
 
             export CONFIG_SHELL
14811
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14812
 
           fi;;
14813
 
         esac
14814
 
       done
14815
 
done
14816
 
;;
14817
 
  esac
14818
 
 
14819
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14820
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
14821
 
  # line-number line before each line; the second 'sed' does the real
14822
 
  # work.  The second script uses 'N' to pair each line-number line
14823
 
  # with the numbered line, and appends trailing '-' during
14824
 
  # substitution so that $LINENO is not a special case at line end.
14825
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14826
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14827
 
  sed '=' <$as_myself |
14828
 
    sed '
14829
 
      N
14830
 
      s,$,-,
14831
 
      : loop
14832
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14833
 
      t loop
14834
 
      s,-$,,
14835
 
      s,^['$as_cr_digits']*\n,,
14836
 
    ' >$as_me.lineno &&
14837
 
  chmod +x $as_me.lineno ||
14838
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14839
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14840
 
   { (exit 1); exit 1; }; }
14841
 
 
14842
 
  # Don't try to exec as it changes $[0], causing all sort of problems
14843
 
  # (the dirname of $[0] is not the place where we might find the
14844
 
  # original and so on.  Autoconf is especially sensible to this).
14845
 
  . ./$as_me.lineno
14846
 
  # Exit status is that of the last command.
14847
 
  exit
14848
 
}
14849
 
 
14850
 
 
14851
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14852
 
  *c*,-n*) ECHO_N= ECHO_C='
14853
 
' ECHO_T='      ' ;;
14854
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14855
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14856
 
esac
14857
 
 
14858
 
if expr a : '\(a\)' >/dev/null 2>&1; then
14859
 
  as_expr=expr
14860
 
else
14861
 
  as_expr=false
14862
 
fi
14863
 
 
14864
 
rm -f conf$$ conf$$.exe conf$$.file
14865
 
echo >conf$$.file
14866
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
14867
 
  # We could just check for DJGPP; but this test a) works b) is more generic
14868
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14869
 
  if test -f conf$$.exe; then
14870
 
    # Don't use ln at all; we don't have any links
14871
 
    as_ln_s='cp -p'
14872
 
  else
14873
 
    as_ln_s='ln -s'
14874
 
  fi
14875
 
elif ln conf$$.file conf$$ 2>/dev/null; then
14876
 
  as_ln_s=ln
14877
 
else
14878
 
  as_ln_s='cp -p'
14879
 
fi
14880
 
rm -f conf$$ conf$$.exe conf$$.file
14881
 
 
14882
 
as_executable_p="test -f"
14883
 
 
14884
 
# Sed expression to map a string onto a valid CPP name.
14885
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14886
 
 
14887
 
# Sed expression to map a string onto a valid variable name.
14888
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14889
 
 
14890
 
 
14891
 
# IFS
14892
 
# We need space, tab and new line, in precisely that order.
14893
 
as_nl='
14894
 
'
14895
 
IFS="   $as_nl"
14896
 
 
14897
 
# CDPATH.
14898
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14899
 
 
14900
 
exec 6>&1
14901
 
 
14902
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
14903
 
# report actual input values of CONFIG_FILES etc. instead of their
14904
 
# values after options handling.  Logging --version etc. is OK.
14905
 
exec 5>>config.log
14906
 
{
14907
 
  echo
14908
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14909
 
## Running $as_me. ##
14910
 
_ASBOX
14911
 
} >&5
14912
 
cat >&5 <<_CSEOF
14913
 
 
14914
 
This file was extended by $as_me, which was
14915
 
generated by GNU Autoconf 2.53.  Invocation command line was
14916
 
 
14917
 
  CONFIG_FILES    = $CONFIG_FILES
14918
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
14919
 
  CONFIG_LINKS    = $CONFIG_LINKS
14920
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14921
 
  $ $0 $@
14922
 
 
14923
 
_CSEOF
14924
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14925
 
echo >&5
14926
 
_ACEOF
14927
 
 
14928
 
# Files that config.status was made for.
14929
 
if test -n "$ac_config_files"; then
14930
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14931
 
fi
14932
 
 
14933
 
if test -n "$ac_config_headers"; then
14934
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14935
 
fi
14936
 
 
14937
 
if test -n "$ac_config_links"; then
14938
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14939
 
fi
14940
 
 
14941
 
if test -n "$ac_config_commands"; then
14942
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14943
 
fi
14944
 
 
14945
 
cat >>$CONFIG_STATUS <<\_ACEOF
14946
 
 
14947
 
ac_cs_usage="\
14948
 
\`$as_me' instantiates files from templates according to the
14949
 
current configuration.
14950
 
 
14951
 
Usage: $0 [OPTIONS] [FILE]...
14952
 
 
14953
 
  -h, --help       print this help, then exit
14954
 
  -V, --version    print version number, then exit
14955
 
  -d, --debug      don't remove temporary files
14956
 
      --recheck    update $as_me by reconfiguring in the same conditions
14957
 
  --file=FILE[:TEMPLATE]
14958
 
                   instantiate the configuration file FILE
14959
 
  --header=FILE[:TEMPLATE]
14960
 
                   instantiate the configuration header FILE
14961
 
 
14962
 
Configuration files:
14963
 
$config_files
14964
 
 
14965
 
Configuration headers:
14966
 
$config_headers
14967
 
 
14968
 
Configuration commands:
14969
 
$config_commands
14970
 
 
14971
 
Report bugs to <bug-autoconf@gnu.org>."
14972
 
_ACEOF
14973
 
 
14974
 
cat >>$CONFIG_STATUS <<_ACEOF
14975
 
ac_cs_version="\\
14976
 
config.status
14977
 
configured by $0, generated by GNU Autoconf 2.53,
14978
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14979
 
 
14980
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14981
 
Free Software Foundation, Inc.
14982
 
This config.status script is free software; the Free Software Foundation
14983
 
gives unlimited permission to copy, distribute and modify it."
14984
 
srcdir=$srcdir
14985
 
INSTALL="$INSTALL"
14986
 
_ACEOF
14987
 
 
14988
 
cat >>$CONFIG_STATUS <<\_ACEOF
14989
 
# If no file are specified by the user, then we need to provide default
14990
 
# value.  By we need to know if files were specified by the user.
14991
 
ac_need_defaults=:
14992
 
while test $# != 0
14993
 
do
14994
 
  case $1 in
14995
 
  --*=*)
14996
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
14997
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14998
 
    shift
14999
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15000
 
    shift
15001
 
    ;;
15002
 
  -*);;
15003
 
  *) # This is not an option, so the user has probably given explicit
15004
 
     # arguments.
15005
 
     ac_need_defaults=false;;
15006
 
  esac
15007
 
 
15008
 
  case $1 in
15009
 
  # Handling of the options.
15010
 
_ACEOF
15011
 
cat >>$CONFIG_STATUS <<_ACEOF
15012
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15013
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15014
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15015
 
_ACEOF
15016
 
cat >>$CONFIG_STATUS <<\_ACEOF
15017
 
  --version | --vers* | -V )
15018
 
    echo "$ac_cs_version"; exit 0 ;;
15019
 
  --he | --h)
15020
 
    # Conflict between --help and --header
15021
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15022
 
Try \`$0 --help' for more information." >&5
15023
 
echo "$as_me: error: ambiguous option: $1
15024
 
Try \`$0 --help' for more information." >&2;}
15025
 
   { (exit 1); exit 1; }; };;
15026
 
  --help | --hel | -h )
15027
 
    echo "$ac_cs_usage"; exit 0 ;;
15028
 
  --debug | --d* | -d )
15029
 
    debug=: ;;
15030
 
  --file | --fil | --fi | --f )
15031
 
    shift
15032
 
    CONFIG_FILES="$CONFIG_FILES $1"
15033
 
    ac_need_defaults=false;;
15034
 
  --header | --heade | --head | --hea )
15035
 
    shift
15036
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
15037
 
    ac_need_defaults=false;;
15038
 
 
15039
 
  # This is an error.
15040
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15041
 
Try \`$0 --help' for more information." >&5
15042
 
echo "$as_me: error: unrecognized option: $1
15043
 
Try \`$0 --help' for more information." >&2;}
15044
 
   { (exit 1); exit 1; }; } ;;
15045
 
 
15046
 
  *) ac_config_targets="$ac_config_targets $1" ;;
15047
 
 
15048
 
  esac
15049
 
  shift
15050
 
done
15051
 
 
15052
 
_ACEOF
15053
 
 
15054
 
cat >>$CONFIG_STATUS <<_ACEOF
15055
 
#
15056
 
# INIT-COMMANDS section.
15057
 
#
15058
 
 
15059
 
 
15060
 
 
15061
 
_ACEOF
15062
 
 
15063
 
 
15064
 
 
15065
 
cat >>$CONFIG_STATUS <<\_ACEOF
15066
 
for ac_config_target in $ac_config_targets
15067
 
do
15068
 
  case "$ac_config_target" in
15069
 
  # Handling of arguments.
15070
 
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
15071
 
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15072
 
  "doc/cs/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/cs/Makefile" ;;
15073
 
  "doc/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
15074
 
  "knutclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES knutclient/Makefile" ;;
15075
 
  "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
15076
 
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15077
 
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15078
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15079
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15080
 
   { (exit 1); exit 1; }; };;
15081
 
  esac
15082
 
done
15083
 
 
15084
 
# If the user did not use the arguments to specify the items to instantiate,
15085
 
# then the envvar interface is used.  Set only those that are not.
15086
 
# We use the long form for the default assignment because of an extremely
15087
 
# bizarre bug on SunOS 4.1.3.
15088
 
if $ac_need_defaults; then
15089
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15090
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15091
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15092
 
fi
15093
 
 
15094
 
# Create a temporary directory, and hook for its removal unless debugging.
15095
 
$debug ||
15096
 
{
15097
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15098
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
15099
 
}
15100
 
 
15101
 
# Create a (secure) tmp directory for tmp files.
15102
 
: ${TMPDIR=/tmp}
15103
 
{
15104
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15105
 
  test -n "$tmp" && test -d "$tmp"
15106
 
}  ||
15107
 
{
15108
 
  tmp=$TMPDIR/cs$$-$RANDOM
15109
 
  (umask 077 && mkdir $tmp)
15110
 
} ||
15111
 
{
15112
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15113
 
   { (exit 1); exit 1; }
15114
 
}
15115
 
 
15116
 
_ACEOF
15117
 
 
15118
 
cat >>$CONFIG_STATUS <<_ACEOF
15119
 
 
15120
 
#
15121
 
# CONFIG_FILES section.
15122
 
#
15123
 
 
15124
 
# No need to generate the scripts if there are no CONFIG_FILES.
15125
 
# This happens for instance when ./config.status config.h
15126
 
if test -n "\$CONFIG_FILES"; then
15127
 
  # Protect against being on the right side of a sed subst in config.status.
15128
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15129
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15130
 
s,@SHELL@,$SHELL,;t t
15131
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15132
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15133
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15134
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15135
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15136
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15137
 
s,@exec_prefix@,$exec_prefix,;t t
15138
 
s,@prefix@,$prefix,;t t
15139
 
s,@program_transform_name@,$program_transform_name,;t t
15140
 
s,@bindir@,$bindir,;t t
15141
 
s,@sbindir@,$sbindir,;t t
15142
 
s,@libexecdir@,$libexecdir,;t t
15143
 
s,@datadir@,$datadir,;t t
15144
 
s,@sysconfdir@,$sysconfdir,;t t
15145
 
s,@sharedstatedir@,$sharedstatedir,;t t
15146
 
s,@localstatedir@,$localstatedir,;t t
15147
 
s,@libdir@,$libdir,;t t
15148
 
s,@includedir@,$includedir,;t t
15149
 
s,@oldincludedir@,$oldincludedir,;t t
15150
 
s,@infodir@,$infodir,;t t
15151
 
s,@mandir@,$mandir,;t t
15152
 
s,@build_alias@,$build_alias,;t t
15153
 
s,@host_alias@,$host_alias,;t t
15154
 
s,@target_alias@,$target_alias,;t t
15155
 
s,@DEFS@,$DEFS,;t t
15156
 
s,@ECHO_C@,$ECHO_C,;t t
15157
 
s,@ECHO_N@,$ECHO_N,;t t
15158
 
s,@ECHO_T@,$ECHO_T,;t t
15159
 
s,@LIBS@,$LIBS,;t t
15160
 
s,@build@,$build,;t t
15161
 
s,@build_cpu@,$build_cpu,;t t
15162
 
s,@build_vendor@,$build_vendor,;t t
15163
 
s,@build_os@,$build_os,;t t
15164
 
s,@host@,$host,;t t
15165
 
s,@host_cpu@,$host_cpu,;t t
15166
 
s,@host_vendor@,$host_vendor,;t t
15167
 
s,@host_os@,$host_os,;t t
15168
 
s,@target@,$target,;t t
15169
 
s,@target_cpu@,$target_cpu,;t t
15170
 
s,@target_vendor@,$target_vendor,;t t
15171
 
s,@target_os@,$target_os,;t t
15172
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15173
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15174
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15175
 
s,@PACKAGE@,$PACKAGE,;t t
15176
 
s,@VERSION@,$VERSION,;t t
15177
 
s,@ACLOCAL@,$ACLOCAL,;t t
15178
 
s,@AUTOCONF@,$AUTOCONF,;t t
15179
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
15180
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
15181
 
s,@MAKEINFO@,$MAKEINFO,;t t
15182
 
s,@SET_MAKE@,$SET_MAKE,;t t
15183
 
s,@CONF_FILES@,$CONF_FILES,;t t
15184
 
s,@CC@,$CC,;t t
15185
 
s,@CFLAGS@,$CFLAGS,;t t
15186
 
s,@LDFLAGS@,$LDFLAGS,;t t
15187
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
15188
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
15189
 
s,@EXEEXT@,$EXEEXT,;t t
15190
 
s,@OBJEXT@,$OBJEXT,;t t
15191
 
s,@CPP@,$CPP,;t t
15192
 
s,@CXX@,$CXX,;t t
15193
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
15194
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15195
 
s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
15196
 
s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
15197
 
s,@USE_RTTI@,$USE_RTTI,;t t
15198
 
s,@CXXCPP@,$CXXCPP,;t t
15199
 
s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
15200
 
s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
15201
 
s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
15202
 
s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
15203
 
s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
15204
 
s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
15205
 
s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
15206
 
s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
15207
 
s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
15208
 
s,@LN_S@,$LN_S,;t t
15209
 
s,@RANLIB@,$RANLIB,;t t
15210
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15211
 
s,@STRIP@,$STRIP,;t t
15212
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15213
 
s,@LIBTOOL@,$LIBTOOL,;t t
15214
 
s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
15215
 
s,@MSGFMT@,$MSGFMT,;t t
15216
 
s,@GMSGFMT@,$GMSGFMT,;t t
15217
 
s,@XGETTEXT@,$XGETTEXT,;t t
15218
 
s,@LIBUTIL@,$LIBUTIL,;t t
15219
 
s,@LIBCOMPAT@,$LIBCOMPAT,;t t
15220
 
s,@LIBCRYPT@,$LIBCRYPT,;t t
15221
 
s,@LIBRESOLV@,$LIBRESOLV,;t t
15222
 
s,@LIB_POLL@,$LIB_POLL,;t t
15223
 
s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
15224
 
s,@LIBSOCKET@,$LIBSOCKET,;t t
15225
 
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15226
 
s,@LIBUCB@,$LIBUCB,;t t
15227
 
s,@LIBDL@,$LIBDL,;t t
15228
 
s,@X_INCLUDES@,$X_INCLUDES,;t t
15229
 
s,@X_LDFLAGS@,$X_LDFLAGS,;t t
15230
 
s,@x_libraries@,$x_libraries,;t t
15231
 
s,@x_includes@,$x_includes,;t t
15232
 
s,@LIBSM@,$LIBSM,;t t
15233
 
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15234
 
s,@LIB_X11@,$LIB_X11,;t t
15235
 
s,@QTE_NORTTI@,$QTE_NORTTI,;t t
15236
 
s,@LIB_XEXT@,$LIB_XEXT,;t t
15237
 
s,@LIBPTHREAD@,$LIBPTHREAD,;t t
15238
 
s,@USE_THREADS@,$USE_THREADS,;t t
15239
 
s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
15240
 
s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
15241
 
s,@USER_INCLUDES@,$USER_INCLUDES,;t t
15242
 
s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
15243
 
s,@LIBZ@,$LIBZ,;t t
15244
 
s,@LIBPNG@,$LIBPNG,;t t
15245
 
s,@LIBJPEG@,$LIBJPEG,;t t
15246
 
s,@qt_libraries@,$qt_libraries,;t t
15247
 
s,@qt_includes@,$qt_includes,;t t
15248
 
s,@QT_INCLUDES@,$QT_INCLUDES,;t t
15249
 
s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
15250
 
s,@MOC@,$MOC,;t t
15251
 
s,@UIC@,$UIC,;t t
15252
 
s,@UIC_TR@,$UIC_TR,;t t
15253
 
s,@LIB_QT@,$LIB_QT,;t t
15254
 
s,@LIB_QPE@,$LIB_QPE,;t t
15255
 
s,@kde_qtver@,$kde_qtver,;t t
15256
 
s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
15257
 
s,@KDE_RPATH@,$KDE_RPATH,;t t
15258
 
s,@kde_libraries@,$kde_libraries,;t t
15259
 
s,@kde_includes@,$kde_includes,;t t
15260
 
s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
15261
 
s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
15262
 
s,@all_includes@,$all_includes,;t t
15263
 
s,@all_libraries@,$all_libraries,;t t
15264
 
s,@AUTODIRS@,$AUTODIRS,;t t
15265
 
s,@DCOPIDL@,$DCOPIDL,;t t
15266
 
s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
15267
 
s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
15268
 
s,@MCOPIDL@,$MCOPIDL,;t t
15269
 
s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
15270
 
s,@KDECONFIG@,$KDECONFIG,;t t
15271
 
s,@MEINPROC@,$MEINPROC,;t t
15272
 
s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
15273
 
s,@kde_libs_prefix@,$kde_libs_prefix,;t t
15274
 
s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
15275
 
s,@kde_htmldir@,$kde_htmldir,;t t
15276
 
s,@kde_appsdir@,$kde_appsdir,;t t
15277
 
s,@kde_icondir@,$kde_icondir,;t t
15278
 
s,@kde_sounddir@,$kde_sounddir,;t t
15279
 
s,@kde_datadir@,$kde_datadir,;t t
15280
 
s,@kde_locale@,$kde_locale,;t t
15281
 
s,@kde_confdir@,$kde_confdir,;t t
15282
 
s,@kde_mimedir@,$kde_mimedir,;t t
15283
 
s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
15284
 
s,@kde_bindir@,$kde_bindir,;t t
15285
 
s,@xdg_appsdir@,$xdg_appsdir,;t t
15286
 
s,@xdg_directorydir@,$xdg_directorydir,;t t
15287
 
s,@kde_templatesdir@,$kde_templatesdir,;t t
15288
 
s,@kde_servicesdir@,$kde_servicesdir,;t t
15289
 
s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
15290
 
s,@kde_moduledir@,$kde_moduledir,;t t
15291
 
s,@kde_styledir@,$kde_styledir,;t t
15292
 
s,@kde_widgetdir@,$kde_widgetdir,;t t
15293
 
s,@LIB_KDECORE@,$LIB_KDECORE,;t t
15294
 
s,@LIB_KDEUI@,$LIB_KDEUI,;t t
15295
 
s,@LIB_KIO@,$LIB_KIO,;t t
15296
 
s,@LIB_SMB@,$LIB_SMB,;t t
15297
 
s,@LIB_KAB@,$LIB_KAB,;t t
15298
 
s,@LIB_KABC@,$LIB_KABC,;t t
15299
 
s,@LIB_KHTML@,$LIB_KHTML,;t t
15300
 
s,@LIB_KSPELL@,$LIB_KSPELL,;t t
15301
 
s,@LIB_KPARTS@,$LIB_KPARTS,;t t
15302
 
s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
15303
 
s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
15304
 
s,@LIB_KFILE@,$LIB_KFILE,;t t
15305
 
s,@LIB_KFM@,$LIB_KFM,;t t
15306
 
s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
15307
 
CEOF
15308
 
 
15309
 
_ACEOF
15310
 
 
15311
 
  cat >>$CONFIG_STATUS <<\_ACEOF
15312
 
  # Split the substitutions into bite-sized pieces for seds with
15313
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
15314
 
  ac_max_sed_lines=48
15315
 
  ac_sed_frag=1 # Number of current file.
15316
 
  ac_beg=1 # First line for current file.
15317
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
15318
 
  ac_more_lines=:
15319
 
  ac_sed_cmds=
15320
 
  while $ac_more_lines; do
15321
 
    if test $ac_beg -gt 1; then
15322
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15323
 
    else
15324
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15325
 
    fi
15326
 
    if test ! -s $tmp/subs.frag; then
15327
 
      ac_more_lines=false
15328
 
    else
15329
 
      # The purpose of the label and of the branching condition is to
15330
 
      # speed up the sed processing (if there are no `@' at all, there
15331
 
      # is no need to browse any of the substitutions).
15332
 
      # These are the two extra sed commands mentioned above.
15333
 
      (echo ':t
15334
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15335
 
      if test -z "$ac_sed_cmds"; then
15336
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15337
 
      else
15338
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15339
 
      fi
15340
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
15341
 
      ac_beg=$ac_end
15342
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
15343
 
    fi
15344
 
  done
15345
 
  if test -z "$ac_sed_cmds"; then
15346
 
    ac_sed_cmds=cat
15347
 
  fi
15348
 
fi # test -n "$CONFIG_FILES"
15349
 
 
15350
 
_ACEOF
15351
 
cat >>$CONFIG_STATUS <<\_ACEOF
15352
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15353
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15354
 
  case $ac_file in
15355
 
  - | *:- | *:-:* ) # input from stdin
15356
 
        cat >$tmp/stdin
15357
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15358
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15359
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15360
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15361
 
  * )   ac_file_in=$ac_file.in ;;
15362
 
  esac
15363
 
 
15364
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15365
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15366
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15367
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15368
 
         X"$ac_file" : 'X\(//\)$' \| \
15369
 
         X"$ac_file" : 'X\(/\)' \| \
15370
 
         .     : '\(.\)' 2>/dev/null ||
15371
 
echo X"$ac_file" |
15372
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15373
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15374
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15375
 
          /^X\(\/\).*/{ s//\1/; q; }
15376
 
          s/.*/./; q'`
15377
 
  { case "$ac_dir" in
15378
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15379
 
  *)                      as_incr_dir=.;;
15380
 
esac
15381
 
as_dummy="$ac_dir"
15382
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15383
 
  case $as_mkdir_dir in
15384
 
    # Skip DOS drivespec
15385
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
15386
 
    *)
15387
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
15388
 
      test -d "$as_incr_dir" ||
15389
 
        mkdir "$as_incr_dir" ||
15390
 
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15391
 
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15392
 
   { (exit 1); exit 1; }; }
15393
 
    ;;
15394
 
  esac
15395
 
done; }
15396
 
 
15397
 
  ac_builddir=.
15398
 
 
15399
 
if test "$ac_dir" != .; then
15400
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15401
 
  # A "../" for each directory in $ac_dir_suffix.
15402
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15403
 
else
15404
 
  ac_dir_suffix= ac_top_builddir=
15405
 
fi
15406
 
 
15407
 
case $srcdir in
15408
 
  .)  # No --srcdir option.  We are building in place.
15409
 
    ac_srcdir=.
15410
 
    if test -z "$ac_top_builddir"; then
15411
 
       ac_top_srcdir=.
15412
 
    else
15413
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15414
 
    fi ;;
15415
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
15416
 
    ac_srcdir=$srcdir$ac_dir_suffix;
15417
 
    ac_top_srcdir=$srcdir ;;
15418
 
  *) # Relative path.
15419
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15420
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15421
 
esac
15422
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15423
 
# absolute.
15424
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15425
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15426
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15427
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15428
 
 
15429
 
 
15430
 
  case $INSTALL in
15431
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15432
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15433
 
  esac
15434
 
 
15435
 
  if test x"$ac_file" != x-; then
15436
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
15437
 
echo "$as_me: creating $ac_file" >&6;}
15438
 
    rm -f "$ac_file"
15439
 
  fi
15440
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15441
 
  # use $as_me), people would be surprised to read:
15442
 
  #    /* config.h.  Generated by config.status.  */
15443
 
  if test x"$ac_file" = x-; then
15444
 
    configure_input=
15445
 
  else
15446
 
    configure_input="$ac_file.  "
15447
 
  fi
15448
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
15449
 
                                     sed 's,.*/,,'` by configure."
15450
 
 
15451
 
  # First look for the input files in the build tree, otherwise in the
15452
 
  # src tree.
15453
 
  ac_file_inputs=`IFS=:
15454
 
    for f in $ac_file_in; do
15455
 
      case $f in
15456
 
      -) echo $tmp/stdin ;;
15457
 
      [\\/$]*)
15458
 
         # Absolute (can't be DOS-style, as IFS=:)
15459
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15460
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15461
 
   { (exit 1); exit 1; }; }
15462
 
         echo $f;;
15463
 
      *) # Relative
15464
 
         if test -f "$f"; then
15465
 
           # Build tree
15466
 
           echo $f
15467
 
         elif test -f "$srcdir/$f"; then
15468
 
           # Source tree
15469
 
           echo $srcdir/$f
15470
 
         else
15471
 
           # /dev/null tree
15472
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15473
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15474
 
   { (exit 1); exit 1; }; }
15475
 
         fi;;
15476
 
      esac
15477
 
    done` || { (exit 1); exit 1; }
15478
 
_ACEOF
15479
 
cat >>$CONFIG_STATUS <<_ACEOF
15480
 
  sed "$ac_vpsub
15481
 
$extrasub
15482
 
_ACEOF
15483
 
cat >>$CONFIG_STATUS <<\_ACEOF
15484
 
:t
15485
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15486
 
s,@configure_input@,$configure_input,;t t
15487
 
s,@srcdir@,$ac_srcdir,;t t
15488
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
15489
 
s,@top_srcdir@,$ac_top_srcdir,;t t
15490
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15491
 
s,@builddir@,$ac_builddir,;t t
15492
 
s,@abs_builddir@,$ac_abs_builddir,;t t
15493
 
s,@top_builddir@,$ac_top_builddir,;t t
15494
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15495
 
s,@INSTALL@,$ac_INSTALL,;t t
15496
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15497
 
  rm -f $tmp/stdin
15498
 
  if test x"$ac_file" != x-; then
15499
 
    mv $tmp/out $ac_file
15500
 
  else
15501
 
    cat $tmp/out
15502
 
    rm -f $tmp/out
15503
 
  fi
15504
 
 
15505
 
done
15506
 
_ACEOF
15507
 
cat >>$CONFIG_STATUS <<\_ACEOF
15508
 
 
15509
 
#
15510
 
# CONFIG_HEADER section.
15511
 
#
15512
 
 
15513
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15514
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15515
 
#
15516
 
# ac_d sets the value in "#define NAME VALUE" lines.
15517
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15518
 
ac_dB='[        ].*$,\1#\2'
15519
 
ac_dC=' '
15520
 
ac_dD=',;t'
15521
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15522
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15523
 
ac_uB='$,\1#\2define\3'
15524
 
ac_uC=' '
15525
 
ac_uD=',;t'
15526
 
 
15527
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15528
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15529
 
  case $ac_file in
15530
 
  - | *:- | *:-:* ) # input from stdin
15531
 
        cat >$tmp/stdin
15532
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15533
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15534
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15535
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15536
 
  * )   ac_file_in=$ac_file.in ;;
15537
 
  esac
15538
 
 
15539
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15540
 
echo "$as_me: creating $ac_file" >&6;}
15541
 
 
15542
 
  # First look for the input files in the build tree, otherwise in the
15543
 
  # src tree.
15544
 
  ac_file_inputs=`IFS=:
15545
 
    for f in $ac_file_in; do
15546
 
      case $f in
15547
 
      -) echo $tmp/stdin ;;
15548
 
      [\\/$]*)
15549
 
         # Absolute (can't be DOS-style, as IFS=:)
15550
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15551
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15552
 
   { (exit 1); exit 1; }; }
15553
 
         echo $f;;
15554
 
      *) # Relative
15555
 
         if test -f "$f"; then
15556
 
           # Build tree
15557
 
           echo $f
15558
 
         elif test -f "$srcdir/$f"; then
15559
 
           # Source tree
15560
 
           echo $srcdir/$f
15561
 
         else
15562
 
           # /dev/null tree
15563
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15564
 
echo "$as_me: error: cannot find input file: $f" >&2;}
15565
 
   { (exit 1); exit 1; }; }
15566
 
         fi;;
15567
 
      esac
15568
 
    done` || { (exit 1); exit 1; }
15569
 
  # Remove the trailing spaces.
15570
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15571
 
 
15572
 
_ACEOF
15573
 
 
15574
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
15575
 
# `conftest.undefs', that substitutes the proper values into
15576
 
# config.h.in to produce config.h.  The first handles `#define'
15577
 
# templates, and the second `#undef' templates.
15578
 
# And first: Protect against being on the right side of a sed subst in
15579
 
# config.status.  Protect against being in an unquoted here document
15580
 
# in config.status.
15581
 
rm -f conftest.defines conftest.undefs
15582
 
# Using a here document instead of a string reduces the quoting nightmare.
15583
 
# Putting comments in sed scripts is not portable.
15584
 
#
15585
 
# `end' is used to avoid that the second main sed command (meant for
15586
 
# 0-ary CPP macros) applies to n-ary macro definitions.
15587
 
# See the Autoconf documentation for `clear'.
15588
 
cat >confdef2sed.sed <<\_ACEOF
15589
 
s/[\\&,]/\\&/g
15590
 
s,[\\$`],\\&,g
15591
 
t clear
15592
 
: clear
15593
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15594
 
t end
15595
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15596
 
: end
15597
 
_ACEOF
15598
 
# If some macros were called several times there might be several times
15599
 
# the same #defines, which is useless.  Nevertheless, we may not want to
15600
 
# sort them, since we want the *last* AC-DEFINE to be honored.
15601
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15602
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15603
 
rm -f confdef2sed.sed
15604
 
 
15605
 
# This sed command replaces #undef with comments.  This is necessary, for
15606
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
15607
 
# on some systems where configure will not decide to define it.
15608
 
cat >>conftest.undefs <<\_ACEOF
15609
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15610
 
_ACEOF
15611
 
 
15612
 
# Break up conftest.defines because some shells have a limit on the size
15613
 
# of here documents, and old seds have small limits too (100 cmds).
15614
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15615
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15616
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15617
 
echo '  :' >>$CONFIG_STATUS
15618
 
rm -f conftest.tail
15619
 
while grep . conftest.defines >/dev/null
15620
 
do
15621
 
  # Write a limited-size here document to $tmp/defines.sed.
15622
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15623
 
  # Speed up: don't consider the non `#define' lines.
15624
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15625
 
  # Work around the forget-to-reset-the-flag bug.
15626
 
  echo 't clr' >>$CONFIG_STATUS
15627
 
  echo ': clr' >>$CONFIG_STATUS
15628
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15629
 
  echo 'CEOF
15630
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15631
 
  rm -f $tmp/in
15632
 
  mv $tmp/out $tmp/in
15633
 
' >>$CONFIG_STATUS
15634
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15635
 
  rm -f conftest.defines
15636
 
  mv conftest.tail conftest.defines
15637
 
done
15638
 
rm -f conftest.defines
15639
 
echo '  fi # egrep' >>$CONFIG_STATUS
15640
 
echo >>$CONFIG_STATUS
15641
 
 
15642
 
# Break up conftest.undefs because some shells have a limit on the size
15643
 
# of here documents, and old seds have small limits too (100 cmds).
15644
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15645
 
rm -f conftest.tail
15646
 
while grep . conftest.undefs >/dev/null
15647
 
do
15648
 
  # Write a limited-size here document to $tmp/undefs.sed.
15649
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15650
 
  # Speed up: don't consider the non `#undef'
15651
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15652
 
  # Work around the forget-to-reset-the-flag bug.
15653
 
  echo 't clr' >>$CONFIG_STATUS
15654
 
  echo ': clr' >>$CONFIG_STATUS
15655
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15656
 
  echo 'CEOF
15657
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15658
 
  rm -f $tmp/in
15659
 
  mv $tmp/out $tmp/in
15660
 
' >>$CONFIG_STATUS
15661
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15662
 
  rm -f conftest.undefs
15663
 
  mv conftest.tail conftest.undefs
15664
 
done
15665
 
rm -f conftest.undefs
15666
 
 
15667
 
cat >>$CONFIG_STATUS <<\_ACEOF
15668
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15669
 
  # use $as_me), people would be surprised to read:
15670
 
  #    /* config.h.  Generated by config.status.  */
15671
 
  if test x"$ac_file" = x-; then
15672
 
    echo "/* Generated by configure.  */" >$tmp/config.h
15673
 
  else
15674
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15675
 
  fi
15676
 
  cat $tmp/in >>$tmp/config.h
15677
 
  rm -f $tmp/in
15678
 
  if test x"$ac_file" != x-; then
15679
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15680
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15681
 
echo "$as_me: $ac_file is unchanged" >&6;}
15682
 
    else
15683
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15684
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15685
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15686
 
         X"$ac_file" : 'X\(//\)$' \| \
15687
 
         X"$ac_file" : 'X\(/\)' \| \
15688
 
         .     : '\(.\)' 2>/dev/null ||
15689
 
echo X"$ac_file" |
15690
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15691
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15692
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15693
 
          /^X\(\/\).*/{ s//\1/; q; }
15694
 
          s/.*/./; q'`
15695
 
      { case "$ac_dir" in
15696
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15697
 
  *)                      as_incr_dir=.;;
15698
 
esac
15699
 
as_dummy="$ac_dir"
15700
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15701
 
  case $as_mkdir_dir in
15702
 
    # Skip DOS drivespec
15703
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
15704
 
    *)
15705
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
15706
 
      test -d "$as_incr_dir" ||
15707
 
        mkdir "$as_incr_dir" ||
15708
 
        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15709
 
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15710
 
   { (exit 1); exit 1; }; }
15711
 
    ;;
15712
 
  esac
15713
 
done; }
15714
 
 
15715
 
      rm -f $ac_file
15716
 
      mv $tmp/config.h $ac_file
15717
 
    fi
15718
 
  else
15719
 
    cat $tmp/config.h
15720
 
    rm -f $tmp/config.h
15721
 
  fi
15722
 
done
15723
 
_ACEOF
15724
 
cat >>$CONFIG_STATUS <<\_ACEOF
15725
 
 
15726
 
#
15727
 
# CONFIG_COMMANDS section.
15728
 
#
15729
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15730
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15731
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15732
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15733
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15734
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
15735
 
         X"$ac_dest" : 'X\(//\)$' \| \
15736
 
         X"$ac_dest" : 'X\(/\)' \| \
15737
 
         .     : '\(.\)' 2>/dev/null ||
15738
 
echo X"$ac_dest" |
15739
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15740
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15741
 
          /^X\(\/\/\)$/{ s//\1/; q; }
15742
 
          /^X\(\/\).*/{ s//\1/; q; }
15743
 
          s/.*/./; q'`
15744
 
  ac_builddir=.
15745
 
 
15746
 
if test "$ac_dir" != .; then
15747
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15748
 
  # A "../" for each directory in $ac_dir_suffix.
15749
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15750
 
else
15751
 
  ac_dir_suffix= ac_top_builddir=
15752
 
fi
15753
 
 
15754
 
case $srcdir in
15755
 
  .)  # No --srcdir option.  We are building in place.
15756
 
    ac_srcdir=.
15757
 
    if test -z "$ac_top_builddir"; then
15758
 
       ac_top_srcdir=.
15759
 
    else
15760
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15761
 
    fi ;;
15762
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
15763
 
    ac_srcdir=$srcdir$ac_dir_suffix;
15764
 
    ac_top_srcdir=$srcdir ;;
15765
 
  *) # Relative path.
15766
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15767
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15768
 
esac
15769
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15770
 
# absolute.
15771
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15772
 
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15773
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15774
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15775
 
 
15776
 
 
15777
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15778
 
echo "$as_me: executing $ac_dest commands" >&6;}
15779
 
  case $ac_dest in
15780
 
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
15781
 
  esac
15782
 
done
15783
 
_ACEOF
15784
 
 
15785
 
cat >>$CONFIG_STATUS <<\_ACEOF
15786
 
 
15787
 
{ (exit 0); exit 0; }
15788
 
_ACEOF
15789
 
if test "x$with_fast_perl" = "xyes" ; then
15790
 
  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS || mv $CONFIG_STATUS.bak $CONFIG_STATUS; 
15791
 
  rm -f $CONFIG_STATUS.bak;
15792
 
fi 
15793
 
chmod +x $CONFIG_STATUS
15794
 
ac_clean_files=$ac_clean_files_save
15795
 
 
15796
 
 
15797
 
# configure is writing to config.log, and then calls config.status.
15798
 
# config.status does its own redirection, appending to config.log.
15799
 
# Unfortunately, on DOS this fails, as config.log is still kept open
15800
 
# by configure, so config.status won't be able to write to it; its
15801
 
# output is simply discarded.  So we exec the FD to /dev/null,
15802
 
# effectively closing config.log, so it can be properly (re)opened and
15803
 
# appended to by config.status.  When coming back to configure, we
15804
 
# need to make the FD available again.
15805
 
if test "$no_create" != yes; then
15806
 
  ac_cs_success=:
15807
 
  exec 5>/dev/null
15808
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
15809
 
  exec 5>>config.log
15810
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15811
 
  # would make configure fail if this is the last instruction.
15812
 
  $ac_cs_success || { (exit 1); exit 1; }
15813
 
fi
15814